Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Default destination address selection z/OS Communications Server: IPv6 Network and Application Design Guide SC27-3663-00 |
|
Resolver APIs can return multiple IP addresses as a result of a host name query; however, many applications use only the first address returned to attempt a connection or to send a UDP datagram. Therefore, sorting of these IP addresses is performed by the default destination address selection algorithm. Establishing connectivity can depend on whether an IPv6 address or an IPv4 address is selected, which makes this sorting function even more important. Default destination address selection occurs only when the system is enabled for IPv6 and the application is using the getaddrinfo() API to retrieve IPv6 addresses, IPv4 addresses, or both. The default destination address selection algorithm sorts a list of destination addresses and generates a new list. The algorithm sorts together both IPv6 and IPv4 addresses by a set of rules. Rules are applied, in order, to the first and second address, choosing a best address. Rules are then applied to this best address and the third address. This continues until rules have been applied to all addresses and the entire list of addresses has been sorted. If one of the rules is able to select the best address between two addresses, remaining rules are bypassed for those two addresses. Subsequent rules act as tie-breakers for earlier rules. The destination address selection algorithm attempts to predict what source address is selected by TCP/IP when the application initiates an outbound connection or sends a datagram by using the destination address. This source address is used for some of the destination address selection criteria rules. Source address prediction processing assumes that the application does not explicitly specify a source IP address (by using bind or ipv6_pktinfo) when it is initiating a connection or sending a datagram. If the application explicitly specifies a source address, then the destination address that this algorithm selects might not be optimal. The decision the algorithm makes might assume that a different source address is used. Rules:
|
Copyright IBM Corporation 1990, 2014
|