NetBrain Technologies Interview Question

how OSPF works?