Use of Telnet Synch sequence (1)

Source: Internet
Author: User

Some Telnet commands are used to complete some configuration work during some use of the Telnet protocol. Today, we will explain the related content of the Telnet Synch sequence. First, let's take a look at the content of the Telnet command. The Telnet command data mark (DM) is the synchronization MARK in the DATA stream. It indicates that any specific signal has already occurred and the received DATA can be returned to the normal state of processing other DATA. Synch is sent over TCP. It is sent together with the emergency mark and the last DM mark. Emergency signals may be drowned when some Synch signals are continuously and rapidly sent. It is impossible to count emergency signals, because this number may be smaller than or equal to the number already sent. In normal mode, DM is not an operation; in an emergency model, it indicates the end of the emergency process. If the TCP indicates that DM is found before the end of the emergency data, Telnet should continue to operate the data stream until DM is encountered. If TCP indicates that there is some urgent data after DM, it is only because it is a string of Synch. Telnet should continue to operate the data stream until DM is encountered.

"Meaningful" signals are defined as Telnet standard definitions for IP addresses, AO and AYT, but not EC or EL. If so, local simulation of these standard definitions; all other Telnet commands. signals defined by other sites that do not need to drag data streams. The other role of the Synch command is to discard all characters that are not included in the Telnet command between the receiver and the sender. If necessary, this mechanism is specified as a standard method to clean up the data path. For example, if a terminal user transfers an AO command, the server that receives the command should return a Synch to the user if the server provides this function.

Finally, similar commands are required for other protocols that use the Telnet protocol, just as TCP emergency signals are needed for their use. This can be achieved by using [IP, Synch. For example, assume that some other protocols that use Telnet define the stop string of the AO command. Imagine that the user of this Protocol wants the server to process the stop string, but the connection is blocked because the server is processing other commands. The user should make the system do the above work: Send the Telnet IP character; send the Telnet SYNC string, that is, send DM as the unique string in TCP emergency mode sending operation. Send the string STOP and the Telnet DM command for other protocols.

User or process) You must resend the Telnet Synch sequence to ensure that the Telnet IP address reaches the server's Telnet interpreter. "Urgent" will wake up the Telnet process; IP should wake up more advanced processes. The NVT display and the keyboard NVT display have an unspecified line width and page size, and can generate characters representing ASCII codes.

For 33 control characters and 128 other unused characters, it is specified to display:

NULL (NUL) 0 no operation;

Line Feed (LF) 10 will be displayed to the same vertical position in the next row.

Carriage Return (CR) 13 is displayed at the left boundary of the current row.

In addition, the following characters should also be defined, but this is not necessary), they also play a role in display. Neither party of Telnet assumes that the other party will take the following actions during receiving or transmitting:

BELL (BEL) 7 rings or gives a visual signal, which does not move the display position ).

Back Space (BS) 8 is displayed to move to the left position.

Horizontal Tab (HT) 9 is displayed to the next Tab. No one has yet specified how to determine where the position of the primary table is located.

Horizontal Tab (HT) 9 moves to the next vertical Tab. No one has yet specified how to determine where the position of the primary table is located.

Form Feed (FF) 12 displays the starting position of the next page and maintains the same horizontal position. All current Code does not display NVT for any operation.

The cr lf sequence is located at the left boundary of the next row. However, many systems and terminals do not separate these two characters and have to do some work to simulate their functions. For example, some terminals do not have CR independent from LF, but on these terminals, the CR function can be simulated through the back key .) Therefore, cr lf sequences are bound to use their compound functions as new line markers; cr nul must be used when you want to enter only one carriage return; otherwise, CR alone should be avoided. This rule allows the system that must decide whether to perform a "new line" operation or multiple rollback operations to ensure that the Telnet stream operation after a single character is followed by a CR is included and the correct decision is made. Note: cr lf or cr nul requires both parties, which ensures the symmetry of NVT. Even if the characters are not sent to the actual terminal in some cases, for consistency reasons, the Protocol requires that a NUL be inserted after CR without LF. Conversely, after receiving a NUL after CR, it should be discarded from the data stream instead of used for NVT character ing.

The NVT has a keyboard, a combination of keys, or a sequence of keys to generate all 128 characters. Note: although some of them have no effect on NVT display, NVT can also generate them. In addition, the NVT keyboard should generate the following characters that are meaningful but not required. The actual code for these characters is assigned in the Telnet command section because they are provided as common characters, even if the data stream is interpreted as some other character sets.

Telnet Synch sequence this key allows the user to clear the data channel to the other party. The activation of this key causes DM transmission and also causes TCP emergency signals to be sent at the same time. The meaning of DM-emergency signals is as defined previously.

Break (BRK) is provided because it is not a member of the ASCII character set. It indicates that the Break key and the Attention key are pressed. However, please note that it is defined as 129th Codes instead of IP standard.

Interrupt Process (IP) pause, Interrupt, discard or terminate the execution of NVT connection processes. Similarly, it is the signal used by the Telnet protocol.

Abort Output (AO) allows the current process to run until it is terminated, but does not send the result to the user. Similarly, send the Telnet Synch sequence to the user.

Are You There (AYT) back to NVT some visible characters.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.