Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| mscom_lab2 [2014/05/20 07:14] – [TCP slow start analysis] beckmanf | mscom_lab2 [2016/05/02 20:46] (current) – Moved Bridge setup beckmanf | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| To start a tftp server use the lab server below the table. The files will be stored in the / | To start a tftp server use the lab server below the table. The files will be stored in the / | ||
| + | |||
| + | Make sure that you can create new files in the / | ||
| + | < | ||
| + | change in file / | ||
| + | TFTP_OPTIONS=" | ||
| + | </ | ||
| + | |||
| + | Disable the firewall | ||
| + | < | ||
| + | sudo ufw disable | ||
| + | </ | ||
| + | |||
| + | Start the tftpd service | ||
| < | < | ||
| Line 29: | Line 42: | ||
| </ | </ | ||
| - | Now start the server | + | Now start the server |
| Line 39: | Line 52: | ||
| - Transfer the file and compare the measurement data with your calculation. | - Transfer the file and compare the measurement data with your calculation. | ||
| - | Modify the ethernet speed to 10 MBit/s and measure again. Set the ethernet speed back to 100MBit/s after the measurement. | + | Modify the ethernet speed to 10 MBit/s and measure again. Set the ethernet speed back to 100MBit/s after the measurement. |
| ==== Bridge Setup ==== | ==== Bridge Setup ==== | ||
| - | Configure the lab pc on the top shelf with the two network cards as bridge. | + | The lab pc will be used a network emulation device for the connection between the two laptops. |
| < | < | ||
| sudo brctl addbr mybridge | sudo brctl addbr mybridge | ||
| - | sudo brctl addif mybridge | + | sudo brctl addif mybridge |
| sudo brctl show | sudo brctl show | ||
| - | sudo brctl addif mybridge | + | sudo brctl addif mybridge |
| + | sudo ifconfig eth1 0.0.0.0 | ||
| sudo ifconfig eth2 0.0.0.0 | sudo ifconfig eth2 0.0.0.0 | ||
| - | sudo ifconfig eth3 0.0.0.0 | ||
| sudo ifconfig mybridge up | sudo ifconfig mybridge up | ||
| </ | </ | ||
| - | The bridge should now be up and running. | + | The bridge should now be up and running. |
| + | |||
| + | All further modifications regarding latency and packet loss should be done on the lab pc and not on the laptops. The reason is that wireshark will tap the traffic after the netem traffic control module. | ||
| + | |||
| + | ==== Using Netem for modelling latency and packet loss on the channel ==== | ||
| - | In order to add 50 ms delay to the outgoing traffic | + | In order to add 50 ms delay to the outgoing traffic. |
| < | < | ||
| - | sudo tc qdisc add dev eth2 root netem delay 50 ms | + | sudo tc qdisc add dev eth2 root netem delay 50ms |
| </ | </ | ||
| Line 66: | Line 84: | ||
| < | < | ||
| - | sudo tc qdisc change dev eth2 root netem delay 10 ms | + | sudo tc qdisc change dev eth2 root netem delay 10ms |
| </ | </ | ||
| Line 72: | Line 90: | ||
| < | < | ||
| - | sudo tc qdisc change dev eth2 root netem delay 10 ms loss 10.0% | + | sudo tc qdisc change dev eth2 root netem delay 10ms loss 10.0% |
| </ | </ | ||
| + | |||
| + | Make measurements and show the relation between configured latency and measured RTT. | ||
| ==== tftp Delay Tests ==== | ==== tftp Delay Tests ==== | ||
| * Create a file with 1 MByte size | * Create a file with 1 MByte size | ||
| - | * Configure the bridge with no delay | + | * Remove all netem traffic shapers |
| - | * Measure the tftp transfer time over the bridge | + | * Measure the tftp transfer time |
| * Do a ping RTT analysis. What is RTT according to ping? | * Do a ping RTT analysis. What is RTT according to ping? | ||
| - | * Add a delay of 20 ms to each ethernet device | + | * Add a delay of 20 ms to each ethernet device |
| * Measure ping RTT again. | * Measure ping RTT again. | ||
| * Measure the tftp transfer time again. | * Measure the tftp transfer time again. | ||
| - | * Set the delay to 30 ms and to 40 ms and measure again. | + | * Set the delay to 30 ms and to 40 ms and measure again. |
| + | * Make a prediction model to predict transfer time from latency | ||
| + | |||
| + | ==== tftp packet loss tests ==== | ||
| + | |||
| + | * Setup the link with no additional delay | ||
| + | * Add packet loss with netem | ||
| + | * Measure the impact on transfer time | ||
| + | * Analyze the behaviour in case of packet loss with wireshark | ||
| + | * Show the behaviour for all possible packet loss cases (data, | ||
| + | * Modify the packet loss rates and show the impact on the transfer time | ||
| + | * Explain the behaviour and make a prediction model for transfer time and packet loss rate | ||
| + | |||
| + | ==== tftp with packet loss and latency ==== | ||
| + | |||
| + | * Produce a prediction model for combined latency and packet loss influence | ||
| + | * Predict the transfer time with your model | ||
| + | * Check your predictions with measurements for different latencies and packet loss rates. | ||
| ==== TCP transfer ==== | ==== TCP transfer ==== | ||
| Line 129: | Line 166: | ||
| - Setup the bridge with token bucket filters for a rate of 10MBit/s and use netem to add a latency of 20ms in each direction | - Setup the bridge with token bucket filters for a rate of 10MBit/s and use netem to add a latency of 20ms in each direction | ||
| - | - Configure the tcp transmit and receive memory restrictions to 16 MByte according to [[mscom_network_start# | + | - Configure the tcp transmit and receive memory restrictions to 16 MByte according to [[mscom_network_start# |
| - Start the tcp_probe tracing on the computer which runs the iperf client | - Start the tcp_probe tracing on the computer which runs the iperf client | ||
| - Run iperf for about 30 seconds | - Run iperf for about 30 seconds | ||
| Line 145: | Line 182: | ||
| - The first flow should end while the second flow is still running. | - The first flow should end while the second flow is still running. | ||
| - Produce a graph with cwnd and ssthr showing the dynamic adaption of the rate | - Produce a graph with cwnd and ssthr showing the dynamic adaption of the rate | ||
| - | |||
| - | |||