Professional Documents
Culture Documents
13.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
13-1 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.
It is a way of specifying functions of the physical layer and the data link layer
of major LAN protocols.
The IEEE has subdivided the data link layer into two sublayers: logical link
control (LLC) and media access control (MAC).
13.2
Figure 13.1 IEEE standard for LANs
13.3
Data Link Layer
The data link layer in the IEEE standard is divided into two sublayers:
LLC and MAC.
13.4
Logical Link Control (LLC)
We said that data link control handles framing, flow control, and error
control.
In IEEE Project 802, flow control, error control, and part of the framing
duties are collected into one sublayer called the logical link control.
Framing is handled in both the LLC sublayer and the MAC sublayer.
13.5
Framing
LLC defines a protocol data unit (PDU) that is somewhat similar to that of
HDLC.
The header contains a control field like the one in HDLC; this field is used
for flow and error control.
The two other header fields define the upper-layer protocol at the source
and destination that uses LLC.
These fields are called the destination service access point (DSAP)
and the source service access point (SSAP).
The other fields defined in a typical data link control protocol such as
HDLC are moved to the MAC sublayer.
In other words, a frame defined in HDLC is divided into a PDU at the LLC
sublayer and a frame at the MAC sublayer
13.6
Figure 13.2 HDLC frame compared with LLC and MAC frames
13.7
Media Access Control
(MAC)
IEEE Project 802 has created a sublayer called media access control
that defines the specific access method for each LAN.
For example, it defines CSMA/CD as the media access method for
Ethernet LANs and the token passing method for Token Ring and
Token Bus LANs.
13.8
Physical Layer
The physical layer is dependent on the implementation and type of
physical media used.
IEEE defines detailed specifications for each LAN implementation.
For example, although there is only one MAC sublayer for Standard
Ethernet, there is a different physical layer specifications for each
Ethernet implementations.
13.9
17-1 CONNECTING DEVICES
Today, connecting devices can operate in different layers of the Internet model:
1. Hubs: operate in the first layer of the Internet model.
2. Link-layer switches: operate in the first two layers.
3. Routers: operate in the first three layers.
Hubs
A hub is a device that operates only in the physical layer.
Signals that carry information within a network can travel a fixed distance
before attenuation endangers the integrity of the data.
A repeater receives a signal and, before it becomes too weak or corrupted,
regenerates and retimes the original bit pattern.
The repeater then sends the refreshed signal.
Today, Ethernet LANs use star topology. In a star topology, a repeater is a
multiport device, often called a hub, that can be used to serve as the
connecting point and at the same time function as a repeater.
Figure: Hub
When a packet from station A to station B arrives at the hub, the signal
representing the frame is regenerated to remove any possible corrupting noise,
but the hub forwards the packet from all outgoing ports except the one from which
the signal was received.
In other words, the frame is broadcast.
All stations in the LAN receive the frame, but only station B keeps it.
The rest of the stations discard it.
Hub does not have a filtering capability; it does not have the
intelligence to find from which port the frame should be sent out.
A hub or a repeater is a physical-layer device.
They do not check the link-layer address of the received frame.
They just regenerate the corrupted bits and send them out from every
port.
Link-Layer Switches
A link-layer switch (or switch) operates in both the physical and the data-link
layers.
As a physical-layer device, it regenerates the signal it receives.
As a link-layer device, the link-layer switch can check the MAC addresses
(source and destination) contained in the frame.
Filtering
Station A sends a
frame to station D.
The tables of both
switches are
empty.
Both forward the
frame and update
their tables based
on the source
address A.
Figure : Loop problem in a learning switch (Part b)
1. Every switch has a built-in ID (normally the serial number, which is unique). The
switch with the smallest ID is selected as the root switch (root of the tree). We
assume that switch S1 has the smallest ID. It is, therefore, selected as the root
switch.
2. The algorithm tries to find the shortest path (a path with the shortest cost) from
the root switch to every other switch or LAN. The shortest path can be found by
examining the total cost from the root switch to the destination.
3. The combination of the shortest paths creates the shortest tree.
4. Based on the spanning tree, we mark the ports that are part of it, the forwarding
ports, which forward a frame that the switch receives. We also mark those
ports that are not part of the spanning tree, the blocking ports, which block the
frames received by the switch.
Figure: A system of connected LANs and its graph (Part b)
Figure: Finding the shortest path and the spanning tree for a
switch.
Figure: Forwarding and blocking ports after using spanning tree
algorithm
Advantages of Switches
Collision Elimination
This means increasing the average bandwidth available to a host in the network.
A link-layer switch can connect devices that use different protocols at the physical
layer (data rates) and different transmission media.
Routers
A router is a three-layer device; it operates in the physical, data-link, and
network layers.
As a physical-layer device, it regenerates the signal it receives.
As a link-layer device, the router checks the physical addresses (source
and destination) contained in the packet.
As a network-layer device, a router checks the network-layer addresses.
A router can connect networks.
In other words, a router is an internetworking device; it connects
independent networks to form an internetwork.
There are three major differences between a router and a repeater or a
switch.
1. A router has a physical and logical (IP) address for each of its
interfaces.
2. A router acts only on those packets in which the link-layer
destination address matches the address of the interface at which
the packet arrives.
3. A router changes the link-layer address of the packet (both source
and destination) when it forwards the packet.