TN3270E
What TN3270E adds to classic TN3270: device names, printers, response handling and a data header.
TN3270E is the extended version of TN3270, defined in RFC 2355. Almost every current host supports it.
Classic TN3270
Classic TN3270 (RFC 1576) negotiates three Telnet options: terminal type, binary and end of record. After that the connection is a plain stream of 3270 data. It has no way to ask for a specific LU, to start a printer session or to pass SNA responses.
What TN3270E adds
TN3270E is its own Telnet option (number 40). During negotiation the client and host agree on:
- Device type (the terminal type, for example
IBM-3278-2-E, orIBM-3287-1for a printer). - Device name: the client can CONNECT to a named LU or LU pool (see LU names).
- Functions that are turned on: BIND-IMAGE, RESPONSES, SYSREQ.
After that every data message starts with a 5-byte header:
byte 1 data type (3270-DATA, SCS-DATA, RESPONSE, BIND-IMAGE,
UNBIND, NVT-DATA, REQUEST, SSCP-LU-DATA, PRINT-EOJ)
byte 2 request flag
byte 3 response flag
bytes 4-5 sequence number
The data type is what lets one connection carry screens, printer data and control messages.
What you get from it
- Printer sessions (3287 printers, SCS or 3270 data) tied to your terminal.
- Specific LU names, useful when the host maps an LU to a printer, a device profile or an application.
- SYSREQ handled cleanly. See Attn and SysReq over TN3270: why the key does nothing.
- Responses, so the host can know that a screen or print job was received.
When to turn it off
If a host refuses the connection or behaves oddly, try TN3270E off, or classic TN3270. Older servers, some gateways and some test hosts only speak the classic protocol.