+ All Categories
Home > Documents > IP ADDRESSING - The Computer Networks...

IP ADDRESSING - The Computer Networks...

Date post: 30-Jun-2020
Category:
Upload: others
View: 3 times
Download: 4 times
Share this document with a friend
32
IP ADDRESSING
Transcript
Page 1: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

IP ADDRESSING

Page 2: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Outline

à  Network architecture à  Address format à  Netmask

Page 3: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

NETWORK ARCHITECTURE

Page 4: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Network Architecture

H2 H3

IP  net    1  

IP  net  3   IP  net  6  

IP  net  7  

IP  net  9  ATM  CDN  

H4  

Ethernet  

R5  

R4  

R3  xDSL  

xDSL  

Ethernet  WIFI  

Host  

Logical  subnet    

R1  

Router    (Gateway)  

Physical  network  

R2  

Page 5: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Logical IP Subnet (LIS)

Set of interfaces with common address prefix

Prefix  

1  physical  network      

1  logical  IP  network  

Page 6: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Logical and Physical Networks à All interfaces with the same address prefix must be connected to the same physical network

Page 7: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à All interfaces of the same physical network must have the same address prefix

What does this imply?

Page 8: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

A Network Identifier

Host  Network  

à Network part à Host part

Address prefix is unique to a given (physical/logical) network

Page 9: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Scalability!  

IP  net    1  

IP  net  3  IP  net  6  

IP  net  7  

IP  net  9  

R1

R2  

R5  

R4  

R3  

rou<ng  are  closely  related  

Addressing  and  

Page 10: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Does It Come for Free?

à Address space waste à Addressing efficiency

à Commonly below 25%

Page 11: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

ADDRESS FORMAT

Page 12: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

IP Addresses

à  32 bits (4 bytes) à  Represented in dotted

decimal notation

Page 13: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à Each byte expressed as a decimal number separated by a dot

à 12.4.56.38 193.129.3.215 à Each element from O to 255

Page 14: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

How Large is the Prefix? à Fixed size is too limited à Three sizes:

à Class A: 1 byte à Class B: 2 bytes à Class C: 3 bytes

Check the first byte!

Page 15: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Class A à  E.g., 84.24O.2O.1

à  Max 128 network prefixes à  Max 16M host addresses

Host  1   7   8   31  Network  

0  127  

0  

Page 16: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à E.g., 153.24O.2O.1

à Max 16K network prefixes à Max 64K host addresses

2   7   16   31  

128  191  

Host  Network  1  0  

Class B

Page 17: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à E.g., 2O3.24O.2O.1

à Max 2M network prefixes à Max 255 host addresses

2   7   16   31  

1   0  1   Host  Network  192  223  

Class C

Page 18: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

And It Goes On … à Class D à E.g., 225.24O.2O.1

à Used for multicast à Class E: anycast à Not associated to interfaces

2   7   31  Mul<cast  Address  1   0  1  1  

224  239  

Page 19: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Reserved Host Field Values

à All ones: directed broadcast à E.g., 2O3.24O.2O.255 à Routed à Cannot be associated

to an interface

Page 20: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à All zeros: the LIS à E.g., 2O3.24O.2O.O à Could be associated to an interface

Page 21: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Available Host Identifiers

n bit host field ê

2n-2 available identifiers

Possibly 2n-1 if network address is associated to an interface

Page 22: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Reserved Addresses

à All ones: limited broadcast à 255.255.255.255 à Not received by all stations

à Not routed à This host: O.O.O.O à Loopback: 127.*.*.*

Page 23: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

NETMASK

Page 24: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Issues With Classful Addressing

à Lack of flexibility à Low addressing efficiency

à Centralized address space assignment

Page 25: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Netmask and Classless Addressing

à Associated to IP address à Marks boundary of network and host parts

Page 26: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à Any size network/host part

1  1  0  0  0  0  0  0   .  1  0  1  0  1  0  0  0   .  0  0  0  0  1  0  1  0   .  0  1  0  0  0  1  0  1  

1   24   32  2  3   25   27  1  1  1  1  1  1  1  1   .  1  1  1  1  1  1  1  1   .  1  1  1  1  1  1  1  1   .  1  1  0  0  0  0  0  0  255        .          255        .            255          .            192  

Netmask  

192        .  168      .                10          .            69  Address  

Network  part   Host  part  

Page 27: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Valid Netmask Byte Values

à  0      0000  0000  à  128      1000  0000  à  192    1100  0000  à  224      1110  0000  à  240    1111  0000  à  248      1111  1000  à  252      1111  1100  à  254      1111  1110  à  255    1111  1111  

Page 28: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Natural Netmaks/Prefixes

à Class A è 255.O.O.O à Class B è 255.255.O.O à Class C è 255.255.255.O

Page 29: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à Subnetting: prefix shorter than natural one

à Supernetting: prefix longer than natural one

Subnetting and Supernetting

Page 30: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

SubneKng  Examples  0   1   23  24   31  2   3  

Host  1   Network  0  1  25  

From  129  

to      190  

1  0  0  0  0  0  0  1  

1  0  1  1  1  1  1  0  

From  65  

to  126  

1  1  0  0  0  0  0  0   .  1  0  1  0  1  0  0  0  .  0  0  0  0  1  0  1  0   .  0  1  0  0  0  0  0  1  0  1  1  1  1  1  1  0  192          .            168            .              10            .  

Network  field  

26  

Host  

255          .          255            .            255            .      192  

1  1  1  1  1  1  1  1   .  1  1  1  1  1  1  1  1  .  1  1  ì1  1  1  1  1  1   .  1  1  0  0  0  0  0  0   Netmask  

Net  (natural    prefix)  

Subnet  

Page 31: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

Subnetting and Centralized Address Assignment à Addresses assigned to organization in natural prefixes

Page 32: IP ADDRESSING - The Computer Networks Groupnetgroup.polito.it/courses/Didattica/CN/IP-Addressing_E...IP ADDRESSING Outline ! Network architecture ! Address format ! Netmask NETWORK

à One large set of addresses à Organizations use subnetting to devise a prefixes for each network


Recommended