Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Chapter 3 Underlying Technology TCP/IP Protocol Suite Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 3-1 WIRED LOCAL AREA NETWORKS A local area network (LAN) is a computer network that is designed for a limited geographic area such as a building or a campus. The LAN market has seen several technologies such as Ethernet, token ring, token bus, FDDI, and ATM LAN, but Ethernet is by far the dominant technology. TCP/IP Protocol Suite 2 Figure 3.1 TCP/IP Protocol Suite IEEE standard for LANs 3 Figure 3.2 TCP/IP Protocol Suite Ethernet Frame 4 Figure 3.3 TCP/IP Protocol Suite Maximum and minimum lengths 5 Note Minimum length: 64 bytes (512 bits) Maximum length: 1518 bytes (12,144 bits) TCP/IP Protocol Suite 6 Figure 3.4 TCP/IP Protocol Suite Ethernet address in hexadecimal notation 7 Figure 3.5 unicast: 0 TCP/IP Protocol Suite Unicast and multicast addresses multicast: 1 8 Note The broadcast destination address is a special case of the multicast address in which all bits are 1s. TCP/IP Protocol Suite 9 Note The least significant bit of the first byte defines the type of address. If the bit is 0, the address is unicast; otherwise, it is multicast. TCP/IP Protocol Suite 10 Example 3.1 Define the type of the following destination addresses: a. 4A:30:10:21:10:1A b. 47:20:1B:2E:08:EE c. FF:FF:FF:FF:FF:FF Solution To find the type of the address, we need to look at the second hexadecimal digit from the left. If it is even, the address is unicast. If it is odd, the address is multicast. If all digits are F’s, the address is broadcast. Therefore, we have the following: a. This is a unicast address because A in binary is 1010 (even). b. This is a multicast address because 7 in binary is 0111 (odd). c. This is a broadcast address because all digits are F’s. TCP/IP Protocol Suite 11 Example 3.2 Show how the address 47:20:1B:2E:08:EE is sent out on line. Solution The address is sent left-to-right, byte by byte; for each byte, it is sent right-to-left, bit by bit, as shown below: ← 11100010 00000100 11011000 01110100 00010000 01110111 TCP/IP Protocol Suite 12 Figure 3.6 TCP/IP Protocol Suite Ethernet evolution through four generations 13 Figure 3.7 A Space/time model of a collision in CSMA B starts at time t1 B C starts at time t2 C D Area where A’s signal exists Area where both signals exist Area where B’s signal exists Time TCP/IP Protocol Suite Time 14 Figure 3.8 TCP/IP Protocol Suite Collision of the first bit in CSMA/CD 15 Example 3.3 In the standard Ethernet, if the maximum propagation time is 25.6 μs, what is the minimum size of the frame? Solution The frame transmission time is Tfr = 2 × Tp = 51.2 μs. This means, in the worst case, a station needs to transmit for a period of 51.2 μs to detect the collision. The minimum size of the frame is 10 Mbps × 51.2 μs = 512 bits or 64 bytes. This is actually the minimum size of the frame for Standard Ethernet, as we discussed before. TCP/IP Protocol Suite 16 Figure 3.9 TCP/IP Protocol Suite CSMA/CD flow diagram 17 TCP/IP Protocol Suite 18 Figure 3.10 Standard Ethernet implementation TCP/IP Protocol Suite 19 TCP/IP Protocol Suite 20 Figure 3.11 Fast Ethernet implementation TCP/IP Protocol Suite 21 TCP/IP Protocol Suite 22 Note In the full-duplex mode of Gigabit Ethernet, there is no collision; TCP/IP Protocol Suite 23 Figure 3.12 TCP/IP Protocol Suite Gigabit Ethernet implementation 24 TCP/IP Protocol Suite 25 3-2 WIRELESS LANS IEEE 802.11 wireless LANs, sometimes called wireless Ethernet TCP/IP Protocol Suite 26 Figure 3.13 TCP/IP Protocol Suite Basic service sets (BSSs) 27 Figure 3.14 TCP/IP Protocol Suite Extended service sets (ESSs) 28 Figure 3.15 CSMA/CA flow diagram RTS: Request To Send CTS: Clear To Send DIFS: Distributed InterFrame Space SIFS: Short Inter-Frame Space TCP/IP Protocol Suite 29 Figure 3.16 CSMA/CA and NAV Source Destination All other stations ••• DIFS 1 RTS SIFS CTS 2 SIFS 3 NAV (No carrier sensing) Data SIFS ACK Time TCP/IP Protocol Suite 4 Time Time Time 30 Figure 3.17 TCP/IP Protocol Suite Frame format 31 TCP/IP Protocol Suite 32 Figure 3.18 TCP/IP Protocol Suite Control frames 33 TCP/IP Protocol Suite 34 TCP/IP Protocol Suite 35 Figure 3.19 TCP/IP Protocol Suite Hidden station problem 36 Note The CTS frame in CSMA/CA handshake can prevent collision from a hidden station. TCP/IP Protocol Suite 37 Figure 3.20 Use of handshaking to prevent hidden station problem B A C RTS CTS Time TCP/IP Protocol Suite CTS Time Time 38 Figure 3.21 TCP/IP Protocol Suite Exposed station problem 39 Figure 3.22 Use of handshaking in exposed station problem RTS RTS CTS Data RTS RTS Data CTS Collision here TCP/IP Protocol Suite 40 3-3 POINT-TO-POINT WANS A second type of network we encounter in the Internet is the point-to-point wide area network. A point-to-point WAN connects two remote devices using a line available from a public network such as a telephone network. E.g: modem technology, DSL line, cable modem, Tlines, and SONET. TCP/IP Protocol Suite 41 Figure 3.31 TCP/IP Protocol Suite PPP frame 42 3-5 CONNECTING DEVICES LANs or WANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs and WANs together we use connecting devices. Connecting devices can operate in different layers of the Internet model. We discuss three kinds of connecting devices: repeaters (or hubs), bridges (or two-layer switches), and routers (or three-layer switches). TCP/IP Protocol Suite 43 Topics Discussed in the Section Repeaters Bridges Routers TCP/IP Protocol Suite 44 Figure 3.40 TCP/IP Protocol Suite Connecting devices 45 Figure 3.41 Repeater or hub Sent Maintained TCP/IP Protocol Suite 46 Note A repeater forwards every bit; it has no filtering capability. TCP/IP Protocol Suite 47 Note A bridge has a table used in filtering decisions. TCP/IP Protocol Suite 48 Note A bridge does not change the physical (MAC) addresses in a frame. TCP/IP Protocol Suite 49 Figure 3.42 Bridge Bridge table Address Port 1 71:2B:13:45:61:41 2 71:2B:13:45:61:42 3 64:2B:13:45:61:12 4 64:2B:13:45:61:13 TCP/IP Protocol Suite 50 Figure 3.43 Address Learning bridge Port a. Original Address 71:2B:13:45:61:41 64:2B:13:45:61:13 Port 1 4 c. After D sends a frame to B M TCP/IP Protocol Suite Address Port 71:2B:13:45:61:41 1 64:2B:13:45:61:13 4 71:2B:13:45:61:42 2 d. After B sends a frame to A M M Address Port 71:2B:13:45:61:41 1 64:2B:13:45:61:13 4 71:2B:13:45:61:42 2 64:2B:13:45:61:12 3 e. After C sends a frame to D M 51 Note A router is a three-layer (physical, data link, and network) device. TCP/IP Protocol Suite 52 Note A repeater or a bridge connects segments of a LAN. A router connects independent LANs or WANs to create an internetwork (internet). TCP/IP Protocol Suite 53 Figure 3.44 TCP/IP Protocol Suite Routing example 54 Note A router changes the physical addresses in a packet. TCP/IP Protocol Suite 55