#!/usr/bin/perl
#
# $Copyright$
#
# $TAHI: ct/mip6-cn-19/BU_A0_H0.seq,v 1.3 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 = 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);
}
vStop($IF0);
vLogHTML('PASS
');
exit($V6evalTool::exitPass);
#
# perldoc
#
################################################################
__END__
=head1 NAME
BU_A0_H0 - Receiving valid BU A=0
=head1 TARGET
=begin html
Host/Router=end html =head1 SYNOPSIS =begin html
BU_A0_H0.seq [-tooloption ...] -pkt BU_A0_H0.def
=end html =head1 TOPOLOGY =begin html-tooloption: v6eval tool option
MN' | --------+-------+------- LinkY | R1 MN | | --------+-------+-------+------- LinkX | NUT R0 | | --------+-------+----------------------- Link0
=end html =head1 INITIALIZATION =begin html
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:8 home address MN' global 3ffe:501:ffff:103:200:ff:fe00:8 care-of address
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 | --X | | no response (*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. No response (*3) 6. Send Echo Request w/ HaO 7. Wait Echo Reply w/ RH 8. Receive Echo Reply w/ RH (*4)=end html =head1 JUDGEMENT =begin html
(*1) PASS: MN receives HoT (*2) PASS: MN' receives CoT (*3) PASS: no response WARN: MN' receives BA FAIL: Lifetime is grater than MAX_RR_BINDING_LIFE FAIL: Recv unexpect packets (*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