174 views
0 votes
0 votes
i have one doubt , as we know ip address has given to every device which has been connected to internet as well as ip is unique then why we using data link address for forwarding we can use ip address for forwarding(doing by router) and completely eliminate the data  link layer.

why we need one extra layer (data link layer) as forwarding of packet also done by router.

1 Answer

0 votes
0 votes
IP address can be unique in Internet but if we have various subnets in a single network then two same ips can be assigned in two different subnets.Network layer does not play with the Mac address of the host, so eliminating data link layer will cause ambiguity.So as to connect to a service we need a socket that is specifically a combination of ip and mac and mac can only be know at Data link layer not at Network Layer.

 

 

P.S-Correct me if i am wrong ty.

No related questions found