|
TCP/IP BasicsThe Shiva VPN products operate on Transmission Control Protocol/Internet Protocol (TCP/IP) networks. TCP/IP is the foundation of the Internet. To fully appreciate how the Shiva VPN components work, you need to understand some basic TCP/IP terms. For more information, see the following topics: Packets and Packet HeadersCommunications in a TCP/IP network are broken into small chunks called packets. The typical maximum packet size carried over TCP/IP networks is 1500 bytes. Each packet carries some user data called payload. The payload could be part of an e-mail message or a Web page. Every packet also has some control information that indicates where the packet originated, where it is going, and what application should receive it when it arrives. This information is referred to as the packet header. A simplified packet example is shown in the following diagram.
Simple Packet Diagram IP AddressAll devices on a TCP/IP network must have at least one address called an IP address. This address uniquely identifies the device on a network (actually in the entire world). For example, "Test Company's" Web server has the following IP address: 205.250.128.2. There are some reserved IP addresses that are never assigned, which are called unroutable. Anyone can use these addresses on a closed network. Well-known unroutable IP addresses start with 10.x.x.x and 192.168.x.x, where x is any number between 1 and 254. Subnet MaskOne function of a subnet mask is to tell a device what other addresses it can directly communicate with. An example of a subnet mask is 255.255.255.0, which defines a class C subnet. Each component of the subnet mask (either 255 or 0 in the example) is called an octet. A class C subnet mask means that there are 254 addresses with which the device can directly communicate. For example, "Test Company" is assigned a full class C. This means "Test Company" can use any address between 205.250.128.1 up to 205.250.128.254. The addresses 205.250.128.0 and 205.250.128.255 are also part of the addresses in the class C subnet, but are reserved for broadcasting and cannot be assigned to any devices on the network (often called boundary addresses). If you want to break your class C into separate networks, you do this by varying the last octet of the subnet mask. If you make your subnet mask 255.255.255.128, your class C is split into two parts. This gives you one subnet containing the addresses from 205.250.128.1 to 205.250.128.126 and another subnet containing 205.250.128.129 to 205.250.128.254. When you work with the full class C, there are two boundary addresses reserved for broadcasts. Every subnet requires two addresses for broadcasts. When you split your class C into two parts, you must still have broadcast addresses in each subnet. The first subnet uses 205.250.128.0 and 205.250.128.127 for broadcasts while the second uses 205.250.128.128 and 205.250.128.255. When you have the full class C, there are 254 addresses you can use. Once the class C is split into two subnets, there are 126 addresses in each subnet for a total of 252 addresses. The following values, if placed in the last octet of the subnet mask, divide a class C subnet into smaller subnets.
Note: If you divide your class C into more and more subnets, the number of available addresses becomes smaller and smaller. Routing TableWhen a device creates a packet for transmission, it looks at the destination IP address. If the address is on the same subnet as the device (as defined by the subnet mask), the device looks for the address on its LAN. If the destination device responds, the originating device transmits the packet directly to the destination. However, if the destination device is not found locally, the originating device must decide what to do with the packet. The rules upon which the device bases the decision are called routes, which are stored in a routing table. The routing table maps network addresses to gateways. Basically, it tells the device that if it has a packet destined for a certain network, the packet should be sent to a specific gateway. The gateway can be any device such as a router or a switch that can send the packet out of the local subnet. Static routes are entries in the routing table that do not change. They are often defined on routers and switches when network topologies become complex and the network administrator wants to force packets to go in a certain known direction (that is, through a specific gateway). Dynamic routes are entries in the routing table that may change over time. This type of route is usually added automatically, based on some network routing protocol. Default GatewayThe routing table usually has a route of last resort known as a default gateway. The default gateway is where the originating device will send any packet for which it has no specific rule in its routing table. Most desktop computers do not have static routes added to them and therefore rely on the default gateway being set to be able to communicate outside their local subnet. This implies that the default gateway's IP address must be on the same subnet as the originating device. Computers can directly communicate only with devices on their local subnet (as defined by their IP address and subnet mask). Default gateways are what make the Internet work. When a packet is created by a desktop computer destined for an address on the Internet, the desktop computer often sends the packet to its default gateway. The default gateway is often an edge router connecting the LAN (on which the desktop computer is sitting) to the Internet. The edge router probably does not have specific routes telling it what to do with the packet. The edge router, therefore, most likely sends the packet off to its default gateway. This cycle will occur until the packet arrives at a device that knows where to find the destination address. Application PortWhen a computer (or any network device) receives a packet, the computer decides what to do with it. The computer may have many different programs running simultaneously (for example, a mail server and a Web server). Each program expecting to receive or send packets from or to a network opens something called a socket. If you look at an IP address as a street address that identifies a building, then an open socket can be compared to a room number within the building. The number given to a socket is called an application port number. Each packet contains both a source application port and destination application port in its header. The destination application port number is used by the receiving computer to decide which program should be given the payload of the packet for final processing. Many application port numbers are standard. Some common numbers are port 80, which is associated with http (www) packets; port 25, which is associated with SMTP mail; port 110 (POP3 mail); port 23 (Telnet); and port 21 (FTP). Therefore, when Web servers start, they usually connect to port 80 and listen for requests to come in. Note that a Web server can be configured to listen on another port, but most follow the standard. Shiva Corporation registered application port 2233. Packets with the source and destination application ports set to 2233 are encrypted with a LanRover VPN Gateway device. Related InformationVirtual Private Networking (VPN) [ Top of Page... ] |