思科网络技术学院理事会. 1 OSI Data Link Layer Network Fundamentals – Chapter 7.

63
思思思思思思思思思思思 . http://www.catc.edu.cn 1 OSI Data Link Layer Network Fundamentals – Chapter 7

Transcript of 思科网络技术学院理事会. 1 OSI Data Link Layer Network Fundamentals – Chapter 7.

Page 1: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

思科网络技术学院理事会 . http://www.catc.edu.cn 1

OSI Data Link Layer

Network Fundamentals – Chapter 7

Page 2: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

2思科网络技术学院理事会 . http://www.catc.edu.cn

Objectives Explain the role of Data Link layer protocols in data transmission.

Describe how the Data Link layer prepares data for transmission on network media.

Describe the different types of media access control methods.

Identify several common logical network topologies and describe how the logical topology determines the media access control method for that network.

Explain the purpose of encapsulating packets into frames to facilitate media access.

Describe the Layer 2 frame structure and identify generic fields.

Explain the role of key frame header and trailer fields including addressing, QoS, type of protocol and Frame Check Sequence.

Page 3: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

3思科网络技术学院理事会 . http://www.catc.edu.cn

Context Index

7.1 Data Link Layer – Accessing the Media

7.2 Media Access Control Techniques

7.3 Media Access Control Addressing and Framing Data

7.4 Putting it All Together

7.5 Labs and Activities

Page 4: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

思科网络技术学院理事会 . http://www.catc.edu.cn 4

7.1 Data Link Layer – Accessing the Media

Page 5: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

5思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.1 Data Link Layer – Supporting & Connecting to Upper Layer Services

The Data Link layer performs two basic services:

- Allows the upper layers to access the media using techniques such as framing

- Controls how data is placed onto the media and is received from the media using techniques such as media access control and error detection

Page 6: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

6思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.1 Data Link Layer – Supporting & Connecting to Upper Layer Services

Data Link Layer Terms

Page 7: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

7思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.1 Data Link Layer – Supporting & Connecting to Upper Layer Services

Numerous Data Link layer protocols are being used over various types of LANs and WANs.

Page 8: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

8思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.2 Data Link Layer – Controlling Transfer across Local Media

Layer 2 protocols specify the encapsulation of a packet into a frame .

Page 9: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

9思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.3 Data Link Layer – Creating a Frame Data Link layer frame includes:

Page 10: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

10思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.3 Data Link Layer – Creating a Frame The role the Data Link layer plays in linking the

software and hardware layers

Page 11: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

11思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.4 Data Link Layer – Connecting Upper Layer Services to the Media

Data Link layer is often divided into two sub-layers: - Logical Link Control - Media Access Control

Page 12: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

12思科网络技术学院理事会 . http://www.catc.edu.cn

7.1.5 Data Link Layer – Standards Standards for the Data Link layer

Page 13: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

思科网络技术学院理事会 . http://www.catc.edu.cn 13

7.2 Media Access Control Techniques

Page 14: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

14思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.1 Placing Data on the Media Explain the necessity for controlling access to the

media

Page 15: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

15思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.2 Media Access Control for Shared Media There are two basic media access control methods for

shared media: - Controlled - Each node has its own time to use the medium - Contention-based - All nodes compete for the use of the medium

Page 16: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

16思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.2 Media Access Control for Shared Media There are two basic media access control methods for

shared media: - Controlled - Each node has its own time to use the medium - Contention-based - All nodes compete for the use of the medium

Page 17: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

17思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.2 Media Access Control for Shared Media There are two basic media access control methods for

shared media: - Controlled - Each node has its own time to use the medium - Contention-based - All nodes compete for the use of the medium

Page 18: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

18思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.3 Media Access Control for Non-Shared Media Define Full Duplex and Half Duplex as it relates to

Media Access Control for non-shared media

Page 19: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

19思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.3 Media Access Control for Non-Shared Media Define Full Duplex and Half Duplex as it relates to

Media Access Control for non-shared media

Page 20: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

20思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.3 Media Access Control for Non-Shared Media Define Full Duplex and Half Duplex as it relates to

Media Access Control for non-shared media

Page 21: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

21思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.4 Logical Topology vs Physical Topology The representation of how the media is used to

interconnect the devices is the physical topology.

A logical topology is the way a network transfers frames from one node to the next.

Topologies used in networks are:

- Point-to-Point

- Multi-Access

- Ring

Page 22: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

22思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.5 Point-to-Point Topology A point-to-point topology connects two nodes directly

together.

Page 23: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

23思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.5 Point-to-Point Topology A virtual circuit is a logical connection created within a

network between two network devices.

Page 24: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

24思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.5 Point-to-Point Topology A virtual circuit is a logical connection created within a

network between two network devices.

Page 25: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

25思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.6 Multi-Access Topology Data from only one node can be placed on the medium

at any one time.

Every node sees all the frames that are on the medium, but only the node to which the frame is addressed processes the contents of the frame.

A Data Link media access control method is required to regulate the transmission of data.

The media access control methods are typically CSMA/CD or CSMA/CA.

Page 26: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

26思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.6 Multi-Access Topology How nodes access the media in a multi-access

topology

Page 27: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

27思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.7 Ring Topology In a logical ring topology, each node in turn receives a

frame. If the frame is not addressed to the node, the node passes the frame to the next node.

If there is no data being transmitted, a signal (known as a token) may be placed on the media and a node can only place a data frame on the media when it has the token.

Page 28: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

28思科网络技术学院理事会 . http://www.catc.edu.cn

7.2.7 Ring Topology How nodes access the media in a logical ring topology

Page 29: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

思科网络技术学院理事会 . http://www.catc.edu.cn 29

7.3 Media Access Control Addressing and Framing Data

Page 30: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

30思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.1 Data Link Layer Protocols – The Frame The structure of the frame and the fields contained in

the header and trailer vary according to the protocol.

Page 31: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

31思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.2 Framing – Role of the Header The role of the frame header in the Data Link layer

Page 32: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

32思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.3 Addressing – Where the Frame Goes

Data Link layer addressing is contained within the frame header and specifies the frame destination node on the local network.

If the device is moved to another network or subnet, physical addresses will still function with the same Layer 2 physical address.

The intermediate device - a router - will decapsulate the original frame, create a new frame for the packet.

Page 33: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

33思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.3 Addressing – Where the Frame Goes Addressing Requirements

Page 34: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

34思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.4 Framing – Role of the Trailer The role of the frame trailer in the Data Link layer

Page 35: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

35思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.5 Data Link Layer Protocol – The Frame

Given the wide range of physical media used in networking, there are a correspondingly high number of Layer 2 protocols in use.

802.11 Wireless Frame

802.11 Wireless Frame

PPP frame

HDLC

Frame Relay

Ethernet Frame

Page 36: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

36思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.5 Data Link Layer Protocol – The Frame

Ethernet Protocol for LANs

Page 37: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

37思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.5 Data Link Layer Protocol – The Frame

Point-to-point Protocol for WANs

Page 38: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

38思科网络技术学院理事会 . http://www.catc.edu.cn

7.3.5 Data Link Layer Protocol – The Frame

Wireless Protocol for LANs

To DS field - Set to 1 in data frames

destined for the distribution system (devices in the wireless structure)

Type and Subtype fields – Identifies one of three functions and sub functions of the frame: control, data, and management

Protocol Version field - Version of 802.11 frame in useFrom DS field - Set to 1 in data

frames exiting the distribution system

More Fragments field - Set to 1 for

frames that have another fragment

Retry field - Set to 1 if the frame is a

retransmission of an earlier frame

Power Management field - Set to

1 to indicate that a node will be in

power-save mode

More Data field - Set to 1 to indicate

to a node in power-save mode that

more frames are buffered for that node

Duration/ID field - Depending on the type of frame, represents either the time, in microseconds, required to transmit the frame or an association identity (AID) for the station that transmitted the frame

Wired Equivalent Privacy (WEP)

field - Set to 1 if the frame contains WEP encrypted information for security

Order field - Set to 1 in a data type frame that uses Strictly Ordered service class (does not need reordering)

Destination Address (DA) field - MAC address of the final destination node in the network

Source Address (SA) field - MAC address of the node the initiated the frame

Receiver Address (RA) field - MAC address that identifies the wireless device that is the immediate recipient of the frame

Fragment Number field - Indicates the number for each fragment of a frame

Sequence Number field - Indicates the sequence number assigned to the frame; retransmitted frames are identified by duplicate sequence numbers

Frame Body field - Contains the information being transported; for data frames, typically an IP packet

FCS field - Contains a 32-bit cyclic redundancy check (CRC) of the frameTransmitter Address (TA) field - MAC address that identifies the wireless

device that transmitted the frame

Page 39: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

思科网络技术学院理事会 . http://www.catc.edu.cn 39

7.4 Putting it All Together

Page 40: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

40思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 41: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

41思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 42: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

42思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 43: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

43思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 44: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

44思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 45: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

45思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 46: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

46思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 47: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

47思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 48: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

48思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 49: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

49思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 50: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

50思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 51: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

51思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 52: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

52思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 53: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

53思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 54: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

54思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 55: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

55思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 56: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

56思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 57: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

57思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 58: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

58思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 59: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

59思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 60: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

60思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 61: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

61思科网络技术学院理事会 . http://www.catc.edu.cn

7.4.1 Follow Data Through an Internetwork

A simple data transfer between two hosts across an internetwork.

Page 62: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

62思科网络技术学院理事会 . http://www.catc.edu.cn

Summary

Page 63: 思科网络技术学院理事会.  1 OSI Data Link Layer Network Fundamentals – Chapter 7.

63思科网络技术学院理事会 . http://www.catc.edu.cn