dcc2022s1 Lecture07
dcc2022s1 Lecture07
➢ LAN Technologies:
- Topology: bus, tree, ring and star
- Transmission Medium
- Medium Access Control
2 EIE3333 DCC
Common LAN Standards
The first three are IEEE802 standards (i.e. originated from Project 802 of IEEE),
while FDDI is an ANSI standard
The data link layer of existing LANs in use today are based on HDLC
each is modified slightly for the specific needs or designs
3 EIE3333 DCC
IEEE Project 802
IEEE Project 802 specifies the detailed functions of layers 1 and 2 (and small parts of
layer 3)
5 EIE3333 DCC
IEEE802.3 Ethernet
6 EIE3333 DCC
IEEE802.3 Ethernet
Evolution of Ethernet
7 EIE3333 DCC
Ethernet - Length Data for Cables
and Hubs
8 EIE3333 DCC
Topology in Ethernet
9
Data Access in Ethernet
NIC picks up the frames
intended for itself (based on
the physical address, which
matches its own address)
10
Ethernet Frame Structure
▪ Frame length:
▪ Minimum: 64 bytes (512 bits)
▪ Maximum: 1518 bytes (12,144 bits)
Preamble:
7 bytes with pattern 10101010 followed by one byte with pattern 10101011
11 used to synchronize receiver, sender clock rates
Ethernet Frame Structure
Address: 6 bytes
If adapter receives frame with matching destination address, or
with broadcast address (e.g. ARP packet), it passes data in frame
to network-layer protocol
Otherwise, adapter discards frame
Type: indicates the higher layer protocol (mostly IP but others may
be supported such as Novell IPX and AppleTalk)
CRC: checked at receiver, if error is detected, the frame is simply
dropped
12 EIE3333 DCC
Example 1
A network using CSMA/CD has a bandwidth of 10 Mbps. If the maximum propagation time
(including the delays in the devices and ignoring the time needed to send a jamming signal,
as we see later) 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.
14 EIE3333 DCC
MAC Address
▪ 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.
15 EIE3333 DCC
LAN Address
Each adapter on LAN has unique LAN address:
LAN
(wired or = adapter
wireless)
71-65-F7-2B-08-53
58-23-D7-FA-20-B0
0C-C4-11-6F-E3-98
16 EIE3333 DCC
LAN Address
0C-C4-11-6F-E3-98
18 EIE3333 DCC
ARP Protocol: same LAN (network)
20 EIE3333 DCC
Routing to another LAN
walkthrough: send datagram from A to B via R
assume A knows B’s IP address
R
B
22 EIE3333 DCC
Hubs
Physically a
twisted pair
star, logically
a bus
hub
23 EIE3333 DCC
Interconnecting with Hubs
hub
hub
hub hub
24 EIE3333 DCC
Switch
25 EIE3333 DCC
Frame Forwarding
switch
1
2 3
hub
hub hub
26 EIE3333 DCC
Self Learning
27 EIE3333 DCC
Example
28 EIE3333 DCC
Switch Example
Suppose C sends a frame to D
switch Address Interface
1 A 1
2 3
C 1
E 2
hub hub hub G 3
A
I
D F
B C G H
E
◼ Switch receives frame from C
◼ notes in switch table that C is on interface 1
and 3
29
◼ frame received by D EIE3333 DCC
Switch Example
Suppose D replies back with frame to C
Address Interface
switch
A 1
C 1
D 2
hub hub hub E 2
A
I G 3
D F
B C G H
E
◼ Switch receives frame from D
◼ notes D is on interface 2, add D entry in the table
interface 1
30 EIE3333 DCC
◼ frame received by C
Collision Domains
A collision domain is the segment where devices must compete to
communicate.
All ports of a hub belong to the same collision domain.
Every port of a switch is a collision domain on its own.
A switch break the segment into smaller collision domains, easing
device competition.
31 EIE3333 DCC
Switch: Traffic Isolation
Switch installation breaks subnet into LAN segments
Switch filters packets:
same-LAN-segment frames not usually forwarded onto other LAN
segments
segments become separate collision domains
switch
collision
domain
hub
hub hub
C
Switching: A-to-A’ and B-to-B’
simultaneously, no collisions B’ A’
33 EIE3333 DCC
Broadcast Domain
▪ A broadcast domain is a collection of network devices that receive broadcast
traffic from each other.
• Switches will forward broadcast traffic to all interfaces, except the one where it
originated from.
• A lot of broadcast traffic might impact your network performance so reducing the
size of the broadcast domain is something to consider.
• Routers do not forward broadcast traffic, they break broadcast domains.
• VLANs on switches also allow you to break broadcast domains.
34 EIE3333 DCC
Hub and Layer 2 Switch
35 EIE3333 DCC
Switch vs Router
Both store-and-forward devices
Routers: network layer devices (examine network layer headers)
Switches are link layer devices
Routers maintain routing tables, implement routing algorithms
Switches maintain switch tables, implement filtering, learning algorithms
switch
36 EIE3333 DCC
Virtual LANs
A station is considered part of a LAN if it physically belongs to that LAN.
The criterion of membership is geographic.
37 EIE3333 DCC
Virtual LANs
A virtual LAN, based on the VLAN 802.1Q standard, consists of a logical group
of stations, independent of their actual physical locations.
This switched network is logically segmented in such a way that stations can be
grouped within an organization to provide an accounting VLAN, a marketing
VLAN, etc.
With VLAN, people can form networks without the restriction on physical
locations
38
Virtual LANs
The information used to identify a packet as part of a specific VLAN is
inserted by a switch, and preserved through switch and router
connections.
One result of the logical segmentation is that one broadcast will reach
every station belonging to the same VLAN, but not any other hosts.
In addition, this switched network can be dynamically reconfigured
without rewiring the wired connections between the switch and the
various stations—a process that can save manpower for any organization
that needs restructuring.
39 EIE3333 DCC
Virtual LANs
Two switches in a backbone using VLAN software
40 EIE3333 DCC
Virtual LANs
Example of VLANs in a company
41 EIE3333 DCC
Access Mode or Trunk Mode
A switch port runs in either the access mode or the trunk mode.
In the access mode the interface belongs to one and only one VLAN, and in this mode
a switch port is normally attached to an end user device or a server.
In contrast, the trunk mode multiplexes traffic for multiple VLANs over the same
physical link.
The trunk links usually interconnect switches.
In order to multiplex VLAN traffic, special protocols exist that encapsulate or tag,
i.e., mark, the frames so that the receiving device knows to which VLAN the frame
belongs.
Trunk protocols are either proprietary, e.g., Cisco proprietary Inter-Switch Link
(ISL), or based upon IEEE 802.1Q.
42 EIE3333 DCC
The Access Mode or Trunk Mode
43 EIE3333 DCC
Tagging Ethernet Frames for
VLAN Identification
45
The VLAN Tag
47 EIE3333 DCC
Reading