I mentioned a few weeks ago the notion of treating the generation
of the addresses in a subnet as akin to the integers, except for the
problem of the broadcast address.
Math already has a name for systems that have this behavior. If
we were pretending that our subnet to allocate addresses from was a
number, then the first "special" "you can't get there from here"
number is called the "limit ordinal".
In pseudo-scheme (pardon the paren happy language), the result of:
(let* ((zero "192.168.0.1/24")
(broadcast? (make-broadcast-test zero))
(successor (lambda (x)
(cond ((broadcast? x)
(error "no more room"))
(else (+ x 1))))))
(successor "192.168.0.255/24"))
is the error "no more room". Thus, 192.168.0.255 is the
limit ordinal of this system.
|
|