2 Simulation program » History » Version 35
MOURA, Ninon, 03/23/2016 09: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 | 29 | MOURA, Ninon | First simulation as been run without modem. |
6 | 1 | MERIOCHAUD, Antoine | |
7 | 34 | MOURA, Ninon | Line commands to configure the PC engines are described in part II.3. it must be done for both PC ngines. |
8 | 24 | MOURA, Ninon | |
9 | 33 | MOURA, Ninon | SEE config PC engines 2.3 |
10 | 35 | MOURA, Ninon | Step 1. |
11 | 32 | MOURA, Ninon | |
12 | 29 | MOURA, Ninon | |
13 | 24 | MOURA, Ninon | On user interface only. |
14 | 1 | MERIOCHAUD, Antoine | Step 4. Addition of space delay to user interface (p5p1) |
15 | 1 | MERIOCHAUD, Antoine | |
16 | 35 | MOURA, Ninon | @tc qdisc add dev p5p1 root netem delay 300ms @ |
17 | 35 | MOURA, Ninon | |
18 | 1 | MERIOCHAUD, Antoine | Step 5. Test connection and delay from 192.168.2.1 to 192.168.3.1 |
19 | 24 | MOURA, Ninon | |
20 | 35 | MOURA, Ninon | @ping 192.168.3.1 -I 192.168.2.1@ |
21 | 35 | MOURA, Ninon | |
22 | 26 | MOURA, Ninon | Step 6. Implementation of routing rules in order to use PEPSal. Indeed PEPSal uses port 5000, consequently TCP flow must be redirected on this port. |
23 | 35 | MOURA, Ninon | @ |
24 | 1 | MERIOCHAUD, Antoine | iptables -t mangle -A PREROUTING -s 192.168.2.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
25 | 24 | MOURA, Ninon | iptables -t nat -A PREROUTING -s 192.168.2.1 --proto tcp -j REDIRECT --to-port 5000 |
26 | 3 | MOURA, Ninon | iptables -t mangle -A PREROUTING -d 192.168.2.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
27 | 24 | MOURA, Ninon | iptables -t nat -A PREROUTING -d 192.168.2.1 --proto tcp -j REDIRECT --to-port 5000 |
28 | 35 | MOURA, Ninon | @ |
29 | 24 | MOURA, Ninon | |
30 | 24 | MOURA, Ninon | Display all rules to verify |
31 | 35 | MOURA, Ninon | @iptables -t mangle -t nat -L@ |
32 | 26 | MOURA, Ninon | |
33 | 28 | MOURA, Ninon | Step 7 Execution of PEPSal on port |
34 | 35 | MOURA, Ninon | @pepsal -a 192.168.2.1@ |
35 | 24 | MOURA, Ninon | |
36 | 1 | MERIOCHAUD, Antoine | Then a TCP flow is simulated thanks to the iperf command. |
37 | 4 | MOURA, Ninon | |
38 | 4 | MOURA, Ninon | |
39 | 4 | MOURA, Ninon | h4. 2.2. Post processing |
40 | 1 | MERIOCHAUD, Antoine | |
41 | 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. |
42 | 1 | MERIOCHAUD, Antoine | Command is: |
43 | 35 | MOURA, Ninon | @tcpdump tcp -w fileName.pcap@ |
44 | 31 | MOURA, Ninon | |
45 | 1 | MERIOCHAUD, Antoine | Files transfert from PC engine right to local computer as following: |
46 | 35 | MOURA, Ninon | @ scp labo@192.168.0.201:Proj3/*. @ |
47 | 14 | MOURA, Ninon | |
48 | 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: |
49 | 14 | MOURA, Ninon | * throughput, |
50 | 3 | MOURA, Ninon | * sequence number packets, |
51 | 1 | MERIOCHAUD, Antoine | * windows size evolution. |
52 | 1 | MERIOCHAUD, Antoine | |
53 | 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. |