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

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



On Thu, 19 Apr 2001, Paavan wrote:

> what if we edit ip.h/.cc to add the field...

same difference, really. Probably conceptually less messy in this
case to have the addition inside the ip header - but there's a lot of
stuff in packet.h that you might have been expecting to see in ip.h.

> does is add to the delay at routers?

no.

L.

> Paavan
> ----- Original Message -----
> From: "Lloyd Wood" <[email protected]>
> To: "Yunjung Yi" <[email protected]>
> Cc: "ns-users" <[email protected]>
> Sent: Thursday, April 19, 2001 12:39 PM
> Subject: 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/>