Enviar pesquisa
Carregar
Wired and Wireless Examples in ns2
•
1 gostou
•
4,774 visualizações
Pradeep Kumar TS
Seguir
This shows the example of a wired and wireless example in ns2 (Network simulator 2)
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 11
Baixar agora
Baixar para ler offline
Recomendados
Transport layer
Transport layer
Mukesh Chinta
Point To Point Protocol
Point To Point Protocol
Phan Vuong
data-link layer protocols
data-link layer protocols
BE Smârt
transport layer
transport layer
priyadharshini murugan
Computer networks a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
pawan1809
Circuit Switching
Circuit Switching
Miles Kevin Galario
Flow & Error Control
Flow & Error Control
tameemyousaf
Chapter 3 - Data and Signals
Chapter 3 - Data and Signals
Wayne Jones Jnr
Recomendados
Transport layer
Transport layer
Mukesh Chinta
Point To Point Protocol
Point To Point Protocol
Phan Vuong
data-link layer protocols
data-link layer protocols
BE Smârt
transport layer
transport layer
priyadharshini murugan
Computer networks a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
pawan1809
Circuit Switching
Circuit Switching
Miles Kevin Galario
Flow & Error Control
Flow & Error Control
tameemyousaf
Chapter 3 - Data and Signals
Chapter 3 - Data and Signals
Wayne Jones Jnr
Chapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
Wayne Jones Jnr
Switching concepts Data communication and networks
Switching concepts Data communication and networks
Nt Arvind
Transportlayer tanenbaum
Transportlayer tanenbaum
Mahesh Kumar Chelimilla
Chapter 3: Data & Signals
Chapter 3: Data & Signals
Shafaan Khaliq Bhatti
4. block coding
4. block coding
MdFazleRabbi18
Data link layer
Data link layer
Sri Manakula Vinayagar Engineering College
Routing algorithm network layer
Routing algorithm network layer
sambhenilesh
Ch 06
Ch 06
soumya ranjan mohanty
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
ibrar562
Network layer tanenbaum
Network layer tanenbaum
Mahesh Kumar Chelimilla
Data link layer
Data link layer
Mukesh Chinta
Ns2
Ns2
Zainab Albayati
Chapter 11
Chapter 11
Faisal Mehmood
Physical layer ppt
Physical layer ppt
Najam Khattak
Lecture 5
Lecture 5
Mahesh Kumar Attri
Congestion control in TCP
Congestion control in TCP
selvakumar_b1985
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital Network
Madhumita Tamhane
Chapter 3
Chapter 3
Faisal Mehmood
Routing protocols-network-layer
Routing protocols-network-layer
Nitesh Singh
3. line coding( bipolar, multilevel, multitransition)
3. line coding( bipolar, multilevel, multitransition)
MdFazleRabbi18
Network Simulator Tutorial
Network Simulator Tutorial
cscarcas
Working with NS2
Working with NS2
chanchal214
Mais conteúdo relacionado
Mais procurados
Chapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
Wayne Jones Jnr
Switching concepts Data communication and networks
Switching concepts Data communication and networks
Nt Arvind
Transportlayer tanenbaum
Transportlayer tanenbaum
Mahesh Kumar Chelimilla
Chapter 3: Data & Signals
Chapter 3: Data & Signals
Shafaan Khaliq Bhatti
4. block coding
4. block coding
MdFazleRabbi18
Data link layer
Data link layer
Sri Manakula Vinayagar Engineering College
Routing algorithm network layer
Routing algorithm network layer
sambhenilesh
Ch 06
Ch 06
soumya ranjan mohanty
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
ibrar562
Network layer tanenbaum
Network layer tanenbaum
Mahesh Kumar Chelimilla
Data link layer
Data link layer
Mukesh Chinta
Ns2
Ns2
Zainab Albayati
Chapter 11
Chapter 11
Faisal Mehmood
Physical layer ppt
Physical layer ppt
Najam Khattak
Lecture 5
Lecture 5
Mahesh Kumar Attri
Congestion control in TCP
Congestion control in TCP
selvakumar_b1985
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital Network
Madhumita Tamhane
Chapter 3
Chapter 3
Faisal Mehmood
Routing protocols-network-layer
Routing protocols-network-layer
Nitesh Singh
3. line coding( bipolar, multilevel, multitransition)
3. line coding( bipolar, multilevel, multitransition)
MdFazleRabbi18
Mais procurados
(20)
Chapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
Switching concepts Data communication and networks
Switching concepts Data communication and networks
Transportlayer tanenbaum
Transportlayer tanenbaum
Chapter 3: Data & Signals
Chapter 3: Data & Signals
4. block coding
4. block coding
Data link layer
Data link layer
Routing algorithm network layer
Routing algorithm network layer
Ch 06
Ch 06
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
Network layer tanenbaum
Network layer tanenbaum
Data link layer
Data link layer
Ns2
Ns2
Chapter 11
Chapter 11
Physical layer ppt
Physical layer ppt
Lecture 5
Lecture 5
Congestion control in TCP
Congestion control in TCP
ISDN Integrated Services Digital Network
ISDN Integrated Services Digital Network
Chapter 3
Chapter 3
Routing protocols-network-layer
Routing protocols-network-layer
3. line coding( bipolar, multilevel, multitransition)
3. line coding( bipolar, multilevel, multitransition)
Semelhante a Wired and Wireless Examples in ns2
Network Simulator Tutorial
Network Simulator Tutorial
cscarcas
Working with NS2
Working with NS2
chanchal214
Introduction to ns2
Introduction to ns2
ProfDrSharadSharma
Cs757 ns2-tutorial-exercise
Cs757 ns2-tutorial-exercise
Pratik Joshi
Ns 2 Network Simulator An Introduction
Ns 2 Network Simulator An Introduction
Jaipur National University, Jaipur, Rajasthan, India
Ns2
Ns2
varsha mohite
NS2 (1).docx
NS2 (1).docx
SanjayDharmaraj
NS2-tutorial.ppt
NS2-tutorial.ppt
Wajath
18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf
Selvaraj Seerangan
NS2-tutorial.pdf
NS2-tutorial.pdf
srinivasa gowda
cscn1819.pdf
cscn1819.pdf
Anil Sagar
Ns2pre
Ns2pre
Pratik Joshi
link-state-routing-3.pdf
link-state-routing-3.pdf
Jayaprasanna4
Virtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc Networks
Ramco Institute of Technology, Rajapalayam, Tamilnadu, India
Ns2
Ns2
namitay
Study of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proram
Meenakshi Devi
Tut hemant ns2
Tut hemant ns2
crescent000
Session 1 introduction to ns2
Session 1 introduction to ns2
thenmozhi ravichandran
study-of-network-simulator.pdf
study-of-network-simulator.pdf
Jayaprasanna4
A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...
IJCNCJournal
Semelhante a Wired and Wireless Examples in ns2
(20)
Network Simulator Tutorial
Network Simulator Tutorial
Working with NS2
Working with NS2
Introduction to ns2
Introduction to ns2
Cs757 ns2-tutorial-exercise
Cs757 ns2-tutorial-exercise
Ns 2 Network Simulator An Introduction
Ns 2 Network Simulator An Introduction
Ns2
Ns2
NS2 (1).docx
NS2 (1).docx
NS2-tutorial.ppt
NS2-tutorial.ppt
18CSL51 - Network Lab Manual.pdf
18CSL51 - Network Lab Manual.pdf
NS2-tutorial.pdf
NS2-tutorial.pdf
cscn1819.pdf
cscn1819.pdf
Ns2pre
Ns2pre
link-state-routing-3.pdf
link-state-routing-3.pdf
Virtual lab - Routing in Mobile Adhoc Networks
Virtual lab - Routing in Mobile Adhoc Networks
Ns2
Ns2
Study of aloha protocol using ns2 network java proram
Study of aloha protocol using ns2 network java proram
Tut hemant ns2
Tut hemant ns2
Session 1 introduction to ns2
Session 1 introduction to ns2
study-of-network-simulator.pdf
study-of-network-simulator.pdf
A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...
Mais de Pradeep Kumar TS
Digital Portfolio and Footprint
Digital Portfolio and Footprint
Pradeep Kumar TS
Open book Examination
Open book Examination
Pradeep Kumar TS
Software Define Networking (SDN)
Software Define Networking (SDN)
Pradeep Kumar TS
What next - Career Enhancement of Graduates
What next - Career Enhancement of Graduates
Pradeep Kumar TS
Protothreads
Protothreads
Pradeep Kumar TS
6LoWPAN
6LoWPAN
Pradeep Kumar TS
Software Defined Networks
Software Defined Networks
Pradeep Kumar TS
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper setting
Pradeep Kumar TS
IoT Communication Protocols
IoT Communication Protocols
Pradeep Kumar TS
IoT Applications
IoT Applications
Pradeep Kumar TS
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy Networks
Pradeep Kumar TS
Mannasim for NS2
Mannasim for NS2
Pradeep Kumar TS
Recompiling network simulator 2
Recompiling network simulator 2
Pradeep Kumar TS
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2
Pradeep Kumar TS
Installation of ns2
Installation of ns2
Pradeep Kumar TS
Introduction to ns2
Introduction to ns2
Pradeep Kumar TS
Software Defined Networking - 1
Software Defined Networking - 1
Pradeep Kumar TS
Software Defined Networking - 2
Software Defined Networking - 2
Pradeep Kumar TS
Software Defined Networking - 3
Software Defined Networking - 3
Pradeep Kumar TS
Tracing and awk in ns2
Tracing and awk in ns2
Pradeep Kumar TS
Mais de Pradeep Kumar TS
(20)
Digital Portfolio and Footprint
Digital Portfolio and Footprint
Open book Examination
Open book Examination
Software Define Networking (SDN)
Software Define Networking (SDN)
What next - Career Enhancement of Graduates
What next - Career Enhancement of Graduates
Protothreads
Protothreads
6LoWPAN
6LoWPAN
Software Defined Networks
Software Defined Networks
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper setting
IoT Communication Protocols
IoT Communication Protocols
IoT Applications
IoT Applications
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy Networks
Mannasim for NS2
Mannasim for NS2
Recompiling network simulator 2
Recompiling network simulator 2
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2
Installation of ns2
Installation of ns2
Introduction to ns2
Introduction to ns2
Software Defined Networking - 1
Software Defined Networking - 1
Software Defined Networking - 2
Software Defined Networking - 2
Software Defined Networking - 3
Software Defined Networking - 3
Tracing and awk in ns2
Tracing and awk in ns2
Último
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
AmarnathKambale
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
WSO2
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
masabamasaba
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Jittipong Loespradit
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Bert Jan Schrijver
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
Juha-Pekka Tolvanen
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Philip Schwarz
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
WSO2
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
WSO2
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
masabamasaba
Último
(20)
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
Wired and Wireless Examples in ns2
1.
Wired and wireless example T S PRADEEP KUMAR VIT University – Chennai Campus http://www.pradeepkumar.org tspembedded@gmail.com www.facebook.com/tspradeep 1
2.
Wired Example 2
3.
Wired Example…. • This network consists of 4 nodes (n0, n1, n2, n3) as shown in above figure. • The duplex links between n0 and n2, and n1 and n2 have 2 Mbps of bandwidth and 10ms of delay. •
The duplex link between n2 and n3 has 1.7 Mbps of bandwidth and 20 ms of delay. • Each node uses a DropTail queue, of which the maximum size is 10. 3
4.
Wired Example…. #Create a simulator object set ns [new Simulator] #Open the NAM trace file set nf [open out.nam w] $ns namtrace-all $nf #color for data flow $ns color 1 red $ns color 2 blue #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] 4
5.
Wired Example…. #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the NAM trace file close $nf #Execute NAM on the trace file exec nam out.nam & exit 0 } 5
6.
Wired Example…. #Create links between the nodes $ns duplex-link $n0 $n2 2Mb 10ms DropTail $ns duplex-link $n1 $n2 2Mb 10ms DropTail $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail #Set Queue Size of link (n2-n3) to 10 $ns queue-limit $n2 $n3 10 #Give node position (for NAM) $ns duplex-link-op $n0 $n2 orient right-down $ns duplex-link-op $n1 $n2 orient right-up $ns duplex-link-op $n2 $n3 orient right #Monitor the queue for link (n2-n3). (for NAM) $ns duplex-link-op $n2 $n3 queuePos 0.5 6
7.
Wired Example…. #Setup a TCP connection set tcp [new Agent/TCP] $tcp set class_ 2 $ns attach-agent $n0 $tcp set sink [new Agent/TCPSink] $ns attach-agent $n3 $sink $ns connect $tcp $sink $tcp set fid_ 1 7
8.
Wired Example…. #Setup a FTP over TCP connection set ftp [new Application/FTP] $ftp attach-agent $tcp $ftp set type_ FTP #Setup a UDP connection set udp [new Agent/UDP] $ns attach-agent $n1 $udp set null [new Agent/Null] $ns attach-agent $n3 $null $ns connect $udp $null $udp set fid_ 2 8
9.
Wired Example…. #Setup a CBR over UDP connection set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp $cbr set type_ CBR $cbr set packet_size_ 1000 $cbr set rate_ 1mb $cbr set random_ false 9
10.
Wired Example…. #Schedule events for the CBR and FTP agents $ns at 0.1 "$cbr start" $ns at 1.0 "$ftp start" $ns at 4.0 "$ftp stop" $ns at 4.5 "$cbr stop" #Detach tcp and sink agents (not really necessary) $ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" #Call the finish procedure after 5 seconds of simulation time $ns at 5.0 "finish" #Print CBR packet size and interval puts "CBR packet size = [$cbr set packet_size_]" puts "CBR interval = [$cbr set interval_]" #Run the simulation $ns run 10
11.
Output 11
Baixar agora