2 Simulation program » History » Version 25
MOURA, Ninon, 03/23/2016 12:53 AM
1 | 2 | MERIOCHAUD, Antoine | h3. 2. Simulation program |
---|---|---|---|
2 | 1 | MERIOCHAUD, Antoine | |
3 | 2 | MERIOCHAUD, Antoine | h4. 2.1. Simulation |
4 | 1 | MERIOCHAUD, Antoine | |
5 | 25 | MOURA, Ninon | Fisrt simulation as been run without modem. |
6 | 1 | MERIOCHAUD, Antoine | |
7 | 25 | MOURA, Ninon | Line commands on PEP-right are described hereafter, note that commands for PEP-left are similar. |
8 | 24 | MOURA, Ninon | |
9 | 25 | MOURA, Ninon | # Step 1 : Connexion in SSH to remote terminal. |
10 | 1 | MERIOCHAUD, Antoine | ~ |
11 | 1 | MERIOCHAUD, Antoine | ssh labo@192.168.0.200 |
12 | 24 | MOURA, Ninon | ~ |
13 | 24 | MOURA, Ninon | |
14 | 24 | MOURA, Ninon | Super User Connexion |
15 | 24 | MOURA, Ninon | ~ |
16 | 1 | MERIOCHAUD, Antoine | sudo su |
17 | 1 | MERIOCHAUD, Antoine | ~ |
18 | 24 | MOURA, Ninon | |
19 | 24 | MOURA, Ninon | Definition of p5p1 IP adress |
20 | 24 | MOURA, Ninon | ~ |
21 | 3 | MOURA, Ninon | ifconfig p5p1 192.168.2.2 |
22 | 24 | MOURA, Ninon | ~ |
23 | 24 | MOURA, Ninon | |
24 | 24 | MOURA, Ninon | Definition of p6p1 IP adress |
25 | 24 | MOURA, Ninon | ~ |
26 | 1 | MERIOCHAUD, Antoine | ifconfig p5p1 192.168.3.1 |
27 | 24 | MOURA, Ninon | ~ |
28 | 3 | MOURA, Ninon | |
29 | 24 | MOURA, Ninon | Add space delay to user interface |
30 | 24 | MOURA, Ninon | ~ |
31 | 1 | MERIOCHAUD, Antoine | tc qdisc add dev p5p1 root netem delay 600ms |
32 | 24 | MOURA, Ninon | ~ |
33 | 3 | MOURA, Ninon | |
34 | 3 | MOURA, Ninon | # Test connection and delay |
35 | 3 | MOURA, Ninon | # from 192.168.2.1 to 192.168.3.1 |
36 | 3 | MOURA, Ninon | ping 192.168.3.1 -I 192.168.2.1 |
37 | 1 | MERIOCHAUD, Antoine | |
38 | 24 | MOURA, Ninon | Re-routing rule to in order to use PEPSal |
39 | 24 | MOURA, Ninon | ~ |
40 | 1 | MERIOCHAUD, Antoine | iptables -t mangle -A PREROUTING -s 192.168.2.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
41 | 1 | MERIOCHAUD, Antoine | iptables -t nat -A PREROUTING -s 192.168.2.1 --proto tcp -j REDIRECT --to-port 5000 |
42 | 1 | MERIOCHAUD, Antoine | iptables -t mangle -A PREROUTING -d 192.168.3.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
43 | 3 | MOURA, Ninon | iptables -t nat -A PREROUTING -d 192.168.3.1 --proto tcp -j REDIRECT --to-port 5000 |
44 | 24 | MOURA, Ninon | ~ |
45 | 3 | MOURA, Ninon | |
46 | 24 | MOURA, Ninon | Display all rules |
47 | 24 | MOURA, Ninon | ~ |
48 | 3 | MOURA, Ninon | iptables -t mangle -t nat -L |
49 | 24 | MOURA, Ninon | ~ |
50 | 24 | MOURA, Ninon | Proxy PEPSal |
51 | 24 | MOURA, Ninon | ~ |
52 | 24 | MOURA, Ninon | pepsal -a 192.168.2.1 |
53 | 24 | MOURA, Ninon | ~ |
54 | 3 | MOURA, Ninon | |
55 | 4 | MOURA, Ninon | Then a TCP flow is simulated thanks to the iperf command. |
56 | 1 | MERIOCHAUD, Antoine | |
57 | 1 | MERIOCHAUD, Antoine | |
58 | 4 | MOURA, Ninon | h4. 2.2. Post processing |
59 | 4 | MOURA, Ninon | |
60 | 4 | MOURA, Ninon | In order to get information on TCP packets, the tcpdump commmand is executed. The save option is run and data are collected in a file.pcap. |
61 | 1 | MERIOCHAUD, Antoine | Command is: |
62 | 4 | MOURA, Ninon | tcpdump tcp -w fileName.pcap |
63 | 1 | MERIOCHAUD, Antoine | |
64 | 4 | MOURA, Ninon | # Files transfert from PC engine right to local computer |
65 | 4 | MOURA, Ninon | scp labo@192.168.0.201:Proj3/*. |
66 | 14 | MOURA, Ninon | |
67 | 14 | MOURA, Ninon | The file generated by tcpdump command is compatibile with wireshark. Wireshark is a free network protocol analyzer. It lets you see what's happening on your network at a microscopic level. Thanks to this tool, we could compare with and without PEPSal: |
68 | 14 | MOURA, Ninon | * throughput, |
69 | 3 | MOURA, Ninon | * sequence number packets, |
70 | 1 | MERIOCHAUD, Antoine | * windows size evolution. |
71 | 1 | MERIOCHAUD, Antoine | |
72 | 1 | MERIOCHAUD, Antoine | Tests in terms of quality of usage, such as download a web browser, were planed. However due to difficulties in network configuration, those tests will not be run. |