112 points · by JdeBP · 3y ago · 136 comments
I say this because I was one of those people when I graduated. At our school every network was /24, so 0 and 255 were always reserved. It was a while before I learned about CIDR and how those addresses may not be reserved.
Even outside of the context of a /24 I still reserve these addresses because they don't receive equal treatment on the internet. There are still dumb firewalls that treat them as broadcast amplification attacks, OS bugs that treat them as invalid, and a handful of other issues.
This issue tends to be a bell curve of experience. People brand new to networking, and the people who have spent dozens of years seeing the worst of what the internet has to offer both treat them as sacred cows, with the majority just shrugging and mumbling about CIDR.
It is the bug that creates itself.
> and the people who have spent dozens of years seeing the worst of what the internet has to offer both treat them as sacred cows
...a lot of them just didn't update their knowledge over time.
- Newbies see .0 and .255 as special
- We learn about CIDR, and there's nothing special about a .0 in the middle of a large block.
- Then we get zapped by weird connectivity problems or tools that don't let us enter the address because it fails "validation," etc.
Then we think... does our DHCP range really need to cross the boundary when we have a /23? Maybe we should just have two DHCP ranges with a little hole in the middle. It's less than 1% of addresses...
I tend to run /30 as the smallest because of that (no sudden surprises if a piece of gear doesn't support the extension)
Also, well-known IPs, and 192.168.0.1 in particular, should just be avoided. You don't want IP conflict in your network just because someone plugged in unconfigure device!
(Trick question for the exam is whether broadcast traffic received by new host with assigned address of .255 would be a problem.)
HOWEVER, if you want to broadcast something at a remote network, you need to have dedicated network broadcast IP addresses. Unfortunately, even RFC 919 from 1984 thinks it is not a recommended mode of operation. But imagine that we could get "ip/subnet" from DNS, send broadcast to a distant server farm, and receive response from anything that responded. Instead of DNS-based service discovery, we would have a single A record, and finally put that IANA port number database to use in port-based service discovery.
Looking at the BGP table it's just two entries (one for each /24).
I've encountered kit which doesn't like IPs on .0 or .255 in the middle of a /23 or larger, but I've also encountered kit which doesn't like any subnet that isn't a /24. That kit goes back to the supplier as faulty.
I've never seen kit which wont sent to a random x.x.x.255 address that isn't on the local subnet
If you choose to use .0, then you have a cosmetic / mental issue ("omg numbering starts at 1, not at 0).
If you choose NOT to use .0 then you potentially save yourself hours of troubleshooting one day, and avoid productivity issues.
Reliability + Productivity > Cosmetic.
if you are "inside" your network, you have the mask; if you are outside, you don't know.
yes, if you are inexperienced and have never seen anything but class C, you might not make allowances for class B etc. The real problem with trying to solve these problems is we not allowed to deploy LARTs any more, or clue-by-fours.
The ghost of /etc/networks rattles in the distance..
For me, .0 and .255 were always associated with the first and last address of a block rather than those specific numbers. And thus the network and broadcast address respectively.
You can see quite a lot of these in
http://ec2-reachability.amazonaws.com/
I think the situation has improved with regard to this specific issue since 2013. I did run some of my own RIPE Atlas tests on this more recently (targeting some of the AWS addresses mentioned above), and it didn't look particularly bad at all.
Somewhat relatedly, we've been proposing to explicitly allow the lowest address within a subnet to be used to number a host. (This isn't necessarily dot-zero, and dot-zero isn't necessarily this; they coincide exactly in the specific case of a /24 network.)
https://datatracker.ietf.org/doc/draft-schoen-intarea-unicas...
We've gotten patches in Linux and FreeBSD for this, while OpenBSD and NetBSD each independently adopted this behavior some time ago.
Maybe we should (be able to) get rid of the broadcast address in this situation too. Cf. RFC 3021 (adding a special case for /31).
(If the hosting provider literally only intends to give you a single address, and insists on giving you a subnet, it should probably give you a /31 instead of a /30, because of the RFC 3021 behavior. Then it's not throwing away addresses for no reason.)
Wouldn't you need a /0 route for gateway?
Someone had been buying stuff online with a stolen card and the shop admins provided a list of the IP addresses used, including our server's. All the addresses were dot-zero addresses, so I assume it was just some kind of unfortunate obfuscation.
Then how did he see my web site? How did he send me an email? I asked him these questions and he said there apparently are hidden breakages that I can't possibly know that'll magically come out when I'm least expecting them. Naw - we don't need evidence here! Evidence just confuses people.
What if I called your telephone to tell you that your telephone setup shouldn't work?
> Naw - we don't need evidence here! Evidence just confuses people.
How are you expecting to receive said evidence?
(disclosure: I'm a Yankee)
I believe that there is still some use of ed2k protocol by people using eMule. Torrents won but it is still around.
As far as I have noticed it has been rare for ISPs to give out ip addresses ending in zero since the early 2000s.
All of my hosts are named after pokémon, and use their pokédex number as the last byte in their IP addresses -- except for one host, which gets the .0
A /24 on its own holds all of generations 1 and 2!
So, if you're sufficiently enthusiastic about Pokémon, you can do the DNS and reverse DNS in your head? :-)
Do you have Umbreon in there somewhere~? That'd be meeee :o
In terms of why there were two broadcast addresses, this apparently has to do with late standardization plus inadequate communication between different groups of TCP/IP implementers (Berkeley and non-Berkeley), plus an attempt to maintain backwards compatibility with 4.2BSD that was never revisited.
Seriously, the rationale in all the RFCs that mention the lowest address being special is ultimately compatibility with 4.2BSD.
As I mentioned elsewhere in this thread, several OSes no longer enforce this special case. But people on forums are often willing to confabulate justifications for why the special case should have existed, such as the idea that it would be impossible to distinguish the network-as-a-whole from the host at that address. (I guess those people must also believe that array indices have to start at 1, because otherwise it would be impossible to distinguish an array from its first element?)
After that you can gather some experience on why something can go wrong with that.
Then you can discover some networks that only pretend to be a shared ether, like Wi-Fi, where access point captures and analyzes transmissions with multiple destinations to decide which are first class and are worthy of re-transmitting, to answer directly on its own, or even convert one protocol into another.
https://web.archive.org/web/20150215042051/http://support.mi...
edit: year corrected
Linux in particular, if IPv6 forwarding is enabled, will automatically add an anycast route for the 0'th subnet address.
(Unless it's a /127 subnet per https://www.rfc-editor.org/rfc/rfc6164.)
It hasn't worked out how we thought, sure. But "Failed" is really strong for something that 1/3 of the global Internet can (and does) use every day.
There are more people on IPv6 now, than there are users in the entire US Internet market.
https://stats.labs.apnic.net/ipv6/CN (replace last 2 chars with any ISO3166 code, or XA for the world)
I'd like IPv4 to die, but I've also worked at places where it would have a significant (non-internet) international impact if you suddenly shot it in the back of the head.
Yes, there are still people stuck with v4 networks and 2.6-era codebases. These are legacy cases that are increasingly buried deep in the long tail of interoperability.
What a huge mistake.
NAT is obviously a huge crutch but everyone uses it because it’s a dead-simple firewall and makes for dead-simple internal networks. There are NAT-inspired IPv6 analogues but they are not the same.
If NAT with IPv6 was a thing, ISPs could have started shipping routers to customers (as they already do) with IPv6 turned on and we would have already been most of the way to IPv6.
But no, they felt NAT was too hacky and did away with it on a matter of principle.
The issue is that migrating to ipv6 meant changing equipments on the backbone and dealing with the change and no operator wanted to bear the cost. It’s getting better now that there is a dearth of ipv4 and people see an immediate benefit.
A basic firewall without NAT.
Exactly like we did with telephone numbers.