LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-21-2011, 09:34 PM   #16
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
awk scripts


Hello silvapearl,

#awk script:
AVG_DELAY_SCRIPT.txt

#throughput:
genthroughput.awk.txt

To get send,receive log you need to run "plot_seq.pl"
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-21-2011, 09:39 PM   #17
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
plot_seq

Hello Hannaneh,
it is not necessary to use only TCP, you can modify the script
@ptype_filter = ("udp", "ack");
for udp as well..
But results are strange if you compare against all schemes.
 
Old 07-23-2011, 03:57 PM   #18
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
Thank you very much Sangram and Hannaneh.
Sangram,When I run the avg_delay_script,i get the following error awk:avg_delay_script.awk:39: (FILENAME=fhmip_plot_seq.pl FNR=163) fatal: division by zero attempted.

I think the following lines in the script are the cause of this:
n_to_n_delay=n_to_n_delay/count; (Because count is initialized as 0)
print "Packet Delivery Ratio=" receivedPackets/(seqno+1)*100 "%"; (Because seqno is initialized as -1)

Please help and advise,thanks
 
Old 07-23-2011, 04:02 PM   #19
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
Also when I try the command "fhmip_plot_seq.pl",I get a "bash: fhmip_plot_seq.pl: command not found"

Sorry but I am pretty new to this stuff,look forward to response. Thank you very much.
 
Old 07-24-2011, 10:22 PM   #20
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
script

A] comment out those two lines and check the generated,received and drop pkts.
Script is ok..seqno is initialized to -1 but it will changes as it found the application layer send items.
if($4 == "AGT" && $1 == "s" && seqno < $6)
Check manually in trace if you find it.

B] try this..
perl fhmip_plot_seq.pl traffic.tr
 
Old 07-24-2011, 11:48 PM   #21
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
hi Sangram,

Thanks once again for your response.I commented out those lines and ran the awk script as follows:

awk -f avg_delay.awk traffic.tr

and this is all I get

GeneratedPackets=1
ReceivedPackets=0
Packet Delivery Ratio=0
Total Dropped Packets=0
Average End-to-End Delay=0 ms

Also I ran the perl command (even though I had to comment out the line "open(secondarytrace, '0')" because it complaining about this line) and now I have the following files recv0.log,recv1.log,rev2.log.....and send0.log,send1.log.............

What am I meant to do with these files now??

Thank you very much once again I really really appreciate your help.
 
Old 07-25-2011, 03:20 AM   #22
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
result analysis

A]
Your results are horrible all "0".Which tcl file you are using? Are you using it for tcp or udp traffic?
In "avg_delay.awk" have you modified it according to tcp or udp?
If you have followed above steps properly and still getting same results then your patch is not installed correctly.Then Reinstall evrything and try again.

B]
perl file is for extracting sequence number.It shows send and receive by each node, you can use it for your genearting graphs , calculating handover delay...etc.
Refer to the hannaneh's link for detail information ..
look at this paper "A Comparison of Mechanisms for Improving Mobile IP Handoff Latency for End-to-End TCP" which has been wrote by the person who wrote the extension for NS-2.
 
Old 07-26-2011, 06:04 AM   #23
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
Hi Sangram,

Here's what I did from scratch.I got the FHMIP patch for ns2.31 and successfully installed it.In the ns2.31/mobile directory,the mip-reg.cc files says if you want to use just MIP,FMIP,HMIP,etc you block out a few things.For MIP I blocked out the following in the same file(mip-reg.cc) by commenting it out: #define MAP_MODE,#define FAST_HANDOVER,#define FAST_MAP_HANDOVER.To perform FMIP,I blocked out the others except #define FAST_HANDOVER and so forth for the other schemes.

I then go to the tcl/ex/fhmip directory and run the fhmip_simula.tcl file.(Note: I did not modify the fhmip_simula.tcl at all as I wanted to see what the results would look like when plotted before modifying it to fit my scenario).The simulation runs by displaying all sorts of gibberish on the screen.And then I needed to evaluate and view the results which was when I applied your awk script unmodified as well.

I also run the "perl fhmip_plot_seq.pl traffic.tr which generates 8 recv and send log files.

I have the following questions:
1) To simulate the different schemes,MIP,FMIP,FHMIP,HMIP the above modification to the mip-reg.cc I mentioned,is that all that needs to be done?

2)After running the simulation and then I have my send and recv log files ,how do I plot a graph comparing the Handover Latency for the different schemes with this log files.What command do I run for this? or do I need another script to do this? (Please help really explain this part because this is what I really need,I have read the above paper.But didn't really understand it much)

3)Regarding the avg_delay.awk script,I did not make any modifications to this regarding tcp or udp as you earlier asked,please what changes would I need to make and where?

I know this are a lot of questions,but I really appreciate your help and efforts so far.

Thank you
 
Old 07-26-2011, 02:27 PM   #24
harjotsg
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
hmipv6 with aaa

Hey

Can you please send me the base model of HMIPv6 and AAA for ns2.
I am going to change its messaging protocol for my project but i need the basic model for both.
Please mail me at harjotsg@yahoo.co.in




Quote:
Originally Posted by sangram_kokate View Post
I have installed sesons FHMIP1.3.1 extension in ns2.31.I am able to run the simulation properly for mipv6,hmipv6,fmipv6,fhmipv6 (by following same instrucion set).Now i want to compare teh results interms of throughput,handover latency,loss rate?
Can anybody guide me in right direction?
 
Old 07-27-2011, 05:24 AM   #25
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
guide lines

hello silvaperl,

1) After commenting as per instructions you need to run ns install again..using make, make clean
If you have used seasons patch , you need to re run ./install

2) As i previously mentioned check the google translate link it explain all things properly with graph.

3) hey just serach for "tcp" and "udp" in awk script and you will come to know.
 
Old 07-27-2011, 05:28 AM   #26
sangram_kokate
LQ Newbie
 
Registered: Jun 2011
Posts: 12

Rep: Reputation: Disabled
patch

hello harjotsg,
please check my previous comments..download link is there
 
Old 07-27-2011, 09:15 AM   #27
Hannaneh
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Original Poster
Rep: Reputation: 9
HMIPv6 with more than One MN

Hi, I am using HMIPv6 in ns-2 (ns-2.33 and FHMIPv6 patch)
I have 2 MNs which each receives 500K CBR traffic . when MN1 moves from HA to FA , during the Hand over time, MN2 throughput decrease significantly (from 500kbps to 100kbps) but after MN1 finishes its handover again MN2 comes back to the normal throughput (500kbps). has any one faced the same problem?
Thanks
Hannaneh
 
Old 07-29-2011, 09:33 AM   #28
harjotsg
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
hey sangram
the link you have shared is of FHMIPv6 but I require HMIPv6.
and DIAMETER or AAA system.

Can you please help me with this.

Thanks
 
Old 08-25-2011, 05:43 PM   #29
Hannaneh
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Original Poster
Rep: Reputation: 9
Hi,
Does anybody know how we can first define the wireless (Mobile) node and then wired node? i need to define first wireless and then wired but even when i turn off node-config after creating wirelss nodes, still NS-2 defines wireless node and not wired.

Many thanks,

Hannaneh
 
Old 09-21-2011, 06:01 AM   #30
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Can u please any one tell me, how to install 2.33? i am looking for compare HMIP6 vs MIPv6 an my OS is Ubuntu 10.10, please help me out, i have only 1week left for my M.SC final project. i found some errors about OTCL.
 
  


Reply

Tags
fhmip, hmipv6, mipv6, 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
How to implement HMIPv6 in ns2? bsyew Linux - Newbie 10 08-18-2012 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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