TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com A Professional’s Guide to Data Communication in a TCP/IP World TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com For a listing of recent titles in the Artech House Telecommunications Library turn to the back of this book. TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com A Professional’s Guide to Data Communication in a TCP/IP World E. Bryan Carne Artech House, Inc. Boston • London www.artechhouse.com TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com Library of Congress Cataloging-in-Publication Data Carne, E. Bryan, 1928– A professional’s guide to data communication in a TCP/IP world / E. Bryan Carne. p. cm. Includes bibliographical references and index. ISBN 1-58053-909-2 (alk. paper) 1. TCP/IP (Computer network protocol). 2. Data transmissions systems. I. Title. TK5105.585.C36 2004 004.6'2—dc22 2004053826 British Library Cataloguing in Publication Data Carne, E. Bryan (Edward Bryan), 1928– A professional’s guide to data communication in a TCP/IP world.—(Artech House telecommunications library) 1. Computer networks 2. TCP/IP (Computer network protocol) I. Title 004.6 ISBN 1-58053-909-2 Cover design by Gary Ragaglia © 2004 ARTECH HOUSE, INC. 685 Canton Street Norwood, MA 02062 All rights reserved. Printed and bound in the United States of America. No part of this book may be reproduced or utilized in any form or by any means, electronic or mechanical, includ - ing photocopying, recording, or by any information storage and retrieval system, without permission in writing from the publisher. All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Artech House cannot attest to the accuracy of this informa - tion. Use of a term in this book should not be regarded as affecting the validity of any trade - mark or service mark. International Standard Book Number: 1-58053-909-2 10987654321 TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com To Joan, Kevin, Benjamin, and Matthew with thanks for your outstanding support TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com . TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com Contents Preface ix Acknowledgments xv CHAPTER 1 A TCP/IP World? 1 1.1 The Internet 2 1.1.1 TCP/IP Suite 3 1.1.2 Internet Protocol Stack 3 1.2 Some Application Layer Protocols 4 1.2.1 Information Retrieval 5 1.2.2 File Transfer 5 1.2.3 Mail Transfer 5 1.2.4 Using Another Computer 6 1.2.5 Resolving Names and Numbers 6 1.3 User Datagram Protocol 7 1.3.1 UDP Attributes 7 1.3.2 UDP Header 7 1.3.3 Checksum 8 1.4 Transmission Control Protocol (TCP) 8 1.4.1 Sequencing 9 1.4.2 Segmentation 9 1.4.3 TCP Header 9 1.4.4 TCP Ports 9 1.4.5 Checksum 10 1.4.6 Urgent Data 10 1.4.7 Cumulative Acknowledgments 10 1.4.8 Selective Acknowledgments 11 1.4.9 Flow Control 11 1.4.10 Retransmission Time-Out 12 1.5 Creating a Connection 12 1.5.1 OPEN Function Calls 13 1.5.2 Flags 14 1.5.3 Connection Denied 14 1.5.4 Connection Termination 15 1.6 Internet Protocol 16 1.6.1 IP Version 4 16 1.6.2 IP Version 6 20 vii TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com 1.6.3 Other Internet Layer Protocols 22 1.7 Network Interface Layer 25 1.8 TCP/IP Protocol Stack 25 CHAPTER 2 Data Communication 27 2.1 Communication Equipment 27 2.2 Making a Data Call 29 2.3 Open Systems Interconnection Model 31 2.3.1 OSI Model 31 2.3.2 Layer Tasks 33 2.4 Internet Model 37 2.4.1 Application Layer 38 2.4.2 Transport Layer 39 2.4.3 Internet Layer 40 2.4.4 Network Interface Layer 41 CHAPTER 3 Local Area Networks 43 3.1 Ethernet 43 3.1.1 Classic Ethernet 43 3.1.2 IEEE 802.3 (Ethernet) LAN 45 3.1.3 New Configurations 48 3.2 IEEE 802.5 Token-Ring LAN 52 3.2.1 What Is a Token? 53 3.2.2 Token Ring Frame 54 3.3 Fiber Distributed Data Interface 56 3.4 Bit Ordering 57 CHAPTER 4 Wide Area Networks 59 4.1 Point-to-Point Links 60 4.1.1 High-Level Data Link Control Protocol 60 4.1.2 PPP and SLIP 63 4.2 Nonbroadcast Multiple Access Links 64 4.2.1 Packet-Switched Networks 64 4.2.2 Cell Relay 68 4.2.3 Frame Relay 73 4.3 Quality of Service 74 4.3.1 Differentiated Services 76 4.3.2 T-1 Performance Measures 76 4.3.3 ATM Performance Measures 77 4.3.4 Frame Relay Performance Measures 78 4.3.5 QoS 78 CHAPTER 5 Connecting Networks Together 81 viii Contents TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com 5.1 More Than One Network 81 5.1.1 Repeaters, Bridges, Routers, and Gateways 81 5.1.2 Layer 2 and Layer 3 Switches 83 5.2 Bridging 84 5.2.1 Bridging Identical LANs 84 5.2.2 Bridging Dissimilar LANs 87 5.3 Routing 91 5.3.1 Routing over Broadcast Links 92 5.3.2 Routing over Point-to-Point Links 92 5.3.3 Routing over Nonbroadcast Multiple Access Links 92 5.3.4 Router 94 5.3.5 Static Routing 94 5.3.6 Dynamic Routing 94 5.3.7 Border Gateway Routing 95 5.3.8 Intermediate System-to-Intermediate System 96 5.4 Virtual LANs 96 5.4.1 Tags 96 5.4.2 Edge and Core Switches 99 5.5 Multiprotocol Label Switching 101 5.5.1 Label Distribution 101 5.5.2 Label Location 101 5.5.3 MPLS Operation 102 CHAPTER 6 Protecting Enterprise Catenets 105 6.1 Operating Environment 105 6.1.1 Enterprise Catenet 105 6.1.2 Interconnections 107 6.2 Combating Loss of Privacy 109 6.2.1 Network Address Translation 109 6.2.2 Proxies 110 6.2.3 Tunnels 111 6.2.4 Encryption, Decryption, and Authentication 113 6.2.5 IP Security 114 6.2.6 Other Tunneling Protocols 115 6.2.7 Firewalls 116 6.2.8 Functions Performed in Firewall 116 6.3 Virtual Private Networks 118 6.3.1 Types of VPNs 119 6.3.2 Basic Connections 119 CHAPTER 7 Transmission Facilities 121 7.1 Twisted Pairs 121 7.1.1 Cable Pair Impairments 122 4.1.2 Circuit Noise 123 7.1.3 Crosstalk 124 Contents ix TLFeBOOK Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com [...]... transport layer The next layer is the Internet layer It contains IP and other associated protocols They provide the frame with originating and terminating addresses to guide the PDU to its destination The bottom layer is the network interface layer It employs standard data link protocols and converts the data stream to a signal stream for transmission over physical facilities to the destination stack Here,... protocol is called UDP, an acronym for User Datagram Protocol It provides data transport on a best-effort basis without acknowledgments or guaranteed delivery • IP is an acronym for Internet Protocol; its major purpose is to make origination and destination addresses available to guide data across networks IP includes several management protocols that are essential to the operation of the Internet Together,... protocols is better Truly, the fact that TCP/IP powers this vast array of computing machines is credential enough to claim that it unites the world 1.1.2 Internet Protocol Stack Protocols are applied in sequence to the user’s data to create a frame that can be transmitted from the sending application to the receiving application The receiver reverses the procedure to obtain the original user’s data and... B.3.1 Point -to- Point Protocol (PPP) Frame B.3.2 X.25 Data Frame B.3.3 ATM Cell Structure B.3.4 AAL5 Frame Containing IP Datagram B.3.5 Frame Relay Frame with 2-Byte Addresses Chapter 5: Connecting Networks Together B.4.1 Source Routing Added to Token Ring Frame B.4.2 Tag for IEEE 802.3 (Ethernet) Frame Encapsulating an IP Datagram B.4.3 IEEE 802.3 (Ethernet) Frame with Embedded Routing Information Chapter... Judi Stone of Artech House for showing me that her PC world and my Mac world are compatible, Mark Walsh and his staff for helping me focus my efforts, Barbara Lovenvirth for editing the final manuscript, and Jill Stoodley and Rebecca Allendorf for managing its production Finally, I want to thank my wife Joan, my son Kevin, and my grandsons Benjamin and Matthew for keeping everything going during the... of messages in commercial operations and residential activities Developed initially for point -to- point data operations, it has been adapted to local area networks, wide area networks, radio networks, and for voice services, to the detriment of all other protocol suites Data communication is an essential part of our lives It continues to evolve to an activity largely directed by TCP/IP In writing this... frame is handed off from layer to layer in reverse The bottom layer passes the PDU to the Internet layer, the Internet layer passes the PDU to the transport layer, and the transport layer passes it to the application that can use the data being delivered In doing this, each receiving layer makes use of the information added by its corresponding sending layer A further description of the Internet stack... the Internet Protocol (IP) adds information necessary for routing the PDU from source to destination IP makes a best effort to deliver packets to their final destination It adds the addresses needed to route frames from source to destination and provides management and control facilities The combination of the transport layer PDU and the header added by the Internet layer is known as an IP datagram... machines would communicate with one another They understood that creating the information age required collecting data from anywhere, processing them somewhere, and disseminating the information products to any points that wanted to use them Moreover, if this was done in close to real time, many operations could be automated Pressures such as this led to experiments and, eventually, to the OSI and Internet... could accommodate any style of networking) and more scalable (i.e., could handle growing networks efficiently) than the OSI contender These advantages remain true today 1.1 The Internet In 1969, the Department of Defense commissioned its Advanced Research Projects Agency (ARPA) to develop a data network From a few nodes located at academic institutions, ARPAnet has grown into the Internet, the largest . http://www.simpopdf.com Library of Congress Cataloging -in- Publication Data Carne, E. Bryan, 1928– A professional’s guide to data communication in a TCP/IP world / E. Bryan Carne. p. cm. Includes bibliographical references. an acronym for Internet Protocol; its major purpose is to make origina- tion and destination addresses available to guide data across networks. IP includes several management protocols that are. Library Cataloguing in Publication Data Carne, E. Bryan (Edward Bryan), 1928– A professional’s guide to data communication in a TCP/IP world. —(Artech House telecommunications library) 1. Computer