Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.01 KB

File metadata and controls

31 lines (26 loc) · 1.01 KB
title sidebar_label
ConnectionConfig
ConnectionConfig

The ConnectionConfig is used to configure a connection between two subnetworks (see set_connection).

connection_config = ConnectionConfig(
    # Percentage of packet lost each way between subnetworks 
    # OPTIONAL
    # DEFAULT: 0.0
    packet_loss_percentage = 50.0,

    # Amount of delay added to packets each way between subnetworks
    # OPTIONAL: Valid value are UniformPacketDelayDistribution or NormalPacketDelayDistribution
    packet_delay_distribution = UniformPacketDelayDistribution(
        # Delay in ms
        ms = 500,
    ),
)

:::tip See kurtosis.connection for pre-built ConnectionConfig objects :::