作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (17): 52-54. doi: 10.3969/j.issn.1000-3428.2011.17.016

• 网络与通信 • 上一篇    下一篇

基于有限状态机的UDP传输设计

张 菁   

  1. (长安大学电子与控制工程学院,西安 710061)
  • 收稿日期:2011-03-24 出版日期:2011-09-05 发布日期:2011-09-05
  • 作者简介:张 菁(1972-),女,讲师、博士研究生,主研方向: 网络传输,信息处理

UDP Transmission Design Based on Finite State Machine

ZHANG Jing   

  1. (School of Electronic and Control Engineering, Chang’an University, Xi’an 710061, China)
  • Received:2011-03-24 Online:2011-09-05 Published:2011-09-05

摘要: 针对传统用户数据报协议(UDP)传输可靠性低的问题,提出一种利用有限状态机(FSM)控制UDP传输数据的设计方法。为传输过程中的通信双方分别设计不同的状态;构造数据包格式,每个数据包携带命令字以表明不同状态;增加数据包校验位,保证数据传输的一致性;通过正向替换和逆向替换消除并恢复数据中存在的保留关键字;在发送过程中采用自动重发机制和请求重发机制,保证数据包正常有序的传输;通过增加包头包尾使数据包大小可变,以增强数据传输的灵活性。实验结果证明了该设计方法的有效性。

关键词: 用户数据报协议, 有限状态机, 自动重发, 请求重发, 正向替换, 逆向替换

Abstract: To remedy the defect of User Datagram Protocol(UDP) transmission in reliability, this paper proposes a design method using Finite State Machine(FSM) to control UDP transmission data. The different states are designed for the two sides of the transmission process. The format of data packet is conceived, each data packet carries the a command word to respect the different state. The data packet increased checking parity can ensure data consistency in transmission, to remove and recover a reserved keyword of data though the positive replacement and reverse replacement. It uses the automatic retransmission mechanism and the request retransmission mechanism to ensure normal and orderly transformation in the process of sending data, the data packet may become a variable-size packet thought increasing the header and the ender, which enhance the flexibility of data transmission. Experimental results prove the validity of the design method.

Key words: User Datagram Protocol(UDP), Finite State Machine(FSM), automatic retransmission, request retransmission, positive replacement, reverse replacement

中图分类号: