LOGICAL ADDRESSING. Faisal Karim Shaikh.

Similar documents
Internet Fundamentals

Why IPv6? Roque Gagliano LACNIC

Chapter 19 Network Layer: Logical Addressing 19.1

NETWORK LAYER: IP Addressing

Chapter 19 Network Layer: Logical Addressing

Lecture 8 Network Layer: Logical addressing

Chapter 19 Network Layer: Logical Addressing 19.1

Network Layer Part A (IPv6) Network Layer 4-1

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

TSIN02 - Internetworking

Network Layer/IP Protocols

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

IPv6: An Introduction

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

IPv6 Basics. APNIC Training Bali, Indonesia February, Jordi Palet - 1

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

IPv6 Next generation IP

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

An Industry view of IPv6 Advantages

Asst. Prof. Chaiporn Jaikaeo, Ph.D.

Network Layer: Control/data plane, addressing, routers

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

TSIN02 - Internetworking

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

ECE 158A: Lecture 7. Fall 2015

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Planning for Information Network

Lecture Computer Networks

Computer Networks Lecture -5- IPv4 Addresses. Dr. Abbas Abdulazeez

Athanassios Liakopoulos Slovenian IPv6 Training, Ljubljana, May 2010

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

Network Layer: outline

The Internet Protocol (IP)

Lecture 8. Network Layer (cont d) Network Layer 1-1

ECE 461 Internetworking Fall Quiz 1

OSI Data Link & Network Layer

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Internetworking Part 2

The Interconnection Structure of. The Internet. EECC694 - Shaaban

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

CSCI-1680 Network Layer:

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

IP - The Internet Protocol

CSC 401 Data and Computer Communications Networks

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Layering and Addressing CS551. Bill Cheng. Layer Encapsulation. OSI Model: 7 Protocol Layers.

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Introduction p. 1 The Need for Security p. 2 Public Network Threats p. 2 Private Network Threats p. 4 The Role of Routers p. 5 Other Security Devices

SEN366 (SEN374) (Introduction to) Computer Networks

Networking: Network layer

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Data Communication & Computer Networks Week # 13

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Network and Broadband Systems IPv6 What s new? Andreas Hofmeier

End-to-End Communication

OSI Data Link & Network Layer

IPv6 Protocol & Structure. npnog Dec, 2017 Chitwan, NEPAL

Introduction to TCP/IP networking

OSI Network Layer. Chapter 5

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

ETSF10 Internet Protocols Network Layer Protocols

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

IPv6 : Internet Protocol Version 6

History. IPv6 : Internet Protocol Version 6. IPv4 Year-Wise Allocation (/8s)

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

OSI Data Link & Network Layer

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

Chapter 5 Network Layer

IPv6 Concepts. Improve router performance Simplify IP header Align to 64 bits Address hierarchy with more levels Simplify routing tables

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Network layer: Overview. Network Layer Functions

Charles Perkins Nokia Research Center 2 July Mobility Support in IPv6 <draft-ietf-mobileip-ipv6-14.txt> Status of This Memo

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Objectives. Note: An IP address is a 32-bit address. The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Packetization Layer Path Maximum Transmission Unit Discovery (PLPMTU) For IPsec Tunnels

Information Network Systems The network layer. Stephan Sigg

CHAPTER-2 IP CONCEPTS

Where we are in the Course

ET4254 Communications and Networking 1

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Vorlesung Kommunikationsnetze

Mobile Communications Chapter 9: Network Protocols/Mobile IP

Introduction to Internetworking

Network Layer: Logical Addressing

CSEP 561 Internetworking. David Wetherall

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

EE 610 Part 2: Encapsulation and network utilities

Guide to TCP/IP Fourth Edition. Chapter 2: IP Addressing and Related Topics

Chapter 2 Advanced TCP/IP

Chapter 5 TCP/IP SUITE

Transcription:

LOGICAL ADDRESSING Faisal Karim Shaikh faisal.shaikh@faculty.muet.edu.pk DEWSNet Group Dependable Embedded Wired/Wireless Networks www.fkshaikh.com/dewsnet

IPv4 ADDRESSES 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. Topics discussed in this section: Address Space Notations Classful Addressing Classless Addressing

Note An IPv4 address is 32 bits long.

Note The IPv4 addresses are unique and universal.

Note The address space of IPv4 is 2 32 or 4,294,967,296.

Figure 1 Dotted-decimal notation and binary notation for an IPv4 address

Example 1 Change the following IPv4 addresses from binary notation to dotted-decimal notation. Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation.

Example 2 Change the following IPv4 addresses from dotted-decimal notation to binary notation. Solution We replace each decimal number with its binary equivalent

Example 3 Find the error, if any, in the following IPv4 addresses. Solution a. There must be no leading zero (045). b. There can be no more than four numbers. c. Each number needs to be less than or equal to 255. d. A mixture of binary notation and dotted-decimal notation is not allowed.

Note In classful addressing, the address space is divided into five classes: A, B, C, D, and E.

Figure 2 Finding the classes in binary and dotted-decimal notation

Example 4 Find the class of each address. a. 00000001 00001011 00001011 11101111 b. 11000001 10000011 00011011 11111111 c. 14.23.120.8 d. 252.5.15.111 Solution a. The first bit is 0. This is a class A address. b. The first 2 bits are 1; the third bit is 0. This is a class C address. c. The first byte is 14; the class is A. d. The first byte is 252; the class is E.

Table 1 Number of blocks and block size in classful IPv4 addressing

Note In classful addressing, a large part of the available addresses were wasted.

Table 2 Default masks for classful addressing

Note Classful addressing, which is almost obsolete, is replaced with classless addressing.

Example 5 Figure 19.3 shows a block of addresses, in both binary and dotted-decimal notation, granted to a small business that needs 16 addresses. We can see that the restrictions are applied to this block. The addresses are contiguous. The number of addresses is a power of 2 (16 = 2 4 ), and the first address is divisible by 16. The first address, when converted to a decimal number, is 3,440,387,360, which when divided by 16 results in 215,024,210.

Figure 3 A block of 16 addresses granted to a small organization

Note In IPv4 addressing, a block of addresses can be defined as x.y.z.t /n in which x.y.z.t defines one of the addresses and the /n defines the mask.

Note The first address in the block can be found by setting the rightmost 32 n bits to 0s.

Example 6 A block of addresses is granted to a small organization. We know that one of the addresses is 205.16.37.39/28. What is the first address in the block? Solution The binary representation of the given address is 11001101 00010000 00100101 00100111 If we set 32 28 rightmost bits to 0, we get 11001101 00010000 00100101 0010000 or 205.16.37.32. This is actually the block shown in Figure 19.3.

Note The last address in the block can be found by setting the rightmost 32 n bits to 1s.

Example 7 Find the last address for the block in Example 19.6. Solution The binary representation of the given address is 11001101 00010000 00100101 00100111 If we set 32 28 rightmost bits to 1, we get 11001101 00010000 00100101 00101111 or 205.16.37.47 This is actually the block shown in Figure 19.3.

Note The number of addresses in the block can be found by using the formula 2 32 n.

Example 8 Find the number of addresses in Example 6. Solution The value of n is 28, which means that number of addresses is 2 32 28 or 16.

Example 9 Another way to find the first address, the last address, and the number of addresses is to represent the mask as a 32- bit binary (or 8-digit hexadecimal) number. This is particularly useful when we are writing a program to find these pieces of information. In Example 19.5 the /28 can be represented as 11111111 11111111 11111111 11110000 (twenty-eight 1s and four 0s). Find a. The first address b. The last address c. The number of addresses.

Example 9 (continued) Solution a. The first address can be found by ANDing the given addresses with the mask. ANDing here is done bit by bit. The result of ANDing 2 bits is 1 if both bits are 1s; the result is 0 otherwise.

Example 9 (continued) b. The last address can be found by ORing the given addresses with the complement of the mask. ORing here is done bit by bit. The result of ORing 2 bits is 0 if both bits are 0s; the result is 1 otherwise. The complement of a number is found by changing each 1 to 0 and each 0 to 1.

Example 9 (continued) c. The number of addresses can be found by complementing the mask, interpreting it as a decimal number, and adding 1 to it.

Figure 4 A network configuration for the block 205.16.37.32/28

Note The first address in a block is normally not assigned to any device; it is used as the network address that represents the organization to the rest of the world.

Figure 5 Two levels of hierarchy in an IPv4 address

Figure 6 A frame in a character-oriented protocol

Note Each address in the block can be considered as a two-level hierarchical structure: the leftmost n bits (prefix) define the network; the rightmost 32 n bits define the host.

Figure 7 Configuration and addresses in a subnetted network

Figure 8 Three-level hierarchy in an IPv4 address

Example 10 An ISP is granted a block of addresses starting with 190.100.0.0/16 (65,536 addresses). The ISP needs to distribute these addresses to three groups of customers as follows: a. The first group has 64 customers; each needs 256 addresses. b. The second group has 128 customers; each needs 128 addresses. c. The third group has 128 customers; each needs 64 addresses. Design the subblocks and find out how many addresses are still available after these allocations.

Example 10 (continued) Solution Figure 19.9 shows the situation. Group 1 For this group, each customer needs 256 addresses. This means that 8 (2 8 256) bits are needed to define each host. The prefix length is then 32 8 = 24. The addresses are

Example 10 (continued) Group 2 For this group, each customer needs 128 addresses. This means that 7 (2 7 128) bits are needed to define each host. The prefix length is then 32 7 = 25. The addresses are

Example 10 (continued) Group 3 For this group, each customer needs 64 addresses. This means that 6 (2 6 64) bits are needed to each host. The prefix length is then 32 6 = 26. The addresses are Number of granted addresses to the ISP: 65,536 Number of allocated addresses by the ISP: 40,960 Number of available addresses: 24,576

Figure 9 An example of address allocation and distribution by an ISP

Techniques to reduce address shortage in IPv4 Subnetting Classless Inter Domain Routing (CIDR) Network Address Translation (NAT)

Network Address Translation Each organizationsingle IP address Within organization each host with IP unique to the orgn., from reserved set of IP addresses

NAT Example C 10.0.0.4 B 10.0.0.1 Source Computer Source Computer's IP Address Source Computer's Port NAT Router's IP Address NAT Router's Assigned Port Number A 10.0.0.1 400 24.2.249.4 1 B 10.0.0.2 50 24.2.249.4 2 C 10.0.0.3 3750 24.2.249.4 3 D 10.0.0.4 206 24.2.249.4 4

NAT (continued) Advantages : Reduce the need of public addresses Ease the internal addressing plan Transparent to some applications Security vs obscurity Clear delimitation point for ISPs. Disadvantages: Translation sometime complex (e.g. FTP, VOIP). Apps using dynamic ports (UPnP). Does not scale (today avg. of 500 active sessions per user). Introduce states inside the network: Multi-homed networks Breaks the end-to-end paradigm. Security with IPsec. Difficulties for operations when done inside a Provider network.

CIDR + NAT Today 17% Left

Would increased use of NATs be adequate? NO! NAT enforces a client-server application model where the server has topological constraints. They won t work for peer-to-peer or devices that are called by others (e.g., IP phones) They inhibit deployment of new applications and services, because all NATs in the path have to be upgraded BEFORE the application can be deployed. NAT compromises the performance, robustness, and security of the Internet. NAT increases complexity and reduces manageability of the local network. Public address consumption is still rising even with current NAT deployments.

What were the goals of a new IP design? Expectation of a resurgence of always-on technologies xdsl, cable, Ethernet-to-the-home, Cell-phones, etc. Expectation of new users with multiple devices. China, India, Pakistan etc. as new growth Consumer appliances as network devices (10 15 endpoints) Expectation of millions of new networks. Expanded competition and structured delegation. (10 12 sites)

Why is IPv4 to IPv6 transition so important?

What is IPv6 in one page IPv6 is a Network Protocol with many more addresses than IPv4: 340,282,366,920,938,463,374,607,431,768,211,456 available addresses. With so many addresses we can overcome the shortage in IPv4 supply and continuing support the growth of Internet. In IPv6 some tasks are simpler than in IPv4: (Auto-configuration, Renumbering, Multicast, IP Mobility, etc.) IPv6 Enables Innovation. Particularly for applications without NAT

Things that change in IPv6, that are good to know: IPv6 addresses are represented by Hexadecimal numbers. Example: 2001:DB8:12FF:1231:FFB5::F9DA/64. In IPv6 there is not Network Mask, only Prefix Length. In IPv6 the header is always 40 bytes long, extensions are listed as next header. In IPv6 there is no Broadcast, only Multicast. In IPv6 there is no ARP or IGMP, ICMPv6 takes those jobs. In IPv6 routers do not fragment, only Terminals. Path MTU Discover is Mandatory. IPv6 header does not include a checksum, so if designing software, UDP checksum is mandatory.

The IPv4 Header 20 octets + options : 13 fields, including 3 flag bits 0 4 8 16 24 31 Ver IHL Service Type Total Length Identifier Flags Fragment Offset Time to Live Protocol Header Checksum 32 bit Source Address 32 bit Destination Address Options and Padding

The IPv6 Header 40 Octets, 8 fields 0 4 12 16 24 31 Version Class Flow Label Payload Length Next Header Hop Limit 128 bit Source Address 128 bit Destination Address

Summary of Header Changes between IPv4 & IPv6 Streamlined Fragmentation fields moved out of base header IP options moved out of base header Header Checksum eliminated Header Length field eliminated Length field excludes IPv6 header Alignment changed from 32 to 64 bits Revised Time to Live Hop Limit Protocol Next Header Precedence & TOS Traffic Class Addresses increased 32 bits 128 bits Extended Flow Label field added

Extension Headers IPv6 header TCP header + data next header = TCP IPv6 header Routing header TCP header + data next header = Routing next header = TCP IPv6 header next header = Routing Routing header next header = Fragment Fragment header next header = TCP fragment of TCP header + data

Extension Headers (cont.) Generally processed only by node identified in IPv6 Destination Address field => much lower overhead than IPv4 options processing exception: Hop-by-Hop Options header Eliminated IPv4 s 40-byte limit on options in IPv6, limit is total packet size, or Path MTU in some cases Currently defined extension headers: Hop-by-Hop Options, Routing, Fragment, Authentication, Encryption, Destination Options

Fragment Header Next Header Reserved Fragment Offset 0 0 M Original Packet Identifier though discouraged, can use IPv6 Fragment header to support upper layers that do not (yet) do path MTU discovery IPv6 frag. & reasm. is an end-to-end function; routers do not fragment packets en-route if too big they send ICMP packet too big instead

IPv4 and IPv6 dual reference stacks Application layer DNS SSH SMTP HTTP Transport layer TCP UDP IGMP ICMP ARP ICMPv6 Network layer IP (v4) IP (v6) Data link / physical layers Ethernet PPP HDLC

IPv6 Mobility Mobile hosts have one or more home address relatively stable; associated with host name in DNS A Host will acquire a foreign address when it discovers it is in a foreign subnet (i.e., not its home subnet) uses auto-configuration to get the address registers the foreign address with a home agent, i.e, a router on its home subnet Packets sent to the mobile s home address(es) are intercepted by home agent and forwarded to the foreign address, using encapsulation Mobile IPv6 hosts will send binding-updates to correspondent to remove home agent from flow

Mobile IP (v4 version) mobile host correspondent host foreign agent home agent home location of mobile host

Mobile IP (v4 version) mobile host correspondent host foreign agent home agent home location of mobile host

Mobile IP (v4 version) mobile host correspondent host foreign agent home agent home location of mobile host

Mobile IP (v4 version) mobile host correspondent host foreign agent home agent home location of mobile host

Mobile IP (v6 version) mobile host correspondent host home agent home location of mobile host

Mobile IP (v6 version) mobile host correspondent host home agent home location of mobile host

Mobile IP (v6 version) mobile host correspondent host home agent home location of mobile host

Mobile IP (v6 version) mobile host correspondent host home agent home location of mobile host

Mobile IP (v6 version) mobile host correspondent host home agent home location of mobile host