01_NF_Ch07 - Data Link Layer ( 資料鏈結層 ) Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo)

Slides:



Advertisements
Similar presentations
Data Link Layer B. Konkoth. PDU  Protocol Data Unit  A unit of data which is specified in a protocol of a given layer  Layer 5, 6, 7 – Data  Layer.
Advertisements

1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
1 Data Link Protocols Relates to Lab 2. This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet,
Network Fundamentals – Chapter 7 Sandra Coleman, CCNA, CCAI
Layer 1 of the TCP/IP protocol stack: Network Access Layer (NAL). Functions, performed on the layer. МАС address in Ethernet networks. Layer 1 of the TCP/IP.
Chapter 7 Data Link Layer
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Data Link Layer Network Fundamentals – Chapter 7 Modified by Tony Chen 01/30/2009.
Network Fundamentals – Chapter 7
Lecture 2 Protocol Layers CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Chapter 7- Data Link Layer
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
CCNA 1 v3.1 Module 6 Review. 2 What 3 things happen on an Ethernet network after a collision occurs? A backoff algorithm is invoked and transmission is.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
TDC /502, Summer II Unit 2: Underlying Technologies Transmission media (Section 3.1. Read on your own) Local Area Networks (LANs) –Ethernet.
Chapter 5 Link Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 20.
OSI Data Link Layer Network Fundamentals Chapter 7.
The Saigon CTT Semester 1 CHAPTER 6. The Saigon CTT  Content LAN Standards. Hexadecimal Numbers. MAC Addressing. Framing. Media Access Control (MAC).
COMPUTER NETWORKS.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
SIMS-201 LAN Basics, MANs, WANs.
Introducing Network Standards Open Systems Interconnection (OSI) Model IEEE 802.x Standard Device Drivers and OSI 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Data Link Layer Network Fundamentals – Chapter 7.
Introduction 1 Lecture 23 Link Layer (Error Detection/Correction) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Fundamentals CE
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
Component 9 – Networking and Health Information Exchange Unit 1-2 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
Copyright CCNA 1 Chapter 5 Ethernet Fundamentals By Your Name.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Data Link Layer Dr. Muazzam A. Khan.
Ethernet Fundamentals. The success of Ethernet is due to the following factors: Simplicity and ease of maintenance Ability to incorporate new technologies.
Access to Shared Media - Media Access Control protocols RD-CSY10171.
Jaringan Komputer Dasar Data Link Layer (2) Aurelio Rahmadian.
1 Semester 1 CHAPTER 6 REVIEW JEOPARDY Frames Data Link LayerMACAddressingHexadecimalsMiscellaneous
 LANs – A Definition - A local area network (LAN) is a computer network covering a small physical area, like a home, office, or small group of buildings,
Cisco 3 - Switching Perrine. J Page 16/4/2016 Chapter 4 Switches The performance of shared-medium Ethernet is affected by several factors: data frame broadcast.
First, by sending smaller individual pieces from source to destination, many different conversations can be interleaved on the network. The process.
The Saigon CTT Semester 1 CHAPTER 6 Le Chi Trung.
Network Protocols and Standards (Part 2). The OSI Model In 1984, the International Organization for Standardization (ISO) defined a standard, or set of.
Computer Network Overview Ikjun Yeom. 2 What is a computer network? a collection of computing nodes and links connecting the nodes why we need it? –to.
Open System Interconnection Describe how information from a software application in one computer moves through a network medium to a software application.
CSC 116 – Computer Networks Fall 2015 Instructor: Robert Spengler.
Ethernet Overview it the IEEE standard for Ethernet.
Data Link Layer and Ethernet COM211 Communications and Networks CDA College Theodoros Christophides
Chapter 7 OSI Data Link Layer.
Networking and Health Information Exchange Unit 1b ISO Open Systems Interconnection (OSI) Component 9/Unit 1b1 Health IT Workforce Curriculum Version 1.0/Fall.
2016/3/11 1 Data Link Layer. 2016/3/11 2 Two basic services of Data Link Allows the upper layers to access the media using techniques such as framing.
The OSI Model An overview of the media layer (Physical, Data Link, Network) By Luke Shiffner.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Data Link Protocols Relates to Lab 2.
Welcome Back Cisco Semester 1 & 2 Review. Why are Networks Complex Environments?? They involve: They involve: –Interconnections to networks outside an.
ETHERNET Yash Vaidya. Introduction Ethernet is a family of computer networking technologies for local area networks (LANs). Ethernet was commercially.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI data link layer CCNA Exploration Semester 1 Chapter 7.
Cisco I Introduction to Networks Semester 1 Chapter 4 JEOPADY.
After 7.1 Last modified
Jaringan Komputer_D3 TT
Click to edit Master subtitle style
Data Link Layer Dr. Muazzam A. Khan.
Ct1403 Lecture#2: DATA LINK LAYER
Layer 1 of the TCP/IP protocol stack: Network Access Layer (NAL)
Ethernet and Token Ring LAN Networks
Chapter 3: Open Systems Interconnection (OSI) Model
Data Link Issues Relates to Lab 2.
Network Fundamentals – Chapter 7
CCNA 1 Chapter 5 Ethernet Fundamentals
Data Link Layer 2019/2/19.
7- chapter Seven Local Area Networks (LAN)
Ethernet and Token Ring LAN Networks
LEARNING COMPUTER NETWORKS OSI Model (layers). Why a layered model?  Easier to teach communication process.  Speeds development, changes in one layer.
Presentation transcript:

01_NF_Ch07 - Data Link Layer ( 資料鏈結層 ) Modified from KC Khor, Multimedia Univ. Cyberjaya (KT Lo)

2 Data Link Layer Data Link Layer – Accessing the Media Media Access Control Techniques Media Access Control Addressing and Framing ( 訊框化 ) Data Putting it All Together

3 Data Link Layer – Accessing the Media Data Link Layer Terms Accessing the Media Data Link Layer – Controlling Transfer Across Local Media Data Link Layer – Creating a Frame Data Link Layer – Connecting Upper Layer Services to the Media Data Link Layer - Standards

4 Data Link Layer 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 4

5 Terms Frame ( 訊框 )- The Data Link layer PDU Node ( 節點 ) - The Layer 2 notation for network devices connected to a common medium Media/medium (physical)* - The physical means for the transfer of information between two nodes Network (physical)** - Two or more nodes connected to a common medium 5

6 Accessing the Media 6

7 Data Link Layer – Controlling Transfer Across Local Media The technique used for getting the frame on and off media is called the media access control method ( 媒 體存取控制方法 ). For the data to be transferred across a number of different media, different media access control methods may be required during the course of a single communication. The media access control methods described by the Data Link layer protocols define the processes by which network devices can access the network media and transmit frames in diverse network environments.

8 Data Link layer protocols require control information to enable the protocols to function. Control information may tell: -Which nodes are in communication with each other -When communication between individual nodes begins and when it ends -Which errors occurred while the nodes communicated -Which nodes will communicate next 8

9 Data Link Layer – Creating a Frame The Data Link layer frame includes: Data - The packet from the Network layer Header - Contains control information, such addressing, and is located at the beginning of the PDU Trailer - Contains control information added to the end of the PDU

10 Data Link Layer – Creating a Frame Typical field types include: - Start and stop indicator fields - The beginning and end limits of the frame - Naming or addressing fields - Type field - The type of PDU contained in the frame - Quality - control fields - A data field -The frame payload ( 負載 ) (Network layer packet) Fields at the end of the frame form the trailer. These fields are used for error detection and mark the end of the frame.

11 The Data Link layer exists as a connecting layer between the software processes of the layers above it and the Physical layer below it. The Data Link layer is embodied as a physical entity ( 實體 ), such as an Ethernet network interface card (NIC), which inserts into the system bus of a computer and makes the connection between running software processes on the computer and physical media. 11

12 Data Link Layer – Connecting Upper Layer Services to the Media Data Link layer is divided into two sublayers: an upper sublayer and an lower sublayer. - The upper sublayer defines the software processes that provide services to the Network layer protocols. (LLC 邏輯鏈路控制 ) - The lower sublayer defines the media access processes performed by the hardware. (MAC 媒體存取控制 )

13 Data Link Layer – Connecting Upper Layer Services to the Media The two common LAN sublayers are: Logical Link Control - Logical Link Control (LLC) places information in the frame that identifies which Network layer protocol is being used for the frame. This information allows multiple Layer 3 protocols, such as IP and IPX, to utilize the same network interface and media. Media Access Control - Media Access Control (MAC) provides Data Link layer addressing and delimiting of data according to the physical signaling requirements of the medium and the type of Data Link layer protocol in use.

14 Data Link Layer - Standards

15 Media Access Control Techniques Placing Data on the Media Logical Topology ( 拓樸 ) vs Physical Topology Point to Point Topology Logically Point to Point Networks Multiple –Access Topology Token Ring

16 Placing Data on Frames The method of media access control used depends on: Media sharing - If and how the nodes share the media Topology - How the connection between the nodes appears to the Data Link layer There are 2 basic media access control methods for shared media: Controlled ( 受控 )- Each node has its own time to use the medium (scheduled access or deterministic) Contention-based ( 爭用 )- All nodes compete for the use of the medium (non-deterministic). Carrier Sense Multiple Access (CSMA 載波感應多重存取 ) is used to prevent collision. 16

17 Media access control protocols for non- shared media require little or no control before placing frames onto the media. Ex: point-to-point topologies. Data Link layer protocols have little to do since it involves only 2 nodes. In point-to-point connections, the Data Link layer has to consider whether the communication is half-duplex ( 半雙工 ) or full-duplex ( 全雙工 ). 17

18 Logical Topology vs Physical Topology The physical topology is an arrangement of the nodes and the physical connections between them. A logical topology is the way a network transfer frames from one node to the next. Logical and physical topologies typically used in networks are: - Point-to-Point - Multi-Access - Rings 18

19 Point to Point Topology A point-to-point topology connects two nodes directly together, In data networks with point-to-point topologies, the media access control protocol can be very simple. All frames on the media can only travel to or from the two nodes. 19

20 Logically Point to Point Networks 20 The end nodes communicating in a point-to-point network can be physically connected via a number of intermediate devices. However the use of physical devices in the network does not affect the logical topology. The logical connection between nodes forms what is called a virtual circuit. The media access method used by the Data Link protocol is determined by the logical point-to-point topology, not the physical topology.

21 Multiple –Access Topology A logical multi-access topology enables a number of nodes to communicate by using the same shared media. Data from only one node can be placed on the medium at any one time. The media access control methods used by logical multi-access topologies are typically CSMA/CD ( 載 波感應多重存取 / 碰撞偵測 ) or CSMA/CA ( 載波感應多 重存取 / 碰撞避免 ). However, token passing methods can also be used. 21

22 Token Ring 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. This allows a ring to use a controlled media access control technique called token passing ( 權杖傳遞 ). The Data Link layer "sees" a logical ring topology. The actual physical cabling topology could be another topology. 22

23 Media Access Control Addressing and Framing Data The Frame  Frame Trailer Protocols  Ethernet Protocol for LAN  PPP  Wireless Protocols for LAN

24 The Frame There are many different Data Link layer protocols that describe Data Link layer frames, each frame type has 3 basic parts: Header, Data & Trailer The structure of the frame and the fields contained in the header and trailer vary according to the protocol. There is no one frame structure that meets the needs of all data transportation across all types of media 24

25 The frame header contains the control information which is is unique to each type of DL protocol. Typical frame header fields include: Start Frame field - Indicates the beginning of the frame Source and Destination address fields - Indicates the source and destination nodes on the media Priority/Quality of Service field - Indicates a particular type of communication service for processing 25

26 Type field - Indicates the upper layer service contained in the frame Logical connection control field - Used to establish a logical connection between nodes Physical link control field - Used to establish the media link Flow control field - Used to start and stop traffic over the media Congestion control field - Indicates congestion in the media 26

27 The data Link layer provides addressing that is used in transporting the frame across the shared local media. Device addresses at this layer are referred to as physical addresses. The frame is only used to transport data between nodes across the local media, the Data Link layer address is only used for local delivery. Addresses at this layer have no meaning beyond the local network. If the packet in the frame must pass onto another network segment, the intermediate device - a router - will decapsulate the original frame, create a new frame for the packet, and send it onto the new segment. 27

28 The need for Data Link layer addressing at this layer depends on the logical topology. Point-to-point topologies, with just two interconnected nodes, do not require addressing. Ring and multi-access topologies can connect many nodes on a common medium, addressing is required for these typologies 28

29 Frame Trailer ( 尾部 ) The trailer is used to determine if the frame arrived without error. This process is called error detection. The Frame Check Sequence (FCS 訊框檢查 序列 ) field is used to determine if errors occurred in the transmission and reception of the frame. 29

30 Protocols Protocols that will be covered in CCNA courses include: - Ethernet - Point-to-Point Protocol (PPP) - High-Level Data Link Control (HDLC) - Frame Relay - Asynchronous Transfer Mode (ATM) 30

31 Ethernet Protocol for LAN Ethernet is a family of networking technologies that are defined in the IEEE and standards. Ethernet Ethernet standards define both the Layer 2 protocols and the Layer 1 technologies. Ethernet is the most widely used LAN technology and supports data bandwidths of 10, 100, 1000 Mbps. 31

32

33 PPP Point-to-Point Protocol (PPP) is a protocol used to deliver frames between two nodes. PPP was developed as a WAN protocol and remains the protocol of choice to implement many serial WANs. PPP can be used on various physical media, including twisted pair, fiber optic lines, and satellite transmission, as well as for virtual connections. PPP also allows the two nodes to negotiate options within the PPP session. This includes authentication, compression, and multilink (the use of multiple physical connections) 33

34

35 Wireless Protocols for LAN It uses the same LLC and 48-bit addressing scheme as other LANs, However there are many differences at the MAC sublayer and Physical layer. Wi-Fi (IEEE standard), is a contention-based system using a Carrier Sense Multiple Access/Collision Avoidance (CSMA/CA) media access process. It used Data Link acknowledgements to confirm that a frame is received successfully Other services supported by are authentication, association (connectivity to a wireless device), and privacy (encryption) 35

36 An contains these fields: Protocol Version field - Version of frame in use Type and Subtype fields - Identifies one of three functions and sub functions of the frame: control, data, and management To DS field - Set to 1 in data frames destined for the distribution system (devices in the wireless structure) From DS field - Set to 1 in data frames exiting the distribution system More Fragments field - Set to 1 for frames that have another fragment KC KHOR, Multimedia Univ. Cyberjaya 36

37 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 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) KC KHOR, Multimedia Univ. Cyberjaya 37

38 Follow Data Through an Internetwork Curriculum 7.4