Packet Grabbing in NS
Hello
I am presently working on Network Simulator under Linux. Actually I have a problem that I wanted to grab a packet which is getting transmitted through a link between nodes in a network setup and then I want the contents of that packet to be modified and then transmit that packet at my specified time. In simple terms, suppose there are 2 nodes in a network n1, n2 and a duplex link between them. Now node n1 is having TCP source connected to FTP and node n2 is having TCP Sink. Now suppose packet number 5 is on the link which is to be transmitted. So first of all it will get queued to the Queue of the Link. So I want to alter the packet 5 say modifying the data that it carries, and then I will forward that packet to the node n2 at my specified time.....
How is it possible in NS scripting Language with OTcl...
Please Help me...
Regards,
Ashutosh
|