Point-to-Point Links: Framing

Slides:



Advertisements
Similar presentations
Synchronous Digital Hierarchy Eleventh Meeting. History of Multiplexing Synchronous digital hierarchy (SDH) is a world- wide standard for digital communication.
Advertisements

Connection-Oriented Networks – Wissam FAWAZ1 Chapter 2: SONET/SDH and GFP TOPICS –T1/E1 –SONET/SDH - STS 1, STS -3 frames –SONET devices –Self-healing.
Lecture 3, 1Spring 2003, COM1337/3501CCN: Direct Link Networks Direct Link Networks Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie,
Sonet. Definition Short for Synchronous Optical Network, a standard for connecting fiber-optic transmission systems. SONET defines interface standards.
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.
COE 341: Data & Computer Communications (T062) Dr. Marwan Abu-Amara
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.
SONET Synchronous Optical Network. ECSA – Exchange Carrier Standards Association ANSI – American National Standards Institute SONET was formulated by.
1 Hardware Building Blocks Five Issues –Encoding –Framing –Error Detection –Reliable delivery –Access Mediation Direct Link Networks.
Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
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.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 8: Multiplexing.
Networks: Bit and Byte Stuffing
Framing and Encoding EECS 122: Lecture 26 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
COE 341: Data & Computer Communications (T061) Dr. Marwan Abu-Amara Chapter 8: Multiplexing.
Synchronous Optical Networks SONET
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
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.
Advanced Computer Networks Chapter 2: Direct Link Networks.
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.
Data Link Layer : Services, Framing, Error Detection and Correction2.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
Computer Networks Module 3: Data Link Layer (Framing) Dr. Vikram Shete St. Francis Institute of Technology.
Fall 2000Datacom 11 Outline Hardware Building Blocks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Chapter 11 Data Link Control
17.1 Chapter 17 SONET/SDH Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
SONET is used as a WAN. ANSI standard – SONET ITU-T standard – SDH Both are fundamentally similar and compatible.
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.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Spring 2001CS 5851 Outline Building Blocks Shannon’s Theorem Encoding 11. Physical Layer.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
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
Error Correction and Flow Control Martin Weiss. Slide 2 Objectives of this Meeting u Describe different flow control techniques u Describe the major error.
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.
1 Chapter 2: Direct Link Networks (Part One) Dr. Rocky K. C. Chang 30 January 2004.
1 Hardware Building Blocks Five Issues –Encoding –Framing –Error Detection –Reliable delivery –Access Media Direct Link Networks.
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.
SONET. Introduction SONET SONET - S ynchronous O ptical NET work (North America) It is used as a transport network to carry loads from WANs. SONET was.
Data Communications Data Link Layer.
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
Advanced Computer Networks
Point-to-Point Links Outline Encoding Framing Error Detection
Ion Stoica September 6, 2001 EE 122: Lecture 4 Ion Stoica September 6, 2001.
Fundamentals of Computer Networks
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.
EECS 122: EE122: Error Detection and Reliable Transmission
Introduction Communication Modes Transmission Modes
Presentation transcript:

Point-to-Point Links: Framing Section 2.3

Framing Demarcates (Separates) units of transfer Goal Challenge Enable nodes to exchange blocks of data Challenge How can we determine exactly what set of bits constitute a frame? How do we determine the beginning and end of a frame?

Why Framing? Synchronization recovery Link multiplexing Breaks up continuous streams of unframed bytes Link multiplexing Multiple hosts on shared medium Simplifies multiplexing of logical channels Efficient error detection Per-frame error checking and recovery

Framing Approaches Characteristics Sentinel Length-based Clock based Bit- or byte-oriented Fixed or variable length Data-dependent or data-independent length

Framing: Bit Oriented Protocols/ Sentinel-based Beginning and End of Frame Marked with a special bit pattern: 0111 1110 Frame length is data-dependent Problem: what if the special pattern 0111 1110 occurs within frame? Solution: escaping the special characters E.g., sender always inserts a 0 after five 1s … and receiver always removes a 0 appearing after five 1s 01111110 Frame contents

Bit Oriented Protocols/ Sentinel-based: bit stuffing After receiving 5 1s next bit 0 >> stuffed bit >> removed Example bits received 0111 1101 010; bits retained (data): 0111 1110 10 bits received 0111 1100 010; bits retained (data): 0111 1100 10 1 >> bits received 0111 1110 or 0111 1111 0 END of Frame marker 1 Error , frame is discarded; receiver waits for next 0111 1110 to start receiving next frame

Example Bit Oriented Protocol ISO High-Level Data Link Control, HDLC protocol Cyclic Redundancy Check (CRC) field: used to detect transmission errors (Section 2.4)

Framing: Byte Oriented Protocols/ Sentinel-based e.g. Point-to-Point, PPP protocol is similar in concepts as “Bit Oriented/ Sentinel-based” ( p. 84)

Framing: Byte Oriented Protocols/ Counter-based include payload length in header COUNT: specifies how many bytes are contained in the frame’s body e.g. Digital Data Communication Message Protocol, DDCMP Problem: what if the count field gets corrupted? Causes receiver to think the frame ends at a different place Solution: catch when CRC fails Receiver accumulates bytes numbered by bad COUNT field Recognizes that frame is bad using the error detection field And wait for the next sentinel (SYN) for the start of a new frame The beginning of a frame is denoted by sending a special SYN (synchronization) character.

Clock-Based Framing Continuous stream of fixed “time-length” frames Example: Synchronous Optical Network (SONET) Dominant for long-distance transmission over optical networks STS-1: lowest-speed SONET link (51.84 Mbps) STS-1 frames - 125 µsec long All SONET frames are 125 125 µsec long Problems: Frame synchronization Clock synchronization

SONET Frame synchronization Clock synchronization … 2-byte synchronization pattern starts each frame (unlikely to occur in data) Wait until pattern appears in same place repeatedly; once every 810 bytes Clock synchronization NRZ encoding, payload scrambled (XOR’d) with well-known 127-bit pattern Ensures that there are plenty of transitions to allow the receiver to recover the sender’s clock Frame is arranged as 9 rows of 90 bytes each First 3 bytes of each row are overhead. First two bytes of the frame: special bit pattern, used to determine start of frame. Receiver hope pattern appears once every 810 bytes, since each frame is 9 X 90 = 810 bytes long. special pattern appears in the right place enough times >> sync , receiver interprets frame correctly The overhead bytes of a SONET frame are encoded using NRZ, the simple encoding described in the previous section where 1s are high and 0s are low. However, to ensure that there are plenty of transitions to allow the receiver to recover the sender’s clock, the payload bytes are scrambled. This is done by calculating the exclusive-OR (XOR) of the data to be transmitted and by the use of a well-known bit pattern. The bit pattern, which is 127 bits long, has plenty of transitions from 1 to 0, so that XORing it with the transmitted data is likely to yield a signal with enough transitions to enable clock recovery. … Overhead Payload 9 rows 90 columns STS-1 frame

SONET Multiplexing STS-n Since each frame is 125µs long STS-1: lowest speed SONET, runs at 51.84 Mbps STS-N viewed as N STS-1 sharing a fiber STS-48 runs at 2488.32 Mbps…you can go faster Since each frame is 125µs long STS-1 frame is 810 bytes STS-3 frame is 2430 bytes Payload from N STS-1 frames can be linked to form a larger STS-N payload. This is called an STS-Nc link

SONET Multiplexing (continued) A single SONET frame can contain subframes for lower-rate channels STS-N signal can be used to multiplex the bytes of N STS-1 frames STS-3 thought of as consisting of 3 51.84 Mbps links sharing a fiber (bytes interleaved; STS-1 merged byte wise round-robin into STS-3) OR Unmerged (single-source) Payload from N STS-1 frames can be linked to form a larger STS-N payload. The link is called an STS-Nc {concatenated} link (e.g. STS-3c is viewed as a single 155.52 Mbps pipe) HDR STS-1 STS-3