]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: seg6: add selftest for NEXT-C-SID flavor in SRv6 End behavior
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Mon, 12 Sep 2022 17:16:19 +0000 (19:16 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 Sep 2022 10:33:22 +0000 (12:33 +0200)
commit2110977538e530c78be67cb29e4561769d3c6a51
tree40417d45d4bf5b73680801a6c3a93b80eb43d129
parent417a2d42ea498fbbcddf9b9cd9ecf56bd912b96e
selftests: seg6: add selftest for NEXT-C-SID flavor in SRv6 End behavior

This selftest is designed for testing the support of NEXT-C-SID flavor
for SRv6 End behavior. It instantiates a virtual network composed of
several nodes: hosts and SRv6 routers. Each node is realized using a
network namespace that is properly interconnected to others through veth
pairs.
The test considers SRv6 routers implementing IPv4/IPv6 L3 VPNs leveraged
by hosts for communicating with each other. Such routers i) apply
different SRv6 Policies to the traffic received from connected hosts,
considering the IPv4 or IPv6 protocols; ii) use the NEXT-C-SID
compression mechanism for encoding several SRv6 segments within a single
128-bit SID address, referred to as a Compressed SID (C-SID) container.

The NEXT-C-SID is provided as a "flavor" of the SRv6 End behavior,
enabling it to properly process the C-SID containers. The correct
execution of the enabled NEXT-C-SID SRv6 End behavior is verified
through reachability tests carried out between hosts belonging to the
same VPN.

Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Acked-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/srv6_end_next_csid_l3vpn_test.sh [new file with mode: 0755]