Tcpip PC
Tcpip PC
TCP/IP Background
In the mid 1970s, the Defense Advanced Research Project Agency
(DARPA) was interested in providing packet-switched network commu-
nications between the many research institutions in the United States.
DARPA and other government organizations understood the potential
of packet-switched technology and were just beginning to discover that
virtually all companies with networks needed to support communica-
tion among dissimilar computer systems.
In the two decades since their invention, the heterogeneity of TCP/IP Technology
networks has expanded further with the deployment of Ethernet, This section describes technical aspects of TCP, IP, related pro-
Token Ring, Fiber Distributed Data Interface (FDDI), X.25, tocols, and the environments in which these protocols operate.
Frame Relay, Switched Multimegabit Data Service (SMDS), Because the primary focus of this document is routing (a layer
Integrated Services Digital Network (ISDN), and most recently, 3 function), the discussion of TCP (a layer 4 protocol) will be
Asynchronous Transfer Mode (ATM). The Internet protocols are relatively brief.
the best proven approach to internetworking this diverse range
of LAN and WAN technologies. TCP
TCP is a connection-oriented transport protocol that sends data
The Internet protocol suite includes not only lower-level specifi- as an unstructured stream of bytes. By using sequence numbers
cations (such as TCP and IP), but specifications for such com- and acknowledgment messages, TCP can provide a sending node
mon applications as electronic mail, terminal emulation, and file with delivery information about packets transmitted to a desti-
transfer. Figure 1 shows some of the more important Internet nation node. Where data has been lost in transit from source
protocols and their relationship to the OSI Reference Model. to destination, TCP can retransmit the data until either a time-
out condition is reached or until successful delivery has been
The Internet protocols are the most widely implemented multi- achieved. TCP can also recognize duplicate messages and will
vendor protocol suite in use today. Support for at least part discard them appropriately. If the sending computer is transmit-
of the Internet protocol suite is available from virtually every ting too fast for the receiving computer, TCP can employ flow
computer vendor. control mechanisms to slow data transfer. TCP can also commu-
nicate delivery information to the upper-layer protocols and
applications it supports.
OSI
Reference
Model
FTP,
6 Presentation Telnet, XDR
SMTP
NetBIOS
5 Session RPC
Class A 0
Network Host
Class B 1 0
Network Host
Class C 1 1 0
Network Host
TCP/IP
Subnet Addresses
Figure 3
Class B 1 0
Network Host
Class B 1 0
Class A
Address
0 0 1 0 0 0 1 0 ➞ 0 ➞ ➞ 0 ➞ ➞ 0 ➞ 34.0.0.0
Subnet
Mask:
8 Subnet ➞ 1 ➞ ➞ 1 ➞ ➞ 0 ➞ ➞ 0 ➞ 255.255.0.0
Bits
Class A
0 0 1 0 0 0 1 0 ➞ 0 ➞ ➞ 0 ➞ ➞ 0 ➞ 34.0.0.0
Address
Subnet
Mask:
➞ 1 ➞ ➞ 1 ➞ ➞ 1 ➞ ➞ 0 ➞ 255.255.255.0
16 Subnet
Bits
TCP/IP
On some media, such as IEEE 802 LANs, IP addresses are dynam- Routing in IP Environments
ically discovered through the use of two other members of the An “internet” is a group of interconnected networks. The
Internet protocol suite: Address Resolution Protocol (ARP) and Internet, on the other hand, is the collection of networks that
Reverse Address Resolution Protocol (RARP). ARP uses broadcast permits communication between most research institutions,
messages to determine the hardware (MAC layer) address corre- universities, and many other organizations around the world.
sponding to a particular network-layer address. ARP is suffi- Routers within the Internet are organized hierarchically. Some
ciently generic to allow use of IP with virtually any type of routers are used to move information through one particular
underlying media access mechanism. RARP uses broadcast mes- group of networks under the same administrative authority
sages to determine the network-layer address associated with a and control. (Such an entity is called an autonomous system.)
particular hardware address. RARP is especially important to Routers used for information exchange within autonomous sys-
diskless nodes, for which network-layer addresses usually are tems are called interior routers, and they use a variety of interior
unknown at boot time. gateway protocols (IGPs) to accomplish this end. Routers that
move information between autonomous systems are called exte-
rior routers; they use the Exterior Gateway Protocol (EGP) or
Border Gateway Protocol (BGP). The Internet architecture is
shown in Figure 5.
Macintosh
Token Token
Ring Ring
IBM PC
Ethernet Ethernet
An IP Routing Entry
Figure 6
Destination Next
Address Hop
34.1.0.0 54.34.23.12
78.2.0.0 54.34.23.12
147.9.5.0 .
17.12.0.0 .
. 54.32.12.10
. 54.32.12.10
. .
..
TCP/IP
Interior Routing Protocols Cisco has recently enhanced IGRP to handle the increasingly
Interior Routing Protocols or IGPs operate within autonomous large, mission-critical networks being designed today. This new
systems. The following sections provide brief descriptions of version of IGRP is called Enhanced IGRP. Enhanced IGRP com-
several IGPs that are currently popular in TCP/IP networks. bines the ease of use of traditional distance vector routing pro-
tocols with the fast rerouting capabilities of the newer link state
RIP routing protocols.
A discussion of routing protocols within an IP environment
must begin with the Routing Information Protocol (RIP). RIP Enhanced IGRP consumes significantly less bandwidth than
was developed by Xerox Corporation in the early 1980s for use IGRP because it is able to limit the exchange of routing infor-
in Xerox Network Systems (XNS) networks. Today, many PC mation to include only the changed information. In addition,
networks use routing protocols based on RIP. Enhanced IGRP is capable of handling AppleTalk and Novell
IPX routing information, as well as IP routing information.
RIP works well in small environments but has serious limita-
tions when used in larger internetworks. For example, RIP limits OSPF
the number of router hops between any two hosts in an internet OSPF was developed by the Internet Engineering Task Force
to 16. RIP is also slow to converge, meaning that it takes a rela- (IETF) as a replacement for RIP. OSPF is based on work started
tively long time for network changes to become known to all rout- by John McQuillan in the late 1970s and continued by Radia
ers. Finally, RIP determines the best path through an internet by Perlman and Digital Equipment Corporation (DEC) in the
looking only at the number of hops between the two end nodes. mid-1980s. Every major IP routing vendor supports OSPF.
This technique ignores differences in line speed, line utiliza-
OSPF is an intradomain, link state, hierarchical routing protocol.
tion, and all other metrics, many of which can be important
OSPF supports hierarchical routing within an autonomous sys-
factors in choosing the best path between two nodes. For this
tem. Autonomous systems can be divided into routing areas. A
reason, many companies with large internets are migrating
routing area is typically a collection of one or more subnets that
away from RIP to more sophisticated routing protocols.
are closely related. All areas must connect to the backbone area.
IGRP
OSPF provides fast rerouting and supports variable length
With the creation of the Interior Gateway Routing Protocol
subnet masks.
(IGRP) in the early 1980s, Cisco Systems was the first company
to solve the problems associated with using RIP to route data- Integrated IS-IS
grams between interior routers. IGRP determines the best path ISO 10589 (IS-IS) is an intradomain, link state, hierarchical
through an internet by examining the bandwidth and delay of routing protocol used as the DECnet Phase V routing algorithm.
the networks between routers. IGRP converges faster than RIP, It is similar in many ways to OSPF. IS-IS can operate over a
thereby avoiding the routing loops caused by disagreement over variety of subnetworks, including broadcast LANs, WANs, and
the next routing hop to be taken. Further, IGRP does not share point-to-point links.
RIP’s hop count limitation. As a result of these and other
improvements over RIP, IGRP enabled many large, complex, Integrated IS-IS is an implementation of IS-IS for more than
topologically diverse internetworks to be deployed. just OSI protocols. Today, Integrated IS-IS supports both OSI
and IP protocols.
Other access restrictions are provided by the Department of Suppressing Network Information
Defense-specified security extensions to IP. Cisco supports both In some cases, it may be useful to suppress information about
the Basic and the Extended security options as described in RFC certain networks. Cisco routers provide an extensive set of
1108 of the IP Security Option (IPSO). Support of both access configuration options that allow an administrator to tailor the
lists and the IPSO makes Cisco a good choice for networks where exchange of routing information within a particular routing pro-
security is an issue. tocol. Both incoming and outgoing information can be controlled
using a set of commands designed for this purpose. For example,
Tunneling networks can be excluded from routing advertisements, routing
Cisco’s TCP/IP implementation includes several schemes that updates can be prevented from reaching certain networks, and
allow foreign protocols to be tunneled through an IP network. other similar actions can be taken.
Tunneling allows network administrators to extend the size of
AppleTalk and Novell IPX networks beyond the size that their Administrative Distance
native protocols can handle. In large networks, some routers and routing protocols are more
reliable sources of routing information than others. Cisco IP
IP Multicast routing software permits the reliability of information sources to
The applications that use the TCP/IP protocol suite continue to be quantified by the network administrator with the administra-
evolve. The next set of applications will include those that use tive distance metric. When administrative distance is specified,
video and audio information. Cisco is actively involved with the the router can select between sources of routing information
Internet Engineering Task Force (IETF) in defining standards based on the reliability of the source. For example, if a router
that will enable network administrators to add audio and video uses both IGRP and RIP, one might set the administrative dis-
applications to their existing networks. Cisco will support the tances to reflect greater confidence in the IGRP information. The
Protocol Independent Multicast (PIM) standard. In addition, router would then use IGRP information when available. If the
Cisco’s implementation will provide bandwidth management, source of IGRP information failed, the router automatically
security and interoperability with the MBONE, a research multi- would use RIP information as a backup until the IGRP source
cast backbone that already exists today. became available again.
IP multicasting (the ability to send IP datagrams to multiple
nodes in a logical group) is an important building block for appli-
cations such as video. Video teleconferencing, for example,
requires the ability to send video information to multiple tele-
conference sites. If one IP multicast datagram containing video
information can be sent to multiple teleconference sites, net-
work bandwidth is saved and time synchronization is closer
to optimal.
Routing Protocol Redistribution • The current state of the active routing protocol process,
Translation between two environments using different routing including its update interval, metric weights (if applicable),
protocols requires that routes generated by one protocol be active networks for which the routing process is functioning,
redistributed into the second routing protocol environment. and routing information sources
Route redistribution gives a company the ability to run different
• The active accounting database, including the number of
routing protocols in workgroups or areas where each is particu-
packets and bytes exchanged between particular sources
larly effective. By not restricting customers to using only a single
and destinations
routing protocol, Cisco’s route redistribution feature minimizes
cost while maximizing technical advantage through diversity. • The contents of the IP cache, including the destination IP
address, the interface through which that destination is
Cisco permits routing protocol redistribution between any of its reached, the encapsulation method used, and the hardware
supported routing protocols. Static route information can also be address found at that destination
redistributed. Further, defaults can be assigned so that one rout-
ing protocol can use the same metric for all redistributed routes, • IP-related interface parameters, including whether the inter-
thereby simplifying the routing redistribution mechanism. face and interface physical layer hardware are up, whether
certain protocols (such as ICMP and Proxy ARP) are enabled,
Serverless Network Support and the current security level
Cisco pioneered the mechanisms that allow network administra-
• IP-related protocol statistics, including the number of packets
tors to build serverless networks. Helper addresses, RARP, and
BOOTP allow network administrators to place servers far away and number of errors received and sent by the following proto-
from the workstations that depend on them, thereby easing cols: IP, TCP, User Datagram Protocol (UDP), EGP, IGRP,
network design constraints. Enhanced IGRP, OSPF, IS-IS, ARP, and Probe
• Logging of all BGP, EGP, ICMP, IGRP, Enhanced IGRP, OSPF,
Network Monitoring and Debugging
IS-IS, RIP, TCP, and UDP transactions
With today’s complex, diverse network topologies, a router’s
ability to aid the monitoring and debugging process is critical. As • The number of intermediate hops taken as a packet traverses
the junction point for multiple segments, a router sees more of the network
the complete network than most other devices. Many problems • Reachability information between nodes
can be detected and/or solved using information that routinely
passes through the router. Summary
IP is one of over 20 protocols that can be simultaneously routed
The Cisco IP routing implementation provides commands that
and bridged by any of Cisco’s routers. Cisco has added features
display the following:
to its IP implementation that optimize the performance of Cisco
• The current state of the routing table, including the routing routers in larger, enterprise-wide internetworks.
protocol that derived the route, the reliability of the source,
the next IP address to send to, the router interface to use,
whether the network is subnetted, whether the network in
question is directly connected, and any routing metrics
Corporate Headquarters European Headquarters Intercontinental Japanese Headquarters Cisco Systems has over 90
Cisco Systems, Inc. Cisco Systems Europe, Headquarters Nihon Cisco Systems K.K. sales offices worldwide. Call
170 West Tasman Drive s.a.r.l. Asia, Australia, Canada, Latin Seito Kaikan 4F, 5, Sanbancho 408 526-4000 to contact your
San Jose, CA 95134-1706 16 Avenue du Quebec America, Mexico, New Zeland Chiyoda-ku, Tokyo 102 local account representative
USA Batiment L2 Cisco Systems, Inc. Japan or, in North America, call
Tel: 408 526-4000 ZA de Courteboeuf 170 West Tasman Drive Tel: 81 3 5211 2800 800-553-NETS (6387).
800 553-NETS 91961 Les Ulis Cedex, San Jose, CA 95134-1706 Fax: 81 3 5211 2810
(6387) France USA
Fax: 408 526-4100 Tel: 33 1 6918 6100 Tel: 408 526-7660
Fax: 33 1 6928 8326 408 526-4646
European Offices
Belgium Norway Sweden Asia Taiwan Office 150 King Street West New Zealand
Cisco Systems Belgium, Cisco Systems Cisco Systems Cisco Systems Hong Kong, Formosa Business Center, 3F Suite 1707 Cisco Systems New Zealand
Complex Antares Holmens gate 4 Stockholms Modecenter Ltd. 285 Nanking East Road Section Toronto, Ontario M5H 1J9 Level 16, ASB Bank Centre
Avenue des Pleiades 71 0250 Oslo, Norway S-117 60 Stockholm, Suite 2704 3 Canada 135 Albert Street
1200 Brussels, Belgium Tel: 47 22 83 06 31 Sweden Far East Finance Center Taipei, Taiwan, R.O.C. Tel: 416 506-1500 P.O. Box 6624
Tel: 32 2 643 2626 Fax: 47 22 83 22 12 Tel: 46 8 681 41 60 No. 16 Harcourt Road Tel: 86 2 719 8383 Fax: 416 506-1506 Auckland, New Zealand
Fax: 32 2 643 2627 Fax: 46 8 19 04 24 Hong Kong Fax: 886 2 719 4537 Tel: 64 9 358 3776
Spain Tel: 852 529 3534 Latin America Fax: 64 9 358 4442
Germany Cisco Systems Spain Switzerland Fax: 852 520 2676 Cisco Systems, Inc.
Cisco Systems GmbH Paseo de la Castellana 141 Cisco Systems Switzerland Australia 170 West Tasman Drive
Max–Planck Strasse 7 pl.18 Edificio Cuzco IV Sonnenberg 5 Cisco Systems (HK) Ltd. Cisco Systems Australia San Jose, CA 95134-1706
85716 Unterschleissheim, 28046 Madrid, Spain 8636 Wald, Switzerland Shell Tower, Level 37 Pty., Ltd. Tel: 408 526-7660
Germany Tel: 34 1 572 0360 Tel: 41 55 95 60 44 50 Raffles Place Level 17, 99 Walker Street Fax: 408 526-4646
Tel: 49 89 3215 070 Fax: 34 1 570 4599 Fax: 41 55 95 64 14 Singapore 0104 P.O. Box 469
Fax: 49 89 3215 0710 Tel: 65 320 8350 North Sydney, NSW 2060 Mexico
United Kingdom Fax: 65 320 8307 Australia Cisco Systems de México,
Italy Cisco Systems Ltd., Unit 3 Tel: 61 2 957 4944 S.A. de C.V.
Cisco Systems Italy Cliveden Office Village Cisco Systems (HK) Ltd. Fax: 61 2 957 4077 “Torre Caballito”
Office No 609, 6th Floor Lancaster Road Paso de la Reforma
Via Turati 28 High Wycombe, Canada No. 10,, Piso 19
20121 Milan, Italy Bucks HP12 3YZ Cisco Systems Canada Colonia Centro
Tel: 39 2 62 726 43 United Kingdom Limited México, D.F. 06400
Fax: 39 2 62 729 13 Tel: 44 494 464944 Tel: 525 628 1255
Fax: 44 494 465300 Fax: 525 628 1212
Copyright 1994 Cisco Systems, Inc. All rights reserved. Printed in USA.Cisco Systems and the Cisco logo are registered trademarks of Cisco Systems, Inc. All other products or services trademarks, service marks, registered trademarks, or registered service marks
mentioned in this document are the property of their respective owners. Lit. # 010103 4/94 GP