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

Re: [ns] Help on Communicating between Connections



> 1. How do intercept a packet at an intermediate node, examine it for
> error and other header fields (particurarly ELN) and change some fields
> if required and then pass it on along the destination path?

Change the node internal structure and add a snooper there.

> 2. How do I pass on a packet received at a TCPSink Agent to a TCPSource
> Agent, the Sink and Source belonging to different connections (as shown
> below) ?

One solution is the first sink needs to somehow keep a pointer to the
second source and pass a copy of the packet to it.

> 		         TCPSource2  ------------->> TCPSink2
>                                                       ^
>                                                        |
>           (n1)---------------------(n2)-----------------------(n3)
>                                                        |
>         TCPSource1 --------->> TCPSink1
> 
> Any reply in the regard is greatly appreciated.
> 
> Thanks
> 
> Arijit Ghosh
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>