This shows you the differences between two versions of the page.
isrm:laboratoare:new:02a [2024/10/09 10:06] dragos.niculescu |
isrm:laboratoare:new:02a [2024/10/16 09:04] (current) dragos.niculescu |
||
---|---|---|---|
Line 33: | Line 33: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns3$ ./ns3 run wifi-tcp | + | student@isrm-vm:~/ns3$ cd lab02 |
+ | student@isrm-vm:lab02$ ../ns3 run wifi-tcp --cwd . | ||
Waf: Entering directory `/home/student/ns3/build' | Waf: Entering directory `/home/student/ns3/build' | ||
Waf: Leaving directory `/home/student/ns3/build' | Waf: Leaving directory `/home/student/ns3/build' | ||
Line 49: | Line 50: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns3$ ./ns3 run examples/wireless/wifi-tcp | + | student@isrm-vm:lab02$ ../ns3 run examples/wireless/wifi-tcp --cwd . |
</code> | </code> | ||
Line 55: | Line 56: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns3$ ./ns3 run "wifi-tcp --help" | + | student@isrm-vm:lab02$ ../ns3 run "wifi-tcp --help" |
</code> | </code> | ||
Line 61: | Line 62: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns3$ ./ns3 run "wifi-tcp --pcap --simulationTime=3" | + | student@isrm-vm:lab02$ ../ns3 run "wifi-tcp --pcap --simulationTime=3" --cwd . |
Waf: Entering directory `/home/student/ns3/build' | Waf: Entering directory `/home/student/ns3/build' | ||
Waf: Leaving directory `/home/student/ns3/build' | Waf: Leaving directory `/home/student/ns3/build' | ||
Line 77: | Line 78: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns3$ ls AccessPoint*.pcap Station*.pcap | + | student@isrm-vm:lab02$ ls AccessPoint*.pcap Station*.pcap |
AccessPoint-0-0.pcap Station-1-0.pcap | AccessPoint-0-0.pcap Station-1-0.pcap | ||
</code> | </code> | ||
Line 152: | Line 153: | ||
<note tip>Codul sursă al laboratoarelor de ISRM este disponibil pe [[https://github.com/isrm-lab/ns3-labs|Github]]. | <note tip>Codul sursă al laboratoarelor de ISRM este disponibil pe [[https://github.com/isrm-lab/ns3-labs|Github]]. | ||
+ | </note> | ||
Pe [[:isrm:mv|mașina virtuală]] laboratoarele sunt deja descărcate și sunt disponibile în folderul ''/home/student/ns-3-dev/examples/ns3-labs''. Pentru a valida funcționalitatea rulați: | Pe [[:isrm:mv|mașina virtuală]] laboratoarele sunt deja descărcate și sunt disponibile în folderul ''/home/student/ns-3-dev/examples/ns3-labs''. Pentru a valida funcționalitatea rulați: | ||
Line 173: | Line 175: | ||
</code> | </code> | ||
- | Aflați parametrii specifici cu care poate fi rulat laboratorul 3. | + | * Aflați parametrii specifici cu care poate fi rulat laboratorul 3. |
+ | * Ce face opțiunea --PrintGlobals, și ce parametri interesanți expune? | ||
===== [01] Grafic throughput ===== | ===== [01] Grafic throughput ===== | ||
Line 220: | Line 223: | ||
<code bash> | <code bash> | ||
- | student@isrm-vm:~/ns-3-dev$ ./waf --run "wifi-tcp --pcap=true" | + | student@isrm-vm:~/ns-3-dev$ ./ns3 run "wifi-tcp --pcap=true" |
(...) | (...) | ||
student@isrm-vm:~/ns-3-dev$ ls -al *.pcap | student@isrm-vm:~/ns-3-dev$ ls -al *.pcap | ||
Line 290: | Line 293: | ||
<code bash> | <code bash> | ||
- | ./waf --run "lab3 --numberOfNodes=2 --payloadSize=1400 \ | + | ./ns3 run "lab3 --numberOfNodes=2 --payloadSize=1400 \ |
--offeredRate=11Mbps --phyRate=DsssRate11Mbps --simulationTime=2 --tracing=true" | --offeredRate=11Mbps --phyRate=DsssRate11Mbps --simulationTime=2 --tracing=true" | ||
</code> | </code> |