Diameter Base Protocol Feature Guide For Subscriber Management
Diameter Base Protocol Feature Guide For Subscriber Management
Release
14.1
Published: 2014-04-25
ii
Table of Contents
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation and Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Supported Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Using the Examples in This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Merging a Full Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Merging a Snippet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Opening a Case with JTAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Part 1
Overview
Chapter 1
Part 2
Configuration
Chapter 2
Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Configuring Diameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Chapter 3
Chapter 4
Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
[edit diameter] Hierarchy Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
address (Diameter Peer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
address (Diameter Transport) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
connect-actively . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
destination (Diameter Network Element) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
diameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
forwarding (Diameter Network Element) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
function (Diameter Network Element) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
function (Diameter Route) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
host (Diameter Origin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
logical-system (Diameter Peer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
iii
Part 3
Administration
Chapter 5
Chapter 6
Monitoring Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
clear diameter function statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
clear diameter peer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
show diameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
show diameter function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
show diameter function statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
show diameter instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
show diameter network-element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
show diameter network-element map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
show diameter peer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
show diameter peer map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
show diameter peer statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
show diameter route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Part 4
Troubleshooting
Chapter 7
iv
Table of Contents
Configuring the Severity Level to Filter Which Diameter Base Protocol Messages
Are Logged . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Collecting Subscriber Access Logs Before Contacting Juniper Technical
Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Chapter 8
Chapter 9
Part 5
Index
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
vi
List of Tables
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Table 1: Notice Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Table 2: Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Part 1
Overview
Chapter 1
Part 3
Administration
Chapter 6
Monitoring Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 7: show diameter Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Table 8: show diameter function Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Table 9: show diameter function statistics Output Fields . . . . . . . . . . . . . . . . . . . 66
Table 10: show diameter instance Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Table 11: show diameter network-element Output Fields . . . . . . . . . . . . . . . . . . . . 71
Table 12: show diameter network-element map Output Fields . . . . . . . . . . . . . . . 74
Table 13: show diameter peer Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Table 14: show diameter peer map Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . 82
Table 15: show diameter peer statistics Output Fields . . . . . . . . . . . . . . . . . . . . . . 85
Table 16: show diameter route Output Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
vii
viii
To obtain the most current version of all Juniper Networks technical documentation,
see the product documentation page on the Juniper Networks website at
http://www.juniper.net/techpubs/.
If the information in the latest release notes differs from the information in the
documentation, follow the product Release Notes.
Juniper Networks Books publishes books by Juniper Networks engineers and subject
matter experts. These books go beyond the technical documentation to explore the
nuances of network architecture, deployment, and administration. The current list can
be viewed at http://www.juniper.net/books.
Supported Platforms
For the features described in this document, the following platforms are supported:
MX Series
ix
If the example configuration does not start at the top level of the hierarchy, the example
is a snippet. In this case, use the load merge relative command. These procedures are
described in the following sections.
From the HTML or PDF version of the manual, copy a configuration example into a
text file, save the file with a name, and copy the file to a directory on your routing
platform.
For example, copy the following configuration to a file and name the file ex-script.conf.
Copy the ex-script.conf file to the /var/tmp directory on your routing platform.
system {
scripts {
commit {
file ex-script.xsl;
}
}
}
interfaces {
fxp0 {
disable;
unit 0 {
family inet {
address 10.0.0.1/24;
}
}
}
}
2. Merge the contents of the file into your routing platform configuration by issuing the
Merging a Snippet
To merge a snippet, follow these steps:
1.
From the HTML or PDF version of the manual, copy a configuration snippet into a text
file, save the file with a name, and copy the file to a directory on your routing platform.
For example, copy the following snippet to a file and name the file
ex-script-snippet.conf. Copy the ex-script-snippet.conf file to the /var/tmp directory
on your routing platform.
commit {
file ex-script-snippet.xsl; }
2. Move to the hierarchy level that is relevant for this snippet by issuing the following
[edit]
user@host# edit system scripts
[edit system scripts]
3. Merge the contents of the file into your routing platform configuration by issuing the
For more information about the load command, see the CLI User Guide.
Documentation Conventions
Table 1 on page xi defines notice icons used in this guide.
Meaning
Description
Informational note
Caution
Warning
Laser warning
Tip
Best practice
Table 2 on page xi defines the text and syntax conventions used in this guide.
Description
Examples
xi
Description
Examples
| (pipe symbol)
broadcast | multicast
# (pound sign)
[ ] (square brackets)
; (semicolon)
[edit]
root@# set system domain-name
domain-name
[edit]
routing-options {
static {
route default {
nexthop address;
retain;
}
}
}
GUI Conventions
Bold text like this
xii
Description
Examples
Documentation Feedback
We encourage you to provide feedback, comments, and suggestions so that we can
improve the documentation. You can send your comments to
[email protected], or fill out the documentation feedback form at
https://www.juniper.net/cgi-bin/docbugreport/. If you are using e-mail, be sure to include
the following information with your comments:
JTAC hours of operationThe JTAC centers have resources available 24 hours a day,
7 days a week, 365 days a year.
Find solutions and answer questions using our Knowledge Base: http://kb.juniper.net/
xiii
To verify service entitlement by product serial number, use our Serial Number Entitlement
(SNE) Tool: https://tools.juniper.net/SerialNumberEntitlementSearch/
xiv
PART 1
Overview
CHAPTER 1
2. In the event of a tie, the route with the highest specification score is selected.
3. In the event of another tie, then the names of the DNEs are compared in lexicographical
order. The route in the DNE with the lowest value is selected. For example, dne-austin
has a lower value than dne-boston.
4. If the routes are tied within the same DNE, then the route names are compared in
When the state of any DNE changes, the route lookup for all destinations is reevaluated.
All outstanding messages to routed destinations are rerouted as needed, or discarded.
To configure a Diameter network element, include the network-element statement at
the [edit diameter] hierarchy level. Include the route statement at the [edit diameter
network-element element-name forwarding] hierarchy level.
To configure a route for the DNE, include the destination (optional), function (optional),
and metric statements at the [edit diameter network-element element-name forwarding
route dne-route-name] hierarchy level.
Specify the Diameter peers associated with the DNE by including one or more peer
statements at the [edit diameter network-element element-name] hierarchy level.
Set the priority for each peer with the priority statement at the [edit diameter
network-element element-name peer peer-name] hierarchy level.
Diameter requires you to configure information about the origin node; this is the endpoint
node that originates Diameter for the Diameter instance. Include the host and realm
statements at the [edit diameter] hierarchy level to configure the Diameter origin.
You can optionally configure one or more transports to specify the source (local) address
of the transport layer connection. To configure a Diameter transport, include the transport
statement at the [edit diameter] hierarchy level. Then include the address statement at
the [edit diameter transport transport-name] hierarchy level.
You can optionally specify a logical system and routing instance for the connection by
including the logical-system and routing-instance statements at the [edit diameter
transport transport-name] hierarchy level. By default, Diameter uses the default logical
system and master routing instance. The logical system and routing instance for the
transport connection must match that for the peer, or a configuration error is reported.
Each Diameter peer is specified by a name. Peer attributes include address and the
destination TCP port used by active connections to this peer. To configure a Diameter
peer, include the peer statement at the [edit diameter] hierarchy level, and then include
the address and connect-actively statements at the [edit diameter peer peer-name]
hierarchy level.
To configure the active connection, include the port and transport statements at the [edit
diameter peer peer-name connect-actively] hierarchy level. The assigned transport identifies
the transport layer source address used to establish active connections to the peers.
transport statements.
Related
Documentation
Juniper Networks Session and Resource Control (SRC) and JSRC Overview
Juniper Networks Session and Resource Control (SRC) and PTSP Overview
Gx-PlusAn application that extends the 3GPP Gx interface for wireline use cases.
3GPP Gx is registered with the IANA (http://www.iana.org). Communicates with a
PCRF.
If data for a particular AVP included in a message is not available to the router, Gx-Plus
simply omits the AVP from the message it sends to the PCRF. If the PCRF determines
it has insufficient information to make a decision, it may deny the request. The Diameter
answer messages include the Result-Code AVP (AVP 268); the values of this AVP
convey success, failure, or errors to the requestor.
Code
Application
Description
AA-Request (AAR)
265
JSRC, PTSP
Diameter Message
Code
Application
Description
AA-Answer (AAA)
265
JSRC, PTSP
Abort-Session-Request (ASR)
274
JSRC, PTSP
Abort-Session-Answer (ASA)
274
JSRC, PTSP
Accounting-Request (ACR)
271
JSRC, PTSP
Accounting-Answer (ACA)
271
JSRC, PTSP
Code
Application
Description
Credit-Control-Request (CCR)
272
Gx-Plus
Code
Application
Description
Credit-Control-Answer (CCA)
272
Gx-Plus
Juniper-Session-Discovery-Request
(JSDR)
8388629
Gx-Plus
Juniper-Session-Discovery-Answer
(JSDA)
8388629
Gx-Plus
2002DIAMETER_LIMITED_SUCCESS;
some of the session information was
sent, but more remains to be sent.
Juniper-Session-Event-Request
(JSER)
8388628
Gx-Plus
Juniper-Session-Event-Answer
(JSEA)
8388628
Gx-Plus
Push-Profile-Request (PPR)
288
JSRC, PTSP
Code
Application
Description
Push-Profile-Answer (PPA)
288
JSRC, PTSP
Re-Auth-Request (RAR)
258
Gx-Plus
Re-Auth-Answer (RAA)
258
Gx-Plus
2001DIAMETER_SUCCESS;
subscriber entry was found.
5002DIAMETER_UNKNOWN_SESSION_ID;
subscriber entry was not found.
3002DIAMETER_UNABLE_TO_DELIVER;
Gx-Plus is not configured.
Session-Resource-Query (SRQ)
277
JSRC, PTSP
Session-Resource-Reply (SRR)
277
JSRC, PTSP
Session-Termination-Request
(STR)
275
JSRC, PTSP
Session-Termination-Answer (STA)
275
JSRC, PTSP
Related
Documentation
Juniper Networks Session and Resource Control (SRC) and JSRC Overview
Juniper Networks Session and Resource Control (SRC) and PTSP Overview
Diameter AVP
Application
Description
Type
User-Name
Gx-Plus, JSRC
UTF8String
Framed-IP-Address
Gx-Plus, JSRC,
PTSP
OctetString
55
Event-Timestamp
Gx-Plus, JSRC,
PTSP
Time
85
Acct-Interim-Interval
JSRC, PTSP
Unsigned32
87
NAS-Port-Id
Gx-Plus, JSRC,
PTSP
UTF8String
263
Session-ID
Gx-Plus, JSRC,
PTSP
UTF8String
10
Diameter AVP
Application
Description
Type
268
Result-Code
Gx-Plus, JSRC,
PTSP
Unsigned32
1xxxInformational
2xxxSuccess
3xxxProtocol errors
4xxxTransient errors
5xxxPermanent failures
2001DIAMETER SUCCESS
11
Diameter AVP
Application
Description
Type
277
Auth-Session-State
JSRC, PTSP
Enumerated
295
Termination-Cause
JSRC, PTSP
0STATE MAINTAINED
1DIAMETER LOGOUT
4DIAMETER ADMINISTRATIVE
Enumerated
415
CC-Request-Number
Gx-Plus
Unsigned32
416
CC-Request-Type
Gx-Plus
Enumerated
TERMINATION_REQUEST (3)
431
Granted-Service-Unit
Gx-Plus
Grouped
446
Used-Service-Unit
Gx-Plus
Grouped
12
Diameter AVP
Application
Description
Type
480
Accounting-Record-Type
JSRC, PTSP
Enumerated
INTERIM_RECORDAccounting record
sent between the start and stop records,
at intervals specified by the
Acct-Interim-Interval AVP (AVP code
85). It contains cumulative accounting
data for the existing accounting session.
START_RECORDAccounting record
sent when the service is activated to
initiate the accounting session. It
contains accounting data relevant to
the initiation of that session.
STOP_RECORDAccounting record
sent when the service is deactivated to
terminate the accounting session. It
contains cumulative data relevant to
that session.
1001
Charging-Rule-Install
Gx-Plus
Grouped
1002
Charging-Rule-Remove
Gx-Plus
Grouped
1005
Charging-Rule-Name
Gx-Plus
OctetString
1066
Monitoring-Key
Gx-Plus
OctetString
1067
Usage-Monitoring-Information
Gx-Plus
Grouped
13
Juniper Networks AVPs are used in addition to the standard Diameter AVPs. These AVPs
have an enterprise number of 2636. Table 5 on page 14 lists the Juniper Networks AVPs
that the supported Diameter applications use.
Diameter AVP
Application
Description
Type
2004
Juniper-Service-Bundle
JSRC
OctetString
2010
Juniper-DHCP-Options
JSRC
OctetString
2011
Juniper-DHCP-GI-Address
JSRC
OctetString
2020
Juniper-Policy-Install
JSRC, PTSP
Grouped
2021
Juniper-Policy-Name
JSRC, PTSP
OctetString
2022
Juniper-Policy-Definition
JSRC, PTSP
Grouped
2023
Juniper-Template-Name
JSRC, PTSP
UTF8String
2024
Juniper-Substitution
JSRC, PTSP
OctetString
2025
Juniper-Substitution-Name
JSRC, PTSP
OctetString
2026
Juniper-Substitution-Value
JSRC, PTSP
OctetString
2027
Juniper-Policy-Remove
JSRC, PTSP
Grouped
2035
Juniper-Policy-Failed
JSRC, PTSP
OctetString
2038
Juniper-Policy-Success
JSRC, PTSP
OctetString
2046
Juniper-Logical-System
JSRC, PTSP
UTF8String
2047
Juniper-Routing-Instance
JSRC, PTSP
UTF8String
2048
Juniper-Jsrc-Partition
JSRC, PTSP
Grouped
14
Diameter AVP
Application
Description
Type
2050
Juniper-Request-Type
JSRC, PTSP
Enumerated
2051
2052
Juniper-Synchronization-Type
Juniper-Synchronization
JSRC, PTSP
JSRC, PTSP
1ADDRESS_AUTHORIZATION
2PROVISIONING_REQUEST
3SYNCHRONIZATION
1FULL-SYNC
2FAST-SYNC
3NO-STATE-TO-SYNC
2SYNC-IN-PROGRESS
3SYNC-COMPLETE
Enumerated
Enumerated
2053
Juniper-Acct-Record
JSRC, PTSP
Grouped
2054
Juniper-Acct-Collect
JSRC, PTSP
Enumerated
2058
Juniper-State-ID
JSRC, PTSP
1COLLECT_ACCT
2NOT_COLLECT_ACCT
Unsigned32
Juniper-Virtual-Router
Gx-Plus,
JSRC
UTF8String
15
Diameter AVP
Application
Description
Type
2101
Juniper-Provisioning-Source
Gx-Plus
Enumerated
1Local
2Remote
2102
Juniper-Provisioning-Descriptor
Gx-Plus
Grouped
2103
Juniper-Event-Type
Gx-Plus
Enumerated
2104
Juniper-Discovery-Descriptor
Gx-Plus
Grouped
2105
Juniper-Discovery-Type
Gx-Plus
Enumerated
16
Diameter AVP
Application
Description
Type
2106
Juniper-Verbosity-Level
Gx-Plus
Enumerated
2107
Juniper-String-A
Gx-Plus
UTF8String
2108
Juniper-String-B
Gx-Plus
UTF8String
2109
Juniper-String-C
Gx-Plus
UTF8String
2110
Juniper-Unsigned32-A
Gx-Plus
Unsigned32
2111
Juniper-Unsigned32-B
Gx-Plus
Unsigned32
2112
Juniper-Unsigned32-C
Gx-Plus
Unsigned32
Tekelec AVPs are used only for Gx-Plus. These AVPs have an enterprise number of 21274.
Table 6 on page 17 lists the Tekelec AVPs. These four variables are used to provide
substitution values for user-defined CoS service variables.
Diameter AVP
Application
Description
Type
5555
Tekelec-Charging-Rule-Argument-Name
Gx-Plus
OctetString
5556
Tekelec-Charging-Rule-Argument-Value
Gx-Plus
OctetString
17
Diameter AVP
Application
Description
Type
5557
Tekelec-Charging-Rule-Argument
Gx-Plus
Grouped
5558
Tekelec-Charging-Rule-With-Arguments
Gx-Plus
Grouped
Related
Documentation
18
Juniper Networks Session and Resource Control (SRC) and JSRC Overview
Juniper Networks Session and Resource Control (SRC) and PTSP Overview
PART 2
Configuration
19
20
CHAPTER 2
Configuration Overview
Configuring Diameter
You configure Diameter by specifying the endpoint origin, the remote peers, the transport
layer connection, and network elements that associate routes with peers. Only the master
Diameter instance is currently supported. You can configure alternative values for the
master instance only in the context of the master routing instance
To configure Diameter base protocol:
1.
Configure the origin realm and origin host of the Diameter master instance.
See Configuring the Origin Attributes of the Diameter Instance on page 23
See Tracing Diameter Base Protocol Processes for Subscriber Access on page 93.
Related
Documentation
21
22
CHAPTER 3
Specify the name of the host that originates the Diameter message.
[edit diameter origin]
user@host# set host host14
2. Specify the realm of the host that originates the Diameter message.
Related
Documentation
origin on page 38
23
Related
Documentation
24
transport.
[edit diameter transport t1]
user@host# set logical-system ls5
4. (Optional) Configure a routing instance for the transport.
Related
Documentation
Define the Diameter peers. See Configuring Diameter Peers on page 24.
2. (Optional) Associate one or more functions with the network element. All functions
25
Related
Documentation
26
CHAPTER 4
Configuration Statements
connect-actively on page 30
diameter on page 31
27
Related
Documentation
28
address ip-address;
[edit diameter peer peer-name]
address ip-address;
[edit diameter transport transport-name]
29
connect-actively
Syntax
Hierarchy Level
Release Information
Description
connect-actively {
port port-number;
transport transport-name;
}
[edit diameter peer peer-name]
Default
Required Privilege
Level
Related
Documentation
Port 3868 and an automatically assigned local address are used to establish active
connections to a peer.
adminTo view this statement in the configuration.
admin-controlTo add this statement to the configuration.
Options
Required Privilege
Level
Related
Documentation
30
diameter
Syntax
Hierarchy Level
Release Information
Description
diameter {
network-element element-name {
forwarding {
route dne-route-name {
destination realm realm-name <host hostname>;
function function-name <partition partition-name>;
metric route-metric;
}
}
function function-name;
peer peer-name {
priority priority-number;
}
}
origin {
host hostname;
realm realm-name;
}
peer peer-name {
address ip-address;
connect-actively {
port port-number;
transport transport-name;
}
logical-system logical-system-name <routing-instance routing-instance-name> ;
routing-instance routing-instance-name;
}
transport transport-name {
address;
logical-system logical-system-name <routing-instance routing-instance-name>;
routing-instance routing-instance-name;
}
}
[edit]
Required Privilege
Level
Related
Documentation
31
forwarding {
route dne-route-name {
destination realm realm-name <host hostname>;
function function-name <partition partition-name>;
metric route-metric;
}
}
Hierarchy Level
Release Information
Description
Define the criteria that specify which destinations are reachable through the Diameter
network element.
The remaining statements are explained separately.
Required Privilege
Level
Related
Documentation
Description
Default
Options
function function-name;
[edit diameter network-element element-name]
32
Description
Default
Options
Required Privilege
Level
Related
Documentation
host hostname;
[edit diameter origin]
33
Options
34
NOTE: The logical system and routing instance must match that for the peer
or a configuration error is reported.
Options
35
Options
metric route-metric;
[edit diameter network-statement element-name forwarding route dne-route-name]
36
Hierarchy Level
Release Information
Description
Options
network-element element-name {
forwarding {
route dne-route-name {
destination realm realm-name <host hostname> ;
function function-name <partition partition-name>;
metric route-metric;
}
}
function function-name;
peer peer-name {
priority priority-number;
}
}
[edit diameter]
37
Hierarchy Level
Release Information
Description
origin {
host hostname;
realm realm-name;
}
[edit diameter]
Required Privilege
Level
Related
Documentation
Hierarchy Level
Release Information
Description
Options
peer peer-name {
address ip-address;
connect-actively {
port port-number;
transport transport-name;
}
logical-system logical-system-name <routing-instance routing-instance-name>;
routing-instance routing-instance-name;
}
[edit diameter]
38
peer peer-name {
priority priority-value;
}
Hierarchy Level
Release Information
Description
Options
port port-number;
Hierarchy Level
Release Information
Description
Options
Specify the destination TCP port used by the active connection to peer.
port-numberNumber of the TCP port.
Default: 3868
Required Privilege
Level
Related
Documentation
39
Options
priority priority-value;
[edit diameter network-element element-name peer peer-name]
realm realm-name;
[edit diameter origin]
40
Hierarchy Level
Release Information
Description
Options
route dne-route-name {
destination realm realm-name <host hostname>;
function function-name <partition partition-name>;
metric route-metric;
}
[edit diameter network-element element-name forwarding]
Options
routing-instance routing-instance-name ;
[edit diameter peer peer-name]
41
routing-instance routing-instance-name ;
[edit diameter transport transport-name]
42
Hierarchy Level
traceoptions {
file filename <files number> <match regular-expression > <size maximum-file-size>
<world-readable | no-world-readable>;
flag flag;
level (all | error | info | notice | verbose | warning);
no-remote-trace;
}
[edit system processes diameter-service]
Release Information
Description
Options
file filenameName of the file to receive the output of the tracing operation. Enclose the
filename within quotation marks. All files are placed in the directory /var/log.
files number(Optional) Maximum number of trace files to create before overwriting the
oldest one. If you specify a maximum number of files, you also must specify a
maximum file size with the size option.
Range: 2 through 1000
Default: 3 files
flag flagTracing operation to perform. To specify more than one tracing operation,
include multiple flag statements. You can include the following flags:
levelLevel of tracing to perform. You can specify any of the following levels:
43
match regular-expression(Optional) Refine the output to include lines that contain the
regular expression.
no-remote-traceDisable remote tracing.
no-world-readable(Optional) Disable unrestricted file access.
size maximum-file-size(Optional) Maximum size of each trace file. By default, the number
entered is treated as bytes. Alternatively, you can include a suffix to the number to
indicate kilobytes (KB), megabytes (MB), or gigabytes (GB). If you specify a maximum
file size, you also must specify a maximum number of trace files with the files option.
Syntax: sizek to specify KB, sizem to specify MB, or sizeg to specify GB
Range: 10240 through 1073741824
Default: 128 KB
world-readable(Optional) Enable unrestricted file access.
Required Privilege
Level
Related
Documentation
44
Hierarchy Level
Release Information
Description
Options
transport transport-name {
address;
logical-system logical-system-name <routing-instance routing-instance-name >;
routing-instance routing-instance-name
}
[edit diameter]
transport transport-name;
Hierarchy Level
Release Information
Description
Default
Options
Required Privilege
Level
Related
Documentation
Specify the transport layer connection to be used for establishing active connections to
the peer.
The transport is defined in the default logical system and master routing instance.
transport-nameName of the transport.
45
46
PART 3
Administration
47
48
CHAPTER 5
To display summary information about all Diameter nodes and add information about
Diameter functions, instances, network elements, and peers:
user@host> show diameter brief
To display brief information about all Diameter nodes and add information about
Diameter routes:
user@host> show diameter detail
To display information about a specific Diameter instance, add the instance name to
the command:
user@host> show diameter instance master
user@host> show diameter instance detail master
49
To display information about a specific Diameter route, add the route name to the
command:
user@host> show diameter route dne-route2
user@host> show diameter route detail dne-route2
Related
Documentation
Configuring Gx-Plus
CLI Explorer
To display information about a specific function associated with Diameter, add the
function name to the command:
user@host> show diameter function jsrc
user@host> show diameter function detail ptsp
To display statistics about a specific function associated with Diameter, add the
function name to the command:
user@host> show diameter function statistics gx-plus
user@host> show diameter function statistics detail jsrc
Related
Documentation
50
Configuring Gx-Plus
CLI Explorer
To display information about a specific Diameter peer, add the peer name to the
command:
user@host> show diameter peer peer235
user@host> show diameter peer detail peer235
51
Related
Documentation
CLI Explorer
Related
Documentation
52
CLI Explorer
CHAPTER 6
Monitoring Commands
show diameter
53
Description
Options
clear
Juniper Networks Session and Resource Control (SRC) and JSRC Overview
PTSP Overview
Sample Output
clear diameter function statistics
user@host> clear diameter function jsrc statistics
54
Options
Required Privilege
Level
Related
Documentation
clear
Sample Output
clear diameter peer
user@host> clear diameter peer peer5 connection
55
show diameter
Syntax
Release Information
Description
Options
show diameter
<brief | detail | summary>
output is displayed by default and includes Diameter node status. The brief output
adds summary information about functions, instances, network elements, and peers.
The detail output adds summary information about routes.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Diameter process
id
All levels
Functions
All levels
Connected
functions
All levels
Instances
All levels
56
Field Description
Level of Output
Network elements
(NEs)
All levels
Connected NEs
All levels
Peers
All levels
Activated peers
All levels
Open peers
Number of peers in the open state, without active network element connections
but available for a connection.
All levels
Transports
All levels
Requests queued
for network
transmit
All levels
Answers queued
for network
transmit
All levels
Expected answers
from network
All levels
Requests queued
for function
transmit
All levels
Answers queued
for function
transmit
All levels
Expected answers
from functions
All levels
Memory used by
network transmit
queues
All levels
Memory used by
function transmit
queues
All levels
Origin-state-id
All levels
Function
brief detail
State
brief detail
57
Field Description
Level of Output
Upstream
Transaction
Utilization
brief detail
Downstream
Transaction
Utilization
brief detail
brief detail
brief detail
Routed Dests
Number of destinations that have this function associated with their routes.
brief detail
Name
brief detail
Origin-Realm
brief detail
Origin Host
brief detail
NE-Total
brief detail
NE-Connected
brief detail
Name
brief detail
Instance
brief detail
State
brief detail
ConnectingNone of the network element peers are in the open state and
available for connection.
Primary Peer
Primary peer for the network element, based on the configured peer priority.
brief detail
Secondary Peer
Secondary peer for the network element, based on the configured peer priority.
brief detail
Peer
brief detail
58
Field Description
Level of Output
Instance
brief detail
State
brief detail
Bad-ConfigMisconfiguration.
Internal-errorInternal error has been detected and the peer is in the process
of restarting.
NE-Count
brief detail
Activated Count
brief detail
1Peer is activated.
Primary Count
brief detail
Secondary Count
brief detail
Route
detail
NE
detail
Instance
detail
Valid
detail
Up
State of the route: yes for an active route, no for an inactive route.
detail
Sample Output
show diameter brief
user@host> show diameter brief
Diameter node:
Diameter process id
Functions
Connected functions
:
:
:
1446
4
2
59
Instances
Network elements(NEs)
Connected NEs
Peers
Activated peers
Open peers
Transports
Requests queued for network transmit
Answers queued for network transmit
Expected answers from network
Requests queued for function transmit
Answers queued for function transmit
Expected answers from functions
Memory used by network transmit queues
Memory used by function transmit queues
Origin-state-id
Diameter function list:
Upstream
Transaction
Utilization
Function State
%
charging- Disconnec
0
gx-plus
Connected
0
jsrc
Connected
0
packet-tr Disconnec
0
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
1
1
0
2
1
0
1
0
0
0
0
0
0
0
0
0
Downstream
Transaction
Utilization
%
0
0
0
0
Diameter instances:
Name
Origin-Realm
master
orrr
Net Queue
Buffer
Utilization
%
0
0
0
0
Origin-Host
ohhh
Func Queue
Buffer
Routed
Utilization Dests
%
0
0
0
1
0
0
0
0
NE-Total
1
NE-Connected
0
Diameter network-elements:
Name
n0
Instance
master
Primary
Peer
<NONE>
State
Connecting
Secondary
Peer
<NONE>
Instance
master
master
State
Suspended
No-Activation
Valid Up
yes
no
60
:
:
:
:
:
:
:
1446
4
2
1
1
0
2
Activated peers
Open peers
Transports
Requests queued for network transmit
Answers queued for network transmit
Expected answers from network
Requests queued for function transmit
Answers queued for function transmit
Expected answers from functions
Memory used by network transmit queues
Memory used by function transmit queues
Origin-state-id
:
:
:
:
:
:
:
:
:
:
:
:
1
0
1
0
0
0
0
0
0
0
0
0
61
Release Information
Description
Display information about all functions associated with Diameter instances or only the
specified function.
Options
brief | detail | summary(Optional) Display the specified level of output. The summary
output is displayed by default and includes basic function information. The brief
output displays the summary information in a different format. The detail output
adds information to the brief output.
function-name(Optional) Display information for only the specified function. Currently,
Output Fields
view
Field Description
Level of Output
Function name
All levels
State
All levels
Upstream
transaction
utilization
All levels
62
Field Description
Level of Output
Downstream
transaction
utilization
All levels
Network transmit
buffer utilization
All levels
Function transmit
buffer utilization
All levels
Routed
destinations
Number of destinations that have this function associated with their routes.
All levels
Requests queued
for network tx
Number of requests waiting to be sent to the Diameter peers for this function.
detail
Pending answers
from network
Number of replies expected from the Diameter peers for this function.
detail
detail
Total upstream
transactions
pending
detail
Upstream
transactions limit
detail
Requests queued
for function tx
detail
Pending answers
from function
detail
detail
Total downstream
transactions
pending
detail
Downstream
transactions limit
Maximum number of messages that can be queued for the Diameter peers.
detail
Buffers used by
network tx queue
detail
Limit on network tx
queue buffers
Maximum buffer capacity available for messages queued for the Diameter
peers.
detail
63
Field Description
Level of Output
Buffers used by
function tx queue
detail
Limit on function tx
queue buffers
Maximum buffer capacity available for messages queued for this function.
detail
Origin-state-id
detail
Sample Output
show diameter function
user@host> show diameter function
Diameter function list:
Upstream
Transaction
Utilization
Function State
%
jsrc
Disconnec
0
Downstream
Transaction
Utilization
%
0
Net Queue
Buffer
Utilization
%
0
Func Queue
Buffer
Routed
Utilization Dests
%
0
0
: gx-plus
State
Upstream transaction utilization
Downstream transaction utilization
Network transmit buffer utilization
Function transmit buffer utilization
Routed destinations
: Connected
:
0 %
:
0 %
:
0 %
:
0 %
:
1
Function name
State
Upstream transaction utilization
Downstream transaction utilization
Network transmit buffer utilization
Function transmit buffer utilization
Routed destinations
: jsrc
: Disconnected
:
0 %
:
0 %
:
0 %
:
0 %
:
0
64
: jsrc
: Disconnected
:
0 %
:
0 %
:
0 %
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
0 %
0
0
0
0
0
1024
0
0
0
0
1024
0
10485760
0
10485760
: gx-plus
: Connected
:
0 %
:
0 %
:
0 %
:
0 %
:
1
:
0
:
0
:
0
:
0
:
1024
:
0
:
0
:
0
:
0
:
1024
:
0
: 10485760
:
0
: 10485760
:
0
65
Release Information
Description
Options
output is displayed by default and includes basic function statistics. The brief output
displays the summary information in a different format and adds numbers
accumulated since the Diameter node was started. The detail output adds
information to the brief output.
function-name(Optional) Display information for only the specified function. Currently,
Output Fields
view
Field Description
Level of Output
Function
All levels
Delivered Requests
All levels
Delivered Answers
All levels
Delivered Messages
All levels
66
Field Description
Level of Output
Forwarded
Requests
All levels
Forwarded Answers
All levels
Forwarded
Messages
All levels
Function name
All levels
Over-limit network
requests
Number of requests sent to Diameter peers that exceeded the limit on the
network transmit queue.
detail
Over-limit network
answers
Number of answers sent to Diameter peers that exceeded the limit on the
network transmit queue.
detail
Over-limit network
messages
Total number of messages sent to Diameter peers that exceeded the limit on
the network transmit queue.
detail
Failed to deliver
requests
detail
Failed to deliver
answers
Number of answers sent by Diameter to its application that were not successfully
delivered.
detail
Failed to deliver
messages
Total number of messages sent by Diameter to its application that were not
successfully delivered.
detail
Over-limit function
requests
Number of requests sent to Diameter peers that exceeded the limit on the
function transmit queue.
detail
Over-limit function
answers
Number of answers sent to Diameter peers that exceeded the limit on the
function transmit queue.
detail
Over-limit function
messages
Total number of messages sent to Diameter peers that exceeded the limit on
the function transmit queue.
detail
Failed to forward
requests
Number of requests that were not successfully sent by Diameter to the network.
detail
Failed to forward
answers
Number of answers that were not successfully sent by Diameter to the network.
detail
Failed to forward
messages
Total number of messages that were not successfully sent by Diameter to the
network.
detail
67
Sample Output
show diameter function statistics
user@host> show diameter function statistics
Diameter function statistics:
Delivered Delivered Delivered Forwarded Forwarded Forwarded
Function Requests Answers
Messages Requests Answers
Messages
jsrc
0
0
0
0
0
0
requests
answers
messages
requests
answers
messages
: jsrc
:
:
:
:
:
:
0
0
0
0
0
0
0
0
0
0
0
0
68
: jsrc
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Release Information
Description
Options
output is displayed by default and includes basic instance information. The brief
output displays the summary information in a different format. The detail output is
the same as the brief output.
instance-name(Optional) Display information for only the specified Diameter instance.
Required Privilege
Level
Related
Documentation
List of Sample Output
Output Fields
view
Field Description
Level of Output
name
summary
Origin-realm
summary
Origin-host
summary
NE-total
summary
NE-connected
summary
Instance name
brief detail
Origin realm
brief detail
Origin host
brief detail
NEs
brief detail
69
Field Description
Level of Output
Connected NEs
brief detail
Sample Output
show diameter instance
user@host> show diameter instance
Diameter instances:
Name
Origin-Realm
master
rrrr
Origin-Host
hhhh
NE-Total
1
NE-Connected
1
: rrrr
Origin host
: hhhh
NEs
:
Connected NEs :
70
1
1
Release Information
Description
Options
output is displayed by default and includes basic network element information. The
brief output displays the summary information in a different format. The detail output
adds information to the brief output.
element-name(Optional) Display information for only the specified network element.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Name
summary
Instance
summary
71
Field Description
Level of Output
State
All levels
ConnectingNone of the network element peers are in the open state and
available for connection.
Primary peer
Primary peer for the network element, based on the configured peer priority.
All levels
Secondary peer
Secondary peer for the network element, based on the configured peer priority.
All levels
NE name
brief detail
Instance name
brief detail
Peers
brief detail
Activated peers
brief detail
Open peers
Number of peers in the open state, without active network element connections
but available for a connection.
brief detail
Routes
brief detail
Invalid routes
Number of routes that are invalid because they lack one or more of the following:
application and partition, Diameter instance, or destination realm.
brief detail
Activation delay
brief detail
Period in milliseconds that the network element waited after connecting to the
first peer to allow other peers to reach the open state.
brief detail
Period in milliseconds that the network element waited after having two peers
in the open state before deactivating all lower-priority peers.
brief detail
Sample Output
show diameter network-element
user@host> show diameter network-element
Diameter network-elements:
Primary
72
Secondary
Name
ne0
Instance
master
State
Peer
Fully-connected p0
Peer
p1
: master
State
Primary peer
: Fully-connected
: p0
Secondary peer
: p1
Peers
Activated peers
Open peers
Routes
Invalid routes
Activation delay
First selection delay
Post selection delay
:
:
:
:
:
:
:
:
5
4
2
1
0
10000 ms
0 ms
30000 ms
73
Release Information
Description
Options
output is displayed by default. The brief output and detail output display the summary
information in a different format.
element-name(Optional) Display information for only the specified network element.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Name
summary
Instance
summary
Peer
All levels
Priority
Priority configured for the peer. A lower number indicates a higher priority.
All levels
State
summary
NE name
74
PrimaryPeer that is connected to the network element and has the higher
priority of the two connected peers.
SecondaryPeer that is connected to the network element and has the lower
priority of the two connected peers.
brief detail
Field Description
Level of Output
Instance name
brief detail
Usage
brief detail
PrimaryPeer that is connected to the network element and has the higher
priority of the two connected peers.
SecondaryPeer that is connected to the network element and has the lower
priority of the two connected peers.
Sample Output
show diameter network-element map
user@host> show diameter network-element map
Diameter network-element peers:
Name
Instance
Peer
ne0
master
p288
ne0
master
p0
ne0
master
pA
ne0
master
p1
ne0
master
pB
Priority
30
20
15
10
5
State
Activated
Primary
Activated
Secondary
Not-Activated
: master
Peer
: p288
Priority
Usage
:
30
: Activated
NE name
: ne0
Instance name
: master
Peer
: p0
Priority
Usage
:
20
: Primary
NE name
: ne0
Instance name
: master
Peer
: pA
75
76
Priority
Usage
:
15
: Activated
NE name
: ne0
Instance name
: master
Peer
: p1
Priority
Usage
:
10
: Secondary
NE name
: ne0
Instance name
: master
Peer
: pB
Priority
Usage
:
5
: Not-Activated
Release Information
Description
Options
output is displayed by default and includes basic peer information. The brief output
displays the summary information in a different format. The detail output adds
information to the brief output.
peer-name(Optional) Display information for only the specified peer.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Peer
brief summary
Instance
brief summary
77
Field Description
Level of Output
State
All levels
Bad-ConfigMisconfiguration.
Internal-errorInternal error has been detected and the peer is in the process
of restarting.
NE-Count
brief summary
Activated Count
All levels
1Peer is activated.
Primary Count
All levels
Secondary Count
All levels
Peer name
detail
NEs
detail
Vrf
detail
Remote address
detail
Remote port
detail
Name of the realm of the Diameter node that originates messages to the peer.
detail
Name of the host of the Diameter node that originates messages to the peer.
detail
Local address
detail
Local port
detail
78
Field Description
Level of Output
Local transport
detail
detail
In state time
detail
Remaining in state
time
detail
Missing wd events
detail
Tx queue length
detail
Answer waiting
count
detail
Number of milliseconds since the last message was received by the peer.
detail
Time until wd
timeout
detail
Operation timeout
detail
Suspended timeout
base
detail
Closed timeout
Timeout period in normal closed state, such as when an external peer requested
a disconnect.
detail
Connection timeout
detail
Whether the peer is waiting for the Origin-State-Id AVP, yes or no.
detail
Sample Output
show diameter peer
user@host> show diameter peer
Diameter peer list:
Peer
p0
p1
p288
pA
pB
Instance
master
master
master
master
master
State
I-Open
I-Open
Suspended
Suspended
No-Activation
79
pc
pd
master
master
No-Activation
No-Activation
0
0
0
0
0
0
0
0
80
Diameter peer:
Peer name
State
NEs
Activated count
Primary count
Secondary count
Vrf
Remote address
Remote port
Remote end origin realm
Remote end origin host
Local address
Local port
Local transport
Time since last enable
In state time
Remaining in state time
Missed wd events
Tx queue length
Answer waiting count
Time since last rx
Time until wd timeout
Operation timeout
Suspended timeout base
Closed timeout
Connection timeout
Waiting origin state id
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
p0
I-Open
1
1
1
0
default:master
10.10.5.28
62917
rrrrA
hhhhA
10.6.128.155
57095
<NO-TRANSPORT>
08:56.200
08:56.200
no limit
0
0
0
2200 ms
3800 ms
6000 ms
30000 ms
30000 ms
6000 ms
no
Peer name
State
NEs
Activated count
Primary count
Secondary count
Vrf
Remote address
Remote port
Remote end origin realm
Remote end origin host
Local address
Local port
Local transport
Time since last enable
In state time
Remaining in state time
Missed wd events
Tx queue length
Answer waiting count
Time since last rx
Time until wd timeout
Operation timeout
Suspended timeout base
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
p1
I-Open
1
1
0
1
default:master
10.10.5.28
58490
rrrrA
hhhhB
10.6.128.155
49293
<NO-TRANSPORT>
08:56.200
08:36.000
no limit
0
0
0
0 ms
6000 ms
6000 ms
30000 ms
Closed timeout
:
Connection timeout
:
Waiting origin state id : no
30000 ms
6000 ms
81
Release Information
Description
Options
output is displayed by default and includes basic peer information. The brief output
displays the summary information in a different format. The detail output adds
information to the brief output.
peer-name(Optional) Display mapping information for only the specified peer.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Peer
All levels
Instance
All levels
NE
All levels
Priority
Priority configured for the peer. A lower number indicates a higher priority.
All levels
82
Field Description
Level of Output
State
All levels
PrimaryPeer that is connected to the network element and has the higher
priority of the two connected peers.
SecondaryPeer that is connected to the network element and has the lower
priority of the two connected peers.
Instance name
brief detail
NE name
brief detail
Usage
brief detail
Sample Output
show diameter peer map
user@host> show diameter peer map
Diameter peer usage by network elements:
Peer
Instance
NE
p0
master
ne0
p1
master
ne0
p288
master
ne0
pA
master
ne0
pB
master
ne0
Priority
20
10
30
15
5
State
Primary
Secondary
Activated
Activated
Not-Activated
: master
NE name
: ne0
Priority
Usage
:
20
: Primary
Peer
: p1
Instance name
: master
NE name
: ne0
Priority
Usage
:
10
: Secondary
Peer
: p288
83
84
Instance name
: master
NE name
: ne0
Priority
Usage
:
30
: Activated
Peer
: pA
Instance name
: master
NE name
: ne0
Priority
Usage
:
15
: Activated
Peer
: pB
Instance name
: master
NE name
: ne0
Priority
Usage
:
5
: Not-Activated
Release Information
Description
Options
output is displayed by default and includes basic function statistics. The brief output
displays the summary information in a different format and adds numbers
accumulated since the peer was connected. The detail output adds information to
the brief output.
peer-name(Optional) Display information for only the specified peer. When you specify
a peer, the brief output is displayed by default, even when you explicitly specify
summary.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Peer
summary brief
Instance
summary brief
Rx
summary brief
Rx-Peer
summary brief
Rx-node
summary brief
85
Field Description
Level of Output
Forw
summary brief
Tx-Peer
summary brief
Tx
summary brief
Peer name
detail
Instance name
detail
Sample Output
show diameter peer statistics
user@host> show diameter peer statistics
Diameter peer statistics:
Peer
Instance
p0
Rx
Rx-Peer
Rx-Node
Forw
Tx-Peer
Tx
master
113
113
113
master
110
110
110
master
master
master
master
master
113
p1
110
p288
0
pA
0
pB
0
pc
0
pd
0
86
CER
CEA
DWR
DWA
DPR
DPA
:
:
:
:
:
:
Peer name
Instance name
: p1
: master
Current
:
0
:
110
:
110
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
0
:
110
:
0
:
110
:
0
:
0
:
0
:
0
:
0
:
0
Rx errors
Rx messages
Rx handled by peer
Rx dropped msgs
Rx unmatched answers
Rx answers
Rx requests
Rx total
Forw to connection
Forw to peer
Forw to routed dest
Total forwarding
Forwarding failures
Forwarding success
Moved-in messages
Moved-out messages
Rerouted messages
Dropped tx messages
Tx by peer
Tx errors
Tx total
Connection attempts
Connection fails
Connections
Passive teminations
Active terminations
Passive disconnects
0
1
0
113
0
0
0
0
0
0
0
0
0
0
114
0
114
1
0
1
0
0
0
0
0
0
Rx since
last enable
Tx current
0
1
0
113
0
0
1
0
113
0
0
0
Tx since
last enable
1
0
113
0
0
0
87
Active disconnects
:
0
Rx block requests
:
0
Rx block timeoutss
:
0
Connection management messages
Rx current
CER
CEA
DWR
DWA
DPR
DPA
88
:
:
:
:
:
:
0
1
0
109
0
0
0
0
0
Rx since
last enable
0
1
0
109
0
0
Tx current
1
0
109
0
0
0
Tx since
last enable
1
0
109
0
0
0
Release Information
Description
Options
output is displayed by default and includes basic function information. The brief
output displays the summary information in a different format. The detail output
adds information to the brief output.
route-name(Optional) Display information for only the specified route.
Required Privilege
Level
Related
Documentation
Output Fields
view
Field Description
Level of Output
Route
summary brief
NE
summary brief
Instance
summary brief
NE name
brief detail
Instance name
brief detail
Valid
All levels
Up
All levels
Function
brief detail
89
Field Description
Level of Output
Partition
brief detail
Dest-realm
brief detail
Dest-host
brief detail
Metric
Metric associated with the destination and function to create the route.
brief detail
Score
Value that represents how a route is configured. The basic score is 0. Points are
added according to the following scheme:
brief detail
Function is specifiedAdd 3.
Sample Output
show diameter route
user@host> show diameter route
Diameter routes:
Route
NE
rA
ne0
Instance
master
Valid Up
yes
yes
90
:
:
:
:
:
:
:
:
:
:
:
rA
ne0
master
yes
yes
jsrc
jsrc-a
outer-realm
outer-host
50
6
PART 4
Troubleshooting
91
92
CHAPTER 7
Configuring the Number and Size of Diameter Base Protocol Log Files on page 94
Configuring the Severity Level to Filter Which Diameter Base Protocol Messages Are
Logged on page 96
Important events are logged in a file located in the /var/log directory. By default, the
router uses the filename jdiameterd. You can specify a different filename, but you
cannot change the directory in which trace files are located.
2. When the trace log file filename reaches 128 kilobytes (KB), it is compressed and
renamed filename.0.gz. Subsequent events are logged in a new file called filename,
until it reaches capacity again. At this point, filename.0.gz is renamed filename.1.gz
and filename is compressed and renamed filename.0.gz. This process repeats until
the number of archived files reaches the maximum file number. Then the oldest trace
filethe one with the highest numberis overwritten.
You can optionally specify the number of trace files to be from 2 through 1000. You
can also configure the maximum file size to be from 10 KB through 1 gigabyte (GB).
For more information about how log files are created, see the Junos OS System Log
Messages Reference.
93
By default, only the user who configures the tracing operation can access log files. You
can optionally configure read-only access for all users.
To configure Diameter base protocol tracing operations:
1.
See Configuring the Number and Size of Diameter Base Protocol Log Files on page 94.
3. (Optional) Configure user access to trace logs.
See Configuring Access to the Diameter Base Protocol Log File on page 95.
4. (Optional) Configure a regular expression to filter the information to be included in
See Configuring the Diameter Base Protocol Tracing Flags on page 96.
6. (Optional) Configure a severity level for messages to specify which event messages
are logged.
See Configuring the Severity Level to Filter Which Diameter Base Protocol Messages
Are Logged on page 96.
Specify the name of the file used for the trace output.
[edit system processes diameter-service traceoptions]
user@host# set file diam_logfile_1
Related
Documentation
Configuring the Number and Size of Diameter Base Protocol Log Files
You can optionally specify the number of compressed, archived trace log files to be from
2 through 1000. You can also configure the maximum file size to be from 10 KB through
1 gigabyte (GB); the default size is 128 kilobytes (KB).
The archived files are differentiated by a suffix in the format .number.gz. The newest
archived file is .0.gz and the oldest archived file is .(maximum number)-1.gz. When the
94
current trace log file reaches the maximum size, it is compressed and renamed, and any
existing archived files are renamed. This process repeats until the maximum number of
archived files is reached, at which point the oldest file is overwritten.
For example, you can set the maximum file size to 2 MB, and the maximum number of
files to 20. When the file that receives the output of the tracing operation, filename,
reaches 2 MB, filename is compressed and renamed filename.0.gz, and a new file called
filename is created. When the new filename reaches 2 MB, filename.0.gz is renamed
filename.1.gz and filename is compressed and renamed filename.0.gz. This process repeats
until there are 20 trace files. Then the oldest file, filename.19.gz, is simply overwritten
when the next oldest file, filename.18.gz is compressed and renamed to filename.19.gz.
To configure the number and size of trace files:
Specify the name, number, and size of the file used for the trace output. (Diameter
base protocol supports the files and size options for the traceoptions statement.)
[edit system processes diameter-service traceoptions]
user@host# set file diam_1 _logfile_1 files 20 size 2097152
Related
Documentation
To explicitly set the default behavior, only the user who configured tracing can read the
log file:
Related
Documentation
95
Related
Documentation
Related
Documentation
Configuring the Severity Level to Filter Which Diameter Base Protocol Messages Are
Logged
The messages associated with a logged event are categorized according to severity level.
You can use the severity level to determine which messages are logged for the event
type. The severity level that you configure depends on the issue that you are trying to
resolve. In some cases you might be interested in seeing all messages relevant to the
logged event, so you specify all or verbose. Either choice generates a large amount of
output. You can specify a more restrictive severity level, such as notice or info to filter the
messages . By default, the trace operation output includes only messages with a severity
level of error.
To configure the type of messages to be logged:
Related
Documentation
96
When you experience a subscriber access problem in your network, we recommend that
you collect certain logs before you contact Juniper Technical Support. This topic shows
you the most useful logs for a variety of network implementations. In addition to the
relevant log information, you must also collect standard troubleshooting information
and send it to Juniper Technical Support in your request for assistance.
Solution
2. Copy the relevant statements into a text file and modify the log filenames as you
want.
3. Copy the statements from the text file and paste them into the CLI on your router to
configure logging.
4. Commit the logging configuration to begin collecting information.
97
NOTE: The maximum file size for DHCP local server and DHCP relay log files
is 1 GB. The maximum number of log files for DHCP local server and DHCP
relay is 1000.
Related
Documentation
98
CHAPTER 8
Cause
Solution
Related
Documentation
Typical misconfigurations appear in the routes, peers, and network element configurations.
Use the appropriate statements to correct the misconfiguration.
In some circumstances, problems can arise with network connectivity to Diameter peers.
The problem may originate with the peer or the peer host.
99
The output of the show diameter peer command indicates a peer is in the suspended,
rejected, or bad-peer state.
Cause
The suspended state indicates that the peer is not responding or has some other
malfunction, or the network path to the peer does not exist.
The rejected state indicates that the network connection has been rejected by the peer.
The bad-peer state indicates that the network connection has been rejected by the router
on which the peer resides.
Solution
Related
Documentation
100
Determine how persistent the problem is by issuing the show diameter peer statistics
peer-name brief command to check the connectivity statistics.
CHAPTER 9
101
Hierarchy Level
traceoptions {
file filename <files number> <match regular-expression > <size maximum-file-size>
<world-readable | no-world-readable>;
flag flag;
level (all | error | info | notice | verbose | warning);
no-remote-trace;
}
[edit system processes diameter-service]
Release Information
Description
Options
file filenameName of the file to receive the output of the tracing operation. Enclose the
filename within quotation marks. All files are placed in the directory /var/log.
files number(Optional) Maximum number of trace files to create before overwriting the
oldest one. If you specify a maximum number of files, you also must specify a
maximum file size with the size option.
Range: 2 through 1000
Default: 3 files
flag flagTracing operation to perform. To specify more than one tracing operation,
include multiple flag statements. You can include the following flags:
levelLevel of tracing to perform. You can specify any of the following levels:
102
match regular-expression(Optional) Refine the output to include lines that contain the
regular expression.
no-remote-traceDisable remote tracing.
no-world-readable(Optional) Disable unrestricted file access.
size maximum-file-size(Optional) Maximum size of each trace file. By default, the number
entered is treated as bytes. Alternatively, you can include a suffix to the number to
indicate kilobytes (KB), megabytes (MB), or gigabytes (GB). If you specify a maximum
file size, you also must specify a maximum number of trace files with the files option.
Syntax: sizek to specify KB, sizem to specify MB, or sizeg to specify GB
Range: 10240 through 1073741824
Default: 128 KB
world-readable(Optional) Enable unrestricted file access.
Required Privilege
Level
Related
Documentation
103
104
PART 5
Index
105
106
Index
Symbols
#, comments in configuration statements....................xii
( ), in syntax descriptions......................................................xii
< >, in syntax descriptions....................................................xii
[ ], in configuration statements..........................................xii
{ }, in configuration statements.........................................xii
| (pipe), in syntax descriptions...........................................xii
A
AAA
with Diameter base protocol........................................3
address statement
Diameter base protocol
peer.............................................................................29
transport...................................................................29
AVPs
Diameter............................................................................10
Juniper Networks
Diameter and Diameter applications.............10
B
braces, in configuration statements.................................xii
brackets
angle, in syntax descriptions.......................................xii
square, in configuration statements........................xii
C
clear diameter function statistics command..............54
clear diameter peer command..........................................55
comments, in configuration statements........................xii
connect-actively statement
Diameter base protocol..............................................30
conventions
text and syntax..................................................................xi
curly braces, in configuration statements......................xii
customer support...................................................................xiii
contacting JTAC..............................................................xiii
D
destination statement
Diameter base protocol..............................................30
Diameter
AVPs.....................................................................................10
messages used by Diameter applications..............5
Diameter base protocol..........................................................3
clearing function statistics.........................................54
clearing peers..................................................................55
configuration overview..................................................21
event log access.............................................................95
event logging...................................................................93
filtering trace operation output................................95
flags for tracing operations........................................96
function information
verifying....................................................................50
function statistics
displaying.................................................................66
function status
displaying.................................................................62
instance information
displaying.................................................................69
verifying....................................................................49
log file size........................................................................94
log filenames...................................................................94
network element configuration................................25
network element information
displaying...................................................................71
verifying.....................................................................52
network element map information
displaying..................................................................74
node information
verifying....................................................................49
node status
displaying.................................................................56
origin attribute configuration.....................................23
peer configuration..........................................................24
peer information
verifying......................................................................51
peer map
displaying.................................................................82
peer statistics
displaying.................................................................85
peer status
displaying..................................................................77
route information
displaying.................................................................89
verifying....................................................................49
tracing operations..........................................................93
transport configuration................................................24
troubleshooting configuration..................................99
troubleshooting connectivity....................................99
107
F
font conventions.......................................................................xi
forwarding statement
Diameter base protocol...............................................32
function statement
Diameter base protocol
network element...................................................32
route...........................................................................33
function statistics
clearing Diameter base protocol..............................54
108
G
Gx-Plus
Diameter AVPs.................................................................10
Diameter messages.........................................................5
verifying......................................................................49, 50
H
host statement
Diameter base protocol...............................................33
J
JSRC
Diameter AVPs.................................................................10
Diameter messages.........................................................5
verifying......................................................................49, 50
L
log files
access to Diameter base protocol..........................95
collecting for Juniper Technical Support..............96
configuring Diameter base protocol trace............93
filenames for Diameter base protocol...................94
number of Diameter base protocol........................94
size of Diameter base protocol.................................94
logical-system statement
Diameter base protocol...............................................34
transport...................................................................35
M
manuals
comments on..................................................................xiii
metric statement
Diameter base protocol...............................................36
N
network element
configuring Diameter....................................................25
network-element statement
Diameter base protocol...............................................37
O
origin attributes
configuring Diameter endpoint.................................23
origin statement
Diameter base protocol...............................................38
P
parentheses, in syntax descriptions.................................xii
Index
peer
configuring Diameter....................................................24
peer statement
Diameter base protocol
network element...................................................39
remote peer.............................................................38
peers
clearing Diameter base protocol..............................55
port statement
Diameter base protocol...............................................39
priority statement
Diameter base protocol..............................................40
PTSP
Diameter AVPs.................................................................10
Diameter messages.........................................................5
verifying......................................................................49, 50
trace operations
collecting logs for Juniper technical
support..........................................................................96
filtering output for Diameter base
protocol.........................................................................95
traceoptions statement
Diameter base protocol......................................43, 102
tracing operations
Diameter base protocol...............................................93
transport
configuring Diameter....................................................24
transport statement
Diameter base protocol
local............................................................................45
peer.............................................................................45
troubleshooting subscriber access
collecting logs for Juniper Technical
Support.........................................................................96
realm statement
Diameter base protocol..............................................40
route statement
Diameter base protocol................................................41
routing-instance statement
Diameter base protocol
transport...................................................................42
Diameter base protocol peer
peer..............................................................................41
S
show diameter command...................................................56
show diameter function command.................................62
show diameter function statistics command.............66
show diameter instance command................................69
show diameter network-element command................71
show diameter network-element map
command..............................................................................74
show diameter peer command..........................................77
show diameter peer map command..............................82
show diameter peer statistics command.....................85
show diameter route command.......................................89
support, technical See technical support
syntax conventions..................................................................xi
T
technical support
collecting logs for..........................................................96
contacting JTAC..............................................................xiii
109
110