Getting Connected (Chapter 2 Part 3)

Slides:



Advertisements
Similar presentations
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Advertisements

2.5 Reliable Transmission
Chapter 2: Direct Link Networks (continued) Slide Set 5.
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
EE 122: Ethernet and Ion Stoica September 18, 2002 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 5.3: Reliable Transmission Dr. Nghi.
14-Oct-15Computer Networks1 Reliable Transmission.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Transport Layer: Sliding Window Reliability
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
1 Multiple Access: Ethernet Section Point-to-Point vs. Broadcast Media Point-to-point –PPP for dial-up access –Point-to-point link between Ethernet.
1 Direct Link Networks: Reliable Transmission Sections 2.5.
CSE331: Introduction to Networks and Security Lecture 4 Fall 2002.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Computer Networking Lecture 16 – Reliable Transport.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
CS380 Int. to Comp. Networks Data Link Networks - Part II1 Reliable Transmission How to fix corrupted frames. –Error correcting codes too expensive –Should.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
Chapter 3 Part 1 Switching and Bridging
Instructor & Todd Lammle
Link Layer 5.1 Introduction and services
Getting Connected (Chapter 2 Part 4)
Networking CS 3470, Section 1 Sarah Diesburg
Computer Communication & Networks
Reliable Transmission
Data Link Layer Flow Control.
Part III Datalink Layer 10.
The University of Adelaide, School of Computer Science
Networking CS 3470, Section 1 Sarah Diesburg
B. R. Chandavarkar CSE Dept., NITK Surathkal
Instructor Mazhar Hussain
Hubs Hubs are essentially physical-layer repeaters:
CS 457 – Lecture 6 Ethernet Spring 2012.
Introduction of Transport Protocols
Flow Control.
ECE 4450:427/527 - Computer Networks Spring 2017
Hubs Hubs are essentially physical-layer repeaters:
Data Link Layer: Data Link Control
Chapter 12 Local Area Networks
Data Link Issues Relates to Lab 2.
Getting Connected (Chapter 2 Part 3)
Reliable transmission
CSS432 (Link Level Protocols) Reliable Transmission Textbook Ch 2.5
CS4470 Computer Networking Protocols
Protocol layering and data
Advanced Computer Networks
Chapter 11 Data Link Control
Getting Connected (Chapter 2 Part 3)
Networking CS 3470, Section 1 Sarah Diesburg
Chapter 12 Local Area Networks
The Transport Layer Reliability
Protocol layering and data
Chapter 12 Local Area Networks
Transport Layer Outline Intro to transport UDP
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
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.
Error detection: Outline
Error Checking continued
Presentation transcript:

Getting Connected (Chapter 2 Part 3) Networking CS 3470, Section 1 Sarah Diesburg

Last Lectures Encoding/decoding Framing Error Detection

Today Error Correction (through reliability mechanisms Media Access

Reliability Three sample problems A frame has corrupt (and non-recoverable) data. What do you do? Your store-and-forward switch is being flooded by connections and your input buffer is full. What do you do? You are a transmitting process that requires a guaranteed delivery. How long do you “hold out” before assuming a packet was lost?

Reliability Usually accomplished through combination of two fundamental mechanisms Acknowledgments (ACKs) Control frame sent by receiver to sender to say “I have seen the data” Timeouts If the sender doesn’t receive an ACK after a certain amount of time (how rude!), a timeout occurs and the sender retransmits the frame

ARQ General strategy of using ACKs and timeouts to implement reliable delivery is called automatic repeat request (ARQ) Stop-and-wait Sliding window

Stop-and-Wait Simplest algorithm 4 basic scenarios After transmitting one frame, sender waits for ACK before transmitting next frame If ACK does not arrive in time, sender times out and retransmits original frame 4 basic scenarios What are they?

Stop-and-Wait Timeline diagram The ACK is received before the timer expires

Stop-and-Wait The original frame is lost

Stop-and-Wait The ACK is lost

Stop-and-Wait ACK not delivered before timeout How to fix??

Stop-and-Wait Suppose sender ends up sending duplicate frames and receiver got both frames E.g., if ACK from receiver was lost or timed out Q: How does receiver know that it shouldn’t use both frames? A: Header usually includes 1-bit sequence number Sequence numbers used in each frame alternate

Stop-and-Wait Is 1 bit enough? Timeline for stop-and-wait with 1-bit sequence number

Delay x Bandwidth Again… Represents the amount of data that could be in transit Would like to be able to send this much data without waiting for the first acknowledgment “Keeping the pipe full”

The University of Adelaide, School of Computer Science 29 May 2018 Stop-and-Wait Does not “keep the pipe full” Consider a 1.5 Mbps link with a 45 ms RTT The link has a delay  bandwidth product of 67.5 Kb or approximately 8 KB Since the sender can send only one frame per RTT and assuming a frame size of 1 KB Maximum Sending rate Bits per frame  Time per frame = 1024  8  0.045 = 182 Kbps Or about one-eighth of the link’s capacity To use the link fully, then sender should transmit up to eight frames before having to wait for an acknowledgement Chapter 2 — Instructions: Language of the Computer

Sliding window time transition 1 RTT ACK Sender Receiver

Sliding Window The sliding window requires a more elaborate sequence number: Send window size: SWS Last frame sent: LFS Last frame ACK'd: LAR (last ACK rec'd) SWS ≥ LFS - LAR After a while, you can't send any more frames until ACKs start coming back. Note: Packets may be delivered out of sequence!

Sliding Window After a while, the sender can't send any more frames until ACKs start coming back Window is “full” Note: Packets may be delivered out of sequence!

Sliding Window X Pkt0 sent 0 1 2 3 4 5 6 Pkt0 rcvd, Ack0 sent Pkt2 sent, window full Ack0 rcvd,Pkt3 sent Pkt1 timeout, Pkt1 resent ... Pkt0 rcvd, Ack0 sent 0 1 2 3 4 5 6 Pkt2 rcvd, buffered Pkt3 rcvd, buffered Pkt1 rcvd, Ack3 sent X

Sliding Window Quiz What is the SWS? (Send Window Size) Last frame sent: LFS? Last frame ACK'd: LAR? Pkt 8 sent, window full 0 1 2 3 4 5 6 7 8 9 10

Sliding Window Quiz Receive window size: RWS? Pkt 8 rcvd, Ack 8 sent 0 1 2 3 4 5 6 7 8 9 10 Receive window size: RWS? Last frame received: LFR? Largest acceptable frame: LAF?

Sliding Window There are “issues” with the sliding window protocol with regard to the window size and the sequence number. Suppose window size is one less than total sequence numbers and ACKs are dropped In the end: SWS < (MaxSeqNum+1)/2 Alternates between two halves of the sequence number space

Sliding Window Benefits Reliable delivery of frames Preservation of order at the receiver end Flow control “Throttles the sender” Reliable delivery of frames important at the link layer (remember, ISO/OSI model) The other two are sometimes better implemented at higher layers

Core Ethernet Ethernet standard is 802.3 Legacy multiple-access network Set of nodes sends and receives frames over shared link Kind of like a bus

Core Ethernet Ethernet is CSMA/CD, which stands for “Carrier Sense, Multiple Access with Collision Detection.” Carrier sense: all nodes can distinguish between idle and busy link Collision detection: node listens as it transmits can tell if it collides with another frame

Core Ethernet By standard, Ethernet is implemented using Coax, on segments limited to 500m Hosts joined by “tapping into” segment Multiple Ethernet segments joined together by repeaters What do you think a repeater does? No more than four repeaters allowed.

Core Ethernet Total reach: 2500m All physical limitations considered, an Ethernet is limited to 1024 hosts maximum. Any signal emitted by a host on the ethernet is broadcast over the entire network Terminators attached to the end absorb the signal and prevent bounce-back.

Ethernet Technologies: 10Base2 10: 10Mbps; 2: under 200 meters max cable length thin coaxial cable in a bus topology repeaters used to connect up to 5 multiple segments repeater repeats bits it hears on one interface to its other interfaces: physical layer device only! has become a legacy technology

Core Ethernet Cable Types: 10Base2 10Base5 10BaseT 10Mbps peak, Baseband, with 200m limit 10Base5 10Mbps peak, Baseband, with 500m limit 10BaseT 10Mbps peak, Baseband, Twisted-Pair cable, 100m limit

Core Ethernet Encoding schemes Original specification used Manchester encoding Higher-speed Ethernet uses 4B/5B or the similar 8B/10B encoding

Shared Access Everyone speaks at the same time Competition for the same link, speaking at the same time produces the notion of a collision domain.

Ethernet Frame Structure Sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame Preamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronize receiver, sender clock rates

Ethernet Frame Structure (more) Addresses: 6 bytes if adapter receives frame with matching destination address, or with broadcast address, it passes data in frame to net-layer protocol otherwise, adapter discards frame Type: indicates the higher layer protocol, mostly IP but others may be supported such as Novell IPX and AppleTalk) CRC: checked at receiver, if error is detected, the frame is simply dropped