Module 6: Data Link Layer & Module 7: Ethernet Switching
CCNA Routing and Switching:
Introduction to Networks v7.0 (ITN)
This Slides is prepared by:
Eng. Rawan Aljamal
Cisco Certified CCNA Instructor Trainer
1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The Data Link Layer
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IEEE 802 LAN/MAN Data Link Sublayers
3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IEEE 802 LAN/MAN Data Link Sublayers
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Physical and Logical Topologies
The topology of a network is the arrangement and relationship of the network devices and the interconnections between them.
There are two types of topologies used when describing networks:
The data link layer "sees" the logical topology of a network when controlling data access to the media. Logical topology influences the type of network framing and media access control used.
5
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
WAN Topologies
There are three common physical WAN topologies:
Hub and spoke
Point-to-point
Mesh
6
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Point-to-Point WAN Topology
7
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
LAN Topologies
End devices on LANs are typically interconnected using a star or extended star topology.
Star and extended star topologies are easy to install, very scalable, and easy to troubleshoot.
Early Ethernet and Legacy Token Ring technologies provide two additional topologies:
8
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Half-duplex communication
Full-duplex communication
Auto-negotiation التفاوض الذاتي is an optional function that enables two devices to automatically negotiate the best speed and duplex capabilities. It is found on most Ethernet switches and NICs.
Half and Full Duplex Communication
9
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Duplex and Speed Settings
10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Contention-based access
All nodes operating in half-duplex, competing for use of the medium. Examples are:
Controlled access
Access Control Methods
11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
CSMA/CD (Carrier Sense Multiple Access/Collison Detection)
CSMA/CD collision detection process:
Contention-Based Access – CSMA/CD
12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
CSMA/CA (Carrier Sense Multiple Access/Collison Avoidance)
CSMA/CA collision avoidance process:
Contention-Based Access – CSMA/CA
13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Encapsulation in the Ethernet MAC Sublayer
IEEE 802.3 data encapsulation includes the following:
15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Frame Fields
Data is encapsulated by the data link layer with a header and a trailer to form a frame.
Field | Description |
Frame Start and Stop | Identifies beginning and end of a frame |
Addressing | Indicates source and destination nodes |
Type | Identifies encapsulated Layer 3 (network layer) protocol |
Control | Identifies flow control services |
Data | Contains the frame payload |
Error Detection | Used to determine transmission errors |
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Layer 2 Addresses
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Ethernet MAC Address
18
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Ethernet Frame Fields
19
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Field | Bytes | Description |
Preamble | 7 | Bit patterns that synchronize timing. |
SFD (Start Frame Delimiter) | 1 | Bit pattern that signals the start of a frame. |
Destination MAC | 6 | The unique physical address of the receiving NIC. |
Source MAC | 6 | The unique physical address of the sending NIC. |
Type / Length | 2 | Indicates the L3 protocol (e.g., IPv4) or the size of the data payload. |
Data (Payload) | 46–1500 | The encapsulated packet. Includes padding if the data is under 46 bytes. |
FCS (Frame Check Sequence) | 4 | A CRC value calculated from the frame’s data and used to check for bit errors. |
Ethernet Frame Fields
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Frame Processing
.
21
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Unicast MAC Address
22
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Broadcast MAC Address
An Ethernet broadcast frame is received and processed by every device on the Ethernet LAN.
The features of an Ethernet broadcast are as follows:
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Multicast MAC Address
An Ethernet multicast frame is received and processed by a group of devices that belong to the same multicast group.
24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The MAC Address Table
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Switch Fundamentals
26
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Switch Learning and Forwarding
Examine the Source MAC Address (Learn)
27
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Switch Learning and Forwarding
Find the Destination MAC Address (Forward)
28
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Frame Forwarding Methods on Cisco Switches
Switches use one of the following forwarding methods for switching data between network ports:
29
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Cut-Through Switching Variants
30
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Memory Buffering Techniques on Switches
An Ethernet switch may use a buffering technique to store frames before forwarding them or when the destination port is busy because of congestion.
Method | Description |
Port-based memory |
|
Shared memory |
|
31
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
32
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential