File: README_TCP_EMULATION

package info (click to toggle)
ns2 2.35%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,780 kB
  • ctags: 27,490
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (36 lines) | stat: -rw-r--r-- 1,363 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 To execute the ns emulation code 
 	make nse 
	Run scripts as root. 

 To originate a TCP connection from ns we need two machines. 
 To use tcpemu.tcl perform the following steps:
	- Perform the following steps on machine A 
		- Add a route to a dummy IP address assigned to ns TCP node using
			route add dummy_IP IP_where_nse_is_running
		- Disable IP redirects using
			sysctl -w net.inet.ip.redirect=0
		- start a tcp server application on some machine A
		( TCP Application provided at www-scf.usc.edu/~alefiyah/application/tcp-server.tar.gz ) 
	
	-Perform following steps on machine B
		- Disable IP forwarding using
			sysctl -w net.inet.ip.forwarding=0
		- Configure tcpemu.tcl with address and port for TCP server application 
		- run "nse tcpemu.tcl" 

To pass traffic through ns, we need three machines
Machine A with start a TCP connection with Machine B via machine C which has nse running. 
To use thrutcp.tcl perform the following steps:
	- Perform following steps on machine A and machine B 
		- Disable IP redirects
		- Disable IP forwarding 
	
	- On machine A, add route to machine B via machine C 
		route add B_IP C_IP

	- On machine B, add route to machine A via machine C
		route add A_IP C_IP

	- Configure the correct filters in thrutcp.tcl
	- run "nse thrutcp.tcl
	- Start any TCP application ( ie: ftp or rcp) between machines A and B