[Xorp-hackers] Hello!, Help needed on RIP module in XORP
Orion Hodson
oho at acm.org
Mon Feb 19 20:17:49 PST 2007
RIP notifies the RIB of the routes as it updates their state. The
RIB arbitrates which of the routes it learns from routing protocols
make it into the routing table. The RIB can also redistribute
routes, for instance static routes, through RIP.
RIP's routing decision code is in rip/route_db.cc. The packet
formats are in rip/packets.hh and the packetization is rip/
packet_assembly.hh.
The RIB notification code is rip/xrl_rib_notifier.{hh,cc}. The
redistributed route information is managed by the *redist* files.
For the most part the string "cost" identifies the routing metric at
any point in RIP, with a few exceptional places that use "metric".
Replacing the type of cost in the RouteEntry (route_entry.hh) with
my_metric_t would probably give you the transitive closure of all the
places in RIP that would need changing to support a more
sophisticated metric (and a tonne of code that doesn't compile for a
while :-).
Happy Hacking
- Orion
On Feb 18, 2007, at 1:20 PM, Pallavi Gupta wrote:
> Hello,
>
> I am a 4th year undergraduate student at a university in Canada. I am
> doing a research project based on RIP and I am using XORP for
> implementation of the changes that I intend to make in the protocol. I
> am trying to understand the XORP code and I was wondering if someone
> could point me out in the right direction. At the moment, I am trying
> to figure out how XORP processes the routing metrics during path
> selection, specifically for RIP.
> I intend to change the metric for RIP into a compound of Hop count and
> delay, if possible.
> Thanks soo much, in advance, for your time and help.
>
> Sincerely,
> Pallavi Gupta,
>
> --
> "Little things make big differences in life"
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
More information about the Xorp-hackers
mailing list