The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.

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

1 Transport Protocols & TCP CSE 3213 Fall April 2015.
CMPE 150 – Winter 2009 Lecture 16 March 3, 2009 P.E. Mantey.
Chapter 6 The Transport Layer.
Computer Networks Transport Layer. Topics F Introduction (6.1)  F Connection Issues ( ) F TCP (6.4)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Transport Layer Chapter
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 6 Transport Layer.
Computer Networks NYUS FCSIT Spring 2008 Milos STOLIC, Bs.C. Teaching Assistant
Chapter 6 The Transport Layer.
The TCP Segment Header TCP header length in 32 bit words, URG-urgent, ACK- ack number is valid, PSH-push, RST-reset connection, SYN-used to establish connection,
Chapter 6-2 The Transport Layer
1 TCP CSE May TCP Services Flow control Connection establishment and termination Congestion control 2.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
CMPE 150 – Winter 2009 Lecture 17 March 5, 2009 P.E. Mantey.
Transport Layer Services –Reliable Delivery –or Not! Protocols –Internet: TCP, UDP –ISO: TP0 thru TP4.
Transport Layer Problems with network layer services
The Transport Layer Chapter 6. The TCP Segment Header TCP Header.
The Transport Layer Chapter 6. Performance Issues Performance Problems in Computer Networks Network Performance Measurement System Design for Better Performance.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Transport Layer.
The OSI Reference Model
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Exam Review Networking CS 3470, Section 1 Sarah Diesburg.
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
Chapter 6 The Transport Layer.
The Transport Layer.
The Transport Layer Chapter 6.
3: Transport Layer3b-1 Principles of Congestion Control Congestion: r informally: “too many sources sending too much data too fast for network to handle”
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Transport Layer Chapter 6.
SMUCSE 4344 transport layer. SMUCSE 4344 transport layer end-to-end protocols –transport code runs only on endpoint hosts encapsulates network communications.
The Transport Layer.
ECE453 – Introduction to Computer Networks Lecture 14 – Transport Layer (I)
Transport Layer Chapter 6 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Transport Service Elements of Transport.
The Transport Layer Chapter 6. The Transport Service The transport layer is the heart of the whole protocol hierarchy It provides reliable data transport.
1 Introduction to Computer Networks University of ilam Dr. Mozafar Bag-Mohammadi Transport Layer.
HighSpeed TCP for High Bandwidth-Delay Product Networks Raj Kettimuthu.
(from Tanenabaum: “Computer Networks” Chapter 1) and
Transport Layer Chapter 6 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Transport Service Elements of Transport.
The Transport Layer Chapter 6. Transport Service Primitives The primitives for a simple transport service.
The Transport Layer Chapter 6 12/14/2015www.ishuchita.com1.
TCP: Transmission Control Protocol Part II : Protocol Mechanisms Computer Network System Sirak Kaewjamnong Semester 1st, 2004.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Computer Networks23-1 PART 5 Transport Layer. Computer Networks23-2 Position of Transport Layer Responsible for the delivery of a message from one process.
Transport Layer Chapter 6 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Transport Service Elements of Transport.
The Transport Layer Chapter Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall,
ECE 4110 – Internetwork Programming
Chapter 6 Transport Layer
4343 X2 – The Transport Layer Tanenbaum Ch.6.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Distributed Systems 8. Transport Layer Simon Razniewski Faculty of Computer Science Free University of Bozen-Bolzano A.Y. 2014/2015.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer Timing Recovery.
The Transport Layer Dr. ir. S.S. Msanjila RIS 251.
Distributed Systems 12. Transport Layer Simon Razniewski Faculty of Computer Science Free University of Bozen-Bolzano A.Y. 2015/2016.
Distributed Systems 11. Transport Layer
TCP - Part II.
Unit-7 The Transport Layer.
Chapter 6 The Transport Layer.
PART 5 Transport Layer Computer Networks.
Chapter 6 The Transport Layer.
The Transport Layer Chapter
Transport Layer: Sliding Window Reliability
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad.
Transport layer issues Johan Lukkien
Transport Layer Unit 5.
Chapter 6 The Transport Layer The Transport Service & Elements of Transport Protocols.
Process-to-Process Delivery:
The Transport Layer Chapter 6.
Presentation transcript:

The Transport Layer Chapter 6

The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of Socket Programming: –An Internet File Server

Services Provided to the Upper Layers The network, transport, and application layers.

Transport Service Primitives The primitives for a simple transport service.

Transport Service Primitives (2) The nesting of TPDUs, packets, and frames.

Elements of Transport Protocols Addressing Connection Establishment Connection Release Flow Control and Buffering Multiplexing Crash Recovery

Transport Protocol (a) Environment of the data link layer. (b) Environment of the transport layer.

Addressing TSAPs, NSAPs and transport connections.

Connection Establishment (3) Three protocol scenarios for establishing a connection using a three-way handshake. CR denotes CONNECTION REQUEST. (a) Normal operation, (b) Old CONNECTION REQUEST appearing out of nowhere. (c) Duplicate CONNECTION REQUEST and duplicate ACK.

Connection Release Abrupt disconnection with loss of data.

Connection Release (2) The two-army problem.

The Internet Transport Protocols: UDP Introduction to UDP Remote Procedure Call The Real-Time Transport Protocol

Introduction to UDP The UDP header.

Remote Procedure Call Steps in making a remote procedure call. The stubs are shaded.

The TCP Segment Header TCP Header.

The TCP Segment Header (2) The pseudoheader included in the TCP checksum.

TCP Connection Establishment (a) TCP connection establishment in the normal case. (b) Call collision. 6-31

TCP Connection Management Modeling The states used in the TCP connection management finite state machine.

TCP Connection Management Modeling (2) TCP connection management finite state machine. The heavy solid line is the normal path for a client. The heavy dashed line is the normal path for a server. The light lines are unusual events. Each transition is labeled by the event causing it and the action resulting from it, separated by a slash.

TCP Transmission Policy Active Window Management Window management in TCP.

TCP Transmission Policy (2) Solving the silly window syndrome Nagle’s algorithm for transmission

TCP Congestion Control (a) A fast network feeding a low capacity receiver. (b) A slow network feeding a high-capacity receiver. Outstanding data must be limited by both the network AND the receiver

TCP Congestion Control (2) An example of the Internet congestion algorithm TCP Slow-start (Slow wrt to what since it is exponential!?)

TCP Timer Management (a) Probability density of ACK arrival times in the data link layer. (b) Probability density of ACK arrival times for TCP.

Round-trip and Variance Estimation (a)RTT = a(RTT) + (1-a)M (exponential smoothing) (b)Dev = a(Dev) + (1-a) |RTT-M| (c)Retransmission Timeout = RTT + 4*Dev (a)Used to use RTO = 2*RTT (d)What about retransmitted segments? (a)Ignore them in the RTT calculation

Wireless TCP Missing acks can mean two things with opposite required responses In wired networks: congestion; response: slow down! In wireless networks: dropped packets due to noise; try again, real soon! Approaches for wireless Split TCP connection in two (not common) Acks and retransmission at the link layer

Performance Issues Performance Problems in Computer Networks Network Performance Measurement System Design for Better Performance Fast TPDU Processing Protocols for Gigabit Networks

Performance Problems in Computer Networks The state of transmitting one megabit from San Diego to Boston (a) At t = 0, (b) After 500 μsec, (c) After 20 msec, (d) after 40 msec.

Network Performance Measurement The basic loop for improving network performance. 1.Measure relevant network parameters, performance. 2.Try to understand what is going on. 3.Change one parameter.

System Design for Better Performance Rules: 1.CPU speed is more important than network speed. 2.Reduce packet count to reduce software overhead. 3.Minimize context switches. 4.Minimize copying. 5.You can buy more bandwidth but not lower delay. 6.Avoiding congestion is better than recovering from it. 7.Avoid timeouts.

System Design for Better Performance (2) Response as a function of load.

System Design for Better Performance (3) Four context switches to handle one packet with a user-space network manager.

Fast TPDU Processing The fast path from sender to receiver is shown with a heavy line. The processing steps on this path are shaded.

Fast TPDU Processing (2) (a) TCP header. (b) IP header. In both cases, the shaded fields are taken from the prototype without change.

Fast TPDU Processing (3) A timing wheel.

Protocols for Gigabit Networks Time to transfer and acknowledge a 1-megabit file over a 4000-km line.