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 04-07-2011, 03:18 PM   #1
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Rep: Reputation: 28
Interesting awk files for ns2 mobile simulations


As knudfl told me some people use awk in this forum when they are working with ns2 traces, I've found three useful files, made by Marco Fiore some years ago. They help you to calculate the average throughput, the instant throughput and the jitter in a simulation. I've used them with umts. Changing parameters you check, you can see the flow of one, several or all the mobiles you are simulating and diferent types of packets. Just read the readme
I found them here: http://www.mail-archive.com/ns-users.../msg04656.html

I edit: Some people at University were having problems calculating the total flow using that script. I only made two changes, but I post the orginal file with my little changes here because it may help someone.

Kind regards
Attached Files
File Type: txt instantThroughputStll.awk.txt (2.1 KB, 262 views)

Last edited by unodior; 04-08-2011 at 02:48 AM.
 
Old 04-08-2011, 08:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Thank you.

I will pass the information to the LQ members, that asked for "ns2 awk".

Regards. .. ..
 
1 members found this post helpful.
Old 04-09-2011, 07:33 AM   #3
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I'm glad to be a little useful
When I study more and find other information I'll post it again

Kind Regards
 
Old 05-26-2011, 03:25 PM   #4
k_shaz
LQ Newbie
 
Registered: May 2011
Location: pakistan
Posts: 1

Rep: Reputation: Disabled
yes it useful..i m very much thankful to this forum
 
Old 05-27-2011, 01:07 AM   #5
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I'm glad you find it useful
This forum is wonderful. I've never been in a forum before and I am very grateful to these people that help you just because they want to and in their free time. Great people here!

Greets
 
Old 10-20-2011, 10:35 AM   #6
hamoodi
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by k_shaz View Post
yes it useful..i m very much thankful to this forum
thanx
 
Old 10-20-2011, 07:57 PM   #7
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
So not to be too picky but on having a quick look through the code there is a variable called 'pkt' which is never set / initialised and it is used in an if and a
mod (which will error):
Code:
if ((level == "AGT") &&  (event == "r") && (node_id >= min ) && (node_id <= max) && (pkt_size >= pkt) && (pkt_name == "AM_Data")) {
    # Rip off the header
    hdr_size = pkt_size % pkt
Seeing as this 'if' does most of the heavy lifting I am not sure how the results are accurate or the script even works.
 
Old 05-15-2012, 06:07 AM   #8
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Rep: Reputation: Disabled
@ unodior

Hi
I want to simulate UMTS with ns2 so I installed ns-2.30 with eurane
The problem that I don't know how can I do ??
I have the same work as you : http://www.linuxquestions.org/questi...ta-etc-869957/

I try with umts_am1movil.tcl and I have the trace file
but I don't understand how the result should be ???
I want to see your result
I hope that you can help me

Thank you a lot

Last edited by mounaboug; 05-15-2012 at 06:14 AM.
 
Old 05-26-2012, 06:26 PM   #9
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Rep: Reputation: Disabled
@ unodior

Hi
I want to simulate UMTS with ns2 so I installed ns-2.30 with eurane
The problem that I don't know how can I do ??
I have the same work as you : http://www.linuxquestions.org/questi...ta-etc-869957/

I try with umts_am1movil.tcl and I have the trace file
but I don't understand how the result should be ???
I want to see your result
I hope that you can help me

Thank you a lot
 
Old 05-27-2012, 07:22 AM   #10
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
@mounaboug: Please don't re-open old threads unless you have something specific to add to that discussion. There's no guarantee that the participants in this thread are even around any more, much less watching it for changes.

Since your question appears to have little to do directly with this topic, start a new thread for it. You can link back to this one if you feel it has any direct relevance.
 
Old 05-27-2012, 04:11 PM   #11
mounaboug
LQ Newbie
 
Registered: Apr 2012
Posts: 28

Rep: Reputation: Disabled
I 'm so sorry
I will post new thread

Thank you;
 
  


Reply



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
RED-PD files in NS2 Gayathriharini Linux - Software 10 03-13-2011 01:25 PM
LXer: New Toys: Interesting Mobile Linux Devices at CES LXer Syndicated Linux News 0 01-12-2010 04:20 AM
Is there any restriction in compiling the c++ files in ns2 library? shyan Linux - Newbie 1 12-12-2008 06:00 AM
TCP simulations lvxing Programming 1 09-22-2004 04:42 PM
TCP simulations lvxing Linux - Networking 2 09-21-2004 05:49 PM

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

All times are GMT -5. The time now is 12:43 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
Open Source Consulting | Domain Registration