@@ -144,7 +144,7 @@ def _check_tx_rate_limiting(test_microvm):
144
144
145
145
# First step: get the transfer rate when no rate limiting is enabled.
146
146
# We are receiving the result in KBytes from iperf.
147
- print ("Run guest TX iperf with no rate-limit " )
147
+ print ("Run guest TX iperf for no rate limiting " )
148
148
rate_no_limit_kbps = _get_tx_bandwidth_with_duration (
149
149
test_microvm , eth0 .host_ip , IPERF_TRANSMIT_TIME
150
150
)
@@ -160,11 +160,12 @@ def _check_tx_rate_limiting(test_microvm):
160
160
assert _get_percentage_difference (rate_no_limit_kbps , expected_kbps ) > 100
161
161
162
162
# Second step: check bandwidth when rate limiting is on.
163
+ print ("Run guest TX iperf for rate limiting without burst" )
163
164
_check_tx_bandwidth (test_microvm , eth1 .host_ip , expected_kbps )
164
165
165
166
# Third step: get the number of bytes when rate limiting is on and there is
166
167
# an initial burst size from where to consume.
167
- print ("Run guest TX iperf with exact burst size " )
168
+ print ("Run guest TX iperf for rate limiting with burst " )
168
169
# Use iperf to obtain the bandwidth when there is burst to consume from,
169
170
# send exactly BURST_SIZE packets.
170
171
iperf_cmd = "{} -c {} -n {} -f KBytes -w {} -N" .format (
@@ -192,7 +193,7 @@ def _check_rx_rate_limiting(test_microvm):
192
193
193
194
# First step: get the transfer rate when no rate limiting is enabled.
194
195
# We are receiving the result in KBytes from iperf.
195
- print ("Run guest RX iperf with no rate-limit " )
196
+ print ("Run guest RX iperf with no rate limiting " )
196
197
rate_no_limit_kbps = _get_rx_bandwidth_with_duration (
197
198
test_microvm , eth0 .guest_ip , IPERF_TRANSMIT_TIME
198
199
)
@@ -208,11 +209,12 @@ def _check_rx_rate_limiting(test_microvm):
208
209
assert _get_percentage_difference (rate_no_limit_kbps , expected_kbps ) > 100
209
210
210
211
# Second step: check bandwidth when rate limiting is on.
212
+ print ("Run guest RX iperf for rate limiting without burst" )
211
213
_check_rx_bandwidth (test_microvm , eth1 .guest_ip , expected_kbps )
212
214
213
215
# Third step: get the number of bytes when rate limiting is on and there is
214
216
# an initial burst size from where to consume.
215
- print ("Run guest RX iperf with exact burst size " )
217
+ print ("Run guest RX iperf for rate limiting with burst " )
216
218
# Use iperf to obtain the bandwidth when there is burst to consume from,
217
219
# send exactly BURST_SIZE packets.
218
220
iperf_cmd = "{} {} -c {} -n {} -f KBytes -w {} -N" .format (
0 commit comments