Network address translation

Network address translation, or NAT, is a networking concept that was developed in the early 1990s in response to the rapid depletion of IP addresses throughout the world. Prior to NAT, every host connected to the Internet had a unique IP address.

Legacy routers support two types of NAT:

  • One-to-one NAT
  • Many-to-one NAT

One-to-one NAT is a method in which one IP address is directly mapped to another. Commonly referred to as static NAT, one-to-one NAT is often used to map a unique public address to a privately addressed host. Floating IPs utilize one-to-one NAT concepts.

Many-to-one NAT is a method in which multiple addresses are mapped to a single address. Many-to-one NAT employs the use of port address translation, or PAT. Neutron uses PAT to provide external access to instances behind the router when floating IPs are not assigned.

For more information on network address translation, please visit Wikipedia at http://en.wikipedia.org/wiki/Network_address_translation.

Floating IP addresses

Tenant networks, when attached to a Neutron router, often utilize the router as their default gateway. By default, when a router receives traffic from an instance and routes it upstream, the router performs a port address translation and modifies the source address of the packet to appear as its own external interface address. When the translation occurs, the ephemeral source port is mapped to the original client address in a table that is referred to when the response packet is received. This ensures that the packet can be routed upstream and returned to the router, where the packet is modified and returned to the instance that initiated the connection. Neutron refers to this type of behavior as source NAT.

When users require direct inbound access to instances, a floating IP address can be utilized. A floating IP address in OpenStack is a one-to-one static NAT that maps an external address from an external network to an internal address from a tenant network. This method of NAT allows instances to be accessible from remote networks, such as the Internet. Floating IP addresses are configured on the external interface of the router, which serves as a gateway for the instance and is then responsible for modifying both the source and destination address of packets, depending on their direction.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset