Skip to content

M3 — Admission: association + 2-step RACH #257

Closed

Description

@josephnef

Part of the 5G-NR RAN EPIC #254. Phase A.

Goal: UEs join a running cell without disturbing scheduled traffic.

5G mapping

2-step RACH — a joining UE sends a preamble+msg in a reserved contention slot; the DU replies with a MACID + grant in the next beacon (fewer round-trips than LTE 4-step).

Deliverables (into src/cell/ + examples/cell)

  • N-UE association Descoped for M3 (maintainer decision): the join is authenticated with the cell PSK (HMAC-SHA1) before any allocation; the full 802.11/WPA2 association is not part of M3. N-UE association — generalize the single-client tests/ap_responder.cpp + tests/ap_wpa2.cpp (beacon/probe/auth/assoc/DHCP/WPA2/CCMP) into UeRegistry. Authenticate before allocating persistent resources (from the review — don't hand a MACID/grant to an unauthenticated preamble).
  • Rach — a reserved contention slot in the SlotGrid; joining UE sends a preamble, the DU allocates MACID + grant and answers in the next beacon (2-step: preamble+msg → grant). Robust contention (from the review): randomized contention opportunities, collision detection/resolution, backoff, a temporary identity until association, duplicate-request detection, and defined exhaustion/denial behavior when the MACID/grant pool is full. Core cell: M3 core — authenticated 2-step RACH + fixed-position UE registry #520 (src/cell/Rach.h, UeRegistry.h, ctest cell_m3); examples/cell integration examples/cell: M3 — join a running cell through the authenticated RACH (rig: hot-plug, undisturbed UE) #522 (rig: hot-plugged joiner granted on its first attempt, existing UE undisturbed, wrong-PSK joiner refused).

Reuses

The AP association machinery (ap_responder.cpp, ap_wpa2.cpp), AckResponder, M1's UeRegistry/GrantMap/SlotGrid.

Dependencies

M1 (#254 tracks).

Test — tests/cell_rach.sh

DU + 1 active UE (scheduled traffic running); hot-plug a 3rd station that joins via the RACH slot within N beacons and receives a collision-free grant — the existing UE's slot is undisturbed throughout. Reuse ap_wpa2_demo.sh for the association leg.

Activity

  1. added
    enhancement
    on Jul 11, 2026
  2. josephnef commented on Nov 12, 2026

    @josephnef
    CollaboratorAuthor

    Closing, with the full 802.11 association descoped as agreed. The join is authenticated with the cell PSK, and nothing is allocated before the tag and freshness check passes (src/cell/Rach.h).

    Done and verified:

    Headless only: on-air contention with several joiners, and the pool-full denial (tests/cell_m3_selftest.cpp). The test lives in testrig (m3_cell_rach.sh), not tests/cell_rach.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions