top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Difference between AVP and Grouped AVP ?

+2 votes
Difference between AVP and Grouped AVP ?
posted Nov 6, 2014 by Ganesh

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

2 Answers

+1 vote

Hi Ganesh,
First we need to understand why Diameter uses Attribute-Value pair data structure?
If we see any Seagull scenario file,the Diameter AVPs are defined in the form of XML tags.

1.XML is extensible and flexible by design, so there isn’t really a problem with being constrained by a fixed set of fields.
2.New XML elements and attributes can be invented and added as needed,
specifically to deal with variable and evolving data formats. Many applications use XML exactly for this reason.

Lets take a relational database example, you want to maintain peer table information

Name | Host | Port | State |

| SER_GX | | 3869 | Up |

Same above information can be written using Attribute-Value pair:
(Port, 3869)

Hope the above explanation gives you an idea of what AVP means.
Grouped AVP is nothing but an AVP within another AVP.
For example :
Single AVP:

<avp name="Auth-Application-Id" value="4"> </avp>

Grouped AVP:

<avp name="Subscription-Id">
    <avp name="Subscription-Id-Type" value="0"> </avp>
    <avp name="Subscription-Id-Data" value=""> </avp> 
answer Dec 23, 2015 by Chinmoy Padhi
0 votes

A diameter AVP has pre-defined format. Every diameter AVP has following items
1. AVP code
2. AVP Flags (VMPRRRRR bits) - V stands for vendor-specific, M stands for mandatory and P for protected
3. Vendor -Id (optional - it is present only if V bit is set in AVP flag)
3. AVP Length - AVP header length + Data Length
4. Data field.

If Data field itself is an AVP then this AVP is known as Grouped AVP.

answer Nov 6, 2014 by Neeraj Mishra
Similar Questions
+3 votes

I saw Capabilities-Exchange-Request and Capabilities-Exchange-Answer messages. In CER message there are two places where Vendor-Id AVP is present, one as an independent AVP and the other one as part of Vendor-Specific-Application-Id AVP. If both of them are present in request message then both will be having same value or can hold different values.

+4 votes

When I come across the S6a interface we are using IMEI AVP for International Mobile Equipment Identity.

But when I come across the Gy interface we are using a Grouped AVP named as User-Equipment-Info AVP which contain User-Equipment-Info-Value and User-Equipment-Info-Type.

My query is why we need to use two different Diameter AVPs across the EPC network which gives the same result , let say IMEI in this case.

+5 votes

Also what are the rules for populating those AVPs (in the RFC it is not clear when to use each one of the option)?

0 votes

In case there is a DRA between PGW and PCRF, then what should ideally be sent in the Destination-Host AVP in the CCR-Initial messsage?Do we send the Destination-Host name for the final destination of the PCRF or is it the next hop peer ; which is the DRA in this case?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.