Giter VIP home page Giter VIP logo

csma-cd's Introduction

项目简介:

假定主机A、B同在一个10Mb/s的以太网段上,A、B共享一条通信信道,主机A、B通过CSMA/CD协议向通信信道上发送10个数据帧,设传播时延为256比特时间,不考虑传输时延。

要求:

  1. 使用线程模拟主机A、B,使用一个变量来模拟共享通道;
  2. 发送数据之前先监听96比特时间;
  3. 传输过程中如果发生冲突,冲突次数最多为10次,超过十次丢弃该帧,如果不超过10次,则发送48比特的拥塞信号,之后延迟一个随机时间(该时间利用指数后退算法得出),重新发送数据帧;
  4. 输出相关提示信息。

实验目的:

熟悉并掌握CSMA/CD协议的实现过程。

实验环境:

C++开发环境或Java开发环境。

可行性论证:

CSMA/CD协议即带冲突检测的载波监听多路访问技术(载波监听多点接入/碰撞检测)。在传统的共享以太网中,所有的节点共享传输介质。如何保证传输介质有序、高效地为许多节点提供传输服务,就是以太网的介质访问控制协议要解决的问题。它的工作原理是:发送数据前,先侦听信道是否空闲;若空闲,则立即发送数据。若信道忙碌,则等待一段时间至信道中的信息传输结束后再发送数据;若在上一段信息发送结束后,同时有两个或两个以上的节点都提出发送请求,则判定为冲突。若侦听到冲突,则立即停止发送数据,等待一段随机时间,再重新尝试。 学生要顺利完成本实验项目所要求的内容,必须对CSMA/CD协议有充分的理解。

csma-cd's People

Contributors

42yeah avatar

Watchers

 avatar  avatar  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.