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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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.
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.
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 email@example.com
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?
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?
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.