There is an inter-dependency between SCTP- and DIAMETER-protocol analysis in case of fragmented packets. When the preferences for SCTP protocl are set to "Reassemble fragmented SCTP user messages" the packet is shown as "SCTP SACK DATA (Message Fragment). Of course I would like to have the packet reassembled and correctly presented as DIAMETER packet. Is this a bug? asked 13 Feb '14, 03:19 efranz edited 13 Feb '14, 03:53 grahamb ♦ |
One Answer:
If you're seeing In other words, if you're looking at a series of fragments with reassembly enabled you should see:
It sounds to me like right now you're looking at frame 1 or 2. answered 13 Feb '14, 13:20 JeffMorriss ♦ |
In my case I only see one SCTP DATA (Message Fragement) packet but no following DIAMETER packet.
The reason for that may be an inconsistency in handling of packet fragmentation which I detected (please confirm). The inconsistency is as follows:
The DATA chunk in the mentioned packet SCTP DATA (Message Fragement) has set the B-Bit set but not the E-Bit, which means it is the first segment of a segmented DATA chunk.
On the other hand the IP header of the same packet has the Don't fragment bit set. Therefore the next DATA chunk is not received.
In Wireshark I can see the packet either as
- SCTP DATA (Message Fragement) if the "Reassemble fragmented SCTP user messages" is set , or
- the identified DIAMETER message if the "Reassemble fragmented SCTP user messages" is not set. In this case the Diameter message is truncated.
Isn't this the explanation of the strange behavior?
Hmm, I'm not sure I follow. Are you sure the 2nd fragment was captured? That is, if you remove all display filters can you see the last fragment?
If all the fragments were captured then Wireshark should be able to reassemble them (when the preference is turned on); if not then something weird is going on (possibly a bug). If they weren't all captured then obviously this won't be possible.
The DF bit should be set on all SCTP packets: that's what tells routers to tell the sending SCTP when they encountered an MTU smaller than the size of the message which causes SCTP to lower its path MTU. (OK so when SCTP retransmits the too-big-to-pass message it will do so without the DF bit set but that'll only happen at most a couple of times per assoc.)