Skip to content

Commit 0f18190

Browse files
committed
touchups
1 parent 226819a commit 0f18190

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

articles/virtual-network/virtual-network-bandwidth-testing.md

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ This article describes how to use the free NTTTCP tool from Microsoft to test ne
1818

1919
To test throughput, you need two VMs of the same size to function as *sender* and *receiver*. The two VMs should be in the same [proximity placement group](/azure/virtual-machines/co-location) or [availability set](/azure/virtual-machines/availability-set-overview), so you can use their internal IP addresses and exclude load balancers from the test.
2020

21-
Note the number of cores and the IP addresses for the VMs to use in the following procedures. Both the sender and receiver commands use the receiver's IP address.
21+
Note the number of VM cores and the receiver VM IP address to use in the commands. Both the sender and receiver commands use the receiver's IP address.
2222

2323
>[!NOTE]
2424
>Testing by using a virtual IP (VIP) is possible, but is beyond the scope of this article.
2525
26-
## Test throughput between Windows VMs or Linux VMs
26+
## Test throughput with Windows VMs or Linux VMs
2727

2828
You can test throughput from Windows VMs by using [NTTTCP](https://github.com/microsoft/ntttcp) or from Linux VMs by using [NTTTCP-for-Linux](https://github.com/Microsoft/ntttcp-for-linux).
2929

@@ -33,7 +33,7 @@ You can test throughput from Windows VMs by using [NTTTCP](https://github.com/mi
3333

3434
1. On both the sender and receiver VMs, [download the latest version of NTTTCP](https://github.com/microsoft/ntttcp/releases/latest) into a separate folder like *c:\\tools*.
3535

36-
1. On the receiver VM, create a Windows Defender Firewall `allow` rule to allow the NTTTCP traffic to arrive. It's easier to allow *nttcp.exe* by name than to allow specific inbound TCP ports. Run the following command, replacing `c:\tools` with the path you downloaded *ntttcp.exe* to if different.
36+
1. On the receiver VM, create a Windows Defender Firewall `allow` rule to allow the NTTTCP traffic to arrive. It's easier to allow *nttcp.exe* by name than to allow specific inbound TCP ports. Run the following command, replacing `c:\tools` with your download path for *ntttcp.exe* if different.
3737

3838
```cmd
3939
netsh advfirewall firewall add rule program=c:\tools\ntttcp.exe name="ntttcp" protocol=any dir=in action=allow enable=yes profile=ANY
@@ -48,19 +48,19 @@ You can test throughput from Windows VMs by using [NTTTCP](https://github.com/mi
4848
>Use the preceding commands only to test configuration.
4949
5050
>[!TIP]
51-
>When you run the test for the first time to verify setup, use a short test period to get quick feedback. Once you verify the tool is working, extend the test period to 300 seconds for the most accurate results.
51+
>When you run the test for the first time to verify setup, use a short test duration to get quick feedback. Once you verify the tool is working, extend the test duration to 300 seconds for the most accurate results.
5252
53-
### Run NTTTCP tests
53+
### Run throughput tests
5454

55-
Run *ntttcp.exe* from the Windows command line, not from PowerShell. Run the test for 300 seconds, or five minutes, on both the sender and receiver VMs. The sender and receiver must specify the same test duration for the `-t` parameter. Test duration defaults to 60 seconds if you don't specify a time parameter.
55+
Run *ntttcp.exe* from the Windows command line, not from PowerShell. Run the test for 300 seconds, or five minutes, on both the sender and receiver VMs. The sender and receiver must specify the same test duration for the `-t` parameter.
5656

5757
1. On the receiver VM, run the following command, replacing the `<number of VM cores>`, and `<receiver IP address>` placeholders with your own values.
5858

5959
```cmd
6060
ntttcp -r -m [<number of VM cores> x 2],*,<receiver IP address> -t 300
6161
```
6262

63-
The following example shows an NTTTCP command for a VM with four cores and an IP address of `10.0.0.4`.
63+
The following example shows a command for a VM with four cores and an IP address of `10.0.0.4`.
6464

6565
`ntttcp -r -m 8,*,10.0.0.4 -t 300`
6666

@@ -114,17 +114,17 @@ To measure throughput from Linux machines, use [NTTTCP-for-Linux](https://github
114114
make && make install
115115
```
116116

117-
### Run NTTTCP tests
117+
### Run throughput tests
118118

119119
Run the NTTTCP test for 300 seconds, or five minutes, on both the sender VM and the receiver VM. The sender and receiver must specify the same test duration for the `-t` parameter. Test duration defaults to 60 seconds if you don't specify a time parameter.
120120
121-
1. On the receiver VM, run NTTTCP-for-Linux for 300 seconds.
121+
1. On the receiver VM, run the following command:
122122
123123
``` bash
124124
ntttcp -r -t 300
125125
```
126126
127-
1. On the sender VM, run NTTTCP-for-Linux for 300 seconds. The following example shows a command for a receiver VM with an IP address of `10.0.0.4`.
127+
1. On the sender VM, run the following command. This example shows a sender command for a receiver IP address of `10.0.0.4`.
128128
129129
``` bash
130130
ntttcp -s10.0.0.4 -t 300
@@ -135,32 +135,28 @@ Run the NTTTCP test for 300 seconds, or five minutes, on both the sender VM and
135135
136136
To run NTTTCP throughput tests between a Windows VM and a Linux VM, enable no-sync mode by using the `-ns` flag on Windows or the `-N` flag on Linux.
137137
138-
1. Install and configure NTTTCP on the Windows VM and NTTTCP-for-Linux on the Linux VM as instructed in the previous section.
138+
- On the Windows VM, to test with the Windows VM as the receiver, run the following command:
139139
140-
1. Test throughput from the Windows or Linux VMs as follows:
140+
```cmd
141+
ntttcp -r -m [<number of VM cores> x 2],*,<Linux VM IP address> -t 300
142+
```
143+
To test with the Windows VM as the sender, run the following command:
141144
142-
- On the Windows VM, to test with the Windows VM as the receiver, run the following command:
145+
```cmd
146+
ntttcp -s -m [<number of VM cores> x 2],*,<Linux VM IP address> -ns -t 300
147+
```
143148
144-
```cmd
145-
ntttcp -r -m [<number of VM cores> x 2],*,<Linux VM IP address>
146-
```
147-
- On the Windows VM, to test with the Windows VM as the sender, run the following command:
148-
149-
```cmd
150-
ntttcp -s -m [<number of VM cores> x 2],*,<Linux VM IP address> -ns
151-
```
149+
- On the Linux VM, to test with the Linux VM as the receiver, run the following command:
152150
153-
- On the Linux VM, to test with the Linux VM as the receiver, run the following command:
151+
```bash
152+
ntttcp -r -m [<number of VM cores> x 2],*,<Windows VM IP address> -t 300
153+
```
154154
155-
```bash
156-
ntttcp -r -m [<number of VM cores> x 2],*,<Windows VM IP address>
157-
```
158-
159-
- On the Linux VM, to test with the Linux VM as the sender, run the following command:
155+
To test with the Linux VM as the sender, run the following command:
160156
161-
```bash
162-
ntttcp -s -m [<number of VM cores> x 2],*,<Windows VM IP address> -N
163-
```
157+
```bash
158+
ntttcp -s -m [<number of VM cores> x 2],*,<Windows VM IP address> -N -t 300
159+
```
164160
165161
---
166162

articles/virtual-network/virtual-network-test-latency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Run *latte.exe* from the Windows command line, not from PowerShell.
7878
- Around 65,000 iterations are enough to return representative results.
7979
- Any available port number is fine.
8080

81-
For a VM with an IP address of `10.0.0.4`, the command might look like:<br><br>`latte -a 10.0.0.4:5005 -i 65100`
81+
The following example shows the command for a VM with an IP address of `10.0.0.4`:<br><br>`latte -a 10.0.0.4:5005 -i 65100`
8282

8383
1. On the *sender* VM, run the same command as on the receiver, except with `-c` added to indicate the *client* or sender VM. Again replace the `<receiver IP address>`, `<port>`, and `<iterations>` placeholders with your own values.
8484

@@ -147,7 +147,7 @@ sudo make install
147147

148148
### Run SockPerf on the VMs
149149

150-
1. After the SockPerf installation is complete, start SockPerf on the *receiver* VM. Any available port number is fine. The following example uses port `12345`. Replace the example IP address `10.0.0.4` with the IP address of your receiver VM.
150+
1. After the SockPerf installation is complete, start SockPerf on the *receiver* VM. Any available port number is fine. The following example uses port `12345`. Replace the example IP address of `10.0.0.4` with the IP address of your receiver VM.
151151

152152
```bash
153153
#Server/Receiver for IP 10.0.0.4:

0 commit comments

Comments
 (0)