8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.

Slides:



Advertisements
Similar presentations
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-
Advertisements

4: Network Layer4a-1 IP Addressing: introduction r IP address: 32-bit identifier for host, router interface r interface: connection between host, router.
Introduction 1-1 1DT066 Distributed Information System Chapter 4 Network Layer.
Lecture 18 Network Layer (Internet Protocol)
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
Introduction 1-1 1DT014/1TT821 Computer Networks I Chapter 4 Network Layer.
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
Network Layer4-1 Computer Networking (Datakom) Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
Chapter 5 The Network Layer.
N/W Layer Addressing1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes.
Network Layer Overview and IP
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Network Layer4-1 IP: Internet Protocol r Datagram format r IPv4 addressing r DHCP: Dynamic Host Configuration Protocol r NAT: Network Address Translation.
IP Addressing: introduction
1 Lecture 11: The Network Layer Slides adapted from: Congestion slides for Computer Networks: A Systems Approach (Peterson and Davis) Chapter 3 slides.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
The Internet Network layer
Network Layer4-1 Chapter 4 Network Layer A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers).
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
12 – NAT, ICMP, IPv6 Network Layer4-1. Network Layer4-2 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
Network LayerII-1 RSC Part II: Network Layer 4. IP in operation Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Datagram Networks: Internet Protocol (IPv4)
1 ECE453 – Introduction to Computer Networks Lecture 12 – Network Layer (IV)
CS 1652 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Jack Lange.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley Chapter4_2 Transport Layer.
12 – IP, NAT, ICMP, IPv6 Network Layer.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 16.
1DT066 Distributed Information System Chapter 4 Network Layer.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
Network Layer4-1 Subnets How many?
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Network Layer IP:
Network Layer 4-1 Chapter 4 Network Layer. Network Layer 4-2 Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Network Layer4-1 IP: Internet Protocol r Datagram format r IPv4 addressing r DHCP: Dynamic Host Configuration Protocol r NAT: Network Address Translation.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
IP addresses. Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol datagram.
Sharif University of Technology, Kish Island Campus Internet Protocol (IP) by Behzad Akbari.
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.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
1 Network Layer Lecture 11 Imran Ahmed University of Management & Technology.
The Internet Network layer
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing with.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
CSEN 404 Data Link Layer Amr El Mougy Lamia AlBadrawy.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
Network Layer session 1 TELE3118: Network Technologies Week 5: Network Layer Forwarding, Features Some slides have been taken from: r Computer.
4: Network Layer4-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.
Introduction to Networks
12 – IP, NAT, ICMP, IPv6 Network Layer.
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 4: Network Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Chapter 4: Network Layer
CS 1652 Jack Lange University of Pittsburgh
Some slides have been taken from:
Wide Area Networks and Internet CT1403
DHCP: Dynamic Host Configuration Protocol
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding tables, longest prefix matching ♦ IP: the Internet Protocol packet structure fragmentation & reassembly

8-2 This time □ IP Addressing □ ARP □ DHCP □ ICMP □ IPv6

8-3 IP Addressing: introduction □ IP address: 32-bit identifier for host, router interface □ interface: connection between host/router and physical link ♦ routers typically have multiple interfaces ♦ host typically has one interface ♦ IP addresses associated with each interface =

8-4 Subnets □ IP address: ♦ subnet part (high order bits) ♦ host part (low order bits) □ What’s a subnet ? ♦ device interfaces with same subnet part of IP address ♦ can physically reach each other without intervening router network consisting of 3 subnets subnet

8-5 Subnets / / /24 Recipe □ To determine the subnets, detach each interface from its host or router, creating islands of isolated networks. Each isolated network is called a subnet. Subnet mask: /24

8-6 Subnets How many? How large?

8-7 IP addressing: CIDR CIDR: Classless InterDomain Routing ♦ subnet portion of address of arbitrary length ♦ address format: a.b.c.d/x, where x is # bits in subnet portion of address subnet part host part /23

8-8 IP addresses: how to get one? Q: How does host get IP address? □ Hard-coded by system admin in a file ♦ Wintel: control-panel->network->configuration-> tcp/ip->properties ♦ Linux: /etc/network/interfaces □ DHCP: Dynamic Host Configuration Protocol: dynamically get address from as server ♦ “plug-and-play” ♦ later

8-9 IP addresses: how to get one? Q: How does network get subnet part of IP addr? A: gets allocated portion of its provider ISP’s address space ISP's block /20 Organization /23 Organization /23 Organization /23... ….. …. …. Organization /23

8-10 Hierarchical addressing: route aggregation “Send me anything with addresses beginning /20” / / /23 Fly-By-Night-ISP Organization 0 Organization 7 Internet Organization 1 ISPs-R-Us “Send me anything with addresses beginning /16” /23 Organization Hierarchical addressing allows efficient advertisement of routing information:

8-11 Hierarchical addressing: more specific routes ISPs-R-Us has a more specific route to Organization 1 “Send me anything with addresses beginning /20” / / /23 Fly-By-Night-ISP Organization 0 Organization 7 Internet Organization 1 ISPs-R-Us “Send me anything with addresses beginning /16 or /23” /23 Organization

8-12 ARP: Address Resolution Protocol □ Each IP node (Host, Router) on LAN has ARP table □ ARP Table: IP/MAC address mappings for some LAN nodes ♦ TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min) Question: how to determine MAC address of B knowing B’s IP address? 1A:2F:BB:76:09:AD 58:23:D7:FA:20:B0 0C:C4:11:6F:E3:98 71:65:F7:2B:08:53 LAN

8-13 ARP protocol: Same LAN (network) □ A wants to send datagram to B, and B’s MAC address not in A’s ARP table. □ A broadcasts ARP query packet, containing B's IP address ♦ Dest MAC address = FF:FF:FF:FF:FF:FF ♦ all machines on LAN receive ARP query □ B receives ARP packet, replies to A with its (B's) MAC address ♦ frame sent to A’s MAC address (unicast) □ A caches (saves) IP-to-MAC address pair in its ARP table until information becomes old (times out) ♦ soft state: information that times out (goes away) unless refreshed □ ARP is “plug-and-play”: ♦ nodes create their ARP tables without intervention from net administrator

8-14 Routing to another LAN walkthrough: send datagram from A to B via R assume A know’s B IP address □ Two ARP tables in router R, one for each IP network (LAN) A R B

8-15 □ A creates datagram with source A, destination B □ A uses ARP to get R’s MAC address for □ A creates link-layer frame with R's MAC address as dest, frame contains A-to-B IP datagram □ A’s adapter sends frame □ R’s adapter receives frame □ R removes IP datagram from Ethernet frame, sees its destined to B □ R uses ARP to get B’s MAC address □ R creates frame containing A-to-B IP datagram sends to B A R B

8-16 DHCP: Dynamic Host Configuration Protocol Goal: allow host to dynamically obtain its IP address from network server when it joins network Can renew its lease on address in use Allows reuse of addresses (only hold address while connected and “on”) Support for mobile users who want to join network (more soon) DHCP overview: ♦ host broadcasts “DHCP discover” msg ♦ DHCP server responds with “DHCP offer” msg ♦ host requests IP address: “DHCP request” msg ♦ DHCP server sends address: “DHCP ack” msg

8-17 DHCP client-server scenario A B E DHCP server arriving DHCP client needs address in this network

8-18 DHCP client-server scenario DHCP server: arriving client time DHCP discover src : , 68 dest.: ,67 yiaddr: transaction ID: 654 DHCP offer src: , 67 dest: , 68 yiaddr: transaction ID: 654 Lifetime: 3600 secs DHCP request src: , 68 dest:: , 67 yiaddr: transaction ID: 655 Lifetime: 3600 secs DHCP ACK src: , 67 dest: , 68 yiaddr: transaction ID: 655 Lifetime: 3600 secs

8-19 Chapter 4: Network Layer □ 4. 1 Introduction □ 4.2 Virtual circuit and datagram networks □ 4.3 What’s inside a router □ 4.4 IP: Internet Protocol ♦ Datagram format ♦ IPv4 addressing ♦ ICMP ♦ IPv6 □ 4.5 Routing algorithms ♦ Link state ♦ Distance Vector ♦ Hierarchical routing □ 4.6 Routing in the Internet ♦ RIP ♦ OSPF ♦ BGP □ 4.7 Broadcast and multicast routing

8-20 ICMP: Internet Control Message Protocol □ Used by hosts & routers to communicate network-level information ♦ error reporting: unreachable host, network, port, protocol ♦ echo request/reply (used by ping) □ Network-layer “above” IP: ♦ ICMP msgs carried in IP datagrams □ ICMP message: type, code plus first 8 bytes of IP datagram causing error Type Code description 0 0 echo reply (ping) 3 0 dest. network unreachable 3 1 dest host unreachable 3 2 dest protocol unreachable 3 3 dest port unreachable 3 6 dest network unknown 3 7 dest host unknown 4 0 source quench (congestion control - not used) 8 0 echo request (ping) 9 0 route advertisement 10 0 router discovery 11 0 TTL expired 12 0 bad IP header

8-21 Traceroute and ICMP □ Source sends series of UDP segments to dest ♦ First has TTL =1 ♦ Second has TTL=2, etc. ♦ Unlikely port number □ When nth datagram arrives to nth router: ♦ Router discards datagram ♦ And sends to source an ICMP message (type 11, code 0) ♦ Message includes name of router & IP address □ When ICMP message arrives, source calculates RTT □ Traceroute does this 3 times Stopping criterion □ UDP segment eventually arrives at destination host □ Destination returns ICMP “port unreachable” packet (type 3, code 3) □ When source gets this ICMP, stops.

8-22 Chapter 4: Network Layer □ 4. 1 Introduction □ 4.2 Virtual circuit and datagram networks □ 4.3 What’s inside a router □ 4.4 IP: Internet Protocol ♦ Datagram format ♦ IPv4 addressing ♦ ICMP ♦ IPv6 □ 4.5 Routing algorithms ♦ Link state ♦ Distance Vector ♦ Hierarchical routing □ 4.6 Routing in the Internet ♦ RIP ♦ OSPF ♦ BGP □ 4.7 Broadcast and multicast routing

8-23 IPv6 □ Initial motivation: 32-bit address space soon to be completely allocated. □ Additional motivation: ♦ header format helps speed processing/forwarding ♦ header changes to facilitate QoS IPv6 datagram format: □ fixed-length 40 byte header □ no fragmentation allowed

8-24 IPv6 Header (Cont) Priority: identify priority among datagrams in flow Flow Label: identify datagrams in same “flow.” (concept of “flow” not well defined). Next header: identify upper layer protocol for data

8-25 Other Changes from IPv4 □ Checksum: removed entirely to reduce processing time at each hop □ Options: allowed, but outside of header, indicated by “Next Header” field □ ICMPv6: new version of ICMP ♦ additional message types, e.g. “Packet Too Big” ♦ multicast group management functions

8-26 Recap □ IP addressing ♦ addressing, subnets, CIDR ♦ address aggregation □ ARP ♦ Learning other hosts' MAC addresses ♦ Same LAN only □ DHCP ♦ Learning your own IP address □ ICMP ♦ Internet “error messages” ♦ How traceroute works □ IPv6 ♦ Differences from IPv4

8-27 Next time □ Transitioning to IPv6 □ Routing ♦ Link-state routing ♦ Distance-vector routing