Vida útil do endereço IPv6: arrendamento preferencial versus válido

2

Qual é a diferença entre o período de "Vida útil preferencial" e "Tempo de vida útil válido"? Qual é o ponto de preferência e porque não basta usar o prazo de vida válido? Obrigado.

    
por user1330287 24.08.2016 / 02:57

1 resposta

3

A melhor explicação que vi foi na introdução do RFC 4862 (que você deve ler na íntegra mais adiante) :

IPv6 addresses are leased to an interface for a fixed (possibly infinite) length of time. Each address has an associated lifetime that indicates how long the address is bound to an interface. When a lifetime expires, the binding (and address) become invalid and the address may be reassigned to another interface elsewhere in the Internet. To handle the expiration of address bindings gracefully, an address goes through two distinct phases while assigned to an interface. Initially, an address is "preferred", meaning that its use in arbitrary communication is unrestricted. Later, an address becomes "deprecated" in anticipation that its current interface binding will become invalid. While an address is in a deprecated state, its use is discouraged, but not strictly forbidden. New communication (e.g., the opening of a new TCP connection) should use a preferred address when possible. A deprecated address should be used only by applications that have been using it and would have difficulty switching to another address without a service disruption.

As definições para esses termos também são esclarecedoras:

tentative address - an address whose uniqueness on a link is being verified, prior to its assignment to an interface. A tentative address is not considered assigned to an interface in the usual sense. An interface discards received packets addressed to a tentative address, but accepts Neighbor Discovery packets related to Duplicate Address Detection for the tentative address.

preferred address - an address assigned to an interface whose use by upper-layer protocols is unrestricted. Preferred addresses may be used as the source (or destination) address of packets sent from (or to) the interface.

deprecated address - An address assigned to an interface whose use is discouraged, but not forbidden. A deprecated address should no longer be used as a source address in new communications, but packets sent from or to deprecated addresses are delivered as expected. A deprecated address may continue to be used as a source address in communications where switching to a preferred address causes hardship to a specific upper-layer activity (e.g., an existing TCP connection).

valid address - a preferred or deprecated address. A valid address may appear as the source or destination address of a packet, and the Internet routing system is expected to deliver packets sent to a valid address to their intended recipients.

invalid address - an address that is not assigned to any interface. A valid address becomes invalid when its valid lifetime expires. Invalid addresses should not appear as the destination or source address of a packet. In the former case, the Internet routing system will be unable to deliver the packet; in the latter case, the recipient of the packet will be unable to respond to it.

preferred lifetime - the length of time that a valid address is preferred (i.e., the time until deprecation). When the preferred lifetime expires, the address becomes deprecated.

valid lifetime - the length of time an address remains in the valid state (i.e., the time until invalidation). The valid lifetime must be greater than or equal to the preferred lifetime. When the valid lifetime expires, the address becomes invalid.

Com o DHCPv6 em particular, o cliente deve tentar renovar a concessão antes que a vida útil desejada termine, mas, se não for possível, o endereço será descontinuado (e o cliente poderá continuar a usá-lo se não o fizer) tem um endereço preferencial) até que o tempo de vida válido termine. Assim, os clientes com endereços existentes podem continuar a se comunicar durante breves interrupções de DHCPv6, por exemplo. Eles também podem terminar conexões de longa duração que podem durar mais do que a vida útil preferida.

    
por 24.08.2016 / 03:22