--- pretty_name: LocalNet-Dynamics license: mit language: - en tags: - tabular - timeseries - networking - telemetry - latency - jitter - packet-loss - dns - wifi - throughput - qos - anomaly-detection task_categories: - time-series-forecasting - tabular-classification - tabular-regression annotations_creators: - machine-generated source_datasets: - original size_categories: - 10K link`, `system_profiler SPAirPortDataType`). After the concurrent probes, and only on their own cadence (every hour in the published run), the heavy tests run: an Ookla speed test and/or an `iperf3` test. Because they run after the latency probes of the same sample, they do not influence that sample's latency columns; a sample that includes a speed test usually overruns the interval, and the collector then skips to the next tick. The default gateway, the interface type and the resolver are detected at start and re-detected every 15 minutes (or within a minute after the gateway probe loses every packet). System sleep is inhibited for the duration of the run. Run configuration of the published capture: interval 30 s, 10 echoes to `8.8.8.8` and 5 to the gateway with a 2 s timeout, 5 TCP handshakes to port 443, DNS probes against the gateway resolver with a 3 s timeout, HTTP probe with a 5 s timeout, Wi-Fi metrics enabled, SSID not recorded, speed test every hour with no pinned server, no iperf3 server, collector version 2.0.0. ## Schema Empty cells mean "not measured or failed"; the `notes` column records the reason (for example `ping: no replies`, `dns recursive: timeout`, `speedtest (ookla) failed: ...`). Times are in milliseconds unless the column name says otherwise. ### Identity and time | Column | Type | Description | |---|---|---| | `run_id` | string | collection run identifier, `YYYYMMDD_HHMMSS` in local time of the run start | | `host_label` | string | free-text label of the vantage point (`--host-label`), empty if not given | | `sample_index` | int | 0-based row number within the run | | `timestamp_utc` | string | sample start, ISO 8601 UTC, e.g. `2026-09-05T14:00:00Z` | | `timestamp_local` | string | sample start in the collector's local time with UTC offset, e.g. `2026-09-05T10:00:00-04:00` | | `epoch_s` | int | sample start as Unix time (seconds) | | `elapsed_s` | float | seconds since the start of the run | | `link_type` | string | `wifi`, `ethernet`, `other` or `unknown`: the interface that carries the default route | | `gateway_ip` | string | default gateway (private address) | | `dns_server` | string | resolver used for the DNS probes | | `target` | string | host used for the ICMP and TCP probes | ### Run context (added by the builder) | Column | Type | Description | |---|---|---| | `collector_version` | string | version of `collect_data.py` that wrote the run | | `collector_os` | string | `Windows`, `Linux` or `macOS` | | `interval_s` | float | configured sampling interval of the run | | `rtt_resolution_ms` | float | resolution of the ICMP columns: 1.0 on Windows, 0.001 elsewhere | ### Time features (added by the builder, from `timestamp_local`) | Column | Type | Description | |---|---|---| | `date_local` | string | local calendar date `YYYY-MM-DD` | | `hour_local` | int | local hour 0-23 | | `weekday_local` | int | 0 = Monday ... 6 = Sunday | | `is_weekend` | int | 1 on Saturday and Sunday | | `gap_before_s` | float | seconds since the previous sample of the same run; larger than `interval_s` after a skipped tick or a sleep/outage gap | ### Target latency (ICMP) | Column | Type | Description | |---|---|---| | `rtt_min_ms` | float | minimum round-trip time of the received replies | | `rtt_avg_ms` | float | arithmetic mean | | `rtt_median_ms` | float | median | | `rtt_max_ms` | float | maximum | | `rtt_stddev_ms` | float | population standard deviation of the received replies (the `mdev` of Linux `ping`) | | `jitter_ms` | float | mean absolute difference between consecutive received replies (packet delay variation in the sense of RFC 3393, applied to round-trip times); empty when fewer than two replies were received | | `packets_sent` | int | echo requests sent (`ping_count`) | | `packets_received` | int | replies received | | `packet_loss_pct` | float | `100 * (sent - received) / sent` | ### Gateway latency (ICMP to the default gateway) | Column | Type | Description | |---|---|---| | `gateway_rtt_min_ms` | float | minimum round-trip time | | `gateway_rtt_avg_ms` | float | mean | | `gateway_rtt_max_ms` | float | maximum | | `gateway_jitter_ms` | float | mean absolute consecutive difference | | `gateway_packet_loss_pct` | float | loss in percent | ### TCP, DNS and HTTP | Column | Type | Description | |---|---|---| | `tcp_connect_min_ms` | float | fastest of the TCP handshakes to `target:443` | | `tcp_connect_median_ms` | float | median handshake time | | `dns_resolve_ms` | float | response time of the resolver for `dns_host` (cache-served after the first sample) | | `dns_recursive_ms` | float | response time for a random subdomain of `dns_host` (full recursive lookup) | | `http_ms` | float | time to the response headers of `http_url`, including the operating-system name lookup, the TCP handshake and the request | | `http_status` | int | HTTP status code of that response | ### Wi-Fi link (empty on wired links) | Column | Type | Description | |---|---|---| | `wifi_ssid` | string | network name; only recorded with `--record-ssid` | | `wifi_signal_pct` | int | link quality 0-100: the value reported by Windows; on Linux and macOS derived from RSSI with the Windows mapping `quality = 2 * (rssi + 100)` clipped to 0-100 | | `wifi_rssi_dbm` | float | received signal strength: as reported on Linux and macOS; on Windows derived from the quality with `rssi = quality / 2 - 100` | | `wifi_rx_mbps` | float | negotiated receive PHY rate (Mbit/s) | | `wifi_tx_mbps` | float | negotiated transmit PHY rate (Mbit/s); equals the receive rate on macOS, which reports one rate | | `wifi_channel` | int | channel number | | `wifi_band_ghz` | float | 2.4, 5 or 6 | | `wifi_phy` | string | standard in use, e.g. `802.11ax` | ### WAN throughput (rows in which a speed test ran) | Column | Type | Description | |---|---|---| | `download_mbps` | float | download throughput (Mbit/s) | | `upload_mbps` | float | upload throughput (Mbit/s) | | `speedtest_ping_ms` | float | idle latency to the speed-test server as reported by the tool; missing when the `speedtest-cli` fallback could not measure it | | `download_loaded_latency_ms` | float | interquartile-mean latency measured during the download (Ookla CLI only) | | `upload_loaded_latency_ms` | float | interquartile-mean latency measured during the upload (Ookla CLI only) | | `speedtest_server_id` | int | Ookla server id | | `speedtest_server` | string | server name and location | ### LAN throughput (rows in which an iperf3 test ran) | Column | Type | Description | |---|---|---| | `lan_throughput_mbps` | float | TCP throughput to the LAN iperf3 server (Mbit/s) | | `lan_retransmits` | int | TCP retransmissions during the test, when reported | ### Reference labels (added by the builder) | Column | Type | Rule | |---|---|---| | `label_outage` | int | `packets_received == 0` while `packets_sent > 0` | | `label_packet_loss` | int | `0 < packet_loss_pct < 100` | | `label_high_latency` | int | `rtt_avg_ms > T_rtt` | | `label_high_jitter` | int | `jitter_ms > T_jitter` | | `label_gateway_degraded` | int | `gateway_rtt_avg_ms > T_gateway` or `gateway_packet_loss_pct > 0` | | `label_anomaly` | int | any of the above | The thresholds are computed per run from that run's own distribution with a robust rule, so they adapt to the baseline of the site without being pulled by the outliers they are meant to find: ```text T = median + max(k * 1.4826 * MAD, absolute floor, relative floor * median) ``` with `k = 5`, the median absolute deviation `MAD`, and the floors 10 ms / 50 % for `rtt_avg_ms`, 5 ms / 100 % for `jitter_ms` and 5 ms / 100 % for `gateway_rtt_avg_ms`. A threshold is not computed (and the label stays 0) for runs with fewer than 20 valid values. For the published run the thresholds are 21.1 ms (`rtt_avg_ms`), 6.0 ms (`jitter_ms`) and 5.2 ms (`gateway_rtt_avg_ms`); the values used for each run are stored in `dataset/summary.json`. These labels are derived from the measurements themselves; they are reference points for evaluating detectors, not independent ground truth. ### Manual annotations and notes | Column | Type | Description | |---|---|---| | `event_category` | string | categories of the manual events covering the sample time, joined with ` \| `; one of `load`, `outage`, `maintenance`, `environment`, `isp`, `device`, `other` | | `event_description` | string | the corresponding free-text descriptions | | `sample_duration_s` | float | wall-clock time the sample's probes took | | `notes` | string | probe errors and status messages, `; `-separated | ## Validation performed by the builder - Rows with a malformed `timestamp_utc` are dropped and duplicate `(run_id, timestamp_utc)` pairs are reduced to the first occurrence (none in the published run). - Loss percentages outside 0-100 are set to missing (none in the published run). - `speedtest_ping_ms` values of 600,000 ms or more are set to missing. The `speedtest-cli` fallback scores each failed latency attempt as 3,600 s and averages three attempts over six, so one failed attempt already yields 600,000 ms and three yield 1,800,000 ms. The raw file keeps the original values; 79 of the 460 speed-test rows are affected. Collector version 2.0.1 no longer records such values. ## Statistics Generated by `scripts/build_dataset.py` on 2026-10-10T05:16:24Z from 1 collection run(s). | Item | Value | |---|---| | Rows | 54,617 | | Columns | 67 | | First sample (UTC) | 2026-09-20T16:34:22Z | | Last sample (UTC) | 2026-10-09T19:49:43Z | | Span | 19.14 days | | Sampling coverage | 99.1 % of the samples expected at the configured interval | | Manual event annotations | 0 | | Run | Vantage | Link | OS | Interval | Rows | Span | Coverage | |---|---|---|---|---|---|---|---| | desktop-eth_20260920_123407 | desktop-eth | unknown (54617) | Windows | 30 s | 54,617 | 459.26 h | 99.1 % | | Metric | n | Median | Mean | p95 | Max | |---|---|---|---|---|---| | rtt_avg_ms | 54,599 | 11.1 | 12.581 | 22.3 | 288.6 | | rtt_min_ms | 54,599 | 10.0 | 10.432 | 14.0 | 263.0 | | rtt_max_ms | 54,599 | 13.0 | 17.869 | 32.0 | 373.0 | | jitter_ms | 54,599 | 1.0 | 2.306 | 7.667 | 59.778 | | packet_loss_pct | 54,617 | 0.0 | 1.763 | 10.0 | 100.0 | | gateway_rtt_avg_ms | 54,599 | 0.2 | 0.321 | 0.8 | 89.4 | | gateway_packet_loss_pct | 54,617 | 0.0 | 0.033 | 0.0 | 100.0 | | tcp_connect_median_ms | 54,598 | 14.484 | 19.311 | 32.127 | 1524.463 | | dns_resolve_ms | 54,595 | 36.026 | 43.594 | 74.878 | 3252.214 | | dns_recursive_ms | 54,590 | 59.242 | 87.275 | 106.31 | 25645.041 | | http_ms | 54,565 | 81.911 | 154.745 | 271.36 | 13111.02 | | wifi_signal_pct | 4 | 85.0 | 85.75 | 88.4 | 89.0 | | wifi_rssi_dbm | 4 | -57.5 | -57.125 | -55.8 | -55.5 | | wifi_rx_mbps | 4 | 866.7 | 866.7 | 866.7 | 866.7 | | download_mbps | 460 | 34.725 | 68.463 | 318.275 | 480.72 | | upload_mbps | 460 | 28.625 | 26.121 | 41.142 | 54.17 | | speedtest_ping_ms | 381 | 52.058 | 93.665 | 196.381 | 1167.189 | | Reference label | Rows | Share | |---|---|---| | label_outage | 18 | 0.033 % | | label_packet_loss | 7,692 | 14.084 % | | label_high_latency | 3,067 | 5.615 % | | label_high_jitter | 5,074 | 9.29 % | | label_gateway_degraded | 560 | 1.025 % | | label_anomaly | 13,036 | 23.868 % | ## Known limitations and biases - Single vantage point, single run. Absolute values reflect one site's access technology, router, cabling and ISP routing. Relative variation, the structure of episodes and the probe-to-probe relationships transfer better than absolute baselines. - `link_type` is `unknown` for every row. The PowerShell route query returned nothing on this machine, the collector fell back to `route print`, and that fallback does not report the media type. The vantage point is a wired desktop (host label `desktop-eth`, median first-hop round-trip time 0.2 ms). Four rows carry Wi-Fi link metrics (channel 44 or 157, 5 GHz, 802.11ac, 866.7 Mbit/s): a wireless adapter on the same machine was connected at those moments. Their first-hop round-trip times (0.0 to 1.2 ms) and target latencies match the wired baseline, so the default route stayed on the wired link. - ICMP resolution on Windows is 1 ms and sub-millisecond replies are stored as 0; jitter and standard deviation computed from such values contain quantisation noise, and the gateway columns are mostly 0 for this wired site. Use `tcp_connect_*` for sub-millisecond latency, or collect on Linux/macOS. `rtt_resolution_ms` states the resolution of each run. - ICMP is handled differently from user traffic by some routers and hosts (rate limiting, de-prioritisation). The TCP connect and HTTP columns measure the transport and application paths that applications actually use, and the October 6 TCP/ICMP split shows that the two can be routed differently. - The 10-echo burst characterises latency over roughly ten seconds of each interval; events shorter than that between samples are not observed. - The DNS "cached" probe is cached at the upstream resolver, not at the gateway: at this site the gateway forwards every query, so the column measures the upstream resolver plus the forwarding hop. - The DNS "recursive" probe generates NXDOMAIN answers for random names; a resolver that applies aggressive negative caching or that intercepts NXDOMAIN (ISP search redirection) still answers, but its timing reflects that behaviour. - The HTTP probe includes the operating system's name lookup for the URL's host, which is normally cached; its discrete modes near 1.1, 1.3 and 4.1 s are retransmission timers waiting out lost packets, not propagation or queueing delay. - Speed tests were run with the `speedtest-cli` fallback, which uses the Python interpreter's own HTTP transfers, and without a pinned server. The download column is a lower bound that depends strongly on the chosen server; 79 tests have no latency, 7 report 0 Mbit/s download and 4 report 0 Mbit/s upload. Loaded latency is absent. Speed tests also load the household link for about half a minute, which is visible to other devices, and they leave a 60-second gap in the 30-second grid. - The two halves of the capture differ markedly (see the findings). Models trained on one half should be evaluated on the other. - No manual event annotations were recorded, so the `event_*` columns are empty and the causes of the episodes are inferred from the probes only. - Gaps: system sleep, reboots and collector restarts appear as gaps (`gap_before_s`) or as separate runs; ticks skipped after an overrun also appear as gaps. The published run has none longer than 122 s. - Clock: timestamps come from the system clock; `elapsed_s` uses a monotonic clock and is unaffected by clock adjustments. ## Privacy The dataset does not contain public IP addresses, hostnames of household devices, MAC addresses, Wi-Fi network names or per-device traffic. Gateway and resolver addresses are private LAN addresses. The run metadata records the operating system build, the Python version, the time zone and the private LAN address of the collector. Speed-test rows name the test server, which was not pinned and therefore only indicates the broad region of the site. ## Citation If you use the data: ```bibtex @dataset{ezharjan_localnetdynamics_data_2026, author = {Ezharjan, Alexander}, title = {LocalNet-Dynamics: A Longitudinal Local Area Network Telemetry Dataset}, year = {2026}, version = {1.0.0}, publisher = {Hugging Face}, doi = {10.57967/hf/10841}, url = {https://huggingface.co/datasets/ezharjan/LocalNetDynamics} } ``` If you use the collector, the build pipeline or the analysis code: ```bibtex @software{ezharjan_localnetdynamics_code_2026, author = {Ezharjan, Alexander}, title = {LocalNet-Dynamics: collector, build pipeline and analysis toolkit for longitudinal home-network telemetry}, year = {2026}, version = {1.0.0}, url = {https://github.com/Ezharjan/LocalNetDynamicsDataset} } ```