#!/usr/bin/perl # # $Copyright$ # # $TAHI: ct/mip6-cn-19/Delete_LT0_FOREIGN.seq,v 1.6 2003/01/12 08:00:55 akisada Exp $ # ################################################################ BEGIN {$V6evalTool::TestVersion = '$Name: $';} use V6evalTool; use MIP6; my $IF0 = 'Link0'; my $NutType = $V6evalTool::NutDef{'Type'}; vCapture($IF0); #--------------------------------------------------------------# vLogHTML('INITIALIZATION
'); vClear($IF0); vLogHTML('Check Reachability
'); if(MIP6_CheckReachability($IF0) < 0) { vLogHTML('Can\'t get Echo Reply
'); exit($V6evalTool::exitFail); } vClear($IF0); vLogHTML('Return Routability Procedure
'); my %rr = MIP6_ReturnRoutability($IF0); if($rr{'status'} < 0) { vLogHTML('Can\'t complete RR
'); exit($V6evalTool::exitFail); } vClear($IF0); vLogHTML('Requests to Cache a Binding
'); my $sn = 0; my $a = 0; my $lt = 0xffff; if(MIP6_ProcessingBindingsNoAck($IF0, $sn, $a, $lt, %rr) < 0) { vLogHTML('BA SHOULD NOT be sent.
'); exit($V6evalTool::exitWarn); } vClear($IF0); vLogHTML('Check Binding Cache
'); if(MIP6_CheckBindingCache($IF0) < 0) { vLogHTML('Can\'t get Echo Reply
'); exit($V6evalTool::exitFail); } #--------------------------------------------------------------# vLogHTML('TEST PROCEDURE
'); vClear($IF0); vLogHTML('Return Routability Procedure
'); my %rr = MIP6_ReturnRoutability($IF0); if($rr{'status'} < 0) { vLogHTML('Can\'t complete RR
'); exit($V6evalTool::exitFail); } vClear($IF0); vLogHTML('Requests to Delete a Binding
'); $sn = 1; $a = 1; $lt = 0; if(MIP6_ProcessingBindings($IF0, $sn, $a, $lt, %rr) < 0) { vLogHTML('Can\'t get BA
'); exit($V6evalTool::exitFail); } vClear($IF0); vLogHTML('Check Binding Cache
'); if(MIP6_CheckNoBindingCache($IF0) < 0) { vLogHTML('Can\'t get BE
'); exit($V6evalTool::exitWarn); } vStop($IF0); vLogHTML('PASS
'); exit($V6evalTool::exitPass); # # perldoc # ################################################################ __END__ =head1 NAME Delete_LT0_FOREIGN - Delete a Binding A=1 (Lifetime=0 & CoA!=HoA) =head1 TARGET =begin html
Host/Router
=end html =head1 SYNOPSIS =begin html
Delete_LT0_FOREIGN.seq [-tooloption ...] -pkt Delete_LT0_FOREIGN.def
-tooloption: v6eval tool option
=end html =head1 TOPOLOGY =begin html
                                MN'
                                |
                --------+-------+------- LinkY
                        |
                        R1      MN
                        |       |
        --------+-------+-------+------- LinkX
                |
       NUT      R0
        |       |
--------+-------+----------------------- Link0
Link0 global 3ffe:501:ffff:100::/64  
LinkX global 3ffe:501:ffff:102::/64 home link
LinkY global 3ffe:501:ffff:103::/64 foreign link
R0(Link0) global 3ffe:501:ffff:100::a0a0  
link-local fe80::200:ff:fe00:a0a0
ether 00:00:00:00:a0:a0
MN global 3ffe:501:ffff:102:200:ff:fe00:7 home address
MN' global 3ffe:501:ffff:103:200:ff:fe00:7 care-of address
=end html =head1 INITIALIZATION =begin html
NUT      MN      MN'
 |       |       |
 | <------------ | Echo Request
 | ------------> | Echo Reply
 |       |       |
 | <---- |       | HoTI
 | <------------ | CoTI
 | ----> |       | HoT
 | ------------> | CoT
 |       |       |
 | <------------ | BU
 | --X   |       | no response
 |       |       |
 | <------------ | Echo Request w/ HaO
 | ------------> | Echo Reply w/ RH
 |       |       |

 1. Send Echo Request
 2. Wait Echo Reply
 3. Receive Echo Reply
 4. Send HoTI & CoTI
 5. Wait HoT & CoT
 6. Receive HoT & CoT
 7. Send BU
 8. No response
 9. Send Echo Request w/ HaO
10. Wait Echo Reply w/ RH
11. Receive Echo Reply w/ RH
=end html =head1 TEST PROCEDURE =begin html
NUT      MN      MN'
 |       |       |
 | <---- |       | HoTI
 | <------------ | CoTI
 | ----> |       | HoT (*1)
 | ------------> | CoT (*2)
 |       |       |
 | <------------ | BU
 | ------------> | BA (*3)
 |       |       |
 | <------------ | Echo Request w/ HaO
 | ------------> | BE (*4)
 |       |       |

1. Send HoTI & CoTI
2. Wait HoT & CoT
3. Receive HoT & CoT (*1) (*2)
4. Send BU
5. Wait BA
6. Receive BA (*3)
7. Send Echo Request w/ HaO
8. Wait BE
9. Receive BE (*4)
=end html =head1 JUDGEMENT =begin html
(*1) PASS: MN receives HoT
(*2) PASS: MN' receives CoT
(*3) PASS: MN' receives BA
(*4) PASS: MN' receives BE
     WARN: no response
     FAIL: Recv unexpect packets
=end html =head1 REFERENCE =begin html
<draft-ietf-mobileip-ipv6-19.txt>
9.5.4. Sending Binding Acknowledgements
----------------------------------------------------------------
   If the Source Address is the home address of the mobile node, i.e.,
   the Binding Update did not contain a Home Address destination option,
   then the Binding Acknowledgement MUST be sent to that address,
   and the routing header MUST NOT be used.  Otherwise, the Binding
   Acknowledgement MUST be sent using a type 2 routing header which
   contains the mobile node's home address.
----------------------------------------------------------------
=end html =head1 SEE ALSO =begin html
MIP6.pm
MIP6.def
=end html =cut