A Linux/Windows tool to measure the network transport layer latency.
Features
Support network transport layer latency measurement (round-trip latency).
Support specifying ping message size, and ping interval.
Support two test modes: test-duration mode and ping-iteration mode.
Support histogram reporting and percentile reporting.
Support interop test with Windows latte.exe.
Support running natively on both Linux and Windows Operating Systems.
Getting Started
Building & installing lagscope
Linux:
Install cmake & gcc and then run the following commands in “terminal shell”.
./do-cmake.sh build
./do-cmake.sh install
lagscope is installed to /usr/local/bin/lagscope.
Windows:
Download Build Tools for Visual Studio; then install C++ build tools workload with default
options and then run the following commands in “Developer Command Prompt”.
.\do-cmake.bat build
.\do-cmake.bat install
lagscope is installed to C:\Program Files (x86)\Lagscope\bin\lagscope.
Usage
lagscope -h
Known issues
UDP is not supported.
Examples of how to run lagscope as a receiver
To measure the network TCP latency between two multi-core serves running Ubuntu 1604, NODE1 (192.168.4.1) and NODE2 (192.168.4.2).
On NODE1 (the receiver), run:
./lagscope -r
(Translation: Run lagscope as a receiver with default settings. See the output from ./lagscope -h for more details about the default settings.)
Example run Histogram
On NODE2 (the sender), run:
./lagscope -s192.168.4.1 -H -a10 -l1 -c98
(Translation: Run lagscope as a sender, with default test settings; report histogram value with customized factors.)
paulkim@NODE2:~/lagscope/src# python3 visualize_data.py -json freq_table.json -img freq_graph.png
INFO: Graph construction from freq_table.json is in progress...
INFO: Graph construction completed
INFO: Graph created in: freq_graph.png
By downloading and running this project, you agree to the license terms of the third-party application software, Microsoft products, and components to be installed.
The third-party software and products are provided to you by third parties. You are responsible for reading and accepting the relevant license terms for all software that will be installed. Microsoft grants you no rights to third party software.
License
The MIT License (MIT)
Copyright (c) 2016 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
lagscope
Summary
A Linux/Windows tool to measure the network transport layer latency.
Features
Support network transport layer latency measurement (round-trip latency).
Support specifying ping message size, and ping interval.
Support two test modes: test-duration mode and ping-iteration mode.
Support histogram reporting and percentile reporting.
Support interop test with Windows latte.exe.
Support running natively on both Linux and Windows Operating Systems.
Getting Started
Building & installing lagscope
Linux:
Install
cmake&gccand then run the following commands in “terminal shell”.lagscope is installed to
/usr/local/bin/lagscope.Windows:
Download
Build Tools for Visual Studio; then installC++ build toolsworkload with default options and then run the following commands in “Developer Command Prompt”.lagscope is installed to
C:\Program Files (x86)\Lagscope\bin\lagscope.Usage
Known issues
Examples of how to run lagscope as a receiver
To measure the network TCP latency between two multi-core serves running Ubuntu 1604, NODE1 (192.168.4.1) and NODE2 (192.168.4.2).
On NODE1 (the receiver), run:
(Translation: Run lagscope as a receiver with default settings. See the output from
./lagscope -hfor more details about the default settings.)Example run Histogram
On NODE2 (the sender), run:
(Translation: Run lagscope as a sender, with default test settings; report histogram value with customized factors.)
Example sender-side output from a given run:
Example run Percentile
On NODE2 (the sender), run:
(Translation: Run lagscope as a sender. Prints these percentiles of the latencies: 50%, 75%, 90%, 95%, 99%, 99.9%, 99.99%, 99.999%.)
Option for dumping the latency frequency table into a JSON file, run:
(Translation: Run lagscope as a sender. Prints percentiles and dumps a latency frequency table into a JSON file)
Example sender-side output from a given run:
Example run to dump all latency values into a csv file
On NODE2 (the sender), run:
(Translation: Run lagscope as a sender and dumps latencies into a csv file)
Example sender-side output from a given run:
Save latency frequency table graph as an image file
Installation Requirements:
Library Dependencies:
To install libraries:
Known Issue:
Missing module, tkinter, not installed with Python3.
To install tkinter:
Usage
To Run
Example run:
Related topics
Latte – The Windows tool for latency measurement
NTTTCP-for-Linux
Microsoft Server & Cloud Blog
HyperV Linux Integrated Services Test
Terms of Use
By downloading and running this project, you agree to the license terms of the third-party application software, Microsoft products, and components to be installed.
The third-party software and products are provided to you by third parties. You are responsible for reading and accepting the relevant license terms for all software that will be installed. Microsoft grants you no rights to third party software.
License