4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation 0000110000100010.

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

Introduction to IPv6 Presented by: Minal Mishra. Agenda IP Network Addressing IP Network Addressing Classful IP addressing Classful IP addressing Techniques.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
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.
© 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.
CS 457 – Lecture 16 Global Internet - BGP Spring 2012.
4: Network Layer4a-1 IP Addressing: introduction r IP address: 32-bit identifier for host, router interface r interface: connection between host, router.
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.
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.
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.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
1 EE 122: IP Addressing Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson, Jennifer.
Chapter 5 The Network Layer.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Network Layer Shivkumar.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Announcement r Project 3 out, due 3/10 r Homework 3 out last week m Due next Mon. 3/1.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
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 19 Network Layer: Logical Addressing
Computer Networks The Network Layer
IP tutorial – #1 KAIST Dept. of CS NC Lab..
Datagram Networks: Internet Protocol (IPv4)
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.
4: Network Layer4a-1 Hierarchical Routing r aggregate routers into regions, “autonomous systems” (AS) r routers in same AS run same routing protocol m.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
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.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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 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 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.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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 Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
CS470 Computer Networking Protocols
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r Understand principles behind network layer services: m Routing (path selection) m dealing with.
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 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.
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/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
Introduction to Networks
12 – IP, NAT, ICMP, IPv6 Network Layer.
Chapter 4: Network Layer
Computer Communication Networks
Chapter 4: Network Layer
IP - Internet Protocol (Based on Kurose & Ross)
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)
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation

Network ID, Host ID, Gateway

خط فرضی = Netmask

Network Layer Addressing IP addresses 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to to to bits

Internet Classes  (Class B)  (Class C)  (Class A)  (Class D)  (Class E)  Class A, B are full; class C still has available addresses; D is reserved for multicasting and class E is reserved for future use

Network Layer Addressing Subnetting class C address  Only 8 bits are available for hosts : possible subnet masks are: = = = = = = = = = = = = = = 254

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

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

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

32 CIDR: Hierarchal Address Allocation / / / / / /16 :::::: / /24 :::: / / / / / / /19 :::::: Prefixes are key to Internet scalability –Address allocated in contiguous chunks (prefixes) –Routing protocols and packet forwarding based on prefixes –Today, routing tables contain ~150, ,000 prefixes

33 Scalability: Address Aggregation Provider is given / / / / /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.

Netmasks and IP addresses  The netmask splits the IP address into the network part and the host part.  The address is and-ed with the netmask to determine the two parts E.g – , netmask IP: Mask: Net: Host: Net: Host: (less used)

© 2000, Cisco Systems, Inc. BSCN v1.0—3-35 Host Addresses E NetworkHost.. NetworkInterface E0 E1 Routing Table E0

© 2000, Cisco Systems, Inc. BSCN v1.0—3-36 IP Addressing network consisting of 3 IP networks (for IP addresses starting with 223, first 24 bits are network address) LAN

© 2000, Cisco Systems, Inc. BSCN v1.0—3-37 IP Addressing How to find the networks? Detach each interface from router, host create “islands of isolated networks Interconnected system consisting of six networks

© 2000, Cisco Systems, Inc. BSCN v1.0—3-38 Getting a datagram from source to dest. IP datagram: A B E misc fields source IP addr dest IP addr data l datagram remains unchanged, as it travels source to destination l addr fields of interest here Dest. Net. next router Nhops routing table in A:

© 2000, Cisco Systems, Inc. BSCN v1.0—3-39 Getting a datagram from source to dest A B E Starting at A, given IP datagram addressed to B: l look up net. address of B l find B is on same net. as A l link layer will send datagram directly to B inside link-layer frame n B and A are directly connected Dest. Net. next router Nhops misc fields data

© 2000, Cisco Systems, Inc. BSCN v1.0—3-40 Getting a datagram from source to dest A B E Dest. Net. next router Nhops Starting at A, dest. E: l look up network address of E l E on different network n A, E not directly attached l routing table: next hop router to E is l link layer sends datagram to router inside link- layer frame l datagram arrives at l continued….. misc fields data

© 2000, Cisco Systems, Inc. BSCN v1.0—3-41 Getting a datagram from source to dest A B E Arriving at , destined for l look up network address of E l E on same network as router’s interface n router, E directly attached l link layer sends datagram to inside link-layer frame via interface l datagram arrives at !!! (hooray!) misc fields data network router Nhops interface Dest. next

Netmasks - the easy way  The scope of a network is defined by the network mask:  Class B network example Address: Mask:  Class C network example Address: Mask: Scope: Scope:

Router’s operations At each hop the data link layer frame is changed but the packets above never change

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

46 IPv6 Header compared to IPv4 Header Ver. Time to Live Source Address Total Length Type of Service Hdr Len Identification Fragment Offset Flg Protocol Header Checksum Destination Address Options... Ver. Traffic Class Source Address Payload Length Next Header Hop Limit Destination Address Hdr Len Identification Fragment Offset Flg Header Checksum Options... shaded fields have no equivalent in the other version IPv6 header is twice as long (40 bytes) as IPv4 header without options (20 bytes) Flow Label