4-5 Network Layer.pptx

download 4-5 Network Layer.pptx

of 14

Transcript of 4-5 Network Layer.pptx

  • 8/13/2019 4-5 Network Layer.pptx

    1/14

    Network Layer (Part 5)

    Computer Networks

    Tutun JuhanaTelecommunication EngineeringSchool of Electrical Engineering & Informatics

    Institut Teknologi Bandung

    4

  • 8/13/2019 4-5 Network Layer.pptx

    2/14

    ADDRESS RESOLUTIONPROTOCOL (ARP)

  • 8/13/2019 4-5 Network Layer.pptx

    3/14

    Address Mapping

    Static Mapping Static mapping means creating a table that associates a logical

    address with a physical addressThis table is stored in each

    machine on the network

    This has some limitations because physical addresses may

    changestatic mapping table must be updated periodicallyThis overhead could affect network performance.

    Dynamic Mapping

    In dynamic mapping, each time a machine knows the logical

    address of another machine, it can use a protocol to find the

    physical address

    Address Resolution Protocol (ARP) : logical addressphysical

    address

    Reverse Address Resolution Protocol (RARP): physical address

    logical addressIt is replaced by BOOTP dan DHCP

    3

  • 8/13/2019 4-5 Network Layer.pptx

    4/14

    THE ARP PROTOCOL

    4

  • 8/13/2019 4-5 Network Layer.pptx

    5/14

    5

  • 8/13/2019 4-5 Network Layer.pptx

    6/14

    6

  • 8/13/2019 4-5 Network Layer.pptx

    7/14

    Packet Format

    7

  • 8/13/2019 4-5 Network Layer.pptx

    8/14

    Encapsulation

    8

    Indicating the data carried is an ARP packet

  • 8/13/2019 4-5 Network Layer.pptx

    9/14

    Operation

    Steps Involved

    1. The sender knows the IP address of the target

    2. IP asks ARP to create an ARP request message, filling in the sender physical

    address, the sender IP address, and the target IP address. The target physical

    address field is filled with 0s.

    3. The message is passed to the data link layer where it is encapsulated in a

    frame using the physical address of the sender as the source address and the

    physical broadcast address as the destination address.

    4. Every host or router receives the frame. Because the frame contains a

    broadcast destination address, all stations remove the message and pass it to

    ARP. All machines except the one targeted drop the packet. The target

    machine recognizes the IP address.

    5. The target machine replies with an ARP reply message that contains its

    physical address. The message is unicast.

    6. The sender receives the reply message. It now knows the physical address of

    the target machine.

    7. The IP datagram, which carries data for the target machine, is now

    encapsulated in a frame and is unicast to the destination.

    9

  • 8/13/2019 4-5 Network Layer.pptx

    10/14

    10

  • 8/13/2019 4-5 Network Layer.pptx

    11/14

    11

  • 8/13/2019 4-5 Network Layer.pptx

    12/14

    12

  • 8/13/2019 4-5 Network Layer.pptx

    13/14

    Proxy ARP

    A technique to create a subnetting effect.

    A proxy ARP is an ARP that acts on behalf of a

    set of hosts

    Whenever a router running a proxy ARPreceives an ARP request looking for the IP

    address of one of these hosts, the router sends

    an ARP reply announcing its own hardware

    (physical) address After the router receives the actual IP packet, it

    sends the packet to the appropriate host or

    router13

  • 8/13/2019 4-5 Network Layer.pptx

    14/14

    14