TCP IP Illustrated

Using udp it is easy to generate ip fragmentation

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: w how the datagram was fragmented, For this reason alone, fragmentation is often avoided. [Kent and Mogul 1987] provide arguments for avoiding fragmentation. Using UDP it is easy to generate IP fragmentation. (We'll see later that TCP tries to avoid fragmentation and that it is nearly impossible for an application to force TCP to send segments large enough to require fragmentation.) We can use our sock program and increase the size of the datagram until fragmentation occurs. On an Ethernet the maximum amount of data in a frame is 1500 bytes (Figure 2.1), which leaves 1472 bytes for our data, assuming 20 bytes for the IP header and 8 bytes for the UDP header. We'll run our sock program, with data sizes of 1471, 1472, 1473, and 1474 bytes. We expect the last two to cause fragmentation: bsdi bsdi bsdi bsdi % % % % sock sock sock sock -u -u -u -u -i -i -i -i -nl -nl -nl -nl -wl471 -wl472 -wl473 -wl474 svr4 svr4 svr4 svr4 discard discard discard discard file:///D|/Documents%20and%20Settings/bigini/Docu...homenet2run/tcpip/tcp-ip-illustrated/udp_user.htm (7 of 29) [12/09/2001 14.46.58] Chapter 11. UDP: User Datagram Protocol Figure 11.7 shows the corresponding tcpdump output. 1 2 3 4 5 6 0.0 21.008303 (21.0083) 50.449704 (29.4414) 50.450040 ( 0.0003) 75.328650 (24.8786) 75.328982 ( 0.0003) bsdi-1112 > svr4.discard: udp 1471 bsdi.lll4 > svr4.discard: udp 1472 bsdi.lll6 > svr4.discard: udp 1473 (frag 26304:[email protected]+) bsdi > svr4: (frag 26304:[email protected]) bsdi.1118 > svr4.discard: udp 1474 (frag 26313:[email protected]+) bsdi > svr4: (frag 26313:[email protected]) Figure 11.7 Watching fragmentation of UDP datagrams. The first two UDP datagrams (lines 1 and 2) fit into Ethernet frames, and are not fragmented. But the length of the IP datagram corresponding to the write of 1473 bytes is 1501, which must be fragmented (lines 3 and 4). Similarly the datagram generated by the write of 1474 bytes is 1502, and is also fragmented (lines 5 and 6). When the IP datagram is fragmented, tcpdump prints ad...
View Full Document

This test prep was uploaded on 04/04/2014 for the course ECE EL5373 taught by Professor Guoyang during the Spring '12 term at NYU Poly.

Ask a homework question - tutors are online