Wireless and Mobile Networks (ELEC6219) Session 4: Efficiency of a link. Data Link Protocols. Adriana Wilde and Jeff Reeve 22 January 2015.

Slides:



Advertisements
Similar presentations
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Advertisements

COS 461 Fall 1997 COS 461: Networks and Distributed Computing u Prof. Ed Felten u u.
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
1 Wireless Sensor Networks Akyildiz/Vuran Administration Issues  Take home Mid-term Exam  Assign April 2, Due April 7  Individual work is required 
Data and Computer Communications Updated: 2/9/2009.
Chapter 6 Errors, Error Detection, and Error Control.
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.
The Data Link Layer Chapter 3. Position of the data-link layer.
EE 122: Error detection and reliable transmission Ion Stoica September 16, 2002.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
The OSI Reference Model
Chapter 9: Data Link Control Business Data Communications, 4e.
CMPE 150 – Winter 2009 Lecture 6 January 22, 2009 P.E. Mantey.
Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection.
Spring 2003CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
18-Aug-154/598N: Computer Networks Overview Direct link networks –Error detection - Section 2.4 –Reliable transmission - Section 2.5.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version.
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
Data Link Control Protocols
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
CS3502: Data and Computer Networks DATA LINK LAYER - 1.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
Chapter 3 THE DATA LINK LAYER
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
CS3505: DATA LINK LAYER. data link layer  phys. layer subject to errors; not reliable; and only moves information as bits, which alone are not meaningful.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
ELEC6113: Wireless and Mobile Networks Session 5: Data Link Protocols. Local Area Networks – Case Study Ethernet (I).
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
Data Link Layer Flow and Error Control. Flow Control Flow Control Flow Control Specifies the amount of data can be transmitted by sender before receiving.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Principles of reliable data transfer 0.
Transmission Errors Error Detection and Correction.
Data Link Layer. Link Layer The data unit to be transmited at the link layer is called a frame. Why link layer? How can it know where a frame begins and.
CSCI 465 D ata Communications and Networks Lecture 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Data Link Layer Part II – Sliding Window Protocols.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Networking Lecture 16 – Reliable Transport.
Chapter 9: Data Link Control Business Data Communications, 4e.
Computer Communication & Networks
Reliable Transmission
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Part III Datalink Layer 10.
Data link layer (LLC).
Data Link Layer What does it do?
Data Link Layer: Data Link Control
CS412 Introduction to Computer Networking & Telecommunication
Error detection: Outline
Chapter 9: Data Link Control
Presentation transcript:

Wireless and Mobile Networks (ELEC6219) Session 4: Efficiency of a link. Data Link Protocols. Adriana Wilde and Jeff Reeve 22 January 2015

2 Plan for this lecture At the end of this lecture (and related activities), students should be able to : –… apply a key theory of data communications (while planning a strategy for answering exam papers) –… consider design issues to ensure reliable delivery over an unreliable link –… reason why the data link layer adds control information as an overhead in the transmission

Review

4 2 nd review data encoding (feedback from questions at the end of last lecture) 4B/5B (4 bits encoded in 5 transition bits) These codewords are then coded using NRZ-I

Talking point Solve and discuss solution to Q2a from the past paper shown in OHP. –As a 7 marks’ question in a 75 marks’ exam paper, you shouldn’t spend more than 10 mins in it. –Do this in pairs (not in exam conditions )

Shannon’s capacity of a communication link: C=H log 2 (1+S/N) 6 A wireless link with carrier frequency 400MHz has S/N=7 and uses a modulation scheme that transmits 3 bits in 32 cycles. What is the minimum bandwidth required for the link to operate successfully? Mbps MHz MHz Mbps 5.None of the above

How confident are you on your answer being correct? 7 1.Very confident! 2.Quite confident, not sure about one thing or two 3.Not very confident (I guess it is OK?) 4.Help!

How good was your answer? 8 1.Very good! 2.Quite good, I need to be careful with a couple of things 3.Not very good 4.I had no idea!

Efficiency of a Link (Case study HDLC)

10 HDLC Frames Every frame is delimited at the start and end by the sequence 0x7E ( ), the “flag byte” (N.B. both sequences are part of the frame) Variable length 888… 16/32 8

11 The payload The “Data” field is the “payload” –i.e. the information we intend to communicate to the other end of the point-to-point link All other information is discarded at the receiver Variable length 888… 16/32 8

12 Talking point: What size for N? Let's calculate the efficiency of the transmission in the following cases: –Sending one character per frame (N=8bits) –Sending a KB per frame (N=1024bytes) Variable length (N) 888… 16 8

13 Sending one character per frame (N=8 bits) Frame overhead= =48 bits So, if a single 8-bit character is sent per frame: Efficiency = 8 / (48 + 8) = 1/7= 14%

14 Talking point: Sending 1024 bytes per frame What is the efficiency of the transmission in this case? N

15 Frame overhead= =6 bytes Therefore, Efficiency = 1024 / ( ) = 99.4% GOOD! So, go for a longer frame, for even higher efficiency? Talking point: Sending 1024 bytes per frame

16 Not necessarily… What if a frame must be retransmitted? So “frame size” is part of an overall system design –Depends on application –Depends on anticipated error rate –Depends on system requirements for high link utilization and time available for transmission In practice, frame sizes of 0.5KB to 4KB are typically used. GOOD! So, go for a longer frame, for even higher efficiency? Design considerations: Frame size

HDLC frames (the other fields)

18 FCS - Frame check sequence –16 bit CRC-CCITT (Cyclic Redundancy Check) based on the polynomial x 16 + x 12 + x –32 bit based on the polynomial x 32 + x 26 + x 23 + x 22 + x 16 + x 12 + x 11 + x 10 + x 8 + x 7 + x 5 + x 4 + x 2 + x + 1 –Complex algorithm but hardware implementation with shift registers allow for quick, “on the fly”, calculation What about the other fields? pp (T. 4ed) pp (T. 5ed)

19 Even a 16-bit CRC will detect all burst errors up to this length, with only a 1/2 16 probability for a corrupted frame at the receiver to have the same CRC as calculated at the transmitter! Frame Check Sequence (FCS) pp (T. 4ed) pp (T. 5ed)

20 Even a 16-bit CRC will detect all burst errors up to this length, with only a 1/2 16 probability for a corrupted frame at the receiver to have the same CRC as calculated at the transmitter! (99.998% confidence) Frame Check Sequence (FCS) pp (T. 4ed) pp (T. 5ed)

21 Address and Control –An ‘address’ is only necessary when there are multiple receivers on the line – frequently HDLC is used for point-to-point links and this is then not required. –The ‘control’ information is used for sequence numbers and acknowledgements – this is the mechanism used for frame control (i.e. when a re-transmission is necessary). What about the other fields?

22 WHEN IS A RETRANSMISSION NECESSARY? Talking point

HDLC frames (the other fields)

24 Let’s first consider normal operation… Consider a bi-directional * link: 1.The transmitter will send a FRAME 2. … after a delay this will reach the receiver, which will process it 3. … and after a small delay (to process the frame) will send an acknowledgment (ACK) 4. … which after a delay will be received by the Tx TxRx time * most HDLC links are bi-directional, to enable the receiver (Rx) to acknowledge successful reception of a frame sent by the transmitter (Tx)

25 What happens if a frame is lost? No problem! The transmitter does not wait “forever” for an ACK There is a TIMEOUT … after which the frame is retransmitted TxRx time TIMEOUT

26 Also works if the acknowledgment is lost! The transmitter does not wait “forever” for an ACK There is a TIMEOUT … after which the frame is retransmitted WE NOW HAVE ANOTHER PROBLEM!Ideas? TxRx time TIMEOUT

27 The problem now (and solution?) We now need to detect that the second frame is a duplicate and discard it. TxRx time TIMEOUT

28 The problem now (and solution!) We now need to detect that the second frame is a duplicate and discard it. Use a sequence number! TxRx time TIMEOUT

29 Sequence numbers For the “STOP-AND-WAIT” scheme, a one-bit sequence number is enough for FRAME and ACK Tx sends: FRAME '0' until ACK '1' is received, then FRAME '1' until ACK '0' is received, and so on What does Rx do? pp (T.4e) pp (T.5e) Note the convention: the ACK number gives the NEXT frame to send

30 Sequence numbers Note the convention: the ACK number gives the NEXT frame to send

Talking point How long should the time- out be? Ideas? 31

Design consideration: Timeout The goldilocks solution! (Neither too short nor too long) 32

Design consideration: Timeout The goldilocks solution! (Neither too short nor too long) Too short – inefficient as frames are unnecessarily retransmitted Too long – inefficient when frame lost 33

What now? This scheme can be improved in various ways. Several frames could be sent simultaneously but then there is more overhead in the control. 34

35 Checking Learning Outcomes At the end of this lecture (and related activities), students should be able to : –… apply and compare several data encoding techniques –… apply a key theory of data communications (while planning a strategy for answering exam papers) –… consider design issues to ensure reliable delivery over an unreliable link –… reason why the data link layer adds control information as an overhead in the transmission I'll see you on Wednesday at 9:00am in B54/5027