Score:0

Layer 2 Network vs Layer 3 Network

in flag

I am very new to networking world and forgive me if its a lame question - My question is even though network operate using all 7 layers present in OSI model, often I hear people asking is it layer 2 network or layer 3 IP based network. Why is that? I understand the difference between layer 2 and layer 3 (packet vs frames)

Michael Hampton avatar
cz flag
What is the context here?
Dave avatar
in flag
My question is even though network operate using all 7 layers present in OSI model, often I hear people asking is it layer 2 network or layer 3 network. Why they ask it is layer 2 network or layer 3 network
cn flag
Plenty of documentation available on the topic: http://tcpipguide.com/free/t_NetworkLayerLayer3.htm
Dave avatar
in flag
@Greg Askew As I mentioned - why people ask whether it is IP based network. All networks will have network layer too
Michael Hampton avatar
cz flag
You didn't explain the context. Who are these people you keep hearing? Why are they asking that question?
Tom Yan avatar
in flag
Many VPN implementations don't even "virtualize" L2. They do not make use of ARP to "resolve" some nexthop / gateway IP to a destination MAC address. That's probably one of the cases in which terms like IP/L3-based/only might be coined.
Dave avatar
in flag
@TomYan you mean there is no layer 2. data goes from layer 3 to layer 1 ?
Dave avatar
in flag
@MichaelHampton - These people are network specialist. They ask this question to explain the network setup
Tom Yan avatar
in flag
@Dave No, the OSI model is nothing but a conceptual reference these days. The statement `network operate using all 7 layers present in OSI model` isn't even precisely true. These days when people say "L2" they are mostly referring to switching / Ethernet frames etc., but in for example virtual network, there's only the VPN implementations themselves and they do NOT work directly on top of a physical layer. You should take a look at the layering of TCP/IP: https://en.m.wikipedia.org/wiki/Internet_protocol_suite
Tom Yan avatar
in flag
@Dave In some VPN (e.g. tap mode OpenVPN), an L2 might be virtualized; if you have to fit the implementation to the OSI model, it will then be a bit *analogous* to an L1 (which is even more absurd since it's not physical / hardware at all).
Score:1
in flag

A layer 2 network only cares about the MAC address presented on each port and is a usually a single broadcast domain.

A layer 3 network encompasses the IP configurations as well as the MAC addressing for each node on the network. They often can handle inter-domain routing between vlans and broadcast domains.

The main difference between a layer 2 switch and a layer 3 switch is the routing function. A layer 3 switch is smart enough to route traffic between subnets and vlans without involving a device that functions as a router.

Many smaller networks function just fine using only layer 2 switching. As your network grows and becomes more complex, there will be a need for a layer 3 network. When you have many networks, multiple subnets and over 1024 hosts you will have to implement true layer 3 networking.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.