Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| mscom_network_start [2014/05/13 14:51] – [Laboratory expirements] - added lab2 beckmanf | mscom_network_start [2016/03/16 09:01] (current) – [Setup of the Linux test platform / USB Stick] - removed student laptop beckmanf | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Details regarding tcp testing are here: [[http:// | Details regarding tcp testing are here: [[http:// | ||
| - | ==== Setup of the Linux test platform | + | ==== Setup of the Linux test platform ==== |
| - | Ìý | + | |
| - | Network tests are done with a network of Ubuntu Linux computers which are connected via an ethernet switch. Students laptops will be part of the setup. If you have a native linux installation, | + | |
| + | Network tests are done with a network of Ubuntu Linux computers which are connected via an ethernet switch. | ||
| ==== Laboratory expirements ==== | ==== Laboratory expirements ==== | ||
| Line 177: | Line 176: | ||
| </ | </ | ||
| + | ==== TCP configuration ==== | ||
| + | === Local memory restrictions === | ||
| + | Set the maximum window sizes for tcp connections to 512000 Bytes. | ||
| + | |||
| + | < | ||
| + | sudo sh -c "echo 512000 > / | ||
| + | sudo sh -c "echo 512000 > / | ||
| + | sudo sh -c "echo 512000 > / | ||
| + | sudo sh -c "echo 512000 > / | ||
| + | sudo sh -c "echo 512000 512000 512000 > / | ||
| + | sudo sh -c "echo 512000 512000 512000 > / | ||
| + | </ | ||
| + | |||
| + | === Initial TCP contention window size === | ||
| + | |||
| + | The following section shows how to change the initial contention window size to to 1 MSS. | ||
| + | |||
| + | < | ||
| + | fritz@ubuntu: | ||
| + | default via 192.168.178.1 dev eth0 proto static | ||
| + | 169.254.0.0/ | ||
| + | 192.168.178.0/ | ||
| + | fritz@ubuntu: | ||
| + | fritz@ubuntu: | ||
| + | default via 192.168.178.1 dev eth0 proto static | ||
| + | 169.254.0.0/ | ||
| + | 192.168.178.0/ | ||
| + | fritz@ubuntu: | ||
| + | </ | ||
| + | |||
| + | === TCP Congestion avoidance algorithm selection === | ||
| + | |||
| + | The linux kernel provides several algorithms for tcp congestion avoidance. The following code shows how to figure out the available algorithms (here cubic and reno) and set and control the setting. In this example the congestion avoidance algorithm is switched from " | ||
| + | |||
| + | < | ||
| + | fritz$ cd / | ||
| + | fritz$ cat tcp_available_congestion_control | ||
| + | cubic reno | ||
| + | fritz$ cat tcp_congestion_control | ||
| + | cubic | ||
| + | fritz$ sudo sh -c "echo reno > tcp_congestion_control" | ||
| + | fritz$ cat tcp_congestion_control | ||
| + | reno | ||
| + | </ | ||