LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2015, 08:29 AM   #1
rc49
LQ Newbie
 
Registered: May 2015
Posts: 25

Rep: Reputation: Disabled
need awk script to calculate throughput in ns2.35


m luking for awk script to calculate throughput for wireless simulation using DSR protocol
any response will be appreciated....
this is trace my format

Sconfig 0.00000 tap: on snoop: rts? on errs? on
Sconfig 0.00000 salvage: on !bd replies? on
Sconfig 0.00000 grat error: on grat reply: on
Sconfig 0.00000 $reply for props: on ring 0 search: on
Sconfig 0.00000 using MOBICACHE
r 0.000000000 _8_ RTR --- 0 cbr 1000 [0 0 0 0] ------- [8:0 10:0 32 0] [0] 0 0
s 0.006923068 _8_ RTR --- 1 DSR 32 [0 0 0 0] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
s 0.007578068 _8_ MAC --- 1 DSR 90 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298511 _3_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298515 _0_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298541 _20_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298604 _2_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298691 _6_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298793 _7_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298797 _4_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008298825 _5_ MAC --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008323511 _3_ RTR --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008323515 _0_ RTR --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008323541 _20_ RTR --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
r 0.008323604 _2_ RTR --- 1 DSR 32 [0 ffffffff 8 800] ------- [8:255 10:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]

any response will be appreciated....
thnx

ns2.35
ubuntu 12.04 32bit
 
Old 08-21-2015, 08:42 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Off you go - make an effort yourself.
When you have trouble maybe we can help.
 
1 members found this post helpful.
Old 08-21-2015, 11:12 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
@rc49, you can start with trying out all the default throughput scripts :

avg_throughput.awk
avg_throughput-zigbee.awk
avg_thr_wirelss.awk
chainThroughput.pl
e2ethroughput.awk
flow-thr.awk
genthroughput.awk
instantThroughput.awk
instantThroughputStll.awk
Lianghui-throughput.pl
myflowcalcall_throu.awk
thpt.awk
thr_drop_delay.awk
thr-one.pl
Throughput2007.awk
throughput-8.pl
throughput-9.pl
throughput_newtrace.awk
throughput.pl
thruput.awk
updown-link-thr.pl
uu-cope_throughput.pl
wireless-thr.awk
>>> from ``awk-and-perl_scripts_12.2014.tar.gz''
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
1 members found this post helpful.
Old 08-21-2015, 01:38 PM   #4
rc49
LQ Newbie
 
Registered: May 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Smile yes sir ,,i will

Quote:
Originally Posted by syg00 View Post
Off you go - make an effort yourself.
When you have trouble maybe we can help.

yes sir,,,m trying it ,,,but not able to understand scripts,,i also tried some awk manuals but i m not able to figure out "from where i have to start"...thats y i posted here,,so that someone may provide some material to start with rather then starting from scratch

thanku sir
 
  


Reply

Tags
awk-ns2, ns2, ubuntu 12.04, wirelessnetworking


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] how to calculate throughput using TCPSTAT command? rajes4india Linux - Networking 3 03-31-2015 01:59 PM
an awk script to calculate energy consumption Faiza Al-Salti Linux - Networking 1 07-17-2014 01:20 PM
how to calculate throughput,delay,routingload vishalpolara Linux - Newbie 2 01-04-2013 01:54 AM
how to calculate throughput and delay characteristics for HCCA stud17 Linux - Newbie 1 11-09-2011 03:59 PM
calculate throughput in ns-2.34 sukrutha Linux - Newbie 0 09-18-2011 09:23 AM


All times are GMT -5. The time now is 02:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration