@@ -343,8 +343,8 @@ def add_bandwidth_limit(if_name, rate, burst, latency):
343343 Parameters:
344344 if_name (str): The name of the network interface.
345345 rate (str): The rate at which traffic is allowed to pass, integer (e.g., '10mbit', '500kbit').
346- latency (float): The maximum amount of time a packet can wait in the queue in seconds.
347346 burst (int): The maximum amount of data that can be sent in a burst in bytes.
347+ latency (float): The maximum amount of time a packet can wait in the queue in seconds.
348348 """
349349 with IPRoute () as ipr :
350350 dev = ipr .link_lookup (ifname = if_name )[0 ]
@@ -389,11 +389,13 @@ def setup_tc():
389389
390390 # server to individual audience
391391 add_delay ("v4p2" , 200 )
392- add_bandwidth_limit ("v4p2" , "800kbit" , 1524 , 0.010 ) # burst = rate * latency / 8
392+ add_bandwidth_limit (
393+ "v4p2" , "2400kbit" , 150000 , 0.500
394+ ) # burst = rate * latency / 8, for hd-ra, optimal settings on v4p2: 1200kbit, 20000, 0.500 (constant cwnd)
393395 add_delay ("v5p2" , 300 )
394- add_bandwidth_limit ("v5p2" , "400kbit " , 1624 , 0.020 )
396+ add_bandwidth_limit ("v5p2" , "1800kbit " , 168750 , 0.750 )
395397 add_delay ("v6p2" , 400 )
396- add_bandwidth_limit ("v6p2" , "500kbit " , 1724 , 0.025 )
398+ add_bandwidth_limit ("v6p2" , "1200kbit " , 150000 , 1.000 )
397399
398400 # !Deprecated 0
399401 # # audience to server
0 commit comments