Network Layer – Importance and Functions

iplayer3Network

I was reading about the 'IP' in TCP/IP. Most of its functions seem to be for connecting different (types of) networks. Does this mean that network layer is not required for communication between computers in the same LAN? If not, what other functions are provided by network layer other than common addressing (in case of IP) and routing?

Best Answer

That is correct - the IP layer is not required for communication within a LAN. On Ethernet for example, there's no reason a computer can't send an Ethernet frame addressed to some other computer with some non-IP data inside it.

However, now that the Internet is ubiquitous, TCP/IP is the most useful configuration and therefore the most work has gone into supporting it. There's rarely any reason for a commercial software vendor to make a protocol that runs directly over Ethernet, when they could make it run over IP instead, and have it be able to work on the Internet. I can't think of any protocols used by the average consumer that don't use IP, besides ARP. (NetBIOS used to be ubiquitous on Windows LANs).

However, professional networking gear does use such protocols. Two examples that came to mind are the IS-IS routing protocol, or STP used by Ethernet switches.

IS-IS could've run over IP, really (there's a similar protocol OSPF that does just that). STP runs on Ethernet switches, which might not even have IP addresses, so it really does need to run over Ethernet.

I imagine most protocols that run on IP (such as TCP) could be adapted to run over Ethernet, Token Ring, ATM, or whatever - but there would be no benefit to doing so.

Related Topic