Internet protocols, TCP/IP suite

Similar documents
The Internet Protocol (IP)

Introduction to Internetworking

ECE4110 Internetwork Programming. Introduction and Overview

Internetwork Protocols

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

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

TCP /IP Fundamentals Mr. Cantu

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

CHAPTER-2 IP CONCEPTS

Review of Important Networking Concepts

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Internet Networking recitation #2 IP Checksum, Fragmentation

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

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Network layer: Overview. Network Layer Functions

IPv4. Christian Grothoff.

ECE 4450:427/527 - Computer Networks Spring 2017

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

EE 610 Part 2: Encapsulation and network utilities

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Interconnecting Networks with TCP/IP

ET4254 Communications and Networking 1

Vorlesung Kommunikationsnetze

Introduction to routing in the Internet

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

The Internet. The Internet is an interconnected collection of netw orks.

Router Architecture Overview

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Introduction to routing in the Internet

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

Data & Computer Communication

TCP/IP THE TCP/IP ARCHITECTURE

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

internet technologies and standards

TCP/IP and the OSI Model

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Lecture 11: Networks & Networking

IP Protocols. ALTTC/Oct

Lecture 8. Network Layer (cont d) Network Layer 1-1

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

CE3005: Computer Networks Laboratory 3 SNIFFING AND ANALYSING NETWORK PACKETS

Chapter 4: Network Layer

Network Layer: Internet Protocol

Position of IP and other network-layer protocols in TCP/IP protocol suite

SEN366 (SEN374) (Introduction to) Computer Networks

Network Layer: Control/data plane, addressing, routers

CS 455 Internet Architecture, Page 3 ffl By 1985, the ARPANET was heavily used and congested; the National Science Foundation (NSF) initiated the NSFN

IP : Internet Protocol

Scribe Notes -- October 31st, 2017

CSCI Networking Name:

Introduction to TCP/IP networking

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

Chapter 5 OSI Network Layer

06/02/ Local & Metropolitan Area Networks 0. INTRODUCTION. 1. History and Future of TCP/IP ACOE322

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

TSIN02 - Internetworking

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

Chapter 7 Internet Protocol Version 4 (IPv4) Kyung Hee University

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

(Chapters 2 3 in Huitema) E7310/Internet basics/comnet 1

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

End-to-End Communication

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

Hands-On IP for TeleCom Technicians Internetworking, TCP/IP, VLANS, Wirelss and more...

TCP/IP Protocol Suite

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

CSC 401 Data and Computer Communications Networks

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

Computer Networks (Introduction to TCP/IP Protocols)

Network Protocols - Revision

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

EEC-484/584 Computer Networks

CSCI Computer Networks Fall 2016

Defining Networks with the OSI Model. Module 2

Network and Security: Introduction

Lecture 3. The Network Layer (cont d) Network Layer 1-1

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

Need For Protocol Architecture

Need For Protocol Architecture

Internet Protocol (IP)

Network Layer PREPARED BY AHMED ABDEL-RAOUF

IP - The Internet Protocol

CSCI-GA Operating Systems. Networking. Hubertus Franke

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Transport Layer. Chapter 4: Application Protocols.

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Network Layer: Router Architecture, IP Addressing

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 8

Transcription:

Internet protocols, TCP/IP suite S-72.353 March 20, 2000 L353_8.shw Slide 1 of 23

Layered structure of TCP/IP /D\HU 6HUYL FHV 6073 '16 KWWS )73 7(/1(7 7 &3 8 '3 193,3,& 03,3 $53 5$53 &60$&' 7RNHQ ULQJ 36'1 2WK HUV The vital protocols are IP, ICMP, TCP, and UDP. They serve numerous application protocols. TCP/IP works on top of either LAN or WAN protocols. Any physical layer can be used. TCP/IP does not follow the OSI layer model, it preceded it. Its logical structure is messy. It has arisen from the needs to solve practical problems. Other protocols will be described in turn later. March 20, 2000 L353_8.shw Slide 2 of 23

AP Seppo J. Halme Operation of the Internet The operation of the internet can be described as follows: The sending application program (AP) prepares its data and calls on its LAN module (LNI) to send that data as a datagram and passes the destination address and other parameters as arguments of the call. The internet module (IM) prepares a datagram header and attaches the data to it. The internet module determines a LAN address for this internet address, in this case it is the address of a gateway. It sends this datagram and the local network address to the LAN interface (LNI). The LAN interface (LNI) creates a local network header, and attaches the datagram to it, then sends the result via the LAN (LAN-1). Gateway host IM IM IM LNI LNI-1 LNI-2 LNI LAN-1 LAN-2 March 20, 2000 L353_8.shw Slide 3 of 23 AP

Operation of internet continued The datagram arrives at a gateway host wrapped in the LAN header, the LAN interface (LNI-1) strips off this header, and turns the datagram over to the internet module (IM). The internet module determines from the internet address that the datagram is to be forwarded to another host in a second network. The internet module determines a LAN address for the destination host. It calls on the LAN interface (LNI-2) for that network to send the datagram. This LAN interface creates a local network header and attaches the datagram sending the result to the destination host. At this destination host the datagram is stripped of the local net header by the LAN interface (LNI) and handed to the internet module (IM). The internet module (IM) determines that the datagram is for an application program in this host. It passes the data to the application program in response to a system call, passing the source address and other parameters as results of the call. March 20, 2000 L353_8.shw Slide 4 of 23

Lower layers (2) The internet is built for the purpose of exploiting Local Area Networks (LAN). Typically CSMA/CD or Token ring local area networks are exploited. Hosts and gateways may also have wide area networks (WAN) links. ATM (Asynchronous Transmission Mode) and Frame Relay links are also used. For ATM IP is usually linked at AAL layer. March 20, 2000 L353_8.shw Slide 5 of 23

Network layer (3) IP (Internet Protocol) offers services interconnecting networks for layer 4 clients. The protocol uses datagrams that are sent between hosts. ICMP (Internet Control Message Protocol) is used by internet hosts and gateways to probe the status of internet services. ARP (Address Resolution Protocol) is needed to find the LAN address related to the host IP address. RARP:tä (Reverse ARP) is needed to find the IP address related to a host LAN address. March 20, 2000 L353_8.shw Slide 6 of 23

Transport layer (4) TCP (Transmission Control Protocol) takes care of reliable transmission of the byte stream within a logical connection. UDP (User Datagram Protocol) is a connectionless protocol which is used to perform transactions without acknowledgements. NVP (Network Voice Protocol) is an option for voice transmission. March 20, 2000 L353_8.shw Slide 7 of 23

Higher layer services (5-7) Typical higher layer services are TelNet (Telecommunications Network) offers virtual terminal services which allow the terminal users access to hosts. FTP (File Transfer Protocol) is used for file transportation between hosts. SMTP (Simple Mail Transfer Protocol) offers electronic mail service between hosts. DNS (Domain Name Service) is used to convert host names to internet addresses. Http (HyperText Transfer Protocol) is used within www-service (World Wide Web) to convey pages with different elements. March 20, 2000 L353_8.shw Slide 8 of 23

IP The task of IP is to connect two or more packet networks to an internet. IP is a relatively simple connectionless protocol with only one state. The internet architecture consists of two levels: (1) a collection of networks and (2) networks, which may contain subnetworks. Hosts are connected either to networks or subnetworks. March 20, 2000 L353_8.shw Slide 9 of 23

IP layer 8/3,3 //& &60$&' The task of the IP is to send datagrams to the internet. IP gives services to Upper Layer Protocols (ULP) and it uses the services of the link level. The IP service is not reliable. The receiving host may discard packets if its buffers overflow. The IP does not notice if the link layer has lost or discarded any packets. The IP isolates upper layers from LAN addresses. March 20, 2000 L353_8.shw Slide 10 of 23

Phases of communication (IP) 1. The ULP submits data to be transmitted by IP. 2. The IP packs data in an internet datagram and transmits it to the link layer protocols (LLC + CSMA/CD in a LAN). 3. If the destination host is located in the same LAN, IP sends it directly to this host. 4. If the destination host is in some other LAN, the IP sends the datagram to the nearest gateway. 5. The gateway addresses the datagram to the destination host in another network if the host is there, otherwise to the next gateway. 6. By repeating this procedure the datagram will be either eventually forwarded to the destination host or it will be lost in the collection of networks. 7. The receiving host will dismantle its datagram and will submit it to the ULP program to be processed. March 20, 2000 L353_8.shw Slide 11 of 23

IP Gateway The IP gateway contains the internet module on two LAN interface modules. The chain of internet modules forms the gateway route. This does not refer to the internal routing of any of participating networks. Gateways need information on the structure of gateway network. Local gateways may use any appropriate program. Public networks use the Exterior Gateway Protocol (RFC904) March 20, 2000 L353_8.shw Slide 12 of 23

IP header IP header structure: [VER,IHL,TOS,TL,ID,F, FO, TTL, PROT, CRC, SOURCE, DEST, OPT, PADD] VER version (4 bits) ; IHL Internet Header Length in units of 32 bits (8 bits); TOS Type of Service (8 bits); TL Length of the datagram (Total Length) (16 bits); March 20, 2000 L353_8.shw Slide 13 of 23

IP packet fragmentation In various subnetworks or WAN sections the packet size may be smaller than the original packet size (X25 128 bytes) which requires fragmentation of IP packets. In fragmented packets special fields are needed: ID (Identification) indicates the identity of the datagram to which a fragment belongs (16 bits); F (Flag) indicates if the datagram can be fragmented and whether more fragments are coming. (3 bits); FO position of the fragment in the datagram (Fragment Offset). In an unfragmented datagram or its first fragment FO=0 (13 bits). March 20, 2000 L353_8.shw Slide 14 of 23

More field definitions for the IP header TTL Lifetime of the datagram (Time to Live), at most 255 s. TTL is reduced by one at every router. If TTL=0, the datagram is deleted. (8 bits). The default initial value is usually 64. PROT Protocol refers to that higher level protocol that sent the datagram (16 bits). CRC Header Checksum is computed by summing one s complement values of the 16 bit words in the header and by taking one s complement value of the sum. SOURCE The Source Address (internet address) of the sending host (32 bits). DEST Destination Address (32 bits). March 20, 2000 L353_8.shw Slide 15 of 23

More field definitions for the IP header (2) OPT Options). Contains three subfields, copy, class and number. Class may be control or debugging. Possible additions to IP (number indicated, V if variable length): (may have security problems) (0) end of option list (1) no operation, indicates padding. (2) basic security option V (3) loose source routing V (4) internet timestamps V (5) extended security optionv (6) record route V (7) stream identifier 4 (8) strict source routing V PADD Padding. March 20, 2000 L353_8.shw Slide 16 of 23

IP header geometrically RCF0791 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Version IHL Type of Service Total Length +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Identification Flags Fragment Offset +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Time to Live Protocol Header Checksum +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Source Address +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Destination Address +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Options Padding +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Example Internet Datagram Header March 20, 2000 L353_8.shw Slide 17 of 23

Classes of IP networks Hosts networks Few Intermediate Many Very many A Intermediate B Few C This is the initial classification of internet addresses in classes A, B and C. The intention is to provide possibilities for different size networks using dotted quad notation 139.130.204.8. March 20, 2000 L353_8.shw Slide 18 of 23

More on IP classes Class Bits Network Host Network mask 1-3 bits bits A 0 7 24 FF000000H B 10 14 16 FFFF0000H C 110 21 8 FFFFFF00H The classes are indicated by bits 1-3. The second field in address is reserved for networks. The third field is for host bits. The network mask is used to address hosts within own network. March 20, 2000 L353_8.shw Slide 19 of 23

IP-classes and types of addresses Class Network I Host ID Adress range A 8 24 0.0.0.0-127.255.255.255 B 16 16 128.0.0.0-191.255.255.255 C 24 8 192.0.0.0-223.255.255.255 D 224.0.0.0-239.255.255.255 The class A is intended for really large networks, at most 255. Class C is for small networks which have at most 255 hosts. A class B network may have at most 65536 hosts Altogether this arrangement is inflexible, most networks would be class B and its size is too large. March 20, 2000 L353_8.shw Slide 20 of 23

Symbolic notation of hosts and networks The addresses are usually given in a symbolic form. The symbolic address of the host consists of three words separated by dots. The last word is known as domain, often a country, in Finland fi. Common domains are com, org, net. The middle word is a symbol for the network, which is common to some organization, e.g. Helsinki University of Technology uses hut. The first symbol is the symbolic name of the host. March 20, 2000 L353_8.shw Slide 21 of 23

DNS Domain Name System (DNS). Allows use of symbolic addresses, DNS names When a DNS name is used the client has to have access to a DNS server to have access to the IP address, which is then passed to the IP protocol.

Examples of host names?? One should realize that in fast moving technology hosts are short-lived and so are their names. 128.214.248.6. nic.funet.fi Data store of the Funet network. 130.233.224.20. vipunen.hut.fi: IBM Risc-type computer dedicated to communications. 130.233.161.140. tiltu.hut.fi: Unix-server of Communications Laboratory 130.233.160.33 clara.hut.fi: Server of XX 130.233.160.57 tiltux.hut.fi: Work station HP 9000/710 at Communications Laboratory. 130.233.161.169 tlt-nt3.hut.fi: www-server of Communications Laboratory, also known as by its alias name www.comlab.hut.fi. 130.233.161.159. tlt-pc19: A PC at Communications laboratory March 20, 2000 L353_8.shw Slide 22 of 23

Classless Inter-Domain Routing (CIDR) CIDR ( cider ) RFC 1519, 1517, 1338 In this system the network part of the address may have any value. The network address would now have the format a.b.c.d/x, where x indicates the number of leading bits that constitutes the network portion of the address. The remaining 32-x bits are used to identify the hosts within the organization. March 20, 2000 L353_8.shw Slide 23 of 23