⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 this gives details of the network programming
💻
字号:
tftp testing code. The program tftptest acts as a tftp client and does the following:1. sends a request with a nonsense opcode.2. sends a RRQ with a filename that does not contain a null3. starts a file transfer (needs the file named medium to be available) and sends an invalid message where the server is expecting an ACK.Expected results:for test 1, the server should either send an error message or ignore.If the server crashes this is bad.test 2: same as 1, just trying to crash the servertest 3: server should send back first data message and the second. Once itis sent the bad ACK it can send back an error or ignore. The server should continue to send the last DATA messge ACKED, but the client is not longer around to read it - in this case the server must time out after re-sendingsome number of times (this may take up to a minute to happen).=========================================================================Testing with tftp.1. verify that the files small, medium and large can all be transferredaccurately.set the tftp options "trace" and "verbose" before the remaining tests,this allows you to see what the client is doing, and also slows thingsdown enough that you can interrupt a transfer.2. start transfer of the file large and suspend the client in the middleof a transfer (press ^C). The server should timeout waiting for the ACKs.There should be some retransmissions, but eventually the server must give upor this is bad. I"ve suggested values like 5 seconds per timeout and waiting nomore than 5 retransmissions, so this may take 25 seconds to happen (or more).3. start transfer of the file large and suspend the client in the middleof a transfer (press ^Z). The server should timeout waiting for the ACK andretransmit. now type "fg" to bring resume the tftp client program, the servermust now pick up where it left off and complete the file transfer. Make surethe file received by the client is correct!4. start tansfer of the large file on 2 clients at the same time (totest server concurrency).  Make sure both the clients are actuallytransferring at the same time. You probably need to run the clients indifferent directories, or receive to different file names, or theoutput file will be corrupt...===============Grading:Test 1 (polite clients) is worth a total of 30 points. 10 for each file.Test 4 (polite concurrent clients) is worth 15 points.Tests 2 and 3 are part of "server works properly when datagrams arelost". test 2 is worth 5 points and test 3 is worth 10 points.the tftpclient program sends garbage in an attempt to crash theserver. I would suggest doing this last. This is worth 15 points, 5points for each of the 3 tests described above. The file "expected"contains sample correct output, but you need to keep in mind that somepeople may have the server send back a TFTP error message so it ispossible this will show up in the output of testclient.  It is fine ifan error message is received by the client!   

⌨️ 快捷键说明

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