in reply to Re: OSPF Protocol
in thread OSPF Protocol

I need a module that knows how to build/parse OSPF packets, for a beginning.

Does BGP and OSPF are similar protocols ?

Replies are listed 'Best First'.
Re^3: OSPF Protocol
by g0n (Priest) on Mar 03, 2005 at 12:38 UTC
    OSPF and BGP are very different. The reason I suggested Net::BGP as a starting point is that it implements event driven code based on receipt of routing packets.

    This is a bit off topic, so I won't go into too much detail, but OSPF is a multicast connectionless protocol - route updates are sent to a multicast address (224.0.0.5). BGP is connection oriented - routers are configured with relationships to each other, and unicast updates over TCP. When I was first learning both OSPF and BGP I wrote some brief notes on each, which you can see here. (I make no warranty as to their accuracy).

    For your purposes I would suggest starting by sniffing some OSPF LSAs from the wire, using tcpdump/ethereal/some other packet sniffer listening to 224.0.0.5, and (referring to the OSPF rfcs where necessary) writing some code to parse and interpret them.

    VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
Re^3: OSPF Protocol
by gellyfish (Monsignor) on Mar 03, 2005 at 12:31 UTC

    No they aren't the same protocol I'm afraid. It looks like you are going to be starting with Net::RawIP and a copy of RFC 2328 :-s Good Luck!

    /J\