WO2011020369A1 - Method for establishing diameter link and diameter network element - Google Patents

Method for establishing diameter link and diameter network element Download PDF

Info

Publication number
WO2011020369A1
WO2011020369A1 PCT/CN2010/074025 CN2010074025W WO2011020369A1 WO 2011020369 A1 WO2011020369 A1 WO 2011020369A1 CN 2010074025 W CN2010074025 W CN 2010074025W WO 2011020369 A1 WO2011020369 A1 WO 2011020369A1
Authority
WO
WIPO (PCT)
Prior art keywords
diameter
link
diameter node
node
underlying
Prior art date
Application number
PCT/CN2010/074025
Other languages
French (fr)
Chinese (zh)
Inventor
宋大猛
甘斌
陈刚
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011020369A1 publication Critical patent/WO2011020369A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities

Definitions

  • the present invention relates to the field of communications, and in particular to a method for establishing a Diameter link and a Diameter network element.
  • AAA Authentication, Authorization, Accounting, Authentication, Authorization, and Accounting
  • the Diameter protocol family is a new generation of AAA technology, which has attracted much attention due to its powerful scalability and security. More and more telecom operators choose Diameter as their basic protocol for authentication, authorization, and billing.
  • Diameter is different from the original Radius protocol, which is based on the reliable transmission protocol SCTP (Stream Control Transmission Protocol) or TCP (Transfer Control Protocol), that is, two Diameter peers of communication.
  • SCTP Stream Control Transmission Protocol
  • TCP Transfer Control Protocol
  • a reliable link is always maintained between end entities.
  • the link state machine in the RFC3588 protocol indicates that only one Diameter link can be reserved between any two Diameter peers.
  • the protocol stipulates that after the underlying bearer is established, a CER (Capabilities Exchange Request) message needs to be sent on the bearer to complete the subsequent capability exchange. If there are two links between the two ends, after the Election function is passed, only one active link is reserved, and the other link is closed. First, let's take a look at the 4 views of the Diameter link between Diameter nodes.
  • the Diameter link is the channel for communication between Diameter nodes. It is not an SCTP or TCP link and is a high-level protocol link based on an SCTP or TCP link.
  • the underlying bearer link mentioned herein refers to an SCTP or TCP bearer link.
  • the Diameter link is the link established after the successful switching of the Diameter capability on the underlying carrier link. According to the protocol, in the communication network based on the Diameter protocol, the communication between the Diameter peers is based on a reliable SCTP or TCP bearer link. Therefore, when a Diameter node needs to communicate with another Diameter node, it must first establish a bearer SCTP link or TCP link with another node.
  • the general method is to configure the local IP address, port number, peer IP address, port number, and bearer protocol used on the node.
  • the link configuration of the peers needs to be corresponding.
  • a Diameter link corresponds to an underlying link.
  • the process of establishing the Diameter link mainly includes the following steps S102 to S108: Step S102, the Diameter node as the client notifies the SCTP layer or the TCP layer to establish an underlying bearer link.
  • the establishment of the underlying bearer SCTP or TCP link conforms to the standard protocol provisions and will not be described in detail.
  • Step S104 After the underlying bearer link is successfully established, the Diameter node sends a CER (Capability Exchange Request) message, where the CER message carries the local host name, the domain name, and the corresponding supported capability.
  • Step S106 After receiving the CER message, the peer performs capability matching according to the local configuration. If the matching succeeds, the correct CEA (Capability Exchange Answer) message is returned. Otherwise, reply with an error response or discard the message directly.
  • Step S108 after the capability exchange succeeds, it indicates that the Diameter link is successfully established. Subsequent authentication, authorization, billing, etc. messages can be sent and received on the link. In the above solution, only one Diameter link exists between Diameter nodes for communication, and each Diameter link corresponds to one underlying link.
  • the communication between the two peers can only be performed on one SCTP or TCP bearer link. Therefore, when the traffic is large, the SCTP or TCP bearer link may be Overloading, so that when the SCTP or TCP bearer link fails, communication between the two Diameter nodes will be interrupted.
  • the Diameter protocol layer After the establishment of the underlying link (such as the SCTP or the TCP link) is successful, the Diameter protocol layer performs capability negotiation to complete the establishment of the Diameter link. In this process, once the capability exchange is completed, the link will not be interrupted or unstable due to the capability exchange problem, so most of the faults are caused by the instability of the underlying bearer link.
  • the conventional method is as follows: As shown in FIG. 1, the standby server is added. Once the Diameter node 1 communicates with the Diameter node 2 of the peer, an exception occurs, and the switch is switched to the Diameter standby node 2; Increase the force between the two peers. Corresponding Diameter chain Road as a backup. But both methods have drawbacks. Increasing the alternate peer increases the cost, and when the primary peer fails, additional operations are required to re-select the link to the alternate peer.
  • the Diameter link between the two ends is added, where multiple peer identifiers are used in the capability exchange, and the link election function is prevented from closing one of the links by the peer identifier.
  • the algorithm for selecting the link is inevitably increased.
  • switching to the standby link also requires the upper layer application to perform additional operations.
  • a method for establishing a Diameter link in the related art may cause a problem that the reliability of the Diameter link is relatively low, and an effective solution has not been proposed yet.
  • the present invention has been made in view of the problem that the method for establishing a Diameter link in the related art may cause a low reliability of the Diameter link.
  • the main object of the present invention is to provide a method for establishing a Diameter link and a Diameter network element.
  • a method for establishing a Diameter link including: establishing a first bottom layer 7 link and a second bottom layer between a first Diameter node and a second Diameter node
  • the first Diameter node sends a capability exchange request message to the second Diameter node through the first underlying carrier link or the second underlying bearer link; if the capability exchange is successful, the first Diameter node receives the second Diameter node from the second Diameter node. Successful response.
  • the method further includes: the first Diameter node and the second Diameter node communicate by using the first underlying bearer link; When an underlying bearer link fails, the first Diameter node and the second Diameter node communicate via the second bottom load link.
  • a Diameter network element including: an establishing module, configured to establish a first underlying carrier link and a second underlying bearer link between a Diameter network element and another Diameter network element a sending module, configured to send a capability exchange request message to another Diameter network element by using the first underlying bearer link or the second underlying bearer link; and a receiving module, configured to owe another Diameter network element after the capability exchange succeeds Successful response.
  • the network element further includes an interaction module, configured to communicate with another Diameter network element by using one of the first underlay link and the second underlay link after receiving the successful response, and The above one of the first underlying bearer link and the second underlying bearer link Now through the other of the first underlying bearer link and the second underlying bearer link and the other
  • the Diameter network element communicates.
  • two underlying bearer links are respectively established, so that when the underlying bearer link of the currently carrying Diameter link is abnormal, the two Diameter NEs can pass the The two underlying link links communicate, thereby improving the reliability of the Diameter link, simplifying the processing and saving costs.
  • FIG. 1 is a schematic diagram of a communication link between Diameter nodes according to the prior art
  • FIG. 2 is a schematic diagram of a communication link between Diameter nodes according to an embodiment of the present invention
  • Is a flowchart of a method for establishing a Diameter link according to the present invention
  • FIG. 4 is a flowchart of a method for establishing a Diameter link according to an embodiment of the present invention
  • FIG. 5 is a structure of a Diameter network element according to an embodiment of the present invention.
  • the present invention provides a method for establishing a Diameter link and a Diameter network element, in view of the problem that the method for establishing a Diameter link in the related art may cause a low reliability of the Diameter link.
  • the method for establishing a Diameter link according to the present invention, when a Diameter link is established, two underlying bearer links are respectively established, so that in the case that the underlying bearer link of the currently carrying Diameter link is abnormal, The Diameter network elements can communicate with each other through the second underlying bearer link, thereby improving the reliability of the Diameter link, simplifying the processing process, and saving costs.
  • the Diameter network element entity may include a Diameter node 1 and a Diameter node 2, wherein the Diameter node 1 may be a Diameter client (diameter client), and the Diameter node 2 may be a Diameter server (Diameter Server).
  • the bold black line represents the Diameter link between the two Diameter nodes, and the two thin lines represent the two underlying link links that the Diameter link needs to carry, ie, the SCTP 7-load link
  • Figure 3 is a flowchart of a method for establishing a Diameter link according to the present invention.
  • the method for establishing a Diameter link includes the following steps S302 to S306: Step S302, at the first A first underlying bearer link and a second underlying bearer link are established between the Diameter node and the second Diameter node. For example, two underlying link links are established between the Diameter node 1 and the Diameter node 2, ie, the SCTP 7 carrier chain And the TCP carries the link. Step S304, the first Diameter node sends a capability exchange request message to the second Diameter node by using the first underlying link or the second bottom layer 7 link. For example, when two After the underlying 7-link is successfully established, Diameter node 1 can pass
  • the SCTP bearer link sends a CER message for capability exchange with the Diameter node 2.
  • Step S306 if the capability exchange is successful, the first Diameter node receives a successful response from the second Diameter node.
  • the method for establishing the Diameter link further includes the following steps: 1) after the first Diameter node receives the successful response from the second Diameter node,
  • the Diameter link is successfully established, and the two Diameter nodes can communicate with each other through this Diameter link.
  • the SCTP bearer link can be selected as the bearer link of the Diameter link.
  • Step S402 a Diameter link is configured between the Diameter node 1 and the Diameter node 2, and the Diameter link is configured based on two underlying bearer links.
  • the method includes: Step 4: S4022, configuring the IP address and the first port number of the Diameter node 1 and the IP address and the second port number of the Diameter node 2 for the SCTP carrier link on the Diameter node 1 and the Diameter node 2, respectively; Step S4024, configuring the IP address and the third port number of the Diameter node 1 and the IP address and the fourth port number of the Diameter node 2 for the TCP carrier link on the Diameter node 1 and the Diameter node 2, respectively, wherein the third port The port number is different from the first port number, and the fourth port number is different from the second port number, that is, the port number used by the SCTP bearer link and the TCP bearer link cannot conflict.
  • the host name of the peer configured on Diameter node 1 and the domain name of the peer end refer to
  • Diameter node 2 's host name and i or name.
  • the Diameter link is associated with the two underlying bearer links configured as described above, namely, the SCTP bearer link and the TCP bearer link. That is, the Diameter link is carried on the two underlying bearer links.
  • Step S404 according to the above configuration, the Diameter node 1 and the Diameter node 2 respectively establish an SCTP bearer link and a TCP bearer link.
  • the establishment of the underlying bearer link refers to establishing an SCTP bearer link and establishing a TCP bearer link.
  • the two bottom bearer links are respectively established according to the configured address and port number.
  • Step S406 After the two underlying link links are successfully established, the Diameter node 1 or the Diameter node 2 preferentially selects the SCTP bearer link to perform the capability exchange process of the Diameter link.
  • the above-mentioned capability exchange process refers to a Diameter node 1 as a client, and sends a CER (Capability Exchange Request) message to the peer (ie, Diameter node 2 as a server).
  • the CER message is sent preferentially through the SCTP bearer link.
  • the Diameter node 2 After receiving the CER message, the Diameter node 2, as the server side, performs a risk certificate on the Diameter node 1 as a client.
  • Diameter node 1 considers that the Diameter link has been established normally after receiving the CEA message.
  • Step S408 the Diameter link is successfully established after the capability exchange succeeds, and normal message communication is performed between the two Diameter nodes.
  • the Diameter link preferentially uses the SCTP bearer link.
  • Step S410 if the SCTP bearer link fails, the Diameter link will quickly switch to the TCP bearer link that has been successfully handshaked and established. Carrying links over TCP, two
  • the Diameter nodes can still communicate normally.
  • the embodiment of the present invention adds an underlying bearer link of different protocols, so that the bearer links can be mutually backed up.
  • the message sent between the Diameter nodes is only related to the Diameter link, and does not care about the change of the underlying link. That is, after one of the underlying bearer links fails, the upper layer application sends or receives a message, which is not affected by the change of the underlying bearer link. There is also no need to perform additional re-selection of link operations, thereby ensuring the reliability of the Diameter link, simplifying the processing and saving costs.
  • FIG. 5 is a structural diagram of a Diameter network element according to an embodiment of the present invention.
  • the Diameter network element mainly includes: an establishing module 502, configured to establish a first underlying bearer link and a second underlying bearer link between a Diameter network element and another Diameter network element; and a sending module 504, Connected to the establishing module 502, configured to send a capability exchange request message to another Diameter network element through the first bottom layer 7 carrier link or the second bottom layer 7 carrier link; the receiving module 506 is connected to the sending module 504 for A successful response from another Diameter network element is received after the exchange is successful.
  • the Diameter network element further includes: an interaction module 508, connected to the receiving module 506, configured to pass one of the first bottom loading link and the second bottom loading link after receiving the successful response
  • the Diameter network element communicates, and the first underlying link and the second good layer
  • the foregoing capability exchange process refers to a Diameter node 1 as a client, and sends a CER (Capability Exchange Request) message to the peer end (ie, Diameter node 2 as a server).
  • the CER message is sent preferentially through the SCTP bearer link.
  • the Diameter node 2 which is the server end, performs a risk test on the Diameter node 1 as a client after receiving the CER message, for example: ⁇ , matching the host name and support capability of the Diameter node 1 if the match is passed. Then reply to the correct CEA (Capability Exchange Answer) message. Diameter node 1 considers that the Diameter link has been established normally after receiving the CEA message.
  • the Diameter link between the above Diameter network element and another Diameter network element corresponds to two underlying bearer links, namely, an SCTP bearer link and a TCP bearer link. That is, the Diameter link is carried on the two underlying bearer links.
  • the establishing module 502 establishes the first underlying carrier link and the second underlying bearer link between the Diameter network element (eg, the first Diameter node) and another Diameter network element (eg, the second Diameter node), including the following step:
  • the Diameter link can be carried over the SCTP bearer link between the two Diameter nodes to communicate between the two Diameter nodes.
  • the Diameter link will quickly switch to the TCP bearer link that has been successfully handshaked and established. Through the TCP bearer link, the two Diameter nodes can still communicate normally, thereby improving the reliability of the Diameter link.
  • an underlying bearer link of a different protocol is added, so that the bearer links can be mutually backed up.
  • the message sent between the Diameter nodes is only related to the Diameter link, and does not care about the change of the underlying link. That is, after one of the underlying bearer links fails, the upper layer application sends or receives a message, which is not affected by the change of the underlying bearer link.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Abstract

A method for establishing a diameter link and a diameter network element are provided in the present invention. The method includes the first bottom layer bearer link and the second bottom layer bearer link between the first diameter node and the second diameter node are established (S302), the first diameter node transmits a capability exchange request message to the second diameter node through the first bottom layer bearer link or the second bottom layer bearer link (S304), if the capability exchange is successful, the first diameter node receives the success response from the second diameter node (S306). Therefore, when the current bottom layer bearer link bearing the diameter link is abnormal, the two diameter network elements can communicate with each other through the second bottom layer bearer link, which solves the problem of low reliability caused by the establishing method of the diameter link in the prior art, and improves the reliability of the diameter link.

Description

Diameter 的建立方法和 Diameter网元 技术领域 本发明涉及通信领域, 具体而言, 涉及一种直径 ( Diameter ) 链路的建 立方法和直径 ( Diameter ) 网元。 背景技术 对于商业^匕运营的通信网络来说, AAA( Authentication、 Authorization、 Accounting, 认证、 授权、 计费), 即认证、 授权以及计费体制是其运营的基 础。 Diameter协议族是新一代的 AAA技术, 由于其强大的可扩展性和安全 性, 使其备受关注。 越来越多的电信运营商选择 Diameter作为其进行认证, 授权, 计费的基础协议。  TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a method for establishing a Diameter link and a Diameter network element. Background of the Invention For a communication network operated by a business, AAA (Authentication, Authorization, Accounting, Authentication, Authorization, and Accounting), that is, an authentication, authorization, and charging system is the basis of its operation. The Diameter protocol family is a new generation of AAA technology, which has attracted much attention due to its powerful scalability and security. More and more telecom operators choose Diameter as their basic protocol for authentication, authorization, and billing.
Diameter不同于原先的 Radius协议,其基于可靠传输协议 SCTP( Stream Control Transmission Protocol, ¾¾控制传输十办议 )或者 TCP ( Transfer Control Protocol, 传输控制协议) 的基础上, 即通信的两个 Diameter对等端实体之 间始终保持一条可靠的链路。 RFC3588协议中的链路状态机表明, 任何两个 Diameter对等端之间只能保留一条 Diameter链路。协议规定在底层承载建立 之后, 需要在该 载上发送 CER ( Capabilities Exchange Request, 能力交换 请求) 消息, 以完成后续的能力交换。 如果两端之间存在两条链路, 则在通 过链路选举 ( Election )功能后, 只保留一条有效链路, 另一条链路将被关闭。 首先了解一下 Diameter节点之间 Diameter链路的 4既念。 Diameter链路是 Diameter节点之间通信的通道。 它不是 SCTP或者 TCP链路, 是基于 SCTP 或 TCP链路之上的高层协议链路。 本文提到的底层承载链路是指 SCTP或者 TCP承载链路。 Diameter链路 是 载于底层 载链路之上通过 Diameter能力交换成功之后确立的链路。 才艮据协议, 在基于 Diameter协议的通信网络中, Diameter对等端之间的 通信是基于可靠的 SCTP或者 TCP 载链路进行的。 因此当一个 Diameter 节点需要与另一个 Diameter节点进行通信时, 首先必须建立起与另一个节点 之间的承载 SCTP链路或者 TCP链路。一般的方法是通过在本节点上配置本 端 IP地址, 端口号, 对端 IP地址, 端口号以及使用的承载协议, 其中, 两 个对等端的链路配置需要对应。 通常, 一条 Diameter链路对应一条底层 载链路。其 Diameter链路的建 立过程主要包括如下的步骤 S 102至 S 108: 步骤 S 102, 作为客户端的 Diameter节点通知 SCTP层或者 TCP层建立 底层承载链路。 底层承载 SCTP或者 TCP链路的建立符合标准的协议规定, 在 匕不再详细描述。 步骤 S 104 , 当底层承载链路建立成功后, Diameter 节点发送 CER ( Capability Exchange Request, 能力交换请求)消息, 该 CER消息中携带本 地主机名, 域名, 以及相应的支持的能力。 步骤 S 106 , 对等端接收到 CER消息后, 根据本地配置, 进行能力匹配, 如果匹配成功, 就回复正确的 CEA(Capability Exchange Answer, 能力交换响 应)消息。 否则, 回复错误应答, 或者直接丢弃消息。 步骤 S 108 , 能力交换成功后, 标志着这条 Diameter链路成功建立。 以 后的认证, 授权, 计费等消息就可以在该链路上收发。 上述的方案中, Diameter节点间只存在一条 Diameter链路进行通信, 每 条 Diameter链路对应于一条底层 载链路。 由于 Diameter两节点间只有一条 Diameter链路,两个对等端之间的通信 只能在一条 SCTP或者 TCP承载链路上进行, 这样, 当业务量很大时, SCTP 或者 TCP承载链路可能会超负荷运行, 从而在 SCTP或者 TCP承载链路发 生故障时, 两个 Diameter节点间的通信将发生中断。 在底层 载链路(如 SCTP或者 TCP 载链路 )建立成功之后, Diameter 协议层面进行能力协商, 完成 Diameter链路的建立。 在这个过程中一旦能力 交换完成, 中间不会再因为能力交换问题导致链路中断或不稳定, 所以大部 分的故障来源于底层承载链路的不稳定。 又由于 Diameter协议栈规定的能力 协商与链路选举功能的存在, 又无法直接在两个 Diameter节点之间建立两条 目同的 Diameter链路。 为了提高链路的可靠性, 传统的方法是: 如图 1所示, 增加备用服务器, 一旦 Diameter节点 1与对等端的 Diameter节点 2通信发生异常, 就切换到 Diameter备用节点 2; 或者是通过在两个对等端之间增力。相应的 Diameter链 路作为备份。 但是这两种方法都存在弊端。 增加备用对等端提高了成本, 并 且在主用对等端发生失败的时候, 需要额外的操作重新选择链路发往备用对 等端。 而对于另一种传统方法, 即, 增加两端之间的 Diameter链路, 其中, 在能力交换时使用多个对等端标识, 避免链路选举功能通过对等端标识关闭 其中一条链路, 这样, 由于两端之间存在两条 Diameter链路, 必然会增加选 择链路的算法,发生故障时切换到备用链路也需要上层应用进行额外的操作。 针对相关技术中 Diameter链路的建立方法会造成 Diameter链路可靠性较 氐的问题, 目前尚未提出有效的解决方案。 发明内容 针对相关技术中 Diameter链路的建立方法会造成 Diameter链路可靠性较 低的问题而提出本发明, 为此, 本发明的主要目的在于提供一种 Diameter链 路的建立方法和 Diameter网元, 以解决上述问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种 Diameter链路 的建立方法, 其包括: 在第一 Diameter节点和第二 Diameter节点之间建立第 一底层 7 载链路和第二底层 7 载链路; 第一 Diameter节点通过第一底层 载 链路或第二底层承载链路向第二 Diameter节点发送能力交换请求消息; 如果 能力交换成功, 第一 Diameter节点接收来自第二 Diameter节点的成功响应。 优选地,在上述第一 Diameter节点接收来自第二 Diameter节点的成功响 应之后, 上述方法还包括: 上述第一 Diameter节点与上述第二 Diameter节点 通过上述第一底层承载链路进行通信;在上述第一底层承载链路出现故障时 , 上述第一 Diameter节点与上述第二 Diameter节点通过上述第二底层 载链路 进行通信。 根据本发明的另一方面,提供了一种 Diameter网元, 其包括: 建立模块, 用于在 Diameter网元与另一个 Diameter网元之间建立第一底层 载链路和第 二底层承载链路; 发送模块, 用于通过第一底层承载链路或第二底层承载链 路向另一个 Diameter网元发送能力交换请求消息; 接收模块, 用于在能力交 换成功之后接欠来自另一个 Diameter网元的成功响应。 优选地, 上述网元还包括交互模块, 该交互模块用于在接收成功响应之 后通过第一底层^载链路和第二底层^载链路中的一个与另一个 Diameter网 元进行通信, 并且在第一底层承载链路和第二底层承载链路中的上述一个出 现故障时通过第一底层承载链路和第二底层承载链路中的另一个与另一个Diameter is different from the original Radius protocol, which is based on the reliable transmission protocol SCTP (Stream Control Transmission Protocol) or TCP (Transfer Control Protocol), that is, two Diameter peers of communication. A reliable link is always maintained between end entities. The link state machine in the RFC3588 protocol indicates that only one Diameter link can be reserved between any two Diameter peers. The protocol stipulates that after the underlying bearer is established, a CER (Capabilities Exchange Request) message needs to be sent on the bearer to complete the subsequent capability exchange. If there are two links between the two ends, after the Election function is passed, only one active link is reserved, and the other link is closed. First, let's take a look at the 4 views of the Diameter link between Diameter nodes. The Diameter link is the channel for communication between Diameter nodes. It is not an SCTP or TCP link and is a high-level protocol link based on an SCTP or TCP link. The underlying bearer link mentioned herein refers to an SCTP or TCP bearer link. The Diameter link is the link established after the successful switching of the Diameter capability on the underlying carrier link. According to the protocol, in the communication network based on the Diameter protocol, the communication between the Diameter peers is based on a reliable SCTP or TCP bearer link. Therefore, when a Diameter node needs to communicate with another Diameter node, it must first establish a bearer SCTP link or TCP link with another node. The general method is to configure the local IP address, port number, peer IP address, port number, and bearer protocol used on the node. The link configuration of the peers needs to be corresponding. Typically, a Diameter link corresponds to an underlying link. The process of establishing the Diameter link mainly includes the following steps S102 to S108: Step S102, the Diameter node as the client notifies the SCTP layer or the TCP layer to establish an underlying bearer link. The establishment of the underlying bearer SCTP or TCP link conforms to the standard protocol provisions and will not be described in detail. Step S104: After the underlying bearer link is successfully established, the Diameter node sends a CER (Capability Exchange Request) message, where the CER message carries the local host name, the domain name, and the corresponding supported capability. Step S106: After receiving the CER message, the peer performs capability matching according to the local configuration. If the matching succeeds, the correct CEA (Capability Exchange Answer) message is returned. Otherwise, reply with an error response or discard the message directly. Step S108, after the capability exchange succeeds, it indicates that the Diameter link is successfully established. Subsequent authentication, authorization, billing, etc. messages can be sent and received on the link. In the above solution, only one Diameter link exists between Diameter nodes for communication, and each Diameter link corresponds to one underlying link. Since there is only one Diameter link between the two nodes of the Diameter, the communication between the two peers can only be performed on one SCTP or TCP bearer link. Therefore, when the traffic is large, the SCTP or TCP bearer link may be Overloading, so that when the SCTP or TCP bearer link fails, communication between the two Diameter nodes will be interrupted. After the establishment of the underlying link (such as the SCTP or the TCP link) is successful, the Diameter protocol layer performs capability negotiation to complete the establishment of the Diameter link. In this process, once the capability exchange is completed, the link will not be interrupted or unstable due to the capability exchange problem, so most of the faults are caused by the instability of the underlying bearer link. Due to the existence of the capability negotiation and link election functions specified by the Diameter protocol stack, it is not possible to directly establish a two-entry Diameter link between two Diameter nodes. In order to improve the reliability of the link, the conventional method is as follows: As shown in FIG. 1, the standby server is added. Once the Diameter node 1 communicates with the Diameter node 2 of the peer, an exception occurs, and the switch is switched to the Diameter standby node 2; Increase the force between the two peers. Corresponding Diameter chain Road as a backup. But both methods have drawbacks. Increasing the alternate peer increases the cost, and when the primary peer fails, additional operations are required to re-select the link to the alternate peer. For another conventional method, that is, the Diameter link between the two ends is added, where multiple peer identifiers are used in the capability exchange, and the link election function is prevented from closing one of the links by the peer identifier. In this way, because there are two Diameter links between the two ends, the algorithm for selecting the link is inevitably increased. When the fault occurs, switching to the standby link also requires the upper layer application to perform additional operations. A method for establishing a Diameter link in the related art may cause a problem that the reliability of the Diameter link is relatively low, and an effective solution has not been proposed yet. SUMMARY OF THE INVENTION The present invention has been made in view of the problem that the method for establishing a Diameter link in the related art may cause a low reliability of the Diameter link. Therefore, the main object of the present invention is to provide a method for establishing a Diameter link and a Diameter network element. To solve the above problem. In order to achieve the above object, according to an aspect of the present invention, a method for establishing a Diameter link is provided, including: establishing a first bottom layer 7 link and a second bottom layer between a first Diameter node and a second Diameter node The first Diameter node sends a capability exchange request message to the second Diameter node through the first underlying carrier link or the second underlying bearer link; if the capability exchange is successful, the first Diameter node receives the second Diameter node from the second Diameter node. Successful response. Preferably, after the first Diameter node receives the successful response from the second Diameter node, the method further includes: the first Diameter node and the second Diameter node communicate by using the first underlying bearer link; When an underlying bearer link fails, the first Diameter node and the second Diameter node communicate via the second bottom load link. According to another aspect of the present invention, a Diameter network element is provided, including: an establishing module, configured to establish a first underlying carrier link and a second underlying bearer link between a Diameter network element and another Diameter network element a sending module, configured to send a capability exchange request message to another Diameter network element by using the first underlying bearer link or the second underlying bearer link; and a receiving module, configured to owe another Diameter network element after the capability exchange succeeds Successful response. Preferably, the network element further includes an interaction module, configured to communicate with another Diameter network element by using one of the first underlay link and the second underlay link after receiving the successful response, and The above one of the first underlying bearer link and the second underlying bearer link Now through the other of the first underlying bearer link and the second underlying bearer link and the other
Diameter网元进行通信。 根据本发明,在建立一条 Diameter链路时,分别建立两条底层承载链路, 这样, 在当前承载 Diameter 链路的底层承载链路发生异常的情况下, 两个 Diameter 网元之间可以通过第二条底层 载链路进行通信, 从而提高了 Diameter链路的可靠性, 简化处理过程, 节省成本。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是才艮据现有技术的 Diameter节点之间的通信链路的示意图; 图 2是才艮据本发明实施例的 Diameter节点之间的通信链路的示意图; 图 3是根据本发明的 Diameter链路的建立方法的流程图; 图 4是根据本发明实施例的 Diameter链路的建立方法的流程图; 图 5是才艮据本发明实施例的 Diameter网元的结构图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 考虑到相关技术中 Diameter链路的建立方法会造成 Diameter链路可靠性 较低的问题, 本发明提供一种 Diameter链路的建立方法和 Diameter网元。才艮 据本发明的 Diameter链路的建立方法,在建立一条 Diameter链路时, 分别建 立两条底层承载链路, 这样, 在当前承载 Diameter链路的底层承载链路发生 异常的情况下, 两个 Diameter网元之间可以通过第二条底层承载链路进行通 信, 从而提高了 Diameter链路的可靠性, 简化处理过程, 节省成本。 方法实施例 根据本发明的实施例, 提供了一种 Diameter链路的建立方法。 图 2是才艮据本发明实施例的 Diameter节点之间的通信链路的示意图。如 图 2所示, Diameter网元实体可以包括 Diameter节点 1和 Diameter节点 2, 其中 , Diameter节点 1可以为 Diameter客户端( Diameter Client ),而 Diameter 节点 2可以为 Diameter月艮务器( Diameter Server )„ 在图 2中, 黑色的粗体线 表示两个 Diameter节点之间的 Diameter链路, 两条细线分别表示 Diameter 链路需要 载的两条底层 载链路, 即, SCTP 7 载链路和 TCP 载链路。 图 3是根据本发明的 Diameter链路的建立方法的流程图。 如图 3所示, 该 Diameter链路的建立方法包括如下的步骤 S302至步骤 S306: 步骤 S302, 在第一 Diameter节点和第二 Diameter节点之间建立第一底 层承载链路和第二底层承载链路。 例如,在 Diameter节点 1和 Diameter节点 2之间建立两条底层 载链路, 即, SCTP 7 载链路和 TCP 载链路。 步骤 S304, 第一 Diameter节点通过第一底层 载链路或第二底层 7 载 链路向第二 Diameter节点发送能力交换请求消息。 例如, 当两条底层 7 载链路都成功建立后, Diameter 节点 1 可以通过The Diameter network element communicates. According to the present invention, when a Diameter link is established, two underlying bearer links are respectively established, so that when the underlying bearer link of the currently carrying Diameter link is abnormal, the two Diameter NEs can pass the The two underlying link links communicate, thereby improving the reliability of the Diameter link, simplifying the processing and saving costs. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a communication link between Diameter nodes according to the prior art; FIG. 2 is a schematic diagram of a communication link between Diameter nodes according to an embodiment of the present invention; Is a flowchart of a method for establishing a Diameter link according to the present invention; FIG. 4 is a flowchart of a method for establishing a Diameter link according to an embodiment of the present invention; FIG. 5 is a structure of a Diameter network element according to an embodiment of the present invention. Figure. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present invention provides a method for establishing a Diameter link and a Diameter network element, in view of the problem that the method for establishing a Diameter link in the related art may cause a low reliability of the Diameter link. According to the method for establishing a Diameter link according to the present invention, when a Diameter link is established, two underlying bearer links are respectively established, so that in the case that the underlying bearer link of the currently carrying Diameter link is abnormal, The Diameter network elements can communicate with each other through the second underlying bearer link, thereby improving the reliability of the Diameter link, simplifying the processing process, and saving costs. Method Embodiments According to an embodiment of the present invention, a method of establishing a Diameter link is provided. 2 is a schematic diagram of a communication link between Diameter nodes in accordance with an embodiment of the present invention. As shown in FIG. 2, the Diameter network element entity may include a Diameter node 1 and a Diameter node 2, wherein the Diameter node 1 may be a Diameter client (diameter client), and the Diameter node 2 may be a Diameter server (Diameter Server). „ In Figure 2, the bold black line represents the Diameter link between the two Diameter nodes, and the two thin lines represent the two underlying link links that the Diameter link needs to carry, ie, the SCTP 7-load link and Figure 3 is a flowchart of a method for establishing a Diameter link according to the present invention. As shown in Figure 3, the method for establishing a Diameter link includes the following steps S302 to S306: Step S302, at the first A first underlying bearer link and a second underlying bearer link are established between the Diameter node and the second Diameter node. For example, two underlying link links are established between the Diameter node 1 and the Diameter node 2, ie, the SCTP 7 carrier chain And the TCP carries the link. Step S304, the first Diameter node sends a capability exchange request message to the second Diameter node by using the first underlying link or the second bottom layer 7 link. For example, when two After the underlying 7-link is successfully established, Diameter node 1 can pass
SCTP承载链路发送 CER消息, 以便与 Diameter节点 2进行能力交换。 步骤 S306 , 如果能力交换成功, 第一 Diameter 节点接收来自第二 Diameter节点的成功响应。 此外, 该 Diameter链路的建立方法还包括如下步骤: 1 ) 在第一 Diameter节点接收到来自第二 Diameter节点的成功响应之后,The SCTP bearer link sends a CER message for capability exchange with the Diameter node 2. Step S306, if the capability exchange is successful, the first Diameter node receives a successful response from the second Diameter node. In addition, the method for establishing the Diameter link further includes the following steps: 1) after the first Diameter node receives the successful response from the second Diameter node,
Diameter链路成功建立,两个 Diameter节点之间可以通过这条 Diameter链路 进行消息通信。 在通信时, 可以选用 SCTP承载链路作为 Diameter链路的承 载链路。 The Diameter link is successfully established, and the two Diameter nodes can communicate with each other through this Diameter link. When communicating, the SCTP bearer link can be selected as the bearer link of the Diameter link.
2 )在 Diameter链路的 载链路 SCTP发生断链的情况下, 两个 Diameter 节点通过备选的 TCP承载链路继续进行通信, 这样, 可以使得 Diameter链 路不中断, 从而提高了 Diameter链路的可靠性。 此夕卜, 由于不用在 Diameter 客户端和 Diameter月艮务器之间建立两条 Diameter链路,从而简化了处理过程, 节省成本。 3 ) 经过一段时间后, 当 SCTP承载链路恢复正常, 则 Diameter链路仍 然可以选用 SCTP承载链路作为通信链路进行消息通信。 图 4是根据本发明实施例的 Diameter链路的建立方法的流程图。 下面结 合附图 4对本发明实施例的具体实现加以描述: 步骤 S402 ,在 Diameter节点 1和 Diameter节点 2之间,配置一条 Diameter 链路, 该 Diameter链路基于两条底层承载链路, 相应地配置两条承载链路所 需的两端的 IP地址和端口号以及相应的底层承载类型。 具体地包括:步 4聚 S4022,分别在 Diameter节点 1和 Diameter节点 2上, 为 SCTP 载链路配置 Diameter节点 1的 IP地址和第一端口号以及 Diameter 节点 2 的 IP地址和第二端口号; 步骤 S4024, 分别在 Diameter节点 1 和 Diameter节点 2上, 为 TCP 载链路配置 Diameter节点 1的 IP地址和第三 端口号以及 Diameter节点 2的 IP地址和第四端口号, 其中,所述第三端口号 与所述第一端口号不同, 所述第四端口号与所述第二端口号不同, 即, SCTP 承载链路和 TCP承载链路所用的端口号不能冲突。 此外, Diameter 节点 1 上配置的对端的主机名和对端的域名指的是2) In the case that the carrier link SCTP of the Diameter link is broken, the two Diameter nodes continue to communicate through the alternate TCP bearer link, so that the Diameter link can be uninterrupted, thereby improving the Diameter link. Reliability. In addition, since there is no need to establish two Diameter links between the Diameter client and the Diameter server, the processing is simplified and the cost is saved. 3) After a period of time, when the SCTP bearer link returns to normal, the Diameter link can still use the SCTP bearer link as the communication link for message communication. 4 is a flow chart of a method of establishing a Diameter link in accordance with an embodiment of the present invention. A specific implementation of the embodiment of the present invention is described below with reference to FIG. 4: Step S402, a Diameter link is configured between the Diameter node 1 and the Diameter node 2, and the Diameter link is configured based on two underlying bearer links. The IP address and port number of the two ends required for the two bearer links and the corresponding underlying bearer type. Specifically, the method includes: Step 4: S4022, configuring the IP address and the first port number of the Diameter node 1 and the IP address and the second port number of the Diameter node 2 for the SCTP carrier link on the Diameter node 1 and the Diameter node 2, respectively; Step S4024, configuring the IP address and the third port number of the Diameter node 1 and the IP address and the fourth port number of the Diameter node 2 for the TCP carrier link on the Diameter node 1 and the Diameter node 2, respectively, wherein the third port The port number is different from the first port number, and the fourth port number is different from the second port number, that is, the port number used by the SCTP bearer link and the TCP bearer link cannot conflict. In addition, the host name of the peer configured on Diameter node 1 and the domain name of the peer end refer to
Diameter节点 2的主机名和 i或名。 Diameter node 2's host name and i or name.
Diameter链路关联上述配置的两条底层承载链路, 即, SCTP承载链路 和 TCP承载链路。 也就是, 在上述两条底层承载链路上承载该 Diameter链 路。 步骤 S404, 才艮据上述配置, Diameter节点 1和 Diameter节点 2分别建 立 SCTP 载链路和 TCP 载链路。 所述建立底层承载链路是指建立 SCTP承载链路和建立 TCP承载链路, 其中, 根据配置的地址和端口号分别建起上述的两条底层承载链路。 步骤 S406, Diameter节点 1或者 Diameter节点 2在两条底层 载链路 都建立成功后,优先选择 SCTP承载链路进行 Diameter链路的能力交换过程。 上述的能力交换过程是指作为客户端的 Diameter节点 1 , 向对端 (即, 作为月艮务器端的 Diameter节点 2 ) 发送 CER ( Capability Exchange Request, 能力交换请求) 消息。 该 CER消息优先通过 SCTP承载链路发送。 作为月艮务器端的 Diameter节点 2在接收到 CER消息之后, 对作为客户 端的 Diameter节点 1进行-险证, 例如,对 Diameter节点 1的主机名和支持能 力进行匹配, 口果匹配通过,则回复正确的 CEA( Capability Exchange Answer, 能力交换响应)消息。 Diameter节点 1在接) 到 CEA消息之后认为 Diameter 链路已经正常建立。 步骤 S408, Diameter链路在能力交换成功后成功建立, 两个 Diameter 节点之间进行正常的消息通信。 此时, Diameter链路优先使用的是 SCTP承 载链路。 步骤 S410, —旦 SCTP承载链路发生故障, Diameter链路将快速切换到 已经握手成功并建立好的 TCP 载链路上。 通过 TCP 载链路, 两个The Diameter link is associated with the two underlying bearer links configured as described above, namely, the SCTP bearer link and the TCP bearer link. That is, the Diameter link is carried on the two underlying bearer links. Step S404, according to the above configuration, the Diameter node 1 and the Diameter node 2 respectively establish an SCTP bearer link and a TCP bearer link. The establishment of the underlying bearer link refers to establishing an SCTP bearer link and establishing a TCP bearer link. The two bottom bearer links are respectively established according to the configured address and port number. Step S406: After the two underlying link links are successfully established, the Diameter node 1 or the Diameter node 2 preferentially selects the SCTP bearer link to perform the capability exchange process of the Diameter link. The above-mentioned capability exchange process refers to a Diameter node 1 as a client, and sends a CER (Capability Exchange Request) message to the peer (ie, Diameter node 2 as a server). The CER message is sent preferentially through the SCTP bearer link. After receiving the CER message, the Diameter node 2, as the server side, performs a risk certificate on the Diameter node 1 as a client. For example, the host name and support capability of the Diameter node 1 are matched, and if the result is matched, the reply is correct. CEA (Capability Exchange Answer) message. Diameter node 1 considers that the Diameter link has been established normally after receiving the CEA message. Step S408, the Diameter link is successfully established after the capability exchange succeeds, and normal message communication is performed between the two Diameter nodes. At this time, the Diameter link preferentially uses the SCTP bearer link. Step S410, if the SCTP bearer link fails, the Diameter link will quickly switch to the TCP bearer link that has been successfully handshaked and established. Carrying links over TCP, two
Diameter节点之间仍然可以正常通信。 综上所述, 在两个 Diameter节点间只保留一条 Diameter链路的情况下, 本发明实施例增加了一条不同协议的底层承载链路, 这样, 承载链路间可以 互为备份。 Diameter节点间发送消息只与 Diameter链路相关, 不关心底层 载链路的变化, 也就是, 其中一条底层承载链路发生故障后, 上层应用发送 或者接收消息, 不受底层承载链路变化的影响, 也不需要进行额外的重新选 择链路操作, 从而保证了 Diameter链路的可靠性, 并简化了处理过程, 节省 成本。 装置实施例 根据本发明的实施例, 提供了一种 Diameter网元。 图 5是才艮据本发明实施例的 Diameter 网元的结构图。 如图 5 所示, 该 Diameter 网元主要包括: 建立模块 502 , 用于在 Diameter 网元与另一个 Diameter 网元之间建立第一底层承载链路和第二底层承载链路; 发送模块 504 , 连接至建立模块 502 , 用于通过第一底层 7 载链路或第二底层 7 载链路 向另一个 Diameter网元发送能力交换请求消息; 接收模块 506 , 连接至发送 模块 504 , 用于在能力交换成功之后接收来自另一个 Diameter网元的成功响 应。 此夕卜, 该 Diameter网元还包括: 交互模块 508 , 连接至接收模块 506 , 用于在接收成功响应之后通过第一底层^载链路和第二底层^载链路中的一 个与另一个 Diameter网元进行通信, 并且在第一底层 载链路和第二良层承 载链路中的上述一个出现故障时通过第一底层承载链路和第二底层承载链路 中的另一个与另一个 Diameter网元进行通信。 优选地, 上述的能力交换过程是指作为客户端的 Diameter节点 1 , 向对 端 (即, 作为月艮务器端的 Diameter节点 2 )发送 CER ( Capability Exchange Request, 能力交换请求) 消息。 该 CER消息优先通过 SCTP承载链路发送。 优选地, 作为 艮务器端的 Diameter节点 2在接收到 CER消息之后, 对 作为客户端的 Diameter节点 1进行-险证, 例:^ ,对 Diameter节点 1的主机名 和支持能力进行匹配, 如果匹配通过, 则回复正确的 CEA ( Capability Exchange Answer, 能力交换响应 ) 消息。 Diameter节点 1在接) 到 CEA消 息之后认为 Diameter链路已经正常建立。 上述 Diameter网元与另一个 Diameter网元之间的 Diameter链路对应了 两条底层承载链路, 即, SCTP承载链路和 TCP承载链路。 也就是, 在上述 两条底层承载链路上承载 Diameter链路。 优选地, 建立模块 502在 Diameter网元(例如, 第一 Diameter节点)与 另一个 Diameter网元(例如, 第二 Diameter节点)之间建立第一底层 载链 路和第二底层承载链路包括如下步骤: The Diameter nodes can still communicate normally. In summary, in the case that only one Diameter link is reserved between two Diameter nodes, the embodiment of the present invention adds an underlying bearer link of different protocols, so that the bearer links can be mutually backed up. The message sent between the Diameter nodes is only related to the Diameter link, and does not care about the change of the underlying link. That is, after one of the underlying bearer links fails, the upper layer application sends or receives a message, which is not affected by the change of the underlying bearer link. There is also no need to perform additional re-selection of link operations, thereby ensuring the reliability of the Diameter link, simplifying the processing and saving costs. Apparatus Embodiment According to an embodiment of the present invention, a Diameter network element is provided. FIG. 5 is a structural diagram of a Diameter network element according to an embodiment of the present invention. As shown in FIG. 5, the Diameter network element mainly includes: an establishing module 502, configured to establish a first underlying bearer link and a second underlying bearer link between a Diameter network element and another Diameter network element; and a sending module 504, Connected to the establishing module 502, configured to send a capability exchange request message to another Diameter network element through the first bottom layer 7 carrier link or the second bottom layer 7 carrier link; the receiving module 506 is connected to the sending module 504 for A successful response from another Diameter network element is received after the exchange is successful. In addition, the Diameter network element further includes: an interaction module 508, connected to the receiving module 506, configured to pass one of the first bottom loading link and the second bottom loading link after receiving the successful response The Diameter network element communicates, and the first underlying link and the second good layer When the one of the first link fails, the other one of the first underlying bearer link and the second underlying bearer link communicates with another Diameter network element. Preferably, the foregoing capability exchange process refers to a Diameter node 1 as a client, and sends a CER (Capability Exchange Request) message to the peer end (ie, Diameter node 2 as a server). The CER message is sent preferentially through the SCTP bearer link. Preferably, the Diameter node 2, which is the server end, performs a risk test on the Diameter node 1 as a client after receiving the CER message, for example: ^, matching the host name and support capability of the Diameter node 1 if the match is passed. Then reply to the correct CEA (Capability Exchange Answer) message. Diameter node 1 considers that the Diameter link has been established normally after receiving the CEA message. The Diameter link between the above Diameter network element and another Diameter network element corresponds to two underlying bearer links, namely, an SCTP bearer link and a TCP bearer link. That is, the Diameter link is carried on the two underlying bearer links. Preferably, the establishing module 502 establishes the first underlying carrier link and the second underlying bearer link between the Diameter network element (eg, the first Diameter node) and another Diameter network element (eg, the second Diameter node), including the following step:
1 ) 分别在上述第一 Diameter节点和上述第二 Diameter节点上, 为上述 第一底层^载链路配置上述第一 Diameter节点的 IP地址和第一端口号以及 上述第二 Diameter节点的 IP地址和第二端口号; 2 ) 分别在上述第一 Diameter节点和上述第二 Diameter节点上, 为上述 第二底层^载链路配置上述第一 Diameter节点的 IP地址和第三端口号以及 上述第二 Diameter节点的 IP地址和第四端口号, 其中, 上述第三端口号与 上述第一端口号不同, 上述第四端口号与上述第二端口号不同。 在正常通信时, 两个 Diameter节点之间可以通过 SCTP承载链路来承载 Diameter链路, 以便在两个 Diameter节点之间进行通信。 一旦 SCTP 载链 路发生故障, Diameter链路将快速切换到已经握手成功并建立好的 TCP承载 链路上。 通过 TCP承载链路, 两个 Diameter节点之间仍然可以正常通信, 从而提高了 Diameter链路的可靠性。 综上所述, 在两个 Diameter节点间只保留一条 Diameter链路的情况下, 本发明实施例增加了一条不同协议的底层承载链路, 这样, 承载链路间可以 互为备份。 Diameter节点间发送消息只与 Diameter链路相关, 不关心底层 载链路的变化, 也就是, 其中一条底层承载链路发生故障后, 上层应用发送 或者接收消息, 不受底层承载链路变化的影响, 也不需要进行额外的重新选 择链路操作, 从而保证了 Diameter链路的可靠性, 并简化了处理过程, 节省 成本。 需要说明的是, 在附图的流程图示出的步骤可以在诸如一组计算机可执 行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻辑顺序, 但是 在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 1) configuring, on the first Diameter node and the second Diameter node, the IP address and the first port number of the first Diameter node and the IP address of the second Diameter node for the first bottom carrier link a second port number; 2) configuring, on the first Diameter node and the second Diameter node, an IP address and a third port number of the first Diameter node and the second Diameter for the second bottom carrier link The IP address of the node and the fourth port number, wherein the third port number is different from the first port number, and the fourth port number is different from the second port number. In normal communication, the Diameter link can be carried over the SCTP bearer link between the two Diameter nodes to communicate between the two Diameter nodes. Once the SCTP carrier link fails, the Diameter link will quickly switch to the TCP bearer link that has been successfully handshaked and established. Through the TCP bearer link, the two Diameter nodes can still communicate normally, thereby improving the reliability of the Diameter link. In summary, in the case where only one Diameter link is reserved between two Diameter nodes, In the embodiment of the present invention, an underlying bearer link of a different protocol is added, so that the bearer links can be mutually backed up. The message sent between the Diameter nodes is only related to the Diameter link, and does not care about the change of the underlying link. That is, after one of the underlying bearer links fails, the upper layer application sends or receives a message, which is not affected by the change of the underlying bearer link. There is also no need to perform additional re-selection of link operations, thereby ensuring the reliability of the Diameter link, simplifying the processing and saving costs. It should be noted that the steps shown in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and, although the logical order is shown in the flowchart, in some cases, The steps shown or described may be performed in an order different than that herein. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种直径 Diameter链路的建立方法, 其特征在于, 包括: A method for establishing a diameter Diameter link, comprising:
在第一 Diameter节点和第二 Diameter节点之间建立第一底层承载链 路和第二底层 7 载链路;  Establishing a first underlying bearer link and a second bottom layer 7 link between the first Diameter node and the second Diameter node;
所述第一 Diameter节点通过所述第一底层 7 载链路或所述第二底层 载链路向所述第二 Diameter节点发送能力交换请求消息;  Transmitting, by the first Diameter node, a capability exchange request message to the second Diameter node by using the first bottom layer 7 link or the second bottom load link;
如果能力交换成功, 所述第一 Diameter节点接收来自第二 Diameter 节点的成功响应。  If the capability exchange is successful, the first Diameter node receives a successful response from the second Diameter node.
2. 根据权利要求 1所述的方法, 其特征在于, 在所述第一 Diameter节点接 收来自第二 Diameter节点的成功响应之后, 所述方法还包括: The method according to claim 1, wherein after the first Diameter node receives the successful response from the second Diameter node, the method further includes:
所述第一 Diameter节点与所述第二 Diameter节点通过所述第一底层 承载链路进行通信;  The first Diameter node and the second Diameter node communicate through the first underlying bearer link;
在所述第一底层 载链路出现故障时, 所述第一 Diameter节点与所 述第二 Diameter节点通过所述第二底层 载链路进行通信。  When the first underlying link fails, the first Diameter node and the second Diameter node communicate via the second underlying link.
3. 根据权利要求 1所述的方法, 其特征在于, 在所述第一 Diameter节点接 收来自第二 Diameter节点的成功响应之后, 所述方法还包括: The method according to claim 1, wherein after the first Diameter node receives the successful response from the second Diameter node, the method further includes:
所述第一 Diameter节点与所述第二 Diameter节点通过所述第二底层 承载链路进行通信;  The first Diameter node and the second Diameter node communicate through the second underlying bearer link;
在所述第二底层 载链路出现故障时, 所述第一 Diameter节点与所 述第二 Diameter节点通过所述第一底层 载链路进行通信。  And when the second underlying link fails, the first Diameter node and the second Diameter node communicate through the first underlying link.
4. 居权利要求 1所述的方法, 其特征在于, 所述在第一 Diameter节点和 第二 Diameter节点之间建立第一底层承载链路包括: The method of claim 1, wherein the establishing the first underlying bearer link between the first Diameter node and the second Diameter node comprises:
分别在所述第一 Diameter节点和所述第二 Diameter节点上,为所述 第一底层 载链路配置所述第一 Diameter节点的 IP地址和第一端口号 以及所述第二 Diameter节点的 IP地址和第二端口号。  Configuring, on the first Diameter node and the second Diameter node, an IP address and a first port number of the first Diameter node and an IP of the second Diameter node for the first bottom carrier link Address and second port number.
5. 居权利要求 4所述的方法, 其特征在于, 所述在第一 Diameter节点和 第二 Diameter节点之间建立第二底层承载链路包括: 分别在所述第一 Diameter节点和所述第二 Diameter节点上,为所述 第二底层 载链路配置所述第一 Diameter节点的 IP地址和第三端口号 以及所述第二 Diameter节点的 IP地址和第四端口号, 其中, 所述第三 端口号与所述第一端口号不同,所述第四端口号与所述第二端口号不同。 5. The method of claim 4, wherein the establishing the second underlying bearer link between the first Diameter node and the second Diameter node comprises: Configuring an IP address and a third port number of the first Diameter node and an IP of the second Diameter node for the second underlying carrier link on the first Diameter node and the second Diameter node, respectively An address and a fourth port number, wherein the third port number is different from the first port number, and the fourth port number is different from the second port number.
6. 根据权利要求 1所述的方法, 其特征在于, 所述能力交换请求消息中携 带的信息包括: 所述第一 Diameter节点的本地主机名、域名和支持能力。 The method according to claim 1, wherein the information carried in the capability exchange request message comprises: a local host name, a domain name, and a support capability of the first Diameter node.
7. 根据权利要求 1所述的方法, 其特征在于, 如果能力交换失败, 则所述 方法还包括: The method according to claim 1, wherein if the capability exchange fails, the method further includes:
所述第二 Diameter节点向所述第一 Diameter节点发送携带有能力交 换失败信息的响应。  The second Diameter node sends a response carrying the capability exchange failure information to the first Diameter node.
8. 根据权利要求 1至 7中任一项所述的方法, 其特征在于, 所述第一底层 承载链路为 SCTP承载链路, 所述第二底层承载链路为 TCP承载链路。 The method according to any one of claims 1 to 7, wherein the first underlying bearer link is an SCTP bearer link, and the second underlying bearer link is a TCP bearer link.
9. 一种直径 Diameter网元, 其特征在于, 包括: 9. A diameter Diameter network element, comprising:
建立模块,用于在所述 Diameter网元与另一个 Diameter网元之间建 立第一底层承载链路和第二底层承载链路;  Establishing a module, configured to establish a first bottom bearer link and a second bottom bearer link between the Diameter network element and another Diameter network element;
发送模块, 用于通过所述第一底层承载链路或第二底层承载链路向 所述另一个 Diameter网元发送能力交换请求消息;  a sending module, configured to send a capability exchange request message to the another Diameter network element by using the first underlying bearer link or the second underlying bearer link;
接收模块, 用于在能力交换成功之后接收来自所述另一个 Diameter 网元的成功响应。  And a receiving module, configured to receive a successful response from the another Diameter network element after the capability exchange succeeds.
10. 根据权利要求 9所述的网元, 其特征在于, 包括: The network element according to claim 9, comprising:
交互模块, 用于在接收所述成功响应之后通过所述第一底层承载链 路和所述第二底层 7 载链路中的一个与所述另一个 Diameter网元进行通 信, 并且在所述第一底层承载链路和第二底层承载链路中的所述一个出 现故障时通过第一底层承载链路和第二底层承载链路中的另一个与所述 另一个 Diameter网元进行通信。  An interaction module, configured to communicate with the another Diameter network element by using one of the first underlay link and the second underlay link after receiving the successful response, and in the When the one of the underlying bearer link and the second underlying bearer link fails, the other of the first underlying bearer link and the second underlying bearer link communicates with the other Diameter network element.
PCT/CN2010/074025 2009-08-17 2010-06-17 Method for establishing diameter link and diameter network element WO2011020369A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910163463.9 2009-08-17
CN 200910163463 CN101621476B (en) 2009-08-17 2009-08-17 Establishing method of Diameter link and Diameter network element

Publications (1)

Publication Number Publication Date
WO2011020369A1 true WO2011020369A1 (en) 2011-02-24

Family

ID=41514527

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/074025 WO2011020369A1 (en) 2009-08-17 2010-06-17 Method for establishing diameter link and diameter network element

Country Status (2)

Country Link
CN (1) CN101621476B (en)
WO (1) WO2011020369A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621476B (en) * 2009-08-17 2011-11-23 中兴通讯股份有限公司 Establishing method of Diameter link and Diameter network element
CN102271366A (en) * 2011-08-29 2011-12-07 大唐移动通信设备有限公司 Message transmission method and device for Diameter node
CN105591831A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Service capability detection method and apparatus
CN106341334B (en) * 2015-07-08 2021-03-30 中兴通讯股份有限公司 Method and device for adjusting Diameter signaling link and DRA
CN105391596A (en) * 2015-11-04 2016-03-09 西安金源电气股份有限公司 User management fusion system in power TD-LTE vehicle-mounted system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842020A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method for realizing data service backup
CN1889457A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for raising Diameter internodal communication reliability
US20090080440A1 (en) * 2007-09-26 2009-03-26 Avneesh Singh Balyan Method and Apparatus for Establishing and Managing Diameter Associations
CN101621476A (en) * 2009-08-17 2010-01-06 中兴通讯股份有限公司 Establishing method of Diameter link and Diameter network element

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100589484C (en) * 2005-11-29 2010-02-10 华为技术有限公司 Bearing system and method for media network gate control protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842020A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method for realizing data service backup
CN1889457A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for raising Diameter internodal communication reliability
US20090080440A1 (en) * 2007-09-26 2009-03-26 Avneesh Singh Balyan Method and Apparatus for Establishing and Managing Diameter Associations
CN101621476A (en) * 2009-08-17 2010-01-06 中兴通讯股份有限公司 Establishing method of Diameter link and Diameter network element

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
P.CALHOUN ET AL., DIAMETER BASE PROTOCOL. RFC3588., September 2003 (2003-09-01) *

Also Published As

Publication number Publication date
CN101621476B (en) 2011-11-23
CN101621476A (en) 2010-01-06

Similar Documents

Publication Publication Date Title
US6917592B1 (en) LNS high availability and load balancing with LNS-to-LNS state offloading
US8437305B2 (en) Method for providing home agent geographic redundancy
US6427071B1 (en) Apparatus and method for providing transporting for a control signal
US20120281632A1 (en) Method for providing home agent geographic redundancy via a service redundancy protocol
WO2014056454A1 (en) Method and system for ike packet negotiation
US10530644B2 (en) Techniques for establishing a communication connection between two network entities via different network flows
WO2008020644A1 (en) Proxy server, communication system, communication method, and program
US7966229B2 (en) Method and system for accounting access by users to data networks, related computer program product
JP2006135970A (en) SoftRouter DYNAMIC BINDING PROTOCOL
US20100103851A1 (en) System for enabling communication over a wireless intermittently connected network
WO2008031334A1 (en) Route updating method, system and router
WO2011020363A1 (en) Method and system for realizing load balance and diameter client
WO2011020369A1 (en) Method for establishing diameter link and diameter network element
JP2009501454A (en) Link management system
WO2011038637A1 (en) Method for realizing end-to-end call, end-to-end call terminal and system
WO2012048585A1 (en) Switching method and router
WO2007033519A1 (en) A method for updating the access of virtual private dial-network dynamically
JP6176340B2 (en) Exchange apparatus, exchange program, exchange method, and communication system
CN114726523B (en) Password application service system and quantum security capability open platform
JP4619441B2 (en) Method and system for realizing dynamic signaling routing
WO2010139220A1 (en) Method and system for realizing cross-protocol failover
WO2011143888A1 (en) Method and system for backing up protocol state between devices
WO2012174901A1 (en) Rsvp authentication method and device
WO2012040971A1 (en) Key management method and system for routing protocol
CN114765805A (en) Communication method, network equipment, base station and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10809502

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10809502

Country of ref document: EP

Kind code of ref document: A1