COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.

Slides:



Advertisements
Similar presentations
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Advertisements

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.
Transmission Control Protocol (TCP)
Lecture 7 Transport Layer
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.
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
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Chapter 7: Objectives Part 1
TRANSPORT LAYER  Session multiplexing  Segmentation  Flow control (TCP)  Connection-oriented (TCP)  Reliability (TCP)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
EEC-484/584 Computer Networks Lecture 15 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Transport Layer TCP and UDP IS250 Spring 2010
Chapter 4 OSI Transport Layer
Gursharan Singh Tatla Transport Layer 16-May
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
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.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP: A Closer Look Transmission Control Protocol.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
Transmission Control Protocol
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Networking Basics CCNA 1 Chapter 11.
© Jörg Liebeherr (modified by Malathi Veeraraghavan) 1 Overview Formats, Data Transfer, etc. Connection Management.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
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)
COMP2322 Lab 6 TCP Steven Lee April 1, TCP Transmission Control Protocol Transport layer protocol User Datagram Protocol (UDP) is another one 2.
Two Transport Protocols Available Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Provides unreliable transfer Requires minimal – Overhead.
Introduction to TCP/IP networking
TCP Lecture 4.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Transmission Control Protocol (TCP)
5. End-to-end protocols (part 1)
Chapter 17 and 18: TCP is connection oriented
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
TCP.
Process-to-Process Delivery
TCP.
© 2003, Cisco Systems, Inc. All rights reserved.
PART 5 Transport Layer Computer Networks.
Net 221D : Computer Networks Fundamentals
TCP.
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.
Process-to-Process Delivery:
CS4470 Computer Networking Protocols
Figure 3-23: Transmission Control Protocol (TCP) (Study Figure)
TRANSMISSION CONTROL PROTOCOL
PART 5 Transport Layer.
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
Introduction to Computer Networks
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017

TCP Transmission Control Protocol Transport layer protocol User Datagram Protocol (UDP) is another one

TCP segment structure Bit Source port Destination port Sequence number 1 2 3 4 5 6 7 8 9 Source port Destination port 32 Sequence number 64 Acknowledgement number 96 ACK SYN FIN Window size 128 Checksum Options (variable length) Application data (variable length)

One sender, one receiver TCP Point-to-point One sender, one receiver

TCP segment structure Bit Source port Destination port Sequence number 1 2 3 4 5 6 7 8 9 Source port Destination port 32 Sequence number 64 Acknowledgement number 96 ACK SYN FIN Window size 128 Checksum Options (variable length) Application data (variable length)

TCP Reliable All bytes sent are guaranteed to be received identically, and in the correct order

TCP segment structure Bit Source port Destination port Sequence number 1 2 3 4 5 6 7 8 9 Source port Destination port 32 Sequence number 64 Acknowledgement number 96 ACK SYN FIN Window size 128 Checksum Options (variable length) Application data (variable length) Sequence number The accumulated sequence number of the first data byte of this segment for the current session Acknowledgement number The next sequence number the receiver expects The receiver acknowledges receipt of all prior bytes

Connection establishment Three-way handshake Host A Host B [SYN] Seq=A [SYN, ACK] Seq=B, Ack=A+1 [ACK] Seq=A+1, Ack=B+1

Data transfer Host Server Seq=1, Ack=1, Len=37 Seq=1, Ack=38, Len=0

Connection termination Four-way handshake Host A Host B [FIN] [ACK] [FIN] [ACK]

Practice 1 Capture packets while downloading http://www4.comp.polyu.edu.hk/~cswklee/TCP/5000.t xt To reveal information of packets that say [TCP segment of a reassembled PDU]: Right-click on any TCP layer → Protocol Preferences → Uncheck Allow subdissector to reassemble TCP streams To reveal the application data contained in the TCP segments: Analyze → Enabled Protocols → Uncheck HTTP → OK

Practice 1 Question 1 (4 marks) What is the TCP port number used by your computer to transfer the file? What is the TCP port number used by the server to receive the file? Question 2 (4 marks) What is the sequence number of the TCP SYN segment that establishes the TCP connection between your computer and the server? What indicates that the segment is a SYN segment?

Practice 1 Question 3 (6 marks) What is the sequence number of the SYN/ACK segment that the server responds the SYN with? How about its acknowledgement number? How does the server determine this value? What indicates that the segment is a SYN/ACK segment? Question 4 (4 marks) What are the sequence numbers of the data- containing segments in the TCP connection related to the file transfer? What is the length of each of them?

Practice 1 One way to view the round-trip time (RTT) of the TCP segments: Right-click on any column’s header → Column Preferences → Click the add button → Enter tcp.analysis.ack_rtt into Field Name → OK Question 5 (2 marks) What is the RTT of each of the data-containing segments?

Practice 2 Download and open a modified packet capture from http://www4.comp.polyu.edu.hk/~cswklee/TCP/piggyba cking.pcap

Practice 2 The packet capture shows a partial interaction between a client and a TCP server. After a normal TCP three-way handshake, the client begins data transfer to the server. Instead of sending a pure TCP ACK to the client, the server sends the acknowledgement along with the data (the acknowledgement is piggy-backed on the data). This is known as piggybacking. Question 6 (6 marks) What is the payload size of the TCP data packet sent from the server? What is the TCP/IP overhead? Assume the sizes of the TCP and IP headers remain unchanged. How much more TCP/IP data would the server need to transmit if piggybacking is not used?

Practice 3 Download and open a modified packet capture from http://www4.comp.polyu.edu.hk/~cswklee/TCP/GFW.pc ap

Practice 3 The packet capture shows that the Great Firewall (GFW) injects a series of forged TCP Reset (RST) packets upon seeing a request with blacklisted keywords, i.e. “falun” Question 7 (6 marks) How many TCP RST packets are injected by the GFW? What is the difference of the sequence numbers between each subsequent TCP RST packet? What is special about this number in TCP? Why does the GFW inject TCP RST packets with these specific sequence numbers?