A sample wireshark capture on Diameter Credit control (DCC) ; session control ; Update Answer - which may be useful to DCC beginners for using in seagull tool for learning purposes.
Diameter Protocol
Version: 0x01
Length: 248
Flags: 0x40
0... .... = Request: Not set
.1.. .... = Proxyable: Set
..0. .... = Error: Not set
...0 .... = T(Potentially re-transmitted message): Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
Command Code: 272 Credit-Control
ApplicationId: Diameter Credit Control Application (4)
Hop-by-Hop Identifier: 0x21000dfb
End-to-End Identifier: 0x1b10dcbb
AVP: Session-Id(263) l=33 f=-M- val=slite;3630389812;596;6068
AVP Code: 263 Session-Id
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 33
Session-Id: slite;3630389812;596;6068
Padding: 000000
AVP: Origin-Host(264) l=23 f=-M- val=slite
AVP Code: 264 Origin-Host
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 23
Origin-Host: slite
Padding: 00
AVP: Origin-Realm(296) l=20 f=-M- val=shareoliteBG
AVP Code: 296 Origin-Realm
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 20
Origin-Realm: shareoliteBG
AVP: Result-Code(268) l=12 f=-M- val=DIAMETER_SUCCESS (2001)
AVP Code: 268 Result-Code
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Result-Code: DIAMETER_SUCCESS (2001)
AVP: Auth-Application-Id(258) l=12 f=-M- val=Diameter Credit Control (4)
AVP Code: 258 Auth-Application-Id
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Auth-Application-Id: Diameter Credit Control (4)
AVP: CC-Request-Number(415) l=12 f=-M- val=1
AVP Code: 415 CC-Request-Number
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
CC-Request-Number: 1
AVP: CC-Request-Type(416) l=12 f=-M- val=UPDATE_REQUEST (2)
AVP Code: 416 CC-Request-Type
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
CC-Request-Type: UPDATE_REQUEST (2)
AVP: Multiple-Services-Credit-Control(456) l=100 f=-M-
AVP Code: 456 Multiple-Services-Credit-Control
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 100
Multiple-Services-Credit-Control:
AVP: Rating-Group(432) l=12 f=-M- val=45
AVP Code: 432 Rating-Group
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Rating-Group: 45
AVP: Result-Code(268) l=12 f=-M- val=DIAMETER_SUCCESS (2001)
AVP Code: 268 Result-Code
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Result-Code: DIAMETER_SUCCESS (2001)
AVP: Granted-Service-Unit(431) l=24 f=-M-
AVP Code: 431 Granted-Service-Unit
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 24
Granted-Service-Unit:
AVP: CC-Total-Octets(421) l=16 f=-M- val=1024000
AVP Code: 421 CC-Total-Octets
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
CC-Total-Octets: 1024000
AVP: Quota-Holding-Time(871) l=16 f=VM- vnd=TGPP val=900
AVP Code: 871 Quota-Holding-Time
AVP Flags: 0xc0
1... .... = Vendor-Specific: Set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
AVP Vendor Id: 3GPP (10415)
Quota-Holding-Time: 900
AVP: Volume-Quota-Threshold(869) l=16 f=VM- vnd=TGPP val=1024000
AVP Code: 869 Volume-Quota-Threshold
AVP Flags: 0xc0
1... .... = Vendor-Specific: Set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
AVP Vendor Id: 3GPP (10415)
Volume-Quota-Threshold: 1024000
AVP: Validity-Time(448) l=12 f=-M- val=900
AVP Code: 448 Validity-Time
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Validity-Time: 900
Diameter Protocol
Version: 0x01
Length: 248
Flags: 0x40
0... .... = Request: Not set
.1.. .... = Proxyable: Set
..0. .... = Error: Not set
...0 .... = T(Potentially re-transmitted message): Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
Command Code: 272 Credit-Control
ApplicationId: Diameter Credit Control Application (4)
Hop-by-Hop Identifier: 0x21000dfb
End-to-End Identifier: 0x1b10dcbb
AVP: Session-Id(263) l=33 f=-M- val=slite;3630389812;596;6068
AVP Code: 263 Session-Id
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 33
Session-Id: slite;3630389812;596;6068
Padding: 000000
AVP: Origin-Host(264) l=23 f=-M- val=slite
AVP Code: 264 Origin-Host
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 23
Origin-Host: slite
Padding: 00
AVP: Origin-Realm(296) l=20 f=-M- val=shareoliteBG
AVP Code: 296 Origin-Realm
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 20
Origin-Realm: shareoliteBG
AVP: Result-Code(268) l=12 f=-M- val=DIAMETER_SUCCESS (2001)
AVP Code: 268 Result-Code
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Result-Code: DIAMETER_SUCCESS (2001)
AVP: Auth-Application-Id(258) l=12 f=-M- val=Diameter Credit Control (4)
AVP Code: 258 Auth-Application-Id
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Auth-Application-Id: Diameter Credit Control (4)
AVP: CC-Request-Number(415) l=12 f=-M- val=1
AVP Code: 415 CC-Request-Number
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
CC-Request-Number: 1
AVP: CC-Request-Type(416) l=12 f=-M- val=UPDATE_REQUEST (2)
AVP Code: 416 CC-Request-Type
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
CC-Request-Type: UPDATE_REQUEST (2)
AVP: Multiple-Services-Credit-Control(456) l=100 f=-M-
AVP Code: 456 Multiple-Services-Credit-Control
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 100
Multiple-Services-Credit-Control:
AVP: Rating-Group(432) l=12 f=-M- val=45
AVP Code: 432 Rating-Group
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Rating-Group: 45
AVP: Result-Code(268) l=12 f=-M- val=DIAMETER_SUCCESS (2001)
AVP Code: 268 Result-Code
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Result-Code: DIAMETER_SUCCESS (2001)
AVP: Granted-Service-Unit(431) l=24 f=-M-
AVP Code: 431 Granted-Service-Unit
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 24
Granted-Service-Unit:
AVP: CC-Total-Octets(421) l=16 f=-M- val=1024000
AVP Code: 421 CC-Total-Octets
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
CC-Total-Octets: 1024000
AVP: Quota-Holding-Time(871) l=16 f=VM- vnd=TGPP val=900
AVP Code: 871 Quota-Holding-Time
AVP Flags: 0xc0
1... .... = Vendor-Specific: Set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
AVP Vendor Id: 3GPP (10415)
Quota-Holding-Time: 900
AVP: Volume-Quota-Threshold(869) l=16 f=VM- vnd=TGPP val=1024000
AVP Code: 869 Volume-Quota-Threshold
AVP Flags: 0xc0
1... .... = Vendor-Specific: Set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 16
AVP Vendor Id: 3GPP (10415)
Volume-Quota-Threshold: 1024000
AVP: Validity-Time(448) l=12 f=-M- val=900
AVP Code: 448 Validity-Time
AVP Flags: 0x40
0... .... = Vendor-Specific: Not set
.1.. .... = Mandatory: Set
..0. .... = Protected: Not set
...0 .... = Reserved: Not set
.... 0... = Reserved: Not set
.... .0.. = Reserved: Not set
.... ..0. = Reserved: Not set
.... ...0 = Reserved: Not set
AVP Length: 12
Validity-Time: 900