Beruflich Dokumente
Kultur Dokumente
SW must translate the protocol address (PRA) of the destination into an equivalent HWA This section describes three general mechanisms that are used to perform address mapping:
1st relies on a table that contains address translation information 2nd uses a mathematical function to perform the translation. 3rd makes two computers exchange messages across a NW
PRA of a next hop must be translated to an equivalent HWA before a frame can be sent
A host/router uses AR when it needs to send a packet to another computer on the same physical NW
AR is local to a NW
A computer never resolves the address of a computer that attaches to a remote NW. Each computer that handles a packet resolves a nexthop address before sending
Closed-form computation
HWA can be computed from the protocol address using basic Boolean and arithmetic operations
Message exchange
Computers exchange messages across a NW for AR; request and reply messages
A separate binding table is used for each NW Table in next Figure corresponds to a NW with prefix 197.15.3.0 / 24. Each IP address has 197.15.3 prefix
We can save space by omitting the prefix from table entries
Administrators may choose non-sequential numbers for PRA to help identify the purpose of a computer, e.g.
hosts with suffixes < 200 , while routers with suffixes > 200 host suffix from an IP address as an index into the array
Each computer on the NW participates by agreeing to answer resolution requests for its address:
broadcasts a request on the NW, all machines examine If request matches a computer's address, then responds
TCP/IP has an Address Resolution Protocol (ARP), which defines two message types:
A request for a HWA correspond to an PRA (namely IP address) A reply returning the HWA
Sender must assign the appropriate value to the type field before transmitting the frame Receiver examine the type field in each incoming frame Figure 19.8 illustrates the concept