README_TCP_EMULATION
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1.  To execute the ns emulation code 
  2.   make nse 
  3. Run scripts as root. 
  4.  To originate a TCP connection from ns we need two machines. 
  5.  To use tcpemu.tcl perform the following steps:
  6. - Perform the following steps on machine A 
  7. - Add a route to a dummy IP address assigned to ns TCP node using
  8. route add dummy_IP IP_where_nse_is_running
  9. - Disable IP redirects using
  10. sysctl -w net.inet.ip.redirect=0
  11. - start a tcp server application on some machine A
  12. ( TCP Application provided at www-scf.usc.edu/~alefiyah/application/tcp-server.tar.gz ) 
  13. -Perform following steps on machine B
  14. - Disable IP forwarding using
  15. sysctl -w net.inet.ip.forwarding=0
  16. - Configure tcpemu.tcl with address and port for TCP server application 
  17. - run "nse tcpemu.tcl" 
  18. To pass traffic through ns, we need three machines
  19. Machine A with start a TCP connection with Machine B via machine C which has nse running. 
  20. To use thrutcp.tcl perform the following steps:
  21. - Perform following steps on machine A and machine B 
  22. - Disable IP redirects
  23. - Disable IP forwarding 
  24. - On machine A, add route to machine B via machine C 
  25. route add B_IP C_IP
  26. - On machine B, add route to machine A via machine C
  27. route add A_IP C_IP
  28. - Configure the correct filters in thrutcp.tcl
  29. - run "nse thrutcp.tcl
  30. - Start any TCP application ( ie: ftp or rcp) between machines A and B