- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- How to add data payload
abhilash
Participant
Hi,
I am trying to put data payload into the packet or creating my new packet header with data…
can i get some example programs or tutorials on the above…
Thanks,
Abhi
CharlesPandian
Keymaster
In ns2, there is an agent called MessagePassing Agent. You can pass real data (in the form of characters) using this agent. The default message size will be 1500 bytes
(defined in ns-default.tcl as
Agent/MessagePassing set packetSize_ 1500).
But you may increase it as per the requirement.
But, I hope that you can not use it over TCP.