Re: Best way to index IP data?

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Best way to index IP data?
Дата
Msg-id Pine.GSO.4.64.0801112136430.23114@westnet.com
обсуждение исходный текст
Ответ на Re: Best way to index IP data?  (Steve Atkins <steve@blighty.com>)
Ответы Re: Best way to index IP data?  (david@lang.hm)
Re: Best way to index IP data?  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Список pgsql-performance
On Fri, 11 Jan 2008, Steve Atkins wrote:

> You may well need netmasks to configure your interface, but there's
> absolutely no need for them to identify an IP endpoint, which is all you
> need to identify the destination the packet is going to, and that is the
> most common use of IP addresses.

Technically you can't ever send a packet unless you know both the endpoint
and your local netmask.  As the sender, you're obligated to determine if
the destination is on your local LAN (in which case you send it there) or
if it goes to the gateway.  That's similar to a routing decision, but it's
not quite--if you don't have to look in a routing table, it's not actually
part of routing.

I believe this sort of detail is why subnet masks are considered required
for some things even though it doesn't seem like they are needed.
Regardless, the details of how the packets move aren't important to some
applications, and arguing over what the RFCs do and don't require doesn't
change that.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Simple select, but takes long time
Следующее
От: david@lang.hm
Дата:
Сообщение: Re: Best way to index IP data?