Skip to content

SmolaS/P4-Praca-Inzynierska

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

        ┌──────┐
        │  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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors