1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol.

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

IPv4 - The Internet Protocol Version 4
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
Networks I Transmission Control Protocol Instituto Tecnológico y de Estudios Superiores de Monterrey Campus Estado de México Prof. MSc. Ivan A. Escobar.
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
Transmission Control Protocol (TCP) Basics
CP476 Internet Computing TCP/IP 1 Lecture 3. TCP / IP Objective: A in-step look at TCP/IP Purposes and operations Header specifications Implementations.
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.
Chapter 7 – Transport Layer Protocols
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
Computer Networks with Internet Technology William Stallings
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Transport Layer.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
IPv6 Fundamentals Chapter 2: IPv6 Protocol
Gursharan Singh Tatla Transport Layer 16-May
Packet Analysis with Wireshark
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.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
CS 4396 Computer Networks Lab
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
1 CSE 5346 Spring Network Simulator Project.
1 Review – The Internet’s Protocol Architecture. Protocols, Internetworking & the Internet 2 Introduction Internet standards Internet standards Layered.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
CSCI 465 D ata Communications and Networks Lecture 25 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Lect1..ppt - 01/06/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 3 TCP and IP by Zornitza Genova Prodanoff.
Chapter 3 TCP and IP 1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Internet.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
Computer Networks 1000-Transport layer, TCP Gergely Windisch v spring.
1 Transmission Control Protocol (TCP) RFC: Introduction The TCP is intended to provide a reliable process-to-process communication service in a.
Chapter 3 TCP and IP Chapter 3 TCP and IP.
Introduction to TCP/IP networking
IP - The Internet Protocol
TCP.
IP - The Internet Protocol
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
IP - The Internet Protocol
IP - The Internet Protocol
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
IP - The Internet Protocol
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transport Protocols: TCP Segments, Flow control and Connection Setup
IP - The Internet Protocol
NET 323D: Networks Protocols
Transport Layer 9/22/2019.
EEL 5718 Computer Communications
Presentation transcript:

1 Chapter 3 TCP and IP

Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol (UDP) User Datagram Protocol (UDP) Internet Protocol (IPv4) Internet Protocol (IPv4) IPv6 IPv6

Chapter 3 TCP and IP 3 TCP Defined in RFC 793, RFC 1122 Defined in RFC 793, RFC 1122RFC 793RFC 1122RFC 793RFC 1122 Provides the Internet’s primary reliable host-to-host delivery mechanism Provides the Internet’s primary reliable host-to-host delivery mechanism Services offered: Services offered: –basic data transfer –reliability (reliable data transfer) –flow control –multiplexing/de-multiplexing –connections (maintains state) –precedence and security

Chapter 3 TCP and IP 4 TCP Header

Chapter 3 TCP and IP 5 TCP Fields/Functions Source Port # (16 bits): source application (multiplexing) Source Port # (16 bits): source application (multiplexing) Destination Port # (16 bits): target application (de-multiplexing) Destination Port # (16 bits): target application (de-multiplexing) Sequence # (32 bits): number of the first data octet (reliable data transfer) Sequence # (32 bits): number of the first data octet (reliable data transfer) Acknowledgement # (32 bits): next data octet expected by receiver (reliable data transfer) Acknowledgement # (32 bits): next data octet expected by receiver (reliable data transfer) Data offset/header length (4 bits): number of 32bit words in the header (basic data transfer) Data offset/header length (4 bits): number of 32bit words in the header (basic data transfer)

Chapter 3 TCP and IP 6 TCP Fields/Functions Flags (6 or 8 bits): source application (precedence, connection management) Flags (6 or 8 bits): source application (precedence, connection management) Window size (16 bits): number data octets receiver is willing to accept (flow control) Window size (16 bits): number data octets receiver is willing to accept (flow control) Checksum (16 bits): error detection code (reliable data transfer) Checksum (16 bits): error detection code (reliable data transfer) Urgent pointer (16 bits): pointer to last data octet in sequence of urgent data (precedence) Urgent pointer (16 bits): pointer to last data octet in sequence of urgent data (precedence) Header length (variable): number of 32bit words in the header – indicates presence or absence of options (various) Header length (variable): number of 32bit words in the header – indicates presence or absence of options (various) more ->

Chapter 3 TCP and IP 7 TCP Fields/Functions (Flags) URG: urgent pointer field is significant URG: urgent pointer field is significant ACK: acknowledgement field is significant ACK: acknowledgement field is significant PSH: push function specified by app PSH: push function specified by app RST: reset the connection RST: reset the connection SYN: synchronize the sequence number SYN: synchronize the sequence number FIN: no more data from sender FIN: no more data from sender CWR: congestion warning acknowledgement CWR: congestion warning acknowledgement ECE: Explicit congestion notification ECE: Explicit congestion notification more -> RFC 3168 RFC 3168

Chapter 3 TCP and IP 8 TCP Data Flow Outgoing data is logically a stream of octets from an end user (SEND) Outgoing data is logically a stream of octets from an end user (SEND) Stream is broken into blocks of data, called segments Stream is broken into blocks of data, called segments TCP accumulates octets from user until segment is large enough, or data is marked with PUSH flag TCP accumulates octets from user until segment is large enough, or data is marked with PUSH flag User (i.e. the application) can mark data as URGENT User (i.e. the application) can mark data as URGENT

Chapter 3 TCP and IP 9 Similarly, incoming data is a stream of octets presented to user (application) Similarly, incoming data is a stream of octets presented to user (application) Data marked with PUSH flag triggers delivery of data to user, otherwise TCP decides when to deliver data (RECEIVE) Data marked with PUSH flag triggers delivery of data to user, otherwise TCP decides when to deliver data (RECEIVE) Data marked with URGENT flag causes user to be signaled Data marked with URGENT flag causes user to be signaled TCP Data Flow (cont.)

Chapter 3 TCP and IP 10 Options Maximum segment size (RFC793) Maximum segment size (RFC793) –specifies the maximum segment size in octets to be used in the connection (16 bits) –used during connection establishment Window scale factor Window scale factor –receiver window scale factor F (max. 14) –scales receiver window size by 2 F –used during connection establishment Timestamp Timestamp –used by TCP to monitor RTT –Timestamp… Timestamp Echo Reply

Chapter 3 TCP and IP 11 UDP RFC 768 RFC 768 RFC 768 RFC 768 Connectionless, unreliable Connectionless, unreliable Less overhead Less overhead Simply adds port addressing to IP Simply adds port addressing to IP Checksum is optional Checksum is optional

Chapter 3 TCP and IP 12 Appropriate Uses of UDP Inward data collection Inward data collection Outward data dissemination Outward data dissemination Request-response Request-response Real-time applications Real-time applications Examples? Examples? DNS DNS SNMP SNMP Streaming audio/video Streaming audio/video VoIP VoIP RIP RIP Timeliness/ timing of data criticalTimeliness/ timing of data critical Occasional loss or significant delay is acceptableOccasional loss or significant delay is acceptable

Chapter 3 TCP and IP 13 IP Defined in RFC 791 Defined in RFC 791RFC 791RFC 791

Chapter 3 TCP and IP 14 IPv4 Address Classes

Chapter 3 TCP and IP 15 Fragmentation and Reassembly Networks may have different maximum packet size (MTU) Networks may have different maximum packet size (MTU) Router may need to fragment datagrams before sending to next network Router may need to fragment datagrams before sending to next network Fragments may need further fragmenting in later networks Fragments may need further fragmenting in later networks Reassembly done only at final destination since fragments may take different routes Reassembly done only at final destination since fragments may take different routes

Chapter 3 TCP and IP 16 IPv4 Type of Service Field Defined in RFC 1349, updated in RFC 2474RFC 1349RFC 2474

Chapter 3 TCP and IP 17 IPv6 Increase IP address from 32 bits to 128 bits Increase IP address from 32 bits to 128 bits Accommodate higher network speeds, mix of data streams (graphics, video, audio) Accommodate higher network speeds, mix of data streams (graphics, video, audio) Fixed size 40-octet header for performance, followed by optional extension headers Fixed size 40-octet header for performance, followed by optional extension headers Longer header but fewer fields (8 vs 12), so routers should have less processing Longer header but fewer fields (8 vs 12), so routers should have less processing

Chapter 3 TCP and IP 18 IPv6 Header

Chapter 3 TCP and IP 19 IPv6 Header Version: 6 Version: 6 Traffic class: e.g. DSCP (more later) Traffic class: e.g. DSCP (more later) Flow label: identifies packets in a sequence from a particular source to destination that need special handling (more later) Flow label: identifies packets in a sequence from a particular source to destination that need special handling (more later) Payload length: total length of packet in octets, minus 40 octets (max 65535) Payload length: total length of packet in octets, minus 40 octets (max 65535) Next header: specifies how to interpret next field following the header Next header: specifies how to interpret next field following the header Hop limit: max number of hops for this packet, decremented field, discard at 0 Hop limit: max number of hops for this packet, decremented field, discard at 0 Source address: packet originator Source address: packet originator Destination address: intended recipient Destination address: intended recipient

Chapter 3 TCP and IP 20 IPv6 Addresses 128 bits 128 bits Longer addresses can have structure that assists routing Longer addresses can have structure that assists routing 3 types: 3 types: –Unicast: single address for a single interface –Anycast: aggregate address for any one of a related set of interfaces –Multicast: single address for all of a group of interfaces

Chapter 3 TCP and IP 21 IPv6 Packet & Extension Headers

Chapter 3 TCP and IP 22 Optional Extension Headers Hop-by-hop options: instructions for each router (RFCs 2675 and 2711) Hop-by-hop options: instructions for each router (RFCs 2675 and 2711) Routing: explicit list of intermediate nodes Routing: explicit list of intermediate nodes Fragment: only at source nodes Fragment: only at source nodes Authentication: (IPsec) packet integrity and authentication Authentication: (IPsec) packet integrity and authentication Encapsulating security payload: (IPsec) payload privacy Encapsulating security payload: (IPsec) payload privacy Destination options: examined only by destination node Destination options: examined only by destination node

Chapter 3 TCP and IP 23 IPv6 Extension Headers