Hacker News new | past | comments | ask | show | jobs | submit login

Please point me to a definition of a "real layer 3 switch." I would like to know. I've been working with TCP/IP for almost 25 years.

It sounds like you want to eliminate the broadcast domain... If you want point-to-point ethernet, put your end nodes on a IPv4 /31 (or /30, depending) and be done with it. You will have a "pure layer 3" environment: all traffic will be routed. No end node modifications required.




> Please point me to a definition of a "real layer 3 switch."

All definitions of layer 3 switch I've found were stuff like this: https://en.wikipedia.org/wiki/LAN_switching#Layer_3_switchin...

Those definitions are parroting the manufacturer's definitions. Those devices are routers with ASIC switching using the IP address.

My definition of a real layer 3 switch is this: A device that forwards packets based on the IP address. The decision on which port to forward is based on where an IP was last seen and not on a configured network/netmask value.

Nobody that I know of sells devices like this but you can build one for yourself. The reason I'm going on about a pure layer 3 switch is because it's on one end of the discussion about these hybrid "Layer 3 Switches" that the network manufacturers are selling. It's like trying to talk about what a mule is when you refuse to define what a donkey is.

So we have a pure layer 3 switch on one end and a layer 3 router on the other. The "Layer 3 Switches" that are now being sold are about 95% of the way towards the router side of that line.

> If you want point-to-point ethernet, put your end nodes on a IPv4 /31 (or /30, depending) and be done with it. You will have a "pure layer 3" environment: all traffic will be routed.

But then you're routing and have different subnets everywhere. You won't be able to transparently replace a layer 2 switch with that.

Ethernet framing is redundant. The LLC/SNAP header has already been deprecated by the IEEE so there's 8 bytes saved. The ethertype field is redundant as the first byte of the payload will tell you if it's IP v4 or v6 so there's an extra 2 bytes. The source and dest MAC addresses are redundant as we have source and dest IP addresses so there's a 12 byte savings. The vlan tag would need to stay for now because of IPv4 but we could replace it by repurposing some of the 0 bits in an IPv6 link local address. The preamble, SFD and FCS would stay although the preamble might be able to be shortened as it's minimum length was dictated partly by how many hubs a packet could cross.

So you replace your layer 2 switch with this layer 3 switch. Everything still works with no configuration necessary. As new network cards that can do IP framing come out you configure each port from ethernet framing to IP framing. So now it's a Layer 3 switch on some ports (Ehternet framing) and a Layer 2 switch on others (IP Framing).

Once all ports are switched over the device has now become a Layer 2 IP switch. Now you can see why I don't like the definition of Layer 2 = Switching, Layer 3 = Routing. The device functions as a switch regardless of the framing on each of the ports.

If you use the more general definition of Switching = inside the same network (i.e. subnet) and Routing = between networks then things become more clear.

I know some people on the internet want IP framing to become a thing. Will it? Maybe, maybe not. But by using the more rigid OSI definition of switching and routing it becomes harder to talk about topics like that.

That's why we have TCP/IP now. Because some people were willing to think outside of the OSI box.

> It sounds like you want to eliminate the broadcast domain

It wouldn't eliminate it. The broadcasts would eventually become either IPv4 broadcasts or IPv6 multicasts. It would reduce the sizes of the domains and reduce traffic however.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: