IKEv2 with VPP
This sections describes some of the ways to establish IKEv2 connection between two VPP instances or VPP and strongSwan. It covers scenarios in which VPP is the IKEv2 responder (and strongSwan initiator) and vice versa.
Child SA mode
VPP protects a tunnel interface with the negotiated child SA. The mode on the wire depends on that interface:
ipipinterface (created automatically when the profile has notunnelinterface): the ESP payload is IP, which is tunnel mode on the wire. VPP does not request transport mode and declines a request for it: the response does not includeUSE_TRANSPORT_MODE.other interface set with
ikev2 profile set <name> tunnel <interface>, e.g. GRE: VPP requests transport mode withUSE_TRANSPORT_MODEas the initiator and includes it in the response as the responder when the peer requests it (RFC 7296 section 1.3.1). When both messages carry the notification the ESP payload is the tunnel encapsulation (transport mode). Otherwise the child SA is installed in tunnel mode and the ESP payload is the tunnel packet with its outer IP header.
When NAT traversal is active, VPP declines transport mode on GRE and installs the child SA in tunnel mode with UDP encapsulation. Transport mode with NAT requires the Traffic Selector address substitution in RFC 7296 section 2.23.1, which VPP does not implement.