8.2.13. Softwire Tunnels

8.2.13.1. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swirelw46-func

Lightweight 4 over 6 test cases LW4o6 is a subset of MAP-E, with per-subscriber rules. It uses the same tunneling mechanism and configuration as MAP-E. It does not use embedded address bits.

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG_if1-DUT, Eth-IPv6-IPv4-UDP on TG_if2_DUT.
  • [Cfg] DUT configuration: DUT1 is configured as lwAFTR.
  • [Ver] TG verification: Test UDP ICMP Echo Request in IPv4 are sent to lwAFTR and are verified by TG for correctness their encapsulation in IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7596 RFC7597.
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: Encapsulate IPv4 into IPv6. IPv6 dst depends on IPv4 and UDP destination
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 2001:1::2/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2

DUT2:
no VAT command executed
TC02: Encapsulate IPv4 ICMP into IPv6. IPv6 dst depends on IPv4 addr and ICMP ID
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 2001:1::2/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2

DUT2:
no VAT command executed
TC03: Decapsulate IPv4 UDP from IPv6.
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.100 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2

DUT2:
no VAT command executed
TC04: Hairpinning of traffic between two lwB4
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 2001:1::3/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2
map_add_del_rule index 0 psid 22 dst 2001:1::3

DUT2:
no VAT command executed

8.2.13.2. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swiremape-func

Test for Basic mapping rule for MAP-E

  • [Top] Network Topologies: TG - DUT1 - TG with two links between the nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG-to-DUT-if1. Eth-IPv6-IPv4-UDP on TG-to-DUT-if2.
  • [Cfg] DUT configuration: DUT is configured with IPv4 on one DUT-to-TG interface and IPv6 address on second DUT-to-TG interface. MAP-E domain is configured in test template based on test parameters.
  • [Ver] TG verification: UDP packets in IPv4 are sent by TG to destination in MAP domain. IPv6 packets with encapsulated IPv4 are received on TG interface.
  • [Ref] Applicable standard specifications: RFC7597.
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: BMR, then an IPv4 prefix is assigned
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 23 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 7 psid-offset 0 psid-len 0
map_del_domain index 0

DUT2:
no VAT command executed
TC02: BMR, full IPv4 address is to be assigned
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 24 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.200.0/22 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.208/28 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 24 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/44 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/48 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.200.0/22 ip6-pfx 2001:db8::/54 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0

DUT2:
no VAT command executed
TC03: BMR, shared IPv4 address is to be assigned
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 5
map_del_domain index 0
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.192.0/20 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 5
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 12 psid-offset 6 psid-len 4
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 12 psid-offset 6 psid-len 8
map_del_domain index 0

DUT2:
no VAT command executed
TC04: End user IPv6 prefix is 64
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8:0012:3400::/56 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.208/28 ip6-pfx 2001:db8:0012:3400::/56 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 5 psid-len 4
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8:0012:3400::/64 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8:0012:3400::/64 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0

DUT2:
no VAT command executed
TC05: IPv4 prefix is 0
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8:0000::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8:0000::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 0 psid-len 0
map_del_domain index 0
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:d00::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0

DUT2:
no VAT command executed
TC06: Multiple domain and check with traffic script IPv4 source IPv6 destination
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 69.127.0.0/16 ip6-pfx 2001:457f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 91.251.0.0/16 ip6-pfx 2001:5bfb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 92.241.0.0/16 ip6-pfx 2001:5cf1::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 141.215.0.0/16 ip6-pfx 2001:8dd7::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 35.14.0.0/16 ip6-pfx 2001:23e::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0

DUT2:
no VAT command executed
TC07: Multiple domain and check with traffic script IPv6 source IPv6 destination
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 69.127.0.0/16 ip6-pfx 2001:457f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 91.251.0.0/16 ip6-pfx 2001:5bfb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 92.241.0.0/16 ip6-pfx 2001:5cf1::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 141.215.0.0/16 ip6-pfx 2001:8dd7::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 35.14.0.0/16 ip6-pfx 2001:23e::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0

DUT2:
no VAT command executed
TC08: Encapsulate IPv4 ICMP into IPv6
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 69.127.0.0/16 ip6-pfx 2001:457f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 91.251.0.0/16 ip6-pfx 2001:5bfb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 92.241.0.0/16 ip6-pfx 2001:5cf1::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 141.215.0.0/16 ip6-pfx 2001:8dd7::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 35.14.0.0/16 ip6-pfx 2001:23e::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0

DUT2:
no VAT command executed
TC09: Repeated ip neighbor command doesnt put FIB to broken state
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route 2001::/16 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route 2001::/16 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0

DUT2:
no VAT command executed
Bug: VPP-318
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 6 psid-len 8

DUT2:
no VAT command executed

8.2.13.3. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swiremapt-func

Test for Basic mapping rule for MAP-T

  • [Top] Network Topologies: TG - DUT1 - TG with two links between the nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG-to-DUT-if1. Eth-IPv6-UDP on TG-to-DUT-if2.
  • [Cfg] DUT configuration: DUT is configured with IPv4 on one DUT-to-TG interface and IPv6 address on second DUT-to-TG interface. MAP-T domain is configured in test template based on test parameters.
  • [Ver] TG verification: UDP packets in IPv4 are sent by TG to destination in MAP domain. IPv6 packets with translated IPv4 addresses are received on TG interface.
  • [Ref] Applicable standard specifications: RFC7599
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
TC01: MAP-T test
 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 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:8c:0b:8f
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:11:f1:2f
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::/96 ea-bits-len 40 psid-offset 0 psid-len 0 map-t
map_del_domain index 0
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::/96 ea-bits-len 0 psid-offset 0 psid-len 0 map-t
map_del_domain index 0
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/40 ip6-src 2001:db8:ffff::/96 ea-bits-len 24 psid-offset 0 psid-len 0 map-t
map_del_domain index 0

DUT2:
no VAT command executed