|
Protocol translation software provides transparent translation between systems running different protocols. The software supports two-way virtual terminal protocol translation between nodes running X.25, LAT, and Telnet.
This chapter describes the protocol translation commands. For protocol translation configuration information and examples, see the Communication Server Configuration Guide.
To cause incoming LAT, TCP, or X.25 requests for connections to a specified destination address or host name to result in automatic conversion to the specified outgoing connection type, use the translate global configuration command. The connection request to the address specified is executed.
translate protocol incoming-address [inoptions] protocol outgoing-address [outoptions]Protocol Options--protocol incoming-address and protocol outgoing-address
Telnet/TCP Translation Options--inoptions and outoptions (Optional)
LAT Translation Options--inoptions and outoptions
X.25 Translation Options--inoptions and outoptions
cud c-u-data | Sends the specified Call User Data (CUD) text (c-u-data) as part of an outgoing call request after the protocol identification bytes. |
profile profile | Causes the X.3 PAD parameters to be set as defined in the profile created by the x29 profile subcommand. |
reverse | Provides reverse charging for X.25 on a per-call rather than a per-interface basis. |
printer | Supports LAT and X.25 printing over a TCP network among multiple sites. Provides an "interlock mechanism" between the acceptance of an incoming X.25 connection and the opening of an outgoing LAT or TCP connection. The option causes the communication server to delay the confirmation of the incoming X.25 call request until after the outgoing protocol connection (to TCP or LAT) has been successfully established. An unsuccessful outgoing connection attempt results in the TCP connection to the communication server being refused, rather than being confirmed and cleared, which is the default behavior. Note that using this option will force the global option quiet to be applied to the translation. |
pvc number | Specifies that the incoming connection (identified by the argument number) is actually a permanent virtual circuit (PVC). |
Global Translation Options--global-options (Optional)
None
Global Configuration
Table 1-1 provides a visual aid for understanding how to use the translate command.
Incoming Protocol Options | Outgoing Protocol Options | Global Options | |||
---|---|---|---|---|---|
translate | protocol inaddress | [inoptions] | protocol outaddress | [outoptions] | [globaloptions] |
lat servicename | unadvertised | lat servicename | node nodename | access-class number | |
port portname | max-users number | ||||
local | |||||
login | |||||
x25 x121 address | cud c-u-data | x25 x121 address | cud c-u-data | quiet | |
profile profile | profile profile | swap | |||
reverse | reverse | ||||
printer | |||||
pvc number | |||||
tcp IPaddress | port portnumber | tcp IPaddress | port portnumber | ||
binary |
As the table illustrates, you define the protocol translation connections--both incoming and outgoing--by choosing a protocol keyword and supplying the appropriate address or service name. The protocol connection information is followed by optional features for that connection, also as appropriate. For example, the binary option is only appropriate with TCP/IP connections. The global options, in general, apply to all the connection types, but there are exceptions. The swap keyword, for example, is for X.25 to TCP translations only. See the examples for more explanation on how to enter this command.
The following example illustrates a simple X.25 to TCP translation command. Packets coming in X.25 address 652365123 arrive via PVC 1 and are translated to TCP packets and transmitted out IP address 131.108.1.1.
translate
x25 652365123
pvc 1
tcp 131.108.1.1
incoming
option outgoing
The following example illustrates incoming LAT to outgoing TCP translations. The unadvertised keyword prevents broadcast of service advertisements to other servers. Outgoing translated packets are transmitted out IP address rubble via TCP port 4005.
translate
lat pt-printer1
unadvertised
tcp rubble port 4005
incoming option outgoing option
The following example illustrates a more complex configuration that calls an X.29 profile and swaps the default PAD operation of the protocol translator to that of an X.25 host.
x29 profile fullpackets 2:0 3:0 4:100 7:21
translate
x25 217536124
profile fullpackets
tcp rubble
port 4006
swap
incoming option outgoing option global
The following example illustrates the use of the TCP incoming protocol option printer for an incoming TCP connection.
translate tcp 160.89.32.250 printer x25 5678
incoming option outgoing
The following example illustrates the use of the X.25 incoming protocol option printer for an incoming X.25 connection.
translate x25 55555 printer tcp 131.108.1.1
incoming option outgoing
x29 profile
Use the show x25 pad command to display information
x25 padThis command has no arguments or keywords.
EXEC
The following is a sample display from the show x25 pad output.
sloth# show x25 pad
tty2, Incoming PAD connection
Total input: 61, control 6, bytes 129. Queued: 0 of 7 (0 bytes).
Total output: 65, control 6, bytes 696.
Flags: 1, State: 3, Last error: 1
ParamsIn: 1:1, 2:0, 3:2, 4:1, 5:1, 6:0, 7:21,
8:0, 9:0, 10:0, 11:14, 12:0, 13:0, 14:0, 15:1,
16:127, 17:21, 18:18, 19:0, 20:0, 21:0, 22:0,
ParamsOut: 1:1, 2:1, 3:2, 4:1, 5:0, 6:0, 7:4,
8:0, 9:0, 10:0, 11:14, 12:0, 13:0, 14:0, 15:0,
16:127, 17:21, 18:18, 19:0, 20:0, 21:0, 22:0,
LCI: 1, State: D1, Interface: Serial0
Started 0:11:10, last input 0:00:16, output 0:00:16
Connected to 313700540651
Window size input: 7, output: 7
Packet size input: 512, output: 512
PS: 1 PR: 5 ACK: 5 Remote PR: 1 RCNT: 0 RNR: FALSE
Retransmits: 0 Timer (secs): 0 Reassembly (bytes): 0
Held Fragments/Packets: 0/0
Bytes 696/129 Packets 65/61 Resets 0/0 RNRs 0/0 REJs 0/0 INTs 0/0
Table 1-2 describes significant fields shown in the first line of output in the display.
Field | Description |
---|---|
Total input/output | Displays the number of packets received or sent for this connection. |
Control | Displays the number of packets with Qbit set (X.29 control packets). |
Bytes | Displays the number of bytes in each direction. |
Queued | Displays the number of unread packets waiting for this connection. |
Waiting to send | Displays the local data packetized bit not sent (part of a line). |
Flags, state, last error | Displays data useful only to Cisco, for detecting errors and tracing initialization status. |
Params In | Displays the parameters read from the PAD at the start of the connection. |
ParamsOut | Displays the active X.3 parameters. LCI data displays the X.25 state of the connection. |
The line beginning LCI: | Starts a display of the status of the X.25 virtual circuit associated with this PAD connection, and is the same display seen when the show x25 vc command is executed. |
|