2 Simulation program » History » Version 3
MOURA, Ninon, 03/22/2016 11:59 PM
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 | 3 | MOURA, Ninon | Insertion des lignes de commandes SANS MODEM |
6 | 1 | MERIOCHAUD, Antoine | |
7 | 3 | MOURA, Ninon | # Remote Terminal: ssh connexion |
8 | 3 | MOURA, Ninon | ssh labo@192.168.0.200 |
9 | 3 | MOURA, Ninon | # Super User Connexion |
10 | 3 | MOURA, Ninon | sudo su |
11 | 3 | MOURA, Ninon | |
12 | 3 | MOURA, Ninon | # Definition of p5p1 IP adress |
13 | 3 | MOURA, Ninon | ifconfig p5p1 192.168.2.2 |
14 | 3 | MOURA, Ninon | # Definition of p6p1 IP adress |
15 | 3 | MOURA, Ninon | ifconfig p5p1 192.168.3.1 |
16 | 3 | MOURA, Ninon | |
17 | 3 | MOURA, Ninon | # Add space delay to user interface |
18 | 3 | MOURA, Ninon | tc qdisc add dev p5p1 root netem delay 600ms |
19 | 3 | MOURA, Ninon | |
20 | 3 | MOURA, Ninon | # Test connection and delay |
21 | 3 | MOURA, Ninon | # from 192.168.2.1 to 192.168.3.1 |
22 | 3 | MOURA, Ninon | ping 192.168.3.1 -I 192.168.2.1 |
23 | 3 | MOURA, Ninon | |
24 | 3 | MOURA, Ninon | # Re-routing rule to in order to use PEPSal |
25 | 3 | MOURA, Ninon | iptables -t mangle -A PREROUTING -s 192.168.2.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
26 | 3 | MOURA, Ninon | iptables -t nat -A PREROUTING -s 192.168.2.1 --proto tcp -j REDIRECT --to-port 5000 |
27 | 3 | MOURA, Ninon | iptables -t mangle -A PREROUTING -d 192.168.3.1 --proto tcp --tcp-flags ALL SYN -j QUEUE |
28 | 3 | MOURA, Ninon | iptables -t nat -A PREROUTING -d 192.168.3.1 --proto tcp -j REDIRECT --to-port 5000 |
29 | 3 | MOURA, Ninon | |
30 | 3 | MOURA, Ninon | # Display all rules |
31 | 3 | MOURA, Ninon | iptables -t mangle -t nat -L |
32 | 3 | MOURA, Ninon | |
33 | 3 | MOURA, Ninon | |
34 | 3 | MOURA, Ninon | # Proxy PEPSal |
35 | 3 | MOURA, Ninon | # pepsal -a 192.168.2.1 |
36 | 3 | MOURA, Ninon | |
37 | 3 | MOURA, Ninon | |
38 | 1 | MERIOCHAUD, Antoine | h4. 2.2. Post processing |
39 | 1 | MERIOCHAUD, Antoine | |
40 | 3 | MOURA, Ninon | |
41 | 1 | MERIOCHAUD, Antoine | Use of iperf and tcpdump as hereafter |
42 | 1 | MERIOCHAUD, Antoine | |
43 | 1 | MERIOCHAUD, Antoine | Then we collect three parameters in order to analyse the network : |
44 | 1 | MERIOCHAUD, Antoine | - the latency; |
45 | 1 | MERIOCHAUD, Antoine | - the jitter; |
46 | 1 | MERIOCHAUD, Antoine | - the loss of packets. |
47 | 1 | MERIOCHAUD, Antoine | |
48 | 3 | MOURA, Ninon | |
49 | 3 | MOURA, Ninon | |
50 | 3 | MOURA, Ninon | # Save data, from management computer (192.168.0.102) |
51 | 3 | MOURA, Ninon | scp labo@192.168.0.201:Proj3/*. |
52 | 3 | MOURA, Ninon | |
53 | 3 | MOURA, Ninon | 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. |