rfc2765_4.1_nextheader.seq - Verify IPv6 <-> IPv4 header translation in accordance with RFC2765 [SIIT]
Router
rfc2765_4.1_nextheader.seq [-tooloption ...] -p rfc2765_4.1_nextheader.def
Before this test starts, run initialize.seq.
This test verifies that NUT can translates IPv6 Next Header field to IPv4 Protocol field. Network Topology
Link0 -------------------------- | | TN NUT | | -------------------------- Link1
TN -- (Link0) -- NUT NUT -- (Link1) -- TN --------------------- ------------------------
1.1. ===================> ICMPv6 Echo Request IPv6 Header src address : TN LINK0 IPv4 embedded IPv6 address dst address : TN LINK1 IPv4 embedded IPv6 address Next Header = 58 ICMPv6 echo request
1.2. <<JUDGMENT>> ===================> ICMPv4 Echo request IPv4 Header src address : TN LINK0 IPv4 address dst address : TN LINK1 IPv4 address Don't Fragment = 1 Protocol = 1 ICMPv4 echo request
2.1. <<JUDGMENT>> ===================> IPv6 UDP packet IPv6 Header src address : TN LINK0 IPv4 embedded IPv6 address dst address : TN LINK1 IPv4 embedded IPv6 address Next Header = 17 UDP packet Checksum including IPv6 pseudo header data = repeat(0xff,64)
2.2. ===================> IPv4 UDP packet IPv4 Header src address : TN LINK0 IPv4 address dst address : TN LINK1 IPv4 address Don't Fragment = 1 Protocol = 17 UDP packet Checksum including IPv4 pseudo header data = repeat(0xff,64)
3.1. ===================> IPv6 UDP packet IPv6 Header src address : TN LINK0 IPv4 embedded IPv6 address dst address : TN LINK1 IPv4 embedded IPv6 address Next Header = 6 TCP packet Checksum including IPv6 pseudo header data = repeat(0xff,64)
3.2. <<JUDGMENT>> ===================> IPv4 TCP packet IPv4 Header src address : TN LINK0 IPv4 address dst address : TN LINK1 IPv4 address Don't Fragment = 1 Protocol = 6 TCP packet Checksum including IPv4 pseudo header data = repeat(0xff,64)
4.1. ===================> IPv6 unknown protocol(255) packet IPv6 Header src address : TN LINK0 IPv4 embedded IPv6 address dst address : TN LINK1 IPv4 embedded IPv6 address Next Header = 255 data = repeat(0xff,64) 4.2. <<JUDGMENT>> ===================> IPv4 unknown protocol(255) packet IPv4 Header src address : TN LINK0 IPv4 address dst address : TN LINK1 IPv4 address Don't Fragment = 1 Protocol = 255 data = repeat(0xff,64)
<< PASS >> NUT translates ICMPv6 to ICMPv4, recalculates header checksum for UDP and TCP, and let other protocols pass through unchanged. << FAIL >> TN (Link0) does not receive an ICMPv4, an UDP, a TCP and an IPv4 packet with Protocol = 255.
RFC2765
4.1. Translating IPv6 Headers into IPv4 Headers
If there is no IPv6 Fragment header the IPv4 header fields are set as follows:
Protocol: Next Header field copied from IPv6 header.
perldoc V6evalTool