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 thebyteblower_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_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.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.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.