X.25

From Wikipedia, the free encyclopedia

X.25 is an ITU-T standard protocol suite for wide area networks using the phone or ISDN system as the networking hardware. It defines one of many standards implemented for the Physical, Data Link, and Network layers of the OSI network 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.

Contents

[edit] History

X.25 was developed in the ITU 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.

[edit] Architecture

A Televideo terminal model 925 made around 1982
A Televideo terminal model 925 made around 1982

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, a system known as LAP-B. The X.25 model was based on the concept of establishing "virtual calls" through the network, with "data terminal equipment" (DTE) providing endpoints to users, which looked like point-to-point connections.

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 acknowledgements may have either local or end to end significance. When D=0, it means that the acknowledge took place between the DTE and the network. When D=1, it means that the acknowledgement took place from the remote DTE.

Error recovery procedures are such:

  • Reset packets, which re-initializes a virtual circuit
  • Restart the packet, which resets all active virtual circuits.

[edit] Addressing and Virtual Circuits

An X.25 Modem once used to connect to the German Datex-P network.
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.

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, and then a price-per-packet on top of this. Speeds increased during the years, typically up to 48 or 96 kbit/s.

Publicly-accessible X.25 networks (Compuserve, Tymnet, Euronet, 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

[edit] 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 PLP, CLNP

2. Data link layer: LAPB, IEEE802.2 - IEEE802.5

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

[edit] 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.

[edit] 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.

[edit] 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

[edit] X.25 details

The maximal field length the network can support is 128 octets. However the network may allow the selection of the maximal length in range 16 to 4096 octets. The length may vary on two ends of the 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.

[edit] Related Technologies

[edit] External links

[edit] Bibliography

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