Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-06-2015, 05:34 AM
|
#1
|
LQ Newbie
Registered: Sep 2014
Location: India
Posts: 17
Rep:
|
please help
hello all...
i want to work with ZRP. i need some help
i want to know tht if in case i want to analyze it's performance, how can i do it...plz explain me in detail. i am a begineer.
i hv ns-2.34 installed on fedora 20.
|
|
|
01-06-2015, 07:20 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Please edit your "please help" to a descriptive title.
I.e. "help" makes no sense. This is a "Help Forum" !
→ http://www.linuxquestions.org/linux/...Ask_a_Question
→ → Your Thread Title ... ..
Fedora : # yum install compat-gcc-34-c++
ZRP, Fedora :
1) $ tar xvf ns-allinone-2.34.tar.gz
2) $ cd ns-allinone-2.34/
3) $ patch -p0 < zrp-ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
4) $ export CC=gcc34 CXX=g++34
5) $ ./install
6) $ cd ns-2.34/
7) $ cp ns ns-zrp
8) $ su <enter-root-password>
9) # cp ns-zrp /usr/local/bin/
... Then you can do : $ ns-zrp <example>.tcl
... from zrp-examples-2012.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
|
|
1 members found this post helpful.
|
01-06-2015, 01:12 PM
|
#3
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,636
|
to add
I KNOW !!!!! that the school system in India did NOT!!! teach you to SPELL
"Please" as = plz
and
"have" as = hv
this site is not a 140 sms text message
so do not spell things as it it was .
|
|
|
01-06-2015, 03:17 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,148
|
Quote:
Originally Posted by roop kor
hello all...
i want to work with ZRP. i need some help i want to know tht if in case i want to analyze it's performance, how can i do it...plz explain me in detail. i am a begineer. i hv ns-2.34 installed on fedora 20.
|
Please see the LQ Rules about text-speak...it's not pleasant for anyone, so please don't use it.
Also, you posted about ZRP four months ago:
http://www.linuxquestions.org/questi...s2-4175519601/
...and were given links and instructions about how to install it and use it. And after four months, have you not progressed any in your experience and learning of NS2 or ZRP? You also need to define what you mean by "performance" and what you want to measure it against; this should dovetail nicely in with what you were told about xgraph, shouldn't it????
http://www.linuxquestions.org/questi...s2-4175524529/
|
|
|
03-29-2015, 01:57 AM
|
#5
|
LQ Newbie
Registered: Sep 2014
Location: India
Posts: 17
Original Poster
Rep:
|
Having Trouble with Calculating Packet delivery ratio in DSDV
this is my script
# Simulator Instance Creation
set ns [new Simulator]
#Fixing the co-ordinate of simutaion area
set val(x) 800
set val(y) 800
# Define options
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 5 ;# number of mobilenodes
set val(rp) DSDV ;# routing protocol
set val(x) 800 ;# X dimension of topography
set val(y) 800 ;# Y dimension of topography
set val(stop) 10.0 ;# time of simulation end
# set up topography object
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
#Nam File Creation nam - network animator
set namfile [open dn5.nam w]
#Tracing all the events and cofiguration
$ns namtrace-all-wireless $namfile $val(x) $val(y)
#Trace File creation
set tracefile [open dn5.tr w]
#Tracing all the events and cofiguration
$ns trace-all $tracefile
# general operational descriptor- storing the hop details in the network
create-god $val(nn)
# configure the nodes
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace ON
#################################################################################################### #######
# Node Creation
set node0 [$ns node]
# Initial color of the node
$node0 color black
#Location fixing for a single node
$node0 set X_ 100
$node0 set Y_ 200
$node0 set Z_ 0
set node1 [$ns node]
$node1 color black
$node1 set X_ 150
$node1 set Y_ 400
$node1 set Z_ 0
set node2 [$ns node]
$node2 color black
$node2 set X_ 200
$node2 set Y_ 500
$node2 set Z_ 0
set node3 [$ns node]
$node3 color black
$node3 set X_ 400
$node3 set Y_ 300
$node3 set Z_ 0
set node4 [$ns node]
$node4 color black
$node4 set X_ 500
$node4 set Y_ 300
$node4 set Z_ 0
# Label and coloring
$ns at 0.1 "$node0 color blue"
$ns at 0.1 "$node0 label Node0"
$ns at 0.1 "$node1 color black"
$ns at 0.1 "$node1 label Node1"
$ns at 0.1 "$node2 color red"
$ns at 0.1 "$node2 label Node2"
$ns at 0.1 "$node3 color black"
$ns at 0.1 "$node3 label Node3"
$ns at 0.1 "$node4 color blue"
$ns at 0.1 "$node4 label Node4"
#Size of the node
$ns initial_node_pos $node0 30
$ns initial_node_pos $node1 30
$ns initial_node_pos $node2 30
$ns initial_node_pos $node3 30
$ns initial_node_pos $node4 30
#################################################################################################### #######
# Defining a transport agent for sending
set tcp0 [new Agent/TCP]
# Attaching transport agent to sender node
$ns attach-agent $node0 $tcp0
# Defining a transport agent for receiving
set sink0 [new Agent/TCPSink]
# Attaching transport agent to receiver node
$ns attach-agent $node1 $sink0
#Connecting sending and receiving transport agents
$ns connect $tcp0 $sink0
# Defining a transport agent for sending
set tcp1 [new Agent/TCP]
# Attaching transport agent to sender node
$ns attach-agent $node1 $tcp1
# Defining a transport agent for receiving
set sink1 [new Agent/TCPSink]
# Attaching transport agent to receiver node
$ns attach-agent $node2 $sink1
#Connecting sending and receiving transport agents
$ns connect $tcp1 $sink1
# Defining a transport agent for sending
set tcp2 [new Agent/TCP]
# Attaching transport agent to sender node
$ns attach-agent $node2 $tcp2
# Defining a transport agent for receiving
set sink2 [new Agent/TCPSink]
# Attaching transport agent to receiver node
$ns attach-agent $node3 $sink2
#Connecting sending and receiving transport agents
$ns connect $tcp2 $sink2
# Defining a transport agent for sending
set tcp3 [new Agent/TCP]
# Attaching transport agent to sender node
$ns attach-agent $node3 $tcp3
# Defining a transport agent for receiving
set sink3 [new Agent/TCPSink]
# Attaching transport agent to receiver node
$ns attach-agent $node4 $sink3
#Connecting sending and receiving transport agents
$ns connect $tcp3 $sink3
# Defining a transport agent for sending
#set tcp4 [new Agent/TCP]
# Attaching transport agent to sender node
#$ns attach-agent $node4 $tcp4
# Defining a transport agent for receiving
#set sink4 [new Agent/TCPSink]
# Attaching transport agent to receiver node
#$ns attach-agent $node $sink4
#Connecting sending and receiving transport agents
#$ns connect $tcp4 $sink4
#################################################################################################### #######
#Defining Application instance
set ftp0 [new Application/FTP]
# Attaching transport agent to application agent
$ftp0 attach-agent $tcp0
# data packet generation starting time
$ns at 1.0 "$ftp0 start"
# data packet generation ending time
$ns at 3.0 "$ftp0 stop"
#Defining Application instance
set ftp1 [new Application/FTP]
# Attaching transport agent to application agent
$ftp1 attach-agent $tcp1
# data packet generation starting time
$ns at 1.5 "$ftp1 start"
# data packet generation ending time
$ns at 4.0 "$ftp1 stop"
#Defining Application instance
set ftp2 [new Application/FTP]
# Attaching transport agent to application agent
$ftp2 attach-agent $tcp2
# data packet generation starting time
$ns at 4.0 "$ftp2 start"
# data packet generation ending time
$ns at 7.0 "$ftp2 stop"
#Defining Application instance
set ftp3 [new Application/FTP]
# Attaching transport agent to application agent
$ftp3 attach-agent $tcp3
# data packet generation starting time
$ns at 6.5 "$ftp3 start"
# data packet generation ending time
$ns at 8.5 "$ftp3 stop"
#Defining Application instance
#set ftp4 [new Application/FTP]
# Attaching transport agent to application agent
#$ftp4 attach-agent $tcp4
# data packet generation starting time
#$ns at 8.5 "$ftp4 start"
# data packet generation ending time
#$ns at 9.7 "$ftp4 stop"
#################################################################################################### #######
# For mobility 250= movement x value, 450=movement y value, 50=speed in m/s
#$ns at 3.0 "$node2 setdest 250 450 50"
# For mobility 350= movement x value, 250=movement y value, 50=speed in m/s
#$ns at 5.5 "$node3 setdest 350 250 50"
#################################################################################################### #######
# ending nam and the simulation
$ns at $val(stop) "$ns nam-end-wireless $val(stop)"
$ns at $val(stop) "stop"
#Stopping the scheduler
$ns at 10.01 "puts \"end simulation\" ; $ns halt"
#$ns at 10.01 "$ns halt"
proc stop {} {
global namfile tracefile ns
$ns flush-trace
close $namfile
close $tracefile
#executing nam file
exec nam dn5.nam &
}
#Starting scheduler
$ns run
It runs successfully and also shows transmission in nam
but when i run the commands like
grep "^s.*\-Nl AGT.*\-It tcp.*" dn.tr | wc -l
grep "^r.*\-Nl AGT.*\-It tcp.*" dn.tr | wc -l
for sent and received packets respectively
It shows '0' in both the cases.
can you plz help me out ...where is the error in my code
|
|
|
All times are GMT -5. The time now is 05:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|