Chapter 3 Data Link Layer With special focus on Ethernet.

Slides:



Advertisements
Similar presentations
University of Calgary – CPSC 441.  Ethernet, defined under IEEE 802.3, is one of today's most widely used data communications standards  It finds its.
Advertisements

Ethernet Risanuri Hidayat. Ethernet The term Ethernet refers to the family of local-area network (LAN) products covered by the IEEE standard. Three.
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
Repeaters can Mix PHY Standards Repeater NIC BNC AUI Connectors RJ-45 UTPDrop Cables 10Base5 Trunk Cable 10Base2 10Base-T.
1 Fall 2005 Hardware Addressing and Frame Identification Qutaibah Malluhi CSE Department Qatar University.
Ethernet Kenneth Castelino. Network Architecture - Protocols Physical: Actual signal transmission Data-Link: Framing / Error Detection Network: Routing.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
Chapter 2 : Direct Link Networks (Continued). So far... Modulation and Encoding Link layer protocols Error Detection -- Parity Check.
Review on Networking Technologies Linda Wu (CMPT )
Chapter 13 Wired LANs: Ethernet
CS352- Link Layer Dept. of Computer Science Rutgers University.
1 LAN Topologies, Access methods (Week 1, Wednesday 1/10/2007) © Abdou Illia, Spring 2007.
Chapter 10 Error Detection and Correction
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Network Hardware for Expanding Network. Expanding Networks When do we need expansion:  Network cable is full of data movements  Printing tasks needs.
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
Chapter Five Network Architecture. Chapter Objectives  Describe the basic and hybrid LAN technologies  Describe a variety of enterprise-wide and WAN.
Chapter 1-3 The Ethernet LAN. Ethernet The networking protocol used in most modern computer networks is Ethernet. Ethernet is a CSMA/CD LAN protocol.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Ch. 16 High-Speed LANs The Emergence of High- Speed LANs Trends –Computing power of PCs has continued to grow. –MIS organizations recognize the.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Ethernet Term Paper Introduced by: Almarshood, Yosef Bahaitham, Ahmed Alrashudi, Ahmed.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
1 Semester 1 CHAPTER 6 REVIEW JEOPARDY Frames Data Link LayerMACAddressingHexadecimalsMiscellaneous
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Cyclic Redundancy Check (CRC).  An error detection mechanism in which a special number is appended to a block of data in order to detect any changes.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Ethernet Network Fundamentals – Chapter 9.
Chapter 1 - Local Area Network Technologies. How IP Datagrams are Encapsulated IP datagrams are found at the OSI Network layer IP datagrams are sent to.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
William Stallings Data and Computer Communications
Chapter 6 – Layer 2 MAC, Frames, Hex, etc.. Layer 1 / Layer 2 Layer 1 Signals, media, bit streams Layer 2 –Communicates with upper layers using Logical.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
Chapter 13 Wired LANs: Ethernet Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Naming & Framing Ch. 6–Layer 2 Concepts. Layer 2’s Job For every limitation of Layer 1, Layer 2 has a solution. Layer 1 cannot name computers. How does.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Review. Layers Physical layer – sending bits from one place to another, ensuring an okay BER Data link layer – encapsulate information bits into frames,
Data Communications is the Real World OSI Layers 1 & 2 a.k.a TCP/IP Network Interface Layer.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Part III: Data Link Layer Error Detection and Correction
Discovery 1 Chapter 3. Dedicated and converged networks Dedicated networks for voice, video and computer data communications required a different type.
Local Area Networks: Topologies. 2 Packet Identification & MAC Addresses Each packet specifies an intended recipient with an identifier. – Demultiplexing.
1 Kyung Hee University Chapter 13 Wired LANs: Ethernet.
Introduction to Networks v6.0
Instructor Materials Chapter 5: Ethernet
Data Link Layer.
Cyclic Redundancy Check (CRC)
Part III Datalink Layer.
Local Area Networks: Topologies
Part III Datalink Layer 10.
CS 457 – Lecture 6 Ethernet Spring 2012.
Packetizing Error Detection
Packetizing Error Detection
Protocol layering and data
Part III Datalink Layer.
Packetizing Error Detection
Protocol layering and data
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Chapter 3 Data Link Layer With special focus on Ethernet

Contents Functions of the data-link layer Ethernet overview CSMA/ CD Error detection and correction Ethernet frame structure Switches 2

Functions of the Data-Link layer ATIS Telecom glossary 2007 – Transfer data between devices on the same network – Detect and possibly correct errors that may occur in the Physical Layer Ethernet is the most common end-user implementation of the data-link layer 3

Data links in typical network

Ethernet Most common data link layer technology for end users Easily understood Patented in 1977 Ethernet is a low-cost, high-speed communication technology for small networks An Ethernet network can be up to 100 meters in radius and have up to 250 devices

Early Ethernet vision 6

Early Ethernet diagram (Robert M. Metcalfe and Dave R. Boggs (1976)) 7

Metcalfe-Boggs transceiver

Ethernet operation A typical end-user network looks like this: 9

Packet in the medium 10

Ethernet data transmission When PC A wants to send data to PC B, it first adds B’s address before the data The packet is then sent into the medium 11

Broadcast in Ethernet Signal is transmitted to all stations connected to the wire – Ethernet operation is based on broadcast – Signal is transmitted to all stations connected to the wire – All computers on the network get the packet – But only B opens it Note that the receipt process is different from the mail system – Ethernet packets go to every computer on the network – But mail only goes to the intended receiver 12

Packet receipt in Ethernet 13

Role of destination address If the frame is sent to all computers, why should PC A add B’s address to the frame? – Why not let every computer look at the frame and decide if it wants to process the data in the frame? – Destination address simplifies receiver’s work 14

Ethernet data reception In broadcast, the network does not direct the packet to its correct destination – Instead, the packet is simply sent to every computer on the network 15

CSMA/ CD - collision What if multiple senders want to send data at the same time? The outcome is called a collision The solution to this problem is called Carrier Sense Multiple Access with Collision Detection (CSMA/ CD) 16

CSMA/ CD - collision 17

CSMA/ CD esentials Senders send only when they sense that the medium is silent – All clear; no other computing is sending data Continue to listen while sending data – Needed to detect a collision If a collision is detected, stop immediately – Wait for some time and try sending again 18

Alternatives to CSMA/ CD If we did not want to use CSMA/ CD, what could we do Shortest message Message priority First to send Computer ID Multiplexing Note that all these methods require co- ordination among computers Complicates technology 19

Advantages and disadvantages of CSMA/ CD Advantages – Very simple to implement, therefore inexpensive and fast Disadvantages – Not scalable due to broadcasting – Network may not be available when needed 20

Error detection As the packet moves from source to destination, it can get errors Errors are caused due to the imperfections of the physical world These errors have to be detected 21

Error correction in human communication Some human error-correction techniques – Receiver reads back on telephone credit card number, phone number etc. – Redundant data Don’t just say tomorrow – Sender contact information For clarification if necessary 22

Error correction in computer communication The general approach to error detection in human communications is not effective in computer communications because of possible error cancellations 23

Error correction in computer communication The general approach to error detection in data communications is to add some meta- data to the original data – The meta-data is generated from the data itself – The receiver can re-compute the meta-data and compare the result with the meta-data sent by the sender Accept if results match, reject otherwise 24

Error correction – simple example Say we want to send HELLO – We could code it (in decimal) as (location in the alphabet) – A simple meta-data would be to add all the digits till you get a single digit – = 52 – = 7 – Send

Error correction problems If everything goes well, the receiver will get – It knows that the 7 is the meta-data It calculates = = 7 Hence, data was received without error But this scheme is too naïve – What if we receive – Or

Cyclic redundancy check (CRC) Obviously, we need a technique that is more reliable – Most commercial data communication technologies use CRC – CRC-32 is used in Ethernet % reliable for errors greater than 32 bits long 27

CRC-32 capabilities CRC-32 can detect all errors affecting less than 33 (n + 1) bits CRC can detect all errors affecting odd number of bits CRC-32 can reasonably reliably detect errors affecting more than 33 (n + 1) bits 28

CRC sender procedure Step 1: User data is dividend, technology specifies a divisor with n + 1 bits Step 2: At sender, add n zeros to the end of the data (divisor has n+1 bits) Step 3: At sender, perform modulo-2 division of appended data with divisor Step 4: At sender, append remainder to data as CRC and send to receiver 29

CRC receiver procedure Step 5: At receiver, perform modulo-2 division of appended data with same divisor – Divisor is known because it is specified by technology Step 6: At receiver, if remainder is 0, accept data. Else reject data CRC example follows – Data: – Divisor:

Modulo-2 division rules Modulo-2 division uses Exclusive OR for subtraction operations during division 0 – 0 = 0 0 – 1 = 1 1 – 0 = 1 1 – 1 = 0 31

CRC – Sender operation ⁞⁞⁞⁞⁞ 1111⁞⁞⁞⁞ 1101⁞⁞⁞⁞ 1000⁞⁞ 1101⁞⁞ 1010⁞ 1101⁞ CRC remainderDivisor 0’s appendedUser data

CRC – Receiver operation ⁞⁞⁞⁞⁞ 1111⁞⁞⁞⁞ 1101⁞⁞⁞⁞ 1000⁞⁞ 1101⁞⁞ 1011⁞ 1101⁞ Remainder is 0Divisor CRC from senderData from sender

Ethernet frames with CRC 34

Ethernet frame structure Previous sections show destination address and CRC fields in Ethernet Other information also necessary Source for Ethernet standards: –

Ethernet frame structure 36

Ethernet fields Preamble: Allows receiver to synchronize with sender – – Bit pattern produces a periodic waveform in the medium when encoded by the physical layer using Manchester encoding Start Frame Delimiter: Indicates start of frame 37

Ethernet fields Address – 48 bits in length – All 1’s in the destination address is pre-defined to be the broadcast address on the LAN – Addresses may be universally administered Assigned by manufacturer – Or locally administered 38

Ethernet address representation 39

Ethernet address Address 40

Ethernet address representation Hexadecimal notation – Address broken up into 12 4-bit blocks – Each 4-bit block is represented as a hexadecimal digit 0-f BitsHexBitsHexBitsHexBitsHex c d a1110e b1111F 41

Ethernet address representation Example c d 1 a Note: Globally unique 42

Ethernet fields Length – If less than 1,518 (max allowed packet length) Length = number of bytes in data field – If greater than or equal to 1,518 Indicates type of packet Often used to indicate VLAN (virtual LAN) frame Data – IP packet 43

Ethernet fields Frame check sequence (FCS) – 32 bit CRC value – Generator polynomial (divisor) specified as

Ethernet - state of the market Hubs vs. switches Hubs send data out to all computers – Old technology, but useful for network diagnostics Switches only send the data to the intended destination – This speeds up the network, at extremely low cost – The map of computers connected to each port is called the forwarding table 45

Other issues Ethernet packets are called Frames because they have the synchronization bits at the beginning Ethernet is commonly available at speeds of 10/100/1000 Mbps, called 10BaseT, 100BaseT or 1GbE 46

From Ethernet to the outside world 47

Next chapter Ethernet can reliably send data between computers on one network To get bigger networks, we connect networks together The network layer figures out how to find the correct path from source to destination through these networks

Summary Why broadcast? Why CSMA/ CD? Why CRC? Why Switches over hubs? 49

Case study Hotels and resorts – Networks help operations – Networks also enable new sources of revenue

Hands-on exercise Ipconfig Physical address Converting MAC addresses to binary OUI lookup

Network design exercise Ethernet diagrams