Inside the Internet Protocol

an article added by: Daniel R. at 12062007


In: Root » Computers and technology » Ethernet » Inside the Internet Protocol

French Spanish Portuguese Italian German Japanese Chinese Korean Russian Arabic

The Internet Protocol (IP) helps data find its way to its destination even if the data must travel through other networks, including the many and varied networks that make up the Internet. Although it’s called the Internet Protocol, local networks can use IP as well. Many communications in local networks use IP because they use its companion protocols, TCP and UDP. This section introduces IP, including how computers obtain IP addresses, the format of IP datagrams, how IP and the domain name system help in getting messages to their destinations, and how embedded systems can use IP in communicating in local networks and on the Internet.

What IP Does

Network article 4-8 shows the place of the IP layer in network communications in the networking stack introduced in Chapter 1. In transmitting, the IP layer receives a message to send from a higher-level protocol layer such as TCP or UDP. The IP layer places the message in an IP datagram that consists of an IP header, followed by the message to send. The IP layer then passes the datagram to a lower layer such as an Ethernet driver, which sends the datagram on the network. On the way to its destination, a datagram may pass through one or more routers. The router examines the destination’s IP address and uses the address in deciding where to forward the datagram. At the destination computer, the Ethernet layer or another network interface passes the IP datagram to the IP layer, which removes the IP header. Information in the header tells the computer what protocol layer, such as TCP or UDP, should receive the datagram’s message.

The Internet Protocol performs two major functions.

• It defines a way to specify source and destination addresses for use with any network interface and across networks that use different interfaces.

• It enables a datagram to pass through networks of varying capabilities by defining a protocol that allows a router to fragment, or divide, a datagram into multiple, smaller datagrams and enables the destination to reassemble the original message from the fragments.

Two things IP doesn’t provide are flow control and error checking of the data payload. When needed, a higher-level protocol such as TCP can provide these. For local communications, Ethernet frames also provide error checking. Two protocols can help in matching an IP address to a computer, or to be more precise, to a network interface (because a single computer can have multiple network interfaces). The Domain Name System (DNS) protocol described earlier in this networking tutorial enables a computer to learn the IP address that corresponds to a domain name. And in Ethernet networks, the Address Resolution Protocol (ARP) described later in this networking tutorial enables the sender of an IP datagram to match an Ethernet hardware address with an IP address in the local network. The examples in this networking tutorial use version 4 of IP (IPv4), which most networks are using at this writing. The expected replacement for IPv4 is IP version 6 (IPv6), which greatly increases the number of available IP addresses and adds other improvements for more efficient and secure transfers. It’s likely that IPv6 routers will continue to support IPv4 for some time, so computers that support only IPv4 should have no trouble communicating with any destination.

The standards for IP and related protocols are the responsibility of the Internet Engineering Task Force (IETF) and its working groups (www.ietf.org). The IETF is open to anyone who has the necessary skills and abilities and wants to contribute. The documents that define IP and many other networking protocols are available from the Request for Comments (RFC) Web site (www.rfc-editor. org). This book contains a number of references to RFC documents, so perhaps it’s appropriate to say a few words about the documents and where they come from. The RFC Editor is a group funded by the Internet Society (ISOC). ISOC in turn is an organizational home for groups who are responsible for various standards relating the Internet’s infrastructure. The RFC Web site is a repository for RFC documents, which include standards- track documents as well as technical and organizational notes relating to networking and the Internet. The standards-track documents contain specifications that have undergone a review process to become approved standards.

Request for Comments may sound like an odd designation for an approved standard, and in fact, approved standards have alternate designations that use the STD prefix. For example, the document that defines IP is RFC0791: Internet Protocol. The standards-track document that includes RFC0791 and related documents is STD0005. The IETF’s Internet Engineering Steering Group (IESG) is responsible for approving specifications as standards. A protocol doesn’t have to be an approved standard before becoming widely implemented, however.

legal disclaimer

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

related articles

1. NE2000 Compatibility
NE2000 Compatibility A term you’re likely to hear in reference to program code for network controllers is NE2000-compatible. The NE2000 was an early and popular PC network interface card from Novell. The card contained National Semiconductor’s DP8390 controller. Software for systems that use the ’8390 or a compatible chip has come to be known as NE2000-compatible code. A major feature of the ’8390 is its set of internal registers. By reading and writing to the registers, a CPU can c...

2. Using the Internet Protocol in Local and Internet Communications
The protocols in the IEEE 802.3 Ethernet standard enable the computers in a local network to exchange messages with each other. In practice, most Ethernet networks also use Internet protocols such as TCP or UDP and IP. These provide defined and well-supported methods for accomplishing common tasks such as flow control and flexible addressing and routing of messages. Messages that travel on the Internet must use IP. And because TCP and UDP are designed to work along with IP, local communications that use TCP or UDP also use...

3. There are several options for obtaining an Internet connection
Technologies for Connecting There are several options for obtaining an Internet connection. A long-popular way for home users to connect to the Internet is via dial-up connections on phone lines. For higher speeds, alternatives are a Digital Subscriber Line (DSL), an Integrated Services Digital Network (ISDN) line, or a cable modem. Satellite connections are also possible. Table 4-1 compares the capabilities of the different methods. Not every connection type is available in all locations. Depending on ...

4. Every computer that communicates over the Internet must have an IP address
Static and Dynamic IP Addresses Every computer that communicates over the Internet must have an IP address, which the computer typically receives from its ISP. The IP address may be static or dynamic. A static IP address stays the same until someone explicitly changes it, while a dynamic IP address can change on every boot up or network connect (though the address typically changes only occasionally). An embedded system may store a static IP address in non-volatile memory, either within an application...

5. Obtaining and Using a Domain Name
Obtaining and Using a Domain Name After you obtain Internet access, connect your embedded system to the Internet, and configure your firewall to enable the embedded system to communicate, the system is ready to send and receive messages on the Internet. Applications running on other computers on the Internet can access the embedded system by specifying its public IP address. For example, to view a server’s home page, in the Address text box of a Web browser, you enter http:// followed by the server&rsquo...

6. A computer that uses the Internet Protocol must have an IP address
IP Addresses A computer that uses the Internet Protocol must have an IP address. A network administrator may manually assign an IP address to each computer or the network may have a way of assigning addresses automatically to computers that connect to the network. An IPv4 address is 32 bits. As explained earlier in this networking tutorial, the conventional way to express an IP address is in dotted-quad format, such as 192.168.111.1. Assigning Addresses Each IP datagram includes t...

7. With classless addressing the network address and IP prefix
Classless Addressing With classless addressing, the network address and IP prefix are often expressed in the form: xxx.xxx.xxx.xxx/n where xxx.xxx.xxx.xxx is the lowest IP address in the network and n is the number of bits in the network-address portion of the IP address. For example, with a network address and IP prefix of 192.0.2.0/24, the network address is 192.0.2 (three bytes, or 24 bits), and the final eight bits in the IP address are the host address. In routing datagrams for addresses that us...

8. Considerations when Using Dynamic IP Addresses
Dynamic Allocation One thing that automatic allocation doesn’t define is a way to reclaim addresses that are no longer in use. Reclaiming addresses is essential in networks that have more potential hosts than available IP addresses. For example, the hosts connected to an ISP at any one time will vary as different customers go on and off line. If the ISP assigns a permanent, or static, address to every computer that connects, it will eventually run out of addresses, even if only a few customers connec...