LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2013, 10:31 AM   #16
nubuntu
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled

Hi there, I am a new ns2 user. Currently i am running ns-2.32 to simulate LAR protocol. Any body have an idea how to add CBR in LAR Protocol? And also how to analyze the trace file??
Thanks in Advance

Last edited by nubuntu; 09-28-2013 at 10:33 AM.
 
Old 10-02-2013, 11:19 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 16, @nubuntu : Welcome to LQ.

CBR : $ cd lar-examples/
Code:
$ grep -i cbr *
ARP_TCP-box.tcl:Agent/CBR set sport_            0
ARP_TCP-box.tcl:Agent/CBR set dport_            0
box-Helen.tcl:Agent/CBR set sport_ 0
box-Helen.tcl:Agent/CBR set dport_ 0
box-org.tcl:Agent/CBR set sport_            0
box-org.tcl:Agent/CBR set dport_            0
cbr-3-test:set cbr_(0) [new Application/Traffic/CBR]
cbr-3-test:$cbr_(0) set packetSize_ 512
cbr-3-test:$cbr_(0) set interval_ 4.0
cbr-3-test:$cbr_(0) set random_ 1
cbr-3-test:$cbr_(0) set maxpkts_ 10000
cbr-3-test:$cbr_(0) attach-agent $udp_(0)
cbr-3-test:$ns_ at 127.93667922166023 "$cbr_(0) start"
Deolasi-box.tcl:Agent/CBR set sport_            0
Deolasi-box.tcl:Agent/CBR set dport_            0
mob.2:set cbr_(0) [new Application/Traffic/CBR]
mob.2:$cbr_(0) set packetSize_ 512
mob.2:$cbr_(0) set interval_ 4.0
mob.2:$cbr_(0) set random_ 1
mob.2:$cbr_(0) set maxpkts_ 10000
mob.2:$cbr_(0) attach-agent $udp_(0)
mob.2:$ns_ at 127.93667922166023 "$cbr_(0) start"
step.tcl:Agent/CBR set sport_            0
step.tcl:Agent/CBR set dport_            0
test.mob:set cbr_(0) [new Application/Traffic/CBR]
test.mob:$cbr_(0) set packetSize_ 512
test.mob:$cbr_(0) set interval_ 4.0
test.mob:$cbr_(0) set random_ 1
test.mob:$cbr_(0) set maxpkts_ 10000
test.mob:$cbr_(0) attach-agent $udp_(0)
test.mob:$ns_ at 127.93667922166023 "$cbr_(0) start"
... Which means that "cbr" is already present in the tcl scripts.

Analyzing trace files : Use an awk script / a perl script.
$ awk -f <script>.awk <file>.tr
Awk scripts : awk_scripts.07-2013.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
Old 12-16-2014, 10:37 PM   #18
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
i mailed to @billyfuad for sendData ,
I read all the material on this link "http://www.linuxquestions.org/questions/tags/lar/"
but didn't get any answer
Also, i want to use cbr over LAR , in "cbr-3-test" they have specified connection between nodes and sending of traffic but this file was not called in any of the tcl files present in lar-examples folder.
i tried to include cbr files in box.tcl and commented sendData lines , then it is shoing no error but in trace file no send data and all node statistics are zero.

another help how can i contact Dhaval Deolasi or Helen jameel. might they can answer my question as they are working on this.

plz help...
 
Old 12-17-2014, 03:38 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #18 .

``cbr-3-test´´ = mob.2 : used in dream_2.tcl, wpan_demo1__Dream2.tcl.


Contact : Try with a click on your name → Left column,
and select "Send email to sims2801".
..... The same for many other LQ members.


About http://www.linuxquestions.org/questi...s2-4175528436/
This will show where `sendData´ is defined :
$ cd ns-2.xx/ && grep -Rin sendData *
..... Seems to be mac/files.cc .

-
 
Old 12-17-2014, 05:21 AM   #20
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
when i click on the name (left side) their is no such kind of option "Send email to". sorry i am bothering you again for a small thing
 
Old 12-17-2014, 05:41 AM   #21
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
their is no dream_2.tcl, wpan_demo1__Dream2.tcl in larexamples folder .
and in dream folder (patched with lar for ns-2.32), their is no such variable "cbr-3-test" or file name used.
 
Old 12-17-2014, 06:43 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #21 .

LAR + DREAM examples : lar+dream-examples-0714.tar.gz, #2 here
http://www.linuxquestions.org/questi...-4175508306/#2


* Be aware that the copy of cbr-3-test ( mob.2 )
is used only in the absence of a dedicated file.
I.e. cbr-3-test is a random choice.
A new file can be created with cbrgen.tcl, like this example :
$ ns cbrgen.tcl -type cbr -nn 20 -seed 1.0 -mc 8 -rate 4.0 >> file
-
Attached Thumbnails
Click image for larger version

Name:	screen465.jpg
Views:	22
Size:	12.2 KB
ID:	17141  
 
Old 12-17-2014, 09:14 PM   #23
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
this what i am getting plz see the attached image
could you please ask helen and Dhaval Deolasi on my behalf . i asked @billyfuad but no reply.

"how we send data in lar / how we attach cbr agents on top of LAR "

cbr-3-test -- yes i know we can create the file with cbrgen utility but when i am trying to include with lar agents then all node statsitics are zero . there is no send data in trace file. also then i am confused what is the purpose of sendData . if sendData then where CBR to be used ? or if not ............... lots of confusion .

thanks for ur kind help
Attached Thumbnails
Click image for larger version

Name:	New Bitmap Image.JPG
Views:	29
Size:	156.2 KB
ID:	17150  
 
Old 12-18-2014, 10:02 PM   #24
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
i have attached CBR traffic on top of LAR agents. now i have 3 options

1) without sendData and with CBR traffic on top of LAR ==> then .tr file, their is no LAR packets.

2) with sendData and without CBR traffic on top of LAR ==> thn in .tr file , there is no "s" packet , no AODV packets , only LAR packets

3) with sendData and with CBR traffic on top of LAR , there are LAR packets , AODV packets.

i want to compare with LAR and without LAR. I am not clear which option should i choose and suppose with sendData , then in sendData source and destination should be the same as source and destination used in CBR traffic.

kindly help. lots of thanks
 
Old 04-28-2015, 01:01 AM   #25
Mellia
LQ Newbie
 
Registered: Mar 2015
Posts: 12

Rep: Reputation: Disabled
hi i want to patch LAR protocol in my ns-2.35. Is it possible?
 
Old 04-28-2015, 04:15 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #25, @Mellia.

Yes, seems to work OK : LAR-dream__ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

* The patch is for a clean original ns-2.35 !
If you want want LAR + DREAM to live together with another added protocol, please ask.
ZRP ? ? We can then create a combined patch, or / and a patch to add to "zrp".

Note : You can have as many ns-allinone-2.35 as you want, installed at the same time.

-
 
Old 04-28-2015, 10:05 PM   #27
sims2801
Member
 
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
@Kundfl

can we have lar patch for ns-2.34 also ?
could you please share
 
Old 04-29-2015, 01:01 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #27.

* ns-2.34 + {LAR, DREAM} : Patch 'toilers-lar-dream_ns234-1.patch' ( 16 Sept 2014 )
Link : https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 04-03-2016, 08:15 PM   #29
pragathiy
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
attaching CBR traffic on top of LAR agents?

Did anyone find how to attach the CBR traffic on top of LAR agents?
In case found please share it.

------------------------------------------------------------------------------------------







Quote:
Originally Posted by sims2801 View Post
i have attached CBR traffic on top of LAR agents. now i have 3 options

1) without sendData and with CBR traffic on top of LAR ==> then .tr file, their is no LAR packets.

2) with sendData and without CBR traffic on top of LAR ==> thn in .tr file , there is no "s" packet , no AODV packets , only LAR packets

3) with sendData and with CBR traffic on top of LAR , there are LAR packets , AODV packets.

i want to compare with LAR and without LAR. I am not clear which option should i choose and suppose with sendData , then in sendData source and destination should be the same as source and destination used in CBR traffic.

kindly help. lots of thanks
 
  


Reply

Tags
lar, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding new protocol to ns2 savankiran Programming 3 03-22-2017 01:39 PM
NS2: MFR and LAR routing protocol anisabutsi Linux - Software 1 06-04-2013 12:20 PM
make error in ns2.29 when adding new protocol assassin91 Linux - Newbie 25 04-23-2012 11:17 PM
error in adding new protocol in ns2.34 for fedora 14 jothi8 LinuxQuestions.org Member Success Stories 0 03-05-2012 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration