PS_RATEL2BPS#

code: 171

# set
<module-index>/<port-index> PS_RATEL2BPS [<stream_index>] <l2_bps>

# get
<module-index>/<port-index> PS_RATEL2BPS [<stream_index>] ?

Description#

The rate of the traffic transmitted for a stream, expressed in units of bits- per-second at layer-2, thus including the Ethernet header but excluding the inter-frame gap. The bandwidth consumption is somewhat dependent on the length of the packets generated for the stream, and also on the inter-frame gap for the port. The sum of the bandwidth consumption for all the enabled streams must not exceed the effective rate for the port. Setting this command also instructs the Manager to attempt to keep the layer-2 bps rate unchanged in case it has to cap stream rates. Get value is only valid if the rate was the last set using this command.

Actions#

set, get

Parameters#

  1. l2_bps: long integer, stream rate expressed in bits per second

Example#

# set
input:  0/1 PS_RATEL2BPS [0] 1000000
output: <OK>

# get
input:  0/1 PS_RATEL2BPS [0] ?
output: 0/1 PS_RATEL2BPS [0] 1000000