Before plunging into the details of setting up a wireless network, it's important to understand the fundamentals of networking, specifically Transmission Control Protocol/Internet Protocol, or TCP/IP , which is the networking standard used by the Internet, as well as home and office connections. TCP/IP controls how data flows across the Internet and on Ethernet networks in your home or office. 3.2.1 TCP/IPTo understand TCP/IP, you'll need to know how computers identify one another, how they talk to other computers on the same network, and how they talk to machines on other networks or the Internet. 3.2.1.1 IP addressOn a TCP/IP network, each computer has an IP address . This address uniquely identifies each computer (also called a host ) on the network. An IP address contains four numbers separated by periods and looks like this: 192.168.1.1. IP addresses are all 32 bits in length, and are broken into four 8-bit parts . This allows each part to have numbers ranging from 0 to 255. The four parts are combined in a notation called dotted quad , which just means that each 8-bit value is separated by a period. Assigning IP addresses isn't a simple matter of starting with the number 1 and counting upwards. There are really two parts to an IP address: the network number , and the host number within that network, as shown in Figure 3-2. By using two parts to an IP address, machines on different networks can have the same host number. However, because the network number of the two networks is different, the machines are uniquely identified (the machine numbers are the same, but the network numbers are different). Figure 3-2. IP address componentsIP addresses are assigned on the basis of the size of the company or organization requesting them. In a small company, there is no need for many IP addresses within the network. On the other hand, a large corporation or educational institution may have thousands of hosts needing IP addresses. IP addresses come in five classes , indicated by the value of the first byte of the IP address (the numbers before the first period in the address). The classes that we're interested in are Class A, Class B, and Class C. There are a Class D and Class E, but they have special purposes and are not used as part of the IP address numbering.
Figure 3-3 shows the network number and host number used in each class of IP addresses. Figure 3-3. Network and host numbers in each IP address classSome IP address ranges are reserved for special uses, and so are not assigned to any host:
There are four IP address blocks that are reserved for private networks (you'll probably use one of these for a home or small business network, especially if you have a router on your network). These private networks can be configured to see the outside world without letting the outside world see them (see the "DHCP and NAT" section later in this chapter):
3.2.1.2 RoutersA router is a hardware device that forwards data packets between networks. Typically, you'll use a router to connect your home or small business network to your Internet Service Provider's network and the Internet. For example, let's say that you have a high-speed DSL or cable modem connection. The service provider gives you a DSL modem or cable modem that hooks up to a phone line or coaxial cable. That modem has an Ethernet connector to which you can plug in a single computer, assuming you have not been saddled with a DSL or cable modem that uses a USB cable (and if you want to connect your access point to such a modem, you'll be out of luck, so talk to your ISP about replacing it). But if you have a network of computers that you want to share the high-speed connection, you'll need a router. You connect the router to your high-speed Ethernet connection, then connect the computers on your network to the router. That last connection, from your computers to the router, can use either a wired Ethernet network, or be wireless. Devices such as the AirPort Base Stations are combinations of routers and wireless access points, which is why they are sometimes called wireless routers . Figure 3-4. IPv6 IP address in PantherA Dynamic Host Configuration Protocol (DHCP ) server, which is usually built into your router, automatically assigns an IP address to client computers when they log onto the network. This makes up for the fact that most DSL or cable-based home networks get only a single IP address from the provider, which would mean that only one machine could connect the Internet at any one time. Since that's no fun, most home routers also support Network Address Translation (NAT ). With NAT, the router uses that single IP address assigned by the Internet provider, and computers connected to the router are assigned IP addresses that are only valid within the local network (and are unusable on the Internet at large). For packets that are sent out to the Internet, the router translates the local IP addresses into the real IP address that the router has. When a data packet from the Internet arrives for a computer on the local network, the translation process occurs in reverse, and the router sends the packet on to the correct local machine. Because computers that are using a DHCP server to get their IP addresses can have those addresses change every time the computer logs onto the network, those addresses are known as dynamic IP addresses . It's fine to use dynamic IP addresses inside your network, because your router keeps track of how to get data packets to each computer on the network. Addresses that don't change are called static IP addresses . 3.2.1.3 Routers with switchesMany non-Apple wireless routers also contain switches or hubs , which allow you to plug more than one computer into the router via Ethernet. Most home routers with switches have four Ethernet ports for direct Ethernet connections to computers, plus a fifth port that connects to the WAN port (Wide Area Network, in this case the connection to the DSL or cable modem). The Apple Base Stations do not contain switches; instead, they have just two Ethernet ports: one port for the WAN, and one Ethernet port for one wired computer or a local area network ( LAN ). |