TCP Handshake NW Analysis Class. What happens in 3-way handshake Client tells server it wants connection Server acknowledges the client’s connection Server.

Slides:



Advertisements
Similar presentations
TCP/IP Christopher Zacky. lolwut Decimal Numbers.
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Laboratório de Teleprocessamento e Redes1 Unix Network Programming Prof. Nelson Fonseca
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Intermediate TCP/IP TCP Operation.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
CS 471/571 Transport Layer 5 Slides from Kurose and Ross.
Configuring a Router with RIP Basic Configuration and Show Commands.
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.
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
1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol.
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.
Chapter 7 – Transport Layer Protocols
Computer Networks 2 Lecture 2 TCP – I - Transport Protocols: TCP Segments, Flow control and Connection Setup.
TCP segment structure source port # dest port # 32 bits application data (variable length) sequence number acknowledgement number rcvr window size ptr.
Transport Layer peterl. Transport level application transport network data link physical logical end-end transport application transport network data.
1 Transport Control Protocol. 2 Header Identifies the port number of a source application program. Used by the receiver to reply. (16-bit). Identifies.
Lecture 23: Network Primer 7/15/2003 CSCE 590 Summer 2003.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP (Part III: Miscl) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
1 ELEN 602 Lecture 15 More on IP TCP. 2 byte stream Send buffer segments Receive buffer byte stream Application ACKs Transmitter Receiver TCP Streams.
Transport Layer TCP and UDP IS250 Spring 2010
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.
1 Transport Layer Computer Networks. 2 Where are we?
1 CS4550 Computer Networks II TCP/UDP Ref: Feit Chap 9 Tanenbaum Chap 6.
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.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Transmission Control Protocol
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
© Jörg Liebeherr (modified by Malathi Veeraraghavan) 1 Overview Formats, Data Transfer, etc. Connection Management.
IP Configuration API. Network Interface Configuration NAIfconfigIsDeviceUp() NAIfconfigDeviceFromInterface() NAIfconfigBringDeviceUp() NAIfconfigSetIpAddress()
© 2002, Cisco Systems, Inc. All rights reserved..
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
DCN286 Introduction to Data Communication Technology Session 11.
1 Transmission Control Protocol (TCP) RFC: Introduction The TCP is intended to provide a reliable process-to-process communication service in a.
Two Transport Protocols Available Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Provides unreliable transfer Requires minimal – Overhead.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
Introduction to TCP/IP networking
COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.
Introduction to Networks
5. End-to-end protocols (part 1)
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Internet Protocol Formats
Process-to-Process Delivery
TCP.
© 2003, Cisco Systems, Inc. All rights reserved.
TCP.
TCP Transport layer Er. Vikram Dhiman LPU.
TCP - Part I Karim El Defrawy
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
TRANSMISSION CONTROL PROTOCOL
PART 5 Transport Layer.
Internet Protocol Formats
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
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
TCP Connection Management
Presentation transcript:

TCP Handshake NW Analysis Class

What happens in 3-way handshake Client tells server it wants connection Server acknowledges the client’s connection Server tells the client it wants connection Client acknowledges the servers connection Agree in initialize synchronization numbers Agree and initialize options to use

TCP Header Format | Source Port | Destination Port | | Sequence Number | | Acknowledgment Number | | Data | |C|E|U|A|P|R|S|F| | | Offset| Rsrvd |W|C|R|C|S|S|Y|I| Window | | | |R|E|G|K|H|T|N|N| | | Checksum | Urgent Pointer | | Options | Padding | | Data

SYN from Client | | 80 | | | | 0 | | 11 | 0 |0|0|0|0|0|0|1|0| | | | 0 | | 2 | 4 | 1460 | | 1 | 3 | 3 | 3 | | 1 | 1 | 8 | 10 | | | | 0 | | 4 | 2 | 0 | 0 |

SYN/ACK from Server | 80 | | | | | | | 10 | 0 |0|0|0|1|0|0|1|0| 5792 | | | 0 | | 2 | 4 | 1460 | | 4 | 2 | 8 | 10 | | | | | | 1 | 3 | 3 | 2 |

ACK from Client | | 80 | | | | | | 8 | 0 |0|0|0|1|0|0|0|0| | | | 0 | | 1 | 1 | 8 | 10 | | | | |

Port Numbers Service Ports Coordinated via IANA – IANA = Internet Assigned Numbers Authority – – Well Known: 0 to 1023 – Registered: 1024 to – Dynamic/Private: to Outgoing Ports … Ephemeral Ports – Some OS start at 102[45]-4999 or

Sequence Number Selection Depends on OS, used for OS detection even Most OS has changed for better randomization – Why? What are they used for? – Flow Control – Retransmissions – Length of Payload …well… everything TCP!

Maximum Segment Size (MSS) Defined in RFC793 (of course!) Option 2, 4b length, 0? – – How to decide what MSS should be? – MTU? Why important? – Path MTU Discovery, problems? Only Present in SYN What happens if not present in SYN

Window Scaling Defined in RFC1323 (performance!) Option 3, 3b, … – 0 = could do WS, but you seem not to – 1-14 = numbers of right-shift bits – 15? Reserved? No idea! 14=1GB max perhaps. Both sides have to support to use Affects (R)eceive and (S)end Windows Increases performance, how? Bad when?

Time Stamps Defined in RFC1323 (Performance!?!?) Option 8, 10b, , Establishes Round Trip Time Measurement – Why? Packet loss? When to send an ACK? Protects against SEQ Wraps

Selective Acknowledgement (SACK) Defined in RFC2018 In SYN: Option 4, 2b Length In ACKs: Option 5, Nb Length, min 10b – Why 10b minimum? – What is the max Length? – Why 3 block (24b) max? – Where the other 16b of Options go?

TCP Seldom (to me) Seen Partial Order Connection 9, 10 CC - 11, 12, 13 TCP Alternate Checksum – 14, 15 ….. There are a bunch of them; MDF, Bubba? Skeeter? I’ve got no idea. If you see them in the wild, I’d love to hear about it!