Commit Graph

1527 Commits

Author SHA1 Message Date
Herbert Wolverson
b93d91c557 Merge branch 'main' of https://github.com/LibreQoE/LibreQoS 2023-03-27 15:03:25 +00:00
Herbert "TheBracket
b99073460a
1st Draft of CONTRIBUTING.md
This is very much a first draft. Comments and edits are appreciated.
2023-03-27 08:03:12 -07:00
Herbert Wolverson
cc87412a84 Merge branch 'main' of https://github.com/LibreQoE/LibreQoS 2023-03-25 15:08:32 +00:00
Herbert "TheBracket
05186030e4
Merge pull request #299 from LibreQoE/heimdall
Heimdall to main
2023-03-25 10:08:13 -05:00
Herbert Wolverson
e50e03411e Revert WebGL on tins, it doesn't work well on Apple devices. 2023-03-25 14:47:51 +00:00
Herbert "TheBracket
0cf7d5dd0a
Heimdall circuit UI speed (#296)
* Circuit queue - lazy rendering by active tab

Only perform network requests for the active tab on the
circuit_queue.html page. Small to moderate performance
improvement, but it greatly reduces the time spent polling.

* Significantly optimize network and rendering performance of the queues funnel display.

* Substantially improve performance on the flows display by using msgpack with a dictionary.

* Remove some commented code

* Fetch circuit info via efficient msgpack

* Use MsgPack for circuit throughput

* Get rid of the monstrosity that was copying queue data over the bus in a raw JSON string, hideously wasteful. Instead, we now have a 'transit' series of objects in the bus definition for tight encoding. This also cleaned up some node manager code. It's mostly useful for the next stage, which will start to reduce the amount of data we are transmitting.

* A lot of the redundant network transport is culled.

* More unused fields culled.

* Elimate a HUGE amount of garbage collection by allocating and reusing a single object, and cleaning up the JS rendering. Still not good enough.

* Switch to an efficient msgpack transmission format.

* Cleanup handling of 'none' in msgpack

* Fix scale delays to ms

* Commit to send to payne

* Use WebGL for a slight rendering boost.

* Further reduce draw time of circuit page by using redraw commands.

* Finish previous commit

* Use redraw with preallocated/non-GC data for all ringbuffer renders.

* Fix a rare issue with reloading network.json that could cause a stall.

* Optimize RTT graphs with the reload system.
2023-03-25 07:37:04 -07:00
Robert Chacón
5f0e1f61f7
Remove duplicate output of "Executed X linux TC class/qdisc commands" 2023-03-24 16:45:21 -06:00
Robert Chacón
4a5c5b15a0
Merge pull request #297 from LibreQoE/fixFirstRun
Check for mq before attempting to delete root qdisc
2023-03-24 16:42:29 -06:00
Robert Chacón
549772e3db
Check for mq before attempting to delete https://github.com/LibreQoE/LibreQoS/issues/228 2023-03-24 16:41:34 -06:00
Herbert Wolverson
d53200f43d Fix from chat: add quotes around node_id in the setup. 2023-03-24 13:05:31 +00:00
Herbert Wolverson
936a2f7a21 Merge branch 'main' of https://github.com/LibreQoE/LibreQoS 2023-03-24 12:53:07 +00:00
Robert Chacón
1c4b9a7666
Create CODE_OF_CONDUCT.md 2023-03-23 14:13:19 -06:00
Herbert "TheBracket
cf41b47b77
Issue 288 - 0s showing up as dots, delays unit (#295)
* Hide zero values for throughput, backlog and delays graphs

Relates to ISSUE #288

* New function `array_to_zero` to reduce repetition.
* Transform zero values to `null` in Y value arrays for the
  throughput, backlog and delay graphs on circuit_info.html
* Also change tin labelling to match the "backlog" graph on
  Delays.
* Reduce marker size.

* Scale displayed/graphed queue delays to ms

References ISSUE 288

Scale the delays graph entries, which are apparently in usec, to
ms.
2023-03-23 11:50:19 -07:00
Herbert "TheBracket
b8436ca734
Parse fwmark in Cake stats as a TcHandle (#294)
FIXES #289

Extend TC parser to handle cases that don't have a colon at all.
Use this to parse the `fwmark` field in the Cake stats, which
is probably a TC handle - but since the cake source doesn't
document it, it might be a random number for all we know.

The `fwmark` field isn't actually referenced anywhere in the
program.
2023-03-23 11:50:01 -07:00
Herbert "TheBracket
25801b6445
Issue 291 capture time (#293)
* Make packet capture time user configurable.

* Add `packet_capture_time` to /etc/lqos.conf as a number (seconds)
* Rework the capture logic to obtain the capture time and wait for
  the specified period.
* Rename some functions that specified ten seconds in the name.

Relates to ISSUE #291

* Remove a dangling dashboard link

* Change libpcap download filename to <capture-circuit_id.pcap>

Relates to ISSUE #291

* Pass the circuit_id to the ip_dump page.
* Include the circuit_id in the downloaded packet capture
  filename.

* Add starting timestamp to capture filename

Adds the starting timestamp (in ns) to the capture filename when
you download a libcap dump. Ending timestamp isn't included; the
starting stamp is almost certainly unique.

Relates to ISSUE #291 and fixes the parts that I intend to
touch.
2023-03-23 11:49:36 -07:00
Herbert "TheBracket
a32949c76d
Rust licenses (#292)
* Add license specifier to all Cargo.toml files

Explicitly specify `license = "GPL-2.0-only"` in each Cargo.toml
file. The wording is from the SPX guidelines.

* Add shell script to check licenses of Rust projects

rust/check_licenses.sh automatically verifies all dependencies
for accidental usage of GPLv3. Since basically nobody in the
universe uses GPLv3, it tends not to do much.
2023-03-23 11:49:07 -07:00
Herbert "TheBracket
c17d269ad6
Rust licenses (#292)
* Add license specifier to all Cargo.toml files

Explicitly specify `license = "GPL-2.0-only"` in each Cargo.toml
file. The wording is from the SPX guidelines.

* Add shell script to check licenses of Rust projects

rust/check_licenses.sh automatically verifies all dependencies
for accidental usage of GPLv3. Since basically nobody in the
universe uses GPLv3, it tends not to do much.
2023-03-23 11:48:03 -07:00
Herbert Wolverson
67c2ef7a24 Merge branch 'main' of https://github.com/LibreQoE/LibreQoS 2023-03-23 13:46:40 +00:00
Robert Chacón
4acdea85d5
Add IPv6 examples 2023-03-22 20:07:03 -06:00
Dave Täht
7c070e5016
Merge pull request #287 from LibreQoE/fixBanditError
Add timeouts to requests. Remove old versions prior to v1.3.
2023-03-22 14:56:49 -07:00
Robert Chacón
a5ebc755b5
Add timeout to requests 2023-03-22 15:52:49 -06:00
Robert Chacón
b7ac7cc056
Fix timeout on integrationRestHttp.py 2023-03-22 15:51:18 -06:00
Robert Chacón
8b874c6e6a
Delete old/v0.7 directory 2023-03-22 15:45:40 -06:00
Robert Chacón
fa392004c3
Delete old/v0.8 directory 2023-03-22 15:45:33 -06:00
Robert Chacón
c22640487d
Delete old/v0.9 directory 2023-03-22 15:45:27 -06:00
Robert Chacón
39bbcd739c
Delete old/v1.0 directory 2023-03-22 15:45:21 -06:00
Robert Chacón
2bf244e0d8
Delete old/v1.1 directory 2023-03-22 15:45:13 -06:00
Robert Chacón
fe7b7aa312
Delete old/v1.2 directory 2023-03-22 15:45:05 -06:00
Robert Chacón
92df670e11
Add timeout to requests 2023-03-22 15:44:31 -06:00
Robert Chacón
1837ee6e85
Add timeout to requests 2023-03-22 15:44:03 -06:00
Robert Chacón
822f83407a
Add timeout to requests 2023-03-22 15:43:05 -06:00
Robert Chacón
75bcc598a9
Add timeout to requests 2023-03-22 15:42:32 -06:00
Herbert Wolverson
4f574cd668 Improved circuit queue graph labelling 2023-03-22 17:55:12 +00:00
Herbert Wolverson
7326163918 Combine axes on the circuit queue front tab. 2023-03-22 17:30:43 +00:00
Herbert Wolverson
7f746d71a1 Start labelling axes 2023-03-22 15:46:09 +00:00
Herbert Wolverson
1daf727374 Consistent naming: 'tree' not 'funnel'. 2023-03-22 15:34:02 +00:00
Herbert Wolverson
b05afdac0c Hyperlink trees from front-page funnel to the appropriate tree page. 2023-03-22 15:03:43 +00:00
Herbert Wolverson
ebb01286ce Correct 'DHCSP' to 'DSCP'. I think I had DHCP on my mind. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
f9b5dd7853 This should fix the eBPF validator error. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
13e65cad70 Fix a bad case of the NaNs. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
98d7bb88e1 The new Heimdall UI which requires explicitly starting capture sessions. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
4d0fd00583 Remove unused file 2023-03-22 14:39:32 +00:00
Herbert Wolverson
2779cf20c9 Rearrange Heimdall
Refactor Heimdall into a more self-contained process, separate its
operation into its own thread rather than occupying the main
tick thread.
2023-03-22 14:39:32 +00:00
Herbert Wolverson
5ff671567a Some relatively simple performance enhancements that reduce the burden of Heimdall when he's not looking. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
810823c8bb Fix verifier dislike bpf_probe 2023-03-22 14:39:32 +00:00
Herbert Wolverson
951ee4cbe5 Make it easier to change capture size at compile time, set to 128 bytes. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
17100415dd Add libpcap format support and ability to download a snapshot of the last 10 seconds in pcap format for Wireshark (or other tool) analysis. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
8288bb3f9b Extend the capture to include TCP flags, window and ACK data. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
d542bf1660 Abuse error bars to show packet durations on dump view. 2023-03-22 14:39:32 +00:00
Herbert Wolverson
521b383ef7 Oops - packet buttons didn't render. 2023-03-22 14:39:32 +00:00