TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

Similar documents
TSIN02 - Internetworking

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

OSI Transport Layer. objectives

TSIN02 - Internetworking

TCP /IP Fundamentals Mr. Cantu

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

Transport Layer. <protocol, local-addr,local-port,foreign-addr,foreign-port> ϒ Client uses ephemeral ports /10 Joseph Cordina 2005

TSIN02 - Internetworking

TSIN02 - Internetworking

Networking Technologies and Applications

CCNA 1 v3.11 Module 11 TCP/IP Transport and Application Layers

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

Transport Layer (TCP/UDP)

Chapter 5 End-to-End Protocols

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

UNIT V. Computer Networks [10MCA32] 1

9th Slide Set Computer Networks

Hands-On Ethical Hacking and Network Defense

4. The transport layer

ECE 650 Systems Programming & Engineering. Spring 2018

System Programming. Introduction to computer networks

Network Model. Why a Layered Model? All People Seem To Need Data Processing

User Datagram Protocol

Transport Protocols. Raj Jain. Washington University in St. Louis

QUIZ: Longest Matching Prefix

Transport Layer Review

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Transport Layer. -UDP (User Datagram Protocol) -TCP (Transport Control Protocol)

EEC-682/782 Computer Networks I

Internet and Intranet Protocols and Applications

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

UDP, TCP, IP multicast

6. The Transport Layer and protocols

4.0.1 CHAPTER INTRODUCTION

Review of Important Networking Concepts

Lecture 3: The Transport Layer: UDP and TCP

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

Network Technology 1 5th - Transport Protocol. Mario Lombardo -

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

CSEP 561 Connections. David Wetherall

CMPE 80N: Introduction to Networking and the Internet

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network

TCP/IP THE TCP/IP ARCHITECTURE

CHAPTER-2 IP CONCEPTS

Topics. TCP sliding window protocol TCP PUSH flag TCP slow start Bulk data throughput

The Transport Layer. Part 1

NT1210 Introduction to Networking. Unit 10

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

Introduction to Network. Topics

05 Transmission Control Protocol (TCP)

Connection-oriented (virtual circuit) Reliable Transfer Buffered Transfer Unstructured Stream Full Duplex Point-to-point Connection End-to-end service

Linux Networking: tcp. TCP context and interfaces

7. TCP 최양희서울대학교컴퓨터공학부

The Transmission Control Protocol (TCP)

CSEP 561 Connections. David Wetherall

CS 716: Introduction to communication networks th class; 7 th Oct Instructor: Sridhar Iyer IIT Bombay

CSE 461 Connections. David Wetherall

EE 610 Part 2: Encapsulation and network utilities

The Transport Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Introduction to TCP/IP networking

Transport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections

ECE4110 Internetwork Programming. Introduction and Overview

TCP: Transmission Control Protocol RFC 793,1122,1223. Prof. Lin Weiguo Copyleft 2009~2017, School of Computing, CUC

Agenda. Before we start: Assignment #1. Routing in a wide area network. Protocols more concepts. Internetworking. Congestion control

Sirindhorn International Institute of Technology Thammasat University

Introduction to Networking

CSCI-GA Operating Systems. Networking. Hubertus Franke

Transport Layer Protocols. Internet Transport Layer. Agenda. TCP Fundamentals

Interconnecting Networks with TCP/IP

CS457 Transport Protocols. CS 457 Fall 2014

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

Simulation of TCP Layer

Lenuta Alboaie Computer Networks

Computer Network Programming. The Transport Layer. Dr. Sam Hsu Computer Science & Engineering Florida Atlantic University

ch02 True/False Indicate whether the statement is true or false.

Transmission Control Protocol. ITS 413 Internet Technologies and Applications

TCP/IP Networking Basics

Transport Layer. The transport layer is responsible for the delivery of a message from one process to another. RSManiaol

Chapter 6. What happens at the Transport Layer? Services provided Transport protocols UDP TCP Flow control Congestion control

UNIT IV TRANSPORT LAYER

TCP/IP Transport Layer Protocols, TCP and UDP

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

TCP/IP. Chapter 5: Transport Layer TCP/IP Protocols

Some slides courtesy David Wetherall. Communications Software. Lecture 4: Connections and Flow Control. CSE 123b. Spring 2003.

Paper solution Subject: Computer Networks (TE Computer pattern) Marks : 30 Date: 5/2/2015

Chapter 24. Transport-Layer Protocols

Unit 2.

Operating Systems and Networks. Network Lecture 8: Transport Layer. Adrian Perrig Network Security Group ETH Zürich

Operating Systems and Networks. Network Lecture 8: Transport Layer. Where we are in the Course. Recall. Transport Layer Services.

Just enough TCP/IP. Protocol Overview. Connection Types in TCP/IP. Control Mechanisms. Borrowed from my ITS475/575 class the ITL

Network and Security: Introduction

Lecture-4. TCP/IP-Overview:

Transcription:

TRANSMISSION CONTROL PROTOCOL ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

ETI 2506 - TELECOMMUNICATION SYLLABUS Principles of Telecom (IP Telephony and IP TV) - Key Issues to remember 1. Ports Numbers and Network Sockets 2. Role of IANA in assignment of port addresses 3. TCP Headers 4. TCP congestion Control 2

WHAT IS A PORT? 1. A port is an endpoint of communication in an operating system. While the term is also used for hardware devices, in software it is a logical construct that identifies a specific process or a type of network service. 2. A port is always associated with an IP address of a host and the protocol type of the communication, and thus completes the destination or origination address of a communication session. 3. 1024 well-known port numbers are reserved by convention to identify specific service types on a host. 4. Transport layer protocols, such as the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) primarily use ports.

WHICH PORT- HARDWARE OR SOFTWARE? (a) Hardware Ports (a) Software Ports

PORT NUMBERS 1. The port numbers are divided into three categories: a) Well-known ports b) Registered ports c) Dynamic or Private ports. 2. Well-known ports (also known as system ports) are those from 0 through 1023. 3. Internet Assigned Numbers Authority (IANA) is responsible for: a. Registration of port numbers. b. Global coordination of the DNS Root c. IP address Assignment d. Internet protocol resources

SOME WELL KNOWN PORTS 21: File Transfer Protocol (FTP) 22: Secure Shell (SSH) 23: Telnet remote login service 25: Simple Mail Transfer Protocol (SMTP) 53: Domain Name System (DNS) service 80: Hypertext Transfer Protocol (HTTP) used in the World Wide Web 110: Post Office Protocol (POP3) 119: Network News Transfer Protocol (NNTP) 123: Network Time Protocol (NTP) 143: Internet Message Access Protocol (IMAP) 161: Simple Network Management Protocol (SNMP) 194: Internet Relay Chat (IRC) 443: HTTP Secure (HTTPS)

NETWORK SOCKET 1. A network socket is one endpoint in a communication flow between two programs usually over a network. 2. Sockets are created and used with a set of programming requests or "function calls" sometimes called the sockets application programming interface (API). 3.. Sockets can also be used for communication between processes within the same computer 4. An Internet socket address is the combination of an IP address and a port number.

SOCKET REQUESTS SERVER SIDE socket() bind() recvfrom() (wait for a sendto request from some client) (process the sendto request) sendto (in reply to the request from the client...for example, send an HTML file) CLIENT SIDE socket() bind() sendto() recvfrom()

WHAT IS TRANSMISSION CONTROL PROTOCOL (TCP)? 1. TCP provides a connection oriented, reliable, byte stream service. 2. The term connection-oriented means the two applications using TCP must establish a TCP connection with each other before they can exchange data. 3. It is a full duplex protocol, meaning that each TCP connection supports a pair of byte streams, one flowing in each direction. 4. TCP includes a flow-control mechanism for each of these byte streams that allows the receiver to limit how much data the sender can transmit.

TCP HEADER Source Port Identifies the source Destination Port Identifies the destination Acknowledgement number Contains the next sequence number that the sender of the acknowledgement expects to receive. Sequence Number Identifies the byte in the stream of data from the sending TCP to the receiving TCP that the first byte of data in this segment represents.

TCP HEADER (2) Header length The length of the header. Required because the length of the options field is variable TCP Checksum Computed on TCP segment, TCP header and the TCP data Flags field Used to relay control information between TCP peers. The possible flags include SYN, FIN, RESET, PUSH, URG, and ACK. Window size Used to advertises a sliding window size to the sender

DETAILS OF THE FLAG FIELD 1. SYN and FIN used when establishing and terminating a TCP connection, respectively. 2. ACK set any time the Acknowledgement field is valid, implying that the receiver should pay attention to it. 3. URG signifies that this segment contains urgent data. 4. PUSH signifies that the sender invoked the push operation. 5. RESET signifies that the receiver has become confused and so wants to abort the connection

TCP STATE TRANSITION DIAGRAM

PRINCIPLE OF CONGESTION CONTROL AT TCP LAYER

CONGESTION CONTROL SLOW START (1) 1. Slow start adds a congestion window, called "cwnd". 2. When a new connection is established the congestion window is initialized to one segment (i.e., the segment size announced by the other end, or the default, typically 536 or 512). 3. Each time an ACK is received, the congestion window is increased by one segment. The sender can transmit up to the minimum of the congestion window and the advertised window. 4. Congestion window is flow control imposed by the sender based on it s assessment of perceived network congestion. 5. Advertised window is flow control imposed by the receiver based on amount of available buffer space.

CONGESTION CONTROL SLOW START (2) 5. The sender starts by transmitting one segment and waiting for its ACK. When that ACK is received, the congestion window is incremented from one to two, and two segments can be sent. 6. When each of those two segments is acknowledged, the congestion window is increased. This provides an exponential growth, although it is not exactly exponential because the receiver may delay its ACKs, typically sending one ACK for every two segments that it receives. 7. At some point the capacity of the internet will be reached, and an intermediate router will start discarding packets.

DATA ENCAPSULATION (1) 1. When a host transmits data across a network to another device, the data goes through encapsulation as follows: a) Data is wrapped with protocol information at each layer of the OSI model. b) Each layer communicates only with its peer layer on the receiving device. c) To communicate and exchange information, each layer uses Protocol Data Units (PDUs). d) PDUs hold the control information attached to the data at each layer of the model. e) PDUs are usually attached to the header in front of the data field but can also be in the trailer, or end, of it. f) PDU information is read only by the peer layer on the receiving device.

DATA ENCAPSULATION (2)

DATA ENCAPSULATION TCP/IP IP Header TCP Header

TCP Payload IP Header http://www.learncisco.net/cisco-practice-tests.html