CS 164 -- Internetworking Slide Set 8. In this set... Addressing Datagram forwarding.

Slides:



Advertisements
Similar presentations
IP/MAC Address Translation
Advertisements

CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Transitioning to IPv6 April 15,2005 Presented By: Richard Moore PBS Enterprise Technology.
1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
CSE331: Introduction to Networks and Security Lecture 8 Fall 2002.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 11 – February 16, 2010.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
10/8/2015CST Computer Networks1 IP Routing CST 415.
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.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Lecture 15 Internetworking: Address Structure Fragmentation and Reassembly.
Network Layer: Address Mapping, Error Reporting, and Multicasting
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
1 Chapter 4: Internetworking (Introduction) Dr. Rocky K. C. Chang 16 March 2004.
Address Translation Outline Datalink layer intro ARP RARP DHCP.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Packet Switch Network Server client IP Ether IPTCPData.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Scaling the Network: Subnetting and Protocols
Scaling the Network: Subnetting and Other Protocols
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Network Layer, and Logical Addresses
Scaling the Network: The Internet Protocol
Net 323: NETWORK Protocols
CS 457 – Lecture 10 Internetworking and IP
NAT/ARP/RARP (Ch 5 & 8) Dr. Clincy Lecture.
Advanced Computer Networks
8PM – Quickly Overview Final Project
Internetworking Outline Best Effort Service Model
CS 457 – Lecture 11 More IP Networking
Overview The Internet (IP) Protocol Datagram format IP fragmentation
2. Fragmentation and Reassembly
Scaling the Network: Subnetting and Other Protocols
Scaling the Network: The Internet Protocol
Computer Networks Protocols
Review of Internet Protocols Network Layer
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

CS Internetworking Slide Set 8

In this set... Addressing Datagram forwarding

Requirements for Addressing Uniqueness -- each host needs to have a unique address. A global addressing scheme/policy is needed. Why can we not use underlying Ethernet/MAC layer addresses ? – Unique but there is a “flat” structure -- no hierarchy. –Provides no clues as to how data is to be routed.

IP addressing IP addressing is hierarchical. IP Address Network Part Host part Uniquely identifies network to which host is attached Identifies host uniquely given the network Note: Hosts on the same physical network can communicate using frames

Addresses and Interfaces Each host that is attached to the same network has the same “network” part of the IP address. If routers are attached to multiple networks then, they need to have an address for each network. –Address assigned to the interface on the network. Appropriate to think of IP addresses as being associated with interfaces.

IP address classes Hierarchical structure not same for all addresses. Division into classes, A, B, C, D and E. –D -- multicast, E -- unused. We are mainly concerned with types A, B and C. All IP addresses are 32 bits long.

Classes A, B and C Class A : 7 Network bits, 24 host bits. Class B: 14 Network bits and 16 host bits. Class C: 21 Network bits and 8 host bits. Of approximately 4 billion IP addresses, 1/2 belong to Class A, 1/4 belong to Class B and 1/8 to Class C.

Specifically... Number of Class A networks = 2 7 = 128. But on each Class A Network, one can have hosts. For class C, larger number of networks but each network can have at most 2 8 = 256 hosts.

IP Address Notation Dotted Decimal (for IPv4) -- W.X.Y.Z -- each represents each of the four bytes. Example Remember -- the source and destination addresses are in the IP header.

Forwarding versus Routing Forwarding is the process of taking a packet from the input and sending it on the appropriate output. Routing -- in contrast -- is the process of building tables that allow the determination of the correct output.

Datagram forwarding A node that gets a datagram first tries to establish whether the destination is on the same physical network. Compare network part of the destination address with the network part of its own interfaces. If they are the same, destination is on the same physical network. If yes, deliver packet. If no, choose the appropriate router to forward packet. – Next Hop --> router –Consult what is called the forwarding table that contains entries that look like. –Also a default router (possible only default exists).

Our example network H1 --> H2, same network number in IP address -- deliver via Ethernet. H1 --> H8. How ? H1 --> R1 default router over Ethernet. R1 knows it cannot deliver directly. R1 has to deliver it to a default router - - R2.

Example Continued Let us look at R2’s forwarding table. Network Number Next Hop 2R1 1R3 Thus, R2 --> R3 via PPP and then, finally, R3 --> H8 via Ethernet.

Directly Connected Nets It is possible to include information with regard to the directly connected networks in forwarding table. As an example, let PPP interface of R2 be Int 1 and let the FDDI interface be Int 2. Then, the table looks like: Net Num Next Hop 1R3 2R1 3Int 2 4Int 4

Address Resolution Physical interface hardware understands only the “link addresses” of the particular network. Thus, IP addresses have to be translated into a link layer address prior to sending a datagram to a destination or an intermediate router. Remember Ethernet address == 48 bits -- one way is to encode the host physical address in host part of IP address. – This is however not scalable -- not always possible. A second way is to maintain a static table that maps an IP address to a physical address -- maintained by our sys admin. The table is copied onto every host.

Dynamic address resolution using ARP Dynamic resolution is possible using the Address Resolution Protocol or ARP. –Protects against the possibility that Ethernet cards may be replaced. ARP requires that a dynamic table that maps IP addresses onto physical addresses is refreshed every 15 minutes or so. It takes advantage of the “broadcast” nature of the link.

ARP Mechanics When a destination PHY address is to be found, an ARP query is broadcasted. – Query includes destination IP address and link layer address of sending host. Each host checks for match with indicated IP address. If match, it sends a response to originator of query with link layer or PHY address. Originator adds this information into its ARP table. TTL for each entry in ARP table is 20 minutes. Just a reminder -- note that a broadcast address consists of all 1s.

ARP Message TargetHardwareAddr (bytes 2 5) TargetProtocolAddr (bytes 0 3) SourceProtocolAddr (bytes 2 3) Hardware type = 1ProtocolType = 0x0800 SourceHardwareAddr (bytes 4 5) TargetHardwareAddr (bytes 0 1) SourceProtocolAddr (bytes 0 1) HLen = 48PLen = 32Operation SourceHardwareAddr (bytes 0―3) ― ― ―― ― ― Important nuggets : Hardware type specified type of physical network -- Ethernet/FDDI Protocol Type -- typically IP (higher layer) Operation -- specified whether query or response.

DHCP IP addresses not only need to be unique but they need to reflect some structure. IP address space is limited -- IP addresses cannot be hard configured. –Reconfigurability In addition to its own address, typically, node needs address of default router. Manual configuration difficult -- especially in terms of ensuring uniqueness. Automated configuration is done via DHCP -- Dynamic Host Configuration Protocol.

How does DHCP work ? DHCP server-- responsible for providing configuration information. Each host, upon being booted or connected to the network, obtains configuration info. from DHCP. Note -- admin still picks the IP addresses but now stores them at the DHCP server. Configuration info stored in a table that is indexed by some unique identifer -- typically the hardware address.

Increasing flexibility On demand allocation possible with DHCP. Only a pool of IP addresses specified. – All of these have same network number. When a host needs an address an unused address from this pool is assigned to the host. Leasing: When DHCP assigns an address, hosts cannot hold onto address for too long -- lease has to be renewed!

Particulars To contact the DHCP server, host sends a DHCPDISCOVER message to the broadcast address ( ). DHCP server responds. Note that a single DHCP server for a plurality of networks (via DHCP relays) DHCP relay knows DHCP server address. Self Study: DHCP Packet Formats etc.

Error Reporting and ICMP When a router is unable to process IP datagrams correctly, a collection of error messages sent back to host. Use of Internet Control Message Protocol or ICMP. Examples -- host is unreachable, Reassembly process failed, TTL =0, IP header checksum failed etc.

ICMP Architecturally above IP -- ICMP messages are carried in IP packets and are demultiplexed at receiver. Examples are ping, traceroute etc. ICMP-redirect -- ICMP can suggest a better route --default router sends the better route so that host can add new route to its routing table.

Virtual Private Networks Virtual Private Networks or VPNs: Private networks -- connections among a set of sites. Private networks have to have their own links but in the shared world... One possibility -- Virtual Circuits

IP Tunnels A virtual point to point link between a pair of nodes that are in fact separated by an arbitrary number of networks. An IP packet encapsulated within another !

Representing a virtual interface Router R1 will have a forwarding table that looks like -> Network Number Next Hop 1Interface 0 2Virtual Interface 0 DefaultInterface 0

Why IP tunnels ? Security -- IPSEC -- internal IP packet encrypted. Specific services -- R1 and R2 may have specific capabilities such as multicast routing. Other protocols. Why not ? -- downside is larger IP packets can deteriorate router performance.

Where are we ? We are done with Section 4.1 We move onto Section on Routing.

Routing Tables Routing is the process by which forwarding tables are built. A routing table is a precursor to building a forwarding table. –It contains mappings from network numbers to next hops -- which is the next hop for a given network number ? – There may be information as to how this info was got. Can help router decide on when to discard information. –Mainly for calculating changes to topology.

To remind ourselves... The forwarding table is a mapping between the network number and an outgoing interface. – Can contain some MAC (link layer) info such as the Ethernet address of the next hop.

Network as a graph We can visualize the network as a graph. Nodes represent hosts, routers or even networks. Each edge has an associated cost metric -- how desirable is it to send data on that link ?

The Problem Find the minimum cost path among any two nodes in the graph. Cost of the path = Sum of the costs of edges that make up the path. Process -- Calculate the shortest paths and store in some nonvolatile storage. We need completely distributed routing policies – centralized approaches not scalable.

Two popular approaches Routing Information Protocol (RIP) based on Distributed Bellman Ford or Distance Vector Routing OSPF based on Link State Routing or Dijkstra’s shortest path algorithm.

Next.... Different routing approaches.