Beruflich Dokumente
Kultur Dokumente
Version
This Version field MUST be set to 1 to indicate Diameter
Version 1.
Message Length
Contain the length of Message Header + (Data) Avp
Command Flags
The Command Flags field is eight bits. The following bits are
assigned:
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|R P E T r r r r|
+-+-+-+-+-+-+-+-+
r(eserved) - these flag bits are reserved for future use, and
MUST be set to zero, and ignored by the receiver.
Command-Code
To uniquely identify the each diameter message IANA has
assigned the unique command code for each Request. The answer
of this Request will also have the same command code but have
Bit-R=0.The Command-Code field is three octets.
Application-ID
End-to-End Identifier
The End-to-End Identifier is an unsigned 32-bit integer field
(in network byte order) and is used to detect duplicate
messages. The identifier MUST remain locally unique for a
period of at least 4 minutes, even across reboots. The
originator of an Answer message MUST ensure that the End-to-End
Identifier field contains the same value that was found in the
corresponding request.
The End-to-End Identifier MUST NOT be modified by Diameter
agents of any kind. Duplicate requests SHOULD cause the same
answer to be transmitted (modulo the hop-by-hop Identifier
field and any routing AVPs that may be present),and MUST NOT
affect any state that was set when the original request was
processed. Duplicate answer messages that are to be locally
consumed SHOULD be silently discarded.Use of End-To-End
Identifier is explained below with Example.
--> if it receives the message with t=0 and r=0 and End-To-End
Id exists in Table i.e. Answer message corresponding to the
Request received earlier then it will insert the Proper hop-by-
hop Id as shown in figure to the Answer and forwards it and
deletes the entry form the Table.
These flag give the information to the receiver how the each attribute to be
handled.
R- Reserved bits and SHOULD be set to 0.
M-Mandatory Bit
-->Means If this bit is Set then Diameter Client, Server,Proxy and
Translation Agent MUST support the handling of this AVP. If Handling is not
support(Either AVP or Its value is Unrecognized) by the mentioned Diameter
Agents then Diameter message MUST be Rejected.
-->Diameter Relay and Redirect Agent MUST not reject the message with
unrecognized AVPs.
-->If M bit is clear and Receiver does not support the handling of
considered Avp then Receiver may ignore the considered AVP.
V- Vendor Id Bit
-->It is just the indication whether Vendor-Id field is there in the AVP or
Not
-->If V is Set the Vendor-Id Field is prsent in the AVP Otherwise missing
this Field.
P-Protected Bit
This bit is set indicates that Avp data is encrypted for end-to-end
security.
Data
Data Field is of ZERO or More octets and contains information. AVP with Zero
octet length is used for indications only.The format of the Data field MUST
be one of the data type defined in Base Diameter protocol RFC-3588.
Grouped AVP
Grouped AVP more or less same like the single AVPs except that the data
field of grouped avp contains the one or move avps rather than Raw data.
Here avps act as data.