Skip to contentSkip to conversation

SCTP PMTU calculation not accounting chunk padding.

DISCUSSION Vlad Yasevich 1 participant 1 message Sep 9, 2015 SCTP protocol

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines · Deepak Khandelwal

Hi,

It looks like the PMTU calculation in SCTP kernel / RFC, seems to be not accounting the chunk padding

SCTP calculate the fragmentation point to fragment the packet.

Frag_point = PMTU – (sctp header length + sctp chunk length) – IP header length

Quoted 8 lines

After the frag_point, user data fragmentation happens at SCTP layer, but while sending packet due the need of chunk padding, data size still more then mtu of in between router, and packet doesn’t pass through to the channel . local SCPT stack always end up receiving the ICMP FRAG _NEEDED messages.

I am using Kernel version 2.6.34.9-WR4.3

You are missing

commit c08751c851b78514f6ec5f77f7cbebaac63d15c0

Author: Alexander Sverdlin <[email protected]>
Date:   Mon Sep 2 15:58:25 2013 +0200

net: sctp: Fix data chunk fragmentation for MTU values which are not multiple of 4

-vlad

Quoted 4 lines

Thanks !
Best Regards,
Deepak