top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to determine the message length or size of a diameter message?

+4 votes
1,280 views

From Wireshark Packet capture how the Diameter "Length' field calculation value arrive for the diameter message size.
My query is :
1. Does it take into account all the AVPs used in the Diameter Request/Response Message.

posted Feb 1, 2016 by Chinmoy Padhi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Attached is the diameter header followed by AVPs, Message Length is 24 bit field which contains the Size of the Diameter message including the header fields. (I hope I understood the problem correctly)

Diameter Header

answer Feb 1, 2016 by Salil Agrawal
Thanks Salil, I want to determine the size of CCRequest message. So if we see the CCR message in capture it won't be 24 bits, may be more than that. So I want to know how it arrive at that value.I tried to add all the AVPs in CCRequest message and didn't get the exact message size for that request message. Let say you have Diameter header Length whose value is 500 bytes and sum of All AVPs in the CCRequest message comes to 480. I am not sure my understanding is correct or not.May be if you look into a capture you will surely come up with correct idea.
Thanks
Chinmoy
Your understanding is correct header size is 20 bytes so if message length is 500 then all AVP would be 480 bytes (500-20).
Similar Questions
+3 votes

Just for curiosity, I want to see a real network traffic from Chrome Browser when I browse for any pages. I want to see Diameter Messages if I want to take a capture on Wireless Network Connection from Wireshark. If it possible kindly suggest the conditions on which it can be captured?

+3 votes

I want some reference how to determine the max and min length for Standard Diameter AVPs and 3GPP Diameter AVPs based on Seagull dictionary which is open source. How I can determine max and min length for different data types let say UTF8 String, Octet String, Unsigned32,String,Address etc. Any reference highly appreciated.

+3 votes

I have a couple of questions about maximum message size in Diameter.

A Diameter message header has a 3 byte length indicator, so a maximum message length of 16777215. I don't see any way for Diameter node to advertise support for a smaller message length. Does that mean that a node is expected to support a message length up to 0xffffff? Or is it free to impose its own upper limit and reject (send an error) if the message is too long?

Meanwhile, in RFC6083 (DTLS/SCTP):
However, the following limitations still apply:

The maximum user message size is 2^14 bytes, which is the DTLS limit.

Am I reading this correctly that this limits Diameter message lengths to 2^14 when using DTLS/SCTP? Or is there some kind of workaround to this limitation?

...