Skip to content

gnrc_sixlowpan_frag: make aggresive override configurable#11442

Merged
cgundogan merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sixlowpan_frag/enh/aggressive-config
May 24, 2019
Merged

gnrc_sixlowpan_frag: make aggresive override configurable#11442
cgundogan merged 1 commit intoRIOT-OS:masterfrom
miri64:gnrc_sixlowpan_frag/enh/aggressive-config

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Apr 25, 2019

Contribution description

Currently, our 6Lo implementation always overrides the oldest reassembly buffer entry even if that one did not time out yet. While with larger reassembly buffers this can make sense to give newer datagrams precedence, smaller once suffer especially in multi-hop scenarios, where a router might reassemble multiple datagrams at once. As far as I am aware RFC 4944 does not mention this behavior, and I think I just adapted it from the legacy implementation back then. So it makes sense to make this aggressive behavior configurable.

Testing procedure

Try compile with CFLAGS += -DGNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE=0 and CFLAGS += -DGNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE=1 both configurations should still work and when compiled with -DGNRC_SIXLOWPAN_FRAG_RBUF_SIZE=1 larger datagrams should still be received with aggressive override deactivated when a node is pinged by two nodes while they are always not when aggressive override is activated.

Issues/PRs references

None, but incorporated at the moment into #11068.

Route to 6Lo minimal fragment forwarding

@miri64 miri64 requested review from cgundogan and jia200x April 25, 2019 07:49
@miri64 miri64 added Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Apr 25, 2019
@miri64 miri64 added this to the Release 2019.07 milestone Apr 25, 2019
res = oldest;
if (GNRC_SIXLOWPAN_FRAG_RBUF_AGGRESSIVE_OVERRIDE ||
((now_usec - oldest->arrival) >
GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_MS)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the suffix _MS of GNRC_SIXLOWPAN_FRAG_RBUF_TIMEOUT_MS is strangely chosen for a macro that holds microseconds .. however, this is unrelated to this PR. ACK!

@cgundogan cgundogan merged commit 650ee83 into RIOT-OS:master May 24, 2019
@miri64 miri64 deleted the gnrc_sixlowpan_frag/enh/aggressive-config branch May 24, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants