11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TCP/IP 469The header fields <strong>and</strong> data for an IP (Internet Protocol) packet. Thepackets can travel over different routes to the destination address<strong>and</strong> then be reassembled in the correct order.is enabled by having one computer (or a hardware devicecalled a router) connected to the Internet, serving as thelink between the local network <strong>and</strong> the rest <strong>of</strong> the world. Afacility called Network Address Translation (NAT) assigns aprivate IP address to each computer on the network. Whena computer wants to make an Internet connection, its outgoingpacket is assigned a public IP address from a pool.When packets replying to that public address are received,they are converted back to the private address <strong>and</strong> thusrouted to the appropriate user.NAT has the benefit <strong>of</strong> providing some security againstintrusion, since from the outside only the single public IPaddress is visible, not the private addresses <strong>of</strong> the variousNetwork Address Translation (NAT) can protect computers on alocal network by giving outgoing packets an arbitrary public sourceaddress in place <strong>of</strong> a computer’s actual (private) address. Incomingpackets addressed to that public address are then routed to the correctprivate address using a table.machines on the network. However, using NAT (<strong>and</strong> a similarscheme called PAT that allows difference hosts to use thesame IP address by being assigned different port numbers)causes some slowdown because <strong>of</strong> the translation process.Another facility, Dynamic Host Configuration Protocol(DHCP), is used to assign an arbitrary available public IPaddress to each host when it connects to the network. Thissystem is now used by most DSL <strong>and</strong> cable systems, <strong>and</strong> itreduces the danger <strong>of</strong> running out <strong>of</strong> IP numbers (each networkis assigned a range <strong>of</strong> numbers, <strong>and</strong> is thus limited tothat many IP addresses).A more lasting <strong>and</strong> flexible solution to address depletionis the new Internet Protocol version 6 (IPv6). The newaddressing scheme allows for about 3 × 10 38 addresses,more than enough to accommodate every star in the knownuniverse if it were a networked computer! The scheme isbeing rolled out gradually but should be well established bythe end <strong>of</strong> the 2000 decade.Domain Name SystemInternet users typically don’t have to worry about IP numbers,except perhaps when configuring their s<strong>of</strong>tware.Instead they use alphabetic addresses, such as http://www.factsonfile.com. The Domain Name System (DNS) sets up acorrespondence between the names (which include domainssuch as .com for commercial or .edu for educational institutions)<strong>and</strong> the IP numbers (see dns).Transmission Control ProtocolThe Transmission Control Protocol (the TCP part <strong>of</strong> TCP/IP) controls the flow <strong>of</strong> packets that have been structured asdescribed above. To use TCP, the sending computer opensa special file called a socket, which is identified by thecomputer’s IP number plus a port number. St<strong>and</strong>ard portnumbers are used for the various protocols such as www(Web) <strong>and</strong> ftp (File Transfer Protocol). The receiving computerconnects using a corresponding socket. TCP includesbasic flow control <strong>and</strong> error-checking features similar tothose used for most data transmissions. For some applications(such as connecting to the domain name server) errorcontrol is not needed, so a simpler protocol called the UserDatagram Protocol is used.The Big PictureHow does TCP/IP fit into the use <strong>of</strong> the Internet? When anapplication such as an e-mail program, Web browser, or ftpclient makes a connection, IP packets using TCP flow controlcarry the requests from the client to the server <strong>and</strong> theserver’s response back to the client. Each application has itsown protocol to specify these requests (such as for a Webpage). For e-mail the protocol is SMTP (Simple Mail TransferProtocol); Web servers <strong>and</strong> browsers use HTTP (HypertextTransfer Protocol); <strong>and</strong> for file transfers it is FTP (FileTransfer Protocol). (See also e-mail, html, hypertext <strong>and</strong>hypermedia, <strong>and</strong> file transfer protocols.)Further ReadingHagen, Silvia. IPv6 Essentials. 2nd ed. Sebastapol, Calif.: O’Reilly,2006.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!