You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/virtual-network-bandwidth-testing.md
+26-30Lines changed: 26 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ This article describes how to use the free NTTTCP tool from Microsoft to test ne
18
18
19
19
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.
20
20
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.
22
22
23
23
>[!NOTE]
24
24
>Testing by using a virtual IP (VIP) is possible, but is beyond the scope of this article.
25
25
26
-
## Test throughput between Windows VMs or Linux VMs
26
+
## Test throughput with Windows VMs or Linux VMs
27
27
28
28
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).
29
29
@@ -33,7 +33,7 @@ You can test throughput from Windows VMs by using [NTTTCP](https://github.com/mi
33
33
34
34
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*.
35
35
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.
@@ -48,19 +48,19 @@ You can test throughput from Windows VMs by using [NTTTCP](https://github.com/mi
48
48
>Use the preceding commands only to test configuration.
49
49
50
50
>[!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.
52
52
53
-
### Run NTTTCP tests
53
+
### Run throughput tests
54
54
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.
56
56
57
57
1. On the receiver VM, run the following command, replacing the `<number of VM cores>`, and `<receiver IP address>` placeholders with your own values.
58
58
59
59
```cmd
60
60
ntttcp -r -m [<number of VM cores> x 2],*,<receiver IP address> -t 300
61
61
```
62
62
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`.
64
64
65
65
`ntttcp -r -m 8,*,10.0.0.4 -t 300`
66
66
@@ -114,17 +114,17 @@ To measure throughput from Linux machines, use [NTTTCP-for-Linux](https://github
114
114
make && make install
115
115
```
116
116
117
-
### Run NTTTCP tests
117
+
### Run throughput tests
118
118
119
119
Run the NTTTCP testfor 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.
120
120
121
-
1. On the receiver VM, run NTTTCP-for-Linux for 300 seconds.
121
+
1. On the receiver VM, run the following command:
122
122
123
123
``` bash
124
124
ntttcp -r -t 300
125
125
```
126
126
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`.
128
128
129
129
``` bash
130
130
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
135
135
136
136
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.
137
137
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:
139
139
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:
141
144
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
+
```
143
148
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:
152
150
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
+
```
154
154
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:
160
156
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
Copy file name to clipboardExpand all lines: articles/virtual-network/virtual-network-test-latency.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Run *latte.exe* from the Windows command line, not from PowerShell.
78
78
- Around 65,000 iterations are enough to return representative results.
79
79
- Any available port number is fine.
80
80
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`
82
82
83
83
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.
84
84
@@ -147,7 +147,7 @@ sudo make install
147
147
148
148
### Run SockPerf on the VMs
149
149
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.
0 commit comments