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

802.11 (wifi) uses ARP also.

I meant that it's typically (for end users) the protocol between the wireless interface (MAC) and network gateway (IP) now, rather than:

> the missing link between your MAC address (what Ethernet runs on) and your IP




Oh, I see your point now. Yes, the direct parallel of "MAC is to Ethernet as IP is to Internet" is an imprecise one, intentionally so: I remembered being really confused about Ethernet vs. Internet when I learned all this stuff, and this parallel was another good-enough approximation at the time for me to continue learning.

What follows is non-expert commentary and I probably get several details wrong. But here is my deeper understanding:

In reality, Ethernet is a really old protocol (like Metcalfe started working on it back in 1973), and the way we use it today is very different from the way it was originally imagined. In the original paper, you would hook up say 10 computers to a single giant cable and just have Computer A send data to Computer B by sending that data to _everyone_ and letting anyone who wasn't Computer B just quietly drop the network traffic. That's a really elegant design, in the same way a rock is a really elegant weapon, but these days we usually plug any Ethernet devices we have into an Ethernet switch and that does most of the filtering for us -- moving us from a complete graph where everyone is connected directly to everyone back to a spoke-and-hub design with the switch as the hub. But the original Ethernet _did_ end up using MAC addresses as the way to distinguish Computer A from Computer B, and so the analogy stuck in my brain as a "wrong but useful" model.

Now 802.11, aka wifi, comes right out the box with a spoke-and-hub model. All your traffic goes through your wireless router/switch/modem/whatever it's called. Even when you want to share things with something like BitTorrent or Syncthing on the local network, Computer A's wireless network card doesn't usually directly transfer files to Computer B's wireless network card - it goes from A, to router, to B. There's nothing technical I'm aware of that stops this direct A-B transfer, since we know wireless cards can both pull and push data, but you would have to do some networking legwork to get them to be on the same subnet to do so, which probably involves a lot of manual fiddling with IP addresses or something.

But 802.11 also emerged into a landscape where MAC addresses are ubiquitous, so it still uses ARP to translate between IP and MAC for reasons I'm not entirely sure of (probably practically that MAC addresses change a lot less often than IP addresses to).


The main reason for wireless using MACs and ARPs and the like is it makes it more directly interoperable with wired networks. You can just bridge a LAN directly to a WLAN and expect the clients to not realize they are a different type.


Yeah that also tracks




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: