Ion Stoica e-mail:istoica@cs.berkeley.edu September 6, 2001 EE 122: Lecture 4 Ion Stoica e-mail:istoica@cs.berkeley.edu September 6, 2001.

Slides:



Advertisements
Similar presentations
CSCI-1680 Physical Layer Link Layer I Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

Synchronous Links/Networks Modems are asynchronous - penalized by start bits and stop bits on each character (and dead time) Synchronous Networks recover.
Lecture 3, 1Spring 2003, COM1337/3501CCN: Direct Link Networks Direct Link Networks Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie,
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
CS 4700 / CS 5700 Network Fundamentals Lecture 5: Physical Layer (The layer for EE majors…) Revised 1/14/13.
Framing and Stuffing Advanced Computer Networks. Framing & Stuffing Outline  Synchronous vs Asynchronous Transmissions  Asynchronous Character Transmissions.
Spring 2002CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Fundamentals of Computer Networks ECE 478/578 Lecture #3: Encoding and Framing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Bit and Byte Stuffing1. 2 Synchronous versus Asynchronous Transmissions There exists a hierarchy of synchronization tasks: –Bit level : recognizing the.
Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection.
Transmission Characteristics 1. Introduction (Information Interchange codes) 2. Asynchronous and Synchronous Transmissions 3. Error detection (bit errors)
Spring 2003CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CS 164: Slide Set 3: Chapter 2 Direct Link Networks.
Networks: Bit and Byte Stuffing
Framing and Encoding EECS 122: Lecture 26 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
Katz, Stoica F04 EE122: Encoding & Framing November 17, 2003.
Computer Networks: Bit and Byte Stuffing 1 Bit and Byte Stuffing.
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
EE 122: Encoding And Framing Ion Stoica September 9, 2002.
ECE 4450:427/527 - Computer Networks Spring 2015
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
27-Oct-15Computer Networks1 Outline Chapter 2: Direct Link Networks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
Layer Two Data Link Layer Collects bits from layer 1 and organizes into frames Passes bits that make up frames to layer 1 for transmission Concerned with.
Fall 2000Datacom 11 Outline Hardware Building Blocks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CS 4700 / CS 5700 Network Fundamentals
1 CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
Link Layer Dr. Mozafar Bag-Mohammadi Ilam University.
CSCI-1680 Physical Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Computer Networks Lecture 2: Data Link Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn 2015 by S.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
Physical Layer Issues and Methods Outline Physical Layer Overview Non-Return to Zero Manchester 4B/5B.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
Computer Interfacing and Protocols
Point-to-Point Links: Framing
Framing and Stuffing Advanced Computer Networks. Framing & Stuffing Outline  Synchronous vs Asynchronous Transmissions  Asynchronous Character Transmissions.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 6: Datalink layer problems Slides used.
Physical Layer Issues and Methods Outline Physical Layer Ethernet Technology Physical Layer Encoding Final Exam Review - ??
1 Chapter 2: Direct Link Networks (Part One) Dr. Rocky K. C. Chang 30 January 2004.
1 Point-to-Point Links: Encoding Encoding: Section 2.2 (Section 2.1 read on your own)
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
CS4470 Computer Networking Protocols
Getting Connected (Chapter 2 Part 1)
The University of Adelaide, School of Computer Science
Data Link Networks Hardware Building Blocks Nodes & Links CS380
CS 3700 Networks and Distributed Systems
פרק 2: השכבה הפיזית הרצאה זו מבוססת בעיקר על שתי המצגות הבאות :
CSCI-1680 Physical Layer Link Layer I
Chapter 3 The Data Link Layer
Administrative stuff TA: Almudena Konrad Paper reviews:
Lecture 1 Line Encoding 2nd semester
CS 3700 Networks and Distributed Systems
2. Getting connected (part 1)
CS412 Introduction to Computer Networking & Telecommunication
Point-to-Point Links Outline Encoding Framing Error Detection
NET301 Lecture 5 10/18/2015 Lect5 NET301.
NET301 Lecture 5 10/18/2015 Lect5 NET301.
CS 4700 / CS 5700 Network Fundamentals
Fundamentals of Computer Networks
Data Transmission And Digital Communication
Hardware Building Blocks
Dr. Mozafar Bag-Mohammadi Ilam University
Home work project #1 Develop and fully debug your program on the Cushing 208 lab. Machines - planet lab machines may not have good development environment.
Networks: Bit and Byte Stuffing
EECS 122: EE122: Error Detection and Reliable Transmission
Presentation transcript:

Ion Stoica e-mail:istoica@cs.berkeley.edu September 6, 2001 EE 122: Lecture 4 Ion Stoica e-mail:istoica@cs.berkeley.edu September 6, 2001

Overview Encoding Framing istoica@cs.berkeley.edu

Encoding Goal: send bits from one node to other node on the same physical media This service is provided by the physical layer Problem: specify an robust and efficient encoding scheme to achieve this goal Assumption: we use two discrete signals, high and low, to encode 0 and 1 Signal Adaptor Adaptor Adaptor: convert bits into physical signal and physical signal back into bits istoica@cs.berkeley.edu

Non-Return to Zero (NRZ) 1  high signal; 0  low signal Disadvantages: when there is a long sequence of 1’s or 0’s Sensitive to clock skew, i.e., difficult to do clock recovery Difficult to interpret 0’s and 1’s (baseline wander) 1 1 1 1 NRZ (non-return to zero) Clock istoica@cs.berkeley.edu

Non-Return to Zero Inverted (NRZI) 1  make transition; 0  stay at the same level Solve previous problems for long sequences of 1’s, but not for 0’s 1 1 1 1 NRZI (non-return to zero intverted) Clock istoica@cs.berkeley.edu

Manchester 1  high-to-low transition; 0  low-to-high transition Addresses clock recovery and baseline wander problems Disadvantage: needs a clock that is twice as fast as the transmission rate 1 1 1 1 Manchester Clock istoica@cs.berkeley.edu

4-bit/5-bit Goal: address inefficiency of Manchester encoding, while avoiding long periods of low or high signals Solution: Use 5 bits to encode every sequence of four bits such that no 5 bit code has more than one leading 0 and two trailing 0’s Use NRZI to encode the 5 bit codes 4-bit 5-bit 4-bit 5-bit 0000 11110 0001 01001 0010 10100 0011 10101 0100 01010 0101 01011 0110 01110 1111 01111 1000 10010 1001 10011 1010 10110 1011 10111 1100 11010 1101 11011 1110 11100 1111 11101 istoica@cs.berkeley.edu

Overview Encoding Framing istoica@cs.berkeley.edu

Framing Goal: send a block of bits (frames) between nodes connected on the same physical media This service is provided by the data link layer Use a special byte (bit sequence) to mark the beginning (and the end) of the frame Problem: what happens if this sequence appears in the data payload? istoica@cs.berkeley.edu

Byte-Oriented Protocols: Sentinel Approach 8 8 STX Text (Data) ETX STX – start of text ETX – end of text Problem: what if ETX appears in the data portion of the frame? Solution If ETX appears in the data, introduce a special character DLE (Data Link Escape) before it If DLE appears in the text, introduce another DLE character before it Protocol examples BISYNC, PPP, DDCMP istoica@cs.berkeley.edu

Byte-Oriented Protocols: Byte Counting Approach Sender: insert the length of the data (in bytes) at the beginning of the frame, i.e., in the frame header Receiver: extract this length and decrement it every time a byte is read. When this counter becomes zero, we are done istoica@cs.berkeley.edu

Bit-Oriented Protocols 8 8 Start sequence End sequence Text (Data) Both start and end sequence can be the same E.g., 01111110 in HDLC (High-level Data Link Protocol) Sender: inserts a 0 after five consecutive 1s Receiver: when it sees five 1s makes decision on next two bits if next bit 0 (this is a stuffed bit), remove it if next bit 1, look at the next bit If 0 this is end-of-frame (receiver has seen 01111110) If 1 this is an error, discard the frame (receiver has seen 01111111) istoica@cs.berkeley.edu

Clock-Based Framing (SONET) SONET (Synchronous Optical NETwork) Example: SONET ST-1: 51.84 Mbps istoica@cs.berkeley.edu

Clock-Based Framing (SONET) First two bytes of each frame contain a special bit pattern that allows to determine where the frame starts No bit-stuffing is used Receiver looks for the special bit pattern every 810 bytes Size of frame = 9x90 = 810 bytes Data (payload) overhead 9 rows SONET STS-1 Frame 90 columns istoica@cs.berkeley.edu

Clock-Based Framing (SONET) Details: Overhead bytes are encoded using NRZ To avoid long sequences of 0’s or 1’s the payload is XOR-ed with a special 127-bit patter with many transitions from 1 to 0 istoica@cs.berkeley.edu

Summary Encoding – specify how bits are transmitted on the physical media Challenge – achieve: Efficiency – ideally, bit rate = clock rate Robust – avoid de-synchronization between sender and receiver when there is a large sequence of 1’s or 0’s Framing – specify how blocks of data are transmitted Challenge Decide when a frame starts/ends Differentiate between the true frame delimiters and delimiters appearing in the payload data istoica@cs.berkeley.edu