2.35. test_ipsec_ah module

class test_ipsec_ah.TestIpsecAh(methodName='runTest')

Bases: framework.VppTestCase

Basic test for IPSEC using AH transport and Tunnel mode

Below 4 cases are covered as part of this test 1) ipsec ah v4 transport basic test - IPv4 Transport mode

scenario using HMAC-SHA1-96 intergrity algo
  1. ipsec ah v4 transport burst test
Above test for 257 pkts
  1. ipsec ah 4o4 tunnel basic test - IPv4 Tunnel mode
scenario using HMAC-SHA1-96 intergrity algo
  1. ipsec ah 4o4 tunnel burst test
Above test for 257 pkts

TRANSPORT MODE:

— encrypt —
|pg2| <——-> |VPP|
— decrypt —

TUNNEL MODE:

— encrypt — plain —
|pg0| ——-> |VPP| ——> |pg1|

— — —

— decrypt — plain —

|pg0| <——- |VPP| <—— |pg1|
— — —

Note : IPv6 is not covered

classmethod configAhTra()
classmethod configAhTun()
configScapySA(is_tun=False)
gen_encrypt_pkts(sa, sw_intf, src, dst, count=1)
gen_pkts(sw_intf, src, dst, count=1)
remote_pg0_lb_addr = '1.1.1.1'
remote_pg1_lb_addr = '2.2.2.2'
send_and_expect(input, pkts, output, count=1)
classmethod setUpClass()
tearDown()
test_ipsec_ah_tra_basic(count=1)

ipsec ah v4 transport basic test

test_ipsec_ah_tra_burst()

ipsec ah v4 transport burst test

test_ipsec_ah_tun_basic(count=1)

ipsec ah 4o4 tunnel basic test

test_ipsec_ah_tun_burst()

ipsec ah 4o4 tunnel burst test