-
用C语言实现的GBN协议函数库和测试程序
滑动窗口协议,也称为回退N步协议(Go-Back-N,GBN)中,允许发送方发送多个分组(当有多个分组可用时)而不需等待确认,但它受限于在流水线
中为未确认的分组数不能超过某个最大允许数N。滑动窗口协议是TCP使用的一种流量控制方法,此协议能够加速数据的传输。
只有在接收窗口向前滑动时(与此同时也发送了确认),发送窗口才有可能向前滑动。
收发两端的窗口按照以上规律不断地向前滑动,因此这种协议又称为滑动窗口协议。
当发送窗口和接收窗口的大小都等于1时,就是停止等待协议。
当发送窗口大于1,接收窗口等于1时,就是回退N步协议。
当发送窗口和接收窗口的大小均大于1时,就是选择重发协议。
协议中规定,对于窗口内未经确认的分组需要重传。这种分组的数量最多可以等于发送窗口的大小,即滑动窗口的大小n减去1(因为发送窗口不可能大于(n-1),起码接收窗口要大于等于1)。
2.工作原理
- 2023-04-29 17:45:03下载
- 积分:1
-
Towers of Hanoi
河内塔算法的应用。
- 2022-01-24 18:47:57下载
- 积分:1
-
Very fast calculation of Newton method algorithm for C++ programs, hoping to giv...
很好很快的计算Newton法的C++程序算法,希望能给大家带来帮助-Very fast calculation of Newton method algorithm for C++ programs, hoping to give us some help
- 2022-05-28 08:40:04下载
- 积分:1
-
回溯线搜索
此程序通过凸优化中的armigo规则的回溯线搜索方法来寻找函数的最佳值。对于输入,此程序是全局aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- 2022-01-26 03:26:17下载
- 积分:1
-
C语言数值计算中常用的函数,如sin(x),cos(x)的实现方式的源代码。...
C语言数值计算中常用的函数,如sin(x),cos(x)的实现方式的源代码。-Codes for functions which are used frequently in numerical calculation ,such as sine function,cosine function, written in C language
- 2022-02-06 23:03:08下载
- 积分:1
-
这是一个用于雷达航迹处理的kalman滤波程序
这是一个用于雷达航迹处理的kalman滤波程序-This is a deal for the radar track of kalman filtering procedures
- 2022-05-29 01:08:49下载
- 积分:1
-
fortran version of singular value decomposition subroutine, suitable for meteoro...
fortran版奇异值分解子程序,适合气象统计计算。-fortran version of singular value decomposition subroutine, suitable for meteorological statistical computing.
- 2022-06-27 17:25:01下载
- 积分:1
-
并行随机数生成方法
本程序利用mpi并行生成随机数,此方法利用线性同余算法,是一个主从模式的线性同余方法,可以并行生成多个随机数,程序可在Linux下运行。
- 2023-08-08 19:05:04下载
- 积分:1
-
蚁群算法,用户可以修改程序中的宏定义来设置初值
蚁群算法,用户可以修改程序中的宏定义来设置初值-Ant colony algorithm, the user can modify the program in the macro definition to set the initial value
- 2022-01-21 22:39:08下载
- 积分:1
-
C语言版本的矩阵库,目前世界上最流行的三大矩阵运算库之一,这是修正版本,我自己改了几个地方(按照官方要求)...
C语言版本的矩阵库,目前世界上最流行的三大矩阵运算库之一,这是修正版本,我自己改了几个地方(按照官方要求)-C language edition matrix library , now in the world the most popular three greatest matrixeses carries to calculate the one of the library , this is to revises the edition, myself changed a few places( request according to the authorities)
- 2023-07-06 01:05:04下载
- 积分:1