Assume a device with IP address 210.240.57.161/24 wants to send an IP packet to another device, and it only knows that the destination IP address is 210.241.57.40. Explain the steps needed to send the message.
Answer: If we want to send an IP packet from IP address 210.240.57.161/24 to destination IP address is210.241.57.40 , then first of all we should know that whether destination IP address is present in the same network or differnet network. Here we will understand the packet flow, in both cases.
Case: 1 If destination IP address is present in the same network (Steps 1-5 are common in both cases)
If we want to transfer an IP packet from source to destination, both MAC address and IP address of the destination should be known to us. If the destination MAC address is not there then ARP(Address Resolution Protocol) will help us in solving the issue first then the packet will be delivered to destination host.
Here are the steps to be performed:
1) First of all the source ARP cache is check is performed to check whether the ARP is resolved or not. If the ARP is not resolved, it puts the packet on hold and generates an ARP request.
==> If the ARP is already resolved i.e if we know the destination MAC address, then the packet will be delivered to destination host.
2)If ARP is not resolved , then the ARP request is broadcast all over the network to find out the device having destination IP address.
3) If the device having the destination IP address receives that ARP request send by source ARP cache, it updates it’s own ARP cache.
4)Then destination ARP cache generates reply containing it’s own MAC address.
5) Now we are having the source and destination IP and MAC addresses Now an AND operation is performed between source IP address, source subnet mask and destination IP address, source subnet mask. If the output of both is similar then the destination is present in the same network as source network otherwise it is present in different network.
6) Now, the ARP request will be broadcast first for the target IP address within the network because routers do not forward broadcast packet.The broadcast request is recieved by the switch.
7) So,the switch will broadcast the ARP request and make entry in the ethernet header .
8) Now the ICMP akcnowledgement packet will be unicast from destination to host i.e. destination can successfully exhange information from host .
Note: The reason why switch can unicast the reply because the switch has put an entry for source in its MAC table when the source broadcast the ARP request.in the same way.Switch has also put an entry for the destination when the switch recieves the ARP reply.
Case-2: If destination IP address is present in the different network
==> Here also the first five steps are same which will help us in getting the MAC address of the destination.
Here are the next steps to be performed:
1) First of all using AND operation we will come to know that destination IP address is present in the different network.
2) Now,the packet is delivered to the default gateway first which in turn delivers the packet to the destination IP address.Here, ICMP packet will be unicast to the default gateway considering that ARP is resolved now.
3) In this way the communication will be setup between source and destination.
Note: Provide your feedback as thumbs up and vice-versa. For any query ask in comments. Always happy to help you.
Assume a device with IP address 210.240.57.161/24 wants to send an IP packet to another device,...
Sender send a packet to Receiver. Explain the address change process (IP and MAC) in the packet. LAN 1 Sender A/10 To another network F/20 T/99 2010 AP Data 2010 AP Data Router 1 33 99 AP Data Physical addresses changed LAN 2 9566 A P Data 95 66 AP Data Router 2 33 99 AP Data P/95 N/33 Z/66 Physical addresses changed To another network Receiver LAN 3
If the destination IP address of a packet matches three forwarding rules 128.0.0.0/16, 128.0.0.0/20, 128.0.0.0/24, which rule will the router use? • (1) 128.0.0.0/16 • (2) 128.0.0.0/20 • (3) 128.0.0.0/24 • (4) None of the above please explain your answer.
A router has an IP address of 167.42.1.7. It sends a direct broadcast packet to all hosts in this network. What are the source and destination IP addresses used in this packet?
1. To which of the following subnets does IP address 225.3.2.22 belong? 225.3.2.0/24 225.3.2.22/24 225.2.3.0/24 225.0.0.0/24 none of the above Question 2 On which of the following devices does the transport layer NOT run? laptop router cellphone A, B and C none of the above Question 3 What is the source address contained in the discover message sent by a host that is wanting to obtain an IP address? 255.255.255.255 0.0.0.0 the IP address of the server the last IP...
Show work. 5. A host computer with an IP address of 10.10.20.5 using a subnet mask of 255.255.192.0 pings a computer with an IP address of 10.10.10.5. What happens to the data packet? a. The data packet is sent to the gateway. b. The data packet is sent to 10.10.20.192. c. The 10.10.10.5 is not in the same LAN; therefore, the data packet is sent out as a broadcast. d. The data packet is sent to the 127.0.0.1 network. e....
If the "System 1" sends a packet with a destination address of
"System 2", with a TTL=3, which system will respond with an ICMP
error message? Assume all systems will send and respond to ICMP
messages.
1.
System 1
2.
Router 1
3.
Router 2
4.
Router 3
5.
System 2
Assume that the Web Server transmits a packet to Client #2. What
are the specific numeric address values (from the diagram above)
that will be in each of the following header fields of this packet
sent by Web Server?
a) (3 points) Source Address in Ethernet header
b) (3 points) Destination Address in Ethernet header (assume
that Web Server ARP Table already contains any MAC address needed
for this packet)
c) (3 points) Source Address in IP header
d) (3...
Cisco packet tracer Q1) Do you get any changes of IP address when packet is traversing from one node to the immediate next node: My answer is no. Explain why? Q2) Do you get any changes of MAC address when packet is traversing from one node to the immediate next node: My answer is yes. Explain why?
29. Consider the following LAN with one Ether switch S, one intra-domain router R, and two hosts X and Y Assume switch S has been just powered on. 1. Describe the routing and address resolution steps performed at X, Y, and S when X sends an IP packet to Y. 2. Describe the routing and address resolution steps performed at X, Y, and S when Y replies an IP packet to X. 3. Describe the routing and address resolution steps...
Given an IP address and mask of 192.168.0.0 /24 (address / mask), design an IP addressing scheme that satisfies the following requirements. Network address/mask and the number of hosts for Subnets A and B will be provided by your instructor. Subnet Number of Hosts Subnet A 25 Subnet B 75 The 0th subnet is used. No subnet calculators may be used. All work must be shown on the other side of this page. Subnet A Specification Student Input Points Number...