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

Re: [ns] How to use IP option field in ns-2?



On Wed, 18 Apr 2001, Yunjung Yi wrote:

> Hello. I'm a beginner in ns-2 world. Right now, I want to implement some
> program using ns-2 which adds up extra information to every packet. I
> think IP option field can be used for my purpose, but I don't know how to
> add new IP options in ns-2 though.

Just stick the fields you need in the packet header. See packet.h.
You could have your agent twiddle the packetSize_ at both ends to
simulate the effect of an option in the packet is you really wanted.

(presence of IP options == slow path through routers, btw.)

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>