Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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)
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.
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.
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.
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.
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
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?
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.