Overview
X.25 describes an interface between a DTE (Date Termination Equipment) and a DCE (Data Communication Equipment) and by implication a set of DTEs communicating with each other via their respective DCEs which have some unspecified primitive capability to communicate.
X.25 Network Providers.
Such networks typically have "X.3 pads" which play the role of a DTE to X.25 and provide dial-up access to the net by start-stop terminals.
Tymnet, Uninet and Telenet all provide X.25 DCEs and X.3 PADs.
This section provides the precise map between the "symbol stream" terminology given in (symbol-stream) and the terminology used in the X.25 recommendation. This information is necessary to integrate the design of two peers, one one whose specifications are in terms of symbol streams and the other in the X.25 terminology.
In this section technical terminology defined by the X.25 recomendation is between square brackets "[]".
Any valid sequence of X.25 [data packets] may be expressed by some symbol stream and any symbol stream may be expressed by some valid sequence of x.25 [data packets].
Bit streams between other symbols are transmitted as a sequence of zero or more [full data packets with the M=1 and D=0] followed by a [partial data packet]. Each of the [packets has Q=1] iff the bit stream is preceeded by a qualifier. [The M bit of the partial packet is 1] iff the stream is followed by a combo mark. [The D bit of the partial record is 1] iff the bit stream is followed by a delivery mark. {Each packet sequence resulting from such a bit stream is a [complete packet sequence]}.
Bit streams between other symbols are transmitted as a sequence of zero or more [full data packets with the M=1 and D=0] followed by a [data packet] LDP. Each of these [packets has Q=1] iff the bit stream is preceeded by a qualifier. If the bit stream was not empty, LDP isn't empty. {It might be full.} [LDP's M bit is 1] iff the stream is followed by a combo mark. [LDP's D bit is 1] iff the bit stream is followed by a delivery mark. {Each packet sequence resulting from such a bit stream is a [complete packet sequence]}.
As each complete packet sequence arrives it is transformed into a bit stream preceeded by a qualifier if the first packet has Q=1, and followed by bare record mark if M=0 & D=0, by a bare delivery mark if M=0 & D=1 or by a combo mark if M=1 & D=1; where M and D are from the last packet.
Section 3. of KL115-02 refers exclusively to the upper, our outer level. Section 5. tells how a particular X.25 session at the outer level is used to access a real DCE and to support HDLC protocol with that DCE. Being careful to use the official CCITT terminology, the mapping between the levels is as follows:
A port is breifly mapped to just one channel at a time. Only one port is mapped to a channel at one time.
A channel is a long term member of just one channel set.
A channel is permantly bound to just one interface.
A channel set is permantly bound to just one interface box.
An interface is bound to just one interface box.
Channels
X.25 defines these disjoint channel states:
It is also easy to dynamically map such circuit keys onto channels. This may provide improved abstraction and indirect economies.
If TP is a key to a tandem port and 1 <= n <= 255 and P is the key to port n of TP then:
TP(65536+n;=>0) or TP(65536;P=>c;) causes P to be un-mapped.
We define, therefore, a set of logical channels. Such a set may span DCE/DTE interfaces that are served by one S1. It is desirable to be able to modify a channel set while it is "in service". This may be un-smooth.
Different channel sets are disjoint. We may choose to say that all channels belong to some channel set in which case we have a partition.
Calls to move channels from one set to another or split and combine sets. ...
There may be several operations in progress at once on XM.
{Interrogate interface state}XM(0=>c)
These domains share read-write assess to XDB. The key called 'X' above is a start key to a server domain. A server domain is devoted to a single logical channel for minutes at a time. Also shared is some structure, perhaps a super node, that stores resume keys to holders of X keys whose invocations are delayed.
3 bit out transmission counter,
3 bit in transmission counter,
pointer to newest inbound packet frame,
pointer to oldest inbound packet frame,
pointer to newest outbound packet frame,
pointer to oldest outbound packet frame.
The state code serves as as compare and swap interlock. The state code determins:
Whether there are outbound packets,
The various DCE interface states such as: r1, r2, r3; p1 : p7; d1, d2, d3.
When a server domain fails to get its lock it is because the master holds it. The server then invokes the master with a NOP operation after which the lock has been freed and the server can try again.
When the master fails to get a lock it is because some server holds it. The master then leaves the lock in a special state to alert the server that the master is waiting. The master then calls the lock domain which merely stores the resume key and becomes ready. When the server releases the lock it calls the lock domain to restart the master.
The master domain holds no locks while it does I/O. The various domains hold locks only for brief times.
establishes policy concerning call set-up and clearing signals that may traverse the logical channels,
process packets that are not associated with particular logical channels. These are interface reset, diagnostics and registration.
Programming the "Signalman LIGHTMAN 24" modem
Global Modem States
Power up and command ATZ performs the function A:=N (i.e. change the active state to the non-volatile state). Command AT&F performs A:=F. Command AT&W performs N:=A.
This information comes from page 30 of the modem manual.
After commands AT&M2 (page 28) followed by AT&W the modem is programmed (in its non-volatile state N) to respond to ON transition of DTR by dialing 9226660 as if one had typed ATDT9226660 and then enter synchronous operation upon connection.
The modem can be removed from &M2 mode by turning on the modem when DTR is already on and then commanding AT&M0.
This modem seems to want to make this signal true when is should be false such as when there is no connection to another modem.
DIP switch 2 must be on lest DCD remain on which, in turn, seems to make CTS true (or least provides a facsimily of an excuese therefore).
Then mode caused by command AT&C1 (page 25) may also be necessary for the same reason.
Even with all of these spells CTS remains true almost all of the time. I thus decided to try wiring DCD (data carrier detect, pin 8) from the modem to CTS (clrear to send, pin 5) of the 370 since that signal seems to come true at about the right time.
At this point the modem fails to produce DSR. I don't know why. This blocks progress. I wired the DTE's DTR to its own DSR. This way when DTR comes up (as the application begins) the DTE sees DSR as an immediate response.
At this point the system behaves as follows as seen by the protocol analyser at the DTE side: