Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/pydtmPublic

Python (Euro)DOCSIS Traffic Meter

License

NotificationsYou must be signed in to change notification settings

cite/pydtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python (Euro)DOCSIS (3.0) Traffic Meter

Overview

This tool uses a DVB-C capable video card (e.g. a cheap USB stick) to measurethe EuroDOCSIS 3.0 traffic per frequency, allowing you to venture an educatedguess about your local segment's utilization.

Data is written to a UDP socket ingraphiteformat.

Requirements

This was tested with cPython 2.7.13 and cPython 3.5.3 using a Hauppauge WinTVsoloHD USB stick on a Raspberry Pi 3 running Raspbian/stretch.

It should however work with most Python versions as long as the DVB-C cardis supported by your kernel and it's driver complies with the DVBv5 API.

FAQ

How and why does this even work?

EuroDOCSIS 3.0 uses standard DVB-C mechanisms to transport it's data: It'sencoded as a standard MPEG Transport Stream onPID8190 with either 64- or 256-QAMmodulation with a symbol rate of 6952ksyms/s. Since cable is a shared medium,determining the total amount of data transferred and comparing this to the totalamount possible afterFEC (which is about51Mbit/s for 256-QAM and 34 MBit/s for 64-QAM) will show you how much capacityis used.

How do I determine downstream frequencies?

Take a look at your cable modem's management pages.

Wait, I can read my neighbours data with this?

No, you can't.

Why Python?

I wanted to learn Python.

Why output data to UDP? Why not text files, sockets, ...?

You can easily use tools likenetcat to capture the data.

This is downstream only, right?

Yes. You would probably not see other cable modems upstream signals due to...erm, "electrical" stuff.

About

Python (Euro)DOCSIS Traffic Meter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp