#!/usr/bin/perl # # $Copyright$ # # $TAHI: ct/mip6-cn-19/BU_A1_H0.seq,v 1.9 2003/01/12 08:00:54 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); } #--------------------------------------------------------------# 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 Cache a Binding
'); my $sn = 0; my $a = 1; my $lt = 0xffff; 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_CheckBindingCache($IF0) < 0) { vLogHTML('Can\'t get Echo Reply
'); exit($V6evalTool::exitFail); } vStop($IF0); vLogHTML('PASS
'); exit($V6evalTool::exitPass); # # perldoc # ################################################################ __END__ =head1 NAME BU_A1_H0 - Receiving valid BU A=1 =head1 TARGET =begin html
Host/Router
=end html =head1 SYNOPSIS =begin html
BU_A1_H0.seq [-tooloption ...] -pkt BU_A1_H0.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:5 home address
MN' global 3ffe:501:ffff:103:200:ff:fe00:5 care-of address
=end html =head1 INITIALIZATION =begin html
NUT      MN
 |       |
 | <---- | Echo Request
 | ----> | Echo Reply
 |       |

1. Send Echo Request
2. Wait Echo Reply
3. Receive Echo Reply
=end html =head1 TEST PROCEDURE =begin html
NUT      MN      MN'
 |       |       |
 | <---- |       | HoTI
 | <------------ | CoTI
 | ----> |       | HoT (*1)
 | ------------> | CoT (*2)
 |       |       |
 | <------------ | BU
 | ------------> | BA (*3)
 |       |       |
 | <------------ | Echo Request w/ HaO
 | ------------> | Echo Reply w/ RH (*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 Echo Reply w/ RH
9. Receive Echo Reply w/ RH (*4)
=end html =head1 JUDGEMENT =begin html
(*1) PASS: MN receives HoT
(*2) PASS: MN' receives CoT
(*3) PASS: MN' receives BA
     FAIL: Lifetime is grater than MAX_RR_BINDING_LIFE
(*4) PASS: MN' receives Echo Reply w/ RH
=end html =head1 REFERENCE =begin html
<draft-ietf-mobileip-ipv6-19.txt>
5.2.6. Authorizing Binding Management Messages
----------------------------------------------------------------
   Bindings established with correspondent nodes using keys created
   by way of the return routability procedure MUST NOT exceed
   MAX_RR_BINDING_LIFE seconds (see Section 12).
----------------------------------------------------------------

<draft-ietf-mobileip-ipv6-19.txt>
6.1.8. Binding Acknowledgement Message
----------------------------------------------------------------
      Lifetime
         The granted lifetime, in time units of 4 seconds, for which
         this node SHOULD retain the entry for this mobile node in its
         Binding Cache.  A value of all one bits (0xffff) indicates
         infinity.
----------------------------------------------------------------

<draft-ietf-mobileip-ipv6-19.txt>
9.5.4. Sending Binding Acknowledgements
----------------------------------------------------------------
    -  If the Binding Update was silently discarded as described in
       Section 9.5.1, a Binding Acknowledgement MUST NOT be sent.
    -  Otherwise, if the Acknowledge (A) bit set is set in the Binding
       Update, a Binding Acknowledgement MUST be sent.
    -  Otherwise, if the node rejects the Binding Update, a Binding
       Acknowledgement MUST be sent.
    -  Otherwise, if the node accepts the Binding Update, a Binding
       Acknowledgement SHOULD NOT be sent.
----------------------------------------------------------------

<draft-ietf-mobileip-ipv6-19.txt>
12. Protocol Constants
----------------------------------------------------------------
      MAX_RR_BINDING_LIFE      420 seconds
----------------------------------------------------------------
=end html =head1 SEE ALSO =begin html
MIP6.pm
MIP6.def
=end html =cut