readme

来自「个程序实现了距离矢量路由算法,又称Bellman-Ford算法,使用java编程」· 代码 · 共 46 行

TXT
46
字号
This package simulates the protocols of Chapter 3 of "Computer Networks 3/e"by Andrew S. Tanenbaum, published by Prentice Hall PTR, 1996.  It was writtenby Andrew S. Tanenbaum and may be freely distributed.The simulator is compiled by just typing 'make'.  If you want to use gccinstead of cc, change the lineCC=cctoCC=gccin Makefile.It is executed by giving a command line containing the simulation parameters.The command line has six decimal parameters, as follows:	sim  protocol  events  timeout  pct_loss  pct_cksum  debug_flagswhere        protocol tells which protocol to run, e.g. 5        events tells how long to run the simulation        timeout gives the timeout interval in ticks        pct_loss gives the percentage of frames that are lost (0-99)        pct_cksum gives the percentage of arriving frames that are bad (0-99)        debug_flags enables various tracing flags:		1	 frames sent 		2	 frames received 		4	 timeouts 		8	 periodic printout for use with long runs For example	sim 6 100000 40 20 10 3will run protocol 6 for 100,000 events with a timeout interval of 40 ticks,a 20% packet loss rate, a 10% rate of checksum errors (of the 80% that getthrough), and will print a line for each frame sent or received.  Becauseeach peer process is represented by a different UNIX process, there is(quasi)parallel processing going on.  This means that successive runs willnot give the same results due to timing fluctuations.A set of possible student exercises is given in the file exercises.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?