



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































i .
viii Introduction to Networks Companion Guide (CCNAv7)
ix
xxxiii ■■ (^) Chapter 6, “Data Link Layer”: This chapter discusses how the data link layer prepares network layer packets for transmission, controls access to the physical media, and transports data across various media. This chapter includes a descrip- tion of the encapsulation protocols and processes that occur as data travels across the LAN and the WAN. ■■ (^) Chapter 7, “Ethernet Switching”: This chapter examines the functionality of the Ethernet LAN protocols. It explores how Ethernet functions, including how devices use Ethernet MAC addresses to communicate in a multiaccess network. The chapter discusses how Ethernet switches build MAC address tables and for- ward Ethernet frames. ■■ (^) Chapter 8, “Network Layer”: This chapter introduces t⁷he function of the net- work layer—routing—and the basic device that performs this function—the router. It presents important routing concepts related to addressing, path deter- mination, and data packets for both IPv4 and IPv6. The chapter also introduces how routers perform packet forwarding, static and dynamic routing, and the IP routing table. ■■ (^) Chapter 9, “Address Resolution”: This chapter discusses how host computers and other end devices determine the Ethernet MAC address for a known IPv4 or IPv6 address. This chapter examines the ARP protocol for IPv4 address resolu- tion and the Neighbor Discovery Protocol for IPv6. ■■ (^) Chapter 10, “Basic Router Configuration”: This chapter explains how to con- figure a Cisco router, including IPv4 and IPv6 addressing on an interface. ■■ (^) Chapter 11, “IPv4 Addressing”: This chapter focuses on IPv4 network address- ing, including the types of addresses and address assignment. It describes how to use subnet masks to determine the number of subnetworks and hosts in a net- work. It examines how to improve network performance by optimally dividing the IPv4 address space based on network requirements. It explores the calcula- tion of valid host addresses and the determination of both subnet and broadcast addresses. ■■ (^) Chapter 12, “IPv6 Addressing”: This chapter focuses on IPv6 network address- ing, including IPv6 address representation, types of addresses, and the structure of different types of IPv6 address. The chapter introduces the different methods that an end device can receive an IPv6 address automatically. ■■ (^) Chapter 13, “ICflP”: This chapter introduces Internet Control Message Proto- col (ICMP) tools, such as ping and trace.
xxxiv Introduction to Networks Companion Guide (CCNAv7) ■■ (^) Chapter 14, “Transport Layer”: This chapter introduces Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) and examines how each of these protocols transports information across the network. It explores how TCP uses segmentation, the three-way handshake, and expectational acknowledg ments to ensure reliable delivery of data. It also examines the best-effort delivery mechanism provided by UDP and describes when its use would be preferred over the use of TCP. ■■ (^) Chapter 15, “Application Layer”: This chapter introduces some protocols of the TCP/IP application layer, which also relates to the top three layers of the OSI model. The chapter focuses on the role of the application layer and how the applications, services, and protocols in the application layer make robust commu- nication across data networks possible. This will be demonstrated by examining some key protocols and services, including HTTP, HTTPS, DNS, DHCP, SMTP/POP, and FTP. ■■ (^) Chapter 16, “Network Security Fundamentals”: This chapter introduces net- work security threats and vulnerabilities. Various network attacks and mitigation techniques are discussed, along with how to secure network devices. ■■ (^) Chapter 17, “Build a Small Network”: This chapter reexamines the various components in a small network and describes how they work together to allow network growth. It examines network configuration and troubleshooting issues, along with different troubleshooting methodologies. ■■ (^) Appendix A, “Answers to ‘Check Your Understanding’ Questions”: This appendix lists the answers to the “Check Your Understanding” review questions that are included at the end of each chapter. ■■ (^) Key Terms Glossary: The Key Terms Glossary provides definitions for all the key terms identified in each chapter.
234 Introduction to Networks Companion Guide (CCNAv7)
If you are planning to become a network administrator or a network architect, you def- initely need to know about Ethernet and Ethernet switching. The two most prominent LAN technologies in use today are Ethernet and WLANs. Ethernet supports band- widths of up to 100 Gbps, which explains its popularity. This chapter contains a lab. in which you will use Wireshark to look at Ethernet frames and another lab where you will view network device MAC addresses. There are also some instructional videos to help you better understand Ethernet. By the time you have finished this chapter, you will be able to create a switched network that uses Ethernet!
Ethernet operates in the data link layer and the physical layer. It is a family of networking technologies that are defined in the IEEE 802.2 and 802.3 standards.
This chapter starts with a discussion of Ethernet technology, including an explanation of MAC sublayer and the Ethernet frame fields. Two LAN technologies are used today: Ethernet and wireless LANs (WLANs). Ethernet uses wired communications, including twisted-pair, fiber-optic links, and coaxial cables. Ethernet operates in the data link layer and the physical layer. It is a family of networking technologies defined in the IEEE 802.2 and 802.3 standards. Ethernet supports the following data bandwidths: ■ (^10) Mbps ■ (^100) Mbps ■ (^1000) Mbps (1 Gbps) ■ (^) 10,000 Mbps (10 Gbps) ■ (^) 40,000 Mbps (40 Gbps) ■ (^) 100,000 Mbps (100 Gbps) As shown in Figure 7 - 1, Ethernet standards define both Layer 2 protocols and Layer 1 technologies.
Chapter 7 : Ethernet Switching 235 Figure 7 - 1 Ethernet in the OSI Model
IEEE 802 LAN/MAN protocols, including Ethernet, use the two sublayers of the data link layer to operate: the Logical Link Control (LLC) and the Media Access Control (MAC) layers (see Figure 7 - 2). Recall that the LLC and MAC sublayers have the following roles in the data link layer: ■ (^) LLC sublayer: This IEEE 802.2 sublayer communicates between the networking software at the upper layers and the device hardware at the lower layers. It places information in the frame to identify which network layer protocol is being used for the frame. This information allows multiple Layer 3 protocols, such as IPv and IPv6, to use the same network interface and media. ■ (^) flAC sublayer: This sublayer (specified in IEEE 802.3, 802.11, and 802.15), which is implemented in hardware, is responsible for data encapsulation and media access control. It provides data link layer addressing and is integrated with various physical layer technologies.
Chapter 7 : Ethernet Switching 237
As shown in Figure 7 - 3, the IEEE 802.3 MAC sublayer includes the specifications for different Ethernet communications standards over various types of media, including copper and fiber. Figure 7 - 3 Details of the MAC Sublayer Recall that legacy Ethernet using a bus topology or hubs is a shared, half-duplex medium. Ethernet over a half-duplex medium uses a contention-based access method , Carrier Sense Multiple Access/Collision Detect (CSMA/CD) to ensure that only one device is transmitting at a time. CSMA/CD allows multiple devices to share the same half-duplex medium and detects a collision when more than one device attempts to transmit simultaneously. It also provides a back-off algorithm for retransmission. Ethernet LANs today use switches that operate in full-duplex. Full-duplex communi- cations with Ethernet switches do not require access control through CSMA/CD.
The minimum Ethernet frame size is 64 bytes, and the expected maximum is 1518 bytes. The frame size might be larger than that if additional requirements are included, such as VLAN tagging. (VLAN tagging is beyond the scope of this book.)
238 Introduction to Networks Companion Guide (CCNAv7) The frame includes all bytes from the destination MAC address field through the FCS field. The Preamble field is not included when describing the size of a frame. Any frame less than 64 bytes in length is considered a collision fragment or runt frame and is automatically discarded by receiving stations. Frames with more than 1500 bytes of data are considered jumbo frames or baby giant frames. If the size of a transmitted frame is less than the minimum or greater than the maximum, the receiving device drops the frame. Dropped frames are likely to result from collisions or other unwanted signals. They are considered invalid. Jumbo frames are supported by most Fast Ethernet and Gigabit Ethernet switches and NICs. Figure 7 - 4 shows the fields in the Ethernet frame. Figure 7 - 4 Ethernet Frame Structure and Field Size Table 7 - 1 provides more information about the function of each field. Table 7- 1 Ethernet Frame Fields Detail Field Description Preamble and Start Frame Delimiter fields Destination MAC Address field Source MAC Address field The preamble (7 bytes) and start frame delimiter (SFD), also called the start of frame (1 byte), fields are used for synchronization between the sending and receiving devices. These first 8 bytes of the frame are used to get the attention of the receiving nodes. Essentially, the first few bytes tell the receivers to get ready to receive a new frame. This 6-byte field is the identifier for the intended recipient. Recall that Layer 2 uses this address to assist devices in determining if a frame is addressed to them. The address in a frame is compared to the MAC address in a device. If there is a match, the device accepts the frame. It can be a unicast, multicast, or broadcast address. This 6 - byte field identifies the originating NIC or interface of the frame.
240 Introduction to Networks Companion Guide (CCNAv7)
As discussed in detail in Chapter 5, “Number Systems,” in networking, IPv addresses are represented using the decimal (base 10) number system and the binary (base 2) number system. IPv6 addresses and Ethernet addresses are represented using the hexadecimal (base 16) number system. To understand hexadecimal, you must first be very familiar with binary and decimal. The hexadecimal numbering system uses the numbers 0 to 9 and the letters A to F. An Ethernet MAC address consists of a 48 - bit binary value. Hexadecimal is used to identify an Ethernet address because a single hexadecimal digit represents 4 binary bits. Therefore, a 48-bit Ethernet MAC address can be expressed using only 12 hexadecimal values. Figure 7 - 5 compares the equivalent decimal and hexadecimal values for binary 0000 to 1111. Figure 7 - 5 Decimal to Binary to Hexadecimal Conversion Given that 8 bits (1 byte) is a common binary grouping, binary 00000000 to 11111111 can be represented in hexadecimal as the range 00 to FF, as shown in the Figure 7 - 6.
Chapter 7 : Ethernet Switching 241 Figure 7 - 6 Selected Examples of Decimal to Binary to Hexadecimal Conversions When using hexadecimal, leading zeros are always displayed to complete the 8-bit representation. For example, in Figure 7 - 6, the binary value 0000 1010 is shown to be 0A in hexadecimal. Hexadecimal numbers are often represented by a value preceded by 0x (for example, 0x73) to distinguish between decimal and hexadecimal values in documentation. Hexadecimal may also be represented using a subscript 16 or by using the hex number followed by an H (for example, 73H). You might have to convert between decimal and hexadecimal values. If such conversions are required, convert the decimal or hexadecimal value to binary and then to convert the binary value to either decimal or hexadecimal as appropriate. See Chapter 5 for more information.
In an Ethernet LAN, every network device is connected to the same shared medium. The MAC address is used to identify the physical source and destination devices (NICs) on the local network segment. MAC addressing provides a method for device identification at the data link layer of the OSI model.
Chapter 7 : Ethernet Switching 243 software tools. In such a case, it is necessary to modify the MAC address with a new NIC or make modifications by using software.
Sometimes a MAC address is referred to as a burned-in address (BIA) because the address is hard coded into read-only memory (ROM) on the NIC. This means that the address is permanently encoded into the ROM chip. Note With modern PC operating systems and NICs, it is possible to change the MAC address in software. This is useful when attempting to gain access to a network that filters based on BIA. Consequently, filtering or controlling traffic based on the MAC address is no longer as secure as it once was. When the computer boots up, the NIC copies its MAC address from ROM into RAM. When a device is forwarding a message to an Ethernet network, as shown in Figure 7 - 9, the Ethernet header includes the following: ■ (^) Source flAC address: This is the MAC address of the source device NIC. ■ (^) Destination flAC address: This is the MAC address of the destination device NIC. Figure 7 - 9 The Source Prepares a Frame to Send to the Destination
244 Introduction to Networks Companion Guide (CCNAv7) When a NIC receives an Ethernet frame, it examines the destination MAC address to see if it matches the physical MAC address that is stored in RAM. If there is no match, the device discards the frame. In Figure 7 - 10, H2 and H4 discard the frame. The MAC address matches for H4, so H4 passes the frame up the OSI layers, where the de-encapsulation process takes place. Figure 7 - 10 All Devices Receive the Frame, but Only the Destination Processes It Note Ethernet NICs also accept frames if the destination MAC address is a broadcast or a multicast group of which the host is a member. Any device that is the source or destination of an Ethernet frame will have an Ether- net NIC and, therefore, a MAC address. This includes workstations, servers, printers, mobile devices, and routers.
In Ethernet, different MAC addresses are used for Layer 2 unicast, broadcast, and multicast communications.