2.93. test_reassembly module¶
-
class
test_reassembly.
TestFIFReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
Fragments in fragments reassembly
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_fif4
()¶ Fragments in fragments (4o4)
-
test_fif6
()¶ Fragments in fragments (6o6)
-
verify_capture
(capture, ip_class, dropped_packet_indexes=[])¶ Verify captured packet stream.
- Parameters
capture (list) – Captured packet stream.
-
-
class
test_reassembly.
TestIPv4MWReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 Reassembly (multiple workers)
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=35)¶ Create input packet stream
- Parameters
packet_sizes (list) – Required packet sizes.
-
send_packets
(packets)¶
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_worker_conflict
()¶ 1st and FO=0 fragments on different workers
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet stream.
- Parameters
capture (list) – Captured packet stream.
-
worker_config
= 'workers 3'¶
-
classmethod
-
class
test_reassembly.
TestIPv4Reassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 Reassembly
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=35)¶ Create input packet stream
- Parameters
packet_sizes (list) – Required packet sizes.
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_44924
()¶ compress tiny fragments
-
test_5737
()¶ fragment length + ip header size > 65535
-
test_disabled
()¶ reassembly disabled
-
test_duplicates
()¶ duplicate fragments
-
test_frag_1
()¶ fragment of size 1
-
test_long_fragment_chain
()¶ long fragment chain
-
test_overlap1
()¶ overlapping fragments case #1
-
test_overlap2
()¶ overlapping fragments case #2
-
test_random
()¶ random order reassembly
-
test_reassembly
()¶ basic reassembly
-
test_reversed
()¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
()¶ timeout (inline)
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet stream.
- Parameters
capture (list) – Captured packet stream.
-
classmethod
-
class
test_reassembly.
TestIPv4ReassemblyLocalNode
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 Reassembly for packets coming to ip4-local node
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_count=35)¶ Create input packet stream for defined interface.
- Parameters
packet_sizes (list) – Required packet sizes.
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_reassembly
()¶ basic reassembly
-
verify_capture
(capture)¶ Verify captured packet stream.
- Parameters
capture (list) – Captured packet stream.
-
classmethod
-
class
test_reassembly.
TestIPv4SVReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 Shallow Virtual Reassembly
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
test_basic
()¶ basic reassembly
-
test_lru
()¶ reassembly reuses LRU element
-
test_timeout
()¶ reassembly timeout
-
-
class
test_reassembly.
TestIPv6MWReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv6 Reassembly (multiple workers)
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=35)¶ Create input packet stream
- Parameters
packet_sizes (list) – Required packet sizes.
-
send_packets
(packets)¶
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_worker_conflict
()¶ 1st and FO=0 fragments on different workers
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet strea .
- Parameters
capture (list) – Captured packet stream.
-
worker_config
= 'workers 3'¶
-
classmethod
-
class
test_reassembly.
TestIPv6Reassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv6 Reassembly
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=35)¶ Create input packet stream for defined interface.
- Parameters
packet_sizes (list) – Required packet sizes.
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
show_commands_at_teardown
()¶ Allow subclass specific teardown logging additions.
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_buffer_boundary
()¶ fragment header crossing buffer boundary
-
test_disabled
()¶ reassembly disabled
-
test_duplicates
()¶ duplicate fragments
-
test_invalid_frag_size
()¶ fragment size not a multiple of 8
-
test_invalid_packet_size
()¶ total packet size > 65535
-
test_long_fragment_chain
()¶ long fragment chain
-
test_missing_upper
()¶ missing upper layer
-
test_overlap1
()¶ overlapping fragments case #1
-
test_overlap2
()¶ overlapping fragments case #2
-
test_random
()¶ random order reassembly
-
test_reassembly
()¶ basic reassembly
-
test_reversed
()¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
()¶ timeout (inline)
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet strea .
- Parameters
capture (list) – Captured packet stream.
-
classmethod
-
class
test_reassembly.
TestIPv6SVReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv6 Shallow Virtual Reassembly
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
test_basic
()¶ basic reassembly
-
test_lru
()¶ reassembly reuses LRU element
-
test_timeout
()¶ reassembly timeout
-