byteblower_test_framework.constants module

Constants used along the ByteBlower Test Framework.

Added in version 1.2.0: Keep all commonly used constants together.

byteblower_test_framework.constants.DEFAULT_FRAME_LENGTH: int = 1024

Default length for a frame.

This is the Ethernet frame size excluding FCS.

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_FRAME_RATE: float = 100.0

Default rate at which the frames are transmitted in frame blasting based flows (in frames per second).

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_G711_PACKETIZATION: int = 20

Default packetization used for G.711 voice traffic simulation. Defined in number of milliseconds

Changed in version 1.2.0: Renamed from DEFAULT_PACKETIZATION and moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_IPV4_NETMASK = '255.255.255.0'

Default netmask for an IPv4Port

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_IP_DSCP: int = 0

Default value for IP Differentiated Services Code Point (DSCP).

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_IP_ECN: int = 0

Default value for IP Explicit Congestion Notification (ECN).

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_LOSS_PERCENTAGE: float = 1.0

Default maximum frame loss percentage (range [0.0, 100.0]) used in the latency and frame loss related analysers.

byteblower_test_framework.constants.DEFAULT_MAX_LATENCY_THRESHOLD: float = 5

Default maximum average latency in milliseconds used in the latency and frame loss related analysers.

byteblower_test_framework.constants.DEFAULT_NUMBER_OF_FRAMES: int = -1

Default number of frames to transmit in frame blasting based flows.

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.DEFAULT_PREFIX_LENGTH: int = 64

Default prefix_length for an IPv6Port

Added in version 1.4.0.

byteblower_test_framework.constants.DEFAULT_QUANTILE: float = 99.9

Default quantile (range [0.0, 100.0]) for maximum latency used in the latency and frame loss related analysers.

byteblower_test_framework.constants.DEFAULT_RESULT_TIMEOUT = datetime.timedelta(seconds=120)

Default time to wait for Endpoints to finalize and return their results to the Meeting Point, defaults to timedelta(minutes=2)

byteblower_test_framework.constants.DEFAULT_SAMPLING_INTERVAL = datetime.timedelta(seconds=1)

Server default sampling interval

byteblower_test_framework.constants.DEFAULT_WAIT_FOR_FINISH: timedelta = datetime.timedelta(seconds=5)

Default time to wait for sessions closing and final packets being received, defaults to timedelta(seconds=5)

byteblower_test_framework.constants.INFINITE_NUMBER_OF_FRAMES: int = -1

Number of frames to define when you want to transmit forever in frame blasting based flows.

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.

byteblower_test_framework.constants.RESULT_BUFFER_DURATION = datetime.timedelta(seconds=5)

Default duration to keep over time results in the server’s result history buffer

byteblower_test_framework.constants.UDP_DYNAMIC_PORT_START: int = 49152

First available UDP / TCP port number for dynamic assignment.

It is the fir port number which is not in the range of port numbers allocated by IANA for System Ports or User Ports.

The range 49152-65535 (2^15 + 2^14 to 2^16 - 1) contains dynamic or private ports that cannot be registered with IANA.

See also:

Changed in version 1.2.0: Moved common constants to the byteblower_test_framework.constants module.