1 / 8

Chapter 19 Binding Protocol Addresses (ARP)

Chapter 19 Binding Protocol Addresses (ARP). A frame transmitted across a physical network must contain the hardware address of the destination.

Lucy
Download Presentation

Chapter 19 Binding Protocol Addresses (ARP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 19 Binding Protocol Addresses (ARP) • A frame transmitted across a physical network must contain the hardware address of the destination. • Before protocol software can send a packet across a physical network, the software must translate the IP address of the destination computer into an equivalent hardware address • Protocol addresses are abstractions provided by software • physical network hardware does not know how to locate a computer from its protocol address. • The protocol address of the next hop must be translated to an equivalent hardware address before a packet can be sent

  2. Address Resolution • translation (mapping) of a computer’s protocol address (eg. IP) to an equivalent hardware address (eg. Ethernet address) • protocol address is said to be resolved (mapped or translated) to the correct hardware address • Address resolution is local to a network • One computer can resolve the address of another computer only if both computers attach to the same physical network (fig 19.1) • a computer never resolves the address of a computer on a remote network

  3. Forwarding Packets to Remote Networks • If the destination computer is on a different network, the source computer resolves the IP address of the next-hop router to its hardware address and sends the packet to the router • The router determines whether to forward the packet to another router or whether the destination is attached directly to one of its network.

  4. TCP/IP address resolution techniques • Table lookup • bindings are stored in a table in memory, which the software searches (fig 19.2) • closed-form computation • protocol address chosen so that the computer’s hardware address can be computed from the protocol address using basic Boolean and arithmetic operations. • message exchange • address resolution server(s) • computers exchange messages across a network to resolve an address (eg. ARP). When a computer broadcasts a request for address resolution, another computer whose protocol address matches that of the request sends a reply that contains the requested information (physical address).

  5. Address Resolution Protocol (ARP) • used to resolve IP address to hardware address. • ARP request message • broadcasted to all computers on the local network • contains an IP address and request the corresponding hardware address • each computer receives this request and examines the IP address. • ARP reply message • The computer mentioned in the ARP request sends a reply containing both the IP address sent in the request and the hardware address • All other computers process and discard the request with no response (fig 19.5)

  6. ARP message format (fig 19.6) • flexible enough to accommodate any protocol and hardware address types • usually used to bind a 32-bit IP address to a 48-bit Ethernet

  7. Encapsulation • placing a message inside a frame (fig 19.7) • Eg. ARP is encapsulated in a hardware frame whose frame type (0x806) correspond to ARP (fig 19.8).

  8. ARP Caching • ARP maintains a small table of recent bindings (protocol to physical address mapping) in memory. • Reduces network traffic • Before sending an ARP request, ARP software first checks whether the binding is present in its cache. • ARP cache updated as a result of an ARP reply • ARP cache updated when processing ARP requests broadcasted by other computers

More Related