`
`Acquisitions editor: Miles Williams
`Editorial assistant: Michael Fredetre
`Cover designer: Bruce Kenselaar
`Cover design director: Jerry \/arm
`’Vlanufacturing manager: Alexis Heydt
`Marketing manager: Kate Ha/-gen
`Project coordinator: Anne Tiinwbridge
`Compositor/Production services: Pine Tree Composition, Inc.
`
`
`
`© 2001 by Prentice Hall PTR
`Prei1tiCe~Hall, Inc.
`Upper Saddle River. New Jersey 07458
`
`Prentice Hall books are widely used by corporations and government agencies for training, marketing,
`and resale.
`
`The publisher offers discounts on this book when ordered in bulk quantities. For more information
`contact:
`
`Corporate Sales Department
`Phone: 800—382—34l9
`Fax: 201 —236v7l41
`E—m-ail:corpsales@prcnhall.com "
`
`Or write:
`
`Prentice Hall PTR
`Corp. Sales Dept.
`One Lake Street
`
`Upper Saddle River. New Jersey 07458
`
`All rights reserved. No part of this book may be reproduced. in any form or by any means, without
`permission in writing from the publisher.
`
`Printed in {he United States of America
`Tliis product is printed digiiaily on demand.
`
`ISBN: (3-13-(M9469-7
`
`Prci1Li<:e—Hali lnternzztionai (UK) Limited. L()n.s.0n
`Preniice«Hali of Australia Pty. Limited, 5),.-dm>3.r
`Prentice-Hall Canada lnc., Tommo
`l3l"<31l‘iiC8—H?.lii E-lispziitoamericaiia, S.A., M(4.\‘ic0
`Prentice—Eiall of India Private Lii1iited.1\r’ewDe>lhi
`Prenti<:.c—H.all of Japan. .it1c., '}"r2}qn-2
`
`Pearson Edi.
`ion Asia Pie Ltd.
`Editor-a Preiitiee-Hall do Brasil, Ltda.. Rio (le .;’aIz<’irr>
`
`
`
`298
`
`;§
`
`
`§?’r,z;..,.%;~2 ..
`
`
`
`
`
`my envelope in a neighborhood post office, they know to send it to the central post
`office. At the central post office, the clerks know from experience and current local
`conditions how to route it—whether it should go first
`to the airport, or if local
`weather is bad. whether it would be best sent by train to an airport in another city, or
`whatever. The same is true with TCP/{P packets. When a router, a special kind of
`computer that is the equivalent of a postal clerk, gets my TCP/IP packet, it either
`knows what route it should take or, if not, if it‘s like the clerk in the neighborhood
`rather than the central post office, it passes it on to another router that is able figure
`out the best route.
`
` g ?§.>'_
`
`
`TCP/IP: The TCP/IP stack (Transmission Control Protocol/Internet
`Protocol) is usually considered to be synonymous with the Internet. In
`fact, while all Internet links use IP at Layer 3, many transmissions use
`TCP’s sister protocol, UDP, in Layer 4.
`
`Packets to Frames
`
`Once the TCP/IP packets are created, they are in turn put into new packets that work
`with the computer’s local area network software and hardware. In this example, We’ll
`describe a network type called Ethernet. This system, which works only in a small
`area (typically up to fifty or so computers on one floor of a building), is like a com-
`pany’s internal mail service. The guys who deliver things around the office don’t deal
`with the outside world. Local mail goes in a company envelope and so does U.S.
`Mail. Ethernet doesn’t understand anything as complex as TCP/IP, and doesn’t need
`to. It just looks at the address on the kindpf packet it works with (actually, Ethernet
`calls its version of packets frames), takes it there, and drops it off; Just as the com-
`pany could use U.S. mail envelopes for its internal mail, it would be possible to have
`the LAN use just TCP/IP. We’ll see that there are a variety of reasons why it doesn’t,
`including the fact that the LAN’s simpler approach is cheaper and that TCP/IP and
`the various LAN protocols were all developed at different times by different compa-
`nies and organizations.
`
`
`LAN: A local area network (LAN) usually connects up to around fifty or
`so computers within a limited physical space, such as a small building
`or a floor of a larger one. The computers on a LAN are connected
`through a hub or a switch. LAN protocols, almost always Ethernet or
`Token Ring, operate at Layer 2 of the protocol stack.