X.25
X.25 is an ITU-T standard protocol suite for packet-switched data communication in wide area networks. It was originally defined by the International Telegraph and Telephone Consultative Committee in a series of drafts and finalized in a publication known as The Orange Book in 1976.
This makes it one of the oldest packet-switching communication protocols available; it was developed several years before IPv4 and the OSI Reference Model. The protocol suite is designed as three conceptual layers, which correspond closely to the lower three layers of the seven-layer OSI model. It also supports functionality not found in the OSI network layer.
Networks using X.25 were popular during the late 1970s and 1980s with telecommunications companies and in financial transaction systems such as automated teller machines. An X.25 WAN consists of packet-switching exchange nodes as the networking hardware, and leased lines, plain old telephone service connections, or ISDN connections as physical links. However, most users have moved to Internet Protocol systems instead. X.25 was used up to 2015 and is still used by aviation, purchasable from telecoms companies. X.25 was also available in niche applications such as Retronet that allow vintage computers to use the Internet.
History
The CCITT Study Group VII began developing a standard for packet-switched data communication based upon a number of emerging data network projects. International research initiatives, particularly the work of Rémi Després, contributed significantly to the standard. A few minor changes, which complemented the proposed specification, were accommodated to enable Telenet to join the agreement. Various updates and additions were worked into the standard, eventually recorded in the ITU series of technical books describing the telecommunication systems. These books were published every fourth year with different-colored covers. The X.25 specification is only part of the larger set of X-Series.An international collection of X.25 providers, many set up by PTTs, adopted the standard for what were commonly called public data networks. Their combined network had large global coverage during the 1980s and into the 1990s. These publicly accessible X.25 networks were set up in most countries during the 1970s and 1980s to lower the cost of accessing various online services. Examples include Iberpac, TRANSPAC, Compuserve, Tymnet, Telenet, Euronet, PSS, Datapac, Datanet 1 and AUSTPAC as well as the International Packet Switched Service.
Beginning in the early 1990s, in North America, use of X.25 networks started to be replaced by Frame Relay services offered by national telephone companies. Most systems that required X.25 now use TCP/IP, however it is possible to transport X.25 over TCP/IP when necessary.
X.25 networks are still in use throughout the world. A variant called AX.25 is also used widely by amateur packet radio. Racal Paknet, now known as Widanet, is still in operation in many regions of the world, running on an X.25 protocol base. In some countries, like the Netherlands or Germany, it is possible to use a stripped version of X.25 via the D-channel of an ISDN-2 connection for low-volume applications such as point-of-sale terminals; but, the future of this service in the Netherlands is uncertain.
Additionally, X.25 is still under heavy use in the aeronautical business even though a transition to modern protocols like X.400 is without option as X.25 hardware becomes increasingly rare and costly. As recently as March 2006, the United States National Airspace Data Interchange Network has used X.25 to interconnect remote airfields with air route traffic control centers.
France was one of the last remaining countries where commercial end-user service based on X.25 operated. Known as Minitel it was based on Videotex, itself running on X.25. In 2002, Minitel had about 9 million users, and in 2011, it still accounted for about 2 million users in France when France Télécom announced it would completely shut down the service by 30 June 2012. As planned, service was terminated 30 June 2012. There were 800,000 terminals still in operation at the time.
Architecture
The general concept of the X.25 was to create a universal and global packet-switched network. Much of the X.25 system is a description of the rigorous error correction needed to achieve this, as well as more efficient sharing of capital-intensive physical resources.The X.25 specification defines only the interface between a subscriber and an X.25 network. X.75, a protocol very similar to X.25, defines the interface between two X.25 networks to allow connections to traverse two or more networks. X.25 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. The ISO protocol equivalent to X.25, ISO 8208, is compatible with X.25, but additionally includes provision for two X.25 DTEs to be directly connected to each other with no network in between. By separating the Packet-Layer Protocol, ISO 8208 permits operation over additional networks such as ISO 8802 LLC2 and the OSI data link layer.
X.25 originally defined three basic protocol levels or architectural layers. In the original specifications these were referred to as levels and also had a level number, whereas all ITU-T X.25 recommendations and ISO 8208 standards released after 1984 refer to them as layers. The layer numbers were dropped to avoid confusion with the OSI Model layers.
- Physical layer: This layer specifies the physical, electrical, functional and procedural characteristics to control the physical link between a DTE and a DCE. Common implementations use X.21, EIA-232, EIA-449 or other serial protocols.
- Data link layer: The data link layer consists of the link access procedure for data interchange on the link between a DTE and a DCE. In its implementation, the Link Access Procedure, Balanced is a data link protocol that manages a communication session and controls the packet framing. It is a bit-oriented protocol that provides error correction and orderly delivery.
- Packet layer: This layer defined a packet-layer protocol for exchanging control and user data packets to form a packet-switching network based on virtual calls, according to the Packet Layer Protocol.
For a brief period, the specification also included a connectionless datagram service, but this was dropped in the next revision. The "fast select with restricted response facility" is intermediate between full call establishment and connectionless communication. It is widely used in query-response transaction applications involving a single request and response limited to 128 bytes of data carried each way. The data is carried in an extended call request packet and the response is carried in an extended field of the call reject packet, with a connection never being fully established.
Closely related to the X.25 protocol are the protocols to connect asynchronous devices to an X.25 network: X.3, X.28 and X.29. This functionality was performed using a packet assembler/disassembler or PAD.
User device support
X.25 was developed in the era of computer terminals connecting to host computers, although it also can be used for communications between 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”, a gateway device connecting modems and serial lines to the X.25 link as defined by the 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. The PAD then places an X.25 call to the host, establishing a virtual call. Note that X.25 provides for virtual calls, 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 connections 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. A D bit in each data packet indicates if the sender requires end to end acknowledgement. When D=1, it means that the acknowledgement 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 to acknowledge before the remote DTE has acknowledged or even received the data.
While the PAD function defined by X.28 and X.29 specifically supported asynchronous character terminals, PAD equivalents were developed to support a wide range of proprietary intelligent communications devices, such as those for IBM System Network Architecture.
Error control
Error recovery procedures at the packet layer assume that the data link layer is responsible for retransmitting data received in error. Packet layer error handling focuses on resynchronizing the information flow in calls, as well as clearing calls that have gone into unrecoverable states:- Level 3 Reset packets, which re-initializes the flow on a virtual call.
- Restart packet, which clears down all virtual calls on the data link and resets all permanent virtual circuits on the data link.
Addressing and virtual circuits
VC may be established using X.121 addresses. The X.121 address consists of a three-digit data country code plus a network digit, together forming the four-digit data network identification code, followed by the national terminal number 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. Networks often used fewer than the full NTN digits for routing, and made the spare digits available to the subscriber where they could be used to identify applications or for further routing on the subscribers networks.
NSAP addressing facility was added in the X.25 revision of the specification, and this enabled X.25 to better meet the requirements of OSI Connection Oriented Network Service. Public X.25 networks were not required to make use of NSAP addressing, but, to support OSI CONS, were required to carry the NSAP addresses and other ITU-T specified DTE facilities transparently from DTE to DTE. Later revisions allowed multiple addresses in addition to X.121 addresses to be carried on the same DTE-DCE interface: Telex addressing, PSTN addressing, ISDN addressing, Internet Protocol addresses, and local IEEE 802.2 MAC addresses.
PVCs are permanently established in the network and therefore do not require the use of addresses for call setup. PVCs are identified at the subscriber interface by their logical channel identifier. However, in practice not many of the national X.25 networks supported PVCs.
One DTE-DCE interface to an X.25 network has a maximum of 4095 logical channels on which it is allowed to establish virtual calls and permanent virtual circuits, although networks are not expected to support a full 4095 virtual circuits. For identifying the channel to which a packet is associated, each packet contains a 12 bit logical channel identifier made up of an 8-bit logical channel number and a 4-bit logical channel group number. Logical channel identifiers remain assigned to a virtual circuit for the duration of the connection. Logical channel identifiers identify a specific logical channel between the DTE and the DCE, and only has local significance on the link between the subscriber and the network. The other end of the connection at the remote DTE is likely to have assigned a different logical channel identifier. The range of possible logical channels is split into 4 groups: channels assigned to permanent virtual circuits, assigned to incoming virtual calls, two-way virtual calls, and outgoing virtual calls. The ranges allowed a subscriber to be configured to handle significantly differing numbers of calls in each direction while reserving some channels for calls in one direction. All International networks are required to implement support for permanent virtual circuits, two-way logical channels and one-way logical channels outgoing; one-way logical channels incoming is an additional optional facility. DTE-DCE interfaces are not required to support more than one logical channel. Logical channel identifier zero will not be assigned to a permanent virtual circuit or virtual call. The logical channel identifier of zero is used for packets which don't relate to a specific virtual circuit.
Billing
In public networks, X.25 was typically billed as a flat monthly service fee depending on link speed, and then a price-per-segment on top of this. Link speeds varied, typically from 2400 bit/s up to 2 Mbit/s, although speeds above 64 kbit/s were uncommon in the public networks. A segment was 64 bytes of data, charged to the caller. Calls invoking the Fast Select facility would generally attract an extra charge, as might use of some of the other X.25 facilities. PVCs would have a monthly rental charge and a lower price-per-segment than VCs, making them cheaper only where large volumes of data are passed.X.25 packet types
X.25 details
The network may allow the selection of the maximal length in range 16 to 4096 octets 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 circuit-terminating equipment, using LAPB Protocol.
- Data circuit-terminating equipment strips the layer-2 headers in order to encapsulate packets to the internal network protocol.
X.25 facilities
- Essential facilities;
- Additional facilities;
- Conditional facilities;
- Mandatory facilities; and,
- Optional facilities.
- Subscription only;
- Subscription followed by dynamic invocation;
- Subscription or dynamic invocation; and,
- Dynamic invocation only.
X.25 protocol versions
The user facilities and other features supported by each version of X.25 and ISO/IEC 8208 have varied from edition to edition. Several major protocol versions of X.25 exist:
- CCITT Recommendation X.25 Orange Book
- CCITT Recommendation X.25 Yellow Book
- CCITT Recommendation X.25 Red Book
- CCITT Recommendation X.25 Blue Book
- ITU-T Recommendation X.25 White Book
- ITU-T Recommendation X.25 Grey Book
In addition to the CCITT/ITU-T versions of the protocol, four editions of ISO/IEC 8208 exist:
- ISO/IEC 8208:1987, First Edition, compatible with X.25 and
- ISO/IEC 8208:1990, Second Edition, compatible with 1st Ed. and X.25
- ISO/IEC 8208:1995, Third Edition, compatible with 2nd Ed. and X.25
- ISO/IEC 8208:2000, Fourth Edition, compatible with 3rd Ed. and X.25