Module 6: Data Link Layer
Introduction to Networks v7.0 (ITN)
Rizoan Toufiq,
Assistant Professor,
Department of Computer Science & Engineering
Rajshahi University of Engineering & Technology.
1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Module Objectives
Module Title:
Data Link Layer
Module Objective:
Explain how media access control in the data link layer supports communication across networks.
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Module Objectives
Section | Topic Title | Topic Objective |
6.1 | Purpose of the Data Link Layer | Describe the purpose and function of the data link layer in preparing communication for transmission on specific media. |
6.2 | Topologies | Compare the characteristics of media access control methods on WAN and LAN topologies. |
6.3 | Data Link Frame | Describe the characteristics and functions of the data link frame. |
3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
6.1 �Purpose of the Data Link Layer
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Purpose of the Data Link Layer�The Data Link Layer
5
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Purpose of the Data Link Layer�IEEE 802 LAN/MAN Data Link Sublayers
IEEE 802 LAN/MAN standards are specific to the type of network (Ethernet, WLAN, WPAN, etc).
The Data Link Layer consists of two sublayers:
6
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Purpose of the Data Link Layer�IEEE 802 LAN/MAN Data Link Sublayers
7
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Purpose of the Data Link Layer�Providing Access to Media
Packets exchanged between nodes may experience numerous data link layers and media transitions.
At each hop along the path, a router performs four basic Layer 2 functions:
8
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Purpose of the Data Link Layer�Data Link Layer Standards
Data link layer protocols are defined by engineering organizations:
9
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: (b)
10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: LLC, MAC
11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Provide the method to get the frame on and off the media
12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer:
Accepts a frame from medium
De-encapsulates the frame
Re-encapsulates the packet into a new frame
13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer:
Media Sharing, Topology
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: IEEE
15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
6.2 �Topologies
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�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:
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�Physical and Logical Topologies
Physical topology
18
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�Physical and Logical Topologies
Logical topology
19
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�WAN Topologies
There are three common physical WAN topologies:
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�WAN Topologies
There are three common physical WAN topologies:
21
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�WAN Topologies
There are three common physical WAN topologies:
22
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�WAN Topologies
There are three common physical WAN topologies:
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�Point-to-Point WAN Topology
24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�LAN Topologies
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Topologies�LAN Topologies
Early Ethernet and Legacy Token Ring technologies provide two additional topologies:
26
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Half-duplex communication
Topologies�Half and Full Duplex Communication
27
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Full-duplex communication
Topologies�Half and Full Duplex Communication
28
© 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
Topologies�Access Control Methods
29
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Contention-based access
Topologies�Access Control Methods
30
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Controlled access
Topologies�Access Control Methods
31
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
CSMA/CD
CSMA/CD collision detection process:
Topologies�Contention-Based Access – CSMA/CD
32
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
CSMA/CA
CSMA/CA collision avoidance process:
Topologies�Contention-Based Access – CSMA/CA
33
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Logical topology
34
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: WAN
35
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Extended star
36
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Half-duplex
37
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: CSMA/CD
38
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
6.3 �Data Link Frame
39
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
39
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame�The Frame
40
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame�Frame Fields
Field | Description |
Frame Start and Stop | Identifies beginning and end of frame |
Addressing | Indicates source and destination nodes |
Type | Identifies encapsulated Layer 3 protocol |
Control | Identifies flow control services |
Data | Contains the frame payload |
Error Detection | Used for determine transmission errors |
41
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame�Layer 2 Addresses
42
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame�Layer 2 Addresses
43
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Data Link Frame�LAN and WAN Frames
The logical topology and physical media determine the data link protocol used:
Each protocol performs media access control for specified logical topologies.
44
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Header, trailer
45
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: To determine whether the frame experienced transmission errors
46
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: Des NIC add, Sou NIC Add, Sou IP Add, Des IP Add
47
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Understanding
Answer: 802.11, Ethernet, PPP
48
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
49
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential