[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] New Routing Protocol



Well, there isn't really a 'tutorial' on writing a new routing protocol,
and to write an ad hoc protocol is very different from writing a, say,
link state protocol.

I think part of the reason is there isn't a template for writing a routing
protocol, unless you only need some tweaks to the existing ones. For that
purpose, you want to read the routing agent chapter in ns manual, where
Kannan has a very nice structure of writing DV/linkstate/and_so_on
routing protocols. You can read his DV code, or Wang's link state code for
examples.

Otherwise, I'd suggest you start with node structure, how classifiers
work, and how current routing protocols are built. Then you can write your
own.

- Haobo

On Thu, 30 Nov 2000, David Liu wrote:

> Hi,
> 
> I need to implement a new routing protocol that is overlayed on top of IP.
> This requires me to create new routing tables, store information at nodes
> describing network conditions, perform dynamic routing on a per packet basis
> and interact with the preexisting network and transport layer agents. I'm
> looking through the code and mailing lists and it doesn't seem like there's
> a tutorial on creating a new routing protocol. Does anybody know of one?
> 
> TIA.
> 
> 
>