CDRouter IPv6 User Guide
Introduction
The CDRouter IPv6 expansion adds IPv6 testing to CDRouter. Like the rest of CDRouter, it simulates all of the network elements on the WAN and LAN sides of the device under test (DUT) so that you can verify the DUT’s IPv6 behavior end to end with a single test system.
The IPv6 expansion supports:
- Native IPv6 dual-stack WAN modes using DHCPv6, SLAAC/autoconfiguration, unnumbered links, PPPoE, or static addressing
- IPv6-only mode using IPv4-over-IPv6 transition technologies (DS-Lite, MAP-E, MAP-T, and LW4o6)
- IPv6-over-IPv4 legacy mode using 6to4 and 6rd transition technologies
- DHCPv6 Prefix Delegation
- Global and Unique Local LAN client addressing via SLAAC/autoconf or DHCPv6
- Run hundreds of IPv6 test cases, along with IPv6 versions of many of CDRouter’s application, firewall, and performance tests
This guide explains how to enable and configure CDRouter IPv6, and links to more detailed articles on each topic.
Requirements and license
CDRouter IPv6 is a licensed expansion that must be purchased from QA Cafe. For information on adding CDRouter IPv6 or any other expansion to your license, contact sales@qacafe.com.
To verify that CDRouter IPv6 is enabled, check the System
page in CDRouter’s web interface, or run the command
cdrouter-cli -info and look for the line IPv6 is enabled:
$ cdrouter-cli -info
...
IPv6 is enabled
...
IPv6 test descriptions
For a list of all of CDRouter’s IPv6 test modules and test cases, see CDRouter IPv6 Test Summaries. Full test descriptions are available on the Documentation page in CDRouter’s web interface. See How to print full test descriptions.
Configuring IPv6
All of the IPv6 testvars are in the CDRouter IPv6 Expansion section of the CDRouter config file. Like other testvars, they’re commented out by default, and most of them have default values that CDRouter uses until you set them.
To enable IPv6, set supportsIPv6 to yes. IPv6 must be
enabled to run any IPv6 tests, including the IPv6 tests in other
expansions such as TR-069, Nmap, and SNMP.
SECTION "CDRouter IPv6 Expansion" {
testvar supportsIPv6 yes
...
}
When IPv6 is enabled, CDRouter’s default configuration is dual-stack with the following settings.
WAN
| Setting | Default | Testvar |
|---|---|---|
| IPv4 WAN mode | DHCP |
wanMode |
| IPv6 WAN mode | DHCP (DHCPv6) |
ipv6WanMode |
| CDRouter’s address | 3001::1 |
ipv6WanIspIp |
| DUT’s address | 3001::2 |
ipv6WanIspAssignIp |
| WAN prefix | 3001::/64 |
ipv6WanIspPrefixLen |
| Delegated prefix | 3001:dddd::/48 |
dhcpv6WanAssignPrefix, dhcpv6WanAssignPrefixLen |
| IPv6 DNS servers | 3001:51a:cafe::2, 3001:51a:cafe::3 |
ipv6WanDnsServer, ipv6WanBackupDnsServer |
LAN
| Setting | Default | Testvar |
|---|---|---|
| Expected LAN prefix | 3001:dddd:0:1::/64 (the delegated prefix with subnet ID 1) |
ipv6LanSubnetId, ipv6LanPrefixLen |
| Expected DUT LAN address | 3001:dddd:0:1: followed by an EUI-64 interface ID based on the DUT’s LAN MAC address |
ipv6LanIp |
| LAN client addressing | SLAAC (autoconf) |
ipv6LanMode |
| Maximum Router Advertisement interval | 300 seconds | ipv6RAInterval |
Change the WAN and LAN configuration as described below to match the DUT.
WAN configuration
Two testvars define how CDRouter configures its WAN interface to allow the DUT to connect:
wanModesets the IPv4 WAN mode. It’s also used to select an IPv4-over-IPv6 transition technology.ipv6WanModesets the IPv6 WAN mode.
Together, they support these scenarios:
- Dual-stack: native IPv4 and IPv6
- IPv6-only: native IPv6 with no IPv4 service
- IPv4 over IPv6: IPv4 service carried over a native IPv6 WAN
- IPv6 over IPv4: IPv6 service carried over an IPv4-only WAN
For details on each scenario and how to configure it, see IPv6 WAN Modes and Transition Technologies. The article also covers DUTs that route IPv4 but pass IPv6 through, and WAN interfaces with no IPv6 service.
WAN interface testvars
The following testvars configure the IPv6 WAN network and the DUT’s WAN address. See Native IPv6 Testing with CDRouter for details, and Testing IPv6 over PPPoE with CDRouter for IPv6 over PPPoE.
ipv6WanModeipv6WanIspIpipv6WanIspAssignIpipv6WanIspNextIpipv6WanIspPrefixLenipv6WanIspGatewayipv6WanAssignPrefixLenipv6ExpectRAonWanipv6WanRDNSSipv6WanDNSSLwanDomainNameipv6PPPoEAddressMode
WAN DHCPv6 server testvars
The following testvars configure CDRouter’s DHCPv6 server on the WAN:
dhcpv6IAValidLifetimedhcpv6IAPreferredLifetimedhcpv6DuidTypedhcpv6ServerOptionCodedhcpv6ServerOptionData
DHCPv6 prefix delegation testvars
The following testvars configure DHCPv6 prefix delegation. See DHCPv6 Prefix Delegation Testing with CDRouter for details.
dhcpv6WanEnablePDdhcpv6WanEnablePDExcludedhcpv6WanAssignPrefixdhcpv6WanAssignNextPrefixdhcpv6WanAssignPrefixLendhcpv6PDLatency
DS-Lite testvars
The following testvars configure DS-Lite. See DS-Lite Testing with CDRouter for details.
MAP and LW4o6 testvars
The following testvars configure MAP-E, MAP-T, and LW4o6. See MAP and LW4o6 Testing with CDRouter for details.
mapBmrRuleIpv6PrefixmapBmrRuleIpv6PrefixLenmapBmrRuleIpv4PrefixmapBmrRuleIpv4PrefixLenmapBmrRuleEABitLenmapDmrIpv6PrefixmapDmrIpv6PrefixLenmapSharingRatiomapStartPortmapPsidmapIpv6InterfaceIdFormatmapEnableDhcpv6OptionsmapTunnelHopLimitmapTunnelTrafficClassmapTunnelFlowLabelmapTosTranslate
6to4 and 6rd testvars
The following testvars configure 6to4 and 6rd. See 6to4 and 6rd Testing with CDRouter for details.
ipv6RelayServeripv6RelayServerGlobalipv6rdPrefixipv6rdPrefixLenipv6rdIPv4MaskLenipv6rdDHCPv4Option
LAN configuration
LAN modes
ipv6LanMode sets how CDRouter’s LAN clients get global
IPv6 addresses from the DUT:
autoconf(default): The LAN clients use stateless address autoconfiguration (SLAAC), with EUI-64 interface IDs, based on the Router Advertisements sent by the DUT.DHCP: The LAN clients request addresses from the DUT’s DHCPv6 server. Setipv6DhcpClientStart,ipv6DhcpClientEnd, andipv6DhcpClientExcludeto match the DUT’s DHCPv6 address pool. These testvars contain only the interface ID of each address. CDRouter adds the DUT’s LAN prefix automatically.ULA: The DUT assigns only Unique Local Addresses on its LAN. See Unique Local Addresses below.none: The DUT doesn’t provide global IPv6 addresses on its LAN, and CDRouter doesn’t try to get them during startup.
Be sure to enable Router Advertisements on the DUT’s LAN interfaces.
CDRouter’s LAN clients automatically send Router Solicitations, but
some tests verify whether the DUT sends periodic RAs in certain
test conditions. Set ipv6RAInterval to the maximum interval between the
DUT’s Router Advertisements on the LAN.
If you aren’t sure of the DUT’s interval, set this testvar to a
large value and run test case ipv6_ndp_2 to measure it.
LAN prefix and DUT address
The ipv6LanIp testvar tells CDRouter what address the DUT
should be using as its global IPv6 LAN address. The DUT’s address has two
64-bit halves:
- Prefix: The DUT’s LAN prefix. This is determined by the DUT’s IPv6 WAN configuration.
- Interface ID: A unique identifier chosen by the DUT. It is either
statically configured to a specific value, such as
::1, or is produced automatically by converting the DUT’s LAN MAC address to EUI-64 format.
The value of ipv6LanIp must include the DUT’s expected
interface ID, which is either its static identifier or the keyword
%eui64%, which tells CDRouter to calculate an EUI-64 interface ID from
the DUT’s LAN MAC address.
The prefix half of ipv6LanIp can be omitted when the IPv6
WAN mode uses DHCPv6 prefix delegation, 6to4, or 6rd. In these modes,
CDRouter will automatically calculate the IPv6 LAN prefix and ignore any
prefix in ipv6LanIp.
In all other modes, CDRouter determines the LAN prefix from
ipv6LanIp and ipv6LanPrefixLen (default
64). In practice, IPv6 LAN prefixes are almost always required to be 64
bits long, so ipv6LanPrefixLen rarely needs to change.
Automatic prefix calculation
With DHCPv6 prefix delegation, 6to4, or 6rd, ipv6LanIp
should be set to the interface ID only, such as ::1 or ::%eui64%.
CDRouter calculates the LAN prefix by adding
ipv6LanSubnetId (in hex) to the delegated, 6to4, or 6rd
prefix. The subnet ID fills the bits between the end of the delegated
prefix and the 64-bit boundary, so the delegated prefix length sets its
maximum size:
| Delegated prefix length | Subnet ID bits | Subnet ID range |
|---|---|---|
| /48 (default, and 6to4) | 16 | 0 to ffff |
| /56 | 8 | 0 to ff |
| /60 | 4 | 0 to f |
| /64 | 0 | 0 only |
With CDRouter’s defaults, the delegated prefix 3001:dddd::/48 and
subnet ID 1 make the LAN prefix 3001:dddd:0:1::/64.
For examples, see Native IPv6 Testing with CDRouter and 6to4 and 6rd Testing with CDRouter.
LAN testvars
ipv6LanModeipv6LanIpipv6LanPrefixLenipv6LanSubnetIdipv6MaxLanClientsipv6RAIntervalipv6DhcpClientStartipv6DhcpClientEndipv6DhcpClientExcludedhcpv6ClientTimeoutdhcpv6RapidCommitdhcpv6ClientOptionRequestdhcpv6ClientOptionCodedhcpv6ClientOptionData
Unique Local Addresses
If the DUT advertises a Unique Local Address (ULA) prefix on its LAN,
set supportsULA to yes, and set
ipv6LanULAPrefix to the expected ULA prefix. ULAs are
defined in RFC 4193, and are
in the fc00::/7 address block.
When ULA support is enabled, CDRouter’s LAN clients configure a ULA in
addition to their global and link-local addresses. They use SLAAC or
DHCPv6, based on ipv6LanMode. If the LAN clients should
always use SLAAC for ULAs, set ipv6LanULAMode to
autoconf.
If the DUT assigns only ULAs on its LAN, set
ipv6LanMode to ULA. In this configuration,
supportsULA must be yes,
ipv6LanULAMode must be autoconf, and
dhcpv6WanEnablePD must be no. CDRouter skips most IPv6
LAN tests, except for tests specific to ULAs.
The ula test module verifies the DUT’s basic ULA functionality, and runs only when ULA support is enabled.
Other IPv6 configuration
DNS
CDRouter simulates IPv6 DNS servers on the WAN at the addresses set by
ipv6WanDnsServer and ipv6WanBackupDnsServer.
If the DUT passes these DNS servers to its LAN clients, set
ipv6DNStoLAN to yes. If the DUT advertises its own LAN
address as the DNS server instead, set it to no. If the DUT provides
DNS servers and search lists to its LAN clients in Router Advertisement
options, set ipv6RdnssSupport and
ipv6DnsslSupport to yes.
ipv6DNStoLANsupportsDnsCachingipv6WanDnsServeripv6WanBackupDnsServeripv6WanBackupDnsServer2ipv6WanBackupDnsServer3ipv6RdnssSupportipv6DnsslSupportdnsHostnamednsIpdnsLookupTimeout
NTP
CDRouter simulates up to two IPv6 NTP servers on the WAN, at the
addresses set by ipv6NtpServer1 and
ipv6NtpServer2. ipv6NtpServerName1 and
ipv6NtpServerName2 set their DNS hostnames.
CDRouter’s DHCPv6 server provides these NTP servers’ hostnames to the
DUT in the NTP server option (option 56). This option is only included
if the DUT explicitly requests NTP servers by including option 56 in
its DHCPv6 Option Request option (option 6). To disable an NTP server,
set its address to ::. If both servers are disabled, the DHCPv6 server
will not include option 56 even if it is requested.
By default, CDRouter’s NTP servers return the CDRouter system’s current
time. ntpOffset adds an offset in seconds, and
ntpStartDate sets a fixed start date and time, which can
help when testing SSL certificates.
Multicast
CDRouter can test DUTs with MLDv1 or MLDv2 proxy support. When MLD support is enabled, CDRouter acts as an MLD client on the LAN side of the DUT, and as a multicast router that delivers multicast streams on the WAN side.
supportsIPv6MulticastsupportsIPv6MulticastOutmldVersionmldMaxGroupsipv6MulticastCacheTimeoutipv6MulticastPoolStartipv6MulticastPoolStopmldQueryIntervalmldRobustnessVariablemldQueryResponseIntervalmldFastLeaveipv6IptvChannelRangeipv6IptvChannelChangeDelayipv6IptvMaxFailuresipv6MulticastScaleDelay
Firewall
The following testvars describe the DUT’s IPv6 firewall configuration.
The range of ports scanned by the firewall-v6 test module is set by
portScanStart and portScanStop. By default,
CDRouter assumes the DUT operates in “stealth mode” and will ignore all
unsolicited connections on inactive ports. If the DUT has services listening on any ports (“open”) or actively rejects unsolicited traffic (“closed”), those exceptions can be configured in the testvars below. See
Port Scanning Test Configuration for IPv4 and IPv6.
ipv6FirewallTcpClosedPortsipv6FirewallUdpClosedPortsipv6FirewallTcpOpenPortsipv6FirewallUdpOpenPortsipv6WanPingRespond
For example, to verify that TCP ports 80 and 8080 and all UDP ports are closed, and that TCP port 443 and UDP port 113 are open:
testvar ipv6FirewallTcpClosedPorts "80 8080"
testvar ipv6FirewallUdpClosedPorts all
testvar ipv6FirewallTcpOpenPorts 443
testvar ipv6FirewallUdpOpenPorts 113
testvar ipv6WanPingRespond no
RIPng
supportsRIPng enables RIPng testing. CDRouter also uses
the RIP testvars
for RIPng testing.
Static routes
The following testvars configure tests of the DUT’s IPv6 static routes:
staticIpv6RouteLanNetworkstaticIpv6RouteLanNextHopstaticIpv6RouteWanNetworkstaticIpv6RouteWanNextHop
Remote hosts and free networks
The following testvars set the address of CDRouter’s IPv6 remote host, and the range of IPv6 addresses that CDRouter may dynamically allocate for simulated networks and hosts on the WAN:
Additional configurations
The following articles describe how to set up IPv6 tests for specific devices and features:
- Multi-service gateway testing with CDRouter: DUTs with separate WAN connections for data, voice, and video
- IPv6 MTU concepts in CDRouter: IPv6 MTU and fragmentation
- IPv6 Privacy Addresses: IPv6 privacy (temporary) addresses
- Port Scanning Test Configuration for IPv4 and IPv6: IPv6 firewall port scanning
- Test Setup for RFC 7084: testing the RFC 7084 IPv6 CE router requirements
- Can I test TR-069 over IPv6?: TR-069 over IPv6
Testing exercises
In addition to running each of CDRouter’s IPv6 test modules, the following exercises are a good way to find problems with a DUT’s IPv6 implementation. Our whitepapers on residential IPv6 testing with CDRouter and DHCPv6 prefix delegation testing describe many other common problems with residential IPv6 implementations.
-
Test all of the DUT’s IPv6 modes: Devices that support IPv6 often have many IPv6 configuration options. Create a CDRouter config for each combination of IPv6 WAN mode, prefix delegation setting, and IPv6 LAN mode that the DUT supports, and run the same tests with each one. Inconsistent or broken behavior in some configurations is easy to spot this way. See Native IPv6 Testing with CDRouter.
-
Vary the IPv4 configuration: The DUT’s IPv6 behavior should be the same no matter how it connects to IPv4. Create configs for each of the DUT’s IPv4 WAN modes, such as static, DHCP, PPPoE, PPTP, and L2TP, and run the same IPv6 tests with each one.
-
Add a wireless LAN client: IPv6 behavior should be the same for wired and wireless LAN clients. Running the same tests with both often reveals differences. When only a wireless LAN interface is used, CDRouter skips tests that require multiple LAN hosts, such as the scaling tests.