DstSelectExample7.seq - Destination Address Selection Examples in RFC Check #7(Use longest matching prefix)
Rule 9: Use longest matching prefix. When DA and DB belong to the same address family (both are IPv6 or both are IPv4): If CommonPrefixLen(DA, Source(DA)) > CommonPrefixLen(DB, Source(DB)), then prefer DA.
Source addresses used for this test are "preferred address".
Host and Router
DstSelectExample7.seq [-tooloption ...] -pkt ADDR_SELECT.def -tooloption : v6eval tool option
None
This TEST performs the following Check procedures for every address group defined by Check 01 - *. *Check procedure 1. Initialize : 1.1. Set IPv6 Default Route in NUT (Default Router address = <TN-Link0-LinkLocalAddress>) 1.2. Set DNS setting in NUT 1.3. Add Candidate Source Addresses in NUT 1.4. Check Candidate Source Addresses by Ping6(TN->NUT) 2. Send Ping6 from NUT to Destination(FQDN) 2.1. NUT send DNS query (question) 2.2. TN send DNS query (answer) 2.3. NUT send ICMPv6 echo request 3. Judgment : if (recive packet's Destination & Source Addresses) = (expected Destination & Source Addresses), Check pass 4. Cleanup : 4.1. Delete Candidate Source Addresses in NUT 4.2. Clear prefix list & in NUT 4.3. Remove DNS setting in NUT
NUT TN Default DNS Destination | | Router | | | | | | | ======(INITIALIZE)========= | | | | | |<-<-<-+ | | | Set IPv6 Default Route |<-<-<-+ | | | Set DNS setting |<-<-<-+ | | | Add Candidate Source Addresses | | | | | |<------------+ | | Echo Request to Candidate Source Addresses 1 +------------>| | | Echo Reply | | | | | |<------------+ | | Echo Request to Candidate Source Addresses 2 +------------>| | | Echo Reply | | | | | ======(INITIALIZE)========= | | | | | |<-<-<-+ | | | Excute ping6 command | | | | | +------------------>| | DNS query question <-------------------+ | DNS query answer +------------------------>| Echo Request | | | | |
LLA(Link Local Address)
Check 01: DNS Address: 2001::9 Candidate Source Addresses: 2001::2 or 3f44::2 or LLA Destination Address List: 2001::1 or 3ffe::1 Result: 2001::1 (src 2001::2) then 3ffe::1 (src 3f44::2)
* Use LLA instead of fe80::2
Check 01: PASS: Receive Echo Request & destination(source) = 2001::1 (2001::2)
TEST PASS: All Check = PASS
perldoc V6evalTool
ADDR_SELECT.html "Default Address Selection for IPv6" Test Common Utility
das_rules.html "Default Address Selection for IPv6" Rules