Ethernet Background and Encapsulation OverviewThe motivation behind the development of a computer network came from Xerox wanting to interconnect some of the first personal computers at its Palo Alto Research Center (PARC) and the world's first laser printer so that all of the PARC's computers could print with the same printer. Prior to this, the number of computers at any single facility never exceeded two or three. This was the first instance in which hundreds of computers in the same building required intercommunication. Ethernet solved two of Xerox's challenges:
Later on, because of the combined efforts of Digital Equipment, Intel, and Xerox, Ethernet became a standard. Ethernet is now the world's most widely used LAN protocol. Ethernet uses carrier sense multiple access collision detect (CSMA-CD). The different parts of this protocol are as follows:
The base of Ethernet technology is the Ethernet frame. An IP datagram, for instance, is encapsulated and transmitted in a standard Ethernet (Type II) frame. The frame header is 14 bytes long6 bytes of destination address + 6 bytes of source address + 2 bytes of frame typefollowed by the data portion and completed by 4 bytes of the frame check sequence (FCS). Figure 4-1 shows the fields of the original Ethernet Type II (Ethernet II) frame format. Figure 4-1. Ethernet Type II Frame
The following explains the fields in an Ethernet II frame:
Note Originally, Ethernet II was also referred to as DIX after its corporate sponsors Digital, Intel, and Xerox. The original Ethernet II frame format had some shortcomings. To allow collision detection, the 10-Mbps Ethernet required a minimum packet size of 64 bytes. That meant you needed to pad short frames with 0s. Thus, higher-layer protocols needed to include a Length field to discriminate the actual data from the padding. As a consequence, the original Ethernet frame was changed to include a Length field and to allow for Ethernet to interwork with other LAN media. Fortunately, the values assigned to the Ethernet Type field (0x0600 XNS [Xerox], 0x0800 IP [Internet Protocol], and 0x6003 DECNET) were always higher than the maximum frame size with a decimal value of 1500. The 802 committee solution to the task of providing a standard that did not depend on the behavior or characteristics of higher layer protocols was 802.3. 802.3 replaced the Ethernet Type field with a 2-octet length field. The way to distinguish an Ethernet II from an 802.3 frame is by inspecting the Type/Length field:
In addition, a new form of packet type field was needed, so a Logical Link Control (LLC) header with destination and source service access point (DSAP and SSAP, respectively) and control fields follow the Length field for higher-protocol identification (see Figure 4-2). Figure 4-2. 802.3 Frame Format
The new fields are as follows:
Figure 4-2 also shows an IEEE 802.3 SNAP frame format that is indicated by the DSAP and SSAP values and includes the SNAP field. The SNAP header includes 3 bytes of vendor code and 2 bytes of local code. A vendor code of 0s (0x000000) indicates that the local code is an Ethernet Type II for backward compatibility. This new format moves the Ethernet Type field 8 bytes from its original location in Ethernet II. Note The Ethernet Type II frame format is often referred to as ARPA frame. The IEEE 802.3 frame format is also called 802.3 LLC to differentiate it from 802.3 SNAP. Note how the size range for the Data field varies between the different encapsulations (see Table 4-1).
Note that you can send IP datagrams smaller than 46 bytes over Ethernet II because IP contains a Total Length field. When you are sending, for example, 36-byte IP datagrams using Ethernet II encapsulation, a 10-byte trailer with all zeroes is appended to the IP datagram. When you are sending the same IP datagram over 802.3 SNAP, the trailer is only 2 bytes, because 8 bytes are used for the LLC + SNAP headers (1 DSAP + 1 SSAP + 1 Control + 3 OUI + 2 Ethertype). |