STLFlowStats vs STLFlowLatencyStats and update stream

227 views
Skip to first unread message

Marc Viola

unread,
May 28, 2021, 5:43:20 PM5/28/21
to TRex Traffic Generator
Hi,

Using linux interfaces.  I'm creating a stream using the following:
streams.append(STLStream(packet = STLPktBuilder(base_pkt/random_string), mode = STLTXCont(bps_L2 = bitrate*1000),flow_stats = STLFlowLatencyStats(i)))

When I try to update the stream with:
c.update(ports=port_0,mult=str(bitrate)+'kbps',force=True)

Not only the bitrate doesn't change but sometimes I get the following error:
Port 0 : *** current stream configuration enforces a minimum rate of '965000' BPS L2

I figured there would be a unit calculation problem but if I replace STLFlowLatencyStats with STLFlowStats then the rate chages.  Is there any reason the Latency function wouldn't work in this case?  Is it a side effect of the interface not being supported or something?

Thanks.

Besart Dollma

unread,
May 29, 2021, 2:29:09 AM5/29/21
to TRex Traffic Generator

Marc Viola

unread,
May 29, 2021, 12:12:37 PM5/29/21
to TRex Traffic Generator
Thanks
Reply all
Reply to author
Forward
0 new messages