Lecture Notes - Wired LANs Ethernet
Lecture Notes - Wired LANs Ethernet
Lecture Notes - Wired LANs Ethernet
Lecture 3
Chapter 13: Wired LANs-Ethernet
2. IEEE STANDARDS
In 1985, the Computer Society of the IEEE started a project, called Project 802, to set
standards to enable intercommunication among equipment from a variety of
manufacturers. Project 802 does not seek to replace any part of the OSI or the Internet
model. Instead, it is a way of specifying functions of the physical layer and the data link layer
of major LAN protocols.
The original Ethernet was created in 1976 at Xerox's Palo Alto Research Center (PARC). Since
then, it has gone through four generations:
MAC Sublayer
In Standard Ethernet, the MAC sublayer governs the operation of the access method. It also
frames data received from the upper layer and passes them to the physical layer.
Frame Format
The Ethernet frame contains seven fields: preamble, SFD, DA, SA, length or type of protocol
data unit (PDU), upper-layer data, and the CRC. Ethernet does not provide any mechanism
for acknowledging received frames, making it what is known as an unreliable medium.
Acknowledgments must be implemented at the higher layers. The format of the MAC frame
is shown in Figure 13.2.
i. Preamble. The first field of the 802.3 frame contains 7 bytes (56 bits) of alternating 0s
and 1s that alerts the receiving system to the coming frame and enables it to
synchronize its input timing. The pattern provides only an alert and a timing pulse. The
56-bit pattern allows the stations to miss some bits at the beginning of the frame. The
preamble is actually added at the physical layer and is not (formally) part of the frame.
ii. Start frame delimiter (SFD). The second field (1 byte: 10101011) signals the beginning of
the frame. The SFD warns the station or stations that this is the last chance for
synchronization. The last 2 bits is 11 and alerts the receiver that the next field is the
destination address.
iii. Destination address (DA). The DA field is 6 bytes and contains the physical address of
the destination station or stations to receive the packet.
iv. Source address (SA). The SA field is also 6 bytes and contains the physical address of the
sender of the packet.
v. Length or type. This field is defined as a type field or length field. The original Ethernet
used this field as the type field to define the upper-layer protocol using the MAC frame.
The IEEE standard used it as the length field to define the number of bytes in the data
field. Both uses are common today.
vi. Data. This field carries data encapsulated from the upper-layer protocols. It is a
minimum of 46 and a maximum of 1500 bytes.
vii. CRC. The last field contains error detection information, in this case a CRC-32.
viii. Frame Length Ethernet has imposed restrictions on both the minimum and maximum
lengths of a frame, as shown in Figure 13.3.
Figure 13.3 Minimum and maximum lengths
The minimum length restriction is required for the correct operation of CSMA/CD as we will
see shortly. An Ethernet frame needs to have a minimum length of 512 bits or 64 bytes. Part
of this length is the header and the trailer. If we count 18 bytes of header and trailer (6
bytes of source address, 6 bytes of destination address, 2 bytes of length or type, and 4
bytes of CRC), then the minimum length of data from the upper layer is 64 - 18 = 46 bytes. If
the upper-layer packet is less than 46 bytes, padding is added to make up the difference.
The standard defines the maximum length of a frame (without preamble and SFD field) as
1518 bytes. If we subtract the 18 bytes of header and trailer, the maximum length of the
payload is 1500 bytes. The maximum length restriction has two historical reasons. First,
memory was very expensive when Ethernet was designed: a maximum length restriction
helped to reduce the size of the buffer. Second, the maximum length restriction prevents
one station from monopolizing the shared medium, blocking other stations that have data
to send.
A source addressess is always a unicast address as the frame comes from only one
station.
The destination address, however, can be unicast, multicast, or broadcast.
Figure 13.6 shows how to di distinguish
stinguish a unicast address from a multicast address. If
the least significant bit of the first byte in a destination address is 0, the address is
unicast; otherwise, it is multicast.
Figure 13.
13.6 Unicast and multicast MAC addresses
A unicast destination ad
address
dress defines only one recipient; the relationship between
the sender and the receiver is one-to-one.
one
A multicast destination address defines a group of addresses; the relationship
between the sender and the receivers is one-to-many.
one
The broadcast addresss is a special case of the multicast address; the recipients are all
the stations on the LAN. A broadcast destination address is forty
forty-eight 1s.
1
Example 13.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:
The transceiver is responsible for transmitting, receiving, and detecting collisions. The
transceiver is connected to the station via a transceiver cable that provides separate paths
for sending and receiving. This means that collision can only happen in the coaxial cable. The
maximum length of the coaxial cable must not exceed 500 m, otherwise, there is excessive
degradation of the signal. If a length of more than 500 m is needed, up to five segments,
each a maximum of 500-meter, can be connected using repeaters.
10Base2: Thin Ethernet
The second implementation is called 10Base2, thin Ethernet, or Cheaper net. 10Base2 also
uses a bus topology, but the cable is much thinner and more flexible. The cable can be bent
to pass very close to the stations. In this case, the transceiver is normally part of the
network interface card (NIC), which is installed inside the station.
Note that the collision here occurs in the thin coaxial cable. This implementation is more
cost effective than 10Base5 because thin coaxial cable is less expensive than thick coaxial
and the tee connections are much cheaper than taps. Installation is simpler because the thin
coaxial cable is very flexible. However, the length of each segment cannot exceed 185 m
(close to 200 m) due to the high level of attenuation in thin coaxial cable.
10Base-T: Twisted-Pair Ethernet
The third implementation is called 10Base-T or twisted-pair Ethernet. 10Base-T uses a
physical star topology. The stations are connected to a hub via two pairs of twisted cable.
Note that two pairs of twisted cable create two paths (one for sending and one for
receiving) between the station and the hub. Any collision here happens in the hub.
Compared to 10Base5 or 10Base2, we can see that the hub actually replaces the coaxial
cable as far as a collision is concerned. The maximum length of the twisted cable here is
defined as 100 m, to minimize the effect of attenuation in the twisted cable.
10Base-F: Fiber Ethernet
Although there are several types of optical fiber 10-Mbps Ethernet, the most common is
called 10Base-F. 10Base-F uses a star topology to connect stations to a hub. The stations are
connected to the hub using two fiber-optic cables.
Summary
Table 13.1 shows a summary of Standard Ethernet implementations.
Table 13.1 Summary of Standard Ethernet implementations
Characteristics 10Base5 10Base2 10Base-T 10Base-F
Maximum
500m 185m 100m 2000m
length
Line encoding Manchester Manchester Manchester Manchester
A bridge divides the network into two or more networks. Bandwidth-wise, each network is
independent. For example, in Figure 13.9, a network with 12 stations is divided into two
networks, each with 6 stations. Now each network has a capacity of 10 Mbps. The 10-Mbps
capacity in each segment is now shared between 6 stations (actually 7 because the bridge
acts as a station in each segment), not 12 stations. In a network with a heavy load, each
station theoretically is offered 10/6 Mbps instead of 10/12 Mbps, assuming that the traffic is
not going through the bridge. It is obvious that if we further divide the network, we can gain
more bandwidth for each segment. For example, if we use a four-port bridge, each station is
now offered 10/3 Mbps, which is 4 times more than an unbridged network.
Topology
Fast Ethernet is designed to connect two or more stations together. If there are only two
stations, they can be connected point-to-point. Three or more stations need to be
connected in a star topology with a hub or a switch at the center, as shown in Figure 13.13.
Figure 13.13 Fast Ethernet topology
Implementation
Fast Ethernet implementation at the physical layer can be categorized as either two-wire or
four-wire. The two-wire implementation can be either category 5 UTP (100Base-TX) or fiber-
optic cable (100Base-FX). The four-wire implementation is designed only for category 3 UTP
(100Base-T4). See Figure 13.14.
Number of wires 2 2 4
Implementation
Gigabit Ethernet can be categorized as either a two-wire or a four-wire implementation. The
two-wire implementations use fiber-optic cable (1000Base-SX, short-wave, or 1000Base-LX,
long-wave), or STP (1000Base-CX). The four-wire version uses category 5 twisted-pair cable
(1000Base-T). In other words, we have four implementations, as shown in Figure 13.16.
Figure 13.16 Gigabit Ethernet implementations
Summary
Table 13.3 is a summary of the Gigabit Ethernet implementations.
Table 13.3 Summary of Gigabit Ethernet implementations
Number of wires 2 2 2 4
Ten-Gigabit Ethernet operates only in full duplex mode which means there is no need for
contention; CSMA/CD is not used in Ten-Gigabit Ethernet.
Implementation
Ten-Gigabit Ethernet is designed for using fiber-optic cable over long distances. Three
implementations are the most common: 10GBase-S, 10GBase-L, and 10GBase-E. Table 13.4
shows a summary of the Ten-Gigabit Ethernet implementations:
Table 13.4 Summary of Ten-Gigabit Ethernet implementations
Reference:
1. B. A. Forouzan: Data Communications and Networking, Fourth edition, TMH .