GithubHelp home page GithubHelp logo

packet-delay's Introduction

Propagation Delay Packets

A Python script to calculate the total delay for a packet from source to destination in a network.

Requirements

  • Python 3

Usage

python3 total_packet_delay.py packet_length link_distance link_speed transmission_rate

Argument Specs

  • Packet Length/Size (Megabytes)
  • Link Distance (Kilometers)
  • Speed of travel through link (Kilometers/Second)
  • Transmission Rate (Megabytes/Second)

Description

This script will allow you to find the total delay (propagation delay + transmission delay) for a packet traveling from source to destination in a network.

The propagation delay is calculated as the distance between the source and destination divided by the speed of travel.

The transmission delay is calculated as the packet length divided by the transmission rate.

The total delay is the sum of the propagation delay and the transmission delay.

Example

> python3 total_packet_delay.py 1 10 2 10
> 5.100 Seconds

This will calculate the total delay for a packet with a size of 1 MB, traveling a distance of 10 km, at a speed of 2 km/s and a transmission rate of 10 MB/s.

packet-delay's People

Contributors

srilokhkaruturi avatar

Watchers

 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.