A sample Diameter credit control - Session Control - Abort Session Answer (ASA) wireshark capture which may help Diameter base protocol beginners.
Diameter Protocol
Version: 0x01
Length: 128
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: 274 Abort-Session
ApplicationId: Diameter Credit Control Application (4)
Hop-by-Hop Identifier: 0x88f628db
End-to-End Identifier: 0xc3ef6b84
AVP: Session-Id(263) l=33 f=-M- val=shareo;3640208403;642;9328
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: shareo;3640208403;642;9328
Padding: 000000
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: Origin-Host(264) l=13 f=-M- val=shareo
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: 13
Origin-Host: shareo
Padding: 000000
AVP: Origin-Realm(296) l=20 f=-M- val=shareolite
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: shareolite
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: Origin-State-Id(278) l=12 f=-M- val=3626120984
AVP Code: 278 Origin-State-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
Origin-State-Id: 3626120984
Version: 0x01
Length: 128
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: 274 Abort-Session
ApplicationId: Diameter Credit Control Application (4)
Hop-by-Hop Identifier: 0x88f628db
End-to-End Identifier: 0xc3ef6b84
AVP: Session-Id(263) l=33 f=-M- val=shareo;3640208403;642;9328
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: shareo;3640208403;642;9328
Padding: 000000
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: Origin-Host(264) l=13 f=-M- val=shareo
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: 13
Origin-Host: shareo
Padding: 000000
AVP: Origin-Realm(296) l=20 f=-M- val=shareolite
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: shareolite
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: Origin-State-Id(278) l=12 f=-M- val=3626120984
AVP Code: 278 Origin-State-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
Origin-State-Id: 3626120984