SlideShare a Scribd company logo
Ground to ns3
and
Implementing wireless topology
(Power Adaption) in ns3 plus
visualization in Network Animator
JAWAD ALI
UNIVERSITY OF ENGINEERING AND TECHNOLOGY PESHAWAR
Topics Covered
 Introduction to ns3 and its comparison with ns2
 Finding required modules for coding
 Finding sample code
 Understanding the code
 Checking ns3 core-module.h
 Adding animation interface to the code
 Compiling and running simulation using NetAnim
 Understanding the results from trace file
Introduction to ns3 and its comparison
with ns2
 Ns3 is just like traditional network simulators and optimization softwares besides its ready to
modify codes and open source licensing
 The drawback of ns3 as well as ns2 is that we can’t see the Graphical User Interface (GUI) while
building a project. All we can do is comment the c++ and otcl codes for its understanding. The
topology is defined in c++ in ns3
 Ns2 uses traditional otcl and c++ language for its coding on the other hand ns3 uses object
oriented c++, gcc and python. Ns2 always needs otcl for its scripting and c++ for its core
 In ns3, everything is c++. You should find it easy if you are good at OOP and c++
 Ns2 only supports nam while ns3 supports both nam and PyViz for visualization
 Overhead of connecting otcl with c++ in ns2 is removed in ns3, increasing simulation speed
 Packet consists of a single portion in ns3 with metadata attached. Payload portion on the ns2
packet is this removed by defining packet as a single object.
Finding required modules for coding
 Networking follows standards and these standards are kept in certain header files called modules
in ns3
 For example, if want to initialize a node. You must initialize it as an object of the class called
nodecontainer that is defined in the network-module.h of ns3.
 The same network module is responsible for addressing such as ipv4 addressing scheme.
 The internet-module.h knows upd and tcp protocol schemes and one should use it in any
TCP/UDP based communication network.
 Assigning applications to a node is done by referring to applicationcontainer, defined in
applications-module.h
 Visualization needs network animator module and node topology formation needs a topology
module (e.g. point-to-point.h)
 All of the above modules combined by core-module.h library that is responsible for the core work.
Finding sample code
 For a pro in ns3, it is easy to figure out which module he/she is going to need if the scenario is
drawn on a rough page.
 For example: Communication of a node with another node will require a topology defining
module, node formatter module, payload calculation module, application, visualization module
and core module.
 For novice, it should be even a big deal to find a library. Though a library has to be known for its
classes and functions which is even a higher difficulty.
 Therefore, it is a good programming practice to use already implemented codes and modify
according to our needs
 Ns2 has a lot of online libraries as compared to ns3 but you need to understand otcl before any
modification in those ns2 based codes
 Ns3 has a variety of user manuals and implemented codes given in ~/source/ns-3-dev/examples/
that are ready to use and to modify. One can easily find the desired sample code by roaming
through those examples
Understanding the code
 After finding the closest sample code in the library, one needs to understand it.
 Online help and documentation of each example is available so we should be
using that.
 It is a good practice that one should first know about the scenario implemented in
the example code before roaming through the defined classes and objects called
by the developer of the code
Checking the ns3 core-module.h
Create a simple text file naming test1 in scratch directory of ns-3-dev with suffix .cc and
write the following code in it
#include <core-module.h>
using namespace std;
Int main (arg, arg )
{
cout<<“testing ns3 in terminal”;
Return 0;
}
Open terminal and type: cd source/ns-3-dev followed by ./waf –run test1
If you get the statement after you have written in console out. This most likely mean that
your core-module is working fine.
Adding Animation Interface to the code
#include "ns3/netanim-module.h“ header has to be included for enabling animation
generation in the compiling code
Also, before
Simulation::Run();
include
AnimationInterface anim ("animation.xml"); //or any other distinct fie name
Power Adaption (Compiling and running simulation
using NetAnim)
 The simulation consists of 4 Nodes. Of which, 2 nodes are mobile access points
while 2 are Stations (STA#)
• The APs generates UDP traffic with a CBR of 54 Mbps to the STAs.
• The APs use any power and rate control mechanism, and the STAs use only * Minstrel
rate control.
• The STAs can be configured to be at any distance from the APs.
# A station in networking is a device that follows 802.11 protocol
Code to run in the terminal
./waf --run "power-adaptation-interference --manager=ns3::AparfWifiManager --
outputFileName=aparf”
Changing STAs position
./waf --run "power-adaptation-interference --manager=ns3::AparfWifiManager --
outputFileName=aparf --STA1_x=5 --STA2_x=205“
To enable the log of rate and power changes
export NS_LOG=PowerAdaptationInterference=level_info
Animation Interface in NetAnim
 Type ./NetAnim after exploring netanim directory in the terminal
 Open the directory from where you have run the ./waf commands
 Locate animation stored as .xml file
 Open and run
 Animation Interface consists of 3 tabs
 Animator
 Stat
 Packet
1- Animator (cont.)
2- Stat (cont.)
3- Packet (cont.)
Analysis and Results (Understanding the results from
trace file)
The Following 6 quantities have been analyzed by the proposed Topology for APs
 Throughput (Mbps)
 AP idleTime (%age of second)
 AP busyTime (%age of second)
 Power Dissipation (mW)
 AP as Receiver (%age up time per second)
 AP as Transmitter (%age up time per second)
Time Instant Tx-aparf1 Tx-apart0 throughput1 throughput0 idle1 idle0 busy1 busy0 rx1 rx0 Power1 Power0
0 0 0 0 0 0 0 0 0 0 0 0 0
1 52.9808 45.4784 10.3603 10.5875 33.8566 35.1448 5.76876 7.79013 11.5843 7.3916 4.9284 0.659472
2 59.1136 56.0248 20.7206 21.5045 33.4268 36.4201 2.35267 0.748263 6.8124 5.1072 5.7252 0.531744
3 59.1136 55.488 20.8683 21.175 33.412 36.7731 2.30563 0.967239 6.7816 5.1436 5.7252 0.52664
4 58.8356 55.8052 20.7661 21.3227 33.743 36.6801 2.32732 0.799531 6.7172 5.1184 5.6992 0.529656
5 59.1404 55.7464 20.9138 21.425 33.4288 36.6905 2.28001 0.763888 6.7872 5.152 5.7278 0.535456
6 59.3548 55.732 20.9138 21.3568 33.132 36.5629 2.35578 0.862673 6.8376 5.1576 5.7486 0.535224
7 59.2644 55.9516 20.857 21.5954 33.3701 36.2275 2.2207 0.930718 6.8936 5.1408 5.7408 0.531048
8 58.5776 55.4392 20.4707 21.2091 33.968 37.0851 2.40021 0.672226 6.8068 5.0456 5.6732 0.526176
9 58.9796 55.5756 20.6866 21.2659 33.5553 36.7735 2.40223 0.817604 6.8404 5.0988 5.7122 0.550536
10 59.2376 55.8784 20.8115 21.3568 33.3806 36.6025 2.24398 0.716138 6.7844 5.1296 5.7382 0.530352
11 59.0332 55.8052 20.6298 21.3682 33.5933 36.637 2.28056 0.725678 6.8432 5.0848 5.7174 0.529656
12 59.194 55.5124 20.857 21.1864 33.427 36.9562 2.24389 0.761389 6.7872 5.1408 5.733 0.543576
13 59.184 55.6 20.8229 21.2432 33.3479 36.7179 2.32471 0.838697 6.8208 5.1324 5.733 0.5278
14 58.9796 55.6344 20.7661 21.3227 33.5214 36.6934 2.36825 0.795034 6.8656 5.1184 5.7122 0.528032
15 59.0332 55.7564 20.6866 21.4931 33.4809 36.6129 2.3799 0.800512 6.8572 5.0988 5.7174 0.547984
16 59.0768 55.4392 20.8115 21.1182 33.5986 37.0223 2.20354 0.709053 6.8236 5.1296 5.7226 0.526176
17 59.0064 55.5856 20.5957 21.2886 33.6015 36.7763 2.32926 0.853598 6.7928 5.0736 5.7148 0.527568
18 59.1404 55.4536 20.857 21.141 33.4281 36.8947 2.29049 0.838499 6.8012 5.1408 5.7278 0.526408
19 59.5324 55.6344 20.9251 21.2773 33.04 36.7367 2.28328 0.822367 6.818 5.1604 5.7668 0.528032
20 59.1672 56.2688 20.8229 21.7544 33.4277 36.1623 2.25863 0.768667 6.7816 5.1296 5.7304 0.534064
21 58.8188 55.5124 20.5389 21.1296 33.7787 37.1394 2.32681 0.596125 6.7452 5.0652 5.6966 0.526872
22 59.1572 55.9172 20.8229 21.425 33.3905 36.4438 2.34007 0.850693 6.7872 5.1324 5.7304 0.530816
23 58.4436 55.9028 20.3571 21.425 34.1779 36.6213 2.35477 0.732859 6.7648 5.0148 5.6602 0.530584
24 59.1404 55.2928 20.9024 21.1069 33.4001 37.2434 2.30798 0.676535 6.7732 5.1548 5.7278 0.524784
25 58.9428 55.3904 20.5389 21.1864 33.7325 36.9376 2.2517 0.845144 6.818 5.0624 5.7096 0.525712
26 59.2476 55.4292 20.7661 21.1637 33.3454 36.7894 2.31043 0.972126 6.8292 5.1184 5.7382 0.526176
27 59.06 55.6588 20.732 21.2205 33.4471 36.5981 2.37458 0.987638 6.7564 5.11 5.72 0.528264
28 59.2376 55.9028 20.891 21.5045 33.2947 36.4655 2.31681 0.770172 6.8684 5.1492 5.7382 0.530584
29 59.2476 55.732 20.8115 21.3454 33.334 36.7945 2.30442 0.671414 6.8012 5.1296 5.7382 0.52896
30 58.9528 55.6244 20.7888 21.2659 33.5567 36.8707 2.35888 0.673383 6.8292 5.124 5.7096 0.528032
31 58.6212 55.6588 20.5275 21.5272 33.9244 36.4521 2.40434 0.986992 6.8768 5.0596 5.6784 0.528264
32 59.06 55.854 20.7774 21.2886 33.4483 36.4513 2.32715 0.902484 6.8124 5.1212 5.72 0.536384
33 59.3012 55.4636 20.891 21.3114 33.3374 36.7813 2.22513 0.862616 6.8964 5.1492 5.7434 0.526408
34 58.8892 55.6832 20.5843 21.1637 33.6811 36.7574 2.36983 0.790068 6.7564 5.0736 5.7044 0.528496
35 59.6228 55.5756 21.0046 21.2318 33.0258 36.9463 2.17898 0.71646 6.7788 5.1772 5.7746 0.527568
36 59.2208 55.732 20.9592 21.3114 33.3157 36.5427 2.28811 0.884075 6.8488 5.166 5.7356 0.535224
37 59.4252 55.488 20.9024 21.1864 33.1864 36.8179 2.23405 0.814049 6.8544 5.152 5.7564 0.52664
38 59.5692 55.6588 20.857 21.3454 33.0376 36.5892 2.24727 0.945771 6.8236 5.1408 5.7694 0.528264
39 59.1672 55.6732 20.8115 21.2886 33.4333 36.6959 2.28041 0.788958 6.8488 5.1296 5.7304 0.528496
40 58.9428 55.9272 20.7888 21.3795 33.5342 36.5589 2.39844 0.668549 6.846 5.124 5.7096 0.53708
41 59.1404 55.7076 20.8002 21.3795 33.4625 36.6803 2.28589 0.775535 6.8096 5.1268 5.7278 0.528728
42 59.4352 55.9272 21.0274 21.3568 33.0607 36.6997 2.31616 0.700598 6.6864 5.1828 5.7564 0.530816
43 59.184 55.478 20.7888 21.1296 33.2908 37.0138 2.40762 0.708388 6.7788 5.124 5.733 0.52664
44 59.1136 55.2684 20.6525 21.2546 33.5426 36.9864 2.23338 0.842062 6.8768 5.0904 5.7252 0.524552
45 58.6044 55.732 20.3003 21.3114 34.1527 36.7433 2.25213 0.833982 6.7396 5.0036 5.6758 0.52896
46 58.9428 55.9028 20.6752 21.2773 33.6867 36.5856 2.28466 0.716905 6.7928 5.096 5.7096 0.530584
47 59.4888 55.6732 20.8683 21.3341 33.0399 36.7179 2.30612 0.845639 6.7648 5.1436 5.7616 0.528496
48 59.328 55.732 20.8115 21.2318 33.2596 36.8115 2.29437 0.676848 6.7788 5.1296 5.746 0.52896
49 59.2376 55.3416 20.7774 21.0728 33.2981 37.1807 2.347 0.644276 6.8376 5.1212 5.7382 0.525248
50 58.8188 55.6832 20.6866 21.2886 33.7912 36.7413 2.26438 0.721833 6.832 5.0988 5.6966 0.528496
51 59.328 55.2928 20.9706 21.1978 33.2829 37.1029 2.22112 0.784702 6.818 5.1688 5.746 0.531048
52 59.4252 56.1612 21.0955 21.6181 33.1387 36.3473 2.24291 0.668373 6.8292 5.1996 5.7564 0.533136
53 59.2744 55.976 20.8456 21.5386 33.2744 36.0766 2.31788 1.06793 6.888 5.138 5.7408 0.53128
54 58.8992 55.5856 20.5843 21.3227 33.787 36.7842 2.24424 0.806244 6.8152 5.0736 5.7044 0.533832
55 59.452 55.9272 21.0046 21.4022 33.1611 36.6106 2.21723 0.724072 6.7172 5.1772 5.759 0.530816
56 58.8724 55.722 20.5843 21.2432 33.806 36.7762 2.22969 0.758868 6.762 5.0736 5.7018 0.52896
57 58.658 55.9516 20.7434 21.4818 33.832 36.3712 2.41826 0.851094 6.8348 5.1128 5.681 0.537312
58 59.05 55.7564 20.7547 21.3 33.5144 36.6848 2.3268 0.730969 6.8236 5.1156 5.72 0.529192
59 59.0332 56.3176 20.8229 21.7544 33.3307 35.9013 2.47698 0.811473 6.9664 5.1324 5.7174 0.534528
60 58.7116 55.722 20.5048 21.3454 33.8873 36.7914 2.35031 0.715868 6.776 5.054 5.6862 0.52896
61 59.318 55.7076 20.891 21.4818 33.2303 36.5811 2.30487 0.854187 6.8628 5.1492 5.746 0.528728
62 58.8456 55.854 20.7661 21.3909 33.6903 36.567 2.36913 0.755179 6.8292 5.1184 5.6992 0.536384
63 59.3816 55.4636 20.857 21.3454 33.1012 36.9341 2.35365 0.808522 6.7872 5.138 5.7512 0.526408
1 5 9
1
3
0
5
10
15
20
25
30
35
40
1 5 9
1
3
1
7
2
1
0
1
2
3
4
5
6
7
8
9
1 5 9
1
3
1
7
2
1
2
5
0
1
2
3
4
5
6
7
Throughput (Mbps)
AP idleTime (%age of second)
AP busyTime (%age of second)
Power Dissipation (mW)
AP as Receiver (%age up time per second)
AP as Transmitter (%age up time per second)
End

More Related Content

What's hot

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
Bushra M
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp)
RochakSrivastava3
 
ARM CoAP Tutorial
ARM CoAP TutorialARM CoAP Tutorial
ARM CoAP Tutorial
zdshelby
 
Amqp Basic
Amqp BasicAmqp Basic
Amqp Basic
Rahul Agrawal
 
Telnet & SSH
Telnet & SSHTelnet & SSH
Telnet & SSH
NetProtocol Xpert
 
Wireshark Basic Presentation
Wireshark Basic PresentationWireshark Basic Presentation
Wireshark Basic Presentation
MD. SHORIFUL ISLAM
 
Http
HttpHttp
Web services SOAP
Web services SOAPWeb services SOAP
Web services SOAP
princeirfancivil
 
Cs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT VCs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT V
pkaviya
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
Shehara Abeythunga
 
Ns3
Ns3Ns3
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
Prasenjit Gayen
 
Transport Layer Security
Transport Layer SecurityTransport Layer Security
Transport Layer Security
Huda Seyam
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
Sourabh Goyal
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
قصي نسور
 
Introduction to OpenFlow
Introduction to OpenFlowIntroduction to OpenFlow
Introduction to OpenFlow
Joel W. King
 
RARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE ProtocolsRARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE Protocols
Peter R. Egli
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
Akhil .B
 
Snmp
SnmpSnmp
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
Sparsh Samir
 

What's hot (20)

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp)
 
ARM CoAP Tutorial
ARM CoAP TutorialARM CoAP Tutorial
ARM CoAP Tutorial
 
Amqp Basic
Amqp BasicAmqp Basic
Amqp Basic
 
Telnet & SSH
Telnet & SSHTelnet & SSH
Telnet & SSH
 
Wireshark Basic Presentation
Wireshark Basic PresentationWireshark Basic Presentation
Wireshark Basic Presentation
 
Http
HttpHttp
Http
 
Web services SOAP
Web services SOAPWeb services SOAP
Web services SOAP
 
Cs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT VCs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT V
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Ns3
Ns3Ns3
Ns3
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
Transport Layer Security
Transport Layer SecurityTransport Layer Security
Transport Layer Security
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
 
Introduction to OpenFlow
Introduction to OpenFlowIntroduction to OpenFlow
Introduction to OpenFlow
 
RARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE ProtocolsRARP, BOOTP, DHCP and PXE Protocols
RARP, BOOTP, DHCP and PXE Protocols
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
Snmp
SnmpSnmp
Snmp
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 

Similar to Ground to ns3 - Basic wireless topology implementation

project(copy1)
project(copy1)project(copy1)
project(copy1)
Cameron White
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection system
Aashiq Ahamed N
 
Fulltext02
Fulltext02Fulltext02
Fulltext02
Aichetou Elkhadar
 
WiMAX implementation in ns3
WiMAX implementation in ns3WiMAX implementation in ns3
WiMAX implementation in ns3
Mustafa Khaleel
 
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
RISC-V International
 
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
RISC-V International
 
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
IGedeArieYogantaraSu
 
Ug10 2
Ug10 2Ug10 2
Ug10 2
Moez Ansary
 
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
NETFest
 
NodeJs
NodeJsNodeJs
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docxit can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
BHANU281672
 
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystemDCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
rudndccn
 
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdfcomparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
teja61850
 
MPU-6050_RF24L01
MPU-6050_RF24L01MPU-6050_RF24L01
MPU-6050_RF24L01
Daniel Titello
 
Chapter 3. sensors in the network domain
Chapter 3. sensors in the network domainChapter 3. sensors in the network domain
Chapter 3. sensors in the network domain
Phu Nguyen
 
June 28 Presentation
June 28 PresentationJune 28 Presentation
June 28 Presentation
Andrew McGarry
 
Paper9250 implementation of an i pv6 stack for ns-3
Paper9250 implementation of an i pv6 stack for ns-3Paper9250 implementation of an i pv6 stack for ns-3
Paper9250 implementation of an i pv6 stack for ns-3
Suhail Ahmed Chandio
 
1-bit semantic segmentation
1-bit semantic segmentation1-bit semantic segmentation
1-bit semantic segmentation
JeonghoonKim30
 
Final ProjectFinal Project Details Description Given a spec.docx
Final ProjectFinal Project Details Description  Given a spec.docxFinal ProjectFinal Project Details Description  Given a spec.docx
Final ProjectFinal Project Details Description Given a spec.docx
AKHIL969626
 
Experiment no. 1,2 and assignment no.1 cn
Experiment no. 1,2 and assignment no.1 cnExperiment no. 1,2 and assignment no.1 cn
Experiment no. 1,2 and assignment no.1 cn
HusainGadiwala1
 

Similar to Ground to ns3 - Basic wireless topology implementation (20)

project(copy1)
project(copy1)project(copy1)
project(copy1)
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection system
 
Fulltext02
Fulltext02Fulltext02
Fulltext02
 
WiMAX implementation in ns3
WiMAX implementation in ns3WiMAX implementation in ns3
WiMAX implementation in ns3
 
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
Klessydra t - designing vector coprocessors for multi-threaded edge-computing...
 
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
Klessydra-T: Designing Configurable Vector Co-Processors for Multi-Threaded E...
 
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
 
Ug10 2
Ug10 2Ug10 2
Ug10 2
 
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
.NET Fest 2019. Łukasz Pyrzyk. Daily Performance Fuckups
 
NodeJs
NodeJsNodeJs
NodeJs
 
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docxit can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
it can be in 6 to 8 pages of project  it should be inclide1. Cover.docx
 
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystemDCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
DCCN 2016 - Tutorial 2 - 4G for SmartGrid ecosystem
 
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdfcomparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
comparison_of_scada_protocols_and_implementation_of_iec_104_and_mqtt.pdf
 
MPU-6050_RF24L01
MPU-6050_RF24L01MPU-6050_RF24L01
MPU-6050_RF24L01
 
Chapter 3. sensors in the network domain
Chapter 3. sensors in the network domainChapter 3. sensors in the network domain
Chapter 3. sensors in the network domain
 
June 28 Presentation
June 28 PresentationJune 28 Presentation
June 28 Presentation
 
Paper9250 implementation of an i pv6 stack for ns-3
Paper9250 implementation of an i pv6 stack for ns-3Paper9250 implementation of an i pv6 stack for ns-3
Paper9250 implementation of an i pv6 stack for ns-3
 
1-bit semantic segmentation
1-bit semantic segmentation1-bit semantic segmentation
1-bit semantic segmentation
 
Final ProjectFinal Project Details Description Given a spec.docx
Final ProjectFinal Project Details Description  Given a spec.docxFinal ProjectFinal Project Details Description  Given a spec.docx
Final ProjectFinal Project Details Description Given a spec.docx
 
Experiment no. 1,2 and assignment no.1 cn
Experiment no. 1,2 and assignment no.1 cnExperiment no. 1,2 and assignment no.1 cn
Experiment no. 1,2 and assignment no.1 cn
 

More from Jawad Khan

2.1 input and output in c
2.1 input and output in c2.1 input and output in c
2.1 input and output in c
Jawad Khan
 
2.2 variable arithmetics and logics
2.2 variable arithmetics and logics2.2 variable arithmetics and logics
2.2 variable arithmetics and logics
Jawad Khan
 
1.2 programming fundamentals
1.2 programming fundamentals1.2 programming fundamentals
1.2 programming fundamentals
Jawad Khan
 
1.1 programming fundamentals
1.1 programming fundamentals1.1 programming fundamentals
1.1 programming fundamentals
Jawad Khan
 
7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments
Jawad Khan
 
6. emi instrument transformers (with marking)
6. emi   instrument transformers (with marking)6. emi   instrument transformers (with marking)
6. emi instrument transformers (with marking)
Jawad Khan
 
5 emi ac bridges (with marking)
5 emi  ac bridges (with marking)5 emi  ac bridges (with marking)
5 emi ac bridges (with marking)
Jawad Khan
 
4. emi potentiometer and ac bridges
4. emi  potentiometer and ac bridges4. emi  potentiometer and ac bridges
4. emi potentiometer and ac bridges
Jawad Khan
 
3 .emi wattmeter and energy meter
3 .emi   wattmeter and energy meter3 .emi   wattmeter and energy meter
3 .emi wattmeter and energy meter
Jawad Khan
 
2. emi analog electromechanical instruments
2. emi  analog electromechanical instruments2. emi  analog electromechanical instruments
2. emi analog electromechanical instruments
Jawad Khan
 
1. emi concept of measurement system
1. emi   concept of measurement system1. emi   concept of measurement system
1. emi concept of measurement system
Jawad Khan
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
Jawad Khan
 
Variable frequency response lecture 3 - audio
Variable frequency response   lecture 3 - audioVariable frequency response   lecture 3 - audio
Variable frequency response lecture 3 - audio
Jawad Khan
 
Varibale frequency response lecturer 1 - audio
Varibale frequency response   lecturer 1 - audioVaribale frequency response   lecturer 1 - audio
Varibale frequency response lecturer 1 - audio
Jawad Khan
 
Two port network - part 3
Two port network - part 3Two port network - part 3
Two port network - part 3
Jawad Khan
 
Two port network - part 2
Two port network - part 2Two port network - part 2
Two port network - part 2
Jawad Khan
 
Two port network - part 1
Two port network - part 1Two port network - part 1
Two port network - part 1
Jawad Khan
 
4. ideal transformer and load conversion
4. ideal transformer and load conversion4. ideal transformer and load conversion
4. ideal transformer and load conversion
Jawad Khan
 
3. magnetic coupled circuits examples
3. magnetic coupled circuits examples3. magnetic coupled circuits examples
3. magnetic coupled circuits examples
Jawad Khan
 
2. magnetic coupled circuits
2. magnetic coupled circuits2. magnetic coupled circuits
2. magnetic coupled circuits
Jawad Khan
 

More from Jawad Khan (20)

2.1 input and output in c
2.1 input and output in c2.1 input and output in c
2.1 input and output in c
 
2.2 variable arithmetics and logics
2.2 variable arithmetics and logics2.2 variable arithmetics and logics
2.2 variable arithmetics and logics
 
1.2 programming fundamentals
1.2 programming fundamentals1.2 programming fundamentals
1.2 programming fundamentals
 
1.1 programming fundamentals
1.1 programming fundamentals1.1 programming fundamentals
1.1 programming fundamentals
 
7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments7 8. emi - analog instruments and digital instruments
7 8. emi - analog instruments and digital instruments
 
6. emi instrument transformers (with marking)
6. emi   instrument transformers (with marking)6. emi   instrument transformers (with marking)
6. emi instrument transformers (with marking)
 
5 emi ac bridges (with marking)
5 emi  ac bridges (with marking)5 emi  ac bridges (with marking)
5 emi ac bridges (with marking)
 
4. emi potentiometer and ac bridges
4. emi  potentiometer and ac bridges4. emi  potentiometer and ac bridges
4. emi potentiometer and ac bridges
 
3 .emi wattmeter and energy meter
3 .emi   wattmeter and energy meter3 .emi   wattmeter and energy meter
3 .emi wattmeter and energy meter
 
2. emi analog electromechanical instruments
2. emi  analog electromechanical instruments2. emi  analog electromechanical instruments
2. emi analog electromechanical instruments
 
1. emi concept of measurement system
1. emi   concept of measurement system1. emi   concept of measurement system
1. emi concept of measurement system
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
 
Variable frequency response lecture 3 - audio
Variable frequency response   lecture 3 - audioVariable frequency response   lecture 3 - audio
Variable frequency response lecture 3 - audio
 
Varibale frequency response lecturer 1 - audio
Varibale frequency response   lecturer 1 - audioVaribale frequency response   lecturer 1 - audio
Varibale frequency response lecturer 1 - audio
 
Two port network - part 3
Two port network - part 3Two port network - part 3
Two port network - part 3
 
Two port network - part 2
Two port network - part 2Two port network - part 2
Two port network - part 2
 
Two port network - part 1
Two port network - part 1Two port network - part 1
Two port network - part 1
 
4. ideal transformer and load conversion
4. ideal transformer and load conversion4. ideal transformer and load conversion
4. ideal transformer and load conversion
 
3. magnetic coupled circuits examples
3. magnetic coupled circuits examples3. magnetic coupled circuits examples
3. magnetic coupled circuits examples
 
2. magnetic coupled circuits
2. magnetic coupled circuits2. magnetic coupled circuits
2. magnetic coupled circuits
 

Recently uploaded

Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 

Recently uploaded (20)

Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 

Ground to ns3 - Basic wireless topology implementation

  • 1. Ground to ns3 and Implementing wireless topology (Power Adaption) in ns3 plus visualization in Network Animator JAWAD ALI UNIVERSITY OF ENGINEERING AND TECHNOLOGY PESHAWAR
  • 2. Topics Covered  Introduction to ns3 and its comparison with ns2  Finding required modules for coding  Finding sample code  Understanding the code  Checking ns3 core-module.h  Adding animation interface to the code  Compiling and running simulation using NetAnim  Understanding the results from trace file
  • 3. Introduction to ns3 and its comparison with ns2  Ns3 is just like traditional network simulators and optimization softwares besides its ready to modify codes and open source licensing  The drawback of ns3 as well as ns2 is that we can’t see the Graphical User Interface (GUI) while building a project. All we can do is comment the c++ and otcl codes for its understanding. The topology is defined in c++ in ns3  Ns2 uses traditional otcl and c++ language for its coding on the other hand ns3 uses object oriented c++, gcc and python. Ns2 always needs otcl for its scripting and c++ for its core  In ns3, everything is c++. You should find it easy if you are good at OOP and c++  Ns2 only supports nam while ns3 supports both nam and PyViz for visualization  Overhead of connecting otcl with c++ in ns2 is removed in ns3, increasing simulation speed  Packet consists of a single portion in ns3 with metadata attached. Payload portion on the ns2 packet is this removed by defining packet as a single object.
  • 4. Finding required modules for coding  Networking follows standards and these standards are kept in certain header files called modules in ns3  For example, if want to initialize a node. You must initialize it as an object of the class called nodecontainer that is defined in the network-module.h of ns3.  The same network module is responsible for addressing such as ipv4 addressing scheme.  The internet-module.h knows upd and tcp protocol schemes and one should use it in any TCP/UDP based communication network.  Assigning applications to a node is done by referring to applicationcontainer, defined in applications-module.h  Visualization needs network animator module and node topology formation needs a topology module (e.g. point-to-point.h)  All of the above modules combined by core-module.h library that is responsible for the core work.
  • 5. Finding sample code  For a pro in ns3, it is easy to figure out which module he/she is going to need if the scenario is drawn on a rough page.  For example: Communication of a node with another node will require a topology defining module, node formatter module, payload calculation module, application, visualization module and core module.  For novice, it should be even a big deal to find a library. Though a library has to be known for its classes and functions which is even a higher difficulty.  Therefore, it is a good programming practice to use already implemented codes and modify according to our needs  Ns2 has a lot of online libraries as compared to ns3 but you need to understand otcl before any modification in those ns2 based codes  Ns3 has a variety of user manuals and implemented codes given in ~/source/ns-3-dev/examples/ that are ready to use and to modify. One can easily find the desired sample code by roaming through those examples
  • 6. Understanding the code  After finding the closest sample code in the library, one needs to understand it.  Online help and documentation of each example is available so we should be using that.  It is a good practice that one should first know about the scenario implemented in the example code before roaming through the defined classes and objects called by the developer of the code
  • 7. Checking the ns3 core-module.h Create a simple text file naming test1 in scratch directory of ns-3-dev with suffix .cc and write the following code in it #include <core-module.h> using namespace std; Int main (arg, arg ) { cout<<“testing ns3 in terminal”; Return 0; } Open terminal and type: cd source/ns-3-dev followed by ./waf –run test1 If you get the statement after you have written in console out. This most likely mean that your core-module is working fine.
  • 8. Adding Animation Interface to the code #include "ns3/netanim-module.h“ header has to be included for enabling animation generation in the compiling code Also, before Simulation::Run(); include AnimationInterface anim ("animation.xml"); //or any other distinct fie name
  • 9. Power Adaption (Compiling and running simulation using NetAnim)  The simulation consists of 4 Nodes. Of which, 2 nodes are mobile access points while 2 are Stations (STA#) • The APs generates UDP traffic with a CBR of 54 Mbps to the STAs. • The APs use any power and rate control mechanism, and the STAs use only * Minstrel rate control. • The STAs can be configured to be at any distance from the APs. # A station in networking is a device that follows 802.11 protocol
  • 10. Code to run in the terminal ./waf --run "power-adaptation-interference --manager=ns3::AparfWifiManager -- outputFileName=aparf” Changing STAs position ./waf --run "power-adaptation-interference --manager=ns3::AparfWifiManager -- outputFileName=aparf --STA1_x=5 --STA2_x=205“ To enable the log of rate and power changes export NS_LOG=PowerAdaptationInterference=level_info
  • 11. Animation Interface in NetAnim  Type ./NetAnim after exploring netanim directory in the terminal  Open the directory from where you have run the ./waf commands  Locate animation stored as .xml file  Open and run  Animation Interface consists of 3 tabs  Animator  Stat  Packet
  • 15. Analysis and Results (Understanding the results from trace file) The Following 6 quantities have been analyzed by the proposed Topology for APs  Throughput (Mbps)  AP idleTime (%age of second)  AP busyTime (%age of second)  Power Dissipation (mW)  AP as Receiver (%age up time per second)  AP as Transmitter (%age up time per second) Time Instant Tx-aparf1 Tx-apart0 throughput1 throughput0 idle1 idle0 busy1 busy0 rx1 rx0 Power1 Power0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 52.9808 45.4784 10.3603 10.5875 33.8566 35.1448 5.76876 7.79013 11.5843 7.3916 4.9284 0.659472 2 59.1136 56.0248 20.7206 21.5045 33.4268 36.4201 2.35267 0.748263 6.8124 5.1072 5.7252 0.531744 3 59.1136 55.488 20.8683 21.175 33.412 36.7731 2.30563 0.967239 6.7816 5.1436 5.7252 0.52664 4 58.8356 55.8052 20.7661 21.3227 33.743 36.6801 2.32732 0.799531 6.7172 5.1184 5.6992 0.529656 5 59.1404 55.7464 20.9138 21.425 33.4288 36.6905 2.28001 0.763888 6.7872 5.152 5.7278 0.535456 6 59.3548 55.732 20.9138 21.3568 33.132 36.5629 2.35578 0.862673 6.8376 5.1576 5.7486 0.535224 7 59.2644 55.9516 20.857 21.5954 33.3701 36.2275 2.2207 0.930718 6.8936 5.1408 5.7408 0.531048 8 58.5776 55.4392 20.4707 21.2091 33.968 37.0851 2.40021 0.672226 6.8068 5.0456 5.6732 0.526176 9 58.9796 55.5756 20.6866 21.2659 33.5553 36.7735 2.40223 0.817604 6.8404 5.0988 5.7122 0.550536 10 59.2376 55.8784 20.8115 21.3568 33.3806 36.6025 2.24398 0.716138 6.7844 5.1296 5.7382 0.530352 11 59.0332 55.8052 20.6298 21.3682 33.5933 36.637 2.28056 0.725678 6.8432 5.0848 5.7174 0.529656 12 59.194 55.5124 20.857 21.1864 33.427 36.9562 2.24389 0.761389 6.7872 5.1408 5.733 0.543576 13 59.184 55.6 20.8229 21.2432 33.3479 36.7179 2.32471 0.838697 6.8208 5.1324 5.733 0.5278 14 58.9796 55.6344 20.7661 21.3227 33.5214 36.6934 2.36825 0.795034 6.8656 5.1184 5.7122 0.528032 15 59.0332 55.7564 20.6866 21.4931 33.4809 36.6129 2.3799 0.800512 6.8572 5.0988 5.7174 0.547984 16 59.0768 55.4392 20.8115 21.1182 33.5986 37.0223 2.20354 0.709053 6.8236 5.1296 5.7226 0.526176 17 59.0064 55.5856 20.5957 21.2886 33.6015 36.7763 2.32926 0.853598 6.7928 5.0736 5.7148 0.527568 18 59.1404 55.4536 20.857 21.141 33.4281 36.8947 2.29049 0.838499 6.8012 5.1408 5.7278 0.526408 19 59.5324 55.6344 20.9251 21.2773 33.04 36.7367 2.28328 0.822367 6.818 5.1604 5.7668 0.528032 20 59.1672 56.2688 20.8229 21.7544 33.4277 36.1623 2.25863 0.768667 6.7816 5.1296 5.7304 0.534064 21 58.8188 55.5124 20.5389 21.1296 33.7787 37.1394 2.32681 0.596125 6.7452 5.0652 5.6966 0.526872 22 59.1572 55.9172 20.8229 21.425 33.3905 36.4438 2.34007 0.850693 6.7872 5.1324 5.7304 0.530816 23 58.4436 55.9028 20.3571 21.425 34.1779 36.6213 2.35477 0.732859 6.7648 5.0148 5.6602 0.530584 24 59.1404 55.2928 20.9024 21.1069 33.4001 37.2434 2.30798 0.676535 6.7732 5.1548 5.7278 0.524784 25 58.9428 55.3904 20.5389 21.1864 33.7325 36.9376 2.2517 0.845144 6.818 5.0624 5.7096 0.525712 26 59.2476 55.4292 20.7661 21.1637 33.3454 36.7894 2.31043 0.972126 6.8292 5.1184 5.7382 0.526176 27 59.06 55.6588 20.732 21.2205 33.4471 36.5981 2.37458 0.987638 6.7564 5.11 5.72 0.528264 28 59.2376 55.9028 20.891 21.5045 33.2947 36.4655 2.31681 0.770172 6.8684 5.1492 5.7382 0.530584 29 59.2476 55.732 20.8115 21.3454 33.334 36.7945 2.30442 0.671414 6.8012 5.1296 5.7382 0.52896 30 58.9528 55.6244 20.7888 21.2659 33.5567 36.8707 2.35888 0.673383 6.8292 5.124 5.7096 0.528032 31 58.6212 55.6588 20.5275 21.5272 33.9244 36.4521 2.40434 0.986992 6.8768 5.0596 5.6784 0.528264 32 59.06 55.854 20.7774 21.2886 33.4483 36.4513 2.32715 0.902484 6.8124 5.1212 5.72 0.536384 33 59.3012 55.4636 20.891 21.3114 33.3374 36.7813 2.22513 0.862616 6.8964 5.1492 5.7434 0.526408 34 58.8892 55.6832 20.5843 21.1637 33.6811 36.7574 2.36983 0.790068 6.7564 5.0736 5.7044 0.528496 35 59.6228 55.5756 21.0046 21.2318 33.0258 36.9463 2.17898 0.71646 6.7788 5.1772 5.7746 0.527568 36 59.2208 55.732 20.9592 21.3114 33.3157 36.5427 2.28811 0.884075 6.8488 5.166 5.7356 0.535224 37 59.4252 55.488 20.9024 21.1864 33.1864 36.8179 2.23405 0.814049 6.8544 5.152 5.7564 0.52664 38 59.5692 55.6588 20.857 21.3454 33.0376 36.5892 2.24727 0.945771 6.8236 5.1408 5.7694 0.528264 39 59.1672 55.6732 20.8115 21.2886 33.4333 36.6959 2.28041 0.788958 6.8488 5.1296 5.7304 0.528496 40 58.9428 55.9272 20.7888 21.3795 33.5342 36.5589 2.39844 0.668549 6.846 5.124 5.7096 0.53708 41 59.1404 55.7076 20.8002 21.3795 33.4625 36.6803 2.28589 0.775535 6.8096 5.1268 5.7278 0.528728 42 59.4352 55.9272 21.0274 21.3568 33.0607 36.6997 2.31616 0.700598 6.6864 5.1828 5.7564 0.530816 43 59.184 55.478 20.7888 21.1296 33.2908 37.0138 2.40762 0.708388 6.7788 5.124 5.733 0.52664 44 59.1136 55.2684 20.6525 21.2546 33.5426 36.9864 2.23338 0.842062 6.8768 5.0904 5.7252 0.524552 45 58.6044 55.732 20.3003 21.3114 34.1527 36.7433 2.25213 0.833982 6.7396 5.0036 5.6758 0.52896 46 58.9428 55.9028 20.6752 21.2773 33.6867 36.5856 2.28466 0.716905 6.7928 5.096 5.7096 0.530584 47 59.4888 55.6732 20.8683 21.3341 33.0399 36.7179 2.30612 0.845639 6.7648 5.1436 5.7616 0.528496 48 59.328 55.732 20.8115 21.2318 33.2596 36.8115 2.29437 0.676848 6.7788 5.1296 5.746 0.52896 49 59.2376 55.3416 20.7774 21.0728 33.2981 37.1807 2.347 0.644276 6.8376 5.1212 5.7382 0.525248 50 58.8188 55.6832 20.6866 21.2886 33.7912 36.7413 2.26438 0.721833 6.832 5.0988 5.6966 0.528496 51 59.328 55.2928 20.9706 21.1978 33.2829 37.1029 2.22112 0.784702 6.818 5.1688 5.746 0.531048 52 59.4252 56.1612 21.0955 21.6181 33.1387 36.3473 2.24291 0.668373 6.8292 5.1996 5.7564 0.533136 53 59.2744 55.976 20.8456 21.5386 33.2744 36.0766 2.31788 1.06793 6.888 5.138 5.7408 0.53128 54 58.8992 55.5856 20.5843 21.3227 33.787 36.7842 2.24424 0.806244 6.8152 5.0736 5.7044 0.533832 55 59.452 55.9272 21.0046 21.4022 33.1611 36.6106 2.21723 0.724072 6.7172 5.1772 5.759 0.530816 56 58.8724 55.722 20.5843 21.2432 33.806 36.7762 2.22969 0.758868 6.762 5.0736 5.7018 0.52896 57 58.658 55.9516 20.7434 21.4818 33.832 36.3712 2.41826 0.851094 6.8348 5.1128 5.681 0.537312 58 59.05 55.7564 20.7547 21.3 33.5144 36.6848 2.3268 0.730969 6.8236 5.1156 5.72 0.529192 59 59.0332 56.3176 20.8229 21.7544 33.3307 35.9013 2.47698 0.811473 6.9664 5.1324 5.7174 0.534528 60 58.7116 55.722 20.5048 21.3454 33.8873 36.7914 2.35031 0.715868 6.776 5.054 5.6862 0.52896 61 59.318 55.7076 20.891 21.4818 33.2303 36.5811 2.30487 0.854187 6.8628 5.1492 5.746 0.528728 62 58.8456 55.854 20.7661 21.3909 33.6903 36.567 2.36913 0.755179 6.8292 5.1184 5.6992 0.536384 63 59.3816 55.4636 20.857 21.3454 33.1012 36.9341 2.35365 0.808522 6.7872 5.138 5.7512 0.526408 1 5 9 1 3 0 5 10 15 20 25 30 35 40 1 5 9 1 3 1 7 2 1 0 1 2 3 4 5 6 7 8 9 1 5 9 1 3 1 7 2 1 2 5 0 1 2 3 4 5 6 7
  • 17. AP idleTime (%age of second)
  • 18. AP busyTime (%age of second)
  • 20. AP as Receiver (%age up time per second)
  • 21. AP as Transmitter (%age up time per second)
  • 22. End