# What is TN3270?

Source: https://wndsoftware.com/what-is-tn3270

TN3270 carries IBM 3270 terminal sessions over TCP/IP. Learn how TN3270E, TLS, screen models and mainframe keys fit a connection.


## 3270 describes the terminal; TN3270 carries the session

IBM 3270 applications use a screen with fields and attributes. Some fields accept input and others are protected. The user edits permitted fields locally, then sends an action such as Enter or a PF key. This differs from a character terminal that commonly sends individual keystrokes to a shell. A generic SSH or Telnet client does not implement the 3270 data stream simply because it can open a network connection.

TN3270 uses Telnet negotiation to carry 3270 traffic over TCP/IP. TN3270E extends that negotiation, including device-type and function negotiation. A host may require an LU name or particular device type. Match the host administrator’s settings rather than selecting a familiar terminal name at random. The protocol is described in [RFC 1576](https://www.rfc-editor.org/rfc/rfc1576) and [RFC 2355](https://www.rfc-editor.org/rfc/rfc2355).


## TN3270E does not mean encrypted

The terminal protocol and transport security are separate choices. Use the TLS mode and port approved by your host team, validate the server certificate, and configure a client certificate if the host requires one. Do not bypass an unexpected certificate error just to reach a sign-on screen. A terminal model or successful negotiation alone establishes neither encryption nor the required security policy.


## What the model and keys change

Common model sizes include model 2 at 24×80, model 3 at 32×80, model 4 at 43×80 and model 5 at 27×132. Some applications use larger dimensions. A size that fits your monitor still has to be accepted by the host application. Keyboard mapping is equally important: mainframe Enter, Clear, Reset, PA and PF keys are host actions, and a laptop keyboard may reach them through combinations or a command palette. See [WND Terminal screen sizes](https://wndsoftware.com/docs/screen-sizes) and [keyboard maps](https://wndsoftware.com/docs/keyboard-maps).


## What to ask before connecting

- Which host address and port should this user reach, and through which network path?
- Does it require TLS, a client certificate, an LU name or a particular terminal type?
- Which code page, screen dimensions, keyboard map and printer sessions does the application use?
- Which account and test transactions are approved for a pilot?

IBM i usually calls for TN5250 instead. Use [the IBM i guide](https://wndsoftware.com/ibm-i) for that connection. For IBM Z, use the [3270 and TN3270 emulator guide](https://wndsoftware.com/3270-terminal-emulator) to evaluate WND Terminal on Windows, Mac, Linux or a customer-hosted browser gateway.
