ns-3 interacts with external udp client

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010643777/article/details/80861786

 The ns3 project has serveral examples on how to make ns3 interact with real world through tap. A raw socket was created in FdNetDevice for that purpose. It is convenient to test new tcp congestion protocol. The raw socket will receive all the packets with the destionation that it binded.
 In my case, I just want to make the ns3 application handle the udp packet without bothering to process the Ethernet header.
 In future, the project may have some use in testing rtp protocol.

+++++++++++|                         +++++++++++|
|udp client|                         |udp server|
+++++++++++|                         +++++++++++|    
     \                                   /
      \   ns3 simulation environment    /
       \___|fd|node0------node1|fd|____/

 And the code can be downloaded at[1].
[1]ns3-udp

猜你喜欢

转载自blog.csdn.net/u010643777/article/details/80861786