NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are still here.

Slides:



Advertisements
Similar presentations
Introduction 1 Lecture 13 Transport Layer (Transmission Control Protocol) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer.
Advertisements

Transportation Layer (2). TCP full duplex data: – bi-directional data flow in same connection – MSS: maximum segment size connection-oriented: – handshaking.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transmission Control Protocol (TCP)
Ensuring the Reliability of Data Delivery © 2004 Cisco Systems, Inc. All rights reserved. Establishing a TCP Connection INTRO v2.0—6-1.
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
Transport Layer3-1 TCP. Transport Layer3-2 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection.
3-1 TCP Protocol r point-to-point: m one sender, one receiver r reliable, in-order byte steam: m no “message boundaries” r pipelined: m TCP congestion.
Data Communications and Computer Networks Chapter 3 CS 3830 Lecture 16 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Chapter 3 Transport Layer. 2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4.
1 Transport Layer Lecture 9 Imran Ahmed University of Management & Technology.
CS 471/571 Transport Layer 5 Slides from Kurose and Ross.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transport Layer3-1 Summary of Reliable Data Transfer Checksums help us detect errors ACKs and NAKs help us deal with errors If ACK/NAK has errors sender.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
Week 9 TCP9-1 Week 9 TCP 3 outline r 3.5 Connection-oriented transport: TCP m segment structure m reliable data transfer m flow control m connection management.
TCP: Transmission Control Protocol Overview Connection set-up and termination Interactive Bulk transfer Timers Improvements.
5/6/2015© 2010 Raymond P. Jefferis IIILect Transport Layer.
Provides a reliable unicast end-to-end byte stream over an unreliable internetwork.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Transport Layer1 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r reliable, in-order byte steam: m no “message boundaries” r pipelined: m TCP congestion.
Chapter 7 – Transport Layer Protocols
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
Chapter 3 outline 3.1 transport-layer services
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
EEC-484/584 Computer Networks Lecture 15 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Transport Layer Transport Layer: TCP. Transport Layer 3-2 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Transport Layer3-1 Data Communication and Networks Lecture 7 Transport Protocols: TCP October 21, 2004.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Ch 23 Ameera Almasoud Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
3-1 Transport services and protocols r provide logical communication between app processes running on different hosts r transport protocols run in end.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Ch 3. Transport Layer Myungchul Kim
Transport Layer3-1 TCP sender (simplified) NextSeqNum = InitialSeqNum SendBase = InitialSeqNum loop (forever) { switch(event) event: data received from.
6.1. Transport Control Protocol (TCP) It is the most widely used transport protocol in the world. Provides reliable end to end connection between two hosts.
3: Transport Layer3b-1 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection m MSS: maximum.
2: Transport Layer 21 Transport Layer 2. 2: Transport Layer 22 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_b Transport Protocols - TCP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transmission Control Protocol
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
CSE679: Computer Network Review r Review of the uncounted quiz r Computer network review.
Transport Layer3-1 Transport Layer Our lives begin to end, the day we become silent about things that matter.
© Jörg Liebeherr (modified by Malathi Veeraraghavan) 1 Overview Formats, Data Transfer, etc. Connection Management.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April 2009.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
Transport Layer3-1 Transport Layer If you are going through Hell Keep going.
CIS679: TCP and Multimedia r Review of last lecture r TCP and Multimedia.
CSEN 404 Transport Layer II Amr El Mougy Lamia AlBadrawy.
Computer Networks 1000-Transport layer, TCP Gergely Windisch v spring.
Ch 3. Transport Layer Myungchul Kim
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
09-Transport Layer: TCP Transport Layer.
Chapter 3 Transport Layer
Chapter 3 outline 3.1 Transport-layer services
DMET 602: Networks and Media Lab
The Transport Layer (TCP)
Introduction to Networks
Chapter 17 and 18: TCP is connection oriented
TCP.
© 2003, Cisco Systems, Inc. All rights reserved.
Review: UDP demultiplexing TCP demultiplexing Multiplexing?
Chapter 3 outline 3.1 Transport-layer services
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Presentation transcript:

NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are still here

NUS.SoC.CS2105 Ooi Wei Tsang TCP Transmission Control Protocol

NUS.SOC.CS2105 Ooi Wei Tsang Application Transport (process-to-process) Network (unreliable, host-to-host)

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang src port checksum dest port

NUS.SOC.CS2105 Ooi Wei Tsang sequence number acknowledgement number

NUS.SOC.CS2105 Ooi Wei Tsang Data to Send Data Received

TCP TCP is a full-duplex, connection-oriented, reliable protocol. TCP grabs data from a send buffer (containing data from applications), add TCP header, and pass to network layer for transmission. TCP can grab MSS bytes (maximum segment size) at one time. TCP header is 20 bytes (maybe longer if includes option header). Each segment contains a 32-bit sequence number and acknowledgement number. Sequence number is the byte number of the first byte in the segment; Acknowledgement number is the byte number of the first byte expected.

NUS.SOC.CS2105 Ooi Wei Tsang GBNSR ACKCumulativeSelective Out-of- OrderThrowBuffer RetransmitAll unACK1 unACK TimerOneMany

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang call from above

NUS.SOC.CS2105 Ooi Wei Tsang recv ACK y

NUS.SOC.CS2105 Ooi Wei Tsang timeout

Reliability in TCP TCP uses a mixed of techniques from GBN and SR. Cumulative ACK : since ACK number tells sender which byte the receiver is expecting. Only one timer : for oldest unacknowledged segment. Receiver buffers out-of-order segments. Retransmit only one packet when timeout occur. TCP retransmit if it receives duplicate ACKs, but only after 3 of them is received (fast retransmit)

NUS.SOC.CS2105 Ooi Wei Tsang receiver window

NUS.SOC.CS2105 Ooi Wei Tsang Receiver Buffer Sender

Flow Control in TCP To avoid buffer overflow at receiver, the receiver limits the number of bytes the sender can send through a receiver window (rcvwin), which is the size of the spare room in the receiver buffer. The sender ensures that the amount of outstanding bytes (sent but not acknowledged) is less than rcvwin.

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang

NUS.SOC.CS2105 Ooi Wei Tsang

TCP Connection Management Other fields of interest in TCP header are bits to indicate type of packets (SYN, FIN, ACK, RST etc). To establish connection, TCP uses a 3-way handshake: A send SYN to B, B replies with SYN+ACK, A replies with ACK+data (optional). To tear down connection, A sends FIN to B, B sends ACK back. B sends FIN to A, A sends ACK back to B.