This shows you the differences between two versions of the page.
isrm:laboratoare:new:04 [2020/12/24 15:16] mbarbulescu [[00] Pregătire laborator] |
isrm:laboratoare:new:04 [2024/03/19 09:04] (current) mbarbulescu [[00] Pregătire laborator] |
||
---|---|---|---|
Line 16: | Line 16: | ||
<note important> | <note important> | ||
- | Pe [[:isrm:mv|mașina virtuală]] aveți tot ce trebuie în ''/home/student/ns-3-dev''. Dacă lucrați pe alt dispozitiv trebuie să rulați comenzile: | + | Pe [[:isrm:mv|mașina virtuală]] aveți tot ce trebuie în ''/home/student/ns-3-dev''. |
+ | Dacă lucrați pe alt dispozitiv trebuie să rulați comenzile: | ||
<code bash> | <code bash> | ||
student@isrm-vm-2020:~$ git clone https://gitlab.com/nsnam/ns-3-dev.git | student@isrm-vm-2020:~$ git clone https://gitlab.com/nsnam/ns-3-dev.git | ||
Line 29: | Line 30: | ||
</code> | </code> | ||
</note> | </note> | ||
- | |||
- | Pentru a realiza grafice, trebuie sa instalam si pachetele de Python: | ||
- | <code bash> | ||
- | student@isrm-vm-2020:~$ sudo apt-get update | ||
- | student@isrm-vm-2020:~$ sudo apt-get install python3-pip | ||
- | student@isrm-vm-2020:~$ pip3 install matplotlib jupyter | ||
- | student@isrm-vm-2020:~$ sudo ln -s ~/.local/bin/jupyter-notebook /usr/bin/jupyter-notebook | ||
- | </code> | ||
Pentru a lansa aplicatia de Jupyter Notebook, rulati urmatoarea comanda: | Pentru a lansa aplicatia de Jupyter Notebook, rulati urmatoarea comanda: | ||
Line 47: | Line 40: | ||
<code bash> | <code bash> | ||
student@isrm-vm-2020:~$ sudo apt-get install tshark | student@isrm-vm-2020:~$ sudo apt-get install tshark | ||
+ | </code> | ||
+ | |||
+ | Daca sunt probleme cu plot-ul (in special in Windows Subsystem for Linux) mai e nevoie de acest pachet: | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt install -y python3-tk | ||
</code> | </code> | ||
====== [01] Capacitatea ideală simulare UDP 2 noduri RTS/CTS ====== | ====== [01] Capacitatea ideală simulare UDP 2 noduri RTS/CTS ====== | ||
+ | |||
+ | Atentie trebuie rulat pentru 802.11b: | ||
+ | |||
+ | <code bash> | ||
+ | sed -i 's/WIFI_PHY_STANDARD_80211g/WIFI_PHY_STANDARD_80211b/g' ./ns3-labs/lab-03-04-capacity/lab3.cc | ||
+ | </code> | ||
+ | |||
Re-rulați simularea de capacitate ideală trafic UDP cu 2 noduri activând RTS/CTS. | Re-rulați simularea de capacitate ideală trafic UDP cu 2 noduri activând RTS/CTS. | ||
Line 66: | Line 72: | ||
<code bash> | <code bash> | ||
- | for mcs in 1 2 3 4 | + | for mcs in 1 2 3 4; do |
- | do | + | for payload in 100 200 300 400; do |
- | for payload in 100 200 300 400 | + | |
- | do | + | |
./waf --run "lab3 --numberOfNodes=2 --payloadSize=$payload --offeredRate=11Mbps --phyRate=$mcs --simulationTime=2 --tracing=true --enableRtsCts=true" | ./waf --run "lab3 --numberOfNodes=2 --payloadSize=$payload --offeredRate=11Mbps --phyRate=$mcs --simulationTime=2 --tracing=true --enableRtsCts=true" | ||
done | done |