Requires Free Membership to View
1st Scenario – Both hosts within the same network
Host1-----{Switch}----Host2
In this case, Host1 (IP 192.168.0.10) needs to transfer data to Host2 (IP 192.168.0.12). Since both hosts are within the same network and connected to the same switch, Host1 will need to firstly find Host2's MAC (hardware) address so it can construct its packet and place it on the network. The ARP (Address Resolution Protocol) is used for this purpose.
In the case Host1 knows Host2 only by its name, e.g Computer-2, then it will send a request to either a local DNS server or Wins server to ask for "Computer-2's" IP address. Think of it like a phone directory, where the caller looks up a name, and finds the phone number that's mapped it that name. This whole "lookup" process is determined by the operating systems running in the network and the way naming resolution has been setup by its administrator:
Host1-----{Switch}----Host2
|
DNS/Wins -----|
Server
Host1 sends an ARP request that contains the following message understood by all network devices: "What is the MAC address for IP address 192.168.0.12?" All devices on the network will 'see' the message, but only Host2 will respond by sending a packet containing its MAC address.
Once Host1 receives this information, it now has enough details to create its packet. Once constructed, the packet will contain the following details:
- Destination MAC address (That's Host2's MAC address)
- Source MAC address (Host1's MAC address)
- Destination IP address (192.168.0.12)
- Source IP address (192.169.0.10)
- Application Data
As you can see, the senders IP address is included in the packet. This also explains how in this scenario, Host2 who's the receiver, knows about the sender.
Let's now take a look at our 2nd scenario.
This was first published in October 2003
Network Management Strategies for the CIO

Join the conversationComment
Share
Comments
Results
Contribute to the conversation