摘要:本文主要介绍根据滑动窗口协议的原理,在Visual Studio 2010的平台上运用C#(CSharp)程序设计语言设计一个控制台应用程序,通过控制台模拟滑动窗口协议的工作过程,在转化为Windows窗体应用程序进行模拟。本次程序设计分为两部分:第一部分是发送方,第二部分是接收方。通过发送方和接收方之间的数据帧传输进行模拟,学习滑动窗口协议流量控制原理和方法,及滑动窗口协议的工作机制。关键词:滑动窗口协议;C#;Windows窗体;流量控制;工作机制9330
Sliding window protocol software design and implementation
Abstract: This paper describes the sliding window protocol based on the principle of a platform in Visual Studio 2010 on the use of C # (CSharp) programming language design a console application, the console simulate the working process of sliding window protocol in Windows Forms applications into process simulation. The program design is pided into two parts: the first part is the sender, and the second part is the receiver. By sending and receiving data frames transmitted between simulation and learning sliding window protocol traffic control principles and methods, and the working mechanism of the sliding window protocol.
.Keywords: Sliding window protocol;CSharp; Windows Forms;Flow Control;Working mechanism
目录
1 引言 1
1.1 滑动窗口协议的概述 1
1.2 滑动窗口协议的分类 1
1.2.1 停等协议 1
1.2.2 回退N步协议.. 2
1.2.3 选择重发协议.. 3
1.3 本次设计的任务 3
2 滑动窗口协议介绍 4
2.1 滑动窗口协议工作原理 4
2.2 滑动窗口算法 4
3 开发设计环境. 7
3.1 Microsoft Visual Studio 2010 7
3.1.1 Visual Studio 2010的发展历程 7
3.2 C# 9
3.2.1 C#的简介 9
3.2.2 C#的发展历史. 10
3.3 Windows窗体 11
4 设计方案及分析 13
4.1 滑动窗口机制总体设计及分析 13
4.2 协议选择及分析 14
4.3 发送方与接收方设计流程 14
4.3.1 发送方程序 15
4.3.2 接收方程序 17
5 程序测试 22
5.1 控制台应用程序测试 22
5.2 Windows窗体应用程序测试 25
6 总结 29
6.1 程序改进与完善 29
6.2 设计总结 29
7 谢辞 30
8 参考文献 32
附录 33
1 引言
随着网络时代的不断发展,用户数量和对信息量的需求急剧增加,网络的负荷越来越重。此时,我们急需一种合适的机制来控制网络流量,减少网络拥堵的概率,提高传输效率。于是,一种名为滑动窗口的协议被开发了出来。
滑动窗口协议,基于TCP的一种流量控制方法。滑动窗口协议允许发送方在停止并等待确认之前可以连续发送多个分组。由于发送方不需要每发一个分组数据就停下来等待确认,因此该协议可以加快数据的传输速度。
- 上一篇:VC++opencv静止背景下运动视频对象的分割
- 下一篇:Matlab视频序列中的目标跟踪技术研究
-
-
-
-
-
-
-
十二层带中心支撑钢结构...
乳业同业并购式全产业链...
当代大学生慈善意识研究+文献综述
java+mysql车辆管理系统的设计+源代码
酸性水汽提装置总汽提塔设计+CAD图纸
中考体育项目与体育教学合理结合的研究
杂拟谷盗体内共生菌沃尔...
大众媒体对公共政策制定的影响
电站锅炉暖风器设计任务书
河岸冲刷和泥沙淤积的监测国内外研究现状