Opened 3 years ago

Last modified 2 years ago

#3490 new defect

Handle multiple packets in one read when using BPF

Reported by: marcin Owned by: UnAssigned
Priority: medium Milestone: Outstanding Tasks
Component: dhcp4 Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

This issue affects BSD systems only!

When reading packets through the BPF device it is possible that the kernel puts more than one packet to the read buffer at the time. Kea's API is not ready to read multiple packets during when call to read function.

Current implementation in pkt_filter_bpf.cc simply gets one usable packet from the buffer and discard any other packets. This may lead to packet drops in some cases. Also, we don't really know the possible scale of this problem yet. The only thing that we know is that the isc-dhcp is using the same approach and it is doing well.

Subtickets

Change History (3)

comment:1 Changed 3 years ago by tomek

  • Milestone changed from Kea-proposed to Kea1.0

As discussed on Kea meeting (2014-07-16), moving this to 1.0.

comment:2 Changed 2 years ago by marcin

  • Milestone changed from Kea1.0 to DHCP Outstanding Tasks

Move to "outstanding" as per Kea 1.0 tickets scrub on 07/31/2015

comment:3 Changed 2 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.