LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-04-2014, 02:14 PM   #1
Aabha
Member
 
Registered: Aug 2014
Posts: 40

Rep: Reputation: Disabled
link bandwidth


Dear sir
during simulation of UMTS WLAN handover in ns-2.29 NIST add on module,duplex link between RNC and BS UMTS is SET as
$ns setup-Iub $bsUMTS $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000
Is there any rule to decide 15 ms delay, because with this setting when simulation performed and cross check the data rate supply and received, there were huge gap.
In my simulation i set an application of 1024 bytes with interval of 2ms, Single MN node received this application through CN.
duplex-link rnc router1 622Mbit 0.4ms DropTail 1000
duplex-link between router1 and CN 100MBit 5ms DropTail 1000
CN-------------Router1------------RNC----------------BS(umts)
please guide
Regards
 
Old 10-07-2014, 07:14 AM   #2
Aabha
Member
 
Registered: Aug 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
dear sir
I am simulating umts wlan integrated network with ns-2.29 (NIST add on) but having confusion in trace file generated as output.
When i calculated throughput with following script, results are not as per theoretical values. please guide or send another awk script for throughput.
Regards
As there is a problem with uploading, i am pasting file
BEGIN {
recv = 0
currTime = prevTime = 0
printf("# %10s %10s %5s %5s %15s %18s\n\n", \
"flow","flowType","src","dst","time","throughput")
}

{
# Trace line format: normal
if ($2 != "-t") {
event = $1
time = $2
if (event == "+" || event == "-") node_id = $3
if (event == "r" || event == "d") node_id = $4
flow_id = $8
pkt_id = $12
pkt_size = $6
flow_t = $5
level = "AGT"
}
# Trace line format: new
if ($2 == "-t") {
event = $1
time = $3
node_id = $5
flow_id = $39
pkt_id = $41
pkt_size = $37
flow_t = $45
level = $19
}

# Init prevTime to the first packet recv time
if(prevTime == 0)
prevTime = time

# Calculate total received packets' size
if (level == "AGT" && flow_id == flow && node_id == dst &&
event == "r" && pkt_size >= pkt) {
# Rip off the header
hdr_size = pkt_size % pkt
pkt_size -= hdr_size
# Store received packet's size
recv += pkt_size
# This 'if' is introduce to obtain clearer
# plots from the output of this script
if((time - prevTime) >= tic*10) {
printf(" %10g %10s %5d %5d %15g %18g\n", \
flow,flow_t,src,dst,(prevTime+1.0),0)
printf(" %10g %10s %5d %5d %15g %18g\n", \
flow,flow_t,src,dst,(time-1.0),0)
}
currTime += (time - prevTime)
if (currTime >= tic) {
printf(" %10g %10s %5d %5d %15g %18g\n", \
flow,flow_t,src,dst,time,(recv/currTime)*(1/1000))
recv = 0
currTime = 0
}
prevTime = time
}

}

END {
printf("\n\n")
}
 
Old 10-08-2014, 01:14 AM   #3
Aabha
Member
 
Registered: Aug 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
Dear sir
pl. reply for above two post...
regards
 
  


Reply

Tags
nist-mob, ns2


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
Ubuntu 11.04 Bonding Mode 802.3ad behaves link single link mdfakkeer Linux - Networking 6 11-26-2011 03:11 AM
Bandwidth as a Link Metric (routing point of view) mq15 Linux - Networking 4 07-28-2009 02:21 PM
What does it mean by the Bandwidth of a link/connection/netwrok? mq15 Linux - Networking 6 07-20-2009 10:18 AM
skge: eth0: Link is up... Link is down... Link is up.... sugar2 Linux - Hardware 5 07-03-2007 04:52 PM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM


All times are GMT -5. The time now is 10:41 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