1 CS4550 Computer Networks II TCP/UDP Ref: Feit Chap 9 Tanenbaum Chap 6.

Slides:



Advertisements
Similar presentations
Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
Advertisements

Transport Layer – TCP (Part2) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Intermediate TCP/IP TCP Operation.
1 CS492B Project #2 TCP Tutorial # Jin Hyun Ju.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
Winter 2008CS244a Handout #61 CS244a: An Introduction to Computer Networks Handout 6: The Transport Layer, Transmission Control Protocol (TCP), and User.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
EECC694 - Shaaban #1 lec #12 Spring Internet Transport Protocols Transmission Control Protocol (TCP):Transmission Control Protocol (TCP):
TELE202 Lecture 14 TCP/UDP (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (1) »Source: chapter 17 ¥This Lecture »TCP/UDP (2) »Source: chapter.
Computer Networks 2 Lecture 2 TCP – I - Transport Protocols: TCP Segments, Flow control and Connection Setup.
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
CCNA 1 v3.1 Module 11 Review.
Transport Layer Services –Reliable Delivery –or Not! Protocols –Internet: TCP, UDP –ISO: TP0 thru TP4.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Transport Layer TCP and UDP IS250 Spring 2010
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
CS 356 Systems Security Spring Dr. Indrajit Ray
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 12 Transmission Control Protocol (TCP) Basics.
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
Process-to-Process Delivery:
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
Huda AL_Omairl - Network 71 Protocols and Network Software.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Chapter 4 TCP/IP Overview Connecting People To Information.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP Transport Control Protocol Information management 2 Groep T Leuven – Information department 2/35 Introduction UDP provides the connection.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
Transport Layer Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Copyright 2002, S.D. Personick. All Rights Reserved.1 Telecommunications Networking II Topic 20 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
© Introduction to Internetworking – Alex Kooijman 04/04/2000 Introduction to internetworking Part Two.
Transmission Control Protocol
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 6 The Transport Layer.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Chapter 12 Transmission Control Protocol (TCP)
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
CSE679: Computer Network Review r Review of the uncounted quiz r Computer network review.
Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 3: Overview of the Internet.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
Transport Protocols.
1 Version 3.1 Module 10 Intermediate TCP/IP (Layer 4)
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
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).
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
1 TCP ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
DCN286 Introduction to Data Communication Technology Session 11.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
Transmission Control Protocol (TCP) Retransmission and Time-Out
Process-to-Process Delivery
© 2003, Cisco Systems, Inc. All rights reserved.
TCP.
Magda El Zarki Professor, ICS UC, Irvine
Encapsulation/Decapsulation
Transport Layer Unit 5.
Process-to-Process Delivery:
Chapter 17. Transport Protocols
CS4470 Computer Networking Protocols
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

1 CS4550 Computer Networks II TCP/UDP Ref: Feit Chap 9 Tanenbaum Chap 6

Transport Layer Functions * Provide end to end communication function * Connect applications with the network layer optional: * Packet assembly, disassembly, sequencing * end to end acknowledgment * High level flow/ congestion control * Error checking

Transport Layer Service function Transport protocol Application, session, presentation layers Transport entity Network layer Application, session, presentation layers Transport entity Network layer Application Port # Transport Id

Common Transport Interfaces TCP - Transmission Control Protocol - 6 UDP- User Datagram Protocol- 17 NetBEUI - Microsoft network IPX/SPX - Novell Internet Protocol Appletalk- Apple network protocol DECnet - Dec protocol stack

TPDU Payload Application port # (telnet = 23) Protocol (TCP=6,UDP=17) IP address ( ) MAC address (8:0:20:74:4:79) Address locations

Common Port Numbers TCP FTP 20 telnet 23 SMTP 25 http 80 ref: feit table 9.2 UDP DNS53 Echo7 SNMP161 ref: feit table 9.1 User defined port numbers > 1024 see /etc/protocols for unix \WINNT\system32\drivers\etc\protocols for NT

TCP Flow Control Sliding Window Receive Window Send window Byte sequence numbers Ack - number of bytes which can be received -number of bytes which can be sent -byte number of the first byte in the transmitted segment -byte number of the next byte expected

Three way handshake How do the window sizes get initialized? SYN Seq # 1000 Window 8760 Max seg 1460 SYN Seq # 3000 ACK #1001 Window 5840 Max seg 1460 ACK Seq # 1001 Ack #3001 CLIENTCLIENT SERVERSERVER

TCP Segment Header Source portDestination Port Sequence Number Acknowledgement Number Hlen Reserved FlagsWindow ChecksumUrgent Pointer Option(s)(0 0r more 32 bit words) DATA(optional)

TCP Congestion Control How big a segment of data can Sender send? - receive window size -congestion window size - threshold How often Sender send? -Time out - received ACK MSS - maximum Segment size, default 536 or set by option kind =2

Internet Congestion control Slow start algorithm 1) set congestion window to MSS 2) Send the less of congestion window or receive window 3) if all ACK’d double congestion window and go to 2) 4) else if TO, see congestion algorithm This algorithm doubles the unacknowledged burst size until the receive window size is reached Actually if individual segment ack’s are received in step 3 one MSS is added to the congestion window. This doubles the burst.

Internet Congestion control Internet congestion Algorithm 1) threshold = 1/2 MIN (congestion Window,receive window) 2) set congestion window to MSS 3) Send the less of congestion window or receive window 4) if all ACK’d double congestion window up to the threshold add one MSS after threshold is reached and go to 3) 5) else if TO, go to 1 Ref: tanenbaum fig 6-32, Feit fig 9.25

Time out and Network performance * timout value is critical to network performance *what happens if timeout to low *what happens if timeout too high * develop simple formula for average data rate from a transmitting node * rule of thumb Retransmission Timeout = SRTT + 2 *SDEV

Time out Calculation T = Retransmission Timeout = SRTT + 2 *SDEV DEV = | SRTT - latest round trip time | SRTT = (7/8 )* SRTT + (1/8)* latest round trip time SDEV= (3/4)*SDEV + (1/4) *DEV initialized to: T= 3 sec SRTT = 0 SDEV = 1.5sec