byteblowerll.byteblower.StreamRandomSizeModifier

class byteblowerll.byteblower.StreamRandomSizeModifier(*args, **kwargs)

A frame size modifier which will change the size of the frame randomly between a minimum and maximum value.

Deprecated since version 2.3.0: This functionality is replaced by the FrameSizeModifierRandom, see Frame.ModifierSizeRandomSet() for more information.

ByteBlower allows different modifiers on a flow. Some modifiers work on the timing parameters of a frame, others on the size or content. The StreamModifierRandomSize is a modifier which modifies the size of the frames added to the Stream on which this Modifier is added.

A StreamModifierRandomSize will change the frame size randomly. The following parameters can be configured:

Minimum size
the minimum frame size.
Maximum size
the maximum frame size.

So, a stream with a StreamModifierRandomSize installed, will start sending frames with a size randomly chosen between <Minimum size> size and <Maximum size> size. Each time a frame is sent, a new size is selected.

All sizes are without the additional 4 bytes Ethernet checksum.

The frame size modifier will change the sizes of the Frames added to the stream. If the original frame size is bigger, the size will truncated to the requested frame size. If automatic checksum calculations have been enabled on the Frame, they will be recalculated. This depends on the configuration of the Frame. See the Frame documentation on how this can be done.

If the original frame size of a Frame is too short, the Frame will be padded with zero-value bytes.

If multiple frames are added to a TxStream which is configured with a StreamModifierRandomSize, the frames are sent alternately, while the modifier is applied on all of them.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

MaximumGet() Method to get the current configured maximum frame size.
MaximumSet(inMaximum) Sets the Maximum size of a Frame of a flow with StreamModifierRandomSize.
MinimumGet() Method to get the currently configured minimum frame size.
MinimumSet(inMinimum) Sets the Minimum size of a Frame of a flow with StreamModifierRandomSize.
ReCommitValues(inFrame)
__init__(*args, **kwargs) Initialize self.

Attributes

thisown The membership flag