Data and Computer Communications Eighth Edition by William Stallings Chapter 18 – Internet Protocols.

Slides:



Advertisements
Similar presentations
Computer Networks with Internet Technology William Stallings
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 - The Internet Protocol Version 4
CS 408 Computer Networks Chapter 08: Internet Protocols.
Network Layer Pertemuan 17 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol.
William Stallings Data and Computer Communications 7 th Edition Chapter 18 Internet Protocols.
1 K. Salah Module 5.2: Internet Protocol CO vs. CL protocols IP Features –Fragmentation –Routing IP Datagram Format IPv6.
1 14. Internetworking. Prof. Sang-Jo Yoo 2 Contents  Internetworking Terms  Principles of Internetworking  Connectionless Internetworking  The Internet.
EE 4272Spring, 2003 Chapter 15&16 Internetworking Internetwork Structure & Terms Internetworking Architecture Features  Connection/Connectionless Architecture.
1 Pertemuan 19 Layer Network Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 5 The Network Layer.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 18 – Internet Protocols.
Semester Copyright USM EEE442 Computer Networks Introduction: Protocols En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
EEE449 Computer Networks Internetworking.
Semester Copyright USM EEE442 Computer Networks Internetworking En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
EE 4272Spring, 2003 Protocols & Architecture A Protocol Architecture is the layered structure of hardware & software that supports the exchange of data.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Transport Layer.
Data Communications Architecture Models. What is a Protocol? For two entities to communicate successfully, they must “speak the same language”. What is.
Internet Protocol-IP. Objective l TCP/IP vs. OSI models l CO vs. CL protocols l IP Features »Fragmentation »Routing l IP Datagram Format l IPv6.
William Stallings Data and Computer Communications 7 th Edition Chapter 2 Protocols and Architecture.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
William Stallings Data and Computer Communications 7th Edition
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer Internet Protocol (IP) layer Introduction.
1 Business Telecommunications Data and Computer Communications Chapter 15 Internetwork Protocols.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 18 – Internet Protocols.
William Stallings Data and Computer Communications 7 th Edition Chapter 18 Internet Protocols.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
University of the Western Cape Chapter 12: The Transport Layer.
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
CSC 581 Communication Networks II Chapter 8a: Internetworking and Internet Protocol(IP) Dr. Cheer-Sun Yang.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
CS 4396 Computer Networks Lab
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
 The Internet Control Message Protocol (ICMP) is one of the core protocols of the Internet protocol suite. It is chiefly used by networked computers'
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.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 18 – Internet Protocols.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
CSCI 465 D ata Communications and Networks Lecture 24 Martin van Bommel CSCI 465 Data Communications & Networks 1.
William Stallings Data and Computer Communications Chapter 15 Internetwork Protocols.
Data and Computer Communications Ninth Edition by William Stallings Data and Computer Communications, Ninth Edition by William Stallings, (c) Pearson Education.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Network Layer - IP.
CSCI 465 D ata Communications and Networks Lecture 25 Martin van Bommel CSCI 465 Data Communications & Networks 1.
CS 408 Computer Networks Chapter 08: Internet Protocols.
Lecture (2).
IP - The Internet Protocol
University of Houston Protocols and Architecture Datacom II Lecture 4
IP - The Internet Protocol
Net 431: ADVANCED COMPUTER NETWORKS
IP - The Internet Protocol
Chapter 20 Network Layer: Internet Protocol
William Stallings Data and Computer Communications 7th Edition
Chapter 08: Internet Protocols
University of Houston Internetwork Protocols Datacom II Lecture 2
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
Chapter 2. Protocols and Architecture
IP - The Internet Protocol
IP - The Internet Protocol
Presentation transcript:

Data and Computer Communications Eighth Edition by William Stallings Chapter 18 – Internet Protocols

Protocol Functions  have a small set of functions that form basis of all protocols encapsulation encapsulation fragmentation and reassembly fragmentation and reassembly connection control connection control ordered delivery ordered delivery flow control flow control error control error control addressing addressing multiplexing multiplexing transmission services transmission services

Encapsulation  data usually transferred in blocks  called Protocol Data Units (PDUs)  have three categories of control  have three categories of control address address error-detecting code error-detecting code protocol control protocol control  encapsulation is addition of control information to data  have many examples of PDU’s in previous chapters e.g. TFTP, HDLC, frame relay, ATM, AAL5, LLC, IEEE 802.3, IEEE e.g. TFTP, HDLC, frame relay, ATM, AAL5, LLC, IEEE 802.3, IEEE

Fragmentation and Reassembly  protocol exchanges data between two entities  lower-level protocols may need to break data up into smaller blocks, called fragmentation  for various reasons network only accepts blocks of a certain size network only accepts blocks of a certain size more efficient error control & smaller retransmission units more efficient error control & smaller retransmission units fairer access to shared facilities fairer access to shared facilities smaller buffers smaller buffers  disadvantages smaller buffers smaller buffers more interrupts & processing time more interrupts & processing time

PDUS and Fragmentation

Connection Control  have connectionless data transfer where each PDU treated independently where each PDU treated independently  and connection-oriented data transfer involves a logical association, or connection, established between entities involves a logical association, or connection, established between entities preferred (even required) for lengthy data exchange preferred (even required) for lengthy data exchange or if protocol details are worked out dynamically or if protocol details are worked out dynamically  three phases occur for connection-oriented connection establishment connection establishment data transfer data transfer connection termination connection termination

Phases of Connection Oriented Transfer

Connection Establishment  entities agree to exchange data  typically, one station issues connection request  may involve central authority  receiving entity accepts or rejects (simple)  may include negotiation  syntax, semantics, and timing  both entities must use same protocol  may allow optional features  must be agreed

Data Transfer and Termination  both data and control information exchanged  data flow and acknowledgements may be in one or both directions  one side may send termination request  or central authority might terminate

Sequencing  used by many, but not all, connection-oriented protocols e.g. HDLC, IEEE e.g. HDLC, IEEE  connection-oriented protocols include some way of identifying connection  have PDUs numbered sequentially  each side tracks seq numbers in and out  to support three main functions ordered delivery ordered delivery llow control llow control error control error control

Ordered Delivery  risk PDUs may arrive out of order  require PDU order must be maintained  hence number PDUs sequentially  easy to reorder received PDUs  use finite sequence number field numbers repeat modulo maximum number numbers repeat modulo maximum number max sequence number greater than max number of PDUs that could be outstanding max sequence number greater than max number of PDUs that could be outstanding

TCP/IP Concepts

Flow Control  receiving entity limits amount / rate of data sent  simplest protocol is stop-and-wait  more efficient protocols use concept of credit amount of data sent without acknowledgment amount of data sent without acknowledgment  must be implemented in several protocols network traffic control network traffic control buffer space buffer space application overflow application overflow

Error Control  to guard against loss or damage  implemented as separate error detection and retransmission functions sender inserts error-detecting code in PDU sender inserts error-detecting code in PDU receiver checks code on incoming PDU receiver checks code on incoming PDU if error, discard if error, discard if transmitter doesn’t get acknowledgment in reasonable time, retransmit if transmitter doesn’t get acknowledgment in reasonable time, retransmit  can use an error-correction code enables receiver to detect and possibly correct errors enables receiver to detect and possibly correct errors  performed at various protocol layers

Addressing  addressing level  addressing scope  connection identifiers  addressing mode

Addressing Level  level in architecture where entity is named  have a unique address for each intermediate and end system  usually a network-level address to route PDU e.g. IP address or internet address e.g. IP address or internet address e.g. OSI - network service access point (NSAP) e.g. OSI - network service access point (NSAP)  at destination data must routed to some process e.g. TCP/IP port e.g. TCP/IP port e.g. OSI service access point (SAP) e.g. OSI service access point (SAP)

Addressing Scope  global address which identifies unique system unambiguous unambiguous synonyms permitted synonyms permitted system may have more than one global address system may have more than one global address global applicability global applicability enables internet to route data between any two systems enables internet to route data between any two systems  need unique address for each interface on network MAC address on IEEE 802 network and ATM host address MAC address on IEEE 802 network and ATM host address enables network to route data units through network enables network to route data units through network  only relevant for network-level addresses  port or SAP above network level is unique within system

Connection Identifiers  is used by both entities for future transmissions  advantages: reduced overhead since smaller reduced overhead since smaller routing using a fixed route tagged by connection ID routing using a fixed route tagged by connection ID multiplexing of multiple connections multiplexing of multiple connections use of state information use of state information

Addressing Mode  address usually refers to single system individual or unicast address individual or unicast address  can refer to more than one system for multiple simultaneous recipients for data multiple simultaneous recipients for data broadcast for all entities within domain broadcast for all entities within domain multicast for specific subset of entities multicast for specific subset of entities

Multiplexing  multiple connections into single system e.g. frame relay, can have multiple data link connections terminating in single end system e.g. frame relay, can have multiple data link connections terminating in single end system e.g. multiple TCP connections to given system e.g. multiple TCP connections to given system  upward multiplexing have multiple higher level connections over a single lower level connection have multiple higher level connections over a single lower level connection  downward multiplexing have single higher level connection built on multiple lower level connections have single higher level connection built on multiple lower level connections

Transmission Services  may have additional services to entities: priority on connection basis or message basis priority on connection basis or message basis quality of service quality of service e.g. minimum throughput or maximum delay thresholde.g. minimum throughput or maximum delay threshold security mechanisms, restricting access security mechanisms, restricting access  these depend on underlying transmission system and lower-level entities

Internetworking Terms  communications Network  internet  the Internet  intranet  End System (ES)  Intermediate System (IS)  bridge  router

Requirements of Internetworking  link between networks  routing and delivery of data between processes on different networks  accounting services and status info  independent of network architectures

Network Architecture Features  addressing  packet size  access mechanism  timeouts  error recovery  status reporting  routing  user access control  connection based or connectionless

Architectural Approaches  connection oriented virtual circuit virtual circuit  connectionless datagram datagram PDU’s routed independently from source ES to dest ES through routers and networks PDU’s routed independently from source ES to dest ES through routers and networks share common network layer protocol, e.g. IP share common network layer protocol, e.g. IP below have network access on each node below have network access on each node

Connectionless Internetworking  advantages flexibility flexibility robust robust no unnecessary overhead no unnecessary overhead  unreliable not guaranteed delivery not guaranteed delivery not guaranteed order of delivery not guaranteed order of delivery packets can take different routespackets can take different routes reliability is responsibility of next layer up (e.g. TCP) reliability is responsibility of next layer up (e.g. TCP)

IP Operation

Design Issues  routing  datagram lifetime  fragmentation and re-assembly  error control  flow control

The Internet as a Network

Routing  ES / routers maintain routing tables indicate next router to which datagram is sent indicate next router to which datagram is sent static static dynamic dynamic  source routing source specifies route to be followed source specifies route to be followed can be useful for security & priority can be useful for security & priority  route recording

Datagram Lifetime  datagrams could loop indefinitely consumes resources consumes resources transport protocol may need upper bound on lifetime of a datagram transport protocol may need upper bound on lifetime of a datagram  can mark datagram with lifetime Time To Live field in IP Time To Live field in IP when lifetime expires, datagram discarded when lifetime expires, datagram discarded simplest is hop count simplest is hop count or time count or time count

Fragmentation and Re-assembly  may have different packet sizes on networks along path used by datagram on networks along path used by datagram  issue of when to re-assemble at destination at destination packets get smaller as data traverses internetpackets get smaller as data traverses internet intermediate re-assembly intermediate re-assembly need large buffers at routersneed large buffers at routers buffers may fill with fragmentsbuffers may fill with fragments all fragments must go through same routerall fragments must go through same router

IP Fragmentation  IP re-assembles at destination only  uses fields in header Data Unit Identifier (ID) Data Unit Identifier (ID) identifies end system originated datagramidentifies end system originated datagram Data length Data length length of user data in octetslength of user data in octets Offset Offset position of fragment of user data in original datagramposition of fragment of user data in original datagram in multiples of 64 bits (8 octets)in multiples of 64 bits (8 octets) More flag More flag indicates that this is not the last fragmentindicates that this is not the last fragment

Fragmentation Example

Dealing with Failure  re-assembly may fail if some fragments get lost  need to detect failure  re-assembly time out assigned to first fragment to arrive assigned to first fragment to arrive if timeout expires before all fragments arrive, discard partial data if timeout expires before all fragments arrive, discard partial data  use packet lifetime (time to live in IP) if time to live runs out, kill partial data if time to live runs out, kill partial data

Error Control  no guaranteed delivery  router should attempt to inform source if packet discarded  source may modify transmission strategy  may inform high layer protocol  need datagram identification  see ICMP in next section

Flow Control  allows routers and/or stations to limit rate of incoming data  limited in connectionless systems  send flow control packets to request reduced flow  see ICMP in next section

Internet Protocol (IP) v4  IP version 4  defined in RFC 791  part of TCP/IP suite  two parts specification of interface with a higher layer specification of interface with a higher layer e.g. TCPe.g. TCP specification of actual protocol format and mechanisms specification of actual protocol format and mechanisms  will (eventually) be replaced by IPv6

IP Services  Primitives functions to be performed functions to be performed form of primitive implementation dependent form of primitive implementation dependent Send - request transmission of data unit Send - request transmission of data unit Deliver - notify user of arrival of data unit Deliver - notify user of arrival of data unit  Parameters used to pass data and control info used to pass data and control info

IP Parameters  source & destination addresses  protocol  type of Service  identification  don’t fragment indicator  time to live  data length  option data  user data

IP Options  security  source routing  route recording  stream identification  timestamping

IPv4 Header

Header Fields (1)  Version currently 4 currently 4 IP v6 - see later IP v6 - see later  Internet header length in 32 bit words in 32 bit words including options including options  DS/ECN (was type of service)  total length of datagram, in octets of datagram, in octets

Header Fields (2)  Identification sequence number sequence number identify datagram uniquely with addresses / protocol identify datagram uniquely with addresses / protocol  Flags More bit More bit Don’t fragment Don’t fragment  Fragmentation offset  Time to live  Protocol Next higher layer to receive data field at destination Next higher layer to receive data field at destination

Header Fields (3)  Header checksum reverified and recomputed at each router reverified and recomputed at each router 16 bit ones complement sum of all 16 bit words in header 16 bit ones complement sum of all 16 bit words in header set to zero during calculation set to zero during calculation  Source address  Destination address  Options  Padding to fill to multiple of 32 bits long to fill to multiple of 32 bits long

Data Field  carries user data from next layer up  integer multiple of 8 bits long (octet)  max length of datagram (header plus data) is 65,535 octets

IPv4 Address Formats

IP Addresses - Class A  start with binary 0  all 0 reserved  (127) reserved for loopback  range 1.x.x.x to 126.x.x.x  all allocated

IP Addresses - Class B  start with binary 10  range 128.x.x.x to 191.x.x.x  second octet also included in network address  2 14 = 16,384 class B addresses  all allocated

IP Addresses - Class C  start with binary 110  range 192.x.x.x to 223.x.x.x  second and third octet also part of network address  2 21 = 2,097,152 addresses  nearly all allocated see IPv6 see IPv6

Subnets and Subnet Masks  allows arbitrary complexity of internetworked LANs within organization  insulate overall internet from growth of network numbers and routing complexity  site looks to rest of internet like single network  each LAN assigned subnet number  host portion of address partitioned into subnet number and host number  local routers route within subnetted network  subnet mask indicates which bits are subnet number and which are host number

Subnet Mask Calculation

Routing Using Subnets

ICMP  Internet Control Message Protocol  RFC 792 (get it and study it)  transfer of (control) messages from routers and hosts to hosts  feedback about problems e.g. time to live expired e.g. time to live expired  encapsulated in IP datagram hence not reliable hence not reliable

ICMP Message Formats

Common ICMP Messages  destination unreachable  time exceeded  parameter problem  source quench  redirect  echo & echo reply  timestamp & timestamp reply  address mask request & reply

Address Resolution Protocol (ARP)  need MAC address to send to LAN host manual manual included in network address included in network address use central directory use central directory use address resolution protocol use address resolution protocol  ARP (RFC 826) provides dynamic IP to ethernet address mapping source broadcasts ARP request source broadcasts ARP request destination replies with ARP response destination replies with ARP response

IP Versions  IP v 1-3 defined and replaced  IP v4 - current version  IP v5 - streams protocol  IP v6 - replacement for IP v4 during development it was called IPng (IP Next Generation) during development it was called IPng (IP Next Generation)

Why Change IP?  Address space exhaustion two level addressing (network and host) wastes space two level addressing (network and host) wastes space network addresses used even if not connected network addresses used even if not connected growth of networks and the Internet growth of networks and the Internet extended use of TCP/IP extended use of TCP/IP single address per host single address per host  requirements for new types of service

IPv6 RFCs  RFC Recommendations for the IP Next Generation Protocol requirements requirements PDU formats PDU formats addressing, routing security issues addressing, routing security issues  RFC overall specification  RFC addressing structure  many others

IPv6 Enhancements  expanded 128 bit address space  improved option mechanism most not examined by intermediate routes most not examined by intermediate routes  dynamic address assignment  increased addressing flexibility anycast & multicast anycast & multicast  support for resource allocation labeled packet flows labeled packet flows

IPv6 PDU (Packet) Structure

IP v6 Header

IP v6 Flow Label  related sequence of packets  needing special handling  identified by src & dest addr + flow label  router treats flow as sharing attributes e.g. path, resource allocation, discard requirements, accounting, security e.g. path, resource allocation, discard requirements, accounting, security  may treat flows differently buffer sizes, different forwarding precedence, different quality of service buffer sizes, different forwarding precedence, different quality of service  alternative to including all info in every header  have requirements on flow label processing

IPv6 Addresses  128 bits long  assigned to interface  single interface may have multiple unicast addresses  three types of addresses: unicast - single interface address unicast - single interface address anycast - one of a set of interface addresses anycast - one of a set of interface addresses multicast - all of a set of interfaces multicast - all of a set of interfaces

IPv6 Extension Headers

Hop-by-Hop Options  must be examined by every router if unknown discard/forward handling is specified if unknown discard/forward handling is specified  next header  header extension length  options Pad1 Pad1 PadN PadN Jumbo payload Jumbo payload Router alert Router alert

Fragmentation Header  fragmentation only allowed at source  no fragmentation at intermediate routers  node must perform path discovery to find smallest MTU of intermediate networks  set source fragments to match MTU  otherwise limit to 1280 octets  header includes fragment offset fragment offset more fragments bit more fragments bit identification identification

Routing Header  list of one or more intermediate nodes to visit  header includes Next Header Next Header Header extension length Header extension length Routing type Routing type Segments left Segments left  Type 0 routing provides a list of addresses initial destination address is first on list initial destination address is first on list current destination address is next on list current destination address is next on list final destination address will be last in list final destination address will be last in list

Destination Options Header  carries optional info for destination node  format same as hop-by-hop header

Virtual Private Networks  set of computers interconnected using an insecure network e.g. linking corporate LANs over Internet e.g. linking corporate LANs over Internet  using encryption & special protocols to provide security to stop eavesdropping & unauthorized users to stop eavesdropping & unauthorized users  proprietary solutions are problematical  hence development of IPSec standard

IPSec  RFC 1636 (1994) identified security need  encryption & authentication to be IPv6  but designed also for use with current IPv4  applications needing security include: branch office connectivity branch office connectivity remote access over Internet remote access over Internet extranet & intranet connectivity for partners extranet & intranet connectivity for partners electronic commerce security electronic commerce security

IPSec Scenario

IPSec Benefits  provides strong security for external traffic  resistant to bypass  below transport layer hence transparent to applications  can be transparent to end users  can provide security for individual users if needed

IPSec Functions  Authentication Header for authentication only for authentication only  Encapsulating Security Payload (ESP) for combined authentication/encryption for combined authentication/encryption  a key exchange function manual or automated manual or automated  VPNs usually need combined function  see chapter 21

Summary  basic protocol functions  internetworking principles  connectionless internetworking  IP  IPv6  IPSec