File: diameter_intro.md

package info (click to toggle)
erlang 1%3A28.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 235,640 kB
  • sloc: erlang: 1,685,753; ansic: 436,891; cpp: 178,143; xml: 82,195; makefile: 15,086; sh: 14,588; lisp: 9,856; java: 8,603; asm: 6,829; perl: 5,874; python: 5,482; sed: 72
file content (60 lines) | stat: -rw-r--r-- 3,098 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!--
%CopyrightBegin%

SPDX-License-Identifier: Apache-2.0

Copyright Ericsson AB 2023-2025. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

%CopyrightEnd%
-->
# Introduction

The diameter application is an implementation of the Diameter protocol as
defined by RFC 6733. It supports arbitrary Diameter applications by way of a
_dictionary_ interface that allows messages and AVPs to be defined and input
into diameter as configuration. It has support for all roles defined in the RFC:
client, server and agent. This chapter provides a short overview of the
application.

A Diameter node is implemented by configuring a _service_ and one or more
_transports_ using the interface module `m:diameter`. The service configuration
defines the Diameter applications to be supported by the node and, typically,
the capabilities that it should send to remote peers at capabilities exchange
upon the establishment of transport connections. A transport is configured on a
service and provides protocol-specific send/receive functionality by way of a
transport interface defined by diameter and implemented by a transport module.
The diameter application provides two transport modules: `m:diameter_tcp` and
`m:diameter_sctp` for transport over TCP (using `m:gen_tcp`) and SCTP (using
`m:gen_sctp`) respectively. Other transports can be provided by any module that
implements diameter's [transport interface](`m:diameter_transport`).

While a service typically implements a single Diameter node (as identified by an
Origin-Host AVP), transports can themselves be associated with capabilities AVPs
so that a single service can be used to implement more than one Diameter node.

Each Diameter application defined on a service is configured with a callback
module that implements the [application interface](`m:diameter_app`) through
which diameter communicates the connectivity of remote peers, requests peer
selection for outgoing requests, and communicates the reception of incoming
Diameter request and answer messages. An application using diameter implements
these application callback modules to provide the functionality of the Diameter
node(s) it implements.

Each Diameter application is also configured with a dictionary module that
provide encode/decode functionality for outgoing/incoming Diameter messages
belonging to the application. A dictionary module is generated from a
[dictionary file](diameter_dict.md) using the [diameterc](diameterc_cmd.md)
utility. Dictionaries for the RFC 6733 Diameter Common Messages, Base Accounting
and Relay applications are provided with the diameter application.