Skip to content

[ARCH-D-2.6] Standardize MTU Handling Across Protocols #160

@umwelt

Description

@umwelt

Phase: 2 - P1-High
Category: Protocol Standardization
Files: All protocol files

Description

Centralize MTU constants and fragmentation logic

Current Problem

Hardcoded values: BLE_MTU=247, LORA_MAX=242, BLE_CHUNK=100, WIFI_CHUNK=1400

Key Tasks

  • Create lib-network/src/mtu.rs with centralized constants
  • Create lib-network/src/fragmentation.rs
  • Implement fragment_message(payload, mtu)
  • Implement reassemble_message(fragments)
  • Delete hardcoded chunk sizes

Acceptance Criteria

  • MTU values centralized
  • Fragmentation logic unified

References

See ARCHITECTURAL_FIXES_IMPLEMENTATION_PLAN.md Ticket 2.6

Metadata

Metadata

Labels

P1-HighHigh priority - fix before betaarchitectureArchitectural refactoring/fixesphase-2Phase 2: P1-High fixes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions