bbperf 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ dist
bbperf-0.0.1/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2024 Cloudflare, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+
bbperf-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: bbperf
3
+ Version: 0.0.1
4
+ Summary: An end-to-end performance and bufferbloat measurement tool
5
+ Project-URL: Homepage, https://github.com/cloudflare/bbperf
6
+ Project-URL: Issues, https://github.com/cloudflare/bbperf/issues
7
+ Author-email: Mike Freemon <mfreemon@cloudflare.com>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Classifier: Environment :: Console
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: System :: Networking
15
+ Requires-Python: >=3.9
16
+ Description-Content-Type: text/markdown
17
+
18
+ <p align="center"><strong>bbperf</strong> <em>- An end-to-end performance and bufferbloat measurement tool</em></p>
19
+
20
+ `bbperf` measures the following for both TCP and UDP:
21
+
22
+ * End-to-end latency, both unloaded and loaded
23
+ * Throughput
24
+ * Bandwidth Delay Product (BDP)
25
+ * Usage of buffers between the endpoints
26
+ * Bufferbloat (when the usage of buffers is excessive)
27
+
28
+ For UDP, it also measures:
29
+
30
+ * Packet rates
31
+ * Packet loss rates
32
+
33
+ Features that distinguish this tool from existing tools include:
34
+
35
+ * Latency, both unloaded and loaded, is measured by the same flow that is under test.
36
+
37
+ Other tools will commonly measure latency using a different flow or different protocol. One of the reasons why using different protocols and/or different flows is not desirable is because fair queuing will cause the latency of those other flows to be much lower (better) than the flow that matters.
38
+
39
+ * Bufferbloat is calculated
40
+
41
+ It is often assumed that TCP receive buffers are the only source of bufferbloat. While that is common, it misses many other locations where bufferbloat may occur. This tool reports the effects of all sources of bufferbloat, not just TCP receive buffers.
42
+
43
+ * Automatic generation of graphs
44
+
45
+ ### Usage
46
+
47
+ To run a test:
48
+
49
+ 1. Start the server on one host
50
+ ```
51
+ $ bbperf.py -s
52
+ ```
53
+
54
+ 2. Run the client on another host
55
+ ```
56
+ $ bbperf.py -c <ip address of server> [additional options as desired]
57
+ ```
58
+
59
+ `bbperf` will use port 5301 between the client and server (by default).
60
+
61
+ The first 5 seconds performs a calibration, during which it captures the unloaded latency between endpoints.
62
+
63
+ The direction of data flow is from the client to the server. That is reversed when the "-R" option is specified.
64
+
65
+ ```
66
+ $ bbperf.py --help
67
+ usage: bbperf.py [-h] [-v] [-s] [-c SERVER_IP] [-p SERVER_PORT] [-R] [-t SECONDS] [-u] [-b BANDWIDTH] [-g] [-k]
68
+
69
+ bbperf: end to end performance and bufferbloat measurement tool
70
+
71
+ options:
72
+ -h, --help show this help message and exit
73
+ -v, --verbosity increase output verbosity
74
+ -s, --server run in server mode
75
+ -c SERVER_IP, --client SERVER_IP
76
+ run in client mode
77
+ -p SERVER_PORT, --port SERVER_PORT
78
+ server port (default: 5301)
79
+ -R, --reverse data flow in download direction (server to client)
80
+ -t SECONDS, --time SECONDS
81
+ duration of run in seconds
82
+ -u, --udp run in UDP mode (default: TCP mode)
83
+ -b BANDWIDTH, --bandwidth BANDWIDTH
84
+ n[kmgKMG] | n[kmgKMG]pps
85
+ -g, --graph generate graph (requires gnuplot)
86
+ -k, --keep keep data file
87
+ ```
88
+
89
+ Output from `bbperf` includes the following information:
90
+ ```
91
+ sent_time time when a packet was sent
92
+ recv_time time when a packet was received
93
+ sender_pps packets per second sent
94
+ sender_Mbps bits per second sent
95
+ receiver_pps packets per second received
96
+ receiver_Mbps bits per second received
97
+ unloaded_rtt_ms unloaded RTT in milliseconds (determined during calibration)
98
+ rtt_ms RTT in milliseconds
99
+ BDP_bytes Calculated BDP in bytes
100
+ buffered_bytes Actual bytes in flight
101
+ bloat Ratio of buffered bytes to BDP
102
+ pkts_dropped number of packets dropped (UDP only)
103
+ drop% percentage of packets dropped (UDP only)
104
+ ```
105
+
106
+ ### Installation
107
+
108
+ `bbperf` is available via PyPI repository (pypi.org) and can be installed using pip.
109
+
110
+ ```
111
+ python3 -m venv bbperf-venv
112
+ . bbperf-venv/bin/active
113
+ pip install bbperf
114
+
115
+ bbperf.py [options]
116
+ ```
117
+
118
+ In the event python3 is not already installed on the host:
119
+
120
+ ```
121
+ apt-get install python3 python3-pip (Debian/Ubuntu)
122
+ dnf install python3 python3-pip (Fedora/RHEL)
123
+ ```
124
+
125
+ ---
126
+ Copyright (c) 2024 Cloudflare, Inc.<br/>
127
+ Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
128
+
bbperf-0.0.1/README.md ADDED
@@ -0,0 +1,111 @@
1
+ <p align="center"><strong>bbperf</strong> <em>- An end-to-end performance and bufferbloat measurement tool</em></p>
2
+
3
+ `bbperf` measures the following for both TCP and UDP:
4
+
5
+ * End-to-end latency, both unloaded and loaded
6
+ * Throughput
7
+ * Bandwidth Delay Product (BDP)
8
+ * Usage of buffers between the endpoints
9
+ * Bufferbloat (when the usage of buffers is excessive)
10
+
11
+ For UDP, it also measures:
12
+
13
+ * Packet rates
14
+ * Packet loss rates
15
+
16
+ Features that distinguish this tool from existing tools include:
17
+
18
+ * Latency, both unloaded and loaded, is measured by the same flow that is under test.
19
+
20
+ Other tools will commonly measure latency using a different flow or different protocol. One of the reasons why using different protocols and/or different flows is not desirable is because fair queuing will cause the latency of those other flows to be much lower (better) than the flow that matters.
21
+
22
+ * Bufferbloat is calculated
23
+
24
+ It is often assumed that TCP receive buffers are the only source of bufferbloat. While that is common, it misses many other locations where bufferbloat may occur. This tool reports the effects of all sources of bufferbloat, not just TCP receive buffers.
25
+
26
+ * Automatic generation of graphs
27
+
28
+ ### Usage
29
+
30
+ To run a test:
31
+
32
+ 1. Start the server on one host
33
+ ```
34
+ $ bbperf.py -s
35
+ ```
36
+
37
+ 2. Run the client on another host
38
+ ```
39
+ $ bbperf.py -c <ip address of server> [additional options as desired]
40
+ ```
41
+
42
+ `bbperf` will use port 5301 between the client and server (by default).
43
+
44
+ The first 5 seconds performs a calibration, during which it captures the unloaded latency between endpoints.
45
+
46
+ The direction of data flow is from the client to the server. That is reversed when the "-R" option is specified.
47
+
48
+ ```
49
+ $ bbperf.py --help
50
+ usage: bbperf.py [-h] [-v] [-s] [-c SERVER_IP] [-p SERVER_PORT] [-R] [-t SECONDS] [-u] [-b BANDWIDTH] [-g] [-k]
51
+
52
+ bbperf: end to end performance and bufferbloat measurement tool
53
+
54
+ options:
55
+ -h, --help show this help message and exit
56
+ -v, --verbosity increase output verbosity
57
+ -s, --server run in server mode
58
+ -c SERVER_IP, --client SERVER_IP
59
+ run in client mode
60
+ -p SERVER_PORT, --port SERVER_PORT
61
+ server port (default: 5301)
62
+ -R, --reverse data flow in download direction (server to client)
63
+ -t SECONDS, --time SECONDS
64
+ duration of run in seconds
65
+ -u, --udp run in UDP mode (default: TCP mode)
66
+ -b BANDWIDTH, --bandwidth BANDWIDTH
67
+ n[kmgKMG] | n[kmgKMG]pps
68
+ -g, --graph generate graph (requires gnuplot)
69
+ -k, --keep keep data file
70
+ ```
71
+
72
+ Output from `bbperf` includes the following information:
73
+ ```
74
+ sent_time time when a packet was sent
75
+ recv_time time when a packet was received
76
+ sender_pps packets per second sent
77
+ sender_Mbps bits per second sent
78
+ receiver_pps packets per second received
79
+ receiver_Mbps bits per second received
80
+ unloaded_rtt_ms unloaded RTT in milliseconds (determined during calibration)
81
+ rtt_ms RTT in milliseconds
82
+ BDP_bytes Calculated BDP in bytes
83
+ buffered_bytes Actual bytes in flight
84
+ bloat Ratio of buffered bytes to BDP
85
+ pkts_dropped number of packets dropped (UDP only)
86
+ drop% percentage of packets dropped (UDP only)
87
+ ```
88
+
89
+ ### Installation
90
+
91
+ `bbperf` is available via PyPI repository (pypi.org) and can be installed using pip.
92
+
93
+ ```
94
+ python3 -m venv bbperf-venv
95
+ . bbperf-venv/bin/active
96
+ pip install bbperf
97
+
98
+ bbperf.py [options]
99
+ ```
100
+
101
+ In the event python3 is not already installed on the host:
102
+
103
+ ```
104
+ apt-get install python3 python3-pip (Debian/Ubuntu)
105
+ dnf install python3 python3-pip (Fedora/RHEL)
106
+ ```
107
+
108
+ ---
109
+ Copyright (c) 2024 Cloudflare, Inc.<br/>
110
+ Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
111
+
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["hatchling >= 1.26"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "bbperf"
7
+ version = "0.0.1"
8
+ authors = [
9
+ { name="Mike Freemon", email="mfreemon@cloudflare.com" },
10
+ ]
11
+ description = "An end-to-end performance and bufferbloat measurement tool"
12
+ readme = "README.md"
13
+ requires-python = ">=3.9"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: OS Independent",
17
+ "Environment :: Console",
18
+ "License :: OSI Approved :: Apache Software License",
19
+ "Topic :: System :: Networking",
20
+ ]
21
+ license = "Apache-2.0"
22
+ license-files = ["LICEN[CS]E*"]
23
+
24
+ [project.urls]
25
+ Homepage = "https://github.com/cloudflare/bbperf"
26
+ Issues = "https://github.com/cloudflare/bbperf/issues"
27
+
28
+ [project.scripts]
29
+ bbperf = "bbperf.bbperf:mainline"
@@ -0,0 +1,3 @@
1
+ __pycache__
2
+ .vscode
3
+ .venv*
File without changes
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/python3 -u
2
+
3
+ # Copyright (c) 2024 Cloudflare, Inc.
4
+ # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
5
+
6
+ import argparse
7
+
8
+ from . import client
9
+ from . import server
10
+ from . import util
11
+ from . import const
12
+
13
+ def mainline():
14
+
15
+ parser = argparse.ArgumentParser(description="bbperf: end to end performance and bufferbloat measurement tool")
16
+
17
+ parser.add_argument("-v", "--verbosity",
18
+ action="count",
19
+ default=0,
20
+ help="increase output verbosity")
21
+
22
+ parser.add_argument("-s", "--server",
23
+ action="store_true",
24
+ default=False,
25
+ help="run in server mode")
26
+
27
+ parser.add_argument("-c", "--client",
28
+ metavar="SERVER_IP",
29
+ default=None,
30
+ help="run in client mode")
31
+
32
+ parser.add_argument("-p", "--port",
33
+ metavar="SERVER_PORT",
34
+ type=int,
35
+ default=const.SERVER_PORT,
36
+ help="server port (default: 5301)")
37
+
38
+ parser.add_argument("-R", "--reverse",
39
+ action="store_true",
40
+ default=False,
41
+ help="data flow in download direction (server to client)")
42
+
43
+ parser.add_argument("-t", "--time",
44
+ metavar="SECONDS",
45
+ type=int,
46
+ default=const.DURATION_SEC,
47
+ help="duration of run in seconds")
48
+
49
+ parser.add_argument("-u", "--udp",
50
+ action="store_true",
51
+ default=False,
52
+ help="run in UDP mode (default: TCP mode)")
53
+
54
+ parser.add_argument("-b", "--bandwidth",
55
+ default=None,
56
+ help="n[kmgKMG] | n[kmgKMG]pps")
57
+
58
+ parser.add_argument("-g", "--graph",
59
+ action="store_true",
60
+ default=False,
61
+ help="generate graph (requires gnuplot)")
62
+
63
+ parser.add_argument("-k", "--keep",
64
+ action="store_true",
65
+ default=False,
66
+ help="keep data file")
67
+
68
+ args = parser.parse_args()
69
+
70
+ util.validate_args(args)
71
+
72
+ if args.client:
73
+ client.client_mainline(args)
74
+ else:
75
+ server.server_mainline(args)
76
+
77
+
78
+ if __name__ == '__main__':
79
+ mainline()
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2024 Cloudflare, Inc.
2
+ # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
3
+
4
+ import time
5
+
6
+ from . import const
7
+
8
+
9
+ calibration_start_time = None
10
+ calibration_end_time = None
11
+ min_rtt_sec = None
12
+
13
+
14
+ def start():
15
+ global calibration_start_time
16
+ global calibration_end_time
17
+
18
+ calibration_start_time = time.time()
19
+ calibration_end_time = calibration_start_time + const.UNLOADED_DURATION_SEC
20
+
21
+ def is_calibrated():
22
+ if calibration_end_time is None:
23
+ return False
24
+
25
+ if time.time() < calibration_end_time:
26
+ return False
27
+
28
+ return True
29
+
30
+ def update_rtt_sec(new_sample):
31
+ global min_rtt_sec
32
+
33
+ if (min_rtt_sec is None) or (new_sample < min_rtt_sec):
34
+ min_rtt_sec = new_sample
35
+
36
+ def get_unloaded_latency_rtt_sec():
37
+ if min_rtt_sec is None:
38
+ raise Exception("ERROR: there is no min rtt")
39
+
40
+ return min_rtt_sec
@@ -0,0 +1,223 @@
1
+ #!/usr/bin/python3
2
+
3
+ # Copyright (c) 2024 Cloudflare, Inc.
4
+ # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
5
+
6
+ import multiprocessing
7
+ import time
8
+ import queue
9
+ import socket
10
+
11
+ from . import data_sender_thread
12
+ from . import data_udp_ping_sender_thread
13
+ from . import data_receiver_thread
14
+ from . import control_receiver_thread
15
+ from . import util
16
+ from . import calibration
17
+ from . import const
18
+ from . import output
19
+ from . import graph
20
+
21
+ from .tcp_control_connection_class import TcpControlConnectionClass
22
+
23
+
24
+ def client_mainline(args):
25
+ if args.verbosity:
26
+ print("args: {}".format(args))
27
+
28
+ server_ip = args.client
29
+ server_port = args.port
30
+
31
+ data_conn_verification_str = "d" + const.SOFT_SECRET + " "
32
+
33
+ # create control connection
34
+
35
+ if args.verbosity:
36
+ print("creating control connection")
37
+
38
+ control_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
39
+ control_sock.connect((server_ip, server_port))
40
+
41
+ control_conn = TcpControlConnectionClass(control_sock)
42
+ control_conn.set_args(args)
43
+
44
+ control_conn.send_validation_string()
45
+
46
+ if args.verbosity:
47
+
48
+ print("created control connection")
49
+
50
+ if args.verbosity:
51
+ print("sending args to server {}".format(vars(args)))
52
+
53
+ control_conn.send_args_to_server(args)
54
+
55
+ if args.verbosity:
56
+ print("sent args to server")
57
+
58
+ # create data connection
59
+
60
+ if args.verbosity:
61
+ print("creating data connection")
62
+
63
+ if args.udp:
64
+ data_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
65
+ data_sock.settimeout(const.SOCKET_TIMEOUT_SEC)
66
+
67
+ else:
68
+ data_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
69
+ data_sock.connect((server_ip, server_port))
70
+ data_sock.settimeout(const.SOCKET_TIMEOUT_SEC)
71
+
72
+ # send verification string
73
+ num_bytes_sent = data_sock.send(data_conn_verification_str.encode())
74
+ if num_bytes_sent != len(data_conn_verification_str):
75
+ raise Exception("ERROR: send failed")
76
+
77
+ server_addr = (server_ip, server_port)
78
+
79
+ if args.verbosity:
80
+ print("created data connection ({})".format("udp" if args.udp else "tcp"))
81
+
82
+ # run test
83
+
84
+ if args.verbosity:
85
+ print("test running")
86
+
87
+ calibration.start()
88
+
89
+ if not args.reverse:
90
+ # up direction
91
+
92
+ control_receiver_stdout_queue = multiprocessing.Queue()
93
+ control_receiver_results_queue = multiprocessing.Queue()
94
+
95
+ control_receiver_process = multiprocessing.Process(
96
+ name = "controlreceiver",
97
+ target = control_receiver_thread.run_recv_term_queue,
98
+ args = (args, control_receiver_stdout_queue, control_conn, control_receiver_results_queue),
99
+ daemon = True)
100
+
101
+ control_receiver_process.start()
102
+
103
+ data_sender_stdout_queue = multiprocessing.Queue()
104
+
105
+ data_sender_process = multiprocessing.Process(
106
+ name = "datasender",
107
+ target = data_sender_thread.run,
108
+ args = (args, data_sender_stdout_queue, data_sock, server_addr),
109
+ daemon = True)
110
+
111
+ # test starts here
112
+ data_sender_process.start()
113
+
114
+ thread_list = []
115
+ thread_list.append(control_receiver_process)
116
+ thread_list.append(data_sender_process)
117
+
118
+ queue_list = []
119
+ queue_list.append([control_receiver_results_queue, output.print_output])
120
+ queue_list.append([control_receiver_stdout_queue, print])
121
+ queue_list.append([data_sender_stdout_queue, print])
122
+
123
+ if args.reverse:
124
+ # down direction
125
+
126
+ # udp pinger
127
+ if args.udp:
128
+ data_udp_ping_sender_stdout_queue = multiprocessing.Queue()
129
+
130
+ data_udp_ping_sender_process = multiprocessing.Process(
131
+ name = "dataudppingsender",
132
+ target = data_udp_ping_sender_thread.run,
133
+ args = (args, data_udp_ping_sender_stdout_queue, data_sock, server_addr),
134
+ daemon = True)
135
+
136
+ data_udp_ping_sender_process.start()
137
+
138
+ # yield to let the first ping fly
139
+ time.sleep(0.005)
140
+
141
+ data_receiver_stdout_queue = multiprocessing.Queue()
142
+
143
+ data_receiver_process = multiprocessing.Process(
144
+ name = "datareceiver",
145
+ target = data_receiver_thread.run,
146
+ args = (args, data_receiver_stdout_queue, control_conn, data_sock, server_addr),
147
+ daemon = True)
148
+
149
+ data_receiver_process.start()
150
+
151
+ control_receiver_stdout_queue = multiprocessing.Queue()
152
+ control_receiver_results_queue = multiprocessing.Queue()
153
+
154
+ control_receiver_process = multiprocessing.Process(
155
+ name = "controlreceiver",
156
+ target = control_receiver_thread.run_recv_queue,
157
+ args = (args, control_receiver_stdout_queue, control_conn, control_receiver_results_queue),
158
+ daemon = True)
159
+
160
+ control_receiver_process.start()
161
+
162
+ # test starts here
163
+
164
+ control_conn.send_start_message_to_server()
165
+
166
+ thread_list = []
167
+ thread_list.append(data_receiver_process)
168
+ thread_list.append(control_receiver_process)
169
+ if args.udp:
170
+ thread_list.append(data_udp_ping_sender_process)
171
+
172
+ queue_list = []
173
+ if args.udp:
174
+ queue_list.append([data_udp_ping_sender_stdout_queue, print])
175
+ queue_list.append([data_receiver_stdout_queue, print])
176
+ queue_list.append([control_receiver_stdout_queue, print])
177
+ queue_list.append([control_receiver_results_queue, output.print_output])
178
+
179
+
180
+ # output loop
181
+
182
+ output.init(args)
183
+
184
+ while True:
185
+ queue_was_processed = False
186
+
187
+ for queue_to_read, function_to_call in queue_list:
188
+ try:
189
+ s1 = queue_to_read.get_nowait()
190
+ queue_was_processed = True
191
+ function_to_call(s1)
192
+ except queue.Empty:
193
+ pass
194
+
195
+ if queue_was_processed:
196
+ # immediately loop again
197
+ continue
198
+
199
+ if util.threads_are_running(thread_list):
200
+ # nothing in queues, but test is still running
201
+ time.sleep(0.01)
202
+ continue
203
+
204
+ # exit program
205
+ break
206
+
207
+ output.term()
208
+
209
+ util.done_with_socket(data_sock)
210
+ control_conn.close()
211
+
212
+ graphdatafilename = output.get_graph_data_file_name()
213
+ rawdatafilename = output.get_raw_data_file_name()
214
+
215
+ if args.graph:
216
+ graph.create_graph(args, graphdatafilename)
217
+ print("created graph: {}".format(graphdatafilename + ".png"))
218
+
219
+ if args.keep:
220
+ print("keeping graph data file: {}".format(graphdatafilename))
221
+ print("keeping raw data file: {}".format(rawdatafilename))
222
+ else:
223
+ output.delete_data_files()
@@ -0,0 +1,27 @@
1
+ # Copyright (c) 2024 Cloudflare, Inc.
2
+ # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
3
+
4
+ # defaults
5
+ SERVER_PORT = 5301
6
+ DURATION_SEC = 10
7
+ UNLOADED_DURATION_SEC=5
8
+
9
+ # for socket recv()
10
+ BUFSZ = 4096
11
+
12
+ PAYLOAD_1K = b'a'*1024
13
+ PAYLOAD_4K = b'a'*4096
14
+
15
+ SOFT_SECRET = "ZZ32gkogidrueowiruvnmxn432874ZZ"
16
+
17
+ # sample interval time
18
+ SAMPLE_INTERVAL_SEC = 0.1
19
+ STDOUT_INTERVAL_SEC = 1
20
+
21
+ RATE_LIMITED_BATCH_SIZE_PKTS_UDP_PKTS = 20
22
+ RATE_LIMITED_BATCH_SIZE_PKTS_TCP_PKTS = 5
23
+
24
+ START_MSG = " start "
25
+ UDP_PING_MSG = "ping"
26
+
27
+ SOCKET_TIMEOUT_SEC=20