Coder Social home page Coder Social logo

udp-latency's Introduction

Hi there!

πŸ§‘πŸ½β€πŸ’» I am currently working on the following projects:

  • πŸ”¬ R&D on Time-Sensitive Networking:
    1. TSNKit: A simple scheduling toolkit and benchmark for Time-Sensitive Networking.
    2. RtGen: A deterministic traffic generator based on kernel/DPDK and NIC offloading function.
  • πŸͺ NASA-RETHi-DataSystem: Developing Resilient Extra-Terrestrial Habitat

🀷 Some small tools from me:

  • 🧸 Learning Python the Smart Way: An efficient and joyful way to learn Python language [δΈ­ζ–‡]
  • πŸ“ˆ udp-latency: A tiny end-to-end latency testing tool implemented by UDP protocol in Python
  • πŸ“ mvtest: A Distribution-Free Test of Independence Based on Mean Variance Index
  • 🐢 doit4u: ChatGPT based natural language hybrid Python programming
  • 🦭 sealhacker: Extracting seal with Python OpenCV.
  • 🎨 Morandi palette: 18 colors palette inspired by Giorgio Morandi

Snake animation

udp-latency's People

Contributors

chuanyuxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

udp-latency's Issues

quick question

Hi @ChuanyuXue, a quick question is what is the reason we choose socket instead of scapy to implement the udp latency? Thank you very much for your answering.

round-trip latency is similar to one-way latency

Hi @ChuanyuXue,

I got similar results when testing udp_rrt and udp_latency. It seems like division 2 of udp_rrt.py needs to be removed in the following function.

def listen(self, buffer_size: int, verbose: bool, save: Optional[str], q: Queue)-> None:
        latency = 0.0
        while True:
            msg, _ = self._udp_socket.recvfrom(buffer_size)
            recv_time = time.time_ns()
            packet_index = int.from_bytes(msg[:4], 'big')
            send_time = int.from_bytes(msg[4:12], 'big')
            old_latency = latency
            latency = round(((recv_time - send_time) * 1e-9) / 2, 6)
            jitter = abs(latency - old_latency)
            recv_size = len(msg)

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.