1 EE 122: IP Addressing Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson, Jennifer.

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Fundamentals of Computer Networks ECE 478/578 Lecture #14: InternetWorking Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
Chapter 18. IP: Internet Protocol Addresses
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
1 Transport and TCP EE122 Fall 2011 Scott Shenker Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson.
1 IP Addressing and Forwarding EE122 Fall 2011 Scott Shenker Materials with thanks to Jennifer Rexford, Ion Stoica,
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
IP Addressing and Forwarding COS 461: Computer Networks Spring 2011 Mike Freedman 1.
IP Addressing and Forwarding COS 461: Computer Networks Spring 2009 (MW 1:30-2:50 in COS 105) Michael Freedman
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
Chapter 19 Network Layer: Logical Addressing
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
1 IP Addressing EE 122: Intro to Communication Networks Fall 2010 (MW 4-5:30 in 101 Barker) Scott Shenker TAs: Sameer Agarwal, Sara Alspaugh, Igor Ganichev,
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
IP Addressing Introductory material. An entire module devoted to IP addresses.
Network LayerII-1 RSC Part II: Network Layer 3. IP addressing (2nd part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
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.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 Forwarding (after a little more addressing) EE122 Fall 2011 Scott Shenker Materials with thanks to Jennifer Rexford,
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
IP Addressing.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Lecture 11 Routing in Virtual Circuit Networks Internet Addressing.
Chapter 8: IP Addressing
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Networks
Scaling the Network: Subnetting and Other Protocols
IP Addressing - The Problem
IP.
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Q and A, Ch. 21 CS332, Fall 2017 Victor Norman.
CS 457 – Lecture 10 Internetworking and IP
IPv4 Addresses.
CS 457 – Lecture 14 Global Internet
Dr. John P. Abraham Professor UTPA
Scaling the Network: Subnetting and Other Protocols
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTPA
Presentation transcript:

1 EE 122: IP Addressing Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson, Jennifer Rexford, and colleagues at UC Berkeley)

2 Goals of Today’s Lecture IP addresses Dotted-quad notation IP prefixes for aggregation Classful addresses Classless InterDomain Routing (CIDR) Special-purpose address blocks Address allocation Hierarchy by which address blocks are given out Finding information about an allocation

3 Designing IP’s Addresses Question #1: what should an address be associated with? E.g., a telephone number is not associated with a person but with a handset Question #2: what structure should addresses have? What are the implications of different types of structure? Question #3: who determines the particular addresses used in the global Internet? What are the implications of how this is done?

4 IP Addresses (IPv4) A unique 32-bit number Identifies an interface (on a host, on a router, …) Represented in dotted-quad notation. E.g, :

5 Hierarchical Addressing in U.S. Mail Addressing in the U.S. mail Zip code: Street: Forbes Avenue Building on street: 5000 Apartment: 61B Name of occupant: Ion Stoica Forwarding the U.S. mail Deliver letter to the post office in the zip code Assign letter to mailman covering the street Drop letter into mailbox for the building/room Give letter to the appropriate person ???

6 Hierarchical Addressing: IP Prefixes Divided into network (left) & host portions (right) /24 is a 24-bit prefix with 2 9 addresses Terminology: “Slash 24” Network (24 bits)Host (8 bits)

7 IP Address and a 24-bit Subnet Mask Address Mask

8 Addressing Hosts in the Internet The Internet is an “inter-network” Used to connect networks together, not hosts Needs a way to address a network (i.e., group of hosts) host LAN 1... host LAN 2... router WAN LAN = Local Area Network WAN = Wide Area Network

9 Routers Router consists of Set of input interfaces where packets arrive Set of output interfaces from which packets depart Some form of interconnect connecting inputs to outputs Router implements Forward packet to corresponding output interface Manage bandwidth and buffer space resources host LAN 1... host LAN 2... router WAN Router

10 Forwarding Table Store a mapping between IP addresses and output interfaces Forward an incoming packet based on its destination address ……

11 Scalability Challenge Suppose hosts had arbitrary addresses Then every router would need a lot of information …to know how to direct packets toward the host host LAN 1... host LAN 2... router WAN forwarding table

12 Scalability Improved Number related hosts from a common subnet /24 on the left LAN /24 on the right LAN host LAN 1... host LAN 2... router WAN / /24 forwarding table

13 Easy to Add New Hosts No need to update the routers E.g., adding a new host on the right Doesn’t require adding a new forwarding entry host LAN 1... host LAN 2... router WAN / /24 forwarding table host

14 Classful Addressing Class A: if first byte in [0..127], assume /8 (top bit = 0) Very large blocks (e.g., MIT has /8) Class B: first byte in [ ]  assume /16 (top bits = 10) Large blocks (e.g,. UCB has* /16) Class C: [ ]  assume /24 (top bits = 110) Small blocks (e.g., ICIR has /24) The “swamp” (many European networks, due to history) 0 *************** 10 ****** ******** 110 ***** ********

15 Classful Addressing (cont’d) Class D: [ ] (top bits 1110) Multicast groups Class E: [ ] (top bits 11110) Reserved for future use What problems can classful addressing lead to? Only comes in 3 sizes Routers can end up knowing about a lot of class C’s 1110 **** ******** *** ********

16 Classless Inter-Domain Routing (CIDR) IP Address : IP Mask: Address Mask for hostsNetwork Prefix Use arbitrary length prefixes Use two 32-bit numbers to represent a network. Network number = IP address + Mask Written as /15 or 12.4/15

17 CIDR: Hierarchal Address Allocation / / / / /16 :::: / /24 :::: / / / / / / /17 :::::: Prefixes are key to Internet scalability Addresses allocated in contiguous chunks (prefixes) Routing protocols and packet forwarding based on prefixes :

18 Scalability: Address Aggregation Provider is given /21 ( x x) / / / /23 Provider Routers in the rest of the Internet just need to know how to reach /21. The provider can direct the IP packets to the appropriate customer.

19 But, Aggregation Not Always Possible / / / / /23 Provider 1Provider 2 Multi-homed customer with /23 has two providers. Other parts of the Internet need to know how to reach these destinations through both providers.  /23 route must be globally visible

20 Growth in Routed Prefixes ( ) Initial growth super-linear; no aggregation Advent of CIDR allows aggregation: linear growth Internet boom: multihoming drives superlinear growth Dot-com implosion; Internet bubble bursts Back in business

21 Special-Purpose Address Blocks Private addresses By agreement, not routed in the public Internet For networks not meant for general Internet connectivity Blocks: /8, /12, /16 Link-local By agreement, not forwarded by any router Used for single-link communication only Intent: autoconfiguration (especially when DHCP fails) Block: /16 Loopback Address blocks that refer to the local machine Block: /8 Usually only /32 is used Limited broadcast Sent to every host attached to the local network Block: /32

22 Scalability Through Non-Uniform Hierarchy Summary: Hierarchical addressing Critical for scalable system Don’t require everyone to know everyone else Reduces amount of updating when something changes Non-uniform hierarchy Useful for heterogeneous networks of different sizes Initial class-based addressing was far too coarse Classless InterDomain Routing (CIDR) gains much more flexibility

23 5 Minute Break Questions Before We Proceed?

24 Address Allocation

25 Obtaining a Block of Addresses Separation of control Prefix: assigned to an institution Addresses: assigned by the institution to their nodes Who assigns prefixes? Internet Corporation for Assigned Names and Numbers Allocates large address blocks to Regional Internet Registries ICANN is politically charged Regional Internet Registries (RIRs) E.g., ARIN (American Registry for Internet Numbers) Allocates address blocks within their regions Allocated to Internet Service Providers and large institutions ($$) Internet Service Providers (ISPs) Allocate address blocks to their customers (could be recursive)  Often w/o charge

26 Figuring Out Who Owns an Address Address registries Public record of address allocations Internet Service Providers (ISPs) should update when giving addresses to customers However, records are notoriously out-of-date Ways to query UNIX: “whois –h whois.arin.net ” …

27 Example Output for University of California, Office of the President UCNET- BLK (NET ) University of California at Berkeley ISTDATA (NET ) ISTDATA – Information Services and Technology (IST) - Data Communication and Network Services

28 Are 32-bit Addresses Enough? Not all that many unique addresses 2 32 = 4,294,967,296 (just over four billion) Plus, some (many) reserved for special purposes And, addresses are allocated in larger blocks And, many devices need IP addresses Computers, PDAs, routers, tanks, toasters, … Long-term solution ( perhaps ): larger address space IPv6 has 128-bit addresses (2 128 = × ) Short-term solutions: limping along with IPv4 Private addresses Network address translation (NAT) Dynamically-assigned addresses (DHCP)

29 Network Address Translation (NAT) Before NAT… Every machine connected to the Internet had a unique IP address LAN Clients Server Internet dest addr src addr dst port src port

30 Network Address Translation (cont’d) Independently assign addresses to machines behind same NAT Usually in address block /16 Use port numbers to multiplex demultiplex internal addresses Clients Server Internet NAT : :

31 Network Address Translation (cont’d) Independently assign addresses to machines behind same NAT Usually in address block /16 Use port numbers to multiplex demultiplex internal addresses Clients Server Internet NAT : : : :

32 Hard Policy Questions How much address space per geographic region? Equal amount per country? Proportional to the population? What about addresses already allocated? Address space portability? Keep your address block when you change providers? Pro: avoid having to renumber your equipment Con: reduces the effectiveness of address aggregation Keeping the address registries up to date? What about mergers and acquisitions? Delegation of address blocks to customers? As a result, the registries are often out of date

33 Summary of IP Addressing 32-bit numbers identify interfaces Allocated in prefixes Non-uniform hierarchy for scalability and flexibility Routing is based on CIDR A number of special-purpose blocks reserved Address allocation: ICANN  RIR  ISP  customer network  host Issues to be covered later How hosts get their addresses (DHCP) How to map from an IP address to a link address (ARP)

34 Next Lecture IP Forwarding; Transport protocols Read K&R: (pp )