COS 461 Fall 1997 The Network Layer FTPHTTPSMTPDNSFinger TCPUDP IP EthernetATMmodemSHRIMP application layer transport layer network layer data link layer.

Slides:



Advertisements
Similar presentations
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
TCP/IP TCP/IP architecture
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Helper Protocols Protocols that either make it easier for IP to do its job, or extend the capabilities of the network layer.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Network Layer Packet Forwarding IS250 Spring 2010
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1: Solutions Time: 60 min (strictly enforced) Points: 50 YOUR.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1 Time: 60 min (strictly enforced) Points: 50 YOUR NAME: Be.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
1 Internet Protocol. 2 Connectionless Network Layers Destination, source, hop count Maybe other stuff –fragmentation –options (e.g., source routing) –error.
IP : Internet Protocol Addresses Rsc.Asst.Kamil Serhan Bilman
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.
Part 3: Internetworking Internet architecture, addressing, encapsulation, reliable transport and the TCP/IP protocol suite.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
Dr. John P. Abraham Professor UTPA
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.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
Chapter 20 Network Layer: Internet Protocol
Lecture 15 Internetworking: Address Structure Fragmentation and Reassembly.
ICMPv6 Error Message Types Informational Message Types.
The Internet Network layer
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Packet Switch Network Server client IP Ether IPTCPData.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
IP - Internet Protocol No. 1  Seattle Pacific University IP: The Internet Protocol Kevin Bolding Electrical Engineering Seattle Pacific University.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2003, Cisco Systems, Inc. All rights reserved.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Chapter 21 Address Mapping
Network Layer Protocols
CS 457 – Lecture 10 Internetworking and IP
Chapter 20 Network Layer: Internet Protocol
Internetworking Outline Best Effort Service Model
Net 323 D: Networks Protocols
Introduction to Networks
NET 323D: Networks Protocols
Presentation transcript:

COS 461 Fall 1997 The Network Layer FTPHTTPSMTPDNSFinger TCPUDP IP EthernetATMmodemSHRIMP application layer transport layer network layer data link layer

COS 461 Fall 1997 Internetworking u challenge: how to tie together diverse networks into a single meta-network u goes beyond bridges –spans heterogeneous networks –must scale to millions of hosts u terminology –internetwork: any combination of networks –Internet: a particular internetwork we all use

COS 461 Fall 1997 Internetworking u three facets: –addressing: how hosts are named –service model: how hosts interact with the network –routing: how a route from sender to destination is chosen u several versions of IP exist –everybody uses version 4 now –version 6 is coming

COS 461 Fall 1997 Who Runs the Internet? u nobody! u the Internet Engineering Task Force (IETF) declares technical standards, and then everybody follows them u the IETF negotiates a standard with the major players, and people do what they want, influenced by the IETF standard u who elects the IETF?

COS 461 Fall 1997 Addressing u unique 32-bit address for each host u two-level address: (network, host) u dotted-decimal notation ( ) u three address formats 0networkhost 724 class A10networkhost 1416 class B networkhostclass C

COS 461 Fall 1997 Two-Level Addressing u network is a single (extended) LAN –provides physical address for each host –can deliver packets between all hosts in network u outside hosts treat a network as a black box u advantages of two-level approach –can remember single route for a whole network –host numbers can be allocated locally

COS 461 Fall 1997 Three-Level Addressing u (network, subnet, host) –subnet and host numbers managed locally –outside can’t tell two-level from three-level u variable division of address bits between subnet and host parts –determined by subnet mask u subnet is a single LAN u subnets treat each other as black boxes

COS 461 Fall 1997 Translating Addresses u IP uses IP addresses, but a network uses physical addresses –must translate to communicate within network u each host keeps a list of IP-to-physical translations –forgotten every 15 minutes or so u Address Resolution Protocol (ARP) translates IP address to physical address

COS 461 Fall 1997 ARP u querying host broadcasts a packet asking for a translation for some IP address u host with that IP address answers with ARP response containing the physical address –all hosts know their own addresses u query contains translation for the querying host –other hosts learn from the query

COS 461 Fall 1997 RARP u reverse Address Resolution Protocol (RARP) translates physical to IP u works just like ARP u allows a host to learn its own IP address after it boots –table of address mappings stored on a server »maintained by administrator

COS 461 Fall 1997 DHCP u Dynamic Host Configuration Protocol (DHCP) allows host to learn its own network parameters u on startup, host broadcasts DHCP query u server responds with all the information host needs to function on the Internet u used on many PC networks

COS 461 Fall 1997 Service Model u unreliable datagram service –transmits data in variable size chunks (datagrams) –may drop, reorder, or duplicate datagrams –best effort approach

COS 461 Fall 1997 Fragmentation and Reassembly u each network has a Maximum Transmission Unit (MTU): the largest IP packet it can carry u packet may travel through diverse networks with different MTUs u solution: if packet is bigger than MTU, break it into fragments –may be broken more finely in a later network u reassemble at ultimate destination

COS 461 Fall 1997 Fragmentation Example FDDI (MTU=4500)4000 Ethernet (MTU=1500) P2P (MTU=512) FDDI (MTU=4500)

COS 461 Fall 1997 Reassembly u performed by destination host u store fragments in memory until they all show up u fragments might be dropped, so discard stored fragments after a timeout period u for best performance, avoid fragmentation –higher-level protocols can avoid sending large datagrams (use common MTU, or discover the right size dynamically)

COS 461 Fall 1997 IP Packet Format version type of service hdr len total length datagram identifierflagsoffset in datagram time to live protocolchecksum source address destination address options (if any; variable size) data follows 32 bits

COS 461 Fall 1997 IP Packet Format: Details u version: currently 4 u header length: in 32-bit words, 5 if no options u type of service: almost never used u total length: in bytes, header+data u datagram identifier: allows destination to match up fragments of the same datagram

COS 461 Fall 1997 IP Packet Format: Details u flags –more-fragments: says this isn’t the last fragment of the datagram –don’t-fragment: prohibits fragmentation; packet will be dropped rather than fragmented u offset: offset within datagram at which this fragment begins

COS 461 Fall 1997 IP Packet Format: Details u time to live: initially set to 64; decremented on each hop; packet dropped if TTL==0 u protocol: identifies which higher-level protocol this datagram belongs to u checksum: 16-bit ones-complement sum u source address, destination address obvious u options: rarely used

COS 461 Fall 1997 ICMP u Internet Control Message Protocol u companion protocol to IP u used to report errors in IP u types of packets –destination host unreachable –reassembly failed –checksum didn’t match –don’t send so fast –there’s a better route

COS 461 Fall 1997 Host Names and DNS u Domain Naming System (DNS) provides a mapping from human-readable names (idea.cs.princeton.edu) to IP addresses ( ) u benefits –easier to remember –level of indirection allows reconfiguration without telling clients

COS 461 Fall 1997 Domains u hierarchy of domains –top-level:.edu.gov.uk.su and so on –deeper levels: princeton.edu cs.princeton.edu u name-servers provide mappings for a domain –at least two name servers per domain –servers for a domain must know IP addresses of name-servers for all sub-domains

COS 461 Fall 1997 DNS Naming u top-level servers know IP addresses of name-servers for top-level domains u lookup process –ask top-level server for IP address for desired name –result is either »the answer »referral to name-server for a more specific domain –iterate until you have the answer

COS 461 Fall 1997 DNS Details u most machines just ask a local DNS server, which carries out the lookup process u cache results –forget after timeout period –also cache lookup failures u locations of top-level servers hard-wired into local DNS servers u location of local DNS server hard-wired into each machine

COS 461 Fall 1997 Administrative Details u to allocate a DNS domain name –contact InterNIC (Network Information Center) –pay them a fee –they check that you have the necessary servers running –they tell top-level servers that you’re there u similar for IP network number allocation