Module 5 - Network Layer.pptx

Embed Size (px)

Citation preview

  • 7/27/2019 Module 5 - Network Layer.pptx

    1/111

    NETWORK LAYER

    PHM VN TNH, Ph.D.

    PART5OSI NETWORK LAYER

  • 7/27/2019 Module 5 - Network Layer.pptx

    2/111

    Khoa CNTTH Nn Lm TP. HCM 2014 2/111

    Objectives

    Identify the role of the Network Layer, as it describescommunication from one end device to another enddevice.

    Examine the most common Network Layer protocol,Internet Protocol (IP), and its features for providing

    connectionless and best-effort service. Understand the principles used to guide the division

    or grouping of devices into networks.

    Understand the hierarchical addressing of devices andhow this allows communication between networks.

    Understand the fundamentals of routes, next hopaddresses and packet forwarding to a destination

    network.

  • 7/27/2019 Module 5 - Network Layer.pptx

    3/111

    Khoa CNTTH Nn Lm TP. HCM 2014 3/111

    Introduction The protocols of the OSI model Network layer specify

    addressingand processes that enable Transport layer data to be

    packaged and transported. The Network layer encapsulationallows its contents tobe passed to thedestination within

    a network or onanother networkwith minimum

    overhead.

  • 7/27/2019 Module 5 - Network Layer.pptx

    4/111

    Khoa CNTTH Nn Lm TP. HCM 2014 4/111

    Functions of Network Layer

    The major functions of the network layer:

    Defines a packet and an addressing scheme.The network layer's addressing scheme is used bydevices to determine the destination of data as itmoves through the network

    Find the best path through the network.Path determination is the process that the routeruses to choose the next hop in the path for thepacket to travel to its destination. This process isalso called routing the packet.

    Communication between separate networks.

  • 7/27/2019 Module 5 - Network Layer.pptx

    5/111

    Khoa CNTTH Nn Lm TP. HCM 2014 5/111

    Role of the Network Layer

    Network Layer Communication from Host toHost

    Layer 3 uses four basic processes:

    Addressing

    Encapsulation

    Routing: Intermediary devices that connect thenetworks are called routers. The role of the routeris to select paths for and direct packets toward their

    destination. This process is known as routing. Decapsulation

  • 7/27/2019 Module 5 - Network Layer.pptx

    6/111

    Khoa CNTTH Nn Lm TP. HCM 2014 6/111

    Encapsulation

  • 7/27/2019 Module 5 - Network Layer.pptx

    7/111Khoa CNTTH Nn Lm TP. HCM 2014 7/111

    De-Encapsulation

  • 7/27/2019 Module 5 - Network Layer.pptx

    8/111Khoa CNTTH Nn Lm TP. HCM 2014 8/111

    Network Layer Protocols

    Protocols implemented at the Network layer that carryuser data include:

    Internet Protocol version 4 (IPv4)

    Internet Protocol version 6 (IPv6)

    Novell Internetwork Packet Exchange (IPX)

    AppleTalk

    Connectionless Network Service (CLNS/DECNet)

  • 7/27/2019 Module 5 - Network Layer.pptx

    9/111Khoa CNTTH Nn Lm TP. HCM 2014 9/111

    Network Layer and Internet Protocol

    The Internet Protocol was designedas a protocol with lowoverhead.It provides only the functions that are necessary to

    deliver a packet from a source to a destination over aninterconnected system of networks

  • 7/27/2019 Module 5 - Network Layer.pptx

    10/111Khoa CNTTH Nn Lm TP. HCM 2014 10/111

    The IPv4 Protocol Connectionless

  • 7/27/2019 Module 5 - Network Layer.pptx

    11/111Khoa CNTTH Nn Lm TP. HCM 2014 11/111

    The IPv4 Protocol Best Effort

    Best Effort Service (unreliable)

    Describe the implications for the use of the IP protocolas it is considered an unreliable protocol

    Unreliable means simply that IP does not havethecapability to manage, and recover from, undelivered

    or corrupt packets

  • 7/27/2019 Module 5 - Network Layer.pptx

    12/111Khoa CNTTH Nn Lm TP. HCM 2014 12/111

    The IPv4 Protocol Media Independent

    IPv4 and IPv6 operate independently of the media thatcarry the data at lower layers of the protocol stack

    One major characteristic of the media that the Networklayer considers: the maximumsize of PDU that eachmedium can transport:the MaximumTransmissionUnit (MTU)

  • 7/27/2019 Module 5 - Network Layer.pptx

    13/111Khoa CNTTH Nn Lm TP. HCM 2014 13/111

    Packaging the Transport Layer PDU

    The process of encapsulating data by layer enablesthe services at the different layers to develop andscale without affecting other layers.

    Routers can implement these different Network layerprotocols to operate concurrently over a network to

    and from the same or different hosts.

  • 7/27/2019 Module 5 - Network Layer.pptx

    14/111Khoa CNTTH Nn Lm TP. HCM 2014 14/111

    IPv4 Packet Header

  • 7/27/2019 Module 5 - Network Layer.pptx

    15/111Khoa CNTTH Nn Lm TP. HCM 2014 15/111

    Network layer fields

    indicates the version of

    IP currently used (4 bits)

    indicates the datagram

    header length in 32 bit

    words (4 bits)

    specifies the level of

    importance that a particular

    upper layer protocol hasassigned (8 bits)

    specifies the length of the entire

    IP packet, including data and

    header, in bytes (16 bits)contains an integer that identifies

    the current datagram (16 bits) This

    is the sequence number

    3-bit field in which the 2 low-order bits control

    fragmentation - one bit specifying whether the

    packet can be fragmented, and the second

    whether the packet is the last fragment in a

    series of fragmented packets (3 bits)

    the field that is used to help

    piece together datagram

    fragments (13 bits)

  • 7/27/2019 Module 5 - Network Layer.pptx

    16/111Khoa CNTTH Nn Lm TP. HCM 2014 16/111

    Network layer fields

    maintains a counter that gradually

    decreases, by increments, to zero, at

    which point the datagram is

    discarded, keeping the packets from

    looping endlessly (8 bits)

    indicates which upper-layer protocol,such as TCP or UDP, receives

    incoming packets after IP processing

    has been completed (8 bits)

    helps ensure IP header

    integrity (16 bits)

  • 7/27/2019 Module 5 - Network Layer.pptx

    17/111Khoa CNTTH Nn Lm TP. HCM 2014 17/111

    Network layer fields

    specifies the sending node IP

    address, 32 bitsspecifies the receiving node IP

    address, 32 bits

    allows IP to support various

    options, such as security,

    variable length.

    extra zeros are added to this field

    to ensure that the IP header is

    always a multiple of 32 bits

    contains upper-layer information,

    variable length up to 64 KB

  • 7/27/2019 Module 5 - Network Layer.pptx

    18/111

    Networks

    Dividing Hosts into Groups

  • 7/27/2019 Module 5 - Network Layer.pptx

    19/111Khoa CNTTH Nn Lm TP. HCM 2014 19/111

    Separating Hosts into Common Groups

    Networks can be grouped based on factors thatinclude:

    Geographic location

    Purpose

    Ownership

    Geographic

  • 7/27/2019 Module 5 - Network Layer.pptx

    20/111Khoa CNTTH Nn Lm TP. HCM 2014 20/111

    Separating Hosts into Common Groups

    Purpose: Users who have similar tasks typically usecommon software, common tools, and have commontraffic patterns

  • 7/27/2019 Module 5 - Network Layer.pptx

    21/111Khoa CNTTH Nn Lm TP. HCM 2014 21/111

    Separating Hosts into Common Groups

    Ownership: Using an organizational (company,department) basis for creating networks assists incontrolling access to the devices and data as well asthe administration of the networks

  • 7/27/2019 Module 5 - Network Layer.pptx

    22/111Khoa CNTTH Nn Lm TP. HCM 2014 22/111

    Separating Hosts into Common Groups

    Ownership

    h h i k

  • 7/27/2019 Module 5 - Network Layer.pptx

    23/111Khoa CNTTH Nn Lm TP. HCM 2014 23/111

    Why separate hosts into networks

    Common issues with large networks are: Performancedegradation, Security issues, Address Management

    h h i k

  • 7/27/2019 Module 5 - Network Layer.pptx

    24/111Khoa CNTTH Nn Lm TP. HCM 2014 24/111

    Why separate hosts into networks

    Increase network security

    Wh h i k

  • 7/27/2019 Module 5 - Network Layer.pptx

    25/111Khoa CNTTH Nn Lm TP. HCM 2014 25/111

    Why separate hosts into networks

    Address management: To expect each host toknow the address of every other host would impose aprocessing burden on these network devices thatwould severely degrade their performance.

    Wh t h t i t t k

  • 7/27/2019 Module 5 - Network Layer.pptx

    26/111Khoa CNTTH Nn Lm TP. HCM 2014 26/111

    Why separate hosts into networks

    Hierarchical addressing: solves the problem of devicescommunicating across networks of networks

    i idi h k k f k

  • 7/27/2019 Module 5 - Network Layer.pptx

    27/111

    Khoa CNTTH Nn Lm TP. HCM 2014 27/111

    Dividing the networks -Networks from networks

    If a large network has to be divided, additional layersof addressing can be created. Using hierarchicaladdressing means that the higher levels of theaddress are retained; with a subnetwork level andthen the host level

  • 7/27/2019 Module 5 - Network Layer.pptx

    28/111

    Routing

    Supporting communication outside our network

  • 7/27/2019 Module 5 - Network Layer.pptx

    29/111

    Khoa CNTTH Nn Lm TP. HCM 2014 29/111

    Supporting communication outside our network

    To communicate with a device on another network, ahost uses the address of this gateway, or defaultgateway, to forward a packet outside the localnetwork

    The router also needs a route that defines where to

    forward the packet next. This is called the next-hopaddress. If a route is available to the router, the routerwill forward the packet to the next-hop router thatoffers a path to the destination network.

    P k t F di

  • 7/27/2019 Module 5 - Network Layer.pptx

    30/111

    Khoa CNTTH Nn Lm TP. HCM 2014 30/111

    Packet Forwarding

    Describe the role of an intermediary gateway device inallowing devices to communicate across sub-dividednetworks

  • 7/27/2019 Module 5 - Network Layer.pptx

    31/111

    Khoa CNTTH Nn Lm TP. HCM 2014 31/111

    If the destination host is in the same network as the sourcehost, the packet is delivered between the two hosts on the local

    media without the need for a router. If the destination host and source host are not in the same

    network, the packet may be carrying a Transport layer PDUacross many networks and through many routers.

    IP Packet Ca ing Data End to End

  • 7/27/2019 Module 5 - Network Layer.pptx

    32/111

    Khoa CNTTH Nn Lm TP. HCM 2014 32/111

    IP Packet Carrying Data End-to-End

    IP Packet Carrying Data End to End

  • 7/27/2019 Module 5 - Network Layer.pptx

    33/111

    Khoa CNTTH Nn Lm TP. HCM 2014 33/111

    IP Packet Carrying Data End-to-End

    IP Packet Carrying Data End to End

  • 7/27/2019 Module 5 - Network Layer.pptx

    34/111

    Khoa CNTTH Nn Lm TP. HCM 2014 34/111

    IP Packet Carrying Data End-to-End

    IP Packet Carrying Data End to End

  • 7/27/2019 Module 5 - Network Layer.pptx

    35/111

    Khoa CNTTH Nn Lm TP. HCM 2014 35/111

    IP Packet Carrying Data End-to-End

    IP Packet Carrying Data End to End

  • 7/27/2019 Module 5 - Network Layer.pptx

    36/111

    Khoa CNTTH Nn Lm TP. HCM 2014 36/111

    IP Packet Carrying Data End-to-End

    A gateway the way out of our network

  • 7/27/2019 Module 5 - Network Layer.pptx

    37/111

    Khoa CNTTH Nn Lm TP. HCM 2014 37/111

    A gateway the way out of our network

    A gateway the way out of our network

  • 7/27/2019 Module 5 - Network Layer.pptx

    38/111

    Khoa CNTTH Nn Lm TP. HCM 2014 38/111

    A gateway the way out of our network

    A gateway the way out of our network

  • 7/27/2019 Module 5 - Network Layer.pptx

    39/111

    Khoa CNTTH Nn Lm TP. HCM 2014 39/111

    A gateway the way out of our network

    A router makes a forwarding decision for each packet thatarrives at the gateway interface. This forwarding process is

    referred to as routing. To forward a packet to a destinationnetwork, the router requires a route to that network. If a routeto a destination network does not exist, the packet cannot beforwarded

    Routing table

  • 7/27/2019 Module 5 - Network Layer.pptx

    40/111

    Khoa CNTTH Nn Lm TP. HCM 2014 40/111

    Routing table

    The routing table stores information about connectedand remote networks. Routes in a routing table have

    three main features:

    Destination network

    Next-hop

    Metric

    Packet forwarding

  • 7/27/2019 Module 5 - Network Layer.pptx

    41/111

    Khoa CNTTH Nn Lm TP. HCM 2014 41/111

    Packet forwarding

    Routing is done packet-by-packet and hop-by-hop. Each packetis treated independently in each router along the path.

    The router will do one of three things with the packet: Forwardit to the next-hop router; Forward it to the destination host;Drop it

    Packet forwarding

  • 7/27/2019 Module 5 - Network Layer.pptx

    42/111

    Khoa CNTTH Nn Lm TP. HCM 2014 42/111

    Packet forwarding

    If the routing table does not contain a more specific route entryfor an arriving packet, the packet is forwarded to the interface

    indicated by a default route, if one exists. The default route isalso known as the Gateway of Last Resort.

    Packet forwarding

  • 7/27/2019 Module 5 - Network Layer.pptx

    43/111

    Khoa CNTTH Nn Lm TP. HCM 2014 43/111

    Packet forwarding

    Routing Protocol- Sharing the route

  • 7/27/2019 Module 5 - Network Layer.pptx

    44/111

    Khoa CNTTH Nn Lm TP. HCM 2014 44/111

    Routing Protocol- Sharing the route

    Provides processes for sharing route information

    Allows routers to communicate with other routers to update

    and maintain the routing tables Examples: Routing Information Protocol (RIP), Interior Gateway

    Routing Protocol (IGRP), Open Shortest Path First (OSPF),Border Gateway Protocol (BGP), and Enhanced IGRP (EIGRP)

    Routing protocol Sharing the route

  • 7/27/2019 Module 5 - Network Layer.pptx

    45/111

    Khoa CNTTH Nn Lm TP. HCM 2014 45/111

    Routing protocol Sharing the route

    Routing protocols: static and dynamic routes

    Static Routing

  • 7/27/2019 Module 5 - Network Layer.pptx

    46/111

    Khoa CNTTH Nn Lm TP. HCM 2014 46/111

    Static Routing

    Static route: routes to remote networks with theassociated next hops can be manually configuredon

    the router. A default route can also be staticallyconfigured

    Dynamic Routing

  • 7/27/2019 Module 5 - Network Layer.pptx

    47/111

    Khoa CNTTH Nn Lm TP. HCM 2014 47/111

    Dynamic Routing

    Routing protocols are the set of rules by which routersdynamically share their routing information

    IP Addressing

  • 7/27/2019 Module 5 - Network Layer.pptx

    48/111

    Khoa CNTTH Nn Lm TP. HCM 2014 48/111

    IP Addressing

    Addressing is a key function of Network layerprotocols that enables data communication between

    hosts on the same network or on different networks

    IP addressing

  • 7/27/2019 Module 5 - Network Layer.pptx

    49/111

    Khoa CNTTH Nn Lm TP. HCM 2014 49/111

    IP addressing

    For any two systems to communicate, they

    must be able to identify and locate each other

    IP addressing

  • 7/27/2019 Module 5 - Network Layer.pptx

    50/111

    Khoa CNTTH Nn Lm TP. HCM 2014 50/111

    IP addressing

    AmericanRegistry forInternetNumbers

    (Ti Vit Nam :VNNIC)

    IP Addressing Structure

  • 7/27/2019 Module 5 - Network Layer.pptx

    51/111

    Khoa CNTTH Nn Lm TP. HCM 2014 51/111

    IP Addressing Structure

    IP Address converting

  • 7/27/2019 Module 5 - Network Layer.pptx

    52/111

    Khoa CNTTH Nn Lm TP. HCM 2014 52/111

    IP Address converting

    Classify and Define IPv4 Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    53/111

    Khoa CNTTH Nn Lm TP. HCM 2014 53/111

    Classify and Define IPv4 Addresses

    1

    Class A:

    Bits:

    0NNNNNNN0NNNNNNN HostHost HostHost HostHost

    8 9 16 17 24 25 32

    Range (1-126)

    1

    Class B:

    Bits:

    10NNNNNN10NNNNNN NetworkNetwork HostHost HostHost

    8 9 16 17 24 25 32

    Range (128-191)1

    Class C:

    Bits:

    110NNNNN110NNNNN NetworkNetwork NetworkNetwork HostHost

    8 9 16 17 24 25 32

    Range (192-223)

    1

    Class D:

    Bits:

    1110MMMM1110MMMM Multicast GroupMulticast Group Multicast GroupMulticast Group Multicast GroupMulticast Group

    8 9 16 17 2425 32

    Range (224-239)

    1

    Class A:

    Bits:

    0NNNNNNN0NNNNNNN HostHost HostHost HostHost

    8 9 16 17 24 25 32

    Range (1-126)

    1

    Class B:

    Bits:

    10NNNNNN10NNNNNN NetworkNetwork HostHost HostHost

    8 9 16 17 24 25 32

    Range (128-191)1

    Class C:

    Bits:

    110NNNNN110NNNNN NetworkNetwork NetworkNetwork HostHost

    8 9 16 17 24 25 32

    Range (192-223)

    1

    Class D:

    Bits:

    1110MMMM1110MMMM Multicast GroupMulticast Group Multicast GroupMulticast Group Multicast GroupMulticast Group

    8 9 16 17 2425 32

    Range (224-239)

    Classify and Define IPv4 Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    54/111

    Khoa CNTTH Nn Lm TP. HCM 2014 54/111

    Classify and Define IPv4 Addresses

    IP address classes ranges

  • 7/27/2019 Module 5 - Network Layer.pptx

    55/111

    Khoa CNTTH Nn Lm TP. HCM 2014 55/111

    IP address classes ranges

    CL

    A

    SS

    1stOctetDec.

    Range

    1st OctetHigh

    Order Bits

    Network /Host ID

    (N=Network,

    H=Host)

    Default SubnetMask

    Number ofNetworks

    Hosts perNetwork (usable

    addresses)

    A 1126*

    0 N.H.H.H 255.0.0.0 126(272)

    16,777,214(2 242)

    B 128

    191

    1 0 N.N.H.H 255.255.0.0 16,382

    (214- 2)

    65,534

    (2 162)

    C 192223

    1 1 0 N.N.N.H 255.255.255.0 2,097,150(2212)

    254(2 82)

    D 224239

    1 1 1 0 Reserved for Multicasting

    E 240254

    1 1 1 1 0 Experimental, used for research

    * Class A address 127 cannot be used and is reserved for loopback

    and diagnostic functions

    IP address classes ranges - summary

  • 7/27/2019 Module 5 - Network Layer.pptx

    56/111

    Khoa CNTTH Nn Lm TP. HCM 2014 56/111

    IP address classes ranges summary

    Type of Address in an IPv4 Network

  • 7/27/2019 Module 5 - Network Layer.pptx

    57/111

    Khoa CNTTH Nn Lm TP. HCM 2014 57/111

    Type of Address in an IPv4 Network

    Three types of addresses:

    Network address -The address by which we refer tothe network. All hosts in a network will have the samenetwork bits.

    Broadcast address-A special address used to send

    data to all hosts in the network. The broadcastaddress uses the highest address in the networkrange. This is the address in which the bits in the hostportionare all 1s. This address is also referred to as

    the directed broadcast. Host addresses -The addresses assigned to the end

    devices in the network

    Type of Address in an IPv4 Network

  • 7/27/2019 Module 5 - Network Layer.pptx

    58/111

    Khoa CNTTH Nn Lm TP. HCM 2014 58/111

    Type of Address in an IPv4 Network

    Type of Address in an IPv4 Network

  • 7/27/2019 Module 5 - Network Layer.pptx

    59/111

    Khoa CNTTH Nn Lm TP. HCM 2014 59/111

    yp

    Type of Address in an IPv4 Network

  • 7/27/2019 Module 5 - Network Layer.pptx

    60/111

    Khoa CNTTH Nn Lm TP. HCM 2014 60/111

    yp

    Type of Address in an IPv4 Network

  • 7/27/2019 Module 5 - Network Layer.pptx

    61/111

    Khoa CNTTH Nn Lm TP. HCM 2014 61/111

    yp

    Network Address : All Host Bits = 0

    Broadcast Address :All Host Bits = 1

    Class A : 11.0.0.0

    Class B : 172.16.0.0

    Class C : 201.201.201.0

    Class A : 11.255.255.255Class B : 172.16.255.255

    Class C : 201.201.201.255

    Subnet Mask

  • 7/27/2019 Module 5 - Network Layer.pptx

    62/111

    Khoa CNTTH Nn Lm TP. HCM 2014 62/111

    Defining the Network and Host Portions

    The subnet mask is 32-bit patternand created by placing a

    binary 1 in each bit position that represents the networkportionand placing a binary 0in each bit position thatrepresents the host portion.

    The prefix and the subnet mask are different ways of

    representing the same thing -the network portion of anaddress

    In 8-bit pattern, there are:

    00000000 = 0 11110000 = 240

    10000000 = 128 11111000 = 24811000000 = 192 11111100 = 25211100000 = 224 11111110 = 254

    11111111 = 255

    Defining the Network and Host Portions

  • 7/27/2019 Module 5 - Network Layer.pptx

    63/111

    Khoa CNTTH Nn Lm TP. HCM 2014 63/111

    g

    Defining the Network and Host Portions

  • 7/27/2019 Module 5 - Network Layer.pptx

    64/111

    Khoa CNTTH Nn Lm TP. HCM 2014 64/111

    g

    Defining the Network and Host Portions

  • 7/27/2019 Module 5 - Network Layer.pptx

    65/111

    Khoa CNTTH Nn Lm TP. HCM 2014 65/111

    g

    ANDing process: extracts the network address fromthe IP address.

    Defining the Network and Host Portions

  • 7/27/2019 Module 5 - Network Layer.pptx

    66/111

    Khoa CNTTH Nn Lm TP. HCM 2014 66/111

    g

    Type of Communication

  • 7/27/2019 Module 5 - Network Layer.pptx

    67/111

    Khoa CNTTH Nn Lm TP. HCM 2014 67/111

    yp

    Unicast: Is used for the normal

    host-to-hostcommunication in both a

    client/server and a peer-to-peer network.

    Uses the host address ofthe destination device as

    the destination address andcan be routed through aninternetwork.

    Three types: Unicast, Broadcast, Multicast

    Type of Communication

  • 7/27/2019 Module 5 - Network Layer.pptx

    68/111

    Khoa CNTTH Nn Lm TP. HCM 2014 68/111

    Broadcast:

    The process of sending a packet

    from one host to all hosts in thenetwork

    Host processes a broadcastaddress destination packet like

    unicast address. A directed broadcast is sent

    to all hosts on a specificnetwork.

    The limited broadcastis used for communicationthat is limited to the hosts onthe local network.

    Type of Communication

  • 7/27/2019 Module 5 - Network Layer.pptx

    69/111

    Khoa CNTTH Nn Lm TP. HCM 2014 69/111

    Multicast:

    The process of sending a packetfrom one host to a selectedgroup of hosts.

    Multicast transmission is

    designed to conserve thebandwidth of the IPv4 network.

    The multicast clients useservices initiated by

    a client program tosubscribe to themulticast group.

    Public and Private addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    70/111

    Khoa CNTTH Nn Lm TP. HCM 2014 70/111

    Public and Private addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    71/111

    Khoa CNTTH Nn Lm TP. HCM 2014 71/111

    Private Addresses:are set aside for use in privatenetworks.

    10.0.0.0 to 10.255.255.255 (10.0.0.0 /8)

    172.16.0.0 to 172.31.255.255 (172.16.0.0 /12)

    192.168.0.0 to 192.168.255.255 (192.168.0.0 /16)

    Public Addresses:are designed to be used in thehosts that are publicly accessible from the Internet.

    Network Address Translation (NAT):is used to

    translate private addresses to public addresses, beimplemented on a device at the edge of the privatenetwork.

    Special IPv4 Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    72/111

    Khoa CNTTH Nn Lm TP. HCM 2014 72/111

    Network Addresses

    Broadcast Addresses

    Default Route0.0.0.0.

    Link-Local Addresses

    169.254.0.0 to 169.254.255.255 (169.254.0.0 /16)

    These addresses can be automatically assigned

    TEST-NET Addresses

    The address block 192.0.2.0 to 192.0.2.255 (192.0.2.0

    /24) is set aside for teaching and learning purposes. Theseaddresses can be used in documentation and networkexamples. Unlike the experimental addresses, networkdevices will accept these addresses in their configurations

    Special IPv4 Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    73/111

    Khoa CNTTH Nn Lm TP. HCM 2014 73/111

    Assigning Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    74/111

    Khoa CNTTH Nn Lm TP. HCM 2014 74/111

    Static Assignment: The network administrator mustmanually configure the network information for a host

    Assigning Addresses

  • 7/27/2019 Module 5 - Network Layer.pptx

    75/111

    Khoa CNTTH Nn Lm TP. HCM 2014 75/111

    Dynamic Host Configuration Protocol (DHCP):enables the automatic assignment of addressing

    information such as IP address, subnet mask, defaultgateway, and other configuration information.

    Overview of IPv6

  • 7/27/2019 Module 5 - Network Layer.pptx

    76/111

    Khoa CNTTH Nn Lm TP. HCM 2014 76/111

    In the early 1990s, the Internet Engineering TaskForce (IETF) grew concerned about the exhaustion of

    the IPv4 network addresses and began to look for areplacement for this protocol. This activity led to thedevelopment of what is now known as IPv6.

    Overview of IPv6

  • 7/27/2019 Module 5 - Network Layer.pptx

    77/111

    Khoa CNTTH Nn Lm TP. HCM 2014 77/111

    Creating expanded addressing capabilities was the initialmotivation for developing this new protocol. Other issues were

    also considered during the development of IPv6, such as:Improved packet handling

    Increased scalability and longevity

    QoS mechanisms

    Integrated security To provide these features, IPv6 offers:

    128-bit hierarchical addressing -to expand addressingcapabilities

    Header format simplification -to improve packet handling

    Improved support for extensions and options -for increasedscalability/longevity and improved packet handling

    Flow labeling capability -as QoS mechanisms

    Authentication and privacy capabilities -to integrate security

  • 7/27/2019 Module 5 - Network Layer.pptx

    78/111

    Calculating IP Addresses

    Introduction to subnetting

  • 7/27/2019 Module 5 - Network Layer.pptx

    79/111

    Khoa CNTTH Nn Lm TP. HCM 2014 79/111

    Basic subnetting

  • 7/27/2019 Module 5 - Network Layer.pptx

    80/111

    Khoa CNTTH Nn Lm TP. HCM 2014 80/111

    Basic subnetting

  • 7/27/2019 Module 5 - Network Layer.pptx

    81/111

    Khoa CNTTH Nn Lm TP. HCM 2014 81/111

    Basic subnetting

  • 7/27/2019 Module 5 - Network Layer.pptx

    82/111

    Khoa CNTTH Nn Lm TP. HCM 2014 82/111

    Dividing Networks into Right Sizes

  • 7/27/2019 Module 5 - Network Layer.pptx

    83/111

    Khoa CNTTH Nn Lm TP. HCM 2014 83/111

    Extract network addresses from host addresses usingthe subnet mask. Total host 800 -> choose block

    172.16.0.0/22

    SUBNET SCHEME

  • 7/27/2019 Module 5 - Network Layer.pptx

    84/111

    Khoa CNTTH Nn Lm TP. HCM 2014 84/111

    IP Class C : 192.168.10.0 Borrowed bits : 3Max. IP Number : 32Max. Subnet Number : 8

    Subnet Mask : 255.255.255.224

    Subnet 0: Subnetwork ID = Major Network Number

    Subnet 7: Subnetwork Broadcast ID = Major Network Broadcast

    192.168.10.0 : 192.168.10.255

    Subnetting a Subnet

  • 7/27/2019 Module 5 - Network Layer.pptx

    85/111

    Khoa CNTTH Nn Lm TP. HCM 2014 85/111

    Subnetting a Subnet

  • 7/27/2019 Module 5 - Network Layer.pptx

    86/111

    Khoa CNTTH Nn Lm TP. HCM 2014 86/111

    Network Layer Protocols

  • 7/27/2019 Module 5 - Network Layer.pptx

    87/111

    Khoa CNTTH Nn Lm TP. HCM 2014 87/111

    IP provides connectionless, best-effort deliveryrouting of packets. IP is not concerned with the

    content of the packets but looks for a path to thedestination.

    Internet Control Message Protocol (ICMP) providescontrol and messaging capabilities.

    Address Resolution Protocol (ARP) determines thedata link layer address, MAC address, for known IPaddresses.

    Reverse Address Resolution Protocol (RARP)determines IP addresses when the MAC address isknown

    ICMPv4

  • 7/27/2019 Module 5 - Network Layer.pptx

    88/111

    Khoa CNTTH Nn Lm TP. HCM 2014 88/111

    The purpose of these messages is to provide feedbackabout issues related to the processing of IP packets

    under certain conditions, not to make IP reliable. ICMPmessages are not required and are often not allowedfor security reasons.

    ICMP is the messaging protocol for the TCP/IP suite.ICMP provides control and error messages and is usedby the ping and traceroute utilities. Although ICMPuses the basic support of IP as if it were a higher-level

    protocol ICMP, it is actually a separate Layer 3 of theTCP/IP suite.

    ICMPv4

  • 7/27/2019 Module 5 - Network Layer.pptx

    89/111

    Khoa CNTTH Nn Lm TP. HCM 2014 89/111

    The types of ICMP messages -and the reasons whythey are sent -are extensive. We will discuss some of

    the more common messages. ICMP messages thatmay be sent include:

    Host confirmation

    Unreachable Destination or Service

    Time exceeded

    Route redirection

    Source quench

    ICMP - Testing the Local Stack

  • 7/27/2019 Module 5 - Network Layer.pptx

    90/111

    Khoa CNTTH Nn Lm TP. HCM 2014 90/111

    Pinging the Local Loopback: 127.0.0.1

    ICMP-Testing Connectivity to the Local LAN

  • 7/27/2019 Module 5 - Network Layer.pptx

    91/111

    Khoa CNTTH Nn Lm TP. HCM 2014 91/111

    Ping Gateway

    ICMP - Testing the Path

  • 7/27/2019 Module 5 - Network Layer.pptx

    92/111

    Khoa CNTTH Nn Lm TP. HCM 2014 92/111

    Use tracert/traceroute to observe the path betweentwo devices as they communicate and trace the steps

    of tracert/traceroute's operation

    IP address assignment

  • 7/27/2019 Module 5 - Network Layer.pptx

    93/111

    Khoa CNTTH Nn Lm TP. HCM 2014 93/111

    staticaddressing and dynamicaddressing

    Static addressing

  • 7/27/2019 Module 5 - Network Layer.pptx

    94/111

    Khoa CNTTH Nn Lm TP. HCM 2014 94/111

    You must go to each individual device and

    configure it with an IP address. You should keep very meticulous records,

    because problems can occur on the network ifyou use duplicate IP addresses.

    Dynamic addressing

  • 7/27/2019 Module 5 - Network Layer.pptx

    95/111

    Khoa CNTTH Nn Lm TP. HCM 2014 95/111

    There are a few different methods that you canuse to assign IP addresses dynamically:

    RARP:Reverse Address Resolution Protocol.

    BOOTP:BOOTstrap Protocol.

    DHCP:Dynamic Host Configuration Protocol.

    Dynamic addressing:RARP

  • 7/27/2019 Module 5 - Network Layer.pptx

    96/111

    Khoa CNTTH Nn Lm TP. HCM 2014 96/111

    MAC: Known

    IP: Unknown

    RARP Request

    RARP Reply

    RARP server

    Dynamic addressing:BOOTP

  • 7/27/2019 Module 5 - Network Layer.pptx

    97/111

    Khoa CNTTH Nn Lm TP. HCM 2014 97/111

    MAC: Known

    IP: Unknown

    UDP Broadcast

    UDP Broadcast

    BOOTP server

    MAC1IP1MAC2IP2MAC3IP3

    IP Address

    GatewayIP of serverVendor-specific

    Dynamic addressing:DHCP

  • 7/27/2019 Module 5 - Network Layer.pptx

    98/111

    Khoa CNTTH Nn Lm TP. HCM 2014 98/111

    MAC: Known

    IP: Unknown

    DHCP Discover

    UDP Broadcast

    DHCP Offer

    UDP Unicast

    DHCP server

    IP1IP2IP3

    DHCP Request

    UDP Broadcast

    DHCP Ack

    IP AddressGatewayIP of serversAnd more

  • 7/27/2019 Module 5 - Network Layer.pptx

    99/111

    ARP CONCEPT

    Encapsulation

  • 7/27/2019 Module 5 - Network Layer.pptx

    100/111

    Khoa CNTTH Nn Lm TP. HCM 2014 100/111

    Address resolution protocol

  • 7/27/2019 Module 5 - Network Layer.pptx

    101/111

    Khoa CNTTH Nn Lm TP. HCM 2014 101/111

    In order for devices to communicate, the sendingdevices need boththe IP addresses and the MACaddressesof the destination devices.

    When they try to communicate with devices whoseIP addresses they know, they must determine theMAC addresses.

    ARPenables a computer to findthe MACaddressof the computer that is associated with an IPaddress.

    Address resolution protocol

  • 7/27/2019 Module 5 - Network Layer.pptx

    102/111

    Khoa CNTTH Nn Lm TP. HCM 2014 102/111

    ARP table in host

  • 7/27/2019 Module 5 - Network Layer.pptx

    103/111

    Khoa CNTTH Nn Lm TP. HCM 2014 103/111

    ARP operation

  • 7/27/2019 Module 5 - Network Layer.pptx

    104/111

    Khoa CNTTH Nn Lm TP. HCM 2014 104/111

    10.0.2.1

    A.B.C.1.2.3

    10.0.2.9

    A.B.C.7.8.9

    10.0.2.5

    A.B.C.4.5.6

    A B C

    ARP Table:

    ? MACA.B.C.1.2.3

    MAC?

    IP10.0.2.1

    IP10.0.2.9

    Data

    ARP operation:ARP request

  • 7/27/2019 Module 5 - Network Layer.pptx

    105/111

    Khoa CNTTH Nn Lm TP. HCM 2014 105/111

    10.0.2.1

    A.B.C.1.2.3

    10.0.2.9

    A.B.C.7.8.9

    10.0.2.5

    A.B.C.4.5.6

    A B C

    MACA.B.C.1.2.3

    MACff.ff.ff.ff.ff.ff

    IP10.0.2.1

    IP10.0.2.9

    What is your MAC Addr?

    ARP operation:Checking

  • 7/27/2019 Module 5 - Network Layer.pptx

    106/111

    Khoa CNTTH Nn Lm TP. HCM 2014 106/111

    10.0.2.1

    A.B.C.1.2.3

    10.0.2.9

    A.B.C.7.8.9

    10.0.2.5

    A.B.C.4.5.6

    A B C

    MACA.B.C.1.2.3

    MACff.ff.ff.ff.ff.ff

    IP10.0.2.1

    IP10.0.2.9

    What is your MAC Addr?

    ARP operation:ARP reply

  • 7/27/2019 Module 5 - Network Layer.pptx

    107/111

    Khoa CNTTH Nn Lm TP. HCM 2014 107/111

    10.0.2.1

    A.B.C.1.2.3

    10.0.2.9

    A.B.C.7.8.9

    10.0.2.5

    A.B.C.4.5.6

    A B C

    MACA.B.C.7.8.9

    MACA.B.C.1.2.3

    IP10.0.2.9

    IP10.0.2.1

    This is my MAC Addr

    ARP operation:Caching

  • 7/27/2019 Module 5 - Network Layer.pptx

    108/111

    Khoa CNTTH Nn Lm TP. HCM 2014 108/111

    10.0.2.1

    A.B.C.1.2.3

    10.0.2.9

    A.B.C.7.8.9

    10.0.2.5

    A.B.C.4.5.6

    A B C

    ARP Table:

    A.B.C.7.8.910.0.2.9

    MACA.B.C.1.2.3

    MACA.B.C.7.8.9

    IP10.0.2.1

    IP10.0.2.9

    Data

    ARP:Destination local

  • 7/27/2019 Module 5 - Network Layer.pptx

    109/111

    Khoa CNTTH Nn Lm TP. HCM 2014 109/111

    Internetwork communication

  • 7/27/2019 Module 5 - Network Layer.pptx

    110/111

    Khoa CNTTH Nn Lm TP. HCM 2014 110/111

    How to communicate with devices that are not onthe same physical network segment.

    Default gateway

    I d f d i i i h h

  • 7/27/2019 Module 5 - Network Layer.pptx

    111/111

    In order for a device to communicate with anotherdevice on another network, you must supply it with

    a default gateway. A default gateway is the IP address of the interface

    on the router that connects to the networksegment on which the source host is located.

    In order for a device to send data to the address ofa device that is on another network segment, thesource device sends the data to a default gateway.