No limit on how late a queued FLOOD packet can be sent, so a delayed packet can re-flood the mesh
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- networking
Hướng nghiên cứu
Start with Dispatcher::checkSend(), PacketQueue::get(), and Mesh::routeRecvPacket() to trace how queued FLOOD packets are prioritized and sent. Then inspect PacketManager and StaticPoolPacketManager for the removal path, and the native gtests described in the issue for coverage. Done means overdue FLOOD packets are dropped at the configured limit, DIRECT packets remain unaffected, and the starvation scenario is covered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Related to #2133 (auto-closed as stale), where several meshes reported old public-channel messages reappearing with the same packet hash and original timestamp.
Behaviour
Two behaviours combine:
- The duplicate table only remembers recent packets.
SimpleMeshTablesholds the last 160 packet hashes (MAX_PACKET_HASHES), with no time component. On a busy mesh it can refill within minutes. - The outbound queue has no age limit.
PacketQueue::get()always sends the highest-priority due packet first. Flood re-sends use priority = hop count (Mesh::routeRecvPacket), and direct/routed traffic is priority 0. Under sustained higher-priority traffic, plus airtime-budget and CAD waits, a long-path flood can be held well past its scheduled time. Nothing caps how late it can go out.
If a delayed flood goes out after neighbours have forgotten its hash, they treat it as new and flood it across the mesh again with a normal-looking path. loop.detect doesn't catch this.
How this relates to #2133
Realistically, this produces delays of seconds to minutes, not hours, because the queue has only 32 slots. So it probably doesn't explain the 2–3 hour reports in #2133 by itself. Those may involve an external replay, e.g. a bridge or IP backhaul that buffers raw packets. Still, nothing in the queue limits how late a flood can be sent, and that seems worth closing off.
Proposed change
Before each send attempt, Dispatcher::checkSend() drops any queued FLOOD packet whose scheduled send time is more than MAX_FLOOD_TX_OVERDUE_MILLIS (default 60 s) in the past.
- Can be set at build time (
-D MAX_FLOOD_TX_OVERDUE_MILLIS=...) or per node by overridinggetMaxFloodTxOverdue().0disables it. - DIRECT packets are not affected.
- New
PacketManager::removeOverdueFlood(), which does nothing by default so otherPacketManagerimplementations still compile.StaticPoolPacketManagerimplements it. - Native gtest coverage for the queue function and for
Dispatcher, using a fake radio and clock, including a starvation scenario.Dispatcher.cppis now part of thenativetest build.
Branch: fix/expire-stale-outbound-floods. I'm happy to adjust the default limit or make it a CLI pref (e.g. set flood.max.delay) if preferred
- Ngôn ngữ chính
- C
- Star
- 3.9k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 24
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của meshcore-dev/MeshCore
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
meshcore-dev/MeshCore#3622 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature Request] Set Australia (Mid) Preset to automatically enable 2 byte default path hash sizeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
meshcore-dev/MeshCore#3571 · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
meshcore-dev/MeshCore#3567 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RTC_RX8130CE writes and reads the one-hot WEEK register as a numberCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
meshcore-dev/MeshCore#3549 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
meshcore-dev/MeshCore#3513 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của meshcore-dev/MeshCore
Issue tương tự
-
TLS: a stale OpenSSL error makes non-blocking reads fail with "Resource temporarily unavailable"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
bigtreetech/BIGTREETECH-TouchScreenFirmware#3056 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Allow pillow 13Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[pico][astrocade] emu/apply.sh edits src/mame/midway/astrohome.cpp, which current MAME has in bally/Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
FujiNetWIFI/fujinet-firmware#2120 ·
Maintainer thường phản hồi trong vòng 1 ngày