Groups
Groups
Sign in
Groups
Groups
高性能服务器研发与运营邮件列表
Conversations
About
Send feedback
Help
一个自动重发机制(ARQ)编码的疑问
2 views
Skip to first unread message
Kouga
unread,
Nov 13, 2009, 10:18:32 PM
11/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev4s...@googlegroups.com
这个问题可能比较白痴,所以觉得白痴的同学就不必继续BS我了。
目前需要用串口连接2台计算机,使用自己的编码格式进行通信。为了方便部署,我决定做一个串口代理,分别放到两台计算机上,整个系统的层次如下:
TCP代理层: 接受连接 转发数据等等
ARQ数据包管理层: 负责自动重发和端到端数据同步
HDLC编码解码层:负责将数据包用HDLC编码
串口连接层:这个就是所谓的“物理层”了~
现在出问题的是 ARQ 的 同步。
ARQ需要保证自己和对方的初始化状态一致,而且由于下层链路只建立1条
(串口上再使用多重链路会大大降低效率,多连接由TCP代理层负责)
现在问题是,如何保证以下2点:
1、ARQ下层链路只存在一条;
2、在两端程序无论哪个重置或先后启动后,链路能够迅速建立并同步;
--
签名是什么东西??
Reply all
Reply to author
Forward
0 new messages