Jump to content

X.25: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
More on architecture
X.25 does not define physical network layers
Line 1: Line 1:
'''X.25''' is an [[ITU-T]] standard [[protocol suite]] for [[wide area network]]s using leased lines, the [[Plain old telephone service|phone]] or [[ISDN]] system as the networking hardware. It defines one of many standards implemented for the [[physical layer]], [[data link layer]], and [[network layer]] of the [[OSI model|OSI Reference Model]] or the equivalent Network Access Layer of the [[TCP/IP model|DoD protocol model]]. ''[[Packet switched network]]'' was the common name given to the international collection of X.25 providers, typically the various national telephone companies. Their combined network had large global coverage during the 1980s and into the '90s, and it is still in use mainly in transaction systems.
'''X.25''' is an [[ITU-T]] standard [[protocol suite]] for connection to [[Packet switched network|packet switched]] [[wide area network]]s using leased lines, the [[Plain old telephone service|phone]] or [[ISDN]] system as the networking hardware. It defines one of many standards implemented for the [[data link layer]], and [[network layer]] of the [[OSI model|OSI Reference Model]] or the equivalent Network Access Layer of the [[TCP/IP model|DoD protocol model]]. ''[[Packet switched network]]'' was the common name given to the international collection of X.25 providers, typically the various national telephone companies. Their combined network had large global coverage during the 1980s and into the '90s, and it is still in use mainly in transaction systems.


==History==
==History==

Revision as of 19:51, 11 July 2007

X.25 is an ITU-T standard protocol suite for connection to packet switched wide area networks using leased lines, the phone or ISDN system as the networking hardware. It defines one of many standards implemented for the data link layer, and network layer of the OSI Reference Model or the equivalent Network Access Layer of the DoD protocol model. Packet switched network was the common name given to the international collection of X.25 providers, typically the various national telephone companies. Their combined network had large global coverage during the 1980s and into the '90s, and it is still in use mainly in transaction systems.

History

X.25 was developed in the ITU (formerly CCITT) Study Group VII based upon a number of emerging data network projects. Various updates and additions were worked into the standard, eventually recorded in the ITU series of technical books describing the telecoms systems. These books were published every fourth year with different colored covers.

Architecture

The general concept of X.25 was to create a universal and global packet-switched network on what was then the bit-error prone analog phone system. Much of the X.25 system is a description of the rigorous error correction needed to achieve this.

The X.25 model was based on the concept of establishing reliable "virtual calls" through the network, with "data terminal equipment" (DTE) providing endpoints to users, which looked like point-to-point connections. Each endpoint can establish many separate virtual calls to different endpoints. For a brief period, the specification also included a connectionless datagram service, but this was dropped in the next revision.

Although X.25 predates the OSI 7 layer model, X.25 level 2 covers layer 2 of the model, and X.25 level 3 covers layer 3 of the model. X.25 level 2 is basically LAP-B and provides a reliable data path across a data link (or multiple parallel data links, multilink) which may not be reliable itself. X.25 level 3 provides the virtual call mechanisms, running over X.25 level 2. As long as level 2 does provide reliable data transmission, level 3 will provide error-free virtual calls. However, level 3 also includes mechanisms to maintain virtual calls and to signal data errors in the event that level 2 does not provide reliable data transmission. Most X.25 networks do not include the later level 3 additions which fill in the top part of OSI layer 3 (NSAP addressing, see below), so they operate at the sub-network layer (X.121 addressing) as far as the OSI 7-layer model is concerned.

The X.25 specification defines only the interface between a subscriber (DTE) and an X.25 network (DCE). It does not specify how the network operates internally—many X.25 network implementations used something very similar to X.25 or X.75 internally, but others used quite different protocols internally. X.75, a very similar protocol to X.25, defines the interface between two X.25 networks (i.e. two DCEs). The ISO equivalent protocol to X.25, ISO 8208, is the same as X.25, but additionally includes provision for two X.25 DTEs to be directly connected to each other with no X.25 network in between.

A Televideo terminal model 925 made around 1982

X.25 was developed in the era of dumb terminals connecting to host computers. Instead of dialing directly “into” the host computer — which would require the host to have its own pool of modems and phone lines, and require non-local callers to make long-distance calls — the host could have an X.25 connection to a network service provider. Now dumb-terminal users could dial into the network's local “PAD” (Packet Assembly/Disassembly facility), a gateway device connecting modems and serial lines to the X.25 link as defined by the ITU-T X.29 and X.3 standards.

Having connected to the PAD, the dumb-terminal user tells the PAD which host to connect to, by giving a phone-number-like address in the X.121 address format (or by giving a host name, if the service provider allows for names that map to X.121 addresses). The PAD then places an X.25 call to the host, establishing a virtual circuit. Note that X.25 provides for virtual circuits, so appears to be a circuit switched network, even though in fact the data itself is packet switched internally, similar to the way TCP provides virtual circuits even though the underlying data is packet switched. Two X.25 hosts could, of course, call one another directly; no PAD is involved in this case. In theory, it doesn't matter whether the X.25 caller and X.25 destination are both connected to the same carrier, but in practice it was not always possible to make calls from one carrier to another.

For the purpose of flow-control, a sliding window protocol is used with the default window size of 2. The acknowledgments may have either local or end to end significance. A D bit (Data Delivery bit) in each data packet indicates if the sender requires end to end acknowledgment. When D=1, it means that the acknowledgment has end to end significance and must take place only after the remote DTE has acknowledged receipt of the data. When D=0, the network is permitted (but not required) to acknowledge before the remote DTE has acknowledge or even received the data.

Error recovery procedures are such:

  • Level 3 Reset packets, which re-initializes the flow on a virtual circuit (but does not break the virtual circuit)
  • Restart packet, which clears down all switched virtual circuits on the data link and resets all permanent virtual circuits on the data link

Addressing and Virtual Circuits

An X.25 Modem once used to connect to the German Datex-P network.

The X.121 address consists of a three-digit Data Country Code (DCC) plus a network digit, together forming the four-digit Data Network Identification Code (DNIC), followed by the National Terminal Number (NTN) of at most ten digits. Note the use of a single network digit, seemingly allowing for only 10 network carriers per country, but some countries are assigned more than one DCC to avoid this limitation. NSAP addressing was added in the X.25(1984) revision of the specification, and this enabled X.25 to better meet the requirements of OSI Layer 3. Public X.25 networks didn't make use of NSAP addressing, but some carried it transparently.

For much of its history X.25 was used for permanent virtual circuits (PVCs) to connect two host computers in a dedicated link. This was common for applications such as banking, where distant branch offices could be connected to central hosts for a cost that was considerably lower than a permanent long distance telephone call. X.25 was typically billed as a flat monthly service fee depending on link speed, and then a price-per-packet on top of this. Link speeds varied, typically from 2400bit/s up to 2Mbits/s, although speeds above 64kbits/s were uncommon in the public networks.

Publicly-accessible X.25 networks (Compuserve, Tymnet, Euronet, PSS, and Telenet) were set up in most countries during the 1970s and 80s, to lower the cost of accessing various online services, in which the user would first interact with the network interface to set up the connection. Known as switched virtual circuits (SVC) or "virtual calls" in public data networks (PDN), this use of X.25 disappeared from most places fairly rapidly as long distance charges fell in the 1990s and today's Internet started to emerge.

A data Terminal Equipment is allowed to establish up to 4095 virtual circuits, which can be both permanent and virtual. For this purpose each packet has 12 bit virtual circuit number

X.25 (or OSI) protocol suite

A number of systems were developed to directly use the underlying packet nature of X.25, back when it appeared that X.25 would become the single universal networking system. Many of these were "private" applications, but the X.400 e-mail system was also based on X.25 as a transmission layer. The basic idea was to develop a universal set of standards for "Open Systems Interconnection (OSI)", however, industry developments eventually led down the path to Internet.

Examples of protocols in the X.25 protocol suite are:

7. Application layer: FTAM, X.400, X.500, DAP

6. Presentation layer: ISO 8823, X.226

5. Session layer: ISO 8327, X.225

4. Transport layer: TP0, TP1, TP2, TP3, TP4

3. Network layer: X.25 level 3 PLP, CLNP

2. Data link layer: X.25 level 2 LAPB, IEEE802.2 - IEEE802.5

1. Physical layer: X.21bis, EIA/TIA-232, EIA/TIA-449, EIA-530, IEEE802.3 - IEEE802.5

Obsolescence

With the widespread introduction of "perfect" quality digital phone services and error correction in modems, the overhead of X.25 was no longer worthwhile. The result was called Frame relay, essentially the X.25 protocol with the error correction systems removed, and somewhat better throughput as a result. The concept of virtual circuits is still used within ATM to allow for traffic engineering and network multiplexing.

X.25 Today

X.25 networks are still in use throughout the world, although in dramatic decline, being largely supplanted by newer layer 2 technologies such as frame relay, ISDN, ATM, ADSL, POS, and the ubiquitous layer 3 Internet Protocol. X.25 however remains one of the only available reliable links in many portions of the developing world, where access to a PDN may be the most reliable and low cost way to access the Internet. A variant called AX.25 is also used widely by amateur packet radio, though there has been some movement in recent years to replace it with TCP/IP. RACAL Paknet or Widanet as it is otherwise branded is still in operation in many regions of the world, running on an X.25 protocol base. Used as a secure wireless low rate data transfer platform, Paknet is commonly used for GPS Tracking and POS solutions currently.

X.25 packet types

Packet Type DCE -> DTE DTE -> DCE Service VC PVC
Call setup and Cleaning Incoming Call Call Request X
Call Connected Call Accepted X
Clear Indication Clear Request X
Clear Confirmation Clear Confirmation X
Data and Interrupt Data Data X X
Interrupt Interrupt X X
Interrupt Confirmation Interrupt Confirmation X X
Flow Control and Reset RR RR X X
RNR RNR X X
REJ X X
Reset Indication Reset Request X X
Reset Confirmation Reset Confirmation X X
Restart Restart Indication Restart Request X X
Restart Restart Confirmation Restart Confirmation X X
Diagnostic Diagnostic X X
Registration Registration Confirmation Registration Request X X

X.25 details

The minimum data field length the network must support is 128 octets per packet. However the network may allow the selection of the maximal length in range 16 to 4096 octets (2n values only) per virtual circuit by negotiation as part of the call setup procedure. The maximal length may be different at the two ends of the virtual circuit.

  • Data terminal equipment constructs control packets which are encapsulated into data packets. The packets are sent to the data center equipment, using LAPB Protocol.
  • Data center equipment strips the layer-2 headers in order to encapsulate packets to the internal network protocol.

Bibliography

Computer Communications, lecture notes by Prof. Chaim Zieglier PhD, Brooklyn College