-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadme.txt
More file actions
46 lines (33 loc) · 1.04 KB
/
Readme.txt
File metadata and controls
46 lines (33 loc) · 1.04 KB
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
37
38
39
40
41
42
43
44
45
46
┌──────┐
│ h0 │ (10.0.0.10)
└──┬───┘
│ s1-eth1
┌───┴───┐
│ s1 │ ← przełącznik P4 (no_lb.p4)
└─┬─┬─┬─┘
│ │ │
│ │ └── h3 (10.0.0.3) eth4
│ └──── h2 (10.0.0.2) eth3
└────── h1 (10.0.0.1) eth2
chmod +x run_p4.sh
./run_p4.sh i program
pobieranie dodatkowe poza bazowym obrazem p4:
sudo apt install mininet
Skompiluj program P4:
p4c --target bmv2 --arch v1model -o build no_lb.p4
Uruchom całą topologię:
sudo /home/p4/src/p4dev-python-venv/bin/python3 topology.py
Konsola switcha:
xterm s1
simple_switch_CLI --thrift-port 9090
Test polaczneia UDP
mininet> h1 iperf -s -u &
mininet> h0 iperf -c 10.0.0.1 -u -b 5M -t 3
Do czyszczenia
rm -rf build
sudo mn -c
SPrawdzanie czy sa iperfy
mininet> h1 ps aux | grep iperf
mininet> h2 ps aux | grep iperf
mininet> h3 ps aux | grep iperf
SPrawdz pakiety ifconfig przed i po h0 no