Lab 13: Impact Of MSS On Throughput - University Of South Carolina

1y ago
7 Views
1 Downloads
1.22 MB
14 Pages
Last View : 14d ago
Last Download : 3m ago
Upload by : River Barajas
Transcription

NETWORK TOOLS AND PROTOCOLSLab 13: Impact of MSS on ThroughputDocument Version: 06-14-2019Award 1829698“CyberTraining CIP: Cyberinfrastructure Expertise on High-throughputNetworks for Big Science Data Transfers”

Lab 13: Impact of MSS on ThroughputContentsOverview . 3Objectives. 3Lab settings . 3Lab roadmap . 31 Introduction to MSS . 31.1 Maximum transmission unit (MTU) . 31.2 Maximum segment size (MSS) . 42 Lab topology. 52.1 Starting hosts h1 and h2 . 62.2 Emulating 10 Gbps WAN with packet loss . 73 Modifying maximum transmission unit (MTU) . 103.1 Identifying interface’s current MTU . 103.2 Modifying MTU values on all interfaces . 11References . 14Page 2

Lab 13: Impact of MSS on ThroughputOverviewThis lab introduces Maximum Transmission Unit (MTU), Maximum Segment Size (MSS),and their effect on network throughput in a high-bandwidth Wide Area Networks (WAN)with packet losses. Throughput measurements are conducted in this lab to compare theobserved throughput while using a higher MSS against a normal MSS value.ObjectivesBy the end of this lab, students should be able to:1.2.3.4.5.Understand Maximum Transmission Unit (MTU).Define Maximum Segment Size (MSS).Identify interfaces’ default MTU value.Modify the MTU of an interface.Understand the benefit of using a high MSS value in a WAN that incurs packetlosses.6. Emulate WAN properties in Mininet and achieve full throughput with high MSS.Lab settingsThe information in Table 1 provides the credentials of the machine containing Mininet.Table 1. Credentials to access Client1 ab roadmapThis lab is organized as follows:1. Section 1: Introduction to MSS.2. Section 2: Lab topology.3. Section 3: Modifying maximum transmission Unit (MTU) and analyzingresults.1Introduction to MSS1.1Maximum transmission unit (MTU)Page 3

Lab 13: Impact of MSS on ThroughputThe Maximum Transmission Unit (MTU) specifies the largest packet size (in bytes),including headers and data payload, that can be transmitted by the link-layer technology1.Even though data rates have dramatically increased since Ethernet standardization, theMTU remains at 1500 bytes. A frame carrying more than 1500 bytes is referred to as ajumbo frame and can allow up to 9000 bytes.Figure 1. Standard Ethernet Frame’s MTUFigure 1 illustrates the standard Ethernet frame which has 1500 bytes MTU. Althoughmost gigabit networks run with no impact while using the standard MTU, large numbersof frames increase CPU loads and overheads. In such cases jumbo frames can be used tomitigate excess overhead, as demonstrated in figure 2.Figure 2. Jumbo Ethernet Frame’s MTUAs shown in figure 2, jumbo frames impose lower overheads than normal frames (1500MTU) by reducing the overall number of individual frames sent from source to destination.Not only does this reduce the number of headers needed to move the data, CPU load isalso lessened due to a decrease in packet processing by routers and end devices.1.2Maximum segment size (MSS)The Maximum Segment Size (MSS) is a parameter of the options field of the TCP headerthat specifies the largest amount of data, specified in bytes, that a computer orcommunications device can receive in a single TCP segment3. This value is specified in theTCP SYN packet during TCP’s three-way handshake and is set permanently for the currentsession.The MSS must be set to a value equal to the largest IP datagram (minus IP and TCPheaders) that the host can handle in order to avoid fragmentation. Note that lowering theMSS will remove fragmentation, however it will impose larger overhead.Page 4

Lab 13: Impact of MSS on ThroughputWith highspeed networks, using half a dozen or so small probes to see how the networkresponds wastes a huge amount of bandwidth. Similarly, when packet loss is detected,the rate is decreased by a factor of two. TCP can only recover slowly from this ratereduction. The speed at which the recovery occurs is proportional to the MTU. Thus, it isrecommended to use large frames.In this lab, we show and compare the effect of jumbo frames versus standard frames in aWAN that incurs packet losses.2Lab topologyLet’s get started with creating a simple Mininet topology using Miniedit. The topologyuses 10.0.0.0/8 which is the default network assigned by Mininet.h1s1h2s210 eth010.0.0.2Figure 3. Lab topology.Step 1. A shortcut to Miniedit is located on the machine’s Desktop. Start Miniedit byclicking on Miniedit’s shortcut. When prompted for a password, type password .Figure 4. Miniedit shortcut.Step 2. On Miniedit’s menu bar, click on File then Open to load the lab’s topology. Locatethe Lab 13.mn topology file and click on Open.Page 5

Lab 13: Impact of MSS on ThroughputFigure 5. Miniedit’s Open dialog.Step 3. Before starting the measurements between host h1 and host h2, the networkmust be started. Click on the Run button located at the bottom left of Miniedit’s windowto start the emulation.Figure 6. Running the emulation.The above topology uses 10.0.0.0/8 which is the default network assigned by Mininet.2.1Starting hosts h1 and h2Step 1. Hold the right-click on host h1 and select Terminal. This opens the terminal ofhost h1 and allows the execution of commands on that host.Page 6

Lab 13: Impact of MSS on ThroughputFigure 7. Opening a terminal on host h1.Step 2. Apply the same steps on host h2 and open its Terminal.Step 3. Test connectivity between the end-hosts using the ping command. On host h1,type the command ping 10.0.0.2 . This command tests the connectivity between hosth1 and host h2. To stop the test, press Ctrl c . The figure below shows a successfulconnectivity test.Figure 8. Connectivity test using ping command.2.2Emulating 10 Gbps WAN with packet lossThis section emulates a WAN with packet loss. We will first set the bandwidth betweenhost 1 and host h2 to 10 Gbps. Then, we will emulate a 1% packet loss and measure thethroughput.Step 1. Launch a Linux terminal by holding the Ctrl Alt T keys or by clicking on theLinux terminal icon.Page 7

Lab 13: Impact of MSS on ThroughputFigure 9. Shortcut to open a Linux terminal.The Linux terminal is a program that opens a window and permits you to interact with acommand-line interface (CLI). A CLI is a program that takes commands from the keyboardand sends them to the operating system to perform.Step 2. In the terminal, type the command below. When prompted for a password, typepassword and hit Enter. This command introduces 1% packet loss on switch S1’s s1-eth2interface.sudo tc qdisc add dev s1-eth2 root handle 1: netem loss 1%Figure 10. Adding 1% packet loss to switch S1’s s1-eth2 interface.Step 3. Modify the bandwidth of the link connecting the switch S1 and switch S2: on thesame terminal, type the command below. This command sets the bandwidth to 10 Gbpson switch S1’s s1-eth2 interface. The tbf parameters are the following: rate : 10gbitburst : 5,000,000limit : 15,000,000sudo tc qdisc add dev s1-eth2 parent 1: handle 2: tbf rate 10gbit burst 5000000limit 15000000Figure 11. Limiting the bandwidth to 10 Gbps on switch S1’s s1-eth2 interface.Page 8

Lab 13: Impact of MSS on ThroughputStep 4. The user can now verify the rate limit configuration by using the iperf3 tool tomeasure throughput. To launch iPerf3 in server mode, run the command iperf3 -s inhost h2’s terminal:iperf3 -sFigure 12. Host h2 running iPerf3 as server.Step 5. Now to launch iPerf3 in client mode again by running the command iperf3 -c10.0.0.2 in host h1’s terminal:iperf3 -c 10.0.0.2 Figure 13. iPerf3 throughput test.Note the measured throughput now is approximately 7.99 Gbps, which is different thanthe value assigned in the tbf rule (10 Gbps). In the next section, the test is repeated butusing a higher MSS.Step 6. In order to stop the server, press Ctrl c in host h2’s terminal. The user can seethe throughput results in the server side too. The summarized data on the server is similarto that of the client side’s and must be interpreted in the same way.Page 9

Lab 13: Impact of MSS on Throughput3Modifying maximum transmission unit (MTU)As explained previously, jumbo frames offer throughput improvements in networksincurring packet losses. In this section, the user will change the MTU of a networkinterface in Linux.3.1Identifying interface’s current MTUStep 1. To identify the MTU of a network interface of a device, the ifconfig is used. Onhost h1’s terminal, type in the following command:ifconfigFigure 14. Identifying interface’s MTU.As shown in Figure 14, the interface h1-eth0 has an MTU of 1500 bytes. The same stepscan be performed on host h2’s interface.Step 2. In order to identify the MTU on the switches’ interfaces, launch the Client’sterminal located on the Desktop, and type in the following command:ifconfigPage 10

Lab 13: Impact of MSS on ThroughputFigure 15. Identifying switches’ interfaces’ MTU.Each switch in the topology has two interfaces: switch S1 has s1-eth1 and s1-eth2, switchS2 interfaces are s2-eth1 and s2-eth2. The MTU value on all interfaces are 1500 bytes.3.2Modifying MTU values on all interfacesTo modify the MTU of a network interface use the following command:Page 11

Lab 13: Impact of MSS on Throughputifconfig iface mtu bytes Step 1. To change the MTU to 9000 bytes, on host h1’s terminal, type in the followingcommand:ifconfig h1-eth0 mtu 9000Figure 17. Changing host h1’s interface MTU.Step 2. To change the MTU to 9000 bytes, on host h2’s terminal, type in the followingcommand:ifconfig h2-eth0 mtu 9000Figure 18. Changing host h2’s interface MTU.Step 3. Similarly, the MTU values of switch S1 and switch S2’s interfaces must be changedto 9000 bytes. In order to modify the MTU values, type the following command on theClient’s terminal. When prompted for a password, type password and hit Enter.sudo ifconfig s1-eth1 mtu 9000sudo ifconfig s1-eth2 mtu 9000sudo ifconfig s2-eth1 mtu 9000sudo ifconfig s2-eth2 mtu 9000Figure 19. Changing MTU values on the switches.Page 12

Lab 13: Impact of MSS on ThroughputStep 4. The user can now verify the effect of modifying the MTU values on the switchesand the effect of MSS by using the iperf3 tool to measure throughput. To launch iPerf3in server mode, run the command iperf3 -s in host h2’s terminal:iperf3 -sFigure 20. Host h2 running iPerf3 as server.Step 5. To launch iPerf3 in client mode type the command below. The -M option is usedto specify the MSS to be sent in the TCP handshake.iperf3 -c 10.0.0.2 -M 9000Figure 21. iPerf3 throughput test with a 9000 MSS value.Notice the measured throughput now is approximately 10 Gbps, which is similar to thevalue assigned in the tbf rule (10 Gbps).Step 6. In order to stop the server, press Ctrl c in host h2’s terminal. The user can seethe throughput results in the server side too. The summarized data on the server is similarto that of the client side’s and must be interpreted in the same way.This concludes Lab 13. Stop the emulation and then exit out of MiniEdit.Page 13

Lab 13: Impact of MSS on ThroughputReferences1. Huh, Eui-Nam, and Hyunseung Choo, “Performance enhancement of TCP in highspeed networks,” Information Sciences 178, no. 2 (2008), 352-362Page 14

Figure 13. iPerf3 throughput test. Note the measured throughput now is approximately 7.99 Gbps, which is different than the value assigned in the tbf rule (10 Gbps). In the next section, the test is repeated but using a higher MSS. Step 6. In order to stop the server, press Ctrl c in host h2's terminal. The user can see the throughput results .

Related Documents:

MSS-SP-6 MSS-SP-44 MSS-SP-61 MSS-SP-72 MSS-SP-96 NACE MR01-75 Standard Finishes for Contact Faces of Pipe Flanges and Connecting-End Flanges of Valves and Fittings Steel Pipe Line Flanges Pressure Testing of Steel Valves Flanged or Butt and Weld End Ball Valves Having Full or Reduced Bor

Forged Fittins:ASME B16.11,MSS SP-43,MSS SP-75 Stainless Pipe Fittings:MSS SP-43,ASTM A403,ASTM A815 Flange: Carbon Steel Flange: ASME B16.5, ASME B16.47 A(MSS SP-44),ASME B16.47-B/API 605,AWWA C207 Stainless Steel Flange: ASTM A182, ASTM A403,ASTM A815 Compac

MSS SP-68 High pressure butterfly valves with offset design. MSS SP-72 Ball valves with flanged or butt-welding ends for general service. MSS SP-110 Ball valves threaded, socket-welding, solder joint, grooved and flared ends. MSS SP-122 Plastic industrial ball valves. API Spec

SIEMENS List of MLFBs with HSN Code for Switchgear DF-CP CP Products MLFB Material Description HSN Code(8-Digit) HSN (4-Digit) GST Rate 3RK31112AA10 3RK3111-2AA10 \MSS 3RK3, CENTRAL MODULE 85389000 8538 18 3RK31311AC10 3RK3131-1AC10 \MSS 3RK3, CENTRAL MODULE 85389000 8538 18 3RK32112AA10 3RK3211-2AA10 \MSS 3RK3, EXPANSION MODU 85389000 8538 18

Biology Lab Notebook Table of Contents: 1. General Lab Template 2. Lab Report Grading Rubric 3. Sample Lab Report 4. Graphing Lab 5. Personal Experiment 6. Enzymes Lab 7. The Importance of Water 8. Cell Membranes - How Do Small Materials Enter Cells? 9. Osmosis - Elodea Lab 10. Respiration - Yeast Lab 11. Cell Division - Egg Lab 12.

Contents Chapter 1 Lab Algorithms, Errors, and Testing 1 Chapter 2 Lab Java Fundamentals 9 Chapter 3 Lab Selection Control Structures 21 Chapter 4 Lab Loops and Files 31 Chapter 5 Lab Methods 41 Chapter 6 Lab Classes and Objects 51 Chapter 7 Lab GUI Applications 61 Chapter 8 Lab Arrays 67 Chapter 9 Lab More Classes and Objects 75 Chapter 10 Lab Text Processing and Wrapper Classes 87

MSS SP-43-2013 Standard Practice Developed and Approved by the Manufacturers Standardization Society of the Valve and Fittings Industry, Inc. 127 Park Street, NE Vienna, Virginia 22180-4602 Phone: (703) 281-6613 Fax: (703) 281-6671 E-mail: standards@mss-hq.org Fabricated ttings ressure, stant s e MSS www.

MSS-SP 99 Instrument valves - 3/16", 1/4" and 3/8" orifice products are SP-99 qualified MSS-SP105 Instrument valves for code applications MSS-SP25 Standard marking systems for valves, fittings and flange unions - all