+ All Categories
Home > Documents > 4 Network Layer.pptx

4 Network Layer.pptx

Date post: 04-Jun-2018
Category:
Upload: tutun-juhana
View: 222 times
Download: 0 times
Share this document with a friend

of 46

Transcript
  • 8/13/2019 4 Network Layer.pptx

    1/46

    Network Layer

    Computer Networks

    Tutun JuhanaTelecommunication EngineeringSchool of Electrical Engineering & Informatics

    Institut Teknologi Bandung

    4

  • 8/13/2019 4 Network Layer.pptx

    2/46

    INTRODUCTION

  • 8/13/2019 4 Network Layer.pptx

    3/46

  • 8/13/2019 4 Network Layer.pptx

    4/46

  • 8/13/2019 4 Network Layer.pptx

    5/46

  • 8/13/2019 4 Network Layer.pptx

    6/46

  • 8/13/2019 4 Network Layer.pptx

    7/46

    Other Network Layer Issues

    Error Control

    Flow Control

    Congestion control

    Quality of Service

    Routing

    Security

  • 8/13/2019 4 Network Layer.pptx

    8/46

    IPV4 ADDRESSES

  • 8/13/2019 4 Network Layer.pptx

    9/46

    The IPv4 addresses are unique anduniversal

    An IPv4 address is 32 bits long

    The address space of IPv4 is 232

    or4.294.967.296

    Notation: Dotted-Decimal Notation (Base

    256)

  • 8/13/2019 4 Network Layer.pptx

    10/46

    Range of Address

    To find the number of addresses in a range if the

    first and last address is given we can perform

    subtraction or addition

    Example #1

    Find the number of addresses in a range if the firstaddress is 146.102.29.0 and the last address is

    146.102.32.255

    Ans:

    146.102.32.255 - 146.102.29.0 = 0.0.3.255 Number of addresses= (02563+ 02562+ 32561+

    2552560)+ 1= 1024

  • 8/13/2019 4 Network Layer.pptx

    11/46

    Example #2The first address in a range of addresses is

    14.11.45.96. If the number of addresses in the range is

    32, what is the last address?

    Ans: Convert the number of addresses minus 1 to base

    256 0.0.0.31

    We then add it (in base 256) to the first address to get

    the last addressLast address = (14.11.45.96 + 0.0.0.31)256= 14.11.45.127

  • 8/13/2019 4 Network Layer.pptx

    12/46

    CLASSFUL ADDRESSING

  • 8/13/2019 4 Network Layer.pptx

    13/46

  • 8/13/2019 4 Network Layer.pptx

    14/46

    Recognizing Classes

  • 8/13/2019 4 Network Layer.pptx

    15/46

  • 8/13/2019 4 Network Layer.pptx

    16/46

    Classes and Blocks

    In classful addressing , each class is

    divided into a fixed number of blocks (each

    block having a fixed size) can be a

    problem

  • 8/13/2019 4 Network Layer.pptx

    17/46

  • 8/13/2019 4 Network Layer.pptx

    18/46

  • 8/13/2019 4 Network Layer.pptx

    19/46

  • 8/13/2019 4 Network Layer.pptx

    20/46

  • 8/13/2019 4 Network Layer.pptx

    21/46

    Two-Level Addressing

    The range of addresses allocated to an

    organization in classful addressing was a block

    of addresses in Class A, B, or C

    Since all addresses in a network belonged to asingle block, each address in classful

    addressing contains two parts: netid and hostid

    The netiddefines the network

    The hostiddefines a particular host connected to that

    network

  • 8/13/2019 4 Network Layer.pptx

    22/46

  • 8/13/2019 4 Network Layer.pptx

    23/46

    Extracting Information in a Block

    A block is a range of addresses

    Given any address in the block, we normally like

    to know :

    1. The number of addresses2. The first address

    3. The last address

    To extract the above information, we need to

    know the class of the address we will know

    the value of n (the length of netid in bits)

  • 8/13/2019 4 Network Layer.pptx

    24/46

  • 8/13/2019 4 Network Layer.pptx

    25/46

  • 8/13/2019 4 Network Layer.pptx

    26/46

    Example #3

    An address in a block is given as 73.22.17.25. Find thenumber of ddresses in the block, the first address, and

    the last address

    N = 232 n= 224 = 16,777,216

    not assigned to any host

  • 8/13/2019 4 Network Layer.pptx

    27/46

  • 8/13/2019 4 Network Layer.pptx

    28/46

    Network Address The first address in a block is network address

    important because it is used in routing apacket to its destination network

  • 8/13/2019 4 Network Layer.pptx

    29/46

    Network Mask

    Routers in the Internet need to know the

    network maskto extract the network

    address from the destination address of a

    packet

    A network mask(default maskin classful

    addressing) is a 32-bit number with n

    leftmost bits all set to 1s and (32 n)rightmost bits all set to 0s

  • 8/13/2019 4 Network Layer.pptx

    30/46

  • 8/13/2019 4 Network Layer.pptx

    31/46

  • 8/13/2019 4 Network Layer.pptx

    32/46

    Example #4

    A router receives a packet with the destination

    address 201.24.67.32. Show how the router

    finds the network address of the packet

    omething Wrong here

  • 8/13/2019 4 Network Layer.pptx

    33/46

    Three-Level Addressing: Subnetting

    We need more than two hierarchical levels for two reasons

    1. An organization that was granted a block in class A or B needed to

    divide its large network into several subnetworks for better security

    and management

    2. Since the blocks in class A and B were almost depleted and the

    blocks in class C were smaller than the needs of most organizations,

    an organization that has been granted a block in class A or B coulddivide the block into smaller subblocks and share them with other

    organizations

    The idea of splitting a block to smaller blocks is referred

    to as subnetting

    In subnetting, a network is divided into several smaller

    subnetworks (subnets) with each subnetwork having its

    own subnetwork address

  • 8/13/2019 4 Network Layer.pptx

    34/46

    Example #5

    Before subnetting

    Length of netid

  • 8/13/2019 4 Network Layer.pptx

    35/46

    After subnetting

    Length of subnetid

  • 8/13/2019 4 Network Layer.pptx

    36/46

    Subnet Mask

    The network maskis used when a network

    is not subnetted

    When we divide a network to several

    subnetworks, we need to create a

    subnetwork mask(or subnet mask) for

    each subnetwork

    A subnetworkhas subnetidand hostid

  • 8/13/2019 4 Network Layer.pptx

    37/46

    Subnetting increases the length of the netid and decreases the length of

    hostid

  • 8/13/2019 4 Network Layer.pptx

    38/46

  • 8/13/2019 4 Network Layer.pptx

    39/46

    Example #6

    In Example #5, we divided a class B network

    into four subnetworks. The value of n = 16

    and the value of n1= n2= n3= n4= 16 + log24 =18 The subnet mask has eighteen 1s and

    fourteen 0s 255.255.192.0 (different from

    the network mask for class B (255.255.0.0))

  • 8/13/2019 4 Network Layer.pptx

    40/46

  • 8/13/2019 4 Network Layer.pptx

    41/46

  • 8/13/2019 4 Network Layer.pptx

    42/46

    Supernetting

    In supernetting, an organization can combine

    several class C blocks to create a larger range

    of addresses (several networks are combined to

    create a supernetwork)

    By doing this, an organization can apply for severalclass C blocks instead of just one

    For example, an organization that needs 1000

    addresses can be granted four class C blocks.

  • 8/13/2019 4 Network Layer.pptx

    43/46

    Supernet Mask

    A supernetmask is the reverse of a

    subnet mask

    A supernet maskfor class C has less 1s

    than the default maskfor this class.

  • 8/13/2019 4 Network Layer.pptx

    44/46

  • 8/13/2019 4 Network Layer.pptx

    45/46

    In supernetting, the number of class C addresses that

    can be combined to make a supernet needs to be a

    power of 2

    The length of the supernetidcan be found using the

    formula

    nsuperdefines the length of the supernetidin bits

    cdefines the number of class C blocks that are

    combined

  • 8/13/2019 4 Network Layer.pptx

    46/46

    Problems

    1. The number of blocks to combine needs

    to be a power of 2

    An organization that needed seven blocks

    should be granted at least eight blocks(address wasting)

    2. Supernetting and subnetting complicated

    the routing of packets in the Internet.


Recommended