Hello I’ve developed a C++ security framework, and now I want to perform a simulation using NS2. My simulation will transmit user data over TCP (in the Application Layer) through using TcpApp class. And I’ve found the required source code to perform this (tcpapp.tcl, tcpapp.h, tcpapp.cc), which perform the following: 1- Providing a buffer for application data at the sender-side. 2- counting the bytes received at the receiver-side. 3- When the received has received all the bytes of the current transmission, it then gets the data directly from the sender. My question is: 1- Before all of that, do I need to write other source codes (such as: .h, and .cc files) to define packets and agents, and to perform OTcl linkage? 2- If so, and since data is generated and sent from the application layer, and packets are generated from the Transport layer the, How can we append (add) the generated-data to the packet (in the data payload section)? 3- In the “tcpapp.tcl”, the data being sent via the TcpApp is sent from the Tcl code as: $ns at 0.5 “$app0 send 100 {$app1 recv {my message}}, how can we send it within the data packet?
Best Regards. -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/transmitting-user-data-over-TCP-in-NS2-tp28184.html Sent from the ns-users mailing list archive at Nabble.com.