The diameter-link command sets up a Diameter link.
The undo diameter-link command deletes a specified Diameter link.
By default, Diameter links do not exist in the Diameter server group view.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
peer peername |
Specifies the name of the Diameter server. |
The name is a string of 1 to 32 case-insensitive characters. |
client-port port-number |
Specifies the port number on the Diameter client. |
The value is an integer that ranges from 0 to 49151. |
weight weight-value |
Specifies the weight of the Diameter link. |
The value is an integer that ranges from 0 to 100. The default value is 0. |
local localname |
Specifies the name of the Diameter client. |
The name is a string of 1 to 32 case-insensitive characters. |
Usage Scenario
The diameter-link command can be run in the Diameter server group view to set up a connection between the Diameter client and server, A client can use different local port numbers to set up multiple links with one server. One of the links in the Up state will be selected as the working link based on the weights () applied to them. As determined by the weighted algorithm on the client, the greater the link weight, the more likely the link will be chosen as the working link.
Prerequisites
The diameter-local command has been run to specify the Diameter client, and the diameter-peer command has been run to specify the Diameter server.
Configuration Impact
A Diameter link is set up over a TCP connection and uniquely identified by the IP addresses and port numbers of the client and server. Each time the diameter-link command is run on the client, the client sends a connection request with the specified port number to the specified Diameter server. A maximum of four Diameter links can be set up in the Diameter server group view.
A client can use different local port numbers to set up multiple links with one server. One of the links in the Up state will be selected as the working link based on the weights (weight-value) applied to them. As determined by the weighted algorithm on the client, the greater the link weight, the more likely the link will be chosen as the working link. For example, a client uses four local port numbers to set up links A, B, C, and D with a server. The weights of the links are 1, 2, 3, and 4. The chances of the links to be selected as the working link are at 1/10, 2/10, 3/10, and 4/10 respectively.If weight-value is not specified for a link, the weight of the link is 0. If all the links in a Diameter link group share the same weight of 0, their chances to be selected as the working link are equal. If not all links in a Diameter link group share the same weight of 0, the chances of the links with the weight 0 to be selected as the working link are 0.Precautions
The parameters local and peer together determine a Diameter link group. The client-port parameter determines a member link in the group. A Diameter server group can consist of a maximum of eight link groups with each containing a maximum of four links.
<HUAWEI> system-view [~HUAWEI] diameter enable [~HUAWEI] diameter-local huawei interface loopback 0 host pcef product NetEngine 8000 F realm huawei.com [~HUAWEI] diameter-peer huawei ip 10.10.10.2 port 3288 host pcrf realm huawei.com [~HUAWEI] diameter-server group huawei [~HUAWEI-diameter-group-huawei] diameter-link local huawei peer huawei client-port 4097 weight 5