LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HMIPv6 in NS-2 (https://www.linuxquestions.org/questions/linux-newbie-8/hmipv6-in-ns-2-a-875461/)

Hannaneh 04-17-2011 10:39 AM

HMIPv6 in NS-2
 
Hi, I have installed fhmip extension in ns-allinone-2.33 . for HMIPv6 i just un blocked define map-mod in map-reg.cc and blocked all other defines and fhmip-simula.tcp is runing. i wrote the awk to calculate the end-to-end delay for packet but the result is strange. my code is:
BEGIN {

seqno = -1;
droppedPackets = 0;
count = 0;
num = 0;
flag = -1;
}
{
if ($1 == "+" && $5 =="tcp" && seqno < $12){
seqno = $12;
temp = seqno +1 ;
flag = 1;
} else if (seqno == $12) {
flag = -1;
}
if (seqno >-1 ){

if ($1 == "+" && $5 =="tcp" && flag == 1){
start_time[seqno] = $2;
packetID[seqno] = seqno;
time[seqno] = $2;

} else if(($7 == "tcp") && ($1 == "r") && $6 == seqno) {
end_time[seqno] = $2;

}
} ###if seqno > -1

}


END {

for(i=0; i<=seqno; i++) {
if(end_time[i] > 0) {

delay[i] = end_time[i] - start_time[i];
print time[i]" " delay[i] ;
count++;
} else
{
delay[i] = -1;
}
}

}
could anybody please have a look and see if it is correcr or not please?

many thanks

Hannaneh

sangram_kokate 06-30-2011 10:21 PM

handover latency
 
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?

Hannaneh 07-01-2011 03:35 PM

Handover Latency
 
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.

sangram_kokate 07-01-2011 09:15 PM

Handover Latency
 
Thanx Hannaneh, i have checked the paper but there is no hints on how to calculate the handover latecy (i.e. the last packet send from PAR and the first packet recived from the NAR) using awk.Can you please guide me on this?

Hannaneh 07-02-2011 01:54 PM

Quote:

Originally Posted by sangram_kokate (Post 4402066)
Thanx Hannaneh, i have checked the paper but there is no hints on how to calculate the handover latecy (i.e. the last packet send from PAR and the first packet recived from the NAR) using awk.Can you please guide me on this?


there is a file named fhmip_plot_seq.pl which calculats the handover delay and shows the plot.

sangram_kokate 07-04-2011 09:18 PM

awk scripts
 
I have already checked the "plot_seq.pl" file it is for "Sequence number extraction" only. It creates two separate file for "send" and "receive" for each node and shows the sequence numbers in it.I have tried the mohit's awk scripts[http://mohittahiliani.blogspot.com/2...-for-ns2.html] but the results are strange "pdr" and "throughput" is very less for fhmipv6 as compared to other schemes (i.e mipv6,hmipv6,fmipv6).Have you tried that? also there is "end to end delay" which is different from handover latency.Can you please help me on this?

Hannaneh 07-05-2011 09:25 AM

Regarding handover delay, there is clear specification about it in the paper: the time between the first time that packet has re-transmited and the last time that packet was send by sender, this time is clear in send0.log. you need to find the seq no that has been re-transmitted. the plot is base on seq no and time.

sangram_kokate 07-06-2011 10:45 PM

trace analysis
 
3 Attachment(s)
I have checked the plot_seq results but not able to get the packet which is transmitted from PAR.Can you please help me on this?.I am attaching here with fhmipv6.tcl (tcl script), plot_seq.pl (plot file), send_log(output of plot_seq file) .I am using udp for tarce analysis.

Attachment 7499

Attachment 7500

Attachment 7502

silvapearl 07-19-2011 11:49 AM

Hi Sangram,

Could you please explain how you successfully installed the FHMIP1.3.1 extension ns2.31,I would really appreciate as I am having all sorts of problems using FHMIP2.31 patch by Pedro on ns2.31.Thanks.

sangram_kokate 07-19-2011 09:36 PM

FHMIP1.3.1 Installation
 
Hello silvapearl ,

I have installed seasons FHMIP1.3.1 extension in ns2.31.

# Download links :
1) http://translate.google.co.in/transl...%26aid%3D16409
[Note: On "www.baisi.net" you can find lot of good resources related to ns2 installation,simulation.]

2) http://www.pudn.com/downloads103/sou...ail422234.html

# Installations instructions are clearly mentionded in pdf document..just rename pdf document to "FHMIP1.3.1.pdf" and you can view it (also you translate it with google for more clear understanding).

If you still found some problem, i can send extension just email me.

For your information i have tried this on winxp + cygwin + ns2.31 + fhmip1.3.1

silvapearl 07-20-2011 02:05 AM

Hi Sangram,

Thank you very much for your response. I have indeed successfully installed it and run the fhmip_simula.tcl scripts successfully.I however have another issue,when I want to run fmip or hmip or fhmip,i need to block out certain this out in the mip-reg.cc file and then run the tcl script again,this works just fine. But I cant make any sense of the trace files,I cant tell the difference in the results of the different(mip,fmip or fhmip) schemes I am running. I even checked out the fhmip_plot_seq.pl,that didnt make much sense either.

Please how do I evaluate the performance of these schemes e.g in terms of plotting graphs,etc.

Sorry to overwhelm you with so many questions,I am pretty new to ns.

silvapearl 07-20-2011 02:11 AM

Basically I am asking the next thing to do in order to determine delay and packet loss of the 3 different schemes(mip,fmip and fhmip) and then plot and compare these.

sangram_kokate 07-20-2011 10:26 PM

Script analysis
 
Hope this will help you ,
http://translate.google.co.in/transl...ails%2F3551405

silvapearl 07-21-2011 12:12 AM

Thank you once again Sangram for your response.I have visited the site,but because it is being translated by google,its a bit difficult making sense of what is written.
I have a few more questions,have you now been able to successfully compare the latency,throughput,loss rate etc, of mip,hmip,fmip and fhmip? If you have can you please attach the awk script you used.

The mohit script you mentioned above did you make modifications to it before you used it?

Also the "send_log" file you attached above,where is this located,because I see it defined in the plot_seq.pl file but I don't see the "send_log" file anywhere.

Thanks,I look forward to your response.

Hannaneh 07-21-2011 04:49 AM

You need to have TCP (Not UDP)traffic between MN and CN as the plot_seq.pl just filter TCP and shows the sequence numbers. plot_seq.pl just works for Handover latency , for other ones (i.e. packet lost, ...) you need to write your own script. but i recommend you first try to get some results for handover latency and compare it with the result in the paper which was written by the person who wrote the fhmip patch.
hope it works :)


All times are GMT -5. The time now is 10:05 AM.