Skip to content

Commit c5aaaae

Browse files
committed
add ble section
1 parent 4861816 commit c5aaaae

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

content/posts/network-engineering.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,19 @@ Services provided by link layer:
260260
- Query packet with source and destination IP and MAC address sent to all hosts and routers on the same subnet via broadcast MAC address
261261
- Response packets if query a host's or router's MAC address matches with desired mapping
262262

263+
### Bluetooth Low Energy (BLE) L2CAP
264+
265+
[L2CAP] (Logical Link Control and Adaptation Protocol) is the link-layer protocol in the Bluetooth stack responsible for segmentation, reassembly and multiplexing of higher-layer data over Bluetooth connections.
266+
267+
- Segmentation and reassembly: L2CAP segments larger payloads (Service Data Units) into smaller Protocol Data Units (PDUs) that fit within the Bluetooth link's MTU, and reassembles them at the receiver
268+
- Credit-based flow control: the receiver grants "credits" (send permits) to the sender, preventing buffer overflow, matching sender speed to receiver capacity
269+
- Transport modes:
270+
- Basic L2CAP mode (unacknowledged): no acknowledgements, no retransmissions of dropped packets, no flow control (analogous to UDP, fire-and-forget delivery with minimal overhead, used for simple, latency-sensitive data)
271+
- Enhanced Credit-Based Flow Control mode (acknowledged): retransmissions of dropped packets, credit-based flow control (closer to TCP)
272+
- In-order delivery: PDUs inherently arrive in order in all modes
273+
274+
[L2CAP]: https://en.wikipedia.org/wiki/List_of_Bluetooth_protocols#Logical_link_control_and_adaptation_protocol_(L2CAP)
275+
263276
## Network layer: data plane
264277

265278
- Logical communication between network hosts

0 commit comments

Comments
 (0)