Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Network Layer Shivkumar.

Slides:



Advertisements
Similar presentations
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Advertisements

4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
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.
Announcement r Recitation tomorrow on Project 2 r Midterm Survey at the end of this class.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
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.
Announcement r Project 2 due Fri. midnight r Homework 3 out m Due 2/29 Sun. r Advertisement for my CS395/495 course next quarter: Computer Network Security:
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.
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.
CSE452:Computer Networks
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Protocol (IP): Addressing and Forwarding Shivkumar Kalyanaraman Rensselaer Polytechnic.
Announcement r Project 2 Extension ? m Previous grade allocation: Projects 40% –Web client/server7% –TCP stack21% –IP routing12% Midterm 20% Final 20%
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,
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks The Network Layer
4: Network Layer4a-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
Adapted from: Computer Networking, Kurose/Ross 1DT066 Distributed Information Systems Chapter 4 Network Layer.
IP tutorial – #1 KAIST Dept. of CS NC Lab..
Datagram Networks: Internet Protocol (IPv4)
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.
12 – IP, NAT, ICMP, IPv6 Network Layer.
4: Network Layer4a-1 IP addresses: how to get one? Hosts (host portion): r hard-coded by system admin in a file r DHCP: Dynamic Host Configuration Protocol:
1DT066 Distributed Information System Chapter 4 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).
4: Network Layer4a-1 Hierarchical Routing r aggregate routers into regions, “autonomous systems” (AS) r routers in same AS run same routing protocol m.
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.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
Internet Protocol ECS 152B Ref: slides by J. Kurose and K. Ross.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
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.
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”
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r Understand principles behind network layer services: m Routing (path selection) m dealing with.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
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 Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
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.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
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.
4: Network Layer4a-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Introduction to Networks
12 – IP, NAT, ICMP, IPv6 Network Layer.
Chapter 4: Network Layer
Computer Communication Networks
Chapter 4: Network Layer
Chapter 4: Network Layer
CS 457 – Lecture 10 Internetworking and IP
Wide Area Networks and Internet CT1403
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Network Layer: Control/data plane, addressing, routers
ECSE-4670: Computer Communication Networks (CCN)
32 bit destination IP address
Presentation transcript:

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Network Layer Shivkumar Kalyanaraman: Biplab Sikdar: Network Layer Shivkumar Kalyanaraman: Biplab Sikdar:

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 2 understand principles behind network layer services: –Internetworking concepts –The network layer –IP –routing (path selection) –how a router works Chapter Goals

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 3 Internetworking network layer services IP routing principle: path selection hierarchical routing Internet routing protocols reliable transfer –intra-domain –inter-domain what’s inside a router? Overview

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 4 The Internetworking Problem Two nodes communicating across a “network of networks”… –How to transport packets through this heterogeneous mass ? AB

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 5 The Internetworking Problem Problems: heterogeneity and scaling Heterogeneity: –How to interconnect a large number of disparate networks ? (lower layers) –How to support a wide variety of applications ? (upper layers) Scaling: –How to support a large number of end- nodes and applications in this interconnected network ?

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 6 Heterogeneity: Solutions Translation (eg: bridges): specify a separate mapping between every pair of protocols (+) No software changes in networks required. (  ) Need to specify N mappings when a new lower layer protocol is added to the list (  ) When many networks, subset = 0 (  ) Mapping may be asymmetric

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 7 Heterogeneity: Solutions –Overlay model: Define a new protocol (IP) and map all networks to IP (+) Require only one mapping (IP -> new protocol) when a new protocol is added (+) Global address space can be created for universal addressibility and scaling (  ) Requires changes in lower networks (eg: protocol type field for IP)

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 8 Heterogeneity: Solutions (  ) IP has to be necessarily simple else mapping will be hard. – Even in its current form mapping IP to ATM has proven to be really hard. – Basis for “best-effort” forwarding (  ) Protocol mapping infrastructure needed: address hierarchy, address resolution, fragmentation

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 9 The Internet Network layer routing table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling conventions ICMP protocol error reporting router “signaling” Transport layer: TCP, UDP Link layer physical layer Network layer

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 10 IP Addressing: introduction IP address: 32-bit identifier for host, router interface interface: connection between host, router and physical link –router’s typically have multiple interfaces –host may have multiple interfaces –IP addresses associated with interface, not host, router =

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 11 IP Addressing - 1 IP address: –network part (high order bits) –host part (low order bits) What’s a network ? ( from IP address perspective) –device interfaces with same network part of IP address –can physically reach each other without intervening router network consisting of 3 IP networks (for IP addresses starting with 223, first 24 bits are network address) LAN

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 12 IP Addressing - 2 How to find the networks? Detach each interface from router, host create “islands of isolated networks Interconnected system consisting of six networks

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 13 IP Addresses 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to to to bits given notion of “network”, let’s re-examine IP addresses: “class-full” addressing:

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 14 Some Special IP Addresses All-0s  This computer All-1s  All hosts on this net (limited broadcast: don’t forward out of this net) All-0 host suffix  Network Address (‘0’ means ‘this’) All-1 host suffix  All hosts on the destination net (directed broadcast). 127.*.*.*  Loopback through IP layer

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 15 IP addressing: CIDR - 1 classful addressing: –inefficient use of address space, address space exhaustion –e.g., class B net allocated enough addresses for 65K hosts, even if only 2K hosts in that network

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 16 IP addressing: CIDR - 2 CIDR: Classless InterDomain Routing –network portion of address of arbitrary length –address format: a.b.c.d/x, where x is # bits in network portion of address network part host part /23

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 17 Subnet Addressing –External routers need to store entries only for the “network ID” –Internal routers & hosts use subnet mask to identify “subnet ID” and route packets between “subnets” within the “network”. –Eg: Mask: => subnet ID = 8 bits with upto 62 hosts/subnet

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 18 Subnet Addressing (Continued) –Route table lookup: IF ((Mask[i] & Destination Addr) = = Destination[i]) Forward to NextHop[i] –Subnet mask can end on any bit. –Mask must have contiguous 1s followed by contiguous zeros. Routers do not support other types of masks.

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 19 Route Table Lookup: Example DestinationMaskNext Hop Deliver direct Deliver direct

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 20 IP addresses: how to get one? Hosts (host portion): hard-coded by system admin in a file DHCP: Dynamic Host Configuration Protocol: dynamically get address: “plug-and- play” –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

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 21 IP addresses: how to get one? Network (network portion): get allocated portion of ISP’s address space: ISP's block /20 Organization /23 Organization /23 Organization /23... ….. …. …. Organization /23

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 22 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:

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 23 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

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 24 IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers –allocates addresses –manages DNS –assigns domain names, resolves disputes

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 25 Getting a datagram from source to dest. - 1 IP datagram: A B E misc fields source IP addr dest IP addr data datagram remains unchanged, as it travels source to destination addr fields of interest here routing table in A Dest. Net. next router Nhops

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 26 Getting a datagram from source to dest A B E Starting at A, given IP datagram addressed to B: look up net. address of B find B is on same net. as A link layer will send datagram directly to B inside link-layer frame B and A are directly connected Dest. Net. next router Nhops misc fields data

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 27 Getting a datagram from source to dest A B E Dest. Net. next router Nhops Starting at A, dest. E: look up network address of E E on different network A, E not directly attached routing table: next hop router to E is link layer sends datagram to router inside link-layer frame datagram arrives at continued….. misc fields data

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 28 Getting a datagram from source to dest. – A B E Arriving at , destined for look up network address of E E on same network as router’s interface router, E directly attached link layer sends datagram to inside link-layer frame via interface datagram arrives at !!! (hooray!) misc fields data network router Nhops interface Dest. next

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 29 IP Features Connectionless service Addressing Data forwarding Fragmentation and reassembly Supports variable size datagrams Best-effort delivery Provides only “Send” and “Delivery” services. Error and control messages generated by Internet Control Message Protocol (ICMP)

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 30 What IP does NOT provide End-to-end data reliability & flow control (done by TCP or application layer protocols) Sequencing of packets (like TCP) Error detection in payload (TCP, UDP or other transport layers) Error reporting (ICMP)

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 31 What IP does NOT provide (Continued) Setting up route tables (RIP, OSPF, BGP etc) Connection setup (it is connectionless) Address/Name resolution (ARP, RARP, DNS) Configuration (BOOTP, DHCP) Multicast (IGMP, MBONE)

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 32 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time to live 32 bit source IP address IP protocol version number header length (bytes) max number remaining hops (decremented at each router) for fragmentation/ reassembly total datagram length (bytes) upper layer protocol to deliver payload to head. len type of service “type” of data flgs fragment offset upper layer 32 bit destination IP address Options (if any) E.g. timestamp, record route taken, pecify list of routers to visit.

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 33 IP Fragmentation & Reassembly - 1 network links have MTU (max.transfer size) - largest possible link-level frame. –different link types, different MTUs large IP datagram divided (“fragmented”) within net –one datagram becomes several datagrams –“reassembled” only at final destination –IP header bits used to identify, order related fragments fragmentation: in: one large datagram out: 3 smaller datagrams reassembly

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 34 IP Fragmentation and Reassembly - 2 ID =x offset =0 fragflag =0 length =4000 ID =x offset =0 fragflag =1 length =1500 ID =x offset =1480 fragflag =1 length =1500 ID =x offset =2960 fragflag =0 length =1040 One large datagram becomes several smaller datagrams

Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 35 Summary Internet architectural principles IP addressing and header Fragmentation/Reassembly, Path MTU discovery