Git Product home page Git Product logo

stop_wait_py's Introduction

停等协议的设计与实现实验代码

这是一个精巧的停等协议模拟器!

介绍

所谓停等协议,就是对于客户端程序来说,如果发送了一个数据报但没有收到服务器的确认,就停止发送,等待服务端的确认信息

而之所以要这样做,是因为网络传输条件往往不是理想的,会出现各种各样的差错,如发送方数据异常,发送方数据迟到,接收方处理异常等等

为了让大家更加深刻地理解停等协议的工作原理和重要性,我提供了一个能自定义丢包概率的停等协议模拟器。

使用方法

  1. 在您的计算机上安装 Python 3.12.3
  2. 克隆本仓库的代码
  3. 打开克隆下来的文件夹,编辑 lost_packet.ini 文件,自定义本停等协议模拟器所使用的的丢包概率,默认概率为 0.3
  4. 最后,运行 stop_wait_fin.py 文件,即可体验本停等协议模拟器的全部功能!

关于

本项目是吉首大学2022级学生李悠然的计算机网络实验作业(第二部分)

本项目使用 VSCode 编辑器进行开发

作者的学号:2022405532

谢谢使用,祝万事如意

stop_wait_py's People

Contributors

west-pavilion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.