LinuxQuestions.org
Help answer threads with 0 replies.
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 11-26-2013, 05:02 AM   #1
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Rep: Reputation: Disabled
Post Simulating LTE using NS2 with LE patch


Hello member
Am trying to simulate the LTE network using ns-2.33..I followed the discussion that is already carried here in this link
http://www.linuxquestions.org/questi...33-a-857930/#2

and it is working perfectly fine and am getting the output on #sh test
Quote:
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0 1 2 3 total(Mbyte)
0,04 0,03 0,00 1,20 1,27
0,01 0,00 0,00 0,05 0,05
0,00 0,00 0,00 0,00 0,00

0 1 2 3 total
0 0 0 0 0

awk: jitter.awk:42: (FILENAME=out.tr FNR=22988) fatal: attempted to divide by zero

check the out.txt out.tr out.nam for detailed information.
But when I try to run #ns lte.tcl present in lte-model-read-only
It will simulate something...and show an error called "invalid classid 30"

my question is, is this a warning? or is this working correctly??
and I want to plot the graph of these values. means how thought vaired in terms of load etc etc..Is there any documenetation realated to lte-model-read-only code??

There is a another code realted to this which is almost similar...called LTE-HVQ(hierarchical vector queue) that also showing same warning "invalid classid 30" and it produces some result which is again difficult to check for its correctness....

So will be very thankful if I get to know abt this error of "invalid class 30"

Last edited by sandeep10; 11-26-2013 at 05:05 AM.
 
Old 11-26-2013, 05:40 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,125

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
Welcome to LQ.

"invalid class 30" at running $ ns(-lte) lte.tcl :
The "23000 lines out.tr" is created (OK ?), so you can either
use that result / ignore the message, or try out one of the later files.tcl →
→ → lte-examples-0213.tar.gz →
https://drive.google.com/file/d/0B7S...it?usp=sharing
... e.g. eyana.tcl ( By @eyana ).
http://www.linuxquestions.org/questi...930/page3.html

LTE at LQ http://www.linuxquestions.org/questions/tags/lte/


-
 
1 members found this post helpful.
Old 11-27-2013, 09:49 AM   #3
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you sir, I got 22988 lines of out.tr

I managed to get the values of average jitter, average throughput and average dealy using the avgStats.awk, following the discussion on LQ, very thankful to you all

Is there any method or awk script to plot(or extract) the individual parameter like delay, jitter separately in graph using xgraph...I think it is possible..but what to extract from out.tr I mean which columns represent what parameter...

Can anyone suggest something related to plotting the results from out.tr as a graph

Last edited by sandeep10; 11-27-2013 at 11:53 AM.
 
Old 11-27-2013, 01:35 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,125

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
# 3 .
Quote:
.. which columns represent what parameter
ns2 trace format : http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats


And by the way, you can also use a tcl file, that creates a nice "nam plot".
Example : `eyana.tcl'.


-

Last edited by knudfl; 11-29-2013 at 12:26 PM.
 
Old 11-28-2013, 12:30 AM   #5
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you knudfl, its my misconception about the .tr file, now clearly understood about what each of the columns represent in .tr file..thanks for that link..

I used some of the awk filter like avgStats.awk and getThroughtput.awk, and managed to get the average throughput, delay and jitter...but these are average value..my work is to get the individual values of throughput or delay..like through w.r.t time or delay w.r.t time and plot them...

is there any such awk filter which can get the individual values and store it in some file??
Please let me know if there are any such methods...
 
Old 11-28-2013, 01:33 PM   #6
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you knudfl, finally I managed to get the awk filter which I was looking for and generated the graph...
Your suggestion related to LTE and ns2 are very helpful on LQ...very thankful to you...
 
Old 11-29-2013, 03:27 PM   #7
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
Sorry knudfl, I again messed with a problem..actually I found an awk filter which was fetching the throughput w.r.t time...I applied it on awk simple ns example..that is available here
http://ns2ultimate.tumblr.com/post/3...trace-ex1-link

and it is working fine, fetching values in 2 columns, using which I plotted graph using Xgraph..Here is the awk script I used

Quote:
BEGIN {
init=0;
i=0;
}
{
action = $1;
time = $2;
from = $3;
to = $4;
type = $5;
pktsize = $6;
flow_id = $8;
src = $9;
dst = $10;
seq_no = $11;
packet_id = $12;
if(action=="r" && from==2 && to==3 && flow_id==2) {
pkt_byte_sum[i+1]=pkt_byte_sum[i]+ pktsize;
if(init==0) {
start_time = time;
init = 1;
}
end_time[i] = time;
i = i+1;
}
}
END {
printf("%.2f\t%.2f\n", end_time[0], 0);
for(j=1 ; j<i ; j++){
th = pkt_byte_sum[j] / (end_time[j] - start_time)*8/1000;
printf("%.2f\t%.2f\n", end_time[j], th);
}
printf("%.2f\t%.2f\n", end_time[i-1], 0);
}
But when I used the same script on the lte-model-read-only's out.tr...It displays 0.0 0.0 is all the columns...can you suggest any changes in the above code....I tried it on all lte.tcl file such as lte_HVQ, enaya.tcl, ltez.tcl etc etc...All showing same result...zero...Please help me with this one....thank you

Last edited by sandeep10; 11-29-2013 at 03:37 PM.
 
  


Reply


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
how to installing LTE module patch in NS2.33 kiwiw Ubuntu 179 02-27-2015 04:27 AM
Simulating LTE (4G) in NS2 Raniam Linux - Software 45 11-25-2013 06:40 AM
ns2 2.33 with lte patch transmission problem greg1 Linux - Newbie 0 08-14-2012 06:43 AM
please help me,, how to patch LTE module in NS2.33... hadi wibowo General 0 05-14-2012 12:16 PM
patch LTE module for ns2 Emna Linux - Newbie 1 03-10-2011 03:59 AM

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

All times are GMT -5. The time now is 01:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration