资源简介
针对流水线差错恢复"go back n“是根据出现丢失和过度时延分组时发送方的行为而得出的
代码片段和文件信息
#include
#include
#include
#include “emulator.h“
#include “gbn.h“
#define bool int
#define true 1
#define false 0
/* ******************************************************************
Go Back N protocol. Adapted from
ALTERNATING BIT AND GO-BACK-N NETWORK EMULATOR: VERSION 1.1 J.F.Kurose
Network properties:
- one way network delay averages five time units (longer if there
are other messages in the channel for GBN) but can be larger
- packets can be corrupted (either the header or the data portion)
or lost according to user-defined probabilities
- packets will be delivered in the order in which they were sent
(although some can be lost).
Modifications (6/6/2008 - CLP):
- removed bidirectional GBN co
- 上一篇:C++实现学生选课系统
- 下一篇:VC++环境下从串口读取数据绘制实时曲线图
评论
共有 条评论