Guide to TCP/IP Fourth Edition. Chapter 9: TCP/IP Transport Layer Protocols

Similar documents
Transport Layer Protocols

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Computer Networks. Chapter 5 Transport Protocols

Access Control: Firewalls (1)

Chapter 5. Transport layer protocols

Transport Layer. Chapter 3.4. Think about

[Prof. Rupesh G Vaishnav] Page 1

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Networking Test 4 Study Guide

Ethernet. Ethernet. Network Devices

How do I get to

Computer Networks UDP and TCP

Overview of TCP/IP. TCP/IP and Internet

Network Programming TDC 561

IP Subnetting and Addressing

IP address format: Dotted decimal notation:

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

TCP/IP Optimization for Wide Area Storage Networks. Dr. Joseph L White Juniper Networks

COMP 3331/9331: Computer Networks and Applications. Lab Exercise 3: TCP and UDP (Solutions)

Introduction to TCP/IP

Internet Protocols. Background CHAPTER

TCP/IP Networking for Wireless Systems. Integrated Communication Systems Group Ilmenau University of Technology

q Connection establishment (if connection-oriented) q Data transfer q Connection release (if conn-oriented) q Addressing the transport user

This sequence diagram was generated with EventStudio System Designer (

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation

Objectives of Lecture. Network Architecture. Protocols. Contents

(Refer Slide Time: 02:17)

Effect of Packet-Size over Network Performance

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

La couche transport dans l'internet (la suite TCP/IP)

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Chapter 11. User Datagram Protocol (UDP)

TCP Flow Control. TCP Receiver Window. Sliding Window. Computer Networks. Lecture 30: Flow Control, Reliable Delivery

CPS221 Lecture: Layered Network Architecture

Network Security TCP/IP Refresher

IP - The Internet Protocol

Outline. TCP connection setup/data transfer Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics

Why SSL is better than IPsec for Fully Transparent Mobile Network Access

TCP in Wireless Mobile Networks

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Advanced Computer Networks Project 2: File Transfer Application

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Transport and Network Layer

Networks: IP and TCP. Internet Protocol

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

TCP Performance Management for Dummies

Recent advances in transport protocols

The present and the future of TCP/IP

Protocols and Architecture. Protocol Architecture.

Network Layer: Network Layer and IP Protocol

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

TCP for Wireless Networks

LESSON Networking Fundamentals. Understand TCP/IP

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Chapter 9. IP Secure

Lecture 28: Internet Protocols

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

RARP: Reverse Address Resolution Protocol

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

DATA COMMUNICATION AND NETWORKS

CS335 Sample Questions for Exam #2

La couche transport dans l'internet (la suite TCP/IP)

Title: DEVELOPING TCP/IP AND UDP TRAFFIC MONITORING TOOL. RAFIQ BIN CHE MAT ( )

Per-Flow Queuing Allot's Approach to Bandwidth Management

Question: 3 When using Application Intelligence, Server Time may be defined as.

Exercises TCP/IP Networking. Solution. With Solutions

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

8.2 The Internet Protocol

Visualizations and Correlations in Troubleshooting

Solving complex performance problems in TCP/IP and SNA environments.

Architecture and Performance of the Internet

Protocols. Packets. What's in an IP packet

The TCP/IP Reference Model

Improved Digital Media Delivery with Telestream HyperLaunch

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Mobile Communications Chapter 9: Mobile Transport Layer

Understanding Layer 2, 3, and 4 Protocols

The OSI and TCP/IP Models. Lesson 2

Troubleshooting Tools

TOE2-IP FTP Server Demo Reference Design Manual Rev1.0 9-Jan-15

Lecture Computer Networks

The Internet. Internet Technologies and Applications

Servicesin ns-3. Outline SIMULACIÓN DE PROTOCOLOS DE ENRUTAMIENTO PARA REDES MÓVILES AD-HOC MEDIANTE HERRRAMIENTA DE SIMULACIÓN NS-3

CSMA/CA. Information Networks p. 1

Solution of Exercise Sheet 5

OSI Model. Application Presentation Session Transport Network Data Link Physical. EE156 Computer Network Architecture

Computer Networks Practicum 2015

Command Manual - Network Protocol Quidway S3000 Series Ethernet Switches. Table of Contents

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Congestions and Control Mechanisms n Wired and Wireless Networks

The Problem with TCP. Overcoming TCP s Drawbacks

Transcription:

Guide to TCP/IP Fourth Edition Chapter 9: TCP/IP Transport Layer Protocols

Objectives Explain the key features and functions of the User Datagram Protocol and the Transmission Control Protocol Explain, in detail, the header fields and functions of the UDP packet, as well as port numbers, processes, and how UDP behaves when used as a transport protocol by IPv6 Explain in detail, the mechanisms that drive segmentation, reassembly, and retransmission for TCP as well as how TCP behaves when used as a transport protocol by IPv6 2

Objectives (cont d.) Describe how UDP and TCP pseudo-headers are organized with the IPv6 header and extension headers Explain the differences between connectionless and connection-oriented transport mechanisms Choose between using User Datagram Protocol and Transmission Control Protocol 3

Understanding UDP and TCP UDP and TCP actually function as peers IP operates at the Network layer of the OSI model Responsible for transferring variable length data sequences from a source host to a destination host TCP guarantees acknowledged delivery At the cost of both time and bandwidth UDP is used for applications that do not need verified delivery Gain in speed and a reduced use of network bandwidth 4

UDP with IPv4 and IPv6 Connectionless protocols Provide the simplest kind of transport services UDP Used by applications that contain their own connection oriented timeout values and retry counters Runs up to 40 percent faster than TCP 5

UDP with IPv4 and IPv6 (cont d.) Connectionless protocols handle the following kinds of tasks Message checksum Higher-layer protocol identification 6

TCP with IPv4 and IPv6 TCP (connection-oriented protocol) Used by applications that rely on data reaching its destination TCP offers connection-oriented services with: Sequencing, error recovery, and a sliding window mechanism TCP hosts create a virtual connection with each other using a handshake process TCP transfers data as a continuous stream of bytes 7

TCP with IPv4 and IPv6 (cont d.) 8

User Datagram Protocol UDP limitations No reliability mechanisms No delivery guarantees No connection handling Identifies the Application layer protocol Checksum for entire message carried in UDP header No buffering services No segmentation 9

UDP Header Fields and Functions UDP header s main function To define the process or application that is using the IP and UDP Network and Transport layers UDP header fields Source Port Number field Destination Port Number field Length field Checksum field 10

UDP Header Fields and Functions (cont d.) 11

UDP Header Fields and Functions (cont d.) Source Port Number field Defines the application or process that sends the packet using the UDP header Well-known port numbers (0 Through 1023) Assigned to core services that systems offer Registered port numbers (1024 Through 49151) Assigned to industry applications and processes Dynamic ports Used as temporary ports for specific communications while they are underway 12

UDP Header Fields and Functions (cont d.) 13

UDP Header Fields and Functions (cont d.) Destination Port Number Field Defines destination application or process that uses the IP and UDP headers Length field Defines the length of the packet from the UDP header to the end of valid data Checksum field is optional 14

UDP Port Numbers and Processes UDP and TCP Use port numbers to define the source and destination processes or applications By default Windows Vista, Windows 7, and Windows Server 2008 support a port range of 49152 to 65535 15

UDP Port Numbers and Processes (cont d.) 16

17

UDP and IPv6 18

Transmission Control Protocol Responsible for providing ordered delivery of a stream of bytes From an application on one network node to an application on another network node Communications between two computers that are being established through TCP Use a three-way handshake procedure 19

TCP and IPv4 Primary functions and features of TCP communications: Start-up connection process (TCP handshake) Keep-alive process Connection termination Sequence and acknowledgment process Error-detection and error-recovery processes Congestion control Sliding window Header fields and functions 20

TCP Startup Connection Process Begins with handshake between two hosts One host initiates the handshake to another host to: Ensure the destination host is available Ensure the destination host is listening on the destination port number Inform destination host of initiator s sequence number 21

22

23

24

25

TCP Startup Connection Process (cont d.) 26

TCP Half-Open Connections Occur when the handshake process does not end successfully with a final ACK Half-open connection communication sequence occurs in the following order SYN >>>>> <<<<< ACK SYN <<<<< ACK SYN <<<<< ACK SYN 27

TCP Keep-Alive Process Can maintain connection when there is no data sent across the wire TCP keep-alives Disabled by default on Windows XP, Windows Vista, Windows 7, Windows Server 2003, and Windows Server 2008 KeepAliveTime setting Defines how long to wait before sending the first TCP keep-alive packet 28

TCP Keep-Alive Process (cont d.) 29

TCP Connection Termination Requires four packets Host 1 Sends a TCP packet with the FIN and ACK flags set Host 2 Sends an ACK in response Then sends a TCP packet with FIN and ACK flags set Host 1 Returns ACK response 30

31

32

TCP Sequence and Acknowledgment Process Guarantees that packets are ordered properly and protects against missing segments During handshake process Each side of connection selects its own starting sequence number Each side increments its sequence number value by the amount of data included in the outbound packet 33

TCP Sequence and Acknowledgment Process (cont d.) 34

35

TCP Error-Detection and Error- Recovery Process Retransmission timer First error-detection and error-recovery mechanism Retransmission timeout (RTO) Value specified by timer Retransmission operation increments 1st retransmit: RTO seconds 2nd retransmit: 2 x RTO seconds 3rd retransmit: 4 x RTO seconds 4th retransmit: 8 x RTO seconds 5th retransmit: 16 x RTO seconds 36

TCP Congestion Control Congestion The overloading of the network or a receiver Overloading of the network Occurs when there is too much data on the network medium Overloading a receiver Occurs when the number of data bytes is greater than the advertised window Current window Always the lesser of what the network and receiver can handle 37

TCP Congestion Control (cont d.) 38

TCP Congestion Control (cont d.) TCP has four defined congestion control mechanisms Slow Start Congestion Avoidance Fast Retransmit Fast Recovery 39

TCP Congestion Control (cont d.) Table 9-11 GlobalMaxTcpWindowSize Registry setting 40

TCP Congestion Control (cont d.) 41

TCP Sliding Window Used to determine the amount of unacknowledged data that can go out on the wire from any sender Nagle algorithm When small data segments are being sent, but not acknowledged, no other small segments can be sent Silly Window Syndrome (SWS) Caused when enough data is sent to a TCP host to fill its receiver buffer Puts receiver in a zero-window state 42

TCP Header Fields and Functions Source Port Number Field Destination Port Number Field Sequence Number Field Acknowledgment Number Field Header Length Field 43

TCP Header Fields and Functions (cont d.) 44

Table 9-13 TCP flag settings 45

TCP Header Fields and Functions (cont d.) Window Size Field TCP Checksum Field Urgent Pointer Field TCP Options Field(s) 46

TCP Header Fields and Functions (cont d.) 47

TCP Header Fields and Functions (cont d.) 48

TCP and IPv6 49

UDP, TCP, and IPv6 Extension Headers IPv6 headers put all optional data in extension headers Extension header Contains optional Internet-layer data that is stored in separate headers IPv6 header and each extension header, if present, contain a Next Header field 50

UDP, TCP, and IPv6 Extension Headers (cont d.) 51

52

Choosing Between TCP and UDP Because TCP is robust and reliable, it carries a lot of baggage, including: Additional header fields Explicit meta-messages in the form of TCP messages For some lightweight services, such as Microsoft Messenger Service TCP is overkill and UDP is used instead TCP is no longer as important as it once was Long-haul and local area networks have significantly increased speed, capacity, and reliability 53

Summary Transport layer protocols come in two types Connectionless and connection-oriented User Datagram Protocol The connectionless protocol associated with TCP/IP protocol suite UDP header is short and simple, consisting of: A protocol identifier in the IP header An optional checksum value Source and destination port addresses 54

Summary (cont'd.) Transmission Control Protocol Heavyweight, connection-oriented protocol that helps name the TCP/IP protocol suite TCP header Longer and more complex, Includes a variety of flags, values, and message types 55

Summary (cont'd.) Appropriate (and historical) uses for UDP Concentrate on Application layer services that manage their own reliability and connections Appropriate (and historical) uses for TCP Concentrate on providing reliable delivery of user services Although there are no updated versions for TCP and UDP that correspond to IPv6 The functions of these transport protocols are treated differently when used by IPv4 or IPv6 56