2.77. 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
-
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.
TestIPReassemblyMixin
¶ Bases:
object
-
test_disabled
(scapy_ip_family, stream, dropped_packet_indexes)¶ reassembly disabled
-
test_duplicates
(scapy_ip_family, stream)¶ duplicate fragments
-
test_random
(scapy_ip_family, stream)¶ random order reassembly
-
test_reassembly
(scapy_ip_family, stream)¶ basic reassembly
-
test_reversed
(scapy_ip_family, stream)¶ reverse order reassembly
-
test_timeout_inline
(scapy_ip_family, stream, dropped_packet_indexes)¶ timeout (inline)
-
verify_capture
(scapy_ip_family, capture, dropped_packet_indexes=None)¶ Verify captured packet stream.
- Parameters
capture (list) – Captured packet stream.
-
-
class
test_reassembly.
TestIPv4Reassembly
(methodName='runTest')¶ Bases:
test_reassembly.TestIPReassemblyMixin
,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
-
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
(family, stream, dropped_packet_indexes)¶ reassembly disabled
-
test_duplicates
(family, stream)¶ duplicate fragments
-
test_frag_1
()¶ fragment of size 1
-
test_overlap1
()¶ overlapping fragments case #1
-
test_overlap2
()¶ overlapping fragments case #2
-
test_random
(family, stream)¶ random order reassembly
-
test_reassembly
(family, stream)¶ basic reassembly
-
test_reversed
(family, stream)¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
(family, stream, dropped_packet_indexes)¶ timeout (inline)
-
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
-
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.
TestIPv6Reassembly
(methodName='runTest')¶ Bases:
test_reassembly.TestIPReassemblyMixin
,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
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_disabled
(family, stream, dropped_packet_indexes)¶ reassembly disabled
-
test_duplicates
(family, stream)¶ duplicate fragments
-
test_invalid_frag_size
()¶ fragment size not a multiple of 8
-
test_invalid_packet_size
()¶ total packet size > 65535
-
test_missing_upper
()¶ missing upper layer
-
test_overlap1
()¶ overlapping fragments case #1 (differs from IP test case)
-
test_overlap2
()¶ overlapping fragments case #2 (differs from IP test case)
-
test_random
(family, stream)¶ random order reassembly
-
test_reassembly
(family, stream)¶ basic reassembly
-
test_reversed
(family, stream)¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
(family, stream, dropped_packets_index)¶ timeout (inline)
-
classmethod
-
test_reassembly.
validate_scapy_ip_family
(scapy_ip_family)¶