TCP/IP Objective: Understand the Basic Concepts of Protocols and Get to know the basics of TCP/IP (the building blocks of the Web)

Slides:



Advertisements
Similar presentations
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Advertisements

Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
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.
Intermediate TCP/IP TCP Operation.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
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
TELE202 Lecture 14 TCP/UDP (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (1) »Source: chapter 17 ¥This Lecture »TCP/UDP (2) »Source: chapter.
Copyright 1999, S.D. Personick. All Rights Reserved. Telecommunications Networking II Lecture 32 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Gursharan Singh Tatla Transport Layer 16-May
Chapter Overview TCP/IP Protocols IP Addressing.
CS 356 Systems Security Spring Dr. Indrajit Ray
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
NetworkProtocols. Objectives Identify characteristics of TCP/IP, IPX/SPX, NetBIOS, and AppleTalk Understand position of network protocols in OSI Model.
Chapter 9.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
Huda AL_Omairl - Network 71 Protocols and Network Software.
TCP/IP Protocol Suite Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
TCP Lecture 13 November 13, TCP Background Transmission Control Protocol (TCP) TCP provides much of the functionality that IP lacks: reliable service.
University of the Western Cape Chapter 12: The Transport Layer.
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Copyright 2002, S.D. Personick. All Rights Reserved.1 Telecommunications Networking II Topic 20 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Networking Basics CCNA 1 Chapter 11.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
1 Kyung Hee University Chapter 11 User Datagram Protocol.
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Process-to-Process Delivery:
Chapter 11 User Datagram Protocol
The Transport Layer Implementation Services Functions Protocols
Transport Layer.
TCP/IP Transmission Control Protocol / Internet Protocol
CCNA 2 v3.1 Module 10 Intermediate TCP/IP
Process-to-Process Delivery:
Lecture 2: Overview of TCP/IP protocol
TCP and UDP Layer 3 of the TCP/IP protocol stack. Transport layer
CPEG514 Advanced Computer Networkst
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
The TCP/IP Model.
Transport Layer 9/22/2019.
Presentation transcript:

TCP/IP Objective: Understand the Basic Concepts of Protocols and Get to know the basics of TCP/IP (the building blocks of the Web)

Communications Architecture: Introduction Communications functions can be divided into subset activities concept of layered communications Each activity can be looked as a layer – A layer provides a specific service (function) to other layers – A layer has a specific protocol (control messages) to connect to other systems Two standards: – IBM’s proprietary SNA – ISO’s Reference Model for Open Systems Interconnection (OSI model)

The OSI Model 7Application 6Presentation 5Session 4Transport 3Network 2Data Link 1Physical Lower Layer connects one node to another LayerFunction NetworkChoosing the next node and the link to it Data LinkControls the flow of messages on the chosen link PhysicalConnecting to the physical medium that provides the link Upper Layer directly assist the user LayerFunction ApplicationProvides services directly to an application program PresentationPresentation of information to user in a format that the user will understand SessionControls the user to user dialogue – its direction and synchronization TransportRaises the quality of service provided by the network to the level required by user

The Internet Protocol Suite Application Transport Network Link Physical Fiber TelnetDNS UDP TCP IP EthernetWi-Fi Co-ax HTTP Radio

TCP/IP Transmission Control Protocol/Internet Protocol TCP/IP allows networks of different types to interconnect

Inter-net Protocol & Internet Addresses Network layer protocol whose job is to send packets or datagrams to send packets from one point to another Each destination is specified by an IP address – IPv4: Each address has 4 8 bit numbers – Represented in dotted decimal places – A 8 bit number can represent in decimal place – A typical number therefore looks like – IPv6 allows a larger number of addresses (among other advantages) IP Addresses: Static or Dynamic – Static useful on infrastructure situations – Dynamic addresses changes everytime a machine logs on – Dynamic addresses are most often assigned by Dynamic Host Configuration Protocol (DHCP)

IP Characteristics IP is a connectionless protocol – No concept of a job or a session (each packet is treated as an entity in itself) IP is an unreliable protocol – It is unconcerned with whether a packet reaches its eventual destination, or whether they arrive in the original order – IP cannot tell if packets were lost or whether they were received out of order IP packets are not identified as a part of a sequence or belonging to a particular job.

IP Packet Header VersionHeader lengthService typeTotal length IdentificationFlagsFragment Offset Time to liveProtocolHeader checksum Source address Destination address IP OptionsPadding The protocol field in the header information identifies which higher level TCP/IP protocol sent the data. When data arrives at its destination this field tells IP which protocol module to pass it on to. The time-to-live (TTL) field, specifies how long the packet is allowed to reamin in the internet delivery system and is decremented by by every router that the packet passes through. When it reaches zero the packet is discarded and the sender. This prevents packets from traveling the Internet forever. The checksum is an error detection checksum covering only the fields of the header.

ARP & ICMP: Accompanying Protocols Address Resolution Protocol (ARP) finds out the physical address corresponding to an IP address – When an IP Packet is received, an ARP request is brodcasted on the network. When a host recognizes an ARP request containing its own IP address, it sends an ARP reply containing its hardware address. This address is cached. – There is also a Reverse ARP (RARP) protocol. This is used by a host to find out its own IP address if it has no way of doing this except via the network. Internet Control Message Protocol: – Defines the format of control messages that are sent to the sender indicating that a problem has occurred

TCP Characteristics TCP is a connection-oriented protocol – The client & the server must establish a connection before any data can be transferred between them. TCP provides reliability – TCP knows that data it sends is received at the other end, and that it is received correctly. – TCP uses checksums on both headers and data. TCP ensure Data which arrives out of sequence is put back into order TCP also implements flow control, so a sender cannot overwhelm a receiver with data.

TCP Packet Header Source PortDestination Port Sequence Number Acknowledgement Number Header LengthCode BitsWindow ChecksumUrgent pointer OptionsPadding TCP sends data using IP, in blocks which are called segments. The Port number identifies a particular user within a machine (which is identified by the IP address The sequence number identifies the position in the data stream The acknowledgement number is used to convey back to the sender that data has been received correctly. The window size gives the number of bytes the receiver can accept. The checksum covers both header and data The urgent pointer identifies the start of data in the stream that must be processed urgently.

What is a Port? Refers in this context a software port Multiple applications or upper layer protocols may use TCP simultaneously – Ports are used to map TP data to a specific process – The combination of an IP address and a port number is called a socket – Sockets can be full duplex (data transmitted in both directions) or half duplex Typical Port numbers: – 20/21 FTP – 23 Telnet – 25 Simple Mail Transfer Protocol – 37 Time – 53 Domain Name System – 80 HTTP – 110 POP3 – 443 HTTPS

TCP Communication: Making a Connection A connection must be established before any data is sent Segments are only sent between client and server if there is data to flow. No status polling takes place. To Start: – The server listens out for connection requests. – The client requests a connection by sending specifying its own port number and the port that it wants to connect to. – The SYN (synchronize sequence numbers) flag is set and the client’s initial data sequence number is specified. Next: – The server responds with a segment in which the header contains its own initial data sequence number. To complete the connection : – the client acknowledges the server’s data sequence number by sending back a segment with the ACK flag set and the acknowledgement field containing the server’s data sequence number plus one.

TCP Communication: Data Transmission TCP is a sliding window protocol, and does not wait for acknowledgement To prevent overflow of receiver buffer: – An acknowledgement is sent containing the with the window size set to zero. – Later a windows update is sent, specifying the new window size. For efficiency: – TCP can specify an acknowledgement delay in the hope that within that time some data will need to be sent the other way, and the two can ride together – The Nagle algorithm allows a TCP segment containing less data than the receiver’s advertised window size can only be sent if the previous segment has been acknowledged. This allows aggregation of small amounts of data

TCP Communication: Error Correction In error situations TCP can: – detect whether data has been successfully received at the other end – take steps to rectify the situation. – inform the sending application of the problem and failure, if all else fails, Data lost or corrupted. – TCP keeps track of the acknowledgements for the data it sends. – If an acknowledgement is not received within an specified time data is resent – Time interval TCP will wait before depends on the connection speed (The protocol monitors the time it normally takes to receive an acknowledgement) – Data is resent repeatedly, at ever-increasing intervals, until either a response is received or an application timeout value is exceeded Deadlock of flow – a receiver stops the data flow by setting its window size to zero and the window update segment that is meant to start data flowing again is lost. – To prevent deadlock from occurring, TCP sends out window probe messages at regular intervals to query the receiver about its window size.

TCP Communication: Communication Closure Each direction of data flow must be closed down separately. Steps: – One end of the connection sends a segment in which the FIN (finished sending data) flag is set. – The receipt of this segment is acknowledged, – The receiving end notifies its application that the other end has closed that half of the connection.

User Datagram Protocol UDP is a simple protocol UDP is unreliable and connectionless – A connection with a host is not necessary before exchanging data – No mechanism for ensuring that data sent is received Main function is to specify the upper layer protocols Useful for broadcasting since it does not require a connection

UDP Packet Header Source PortDestination Port Message lengthChecksum Two different application one using UDP and another using TCP may use the same port number. The two data streams are distinguished by the protocol field in the IP address header The checksum is optional.

Unicast, Broadcast, Multicast Unicast One sender – one receiver Broadcast Sends data to all possible receivers Multicast Sends data to interested receivers Applications of IP Multicast: Pay TV File Transfer Financial Information But is complex to implement