資源簡介
針對流水線差錯恢復"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++環境下從串口讀取數據繪制實時曲線圖
評論
共有 條評論