2

I think my question is purely theoretical and a matter of definitions; it derives from the fact that a L2-switch with VLAN capabilities is able to "create" different virtual LANs, and thus I am led to believe that "LAN" is a L2 concept. However, I've only recently thought about that, and I've always been used to the concept of LAN as a layer 3 thing, especially after university exercises. For example, if I have a network with a host, connected to a L2-switch, with the latter connecting another host and a router, then in an equivalent logical representation for identifying LANs, I would say that whatever is on one port of the router is a LAN, and whatever is on the other side is another LAN, thus replacing the switch with a "logical link". This makes me think, instead, that a router is what's needed to distinguish between a LAN and another - I can have multiple layer 2 switches and still be on the same LAN, provided that they don't use any VLAN capability. But then again, a router has both L3 and L2 capabilities, so this doesn't imply that a LAN isn't a L2 concept. I then thought, in order for 2 different LANs (or VLANs) to communicate, a router is needed, thus one may infer that when there's a router, it can be used to connect different LANs, hence we see it as a "LAN separator" in a logical scheme. But if that's true, then I can't understand what actually discriminates between a LAN and another, which factors do by definition. I may be confusing stuff, but I really can't find a precise definition for "LAN" as I only find very broad ones.

3
  • 1
    Usually a LAN is defined by physical boundaries... a LAN is contained within a house, building or campus by normal definitions. Both Layer2 or Layer3 are very common in LANs. Commented Jun 21, 2019 at 20:04
  • Thanks a lot, I thought about the physical POV, but couldn't associate it with purely theoretical-scheme exercises - I suppose those did actually infer different LANs being connected by a router, but I couldn't figure out what actually makes a LAN differentiable from another. Commented Jun 21, 2019 at 20:45
  • It's a matter of terminology. A layer 3 VLAN is a subnet, a layer 2 subnet is a VLAN. In most practical networks there is a 1:1 correlation anyway.
    – Gaius
    Commented Jul 6, 2020 at 21:20

6 Answers 6

3

LAN is more commonly a reference to a layer-2 network but is sometimes used for a layer-3 network aka subnet as well. I don't think there's any "official" definition.

[edit]I did find an official definition in IEEE 802.3 Clause 1.1.5:

In the context of this standard, the term “LAN” is used to indicate all networks that utilize the IEEE 802.3 (Ethernet) protocol for communication.

Which makes it layer 2. However, in the context... acknowledges that there are other definitions. LAN could even be used for a building or possibly a campus network, regardless of layer connectivity.[/edit]

If you need to make the distinction you should use the layer names or numbers.

1
  • Thank you, I see I am relying too much on definitions. I guess I'll refer to it more as of a "geographical" concept rather than a "layer" one. And so, I infer that both L2 and L3 devices can "generate" different LANs. Commented Jun 21, 2019 at 20:42
3

The term LAN is rather amorphous. It can mean a single broadcast domain, a network on a single cable plant, a network in a building or small group of close buildings, etc.

The context is everything, and it really depends on what you mean by "Local."

3

In the bad old days there was a fairly sharp line between "Lan" technologies and "Wan" technologies. The former were used to build networks within a building or maybe a campus and were generally relatively fast flat multipoint networks. The latter were used to build networks between multiple sites and were generally slower point to point (at least from the IP stack's perspective) links.

But technology shifts and with it the ways things are done shifts. On the one side the introduction of fiber physical layers and the move away from CSMA/CD have largely removed the distance limitations from Ethernet. On the other hand the growth in the number of devices of each site and the growth of security concerns have meant that many sites no longer have a single flat network. The network is split up either physically or by using VLANs or a similar technology.

So you now have a split between lan as a physical concept (a high-bandwidth network within a building or site) and lan as a logical concept (a multipoint L2 network which allows broadcast traffic and normally maps to an IP subnet).

1

LAN used to broadly align with L2 and that is why VLANs are single subnet layer 2. As networks have got more complex you now have multi VLAN networks and LAN has become synonymous with a site or unit of network within a WAN.

So from a purist point of view a LAN is a subnet but in a more complex multi vlan architecture a LAN is effectively a site.

-1

Lan is combination of layer 2 and layer 3 datalink and network layer together can called as lan network we can not establish connectivity between two pc without layer 3 connectivity .. so both layers are depend on each other...datalink layer ensure connectivity from pc to layer2 switch Mac address table play vital role and network layer endure connectivity from layer 2 switch from router where arp table play vital role....

1
  • 1
    You don't need layer 3 to have connectivity. Ethernet works just fine without it.
    – Ron Trunk
    Commented Jan 7, 2021 at 17:51
-3

Layer-3. Not Layer-2.

I can have multiple layer 2 switches and still be on the same LAN, provided that they don't use any VLAN capability. But then again, a router has both L3 and L2 capabilities, so this doesn't imply that a LAN isn't a L2 concept. I then thought, in order for 2 different LANs (or VLANs) to communicate, a router is needed, thus one may infer that when there's a router, it can be used to connect different LANs, hence we see it as a "LAN separator" in a logical scheme.

This is very good deduction, and sound reasoning. If you have to choose between the two, Layer-3 is the correct choice.

I did think Layer-2 initially myself, but after some thinking, I am convinced it's Layer-3 (even before reading your full OP with your good reasoning):

  1. In IPv6, there is a standardised local-link IP address, meant for the LAN, while another public internet IP address is supplied.

  2. 10.0.0.1, 192.168.0.1, and other such LAN addresses are considered as LAN addresses, while a given MAC address is not.

  3. Routers confine an IPv4 LAN at the Layer-3 level. The public internet is the gateway, and NATing occurs on that Layer-3 boundary.

  4. An international fibre cable across the Pacific Ocean sea floor WOULD have some sort of Layer-2 MAC for a WDM division that is leased. It doesn't have a LAN IP address, and it isn't considered a LAN.

  5. Layer-2 is called the data-link layer. Layer-3 is called the Network layer. LAN stands for Local Area Network

  6. An ethernet cable is a Layer-1 tangible wire. People call it a "network cable" at times, not because of the Layer-2 switching to the next switch/router, but because of the Layer-3 capability to communicate on the global inter-network.

  7. The "Inter-Network" speaks of the Layer-3 IP suite (also including TCP/UDP in Layer-4)


Rebuttals:

Some I have read from others here, and some I have anticipated. These are all good points, but when it comes to splitting hairs and choosing one over the other, Layer-3 is a clearer choice.

  1. VLAN is a layer-2 concept: That's a misnomer, it would be better described as "VWires" or "Ethernet Slicing".

This misnomer is the problem that initiated confusion for the question poster:

it derives from the fact that a L2-switch with VLAN capabilities is able to "create" different virtual LANs, and thus I am led to believe that "LAN" is a L2 concept

  1. Network Engineers take consideration for "broadcast domains", usually using VLANs to isolate: the broadcast issue happens in Layer-2 domains. Such broadcasts do not propagate further in the Layer-3 "Network" layer. Calling this a LAN issue would be a misnomer, especially if you have multiple VLANs or isolated wiring.

  2. A LAN is defined by physical boundaries - very true. Socially and Professionally, a LAN transcends the Layer-2/Layer-3 definitions. But according to the OP, if there has to be a choice, Layer-3 is more clearly the "LAN".

11
  • 2
    Local area networks existed long before TCP/IP, or any other Layer 3 protocol. Items 4-7 are irrelevant. Your rebuttals are also wrong. Sorry.
    – Ron Trunk
    Commented Jan 7, 2021 at 16:04
  • 2
    Also, the term "Network" has no precise technical meaning. It's wrong to try to pretend that it does.
    – Ron Trunk
    Commented Jan 7, 2021 at 16:05
  • 2
    When you connect several devices together using Ethernet (for example), you have a "network," as the term is commonly used. You don't need a layer 3 protocol to make things work.
    – Ron Trunk
    Commented Jan 7, 2021 at 16:16
  • 2
    So what would you call a bunch of computers connected together so they can communicate with each other? Note that they don't have TCP/IP or any other "layer 3" protocol running on them. They just use Ethernet .
    – Ron Trunk
    Commented Jan 7, 2021 at 16:33
  • 1
    Nodes can communicate with each other over link layer just nicely.
    – Zac67
    Commented Jan 7, 2021 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.