Re: [ns] How to send, reliably, a real payload on MANET and prevent ns2 from dropping application 's packets ?!!!!!!!
Hi, thanks a lot for your answer. In fact, what I want to say is that the problem isn't related to the packet structure (which obviously may contain data payload) but, rather than, it is related to the transport protocols such as TCP. TCP and all its variants don't give the permission to application layer to send its own packets ( function send prototype of TCPAgent is sendmsg(int nbytes, const char* )). As you can see in the function send prototype, the application layer just tell the Transport layer that it want to send some nbytes data and the later creates the needed packets and send them ( Of course without any data payload !!! ). So how can I use the transport protocol to make a reliable transfer of my application 's data ? Or how can I prevent ns2 from dropping packets (due transmission error, collision, etc.) without using TCP (by commenting some instructions for example) ? Thanks again and have a good day. Sincerely / Adel Belkhiri. _ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010
Re: [ns] How to send, reliably, a real payload on MANET and prevent ns2 from dropping application 's packets ?!!!!!!!
The abstraction of Packet have a (unused) pointer to a possible payload (APPDATA). You may allocate memory and put the real data structure there. I suggest you use a header variable in the packet (you must create a new packet type for this) to bring the pointer to the real data payload), or something like that. So the packet will carry the payload with it. Sidney Doria UFCG / BRAZIL 2010/1/14 adel belkhiri adel.belkh...@hotmail.com: Hi dear ns-users, As I know, the NS-2 Transport API to Application layer does not provide a payload transfer. In NS, Transport only tells to the application: hey, there is a packet with nbytes that has arrived. But no data is transfered to the app. I want to simulate an application (Certification authority) attitude over Manet network and I need the payload of this application to be sent through TCP to simulate well my application's behavior. How can do this please ?! Are there a transport protocol (a variant of TCP for example) which can make a reliable tranfer of a real payload ?! or are there a way to prevent ns2 from dropping my application 's packets even without using a transport protocol ? Thank you very much for answering my question. with regards, Adel Belkhiri. _ Keep your friends updated—even when you’re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010 -- Sidney Doria Redes ad hoc móveis Doutorado em Computação UFCG Brasil Nessa jornada, o conhecimento será o seu escudo... (Mestre dos Magos no episódio do grimoire de ouro)
[ns] How to send, reliably, a real payload on MANET and prevent ns2 from dropping application 's packets ?!!!!!!!
Hi dear ns-users, As I know, the NS-2 Transport API to Application layer does not provide a payload transfer. In NS, Transport only tells to the application: hey, there is a packet with nbytes that has arrived. But no data is transfered to the app. I want to simulate an application (Certification authority) attitude over Manet network and I need the payload of this application to be sent through TCP to simulate well my application's behavior. How can do this please ?! Are there a transport protocol (a variant of TCP for example) which can make a reliable tranfer of a real payload ?! or are there a way to prevent ns2 from dropping my application 's packets even without using a transport protocol ? Thank you very much for answering my question. with regards, Adel Belkhiri. _ Keep your friends updated—even when you’re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010