您现在的位置是: IT外包 ->技术支持 ->基础知识 ->
 
本文关键字: Telnet
Google
 
Minor pitfall in the Telnet Protocol
作者: 不详 | 发布时间: 2008-07-15 13:47 | 信息类别: 基础知识 | 访问人次:
评论 推荐 打印 编辑 】 【 关闭
  

  
 Network Working Group John Day

  Request for Comments: 728 Apr 1977

  NIC #40036

  A Minor Pitfall in the Telnet Protocol

  Designers of Telnet options should be aware of the following possible case in the Telnet protocol which may generate unexpected behavior on either end of the connection. Although at present none of the existing options are susceptible to this problem, it could arise in the future.

  The Telnet sync sequence causes all data to be deleted from the data stream until a data mark is encountered. Telnet control functions are not affected by the sync sequence (see page 9 of the protocol specification). A Telnet option subnegotiation could be defined such that it had an affect on the data following it in the data stream. For example, a subnegotiation might be used to indicate the terminal was to display the following data in a particular font or should receive other special treatment by the terminal. A Telnet sync sequence sent after such a subnegotiation and its data and before the subnegotiation had been processed could resuit in the subnegotiation having its affect on data other than that intended.

  Two possible solutions come to mind at once. First, the data to be affected could be included as a parameter of the subnegotiation. in other words, the data is inserted in the data stream before the IAC SE that terminates the subnegotiation. The disadvantages of this solution are both theoretical and practical. Theoretically, it is improper and not really in the spirit of the Telnet protocol design to send data as subnegotiation parameters. Practically, in a situation where this case would arise it would be equally unexpected behavior (and perhaps confusing if a human was affected) if all data except that affected by the subnegotiation was flushed.

  The second solution would be for designers of options which have such subnegotiations define a subnegotiation or other mechanism that would follow immediately after the Data Mark and nullify the affects of any offending subnegotiation. The exact semantics of such a subnegotiation would probably be very specific to the option.
评论 推荐 打印 编辑 】 【 关闭
『相关链接』
序号
标题 发布日期
1
2023-07-15 12:28:13
2
2023-07-15 10:16:57
3
2008-07-15 13:46:49
4
2008-07-15 13:46:24
5
2008-07-15 13:45:54
6
2008-07-15 13:45:31
7
2008-07-15 13:44:58
8
2008-07-15 13:44:32
9
2008-07-15 13:43:15
10
2008-07-15 13:42:51
    查看所有相关的信息...
【郑重声明】【上海IT外包服务网】 刊载此文不代表同意其说法或描述,仅为提供更多信息,也不构成任何投资或其他建议。转载需经作者本人同意并注明出处。本网站有部分文章是由网友自由上传。对于此类文章本站仅提供交流平台,不为其版权负责。如果您发现本网站上有侵犯您的知识产权的文章,请发信至 或直接电话联系: 021-58879030
请您留言
『发表评论』
匿名发表 会员ID: 密码:

上海蝶应信息科技有限公司
上海市商城路341号紫光大厦1305室 +0086-21-58878998 11394019
dieying@541help.com +0086-21-58879030HappyFreeAngel@hotmail.com
Copyright@2007 IT-WAIBAO.COM Inc.沪ICP备05039378号 版权所有2007-2010 管理员登陆