ELEC6113: Wireless and Mobile Networks Session 5: Data Link Protocols. Local Area Networks – Case Study Ethernet (I).

Slides:



Advertisements
Similar presentations
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames. Frame 0 is corrupted, the ACK of frame 1 is corrupted,
Advertisements

EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
Ethernet – CSMA/CD Review
Go-Back-N Improve Stop-and-Wait by not waiting!
Data and Computer Communications Updated: 2/9/2009.
Flow and Error Control. Flow Control Flow control coordinates the amount of data that can be sent before receiving acknowledgement It is one of the most.
Chapter 7 – Data Link Control Protocols
1 Computer Networks Local Area Networks. 2 A LAN is a network: –provides Connectivity of computers, mainframes, storage devices, etc. –spans limited geographical.
1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer.
Chapter 9: Data Link Control Business Data Communications, 4e.
Distributed systems Module 1 -Basic networking Teaching unit 1 – LAN standards Ernesto Damiani University of Bozen-Bolzano Lesson 4 – Ethernet frame.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
Lect11.ppt - 03/15/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 11 Link-Level Flow and Error Control by Zornitza Genova Prodanoff.
Link-Level Flow and Error Control
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
جلسه دوازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version.
Ch. 16 High-Speed LANs The Emergence of High- Speed LANs Trends –Computing power of PCs has continued to grow. –MIS organizations recognize the.
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.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 16.
14-Oct-15Computer Networks1 Reliable Transmission.
ELEC6219: Wireless and Mobile Networks Session 6: Local Area Networks - Case study: Ethernet (Part II) Adriana Wilde and Jeff Reeve.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
CSC 311 Chapter Eight FLOW CONTROL TECHNIQUES. CSC 311 Chapter Eight How do we manage the large amount of data on the network? How do we react to a damaged.
1 TCP III - Error Control TCP Error Control. 2 ARQ Error Control Two types of errors: –Lost packets –Damaged packets Most Error Control techniques are.
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.
Chapter Six The Data Link Layer. Objectives Learn about physical addressing on the network. Explore the MAC and LLC sublayers of Data Link. Get introduced.
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.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
1 FIT1005 Topic 6 - Data Link Layer Reference: Chapter 7 -Stallings.
1 Ethernet “dominant” LAN technology: cheap $20 for 100Mbs! first widely used LAN technology Simpler, cheaper than token LANs and ATM Kept up with speed.
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.
CSCI 465 D ata Communications and Networks Lecture 10 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Wireless and Mobile Networks (ELEC6219) Session 4: Efficiency of a link. Data Link Protocols. Adriana Wilde and Jeff Reeve 22 January 2015.
1 Ethernet CSE 3213 Fall February Introduction Rapid changes in technology designs Broader use of LANs New schemes for high-speed LANs High-speed.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1.Flow Control and ARQ Protocols.
Telecommunications & Networking Lesson 3. ISO Open System Interconnect (OSI) Application Presentation Session Transport Network Data Link Physical Application.
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.
Computer Networking Lecture 16 – Reliable Transport.
Chapter 9: Data Link Control Business Data Communications, 4e.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
Data Link Layer.
Exercises on Data Link Layer.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CS380 Int. to Comp. Networks Data Link Networks - Part II1 Reliable Transmission How to fix corrupted frames. –Error correcting codes too expensive –Should.
2.10 Flow and Error Control Before that ...
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Part III Datalink Layer 10.
Getting Connected (Chapter 2 Part 3)
Data link layer (LLC).
Data Link Layer What does it do?
Data Link Layer: Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
CS412 Introduction to Computer Networking & Telecommunication
Getting Connected (Chapter 2 Part 3)
Getting Connected (Chapter 2 Part 3)
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
Chapter 9: Data Link Control
Presentation transcript:

ELEC6113: Wireless and Mobile Networks Session 5: Data Link Protocols. Local Area Networks – Case Study Ethernet (I).

At the end of this session you will be able to… … compare and evaluate the basic operation of several data link protocols under a given scenario … calculate the overall efficiency of a link … demonstrate knowledge and understanding of problems related to the use of a communication channel in broadcast networks (in particular, LANs) … demonstrate knowledge and understanding of protocols devised to address such problems

For “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? Note the convention: the ACK number gives the NEXT frame to send Review from last week pp (T.4e) pp (T.5e)

Stop-and-Wait Tx Rx time TIMEOUT TxRx time ACK 1 Note the convention: the ACK number gives the NEXT frame to send TxRx time TIMEOUT FRAME 0 FRAME 1 FRAME 0 ACK 0 FRAME 0

How long should the timeout be? TxRx time TIMEOUT TxRx time TIMEOUT ACK 1 FRAME 0 Too short – inefficient as frames are unnecessarily retransmitted Too long – inefficient when frame lost TIMEOUT

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.

Talking point Before looking at improvements, first consider the overall efficiency of a link. Assume that a 2Mbps link connects A and B, which are 200 km apart (approximately 124 miles). What is the time to transmit a short frame? A B 2 Mbps link 200 Km

(Hint) The speed of the signal in the link is about 200x10 6 m/s (NOT ‘c’, the speed of light, 300 Km/s - in a wire or cable we only achieve around 60% to 80% of ‘c’) What is the time to transmit a short frame?

Overall efficiency of a link The speed of the signal in the link is about 200x106 m/s (NOT ‘c’, the speed of light - in a wire or cable we only achieve around 60% to 80% of ‘c’) Hence the time to transmit a ‘short frame’ is

Overall efficiency of a link The RTT (Round Trip Time) is thus 2ms (as acknowledgment needs to return and we consider the processing time negligible). Assume a ‘short’ frame of around 200 bits (approximately a 20 byte payload) What is the maximum transfer rate?

Overall efficiency of a link The transfer rate actually achieved before the ACK returns to the Tx is Only 5% of the capacity of the 2Mbps link! This can improve with larger frame size, but gets worse with longer distances, faster links, or delays on route.

Latency When calculating the overall efficiency of a link, note the fundamental problem of latency (the efficiency can deteriorate with longer distances, faster links, and any delays on route). This is a fundamental problem.

Where were we? Recommended reading: ch 7 of Stallings, W. (2009) Data and Computer Communications. 8th ed. (TK STA), especially pp TIMEOUT TxRx time ACK 1 Tx Rx time TIMEOUT FRAME 0 FRAME 1 FRAME 0 ACK 0 FRAME 0 TxRx time Stop-and-wait protocol ACK 1

Talking point How do we improve STOP-AND-WAIT?

Talking point: Improving Stop-and-Wait Instead of waiting for the ACK to arrive before transmitting the next FRAME, we can allow multiple frames to be outstanding (“pipelining” – effectively these transmissions are in parallel). But what do we do on errors? Compare Go-back-N ARQ and Selective-Reject ARQ

Sliding Windows (I) Allow multiple outstanding frames: sequence number assigned to each frame (sent in the header) e.g. a 3-bit field allows up to 7 “unacknowledged” frames to be in transit (2 n -1). This is Go-back-N ARQ (Automatic Repeat Request). Any failure to acknowledge a frame requires the retransmission of that frame and all subsequent frames (receiver discards any frames received that are not in strict sequence). pp 211 onwards (T.4e) pp 246 onwards (T.5e)

Sliding Windows (II) Another alternative is Selective-Reject ARQ (sometimes called “selective-repeat”), where only lost frames are retransmitted. Harder to implement and only 2 n-1 frames can be allowed to be in transit at any time (e.g. 3-bit field allows for 4 frames in transit). Note the possibility of piggybacking ACK and Frame when bi-directional data is being sent. pp 211 onwards (T.4e) pp 246 onwards (T.5e)

Sliding Windows (III) Sliding Windows algorithms ensure reliable delivery over an unreliable link. Also provide mechanisms for flow control, essentially feedback mechanisms that enable the receiver to “slow down” a fast transmitter pp 211 onwards (T.4e) pp 246 onwards (T.5e)

LAN Case Study – Ethernet  LAN = ‘Local Area Network’, a computer network designed to work at the local level (a building or group of buildings) rather than a Wide Area Network which works over an entire region.  Original Xerox Parc system developed into a standard by Xerox/Digital/Intel around 1979 – at the time, just one of many alternative LAN systems, all around 10 Mbit/sec  Very slow initial uptake, but after a number of changes to the design gradually became a market leader and then the market leader. As a result of this success, faster versions have been developed (100Mbit/sec, 1Gbit/sec and 10Gbit/sec). Recommended reading: Tanenbaum & Wetherall 5th ed. pp

CSMA/CD  Ethernet is an example of a CSMA/CD system (Carrier Sense Multiple Access, Collision Detect).  It was designed around the concept of a single (shared) data cable: only one system can use the channel (i.e. data cable) at any instant. (Image taken from )

CSMA/CD The basic algorithm is exactly the same as a group of people holding a conversation:  listen to see if the channel is busy, if it is, wait until it is free  when the channel is free, transmit but continue to listen to detect a collision. If there is a collision, stop transmitting immediately and wait (discussed later) before trying again.

Ethernet Frame Format Recommended reading: Tanenbaum & Wetherall 5th ed. pp

Ethernet Frame Format - Preamble The function of the preamble (8 bytes of 0xCC) is to synchronize the Rx clock with the Tx clock (Manchester encoding is used).

Ethernet Frame Format – Addresses (I) The ‘addresses’ are needed as a LAN is not a point-to-point data link. There will be a number of nodes in the network, so it is essential to identify the node that a message is being transmitted to.

Ethernet Frame Format – Addresses (II) Ethernet addresses are built into the hardware at the manufacturing stage. Sometimes known as ‘MAC’ (=Media Access Control) addresses. The format is 12 hexadecimal characters, MM:MM:MM:SS:SS:SS where MM:MM:MM is the manufacturer ID and SS:SS:SS is the board serial number).

Ethernet Frame Format – Addresses (III) There is a special broadcast address, hexadecimal FF:FF:FF:FF:FF:FF (i.e. all 1's), a transmission to this address will be received by every node in the network.

Ethernet Frame Format – Type/Length The ‘Type’ field originally defined the protocol in use, but when Ethernet was standardized by the IEEE (resulting in the IEEE standard) this became the ‘length’ field.

Ethernet Frame Format – Data The ‘Data’ field has a minimum and maximum length. The max length is ~1500 bytes. ( The minimum data size requirement will be discussed later) – for now just note that if the data being sent is less than 46 bytes, it will have to be ‘padded out’ to this size with extra bytes.

Ethernet Frame Format – CRC The ‘CRC’ field is designed to provide confidence that the data has not been corrupted. The 32 bit size provides much more confidence than the 16 bit CRCC used in HDLC as discussed in previous sessions.

Talking point Why is there a Minimum Frame Size requirement in Ethernet?

Minimum Frame Size requirement (I) This is necessary to guarantee detection of collisions. Assume two nodes, A & B, separated by a distance D. Node A decides to transit a frame, and after a time t this frame has ‘almost’ reached node B. At this point node B decides to transmit a frame: it has been monitoring the Ethernet cable and knows that no oother node is transmitting.

Minimum Frame Size requirement (II) However, as soon as transmission starts there is a collision with the frame from node A which has just reached node B. B will detect this immediately and cease transmission. In contrast, node A must now wait for the collision to reach it – which will take another time t (i.e. the RTT is 2t). Once the collision reaches node A, it knows that its frame has been corrupted and it aborts transmission.

Minimum Frame Size requirement (III) If a ‘too short’ frame was to be transmitted, there is a danger that node A could have completed the transmission before the collision returned. If this were to happen, node A would mistakenly assume that the transmission had been successful even though it was corrupted by the frame from node B.

At the end of this session you should be able to… … compare and evaluate the basic operation of several data link protocols under a given scenario … calculate the overall efficiency of a link … demonstrate knowledge and understanding of problems related to the use of a communication channel in broadcast networks (in particular, LANs) … demonstrate knowledge and understanding of protocols devised to address such problems.

For tomorrow  CSMA/CD efficiency  Ethernet Retransmission algorithm  Ethernet Switches