Use diagram to answer part BSolutionSubPart 1 In the above
Use diagram to answer part B.
Solution
SubPart 1 :-
In the above figure, there are two networks each with one host respectively. There is also a router placed between the two networks.
Tasks performed by the router to facilitate proper communication between two hosts are ;
1. It checks whether two pc\'s or host are of different IP address or not.
2. It checks whether router ip address and respective network host ip address are from the same network or not.
3. It checks whether all the interfaces of the router are in different network or not.
If the above three conditions in the given figure satisfies then router forwards the packet from one host to the another host without any obstacle. And In the above figure all the three conditions are satisfied as the two host are of different networks and router ip address & host ip address are of same network. Hence, proper communication takes place through the default gateway assigned between two hosts.
In the above figure, Router involves in network layer where ip address is provided on the packet (Source and Destination IP address) and path determination takes place. Apart from this protocols i.e. routed and routing protocols are also used for carrying the data and performing path determination respectively.
Subpart 2 :-
Yes, there is a data link layer frame in the above created scenario.
Suppose,
Source Host -- Computer A & Destination Host -- Computer B
Now, frame is generated from network adaptor A and it learns the source harware(MAC) address of the frame recieved on an interface and enters into the MAC table. Later it looks at the destination MAC address if it is know then it sends the frame or else it sends an ARP request to know the Destination host MAC address and forwards the frame respectively.
In the above figure frame is generated from network adaptor A with,
Source IP :- 22.92.14.135/24
MAC Address :- 1D-53-CC-AF-19-82
and reaches the network adaptor B by fixing broadcast address as FFFF.FFFF.FFFF in the ARP request as dest. MAC address and getting the MAC address (30-D9-13-7F-7F-23) from the desired destination host B.
Destination IP :- 64.40.232.100/25
MAC Address :- 30-D9-13-7F-7F-23
