8.2.7. IPv6 Routed-Forwarding

8.2.7.1. eth2p-ethip6-ip6base-func

IPv6 routing test cases RFC2460 IPv6, RFC4443 ICMPv6, RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-ICMPv6 on links TG-DUT1, TG-DUT2, DUT1-DUT2; Eth-IPv6-NS/NA on links TG-DUT. IPv6 routing tests use circular 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv6 routing and static routes. Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2 and received on TG links on the other side of circular topology. On receive TG verifies packets IPv6 src-addr, dst-addr and MAC addresses.

Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: DUT replies to ICMPv6 Echo Req to its ingress interface
 DUT1: 
want_stats enable
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table

DUT2:
no VAT command executed
TC02: DUT replies to ICMPv6 Echo Req pkt with size 64B-to-1500B-incr-1B
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed
TC04: DUT routes to its egress interface
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed
TC05: DUT1 routes to DUT2 ingress interface
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed
TC06: DUT1 routes to DUT2 egress interface
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed
TC07: DUT1 and DUT2 route between TG interfaces
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed
TC08: DUT replies to IPv6 Neighbor Solicitation
 DUT1: 
no VAT command executed

DUT2:
no VAT command executed

8.2.7.2. eth2p-ethip6-ip6base-ip6ecmp-func

Ipv6 Multipath routing test cases

  • [Top] Network topologies: TG=DUT 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: On DUT configure interfaces IPv4 adresses, and multipath routing.
  • [Ver] TG verification: Test packets are sent from TG on the first link to DUT. Packet is received on TG on the second link from DUT1.
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: IPv6 Equal-cost multipath routing
 DUT1: 
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:61::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 3ffe:62::1/64
sw_interface_set_flags sw_if_index 2 admin-up
ip_neighbor_add_del sw_if_index 2 dst 3ffe:62::2 mac 02:00:00:00:00:02
ip_neighbor_add_del sw_if_index 2 dst 3ffe:62::3 mac 02:00:00:00:00:03
ip_add_del_route 3ffe:71::1/64 via 3ffe:62::2 sw_if_index 2 count 1 multipath
ip_add_del_route 3ffe:71::1/64 via 3ffe:62::3 sw_if_index 2 count 1 multipath

DUT2:
no VAT command executed

8.2.7.3. eth2p-ethip6-ip6base-ip6ra-func

IPv6 Router Advertisement test cases RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-RA on links TG-DUT1. IPv6 Router Advertisement tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv6 routing and static routes. TG verifies received RA packets.

Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: DUT transmits RA on IPv6 enabled interface
 DUT1: 
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 interval 2

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
TC02: DUT retransmits RA on IPv6 enabled interface after a set interval
 DUT1: 
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 interval 2

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
TC03: DUT responds to Router Solicitation request
 DUT1: 
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 surpress

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
TC04: DUT responds to Router Solicitation request sent from link local address
 DUT1: 
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 surpress

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump