Farallon Communications R9100 User Manual

Page 210

Advertising
background image

C-2 User’s Reference Guide

When the Netopia R9100 establishes a connection over its WAN inter face with another router it uses the
Point-to-Point Protocol (PPP). Within PPP there is a Network Control Protocol (NCP) called Internet Protocol
Control Protocol (IPCP), which handles the negotiation of IP addresses between the two routers, in this case the
Netopia R9100 at the customer site above and the router at the Internet ser vice provider (ISP).

If the Netopia R9100 calls the router at the ISP with NAT disabled, the Netopia negotiates its LAN inter face
address (as specified in IP Setup within the Netopia R9100's console) with the router at the ISP through IPCP
and then sets up routing. From the diagram on the previous page you can see that the address for the Netopia
R9100 is 192.168.5.1 and the address of the router at the ISP is 200.1.1.1. Assuming that the addresses
negotiated by the routers are valid and unique for the Internet, the Netopia R9100 and the hosts on its LAN
would be able to access the Internet.

If the Netopia R9100 calls the router at the ISP with NAT enabled, instead of negotiating the LAN inter face
address, the Netopia R9100 suggests the address 0.0.0.0 through IPCP. When the router at the ISP sees this
all-zeros IPCP request, the router can either pull a free dynamic IP address from its pool and assign it to the
Netopia R9100’s WAN inter face or, if configured to do so, it can match the Netopia R9100's incoming
connection profile and assign a preconfigured static IP address to the Netopia R9100's WAN inter face.

From the diagram, you can see that the IP address assigned to the Netopia R9100's WAN inter face is
200.1.1.40, while the IP address assigned to the LAN inter face remains the same. The LAN inter face address
192.168.5.1 is thus hidden from the ISP and the Internet, and the Netopia R9100 only has a single valid IP
presence on the Internet. The LAN inter face IP address for the Netopia R9100 can be any IP address; however,
it is recommended that you use the IANA-specified 192.168.X.X Class C address range, which is used for
networks not attached to the Internet. This address range is described in RFC 1597.

The dynamic IP address acquisition on the WAN inter face of the Netopia R9100 is one of several features of
NAT. Another is the mapping of locally assigned IP addresses to the single globally unique IP address acquired
by the Netopia R9100 on its WAN inter face. NAT employs several things to accomplish this seamlessly. You
must look at the formatting of an IP packet before IP address remapping can be explained.

Ever y IP packet that is transmitted across the Netopia R9100’s LAN inter face or across the WAN inter face to
the Internet contains several bits of information that indicate to any device where the packet is going and where
it came from. In par ticular, you have the source and destination por t and source and destination IP addresses.

A por t is used within IP to define a par ticular type of ser vice and could be either a Transmission Control
Protocol (TCP) por t or User Datagram Protocol (UDP) por t. Both TCP and UDP are protocols that use IP as the
underlying transpor t mechanism. The major difference between TCP and UDP is that TCP is a reliable deliver y
ser vice, whereas UDP is a “best-effor t” deliver y ser vice. A list of well-known TCP or UDP por ts and ser vices can
be found in RFC 1700.

If Workstation A wants to communicate with a World Wide Web (WWW) ser ver on the Internet and the Netopia
R9100 does not have NAT enabled, Workstation A forms an IP packet with the source IP address of
192.168.5.2 and destination IP address of 163.176.4.32. The source por t could be 400 while the destination
por t would be 80 (WWW ser ver). The Netopia R9100 then looks at this IP packet, determines the best routing
method and sends that packet on its way across the WAN inter face to the WWW ser ver on the Internet.

With NAT enabled, the Netopia R9100 does something different. For example, suppose that Workstation A
again wants to communicate with the WWW ser ver on the Internet. Workstation A forms an IP packet with the
source IP address of 192.168.5.2 and destination IP address of 163.176.4.32, and source por t could be 400
while the destination por t would be 80 (WWW ser ver).

Advertising