WO2009074094A1 - A method and apparatus for processing the break of the connection based on the charging and transmitting protocol - Google Patents

A method and apparatus for processing the break of the connection based on the charging and transmitting protocol Download PDF

Info

Publication number
WO2009074094A1
WO2009074094A1 PCT/CN2008/073303 CN2008073303W WO2009074094A1 WO 2009074094 A1 WO2009074094 A1 WO 2009074094A1 CN 2008073303 W CN2008073303 W CN 2008073303W WO 2009074094 A1 WO2009074094 A1 WO 2009074094A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
diameter
diameter relay
relay
client
Prior art date
Application number
PCT/CN2008/073303
Other languages
French (fr)
Chinese (zh)
Inventor
Hongli Wang
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009074094A1 publication Critical patent/WO2009074094A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a connection interruption processing method and apparatus based on a charging transmission protocol. Background of the invention
  • the Diameter protocol (Billing and Transfer Protocol) is widely used in the IP Multimedia Subsystem (IMS) field, for example, it is applied to the Rf interface for offline charging, to the Ro interface for online charging, and to the application.
  • IMS IP Multimedia Subsystem
  • Interrogating-Call Session Control Function/Serving-Call Session Control Function query call 4 session control function/service call session control function, I-CSCF/S-CSCF) and Home Subscriber Server (HSS) Sh interface, etc.
  • the access device is connected to the home Diameter server through a Diameter relay.
  • the connection between the access device and the Diameter relay, and between the Diameter relay and the home Diameter server are Diameter connections. Only one home Diameter server and one Diameter relay are shown in FIG. 1.
  • the access device can be connected to multiple home Diameter servers through a Diameter relay, and the access device can also be connected to multiple Diameter relays. .
  • the Diameter relay in Figure 1 can be either a Diameter relay agent or a Proxy agent relay.
  • FIG. 2 The following takes FIG. 2 as an example to describe a Diameter-based connection interruption processing method in the current non-direct connection networking mode.
  • the access device is connected to the home Diameter server 1 and the home Diameter server 2 through Diameter relay.
  • the access device sends a request message to the home Diameter server 1.
  • the Diameter relay finds that the connection between the access device and the home Diameter server 1 is broken, and the Diameter relay returns a response message to the access device.
  • Result-Code carried in the response message Attribute Value Pair (AVP) is set to
  • DIAMETER— UNABLE—TO—DELIVE to indicate that the Diameter relay cannot forward the request message.
  • the access device After the access device determines that the request message cannot be forwarded according to the received response message, and cannot send the request message to the home Diameter server 1 through other Diameter relays, the access device continuously sends a request message to the Diameter relay to try Through the connection between the Diameter relay and the Diameter server 1, until the connection between the Diameter relay and the home Diameter server 1 is restored, the Diameter relay transmits a request message to the Diameter server 1, thereby ensuring reliable transmission of the Diameter application message.
  • the request message and the response message are continuously transmitted between the access device and the Diameter relay, thereby occupying a large amount between the access device and the Diameter relay. IP bandwidth, The information interaction between the access device and other network devices is seriously affected. For example, in FIG. 2, the information exchange between the Diameter towel and the home Diameter server 2 is seriously affected. Similarly, there are similar issues before the connection between the Diameter relay and the client is restored. Summary of the invention
  • the embodiment of the invention provides a connection interruption processing method and device based on the charging transmission protocol Diameter, which avoids the phenomenon that a large number of repeated messages are sent in the network during the period when the Diameter relay and the server or the client are unreachable, thereby saving network transmission resources.
  • the Diameter-based connection interruption processing device provided by the embodiment of the present invention is located in a Diameter relay device, and the device includes:
  • the unreachable detection module is configured to determine whether the Diameter relay and the server or the client are reachable, if
  • the sending module is triggered
  • a sending module configured to send notification information to the neighboring node of the Diameter relay according to the trigger of the unreachable detection module, where the notification information includes that the Diameter relay is unreachable between the server or the client, to notify The neighboring node no longer sends a message to the server or client through the Diameter relay.
  • a receiving module configured to receive a message
  • a judging module configured to: when it is determined that the message received by the receiving module is not including the notification information between the first Diameter relay and the server or the client, prohibiting, by the first Diameter relay, from the server or the client Send a message.
  • the access device provided by the embodiment of the present invention is connected to the server through a Diameter relay, and the access device includes: a receiving module, configured to receive a message;
  • the determining module is configured to: when it is determined that the message received by the receiving module includes the unreachable notification information between the first Diameter relay and the server, prohibit sending the message to the server by using the first Diameter relay.
  • the server provided by the embodiment of the present invention is connected to the client through a Diameter relay, and the server includes:
  • a receiving module configured to receive a message
  • the determining module is configured to: when it is determined that the message received by the receiving module includes the notification information that is unreachable between the first Diameter relay and the client, prohibit sending the message to the client by using the first Diameter relay.
  • the unreachable detection module is configured to determine whether the Diameter relay is reachable between the server and the client, and if the Diameter relay does not reach the server or the client, the sending module is triggered;
  • a sending module configured to send, according to a trigger of the unreachable detection module, a notification information to the neighboring node of the Diameter relay, where
  • the notification information includes that the Diameter relay is unreachable between the server or the client, to notify the neighboring node that the message is no longer sent to the server or the client by using the Diameter relay;
  • a receiving module configured to receive a message
  • the determining module is configured to, after determining that the message received by the receiving module includes the notification information that is not reachable between the predetermined Diameter relay and the server or the client, prohibit sending the message to the server or the client by using the predetermined Diameter relay .
  • the link state of each connection between the Diameter relay and the server or the client can be obtained, and each connection is utilized.
  • the link state can determine whether the Diameter relay is unreachable between the server and the client. After the unreachable occurs, the neighboring node does not pass the Diameter relay by sending a notification message to the neighboring node of the Diameter relay.
  • the above server or client sends a message, thereby avoiding a large number of repeated transmissions of messages in the network during the period of the Diameter relay server or the client being unreachable, thereby saving network transmission resources.
  • FIG. 1 is a schematic diagram of a typical network structure of a node indirectly connected network in the prior art
  • FIG. 2 is a schematic diagram of a prior art Diameter-based connection interruption processing method
  • FIG. 3 is a schematic diagram of a connection interruption processing method in application scenario 1 of the embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a connection interruption processing method in application scenario 2 of the embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a connection interruption processing method in application scenario 3 of the embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a connection interruption processing method of an application scenario W according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a connection interruption processing method in application scenario 5 of an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a Diameter-based connection interruption processing apparatus according to an embodiment of the present invention. Mode for carrying out the invention
  • the connection information is used to determine whether the first Diameter relay is unreachable between the server and the server.
  • the first Diameter relay here does not specifically refer to a Diameter relay in the network, and the first Diameter relay may be any Diameter relay in the network.
  • the name of the first Diameter relay is used for convenience, clarity, and the like.
  • the server here is the Diameter server to which the first Diameter relay belongs. The operation of obtaining the connection information between the first Diameter relay and the server may be performed by the first Diameter relay.
  • embodiments of the present invention also do not preclude the possibility of performing an acquisition operation by other network devices.
  • the connection between the first Diameter relay and the server may be: a direct connection between the first Diameter relay and the server, or may be: a non-first between the first Diameter relay and the server direct connection.
  • Indirect connection example the first Diameter relay is connected to the server through other Diameter relays, that is, a multi-level Diameter relay connection.
  • the first Diameter is obtained.
  • the first specific example of the connection information with the server is: detecting the failure of the link directly connected between the first Diameter relay and the server; the second specific example is: receiving other Diameter relays The transmitted fault information indicating that the Diameter relay transmitting the fault information is unreachable between the server; the third specific example is: detecting a chain between the first Diameter relay and other directly connected Diameter relays The road has failed.
  • the first is obtained.
  • connection information between the Diameter relay and the server is: detecting the failure of the link directly connected between the first Diameter relay and the server, and acquiring other information between the first Diameter relay and the server.
  • Linked link state information another specific example is: receiving fault information transmitted by other Diameter relays, and acquiring link state information of other connections between the first Diameter relay and the server, where the fault information indication
  • the Diameter relay that sends the fault information is unreachable between the server; other specific examples are: detecting the failure of the link between the other Diameter relays directly connected to the first Diameter relay, and acquiring the first Diameter relay Link status information for other connections to the server.
  • the foregoing embodiments of the present invention can detect the link fault by using multiple existing detection methods.
  • the first Diameter relay can detect the original link fault detection mechanism.
  • Embodiments of the present invention do not limit the specific implementation process for detecting link failure.
  • the unreachable refers to: all connections between the first Diameter relay and the server are:
  • the message transmission cannot be performed, that is, the communication between the first Diameter relay and the server is interrupted.
  • the multiple connections may include: direct connection, and/or indirect connection; if one of the multiple connections has a link failure, and other connections If there is no fault in the link, there is no unreachability between the first Diameter relay and the server; if the link of the multiple connections fails, the first Diameter relay is unreachable between the server and the server.
  • the foregoing determining whether the first Diameter relay and the server are unreachable may be performed by the first Diameter relay.
  • the embodiment of the present invention does not exclude the possibility that the other network device performs the unreachable judgment operation. .
  • the notification information is sent to the neighboring node of the first Diameter relay.
  • the embodiment of the present invention may send the notification information according to the routing information of the first Diameter relay.
  • the notification information includes information that is unreachable between the first Diameter relay and the server, to notify the neighboring node that the message is no longer sent to the server or the client by using the first Diameter relay.
  • the neighboring node of the first Diameter relay may learn from the received notification information that the first Diameter relay is unreachable between the server and the server, and the neighboring node no longer sends a message to the server through the first Diameter relay.
  • the neighboring node here may be: an access device, or may be: a Diameter relay directly connected to the first Diameter relay, and may also be: each server connected to the first Diameter relay.
  • the access device not knows that the first Diameter relay is unreachable between the server and the server, and then no longer sends a request message to the first Diameter relay, that is, the request and the unreachable server are no longer attempted. Therefore, the first Diameter relay does not need to send a response message to the access device, thereby avoiding a large amount of repeated message transmission between the access device and the first Diameter relay.
  • the Diameter relay can modify the link state information of the connection with the server according to the notification information after receiving the notification information, and the Diameter relay PJ that receives the notification information adopts the "h"
  • the operation performed after the first Diameter relay receives the failure information that is, the Diameter relay that receives the notification information becomes the first Diameter relay described in the above embodiment.
  • the Diameter towel can no longer send a request message through the first Diameter relay after receiving the request message of the access device.
  • the neighboring node is a server, the server can discard the received notification information.
  • the operation of transmitting the notification information may be performed by the first Diameter relay.
  • the embodiment of the present invention does not exclude the possibility of performing the above-described operation of transmitting the notification information by other network devices.
  • the foregoing notification information may include: first Diameter relay information, unreachable server information (that is, unreachable host information), and information that is unreachable between the first Diameter relay information and the server.
  • the notification information may further include: information that the first Diameter relays to the unreachable server in the domain, or the first Diameter relays to other reachable servers in the domain where the unreachable server is located. Information and information about whether other servers are reachable.
  • the broadcast transmission method may be adopted.
  • other transmission methods such as unicast may also be adopted.
  • the broadcast transmission mode in order to avoid the loopback of the notification information, the broadcast loopback prevention mechanism can be adopted.
  • the embodiments of the present invention may adopt various existing broadcast loopback prevention mechanisms, for example, increasing the number of transmissions in the notification information.
  • the neighboring node that receives the notification information does not return the notification information along the receiving path; further, the notification information is no longer relayed to the source Diameter that issued the notification information, and the like.
  • the embodiments of the present invention do not limit the implementation process of preventing the broadcast loopback mechanism.
  • the specific implementation process of detecting the unreachable transition between the first Diameter relay and the server is basically similar to the implementation process of detecting the unreachable. For example, there is only one connection between a Diameter relay in the network and a server. In the case that the link failure recovery of the direct connection between the first Diameter relay and the server is detected, it is determined that the first Diameter relay and the server are changed from unreachable to reachable; for example, in the network When one or more connections exist between a Diameter relay and a server, after receiving the fault recovery information transmitted by other Diameter relays, it is determined that there is no other connection between the first Diameter relay and the server.
  • the specific implementation process of sending the recovery notification information to the neighboring node of the first Diameter relay is similar to the specific implementation process of sending the notification information. . It will not be described in detail here.
  • the neighboring node of the first Diameter relay may learn from the received recovery notification information that the first Diameter relay and the server are changed from unreachable to reachable, and then the neighboring node may relay through the first Diameter. Send a message to the above server.
  • the adjacent node herein may be: an access device, or may be: a Diameter relay directly connected to the first Diameter relay, and may also be: each server connected to the first Diameter relay.
  • the foregoing recovery notification information may include: a first Diameter relay information, a server information that is changed from unreachable to reachable (that is, unreachable host information), and information that is reachable between the first Diameter relay information and the server.
  • the recovery notification information is sent to the adjacent node of the first Diameter relay by using the broadcast transmission mode, and the broadcast loopback prevention mechanism may also be adopted.
  • the implementation process is similar to the specific implementation process of sending the notification information described above, and is not here. More details.
  • FIG. 3 is a schematic diagram of a connection interruption processing method in an application scenario of a single Diameter relay.
  • Figure 3 includes: access device C (belonging to the example.net domain), Diameter relay R (belonging to the r.exapmle.net domain), S1 server (belonging to the example.org domain), and S2 server (belonging to the example.org domain) And the S3 server (belonging to the example.com domain).
  • the S1 server, S2 server, and S3 server are all Diameter servers.
  • the access device C is connected to the S1 server, the S2 server, and the S3 server through the Diameter relay R, and the Diameter relay R provides the relay agent service for the access device C.
  • the Diameter relay R peer (Peer) data information is shown in Table 1.
  • the peer data information here is the information of the adjacent nodes of the Diameter relay R.
  • the Diameter relay R has W neighboring nodes, which are: S1 server, S2 server, S3 server, and access device C.
  • the local route information of the Diameter relay R is shown in Table 2.
  • the Diameter relay R detects that the link directly connected to the Diameter server S1 is interrupted, the local maintenance service is refreshed. Server status information.
  • the Diameter towel broadcasts a message to the neighboring node access device C, the S2 server, and the S3 server, that is, broadcasts the notification information.
  • the information included in the broadcast message is shown in Table 3.
  • the broadcast agent information is Diameter towel followed by R information; since the broadcast message is issued by Diameter towel R, the source broadcast agent information is Diameter relay R information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R and the server S2 is not interrupted, the Diameter relay R is reachable to the destination domain; the host information is the server S1 information; the Diameter relay R to the server S1 is unreachable.
  • the destination domain information may not be included in the table 3, that is, the "destination domain” field is an optional parameter, and the "host” field may carry N host information at the same time, so that the neighboring node Diameter can be notified through the broadcast message.
  • the broadcast message advertises the neighboring nodes that received the broadcast message:
  • the connection between the Diameter relay R and the server S1 is interrupted, that is, unreachable, but the Diameter relay R and example.org are still reachable.
  • Diameter relay R broadcasts messages according to the information in Table 1 and Table 2.
  • the access device C refreshes the locally maintained server state information according to the "diameter relay R to server S1 unreachable" information in the broadcast message; then, stops sending the service message to the server S1, but can communicate with the server. Service message transmission between S2.
  • the server S2 has no interworking relationship with the server S1. Therefore, after receiving the broadcast message, the server S2 can directly discard the broadcast message. Similarly, server S3 can also discard it directly after receiving a broadcast message.
  • FIG. 4 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay interconnections.
  • Figure 4 includes: access device C (belonging to cexample.net domain), Diameter relay R1 (belonging to r.exapmle.net domain),
  • Diameter relay R2 (belonging to the r.exapmle.org domain), SI server (belonging to the example.org domain), S2 server (belonging to the example.org domain), and S3 server (belonging to the example.com domain).
  • the S1 server, S2 server, and S3 server are all Diameter servers.
  • the access device C is connected to the S1 server, the S2 server, and the S3 server through the Diameter relay R1 and the Diameter relay.
  • the Diameter relay R1 and the Diameter relay R2 provide the relay service for the access device C.
  • the Diameter relay R2 When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, the S2 server, and the S3 server, and the broadcast message includes information such as Table 4 shows. Table 4
  • the broadcast agent information is Diameter relay R2 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is the information of the Diameter relay R2; the destination domain information is the domain information of the server S1. The link between the Diameter towel and the server S2 is not broken. Therefore, the Diameter towel is reachable to the destination domain after R2; the host information is the server S1 information; and the Diameter relay R2 to the server S1 is unreachable.
  • the server S2 After receiving the broadcast message, the server S2 has no interworking relationship with the server S1. Therefore, after receiving the broadcast message, the server S2 can directly discard the broadcast message. Similarly, server S3 can also discard it directly after receiving a broadcast message.
  • the Diameter relay R1 After receiving the broadcast message, the Diameter relay R1 refreshes the locally maintained server state information according to the "diameter relay R2 to server S1 unreachable" information in the broadcast message; meanwhile, it is determined whether the message transmission can be performed with the server S1 through other connections. If there are other connections that can transmit messages with the server S1, the Diameter relay R1 can no longer transmit the broadcast message; if there is no other connection to transmit the message with the server S1, the Diameter relay R1 continues to send a broadcast to its neighboring nodes. Message. Since the broadcast loopback prevention mechanism is adopted, the Diameter relay R1 can only transmit a broadcast message to the access device C, and no longer send a broadcast message to the Diameter relay R2.
  • the information included in the broadcast message sent by the Diameter relay R1 to the access device C is shown in Table 5.
  • the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R1 and the server S2 is not interrupted, the Diameter relay R1 is reachable to the destination domain; Server SI information; Diameter towel is not reachable after R1 to server SI.
  • the access device C After receiving the broadcast message shown in Table 5, the access device C refreshes the locally maintained server state information according to the "diameter relay R1 to server S1 unreachable" information in the broadcast message; and then stops sending the service message to the server S1. However, service message transmission can be performed with the server S2.
  • FIG. 5 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay interconnections.
  • the network entity included in FIG. 5 is the same as the network entity included in FIG.
  • the Diameter relay R1 When the Diameter relay R1 detects that the link directly connected to the Diameter relay R2 is interrupted, the Diameter relay R1 sends a broadcast message to the neighboring node, that is, the peer access device C, according to the local routing information, and the information included in the broadcast message is as follows. Table 6 shows.
  • the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by Diameter relay R1, the source broadcast agent information is Diameter relay R1 information; the destination domain information is server S1, server S2, and The domain information of the server S3 is disconnected. The link between the Diameter relay R1 and the Diameter relay R2 is interrupted. Therefore, the Diameter relay R1 to the destination domain is unreachable.
  • the host information can be empty. Of course, the host information can also be empty. That is, the host information may be the server S1, the server S2, and the server S3 information; if the host information is not empty, the Diameter relay R1 to the server S1, the server S2, and the server S3 are unreachable.
  • the access device C After receiving the broadcast message shown in Table 6, the access device C refreshes the locally maintained server state information according to the information of the "diameter relay R1 to the destination domain is unreachable" in the broadcast message; and then stops to the server S1 and the server. S2 and server S3 send a service message.
  • the Diameter relay R2 When the Diameter relay R2 detects that the link directly connected to the Diameter relay R1 is interrupted, the Diameter relay R2 can also send a broadcast message to the neighboring nodes, that is, the peer server S1, the server S2, and the server S3 according to the local routing information, and broadcast.
  • the information included in the message is shown in Table 7.
  • Table 7 Broadcast message information broadcast agent r.example.org source broadcast agent r.example.org destination domain example.net state unreachable host NULL state NULL
  • the broadcast agent information is Diameter relay R2 information; since the broadcast message is Diameter relay R2 is issued, therefore, the source broadcast proxy information is Diameter relay R2 information; the destination domain information is the domain information of the Diameter relay R1, and the link connecting the Diameter relay R1 and the Diameter relay R2 is interrupted, therefore, The Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
  • the server S1, the server S2, and the server S3 After receiving the broadcast message shown in Table 7, the server S1, the server S2, and the server S3 refresh the state information of the locally maintained access device C according to the information of the "diameter relay R2 to the destination domain is unreachable" in the broadcast message; Then, the message transmission with the access device C is stopped.
  • FIG. 6 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario in which multiple Diameter relay agents are interconnected.
  • Figure 6 includes: access device C (belonging to the example.net domain) and Diameter relay R1 (belonging to the rl.exapmle.net domain),
  • Diameter relay R2 (belonging to r2.exapmle.org domain), Diameter relay R3 (belonging to r3.exapmle.org domain) and B S1 month server (belonging to example.org domain).
  • the S1 server is a Diameter server. There are two connections between the access device C and the S1 server. That is, the access device C is connected to the SI server through the Diameter relay R1 and the Diameter relay R2, and the access device C also relays the R3 SI through the Diameter relay R1 and Diameter.
  • the server connection that is, the Diameter Relay R2 and the Diameter Relay R3 provide redundant services for the S1 server in the example.org domain.
  • Diameter relay Rl, Diameter relay R2 and Diameter relay R3 provides relay service for access device C.
  • the Diameter relay R2 When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, according to the local routing information, and the information included in the broadcast message is as shown in Table 8. Shown.
  • the broadcast agent information is Diameter towel followed by R2 information; since the broadcast message is issued by the Diameter towel following R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R2 and the S1 server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information is the S1 server information; the Diameter relay R2 to the server S1 is unreachable.
  • the Diameter relay R1 After receiving the broadcast message shown in Table 8, the Diameter relay R1 refreshes the locally maintained server state information according to the information of the "diameter relay R2 to the destination domain is unreachable" in the broadcast message; since the Diameter relay R1 can also pass The Diameter relay R3 performs message transmission with the S1 server, and therefore, the Diameter relay R1 terminates the transmission of the broadcast message. Thereafter, the Diameter relay R1 receives the message sent by the access device C, and then transmits the message through the Diameter relay R3 and the S1 server S1.
  • FIG. 7 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay loop interconnections.
  • Figure 7 includes: access device C (belonging to the example.net domain) and Diameter relay R1 (belonging to the rl.exapmle.net domain),
  • Diameter relay R2 (belonging to the r2.exapmle.org domain), Diameter relay R3 (belonging to r3.exapmle.org ⁇ or), SI server (belonging to the example.org domain) and S2 server (belonging to the example.org domain).
  • the S1 server and the S2 server are Diameter servers. There are two connections between the access device C and the S1 server, that is, the access device C is connected to the SI server through the Diameter relay R1 and the Diameter relay R2, and the access device C also relays the R3 through the Diameter relay R1 and the Diameter relay R3.
  • the Diameter relay R2 is connected to the SI server, that is, the Diameter relay R2 and the Diameter relay R3 provide redundant services for the S1 server in the example.org domain.
  • Diameter relay Rl, Diameter relay R2 and Diameter relay R3 provides relay service for access device C.
  • the Diameter relay R2 When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, according to the local routing information, and the information included in the broadcast message is as shown in Table 9. Shown.
  • the broadcast agent information is Diameter relay R2 information; since the broadcast message is issued by Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is domain information of the server S1, Because the link connecting the Diameter relay R2 and the SI server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
  • the Diameter relay R1 After receiving the broadcast message shown in Table 9, the Diameter relay R1 relays R2 to the destination domain according to the broadcast message.
  • the unreachable information refreshes the locally maintained server status information. Because the Diameter towel needs to pass the Diameter relay R2 after the other path connected to the S1 server, the Diameter relay R1 and the S1 server are unreachable. In this way, the Diameter relay R1 continues to send a broadcast message to its neighboring node, that is, the peer access R3 (Diameter relay R2 is the source Diameter relay that issues the broadcast message, therefore, Diameter The relay R1 no longer sends a broadcast message to the Diameter relay R2, thereby effectively avoiding the broadcast loopback.
  • Diameter relay R1 sends the broadcast agent information in the received broadcast message to its own information.
  • Diameter Relay The broadcast message sent by R1 includes the information shown in Table 10.
  • the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R2 and the S1 server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
  • the Diameter relay R3 After receiving the broadcast message, the Diameter relay R3 refreshes the locally maintained server state information according to the information of the "diameter relay R2 to the destination domain unreachable" in the broadcast message; since the Diameter relay R3 needs to pass the Diameter relay R2 and S 1 The server is connected, and the Diameter relay R2 is unreachable to the destination domain. Therefore, the Diameter relay R3 and the S1 server are unreachable and cannot transmit messages.
  • the Diameter relay R3 intends to send a broadcast message to its neighboring nodes, the peer Diameter relay R2 and the Diameter relay R1, since the Diameter relay R2 is the source Diameter relay that issues the broadcast message, and the Diameter relay R1 is the forwarder. The Diameter relay of the broadcast message, therefore, the Diameter relay R3 no longer sends a broadcast message to the Diameter relay R2, the Diameter relay R1, thereby effectively avoiding the broadcast loopback.
  • the broadcast loopback prevention mechanism can be: The broadcast message is not sent to the broadcast agent in the broadcast message and the source broadcast agent.
  • the broadcast loopback prevention mechanism can also be implemented by the following HopCounter counting method.
  • the optional field HopCounter is added to the broadcast message sent by the Diameter relay. When the broadcast message broadcasts one path for each transmission, the HopCounter count is decremented by 1. When the HopCounter count is 0, the current Diameter node no longer broadcasts the message, thereby preventing the broadcast ring. road. The mechanism needs to configure the HopCounter value according to different actual networking conditions.
  • the HopCounter value of the Diameter relay R2 is set to 2, in the Diameter. After R2 sends a broadcast message, the HopCounter value is decremented by 1, and the HopCounter value after the decrease of 1 is carried in the broadcast message towel.
  • the broadcast message sent by the Diameter relay R2 contains the information shown in Table 11.
  • the Diameter relay R1 After receiving the broadcast message, the Diameter relay R1 determines that the HopCounter>0 in the broadcast message determines that the broadcast message can continue to be sent, and the Diameter relay R1 sends a broadcast to the neighboring node, that is, the peer access device C and the Diameter relay R3. Message, and decrement the HopCounter value in the broadcast message. Diameter Relay The broadcast message sent by R1 contains the information shown in Table 12.
  • the recovery notification information may be sent, and the resume notification information may still be sent in the form of a j 'cast message in each table.
  • the resume notification information may still be sent in the form of a j 'cast message in each table.
  • just "unreachable" in j' broadcast message becomes "reachable”.
  • Each neighboring node that receives the broadcast message such as an access device, a server, or the like, refreshes the locally maintained server state information or the client state information according to the received broadcast message.
  • the service can be transmitted between the access device and the server by using the interrupted recovery connection.
  • the link state of each connection between the Diameter relay and the server can be obtained, and the Diameter relay can be determined by using the link state of each connection.
  • the neighboring node does not send the broadcast message to the server through the Diameter relay by sending the notification information to the neighboring node of the Diameter relay, thereby avoiding the Diameter in the Diameter
  • a large number of repeated transmissions of messages between the access device and the Diameter relay such as effectively reducing the amount of message transmission between the access device and the Diameter relay, and saving network transmission resources.
  • the first Diameter relay and the server are taken as an example, and the technical solution described above is also applicable to the first Diameter relay and the client, which is simple.
  • the Diameter-based connection interruption processing technical solution between the first Diameter relay and the client is no longer repeated.
  • connection interruption between the Diameter relay and the server is still taken as an example, and the technical content described below is also applicable to the processing of the connection interruption between the Diameter relay and the client.
  • the Diameter-based connection interruption processing device is as shown in Fig. 8.
  • the device in Fig. 8 includes an unreachable detection module and a transmission module.
  • the Diameter-based connection interruption processing device may also optionally include: a recovery detection module.
  • the unreachable detection module is configured to obtain connection information between the Diameter relay and the server, and trigger the sending module after determining that the Diameter relay and the server are unreachable according to the connection information.
  • the Diameter relay where the unreachable detection module is located is the first Diameter relay described in the above method implementation.
  • the connection between the Diameter relay and the server may be in multiple ways, and the connection manner may make the connection information have different meanings, as described in the foregoing method embodiments.
  • the unreachable detection module can detect by using various existing detection methods - the link failure is not detailed here.
  • the unreachable detection module may include: a storage submodule and a detection submodule.
  • the storage submodule is used to store link state information of each connection between the Diameter relay and the server.
  • a link link status information can indicate whether the connection between the Diameter relay and the server is reachable.
  • the detecting sub-module is configured to detect that the link directly connected between the Diameter relay and the server is interrupted, or to detect that the Diameter relay receives the notification information sent by other Diameter relays, or detects that the Diameter is located. After the connection between the relay and other Diameter relays is interrupted, it is determined whether the Diameter relay is unreachable between the server and the server according to the link state information stored in the storage submodule. After determining that the relay is unreachable, the sending module is triggered. For example, after detecting the failure information of the link directly connected between the Diameter relay and the server, the detection sub-module determines the link state information of other connections between the Diameter relay and the server.
  • Whether to trigger the sending module for example: after detecting that the Diameter relay receives the fault information from other Diameter relay transmissions, according to the link state information of other connections between the Diameter relay and the server To decide whether to trigger the sending module. After the detection sub-module determines that all the connections between the Diameter relay and the server are unable to transmit the message, it determines to trigger the sending module. All connections between the Diameter relay and the server can include: direct connections, and/or indirect connections. The detection sub-module can also refresh the link state information stored in the storage sub-module according to the detected result.
  • the sending module is configured to send, according to the trigger of the unreachable detection module, a notification message to the neighboring node of the Diameter relay in which the Diameter relay is located, to notify the neighboring node of the Diameter relay that the Diameter relay is not reachable between the server and the server, so that the neighboring node No longer pass this
  • the Diameter towel in which the sending module is located sends a message to the server.
  • the sending module can send the notification information according to the routing information of the Diameter towel. Specifically, the description in the method embodiment is described.
  • the recovery detection module is configured to notify the sending module to send the recovery notification information to the neighboring node after detecting that the Diameter relay and the server are changed from unreachable to reachable.
  • the specific implementation process of the recovery detection module notifying the sending module to send the recovery notification information, and the specific implementation process of the sending module sending the recovery notification information are as described in the implementation method of the method.
  • the recovery detection module may further refresh the link state information stored in the Diameter relay according to the detected result, for example, refresh the link state information stored in the storage submodule.
  • the apparatus herein may be located in a Diameter relay device, or may be located in an access device, or may be located in a server.
  • the device includes a receiving module and a judging module.
  • the determining module After receiving the notification information, if the determining module knows from the notification information that the Diameter relay transmitting the notification information is unreachable, the determining module prohibits the device in which it is located from relaying to the Diameter relaying the notification information.
  • the server sends a message, that is, the neighboring node that receives the notification information no longer sends a message to the server through the Diameter relay that sends the notification information.
  • the adjacent node here may be: an access device, or a Diameter relay directly connected to a Diameter relay that sends notification information, and may also be: each server connected to the Diameter relay that sends the notification information.
  • the access device When the neighboring node is an access device, the access device does not send a request message to the Diameter relay that sends the notification information, because the access device learns that the Diameter relay that sends the notification information is unreachable, that is, the request message is no longer attempted. - The connection of the unreachable server, therefore, the Diameter relay transmitting the notification information does not need to send a response message to the access device, thereby avoiding a large amount of repetition between the access device and the Diameter relay transmitting the notification information. Message transmission.
  • the Diameter relay can modify the link state information connected to the server according to the notification information after receiving the notification information, and the Diameter relay that receives the notification information can be sent by using the “h” relay. The operation performed by the Diameter relay of the notification information after receiving the failure information.
  • the Diameter relay may not send the request message through the Diameter relay that sends the notification information after receiving the request message of the access device.
  • the server can discard the received notification information.
  • the access device includes: a receiving module and a determining module. After receiving the notification information, if the determining module knows from the notification information that the Diameter relay transmitting the notification information is unreachable, the determining module prohibits the device in which it is located from relaying to the Diameter relaying the notification information.
  • the server sends a message, that is, the access device that receives the notification information no longer sends a message to the server through the Diameter relay that sends the notification information.
  • the access device learns that the Diameter relay that sends the notification information is unreachable between the server and the server, the request message is no longer sent to the Diameter relay that sends the notification information, that is, the request and the connection to the unreachable server are no longer attempted. Therefore, the Diameter relay that sends the notification information does not need to send a response message to the access device, thereby avoiding a large amount of repeated message transmission between the access device and the Diameter relay that sends the notification information.
  • the server provided by the embodiment of the present invention will be described below.
  • the server includes: a receiving module and a judging module.
  • the determining module After receiving the notification information, if the determining module learns from the notification information that the Diameter relay transmitting the notification information is unreachable between the client and the client, the determining module prohibits the server in which the server is located from relaying the Diameter relay by sending the notification information. ⁇ h described the client sending a message, that is, the server receiving the notification information no longer relays the Diameter relay by sending the notification information to the above The client sends a message. The server can discard the notification information received by the receiving module.
  • a Diameter relay device provided by the embodiment of the wood invention will be described below.
  • the Diameter relay device includes: an unreachable detection module, a transmission module, a receiving module, and a judging module.
  • the Diameter relay device can also optionally include: a recovery detection module.
  • the unreachable detection module is configured to obtain connection information between the Diameter relay and the server, and trigger the sending module after determining that the Diameter relay and the server are unreachable according to the connection information.
  • the Diameter relay where the unreachable detection module is located is the first Diameter relay described in the above method implementation.
  • the connection between the Diameter relay and the server may be in a plurality of manners, and the difference in the connection manner may make the connection information have different meanings, as described in the method embodiment.
  • the unreachable detection module may include: a storage submodule and a detection submodule. The operations performed by the storage sub-module and the detection sub-module are as described in the above embodiments.
  • the sending module is configured to send, according to the trigger of the unreachable detection module, a notification message to the neighboring node of the Diameter relay in which the Diameter relay is located, to notify the neighboring node of the Diameter relay that the Diameter relay is not reachable between the server and the server, so that the neighboring node The message is no longer sent to the server through the Diameter relay where the sending module is located.
  • the sending module can send the notification information according to the routing information of the Diameter relay.
  • the recovery detection module is configured to notify the sending module to send the recovery notification information to the neighboring node after detecting that the Diameter relay and the server are changed from unreachable to reachable.
  • the specific implementation process of the recovery detection module notifying the sending module to send the recovery notification information, and the specific implementation process of the sending module sending the recovery notification information are as described in the implementation method of the method.
  • the recovery detection module may further refresh the link state information stored in the Diameter relay according to the detected result, for example, refresh the link state information stored in the storage submodule.
  • the determining module After receiving the notification information, if the determining module learns from the notification information that the Diameter relay transmitting the notification information is unreachable between the server, the determining module prohibits the Diameter relay in which the module is located from relaying the Diameter relay by sending the notification information.
  • the message is sent to the above server, that is, the Diameter relay receiving the notification information no longer sends a message to the server through the Diameter relay that sent the notification information.

Abstract

A method and apparatus for processing the break of the connection based on the charging and transmitting protocol. The method includes that: determining whether the first Diameter relay and the server or the client are reachable to each other; if the first Diameter relay and the server or the client are unreachable to each other, sending a notification message to the neighboring nodes of the first Diameter relay, the notification message includes that the first Diameter relay and the server or the client are unreachable to each other, so as to notify the neighboring nodes that they would no longer send the message to the server or the clientthrough the first Diameter relay. The technical scheme provided by the embodiments of the invention avoids the phenomena of sending a great deal of message repeatedly in the network during the time that the Diameter relay and the server or the client are unreachable to each other, and saves the transmitting resource of the network.

Description

基于计费传输协议的连接中断处理方法和装置 本申请要求于 2007年 12月 4口提交中 B专利局、 申请号为 200710178734.9、 发明名称为"基于 计费传输协议的连接中断处理方法和装置 "的中 H专利申请的优先权,其全部内容通过引用结合在本 申请中。  Method and device for processing connection interruption based on charging transmission protocol The present application claims to be filed in December 4, 2007 by the Patent Office of B, the application number is 200710178734.9, and the invention is entitled "connection interruption processing method and device based on charging transmission protocol" The priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及网络通讯技术领域, 具体涉及基于计费传输协议的连接中断处理方法和装置。 发明背景  The present invention relates to the field of network communication technologies, and in particular, to a connection interruption processing method and apparatus based on a charging transmission protocol. Background of the invention
Diameter协议(计费传输协议)在 IP Multimedia Subsystem (IP多媒体子系统, IMS )领域得到 了广泛应用, 例如, 应用于 Rf接口进行离线计费、 应用于 Ro接口进行在线计费、 以及应用于 The Diameter protocol (Billing and Transfer Protocol) is widely used in the IP Multimedia Subsystem (IMS) field, for example, it is applied to the Rf interface for offline charging, to the Ro interface for online charging, and to the application.
Interrogating-Call Session Control Function/Serving-Call Session Control Function (查询呼卩 4会话控制 功能 /服务呼叫会话控制功能, I-CSCF/S-CSCF )与 Home Subscriber Server (归属用户服务器, HSS ) 之间的 Sh接口等。 Interrogating-Call Session Control Function/Serving-Call Session Control Function (query call 4 session control function/service call session control function, I-CSCF/S-CSCF) and Home Subscriber Server (HSS) Sh interface, etc.
在包含 Diameter协议的网络中,可以采用节点直连组网方式,也可以采用节点非直连组网方式。 采用节点非直连组网方式的典型网络结构如附图 1所示。  On a network that includes the Diameter protocol, you can use the direct connection networking mode or the node non-direct connection networking mode. A typical network structure using a node indirectly connected networking mode is shown in FIG.
图 1中,接入设备通过 Diameter中继与归属 Diameter服务器连接。接入设备与 Diameter中继之 间、 Diameter中继与归属 Diameter服务器之间的连接均为 Diameter连接。 图 1中仅示出了一个归属 Diameter服务器和一个 Diameter中继, 其实, 接入设备可以通过一个 Diameter中继与多个归属 Diameter服务器连接, 而且, 接入设备也可以与多个 Diameter中继连接。 图 1中的 Diameter中继可 以为 Diameter中继代理, 也可以为 Proxy代理中继。  In Figure 1, the access device is connected to the home Diameter server through a Diameter relay. The connection between the access device and the Diameter relay, and between the Diameter relay and the home Diameter server are Diameter connections. Only one home Diameter server and one Diameter relay are shown in FIG. 1. In fact, the access device can be connected to multiple home Diameter servers through a Diameter relay, and the access device can also be connected to multiple Diameter relays. . The Diameter relay in Figure 1 can be either a Diameter relay agent or a Proxy agent relay.
下面以附图 2为例, 对目前非直连组网方式下基于 Diameter的连接中断处理方法进行说明。 图 2中, 接入设备通过 Diameter中继分别与归属 Diameter服务器 1、 归属 Diameter服务器 2连 接。接入设备向归属 Diameter服务器 1发送请求消息, Diameter中继接收到接入设备的请求消息后, 发现其与归属 Diameter服务器 1之间的连接断链, 则 Diameter中继向接入设备返回应答消息, 应答 消息中携带的 Result-Code (原因码) Attribute Value Pair (属性值对, AVP) 设置为  The following takes FIG. 2 as an example to describe a Diameter-based connection interruption processing method in the current non-direct connection networking mode. In Figure 2, the access device is connected to the home Diameter server 1 and the home Diameter server 2 through Diameter relay. The access device sends a request message to the home Diameter server 1. After receiving the request message of the access device, the Diameter relay finds that the connection between the access device and the home Diameter server 1 is broken, and the Diameter relay returns a response message to the access device. , Result-Code carried in the response message Attribute Value Pair (AVP) is set to
DIAMETER— UNABLE— TO— DELIVE (DIAMETER不可达) , 以表明 Diameter中继不能前转请求消 息。 接入设备根据接收到的应答消息确定请求消息不能前转、 且不能够通过其他 Diameter中继向归 属 Diameter服务器 1发送请求消息后, 则接入设备不断向该 Diameter中继发送请求消息, 以尝试通 过该 Diameter中继与 Diameter服务器 1之间连接, 直到 Diameter中继与归属 Diameter服务器 1之 间的连接恢复、 Diameter中继将请求消息传输至 Diameter服务器 1, 从而保证了 Diameter应用消息 的可靠传输。  DIAMETER— UNABLE—TO—DELIVE to indicate that the Diameter relay cannot forward the request message. After the access device determines that the request message cannot be forwarded according to the received response message, and cannot send the request message to the home Diameter server 1 through other Diameter relays, the access device continuously sends a request message to the Diameter relay to try Through the connection between the Diameter relay and the Diameter server 1, until the connection between the Diameter relay and the home Diameter server 1 is restored, the Diameter relay transmits a request message to the Diameter server 1, thereby ensuring reliable transmission of the Diameter application message.
在对现有技术的研究和实践过程中, 发明人发现—卜.述现有技术至少存在如下问题:  In the course of research and practice of the prior art, the inventors have found that at least the following problems exist in the prior art:
在 Diameter中继与归属 Diameter服务器 1之间的连接恢复之前,接入设备与 Diameter中继之间 会不断的传输请求消息、 以及应答消息, 从而占用了接入设备与 Diameter中继之间的大量 IP带宽, 严重影响了接入设备与其它网络设备的信息交互, 例如, 在图 2巾, 严重影响了经 Diameter巾继与 归属 Diameter服务器 2之间的信息交互。 同样, 在 Diameter中继与客户端之间的连接恢复之前, 也 存在类似问题。 发明内容 Before the connection between the Diameter relay and the home Diameter server 1 is restored, the request message and the response message are continuously transmitted between the access device and the Diameter relay, thereby occupying a large amount between the access device and the Diameter relay. IP bandwidth, The information interaction between the access device and other network devices is seriously affected. For example, in FIG. 2, the information exchange between the Diameter towel and the home Diameter server 2 is seriously affected. Similarly, there are similar issues before the connection between the Diameter relay and the client is restored. Summary of the invention
本发明实施方式提供一种基于计费传输协议 Diameter的连接中断处理方法和装置, 避免了在 Diameter中继与服务器或客户端不可达期间, 网络中大量重复发送消息的现象, 节约网络传输资源。  The embodiment of the invention provides a connection interruption processing method and device based on the charging transmission protocol Diameter, which avoids the phenomenon that a large number of repeated messages are sent in the network during the period when the Diameter relay and the server or the client are unreachable, thereby saving network transmission resources.
本发明实施方式提供的基于 Diameter的连接中断处理方法, 包括:  A Diameter-based connection interruption processing method provided by an embodiment of the present invention includes:
判断第一 Diameter中继与服务器或客户端之间是否可达;  Determining whether the first Diameter relay is reachable to the server or the client;
如果所述第一 Diameter中继与服务器或客户端之间不可达, 则向所述第一 Diameter中继的邻接节 点发送通知信息, 所述通知信息包括所述第一 Diameter中继与所述服务器或客户端之间不可达信息, 以通知所述邻接节点不再通过所述第一 Diameter中继向所述服务器或客户端发送消息。  Sending, to the neighboring node of the first Diameter relay, notification information, where the first Diameter relay is unreachable between the server and the client, the notification information including the first Diameter relay and the server Or unreachable information between the clients, to notify the neighboring node that the message is no longer sent to the server or client by using the first Diameter relay.
本发明实施方式提供的基于 Diameter的连接中断处理装置位于 Diameter中继设备中, 所述装置包 括:  The Diameter-based connection interruption processing device provided by the embodiment of the present invention is located in a Diameter relay device, and the device includes:
不可达检测模块, 用于判断其所在 Diameter中继与服务器或 /客户端之间是否可达, 如果该 The unreachable detection module is configured to determine whether the Diameter relay and the server or the client are reachable, if
Diameter中继与服务器或客户端之间不可达, 则触发发送模块; If the Diameter relay is unreachable between the server or the client, the sending module is triggered;
发送模块, 用于根据不可达检测模块的触发, 向所述 Diameter中继的邻接节点发送通知信息, 所 述通知信息包括所述 Diameter中继与所述服务器或客户端之间不可达, 以通知所述邻接节点不再通 过所述 Diameter中继向所述服务器或客户端发送消息。  a sending module, configured to send notification information to the neighboring node of the Diameter relay according to the trigger of the unreachable detection module, where the notification information includes that the Diameter relay is unreachable between the server or the client, to notify The neighboring node no longer sends a message to the server or client through the Diameter relay.
本发明实施方式提供的基于 Diameter的连接中断处理装置, 包括:  The Diameter-based connection interruption processing device provided by the embodiment of the present invention includes:
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息为包括第一 Diameter中继与服务器或客户端之 间不可达的通知信息, 则禁止通过所述第一 Diameter中继向所述服务器或客户端发送消息。  a judging module, configured to: when it is determined that the message received by the receiving module is not including the notification information between the first Diameter relay and the server or the client, prohibiting, by the first Diameter relay, from the server or the client Send a message.
本发明实施方式提供的接入设备通过 Diameter中继与服务器连接, 该接入设备包括: 接收模块, 用于接收消息;  The access device provided by the embodiment of the present invention is connected to the server through a Diameter relay, and the access device includes: a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息包括第一 Diameter中继与服务器之间不可达的 通知信息, 则禁止通过所述第一 Diameter中继向所述服务器发送消息。  The determining module is configured to: when it is determined that the message received by the receiving module includes the unreachable notification information between the first Diameter relay and the server, prohibit sending the message to the server by using the first Diameter relay.
本发明实施方式提供的服务器通过 Diameter中继与客户端连接, 该服务器包括:  The server provided by the embodiment of the present invention is connected to the client through a Diameter relay, and the server includes:
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息包括第一 Diameter中继与客户端之间不可达的 通知信息, 则禁止通过所述第一 Diameter中继向所述客户端发送消息。  The determining module is configured to: when it is determined that the message received by the receiving module includes the notification information that is unreachable between the first Diameter relay and the client, prohibit sending the message to the client by using the first Diameter relay.
本发明实施方式提供的 Diameter中继设备, 包括:  The Diameter relay device provided by the embodiment of the present invention includes:
不可达检测模块,用于判断其所在 Diameter中继与服务器 /客户端之间是否可达,如果该 Diameter 中继与服务器或客户端之间不 nj达, 则触发发送模块;  The unreachable detection module is configured to determine whether the Diameter relay is reachable between the server and the client, and if the Diameter relay does not reach the server or the client, the sending module is triggered;
发送模块, 用于根据不可达检测模块的触发, 向所述 Diameter中继的邻接节点发送通知信息, 所 述通知信息包括所述 Diameter中继与所述服务器或客户端之间不可达, 以通知所述邻接节点不再通 过所述 Diameter中继向所述服务器或客户端发送消息; a sending module, configured to send, according to a trigger of the unreachable detection module, a notification information to the neighboring node of the Diameter relay, where The notification information includes that the Diameter relay is unreachable between the server or the client, to notify the neighboring node that the message is no longer sent to the server or the client by using the Diameter relay;
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块,用于在判断出接收模块接收到的消息包括预定 Diameter中继与服务器或客户端之间不 可达的通知信息, 则禁止通过所述预定 Diameter中继向所述服务器或客户端发送消息。  The determining module is configured to, after determining that the message received by the receiving module includes the notification information that is not reachable between the predetermined Diameter relay and the server or the client, prohibit sending the message to the server or the client by using the predetermined Diameter relay .
通过—卜.述技术方案的描述可知,通过获取 Diameter中继与服务器或客户端之间的连接信息,能够 获得 Diameter中继与服务器或客户端之间各连接的链路状态, 利用各连接的链路状态可以确定出 Diameter中继与服务器或客户端之间是否出现不可达; 在出现不可达后, 通过向 Diameter中继的邻接 节点发送通知信息, 使邻接节点不再通过该 Diameter中继向上述服务器或客户端发送消息, 从而避 免了在 Diameter中继 服务器或客户端不可达期间, 网络中大量重复传输消息的现象, 节约网络传 输资源。 附图简要说明  Through the description of the technical solution, it can be known that by obtaining the connection information between the Diameter relay and the server or the client, the link state of each connection between the Diameter relay and the server or the client can be obtained, and each connection is utilized. The link state can determine whether the Diameter relay is unreachable between the server and the client. After the unreachable occurs, the neighboring node does not pass the Diameter relay by sending a notification message to the neighboring node of the Diameter relay. The above server or client sends a message, thereby avoiding a large number of repeated transmissions of messages in the network during the period of the Diameter relay server or the client being unreachable, thereby saving network transmission resources. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术的采用节点非直连组网方式的典型网络结构示意图;  1 is a schematic diagram of a typical network structure of a node indirectly connected network in the prior art;
图 2是现有技术的基于 Diameter的连接中断处理方法示意图;  2 is a schematic diagram of a prior art Diameter-based connection interruption processing method;
图 3是本发明实施方式应用场景一的连接中断处理方法示意图;  3 is a schematic diagram of a connection interruption processing method in application scenario 1 of the embodiment of the present invention;
图 4是本发明实施方式应用场景二的连接中断处理方法示意图;  4 is a schematic diagram of a connection interruption processing method in application scenario 2 of the embodiment of the present invention;
图 5是本发明实施方式应用场景三的连接中断处理方法示意图;  5 is a schematic diagram of a connection interruption processing method in application scenario 3 of the embodiment of the present invention;
图 6是本发明实施方式应用场景 W的连接中断处理方法示意图;  6 is a schematic diagram of a connection interruption processing method of an application scenario W according to an embodiment of the present invention;
图 7是本发明实施方式应用场景五的连接中断处理方法示意图;  7 is a schematic diagram of a connection interruption processing method in application scenario 5 of an embodiment of the present invention;
图 8是本发明实施方式的基于 Diameter的连接中断处理装置示意图。 实施本发明的方式  FIG. 8 is a schematic diagram of a Diameter-based connection interruption processing apparatus according to an embodiment of the present invention. Mode for carrying out the invention
在本发明方法实施方式中,首先需要判断第一 Diameter中继与服务器之间是否可达,判断是否可 达也即判断是否不可达, 例如, 根据获取的第一 Diameter中继与服务器之间的连接信息, 来判断第 一 Diameter中继与服务器之间是否不可达。 这里的第一 Diameter中继并不是特指网络中某一个 Diameter中继, 第一 Diameter中继可以是网络中的任何一个 Diameter中继。 为了描述方便、 清楚等原 因而采用了第一 Diameter中继的名称。 这里的服务器即第一 Diameter中继归属的 Diameter服务器。 获 取第一 Diameter中继与服务器之间的连接信息的操作可以由第一 Diameter中继来执行。 当然, 本发明 实施方式也不排除由其它网络设备来执行—卜_述获取操作的可能性。  In the method embodiment of the present invention, it is first required to determine whether the first Diameter relay is reachable to the server, and whether it is reachable or not, that is, whether it is unreachable, for example, according to the obtained first Diameter relay and the server. The connection information is used to determine whether the first Diameter relay is unreachable between the server and the server. The first Diameter relay here does not specifically refer to a Diameter relay in the network, and the first Diameter relay may be any Diameter relay in the network. The name of the first Diameter relay is used for convenience, clarity, and the like. The server here is the Diameter server to which the first Diameter relay belongs. The operation of obtaining the connection information between the first Diameter relay and the server may be performed by the first Diameter relay. Of course, embodiments of the present invention also do not preclude the possibility of performing an acquisition operation by other network devices.
在本发明方法实施方式中, 第一 Diameter中继与服务器之间的连接可以为: 第一 Diameter中继与 服务器之间的直接连接, 也可以为: 第一 Diameter中继与服务器之间的非直接连接。 非直接连接例 如第一 Diameter中继通过其它 Diameter中继与服务器连接, 即多级 Diameter中继连接。 而且, 第一 Diameter中继与服务器之间可以存在一条连接, 也可以通过多条连接。  In the method embodiment of the present invention, the connection between the first Diameter relay and the server may be: a direct connection between the first Diameter relay and the server, or may be: a non-first between the first Diameter relay and the server direct connection. Indirect connection example For example, the first Diameter relay is connected to the server through other Diameter relays, that is, a multi-level Diameter relay connection. Moreover, there may be one connection between the first Diameter relay and the server, or multiple connections.
在网络中的一个 Diameter中继与一个服务器之间仅存在一条连接的情况下, 获取第一 Diameter中 继与服务器之间的连接信息的第一个具体例子为: 检测到第一 Diameter中继与服务器之间直接连接 的链路出现故障的信息; 第二个具体例子为: 接收到其它 Diameter中继传输来的故障信息, 该故障 信息指示发送故障信息的 Diameter中继与服务器之间不可达; 第三个具体例子为: 检测到第一 Diameter中继与直连的其它 Diameter中继之间的链路出现故障的信息。 In the case that there is only one connection between a Diameter relay in the network and a server, the first Diameter is obtained. The first specific example of the connection information with the server is: detecting the failure of the link directly connected between the first Diameter relay and the server; the second specific example is: receiving other Diameter relays The transmitted fault information indicating that the Diameter relay transmitting the fault information is unreachable between the server; the third specific example is: detecting a chain between the first Diameter relay and other directly connected Diameter relays The road has failed.
在网络中的一个 Diameter中继与一个服务器之间存在一条或者多条连接的情况下, 获取第一 In the case where one or more connections between a Diameter relay in the network and a server are obtained, the first is obtained.
Diameter中继与服务器之间的连接信息的一个具体例子为:检测到第一 Diameter中继与服务器之间直 接连接的链路出现故障的信息, 并获取该第一 Diameter中继与服务器之间其它连接的链路状态信息; 另一个具体例子为: 接收到其它 Diameter中继传输来的故障信息, 并获取第一 Diameter中继与服务器 之间的其它连接的链路状态信息, 这里的故障信息指示发送故障信息的 Diameter中继与服务器之间 不可达; 其它具体例子为: 检测到第一 Diameter中继 直连的其它 Diameter中继之间的链路出现故障 的信息, 并获取第一 Diameter中继与服务器之间其它连接的链路状态信息。 A specific example of the connection information between the Diameter relay and the server is: detecting the failure of the link directly connected between the first Diameter relay and the server, and acquiring other information between the first Diameter relay and the server. Linked link state information; another specific example is: receiving fault information transmitted by other Diameter relays, and acquiring link state information of other connections between the first Diameter relay and the server, where the fault information indication The Diameter relay that sends the fault information is unreachable between the server; other specific examples are: detecting the failure of the link between the other Diameter relays directly connected to the first Diameter relay, and acquiring the first Diameter relay Link status information for other connections to the server.
本发明实施方式可以采用现有的多种检测方式来检测上述链路故障, 例如, 可以利用第一 Diameter中继原有的链路故障检测机制来检测。 本发明实施方式不限制检测链路故障的具体实现过 程。  The foregoing embodiments of the present invention can detect the link fault by using multiple existing detection methods. For example, the first Diameter relay can detect the original link fault detection mechanism. Embodiments of the present invention do not limit the specific implementation process for detecting link failure.
在获得了连接信息后,需要根据该获得的连接信息来判断第一 Diameter中继与服务器之间是否出 现不可达, 这里的不可达是指: 第一 Diameter中继与服务器之间的所有连接均不能够进行消息传输, 即第一 Diameter中继与服务器之间的通讯中断。例如,第一 Diameter中继与服务器之间存在多条连接, 这多条连接可以包括:直接连接、和 /或非直接连接;如果上述多条连接中有一条连接出现链路故障, 而其它连接的链路没有故障, 则第一 Diameter中继与服务器之间没有出现不可达; 如果—卜_述多条连 接的链路均出现故障, 则第一 Diameter中继与服务器之间出现不可达。上述判断第一 Diameter中继与 服务器之间是否出现不可达的操作可以由第一 Diameter中继来执行, 当然, 本发明实施方式也不排 除由其它网络设备来执行上述不可达判断操作的可能性。  After obtaining the connection information, it is determined whether the first Diameter relay and the server are unreachable according to the obtained connection information, where the unreachable refers to: all connections between the first Diameter relay and the server are: The message transmission cannot be performed, that is, the communication between the first Diameter relay and the server is interrupted. For example, there are multiple connections between the first Diameter relay and the server, and the multiple connections may include: direct connection, and/or indirect connection; if one of the multiple connections has a link failure, and other connections If there is no fault in the link, there is no unreachability between the first Diameter relay and the server; if the link of the multiple connections fails, the first Diameter relay is unreachable between the server and the server. The foregoing determining whether the first Diameter relay and the server are unreachable may be performed by the first Diameter relay. Of course, the embodiment of the present invention does not exclude the possibility that the other network device performs the unreachable judgment operation. .
在判断出第一 Diameter中继与服务器之间不可达后, 向第一 Diameter中继的邻接节点发送通知信 息。 本发明实施方式可以根据第一 Diameter中继的路由信息发送—卜_述通知信息。 该通知信息中包括 第一 Diameter中继与服务器之间不可达的信息, 以通知邻接节点不再通过第一 Diameter中继向所述服 务器或客户端发送消息。第一 Diameter中继的邻接节点可以从接收到的通知信息中获知第一 Diameter 中继与服务器之间不可达, 贝 卜_述邻接节点不再通过该第一 Diameter中继向上述服务器发送消息。 这里的邻接节点可以为: 接入设备, 也可以为: 与第一 Diameter中继直接连接的 Diameter中继, 还可 以为: 与第一 Diameter中继连接的各服务器。 当邻接节点为接入设备时, 由于接入设备获知了第一 Diameter中继与服务器之间不可达, 则不再向第一 Diameter中继发送请求消息, 即不再尝试请求和上 述不可达服务器的连接, 因此, 第一 Diameter中继也就不需要向接入设备发送应答消息, 从而避免 了接入设备与第一 Diameter中继之间大量、 重复的消息传输。 当邻接节点为 Diameter中继时, 该 Diameter中继接收到通知信息后, 可以根据通知信息修改其与服务器连接的链路状态信息, 而且, 接收到通知信息的 Diameter中继 PJ以采用― h述第一 Diameter中继接收到故障信息后执行的操作,也就 是说, 接收到通知信息的 Diameter中继成为上述实施方式中描述的第一 Diameter中继。 另外, 当邻接 节点为 Diameter巾继时, 该 Diameter巾继在接收到接入设备的请求消息后可以不再通过第一 Diameter 中继发送请求消息。 当邻接节点为服务器时, 服务器可以丢弃接收到的通知信息。 After determining that the first Diameter relay is unreachable between the server and the server, the notification information is sent to the neighboring node of the first Diameter relay. The embodiment of the present invention may send the notification information according to the routing information of the first Diameter relay. The notification information includes information that is unreachable between the first Diameter relay and the server, to notify the neighboring node that the message is no longer sent to the server or the client by using the first Diameter relay. The neighboring node of the first Diameter relay may learn from the received notification information that the first Diameter relay is unreachable between the server and the server, and the neighboring node no longer sends a message to the server through the first Diameter relay. The neighboring node here may be: an access device, or may be: a Diameter relay directly connected to the first Diameter relay, and may also be: each server connected to the first Diameter relay. When the neighboring node is the access device, the access device not knows that the first Diameter relay is unreachable between the server and the server, and then no longer sends a request message to the first Diameter relay, that is, the request and the unreachable server are no longer attempted. Therefore, the first Diameter relay does not need to send a response message to the access device, thereby avoiding a large amount of repeated message transmission between the access device and the first Diameter relay. When the neighboring node is a Diameter relay, the Diameter relay can modify the link state information of the connection with the server according to the notification information after receiving the notification information, and the Diameter relay PJ that receives the notification information adopts the "h" The operation performed after the first Diameter relay receives the failure information, that is, the Diameter relay that receives the notification information becomes the first Diameter relay described in the above embodiment. In addition, when adjacent When the node is a Diameter towel, the Diameter towel can no longer send a request message through the first Diameter relay after receiving the request message of the access device. When the neighboring node is a server, the server can discard the received notification information.
- h述发送通知信息的操作可以由第一 Diameter中继来执行, 当然,本发明实施方式也不排除由其 它网络设备来执行上述发送通知信息操作的可能性。  - The operation of transmitting the notification information may be performed by the first Diameter relay. Of course, the embodiment of the present invention does not exclude the possibility of performing the above-described operation of transmitting the notification information by other network devices.
上述通知信息可以包括:第一 Diameter中继信息、不可达的服务器信息(即不可达的主机信息)、 第一 Diameter中继信息与服务器之间不可达的信息。 当然, 除上述信息外, 通知信息还可以包括: 第一 Diameter中继到不可达的服务器所在域是否可达的信息,或者第一 Diameter中继到不可达的服务 器所在域的其它可达服务器的信息及到其它服务器是否可达的信息。  The foregoing notification information may include: first Diameter relay information, unreachable server information (that is, unreachable host information), and information that is unreachable between the first Diameter relay information and the server. Of course, in addition to the foregoing information, the notification information may further include: information that the first Diameter relays to the unreachable server in the domain, or the first Diameter relays to other reachable servers in the domain where the unreachable server is located. Information and information about whether other servers are reachable.
在向第一 Diameter中继的邻接节点发送通知信息时, 可以采用广播发送方式, 当然也可以采用 单播等其它发送方式。 在采用广播发送方式时, 为避免通知信息的环回, 可以采用防止广播环回机 制。 本发明实施方式可以采用现有的多种防止广播环回机制, 例如, 在通知信息中增加传输次数, 通知信息每发送一次, 则传输次数递减, 在传输次数递减至预定次数时, 停止通知信息在网络中的 传输; 再例如, 接收到通知信息的邻接节点不沿接收路径回传该通知信息; 还有, 通知信息不再向 发布通知信息的源 Diameter中继传输等等。 本发明实施方式不限制防止广播环回机制的具休实现过 程。  When the notification information is sent to the neighboring node of the first Diameter relay, the broadcast transmission method may be adopted. Of course, other transmission methods such as unicast may also be adopted. When the broadcast transmission mode is adopted, in order to avoid the loopback of the notification information, the broadcast loopback prevention mechanism can be adopted. The embodiments of the present invention may adopt various existing broadcast loopback prevention mechanisms, for example, increasing the number of transmissions in the notification information. When the notification information is sent once, the number of transmissions is decremented, and when the number of transmissions is decremented to a predetermined number of times, the notification information is stopped. For example, the neighboring node that receives the notification information does not return the notification information along the receiving path; further, the notification information is no longer relayed to the source Diameter that issued the notification information, and the like. The embodiments of the present invention do not limit the implementation process of preventing the broadcast loopback mechanism.
在检测出第一 Diameter中继与服务器之间由不可达转变为可达后, 向第一 Diameter中继的邻接 节点发送恢复通知信息, 以通告邻接节点第一 Diameter中继与服务器之间可达。  After detecting that the first Diameter relay and the server are changed from unreachable to reachable, sending the recovery notification information to the neighboring node of the first Diameter relay to notify the neighboring node of the reachability between the first Diameter relay and the server. .
检测第一 Diameter中继与服务器之间 不可达转变为可达的具体实现过程与上述检测不可达的 实现过程基本类似, 例如, 在网络中的一个 Diameter中继与一个服务器之间仅存在一条连接的情况 下, 在检测到第一 Diameter中继与服务器之间直接连接的链路故障恢复, 则确定第一 Diameter中继与 服务器之间由不可达转变为可达; 再例如, 在 络中的一个 Diameter中继与一个服务器之间存在一 条或者多条连接的情况下, 在接收到其它 Diameter中继传输来的故障恢复信息后, 在判断出第一 Diameter中继与服务器之间不存在其它连接、 或者存在其它连接但其它连接的链路状态均为不可达, 则确定第一 Diameter中继与服务器之间甶不可达转变为可达。 同样, 故障恢复的检测方式也可以是 多种多样的。 具体实现过程在此不再详细描述。  The specific implementation process of detecting the unreachable transition between the first Diameter relay and the server is basically similar to the implementation process of detecting the unreachable. For example, there is only one connection between a Diameter relay in the network and a server. In the case that the link failure recovery of the direct connection between the first Diameter relay and the server is detected, it is determined that the first Diameter relay and the server are changed from unreachable to reachable; for example, in the network When one or more connections exist between a Diameter relay and a server, after receiving the fault recovery information transmitted by other Diameter relays, it is determined that there is no other connection between the first Diameter relay and the server. If there are other connections but the link status of other connections is unreachable, it is determined that the unreachable between the first Diameter relay and the server is changed to reachable. Similarly, fault recovery can be detected in a variety of ways. The specific implementation process will not be described in detail herein.
在确定第一 Diameter中继与服务器之间由不可达转变为可达后, 向第一 Diameter中继的邻接节点 发送恢复通知信息的具体实现过程与—卜_述发送通知信息的具体实现过程类似。 在此不再详细说明。  After determining that the first Diameter relay and the server are changed from unreachable to reachable, the specific implementation process of sending the recovery notification information to the neighboring node of the first Diameter relay is similar to the specific implementation process of sending the notification information. . It will not be described in detail here.
第一 Diameter中继的邻接节点可以从接收到的恢复通知信息中获知第一 Diameter中继与服务器 之间由不可达转变为可达, 则—卜_述邻接节点可以通过该第一 Diameter中继向上述服务器发送消息。 同样,这里的邻接节点可以为:接入设备, 也可以为: 与第一 Diameter中继直接连接的 Diameter中继, 还可以为: 与第一 Diameter中继连接的各服务器。 上述恢复通知信息可以包括: 第一 Diameter中继信 息、 由不可达转变为可达的服务器信息 (即不可达的主机信息) 、 第一 Diameter中继信息与服务器 之间可达的信息。  The neighboring node of the first Diameter relay may learn from the received recovery notification information that the first Diameter relay and the server are changed from unreachable to reachable, and then the neighboring node may relay through the first Diameter. Send a message to the above server. Similarly, the adjacent node herein may be: an access device, or may be: a Diameter relay directly connected to the first Diameter relay, and may also be: each server connected to the first Diameter relay. The foregoing recovery notification information may include: a first Diameter relay information, a server information that is changed from unreachable to reachable (that is, unreachable host information), and information that is reachable between the first Diameter relay information and the server.
本发明实施方式同样 以采用广播发送方式向第一 Diameter 中继的邻接节点发送恢复通知信 息, 还可以采用防止广播环回机制。 其实现过程与上述发送通知信息的具体实现过程类似, 在此不 再详细说明。 In the embodiment of the present invention, the recovery notification information is sent to the adjacent node of the first Diameter relay by using the broadcast transmission mode, and the broadcast loopback prevention mechanism may also be adopted. The implementation process is similar to the specific implementation process of sending the notification information described above, and is not here. More details.
下面结合附图对木发明方法实施方式进行进一步说明。  The embodiment of the wood invention method will be further described below with reference to the accompanying drawings.
附图 3为单 Diameter中继的应用场景下, 连接中断处理方法示意图。  FIG. 3 is a schematic diagram of a connection interruption processing method in an application scenario of a single Diameter relay.
图 3中包括: 接入设备 C (属于 example.net域) 、 Diameter中继 R (属于 r.exapmle.net域) 、 S1服务器(属于 example.org域)、 S2服务器(属于 example.org域)和 S3服务器(属于 example.com 域) 。 S1服务器、 S2服务器和 S3服务器均为 Diameter服务器。 接入设备 C通过 Diameter中继 R 分别与 S1服务器、 S2服务器和 S3服务器连接, Diameter中继 R为接入设备 C提供中继代理服务。  Figure 3 includes: access device C (belonging to the example.net domain), Diameter relay R (belonging to the r.exapmle.net domain), S1 server (belonging to the example.org domain), and S2 server (belonging to the example.org domain) And the S3 server (belonging to the example.com domain). The S1 server, S2 server, and S3 server are all Diameter servers. The access device C is connected to the S1 server, the S2 server, and the S3 server through the Diameter relay R, and the Diameter relay R provides the relay agent service for the access device C.
Diameter中继 R的对等端 (Peer) 数据信息如表 1所示。 这里的对等端数据信息即为 Diameter 中继 R的邻接节点的信息。  The Diameter relay R peer (Peer) data information is shown in Table 1. The peer data information here is the information of the adjacent nodes of the Diameter relay R.
表 1  Table 1
Figure imgf000008_0001
从表 1中可以看出, Diameter中继 R有 W个邻接节点, 这 W邻接节点分别为: S1服务器、 S2 服务器、 S3服务器和接入设备 C。
Figure imgf000008_0001
As can be seen from Table 1, the Diameter relay R has W neighboring nodes, which are: S1 server, S2 server, S3 server, and access device C.
Diameter中继 R的本地路由 (route) 信息如表 2所示。  The local route information of the Diameter relay R is shown in Table 2.
表 2  Table 2
Figure imgf000008_0002
当 Diameter中继 R检测到其与 Diameter服务器 S1直接连接的链路中断吋, 刷新本地维护的服 务器状态信息。 同时, Diameter巾继 R向邻接节点接入设备 C、 S2服务器、 S3服务器广播消息, 即 广播通知信息。 广播消息包括的信息如表 3所示。
Figure imgf000008_0002
When the Diameter relay R detects that the link directly connected to the Diameter server S1 is interrupted, the local maintenance service is refreshed. Server status information. At the same time, the Diameter towel broadcasts a message to the neighboring node access device C, the S2 server, and the S3 server, that is, broadcasts the notification information. The information included in the broadcast message is shown in Table 3.
表 3  table 3
Figure imgf000009_0001
表 3巾, 广播代理信息为 Diameter巾继 R信息; 由于该广播消息是由 Diameter巾继 R发布的, 因此,源广播代理信息为 Diameter中继 R信息; 目的域信息为服务器 S1所在域信息, 由于 Diameter 中继 R与服务器 S2连接的链路没有中断, 因此, Diameter中继 R到目的域可达; 主机信息即服务 器 S1信息; Diameter中继 R到服务器 S1不可达。
Figure imgf000009_0001
Table 3, the broadcast agent information is Diameter towel followed by R information; since the broadcast message is issued by Diameter towel R, the source broadcast agent information is Diameter relay R information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R and the server S2 is not interrupted, the Diameter relay R is reachable to the destination domain; the host information is the server S1 information; the Diameter relay R to the server S1 is unreachable.
需要说明的是,表 3中也可以不包括目的域信息, 即"目的域 "字段为可选参数, 而且"主机"字段 可以同时携带 N个主机信息, 这样, 通过广播消息可以通知邻接节点 Diameter中继 R与 N个主机 的可达或不可达状态。  It should be noted that the destination domain information may not be included in the table 3, that is, the "destination domain" field is an optional parameter, and the "host" field may carry N host information at the same time, so that the neighboring node Diameter can be notified through the broadcast message. The reachable or unreachable state of the relay R and N hosts.
该广播消息通告接收到该广播消息的各邻接节点: Diameter中继 R与服务器 S1之间的连接中断, 即不可达, 但 Diameter中继 R与 example.org ±或仍可达。  The broadcast message advertises the neighboring nodes that received the broadcast message: The connection between the Diameter relay R and the server S1 is interrupted, that is, unreachable, but the Diameter relay R and example.org are still reachable.
Diameter中继 R根据表 1、 表 2中的信息广播消息。 接入设备 C在接收到该广播消息后, 根据 广播消息中" Diameter中继 R到服务器 S1不可达 "信息刷新本地维护的服务器状态信息; 而后,停止 向服务器 S1发送业务消息,但可以与服务器 S2之间进行业务消息传输。服务器 S2在接收到广播消 息后, 由于其与服务器 S1没有互通关系, 因此, 服务器 S2接收到广播消息后, 可以直接丢弃该广 播消息。 同样, 服务器 S3也可以在接收到广播消息后直接丢弃。  Diameter relay R broadcasts messages according to the information in Table 1 and Table 2. After receiving the broadcast message, the access device C refreshes the locally maintained server state information according to the "diameter relay R to server S1 unreachable" information in the broadcast message; then, stops sending the service message to the server S1, but can communicate with the server. Service message transmission between S2. After receiving the broadcast message, the server S2 has no interworking relationship with the server S1. Therefore, after receiving the broadcast message, the server S2 can directly discard the broadcast message. Similarly, server S3 can also discard it directly after receiving a broadcast message.
附图 4为多 Diameter中继互连的应用场景下, 本发明实施方式的连接中断处理方法示意图。 图 4包括: 接入设备 C (属于 cexample.net域) 、 Diameter中继 R1 (属于 r.exapmle.net域) 、 FIG. 4 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay interconnections. Figure 4 includes: access device C (belonging to cexample.net domain), Diameter relay R1 (belonging to r.exapmle.net domain),
Diameter中继 R2 (属于 r.exapmle. org域) 、 SI服务器 (属于 example.org域) 、 S2服务器 (属于 example.org域)和 S3服务器(属于 example.com域)。 S1服务器、 S2服务器和 S3服务器均为 Diameter 服务器。 接入设备 C通过 Diameter中继 Rl、 Diameter中继 R2分别与 S1服务器、 S2服务器、 S3 服务器连接, Diameter中继 Rl、 Diameter中继 R2为接入设备 C提供中继服务。 Diameter relay R2 (belonging to the r.exapmle.org domain), SI server (belonging to the example.org domain), S2 server (belonging to the example.org domain), and S3 server (belonging to the example.com domain). The S1 server, S2 server, and S3 server are all Diameter servers. The access device C is connected to the S1 server, the S2 server, and the S3 server through the Diameter relay R1 and the Diameter relay. The Diameter relay R1 and the Diameter relay R2 provide the relay service for the access device C.
当 Diameter中继 R2检测到其与 S1服务器直接连接的链路中断时, Diameter中继 R2向邻接节 点即对等端 Diameter中继 Rl、 S2服务器和 S3服务器发送广播消息,广播消息包括的信息如表 4所 示。 表 4 When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, the S2 server, and the S3 server, and the broadcast message includes information such as Table 4 shows. Table 4
Figure imgf000010_0001
表 4中,广播代理信息为 Diameter中继 R2信息;由于该广播消息是由 Diameter中继 R2发布的, 因此,源广播代理信息为 Diameter中继 R2的信息;目的域信息为服务器 S1所在域信息, 于 Diameter 巾继 R2与服务器 S2连接的链路没有巾断, 因此, Diameter巾继 R2到目的域可达; 主机信息即服 务器 S1信息; Diameter中继 R2到服务器 S1不可达。
Figure imgf000010_0001
In Table 4, the broadcast agent information is Diameter relay R2 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is the information of the Diameter relay R2; the destination domain information is the domain information of the server S1. The link between the Diameter towel and the server S2 is not broken. Therefore, the Diameter towel is reachable to the destination domain after R2; the host information is the server S1 information; and the Diameter relay R2 to the server S1 is unreachable.
服务器 S2在接收到广播消息后, 由于其与服务器 S1没有互通关系, 因此, 服务器 S2接收到广 播消息后, 可以直接丢弃该广播消息。 同样, 服务器 S3也可以在接收到广播消息后直接丢弃。  After receiving the broadcast message, the server S2 has no interworking relationship with the server S1. Therefore, after receiving the broadcast message, the server S2 can directly discard the broadcast message. Similarly, server S3 can also discard it directly after receiving a broadcast message.
Diameter中继 R1在接收到该广播消息后, 根据广播消息中" Diameter中继 R2到服务器 S1不可 达"信息刷新本地维护的服务器状态信息; 同时, 判断是否可以通过其它连接与服务器 S1进行消息 传输, 如果有其它连接可以与服务器 S1进行消息传输, 则 Diameter中继 R1可以不再传输该广播消 息; 如果没有其它连接可以与服务器 S1进行消息传输, 则 Diameter中继 R1继续向其邻接节点发送 广播消息。 由于采用了防止广播环回机制, 因此, Diameter中继 R1可以只向接入设备 C发送广播 消息, 而不再向 Diameter中继 R2发送广播消息。  After receiving the broadcast message, the Diameter relay R1 refreshes the locally maintained server state information according to the "diameter relay R2 to server S1 unreachable" information in the broadcast message; meanwhile, it is determined whether the message transmission can be performed with the server S1 through other connections. If there are other connections that can transmit messages with the server S1, the Diameter relay R1 can no longer transmit the broadcast message; if there is no other connection to transmit the message with the server S1, the Diameter relay R1 continues to send a broadcast to its neighboring nodes. Message. Since the broadcast loopback prevention mechanism is adopted, the Diameter relay R1 can only transmit a broadcast message to the access device C, and no longer send a broadcast message to the Diameter relay R2.
Diameter中继 R1向接入设备 C发送的广播消息包括的信息如表 5所示。  The information included in the broadcast message sent by the Diameter relay R1 to the access device C is shown in Table 5.
表 5  table 5
Figure imgf000010_0002
表 5中,广播代理信息为 Diameter中继 R1信息;由于该广播消息是由 Diameter中继 R2发布的, 因此,源广播代理信息为 Diameter中继 R2信息;目的域信息为服务器 S1所在域信息,由于 Diameter 中继 R1与服务器 S2连接的链路没有中断, 因此, Diameter中继 R1到目的域可达; 主机信息即服 务器 SI信息; Diameter巾继 Rl到服务器 SI不可达。
Figure imgf000010_0002
In Table 5, the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R1 and the server S2 is not interrupted, the Diameter relay R1 is reachable to the destination domain; Server SI information; Diameter towel is not reachable after R1 to server SI.
接入设备 C在接收到表 5所示的广播消息后, 根据广播消息中" Diameter中继 R1到服务器 S1 不可达 "信息刷新本地维护的服务器状态信息; 而后, 停止向服务器 S1发送业务消息, 但可以与服 务器 S2之间进行业务消息传输。  After receiving the broadcast message shown in Table 5, the access device C refreshes the locally maintained server state information according to the "diameter relay R1 to server S1 unreachable" information in the broadcast message; and then stops sending the service message to the server S1. However, service message transmission can be performed with the server S2.
附图 5为多 Diameter中继互连的应用场景下, 本发明实施方式的连接中断处理方法示意图。 图 5包括的网络实体与图 4中包括的网络实体相同。  FIG. 5 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay interconnections. The network entity included in FIG. 5 is the same as the network entity included in FIG.
当 Diameter中继 R1检测到其与 Diameter中继 R2直接连接的链路中断时, Diameter中继 R1根 据本地路由信息向邻接节点即对等端接入设备 C发送广播消息, 广播消息包括的信息如表 6所示。  When the Diameter relay R1 detects that the link directly connected to the Diameter relay R2 is interrupted, the Diameter relay R1 sends a broadcast message to the neighboring node, that is, the peer access device C, according to the local routing information, and the information included in the broadcast message is as follows. Table 6 shows.
表 6  Table 6
Figure imgf000011_0001
表 6中,广播代理信息为 Diameter中继 R1信息;由于该广播消息是由 Diameter中继 R1发布的, 因此, 源广播代理信息为 Diameter中继 R1信息; 目的域信息为服务器 S1、 服务器 S2以及服务器 S3所在域信息, 由于 Diameter中继 R1与 Diameter中继 R2连接的链路中断, 因此, Diameter中继 R1到目的域均不可达; 主机信息可以为空; 当然, 主机信息也可以不为空, 即主机信息可以为服务 器 Sl、 服务器 S2以及服务器 S3信息; 如果主机信息不为空的话, Diameter中继 R1到服务器 Sl、 服务器 S2以及服务器 S3均不可达。
Figure imgf000011_0001
In Table 6, the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by Diameter relay R1, the source broadcast agent information is Diameter relay R1 information; the destination domain information is server S1, server S2, and The domain information of the server S3 is disconnected. The link between the Diameter relay R1 and the Diameter relay R2 is interrupted. Therefore, the Diameter relay R1 to the destination domain is unreachable. The host information can be empty. Of course, the host information can also be empty. That is, the host information may be the server S1, the server S2, and the server S3 information; if the host information is not empty, the Diameter relay R1 to the server S1, the server S2, and the server S3 are unreachable.
接入设备 C在接收到表 6所示的广播消息后, 根据广播消息中" Diameter中继 R1到目的域均不 可达"的信息刷新本地维护的服务器状态信息; 而后, 停止向服务器 Sl、 服务器 S2以及服务器 S3 发送业务消息。  After receiving the broadcast message shown in Table 6, the access device C refreshes the locally maintained server state information according to the information of the "diameter relay R1 to the destination domain is unreachable" in the broadcast message; and then stops to the server S1 and the server. S2 and server S3 send a service message.
Diameter中继 R2检测到其与 Diameter中继 R1直接连接的链路中断时, Diameter中继 R2也可 以根据本地路由信息向邻接节点即对等端服务器 Sl、服务器 S2以及服务器 S3发送广播消息, 广播 消息包括的信息如表 7所示。  When the Diameter relay R2 detects that the link directly connected to the Diameter relay R1 is interrupted, the Diameter relay R2 can also send a broadcast message to the neighboring nodes, that is, the peer server S1, the server S2, and the server S3 according to the local routing information, and broadcast. The information included in the message is shown in Table 7.
表 7 广播消息信息 广播代理 r.example.org 源广播代理 r.example.org 目的域 example.net 状态 不可达 主机 NULL 状态 NULL 表 7中,广播代理信息为 Diameter中继 R2信息;由于该广播消息是由 Diameter中继 R2发布的, 因此, 源广播代理信息为 Diameter中继 R2信息; 目的域信息为 Diameter中继 R1所在域信息, 由 于 Diameter中继 R1与 Diameter中继 R2连接的链路中断, 因此, Diameter中继 R2到目的域均不可 达; 主机信息可以为空。 Table 7 Broadcast message information broadcast agent r.example.org source broadcast agent r.example.org destination domain example.net state unreachable host NULL state NULL In Table 7, the broadcast agent information is Diameter relay R2 information; since the broadcast message is Diameter relay R2 is issued, therefore, the source broadcast proxy information is Diameter relay R2 information; the destination domain information is the domain information of the Diameter relay R1, and the link connecting the Diameter relay R1 and the Diameter relay R2 is interrupted, therefore, The Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
服务器 S1、服务器 S2以及服务器 S3在接收到表 7所示的广播消息后,根据广播消息中" Diameter 中继 R2到目的域均不可达"的信息刷新本地维护的接入设备 C的状态信息; 而后, 停止与接入设备 C的消息传输。  After receiving the broadcast message shown in Table 7, the server S1, the server S2, and the server S3 refresh the state information of the locally maintained access device C according to the information of the "diameter relay R2 to the destination domain is unreachable" in the broadcast message; Then, the message transmission with the access device C is stopped.
附图 6为多 Diameter中继代理互连的应用场景下, 本发明实施方式的连接中断处理方法示意图。 图 6包括: 接入设备 C (属于 example.net域) 、 Diameter中继 R1 (属于 rl.exapmle.net域) 、 FIG. 6 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario in which multiple Diameter relay agents are interconnected. Figure 6 includes: access device C (belonging to the example.net domain) and Diameter relay R1 (belonging to the rl.exapmle.net domain),
Diameter中继 R2 (属于 r2.exapmle. org域) 、 Diameter中继 R3 (属于 r3.exapmle. org域) 禾 B S1月艮 务器 (属于 example.org域) 。 S1服务器为 Diameter服务器。 接入设备 C与 S1服务器之间存在两 条连接, 即接入设备 C通过 Diameter中继 Rl、 Diameter中继 R2与 SI服务器连接, 接入设备 C还 通过 Diameter中继 Rl、 Diameter中继 R3 SI服务器连接,也就是说, Diameter中继 R2和 Diameter 中继 R3为 example.org域中的 S 1服务器提供冗余服务。 Diameter中继 Rl、 Diameter中继 R2和 Diameter 中继 R3为接入设备 C提供中继服务。 Diameter relay R2 (belonging to r2.exapmle.org domain), Diameter relay R3 (belonging to r3.exapmle.org domain) and B S1 month server (belonging to example.org domain). The S1 server is a Diameter server. There are two connections between the access device C and the S1 server. That is, the access device C is connected to the SI server through the Diameter relay R1 and the Diameter relay R2, and the access device C also relays the R3 SI through the Diameter relay R1 and Diameter. The server connection, that is, the Diameter Relay R2 and the Diameter Relay R3 provide redundant services for the S1 server in the example.org domain. Diameter relay Rl, Diameter relay R2 and Diameter relay R3 provides relay service for access device C.
当 Diameter中继 R2检测到其与 S1服务器直接连接的链路中断时, Diameter中继 R2根据本地 路由信息向邻接节点即对等端 Diameter中继 R1发送广播消息, 广播消息包括的信息如表 8所示。  When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, according to the local routing information, and the information included in the broadcast message is as shown in Table 8. Shown.
表 8  Table 8
Figure imgf000012_0001
表 8巾,广播代理信息为 Diameter巾继 R2信息;由于该广播消息是由 Diameter巾继 R2发布的, 因此,源广播代理信息为 Diameter中继 R2信息;目的域信息为服务器 S1所在域信息,由于 Diameter 中继 R2与 S1服务器连接的链路中断, 因此, Diameter中继 R2到目的域不可达; 主机信息即 S1服 务器信息; Diameter中继 R2到服务器 S1不可达。
Figure imgf000012_0001
Table 8, the broadcast agent information is Diameter towel followed by R2 information; since the broadcast message is issued by the Diameter towel following R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R2 and the S1 server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information is the S1 server information; the Diameter relay R2 to the server S1 is unreachable.
Diameter中继 R1在接收到表 8所示的广播消息后,根据广播消息中" Diameter中继 R2到目的域 均不可达"的信息刷新本地维护的服务器状态信息;由于 Diameter中继 R1还可以通过 Diameter中继 R3与 S1服务器进行消息传输, 因此, Diameter中继 R1终止广播消息的发送。 此后, Diameter中继 R1接收到接入设备 C发送的消息后, 通过 Diameter中继 R3与 S1服务器 S1进行消息传输。  After receiving the broadcast message shown in Table 8, the Diameter relay R1 refreshes the locally maintained server state information according to the information of the "diameter relay R2 to the destination domain is unreachable" in the broadcast message; since the Diameter relay R1 can also pass The Diameter relay R3 performs message transmission with the S1 server, and therefore, the Diameter relay R1 terminates the transmission of the broadcast message. Thereafter, the Diameter relay R1 receives the message sent by the access device C, and then transmits the message through the Diameter relay R3 and the S1 server S1.
附图 7为多 Diameter中继环路互连的应用场景下, 本发明实施方式的连接中断处理方法示意图。 图 7包括: 接入设备 C (属于 example.net域) 、 Diameter中继 R1 (属于 rl.exapmle.net域) 、 FIG. 7 is a schematic diagram of a connection interruption processing method according to an embodiment of the present invention in an application scenario of multiple Diameter relay loop interconnections. Figure 7 includes: access device C (belonging to the example.net domain) and Diameter relay R1 (belonging to the rl.exapmle.net domain),
Diameter中继 R2 (属于 r2.exapmle. org域) 、 Diameter中继 R3 (属于 r3.exapmle. org ±或) 、 SI服务 器 (属于 example.org域) 和 S2服务器 (属于 example.org域) 。 S1服务器、 S2服务器为 Diameter 服务器。接入设备 C与 S1服务器之间存在两条连接,即接入设备 C通过 Diameter中继 Rl、 Diameter 中继 R2与 SI服务器连接, 接入设备 C还通过 Diameter中继 Rl、 Diameter中继 R3、 Diameter中继 R2与 SI服务器连接, 也就是说, Diameter中继 R2和 Diameter中继 R3为 example.org域中的 S1服 务器提供冗余服务。 Diameter中继 Rl、 Diameter中继 R2和 Diameter中继 R3为接入设备 C提供中 继服务。 Diameter relay R2 (belonging to the r2.exapmle.org domain), Diameter relay R3 (belonging to r3.exapmle.org ± or), SI server (belonging to the example.org domain) and S2 server (belonging to the example.org domain). The S1 server and the S2 server are Diameter servers. There are two connections between the access device C and the S1 server, that is, the access device C is connected to the SI server through the Diameter relay R1 and the Diameter relay R2, and the access device C also relays the R3 through the Diameter relay R1 and the Diameter relay R3. The Diameter relay R2 is connected to the SI server, that is, the Diameter relay R2 and the Diameter relay R3 provide redundant services for the S1 server in the example.org domain. Diameter relay Rl, Diameter relay R2 and Diameter relay R3 provides relay service for access device C.
下面主要介绍在图 7所示的应用场景下, 防止广播环路机制的实现方法。  The following mainly introduces the implementation of the broadcast loop prevention mechanism in the application scenario shown in Figure 7.
当 Diameter中继 R2检测到其与 S1服务器直接连接的链路中断时, Diameter中继 R2根据本地 路由信息向邻接节点即对等端 Diameter中继 R1发送广播消息, 广播消息包括的信息如表 9所示。  When the Diameter relay R2 detects that the link directly connected to the S1 server is interrupted, the Diameter relay R2 sends a broadcast message to the neighboring node, that is, the peer Diameter relay R1, according to the local routing information, and the information included in the broadcast message is as shown in Table 9. Shown.
表 9  Table 9
Figure imgf000013_0001
表 9中,广播代理信息为 Diameter中继 R2信息;由于该广播消息是由 Diameter中继 R2发布的, 因此,源广播代理信息为 Diameter中继 R2信息;目的域信息为服务器 S1所在域信息,由于 Diameter 中继 R2与 SI服务器连接的链路中断, 因此, Diameter中继 R2到目的域不可达; 主机信息可以为 空。
Figure imgf000013_0001
In Table 9, the broadcast agent information is Diameter relay R2 information; since the broadcast message is issued by Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is domain information of the server S1, Because the link connecting the Diameter relay R2 and the SI server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
Diameter中继 R1在接收到表 9所示的广播消息后,根据广播消息中" Diameter中继 R2到目的域 不可达"的信息刷新本地维护的服务器状态信息; 由于 Diameter巾继 R1与 S1服务器连接的另一条 路径也需要经过 Diameter中继 R2, 因此, Diameter中继 R1与 S1服务器之间不可达, 不能够进行 消息传输。 这样, Diameter中继 R1继续向其邻接节点即对等端接入设备(、 Diameter中继 R3发送 广播消息, 由于 Diameter中继 R2是发布广播消息的源 Diameter中继, 因此, Diameter中继 R1不 再向 Diameter中继 R2发送广播消息, 从而有效避免了广播环回。 After receiving the broadcast message shown in Table 9, the Diameter relay R1 relays R2 to the destination domain according to the broadcast message. The unreachable information refreshes the locally maintained server status information. Because the Diameter towel needs to pass the Diameter relay R2 after the other path connected to the S1 server, the Diameter relay R1 and the S1 server are unreachable. In this way, the Diameter relay R1 continues to send a broadcast message to its neighboring node, that is, the peer access R3 (Diameter relay R2 is the source Diameter relay that issues the broadcast message, therefore, Diameter The relay R1 no longer sends a broadcast message to the Diameter relay R2, thereby effectively avoiding the broadcast loopback.
Diameter中继 R1在将接收到的广播消息中的广播代理信息修改为自身信息后, 发送。 Diameter 中继 R1发送的广播消息包括的信息如表 10所示。  Diameter relay R1 sends the broadcast agent information in the received broadcast message to its own information. Diameter Relay The broadcast message sent by R1 includes the information shown in Table 10.
表 10  Table 10
Figure imgf000014_0001
表 10中, 广播代理信息为 Diameter中继 R1信息; 由于该广播消息是由 Diameter中继 R2发布 的, 因此, 源广播代理信息为 Diameter中继 R2信息; 目的域信息为服务器 S1所在域信息, 由于 Diameter中继 R2与 S1服务器连接的链路中断, 因此, Diameter中继 R2到目的域不可达; 主机信 息可以为空。
Figure imgf000014_0001
In Table 10, the broadcast agent information is Diameter relay R1 information; since the broadcast message is issued by the Diameter relay R2, the source broadcast agent information is Diameter relay R2 information; the destination domain information is the domain information of the server S1, Since the link connecting the Diameter relay R2 and the S1 server is interrupted, the Diameter relay R2 to the destination domain is unreachable; the host information can be empty.
Diameter中继 R 3接收到该广播消息后, 根据广播消息中" Diameter中继 R2到目的域不可达"的 信息刷新本地维护的服务器状态信息; 由于 Diameter中继 R3需要通过 Diameter中继 R2与 S 1服务 器连接, 而 Diameter中继 R2到目的域不可达, 因此, Diameter中继 R3与 S1服务器之间不可达, 不能够进行消息传输。 这样, Diameter中继 R3打算向其邻接节点即对等端 Diameter中继 R2和 Diameter中继 R1发送广播消息, 由于 Diameter中继 R2是发布广播消息的源 Diameter中继、 而 Diameter中继 R1是转发广播消息的 Diameter中继, 因此, Diameter中继 R3不再向 Diameter中继 R2、 Diameter中继 R1发送广播消息, 从而有效避免了广播环回。  After receiving the broadcast message, the Diameter relay R3 refreshes the locally maintained server state information according to the information of the "diameter relay R2 to the destination domain unreachable" in the broadcast message; since the Diameter relay R3 needs to pass the Diameter relay R2 and S 1 The server is connected, and the Diameter relay R2 is unreachable to the destination domain. Therefore, the Diameter relay R3 and the S1 server are unreachable and cannot transmit messages. Thus, the Diameter relay R3 intends to send a broadcast message to its neighboring nodes, the peer Diameter relay R2 and the Diameter relay R1, since the Diameter relay R2 is the source Diameter relay that issues the broadcast message, and the Diameter relay R1 is the forwarder. The Diameter relay of the broadcast message, therefore, the Diameter relay R3 no longer sends a broadcast message to the Diameter relay R2, the Diameter relay R1, thereby effectively avoiding the broadcast loopback.
由此可以看出, 防止广播环回机制可以为: 不向广播消息中的广播代理、 以及源广播代理发送 广播消息。  It can be seen that the broadcast loopback prevention mechanism can be: The broadcast message is not sent to the broadcast agent in the broadcast message and the source broadcast agent.
防止广播环回机制也可以采用如下 HopCounter计数方式来实现。  The broadcast loopback prevention mechanism can also be implemented by the following HopCounter counting method.
在 Diameter中继发送的广播消息中增加可选字段 HopCounter, 广播消息每传输一次广播一个路 径, 则 HopCounter计数减 1, 当 HopCounter计数为 0时, 则当前 Diameter节点不再广播消息, 从 而防止广播环路。 该机制需要根据不同的实际组网情况进行配置 HopCounter值。  The optional field HopCounter is added to the broadcast message sent by the Diameter relay. When the broadcast message broadcasts one path for each transmission, the HopCounter count is decremented by 1. When the HopCounter count is 0, the current Diameter node no longer broadcasts the message, thereby preventing the broadcast ring. road. The mechanism needs to configure the HopCounter value according to different actual networking conditions.
例如, 在附图 7所示的应用场景中, 配置 Diameter中继 R2的 HopCounter值为 2, Diameter中 继 R2在发送广播消息时, 将 HopCounter值减 1, 并将减 1后的 HopCounter值携带在广播消息巾。 Diameter中继 R2发送的广播消息包含的信息如表 11所示。 For example, in the application scenario shown in FIG. 7, the HopCounter value of the Diameter relay R2 is set to 2, in the Diameter. After R2 sends a broadcast message, the HopCounter value is decremented by 1, and the HopCounter value after the decrease of 1 is carried in the broadcast message towel. The broadcast message sent by the Diameter relay R2 contains the information shown in Table 11.
表 11  Table 11
Figure imgf000015_0001
Figure imgf000015_0001
Diameter中继 R1接收到广播消息后, 判断广播消息中 HopCounter>0, 则确定可以继续发送该 广播消息, Diameter中继 R1向其邻接节点即对等端接入设备 C、 Diameter中继 R3发送广播消息, 并递减广播消息中的 HopCounter值。 Diameter中继 R1发送的广播消息包含的信息如表 12所示。 After receiving the broadcast message, the Diameter relay R1 determines that the HopCounter>0 in the broadcast message determines that the broadcast message can continue to be sent, and the Diameter relay R1 sends a broadcast to the neighboring node, that is, the peer access device C and the Diameter relay R3. Message, and decrement the HopCounter value in the broadcast message. Diameter Relay The broadcast message sent by R1 contains the information shown in Table 12.
表 12  Table 12
Figure imgf000015_0002
Diameter中继 R3接收到广播消息后, 判断广播消息中 HopCounter=0, 则确定不可以继续发送 该广播消息, Diameter中继 R3不再向其邻接节点即对等端发送广播消息。从而防止了广播消息的环 回发送。
Figure imgf000015_0002
After receiving the broadcast message, the Diameter relay R3 determines that the HopCounter=0 in the broadcast message, and determines that the broadcast message cannot be continuously sent. The Diameter relay R3 no longer sends a broadcast message to its neighboring node, that is, the peer. Thereby loopback transmission of broadcast messages is prevented.
在 h述各实施方式的描述中, 在各图所示的不可达转变可达后, 可以发送恢复通知信息, 该恢 复通知信息可以仍然以—卜_述各表中 j '播消息的形式发送, 只是 j '播消息中的"不可达 "变为 "可达"。 接收到广播消息的各邻接节点如接入设备、 服务器等根据接收到的广播消息刷新本地维护的服务器 状态信息、 或者客户端状态信息。 接入设备与服务器之间可以利用中断恢复的连接进行业务消息传 输。 从上述技术方案的描述可知, 通过获取 Diameter中继与服务器之间的连接信息, 能够获得 Diameter中继与服务器之间各连接的链路状态, 利用各连接的链路状态可以确定出 Diameter中继与 服务器之间是否出现不可达; 在出现不可达后, 通过向 Diameter中继的邻接节点发送通知信息, 使 邻接节点不再通过该 Diameter中继向上述服务器发送广播消息,从而避免了在 Diameter中继与服务 器不可达期间, 接入设备与 Diameter中继之间大量重复传输消息的现象, 如有效减少了接入设备与 Diameter中继之间尝试连接的消息传输量, 节约了网络传输资源。 In the description of each embodiment, after the unreachable transition shown in each figure is reachable, the recovery notification information may be sent, and the resume notification information may still be sent in the form of a j 'cast message in each table. , just "unreachable" in j' broadcast message becomes "reachable". Each neighboring node that receives the broadcast message, such as an access device, a server, or the like, refreshes the locally maintained server state information or the client state information according to the received broadcast message. The service can be transmitted between the access device and the server by using the interrupted recovery connection. As can be seen from the description of the foregoing technical solution, by obtaining the connection information between the Diameter relay and the server, the link state of each connection between the Diameter relay and the server can be obtained, and the Diameter relay can be determined by using the link state of each connection. Whether the unreachable relationship occurs with the server; after the unreachable occurs, the neighboring node does not send the broadcast message to the server through the Diameter relay by sending the notification information to the neighboring node of the Diameter relay, thereby avoiding the Diameter in the Diameter During the period when the server is unreachable, a large number of repeated transmissions of messages between the access device and the Diameter relay, such as effectively reducing the amount of message transmission between the access device and the Diameter relay, and saving network transmission resources.
需要说明的是,在上面具体实施方式的描述中,是以第一 Diameter中继与服务器为例进行说明的, 上面描述的技术方案同样适用于第一 Diameter中继与客户端之间, 为简洁的目的, 不再针对第一 Diameter中继与客户端之间的基于 Diameter的连接中断处理技术方案进行重复说明。  It should be noted that, in the description of the foregoing specific embodiments, the first Diameter relay and the server are taken as an example, and the technical solution described above is also applicable to the first Diameter relay and the client, which is simple. For the purpose, the Diameter-based connection interruption processing technical solution between the first Diameter relay and the client is no longer repeated.
下而对本发明实施方式提供的位于 Diameter中继设备中的基于 Diameter的连接中断处理装置进 行说明。需要说明的是:在下述描述中,仍以 Diameter中继与服务器之间的连接中断为例进行说明, 下面描述的技术内容同样适用于 Diameter中继与客户端之间连接中断的处理。  Next, a Diameter-based connection interruption processing device in a Diameter relay device according to an embodiment of the present invention will be described. It should be noted that, in the following description, the connection interruption between the Diameter relay and the server is still taken as an example, and the technical content described below is also applicable to the processing of the connection interruption between the Diameter relay and the client.
基于 Diameter的连接中断处理装置如附图 8所示,图 8中的装置包括:不可达检测模块和发送模块。 基于 Diameter的连接中断处理装置还可以可选的包括: 恢复检测模块。  The Diameter-based connection interruption processing device is as shown in Fig. 8. The device in Fig. 8 includes an unreachable detection module and a transmission module. The Diameter-based connection interruption processing device may also optionally include: a recovery detection module.
不可达检测模块用于获取其所在 Diameter中继与服务器之间的连接信息,在根据连接信息确定出 该 Diameter中继与服务器之间不可达后, 触发发送模块。这里的不可达检测模块所在 Diameter中继即 上述方法实施方式中描述的第一 Diameter中继。 Diameter中继与服务器之间的连接可以为多种方式、 且连接方式的不同会使连接信息具有不同的含义, 具体如上述方法实施方式中的描述。 不可达检测 模块可以采用现有的多种检测方式来检测—卜.述链路故障, 在此不再一一详细说明。  The unreachable detection module is configured to obtain connection information between the Diameter relay and the server, and trigger the sending module after determining that the Diameter relay and the server are unreachable according to the connection information. The Diameter relay where the unreachable detection module is located is the first Diameter relay described in the above method implementation. The connection between the Diameter relay and the server may be in multiple ways, and the connection manner may make the connection information have different meanings, as described in the foregoing method embodiments. The unreachable detection module can detect by using various existing detection methods - the link failure is not detailed here.
上述不可达检测模块可以包括: 存储子模块和检测子模块。  The unreachable detection module may include: a storage submodule and a detection submodule.
存储子模块用于存储其所在 Diameter中继与服务器之间各连接的链路状态信息。 一条连接的链 路状态信息可以表示出 Diameter中继与服务器之间通过该连接是否可达。  The storage submodule is used to store link state information of each connection between the Diameter relay and the server. A link link status information can indicate whether the connection between the Diameter relay and the server is reachable.
检测子模块用于在检测到其所在 Diameter中继与服务器之间直接连接的链路中断、或者检测到其 所在 Diameter中继接收到其它 Diameter中继发送来的通知信息、 或者检测到其所在 Diameter中继与其 它 Diameter中继的连接中断后, 根据存储子模块中存储的链路状态信息, 判断其所在 Diameter中继是 否与服务器之间不可达, 在确定出不可达后, 触发发送模块。 例如, 检测子模块在检测到其所在的 Diameter中继与服务器之间直接连接的链路出现故障的信息后,根据获取的其所在 Diameter中继与服 务器之间其它连接的链路状态信息来决定是否触发发送模块; 再例如: 检测子模块在检测出其所在 Diameter中继接收到其它 Diameter中继传输来的故障信息后, 根据其所在 Diameter中继与服务器之间 的其它连接的链路状态信息来决定是否触发发送模块。 检测子模块在判断出其所在 Diameter中继与 服务器之间的所有连接均不能够进行消息传输后, 决定触发发送模块。 Diameter中继与服务器之间 的所有连接可以包括: 直接连接、 和 /或非直接连接。 检测子模块还可以根据检测的结果刷新存储子 模块中存储的链路状态信息。  The detecting sub-module is configured to detect that the link directly connected between the Diameter relay and the server is interrupted, or to detect that the Diameter relay receives the notification information sent by other Diameter relays, or detects that the Diameter is located. After the connection between the relay and other Diameter relays is interrupted, it is determined whether the Diameter relay is unreachable between the server and the server according to the link state information stored in the storage submodule. After determining that the relay is unreachable, the sending module is triggered. For example, after detecting the failure information of the link directly connected between the Diameter relay and the server, the detection sub-module determines the link state information of other connections between the Diameter relay and the server. Whether to trigger the sending module; for example: after detecting that the Diameter relay receives the fault information from other Diameter relay transmissions, according to the link state information of other connections between the Diameter relay and the server To decide whether to trigger the sending module. After the detection sub-module determines that all the connections between the Diameter relay and the server are unable to transmit the message, it determines to trigger the sending module. All connections between the Diameter relay and the server can include: direct connections, and/or indirect connections. The detection sub-module can also refresh the link state information stored in the storage sub-module according to the detected result.
发送模块用于根据不可达检测模块的触发, 向其所在的 Diameter中继的邻接节点发送通知信息, 以通告其所在的 Diameter中继的邻接节点 Diameter中继与服务器之间不可达,使邻接节点不再通过该 发送模块所在的 Diameter巾继向服务器发送消息。发送模块可以根据 Diameter巾继的路由信息发送— h 述通知信息。 具体如—卜.述方法实施方式中的描述。 The sending module is configured to send, according to the trigger of the unreachable detection module, a notification message to the neighboring node of the Diameter relay in which the Diameter relay is located, to notify the neighboring node of the Diameter relay that the Diameter relay is not reachable between the server and the server, so that the neighboring node No longer pass this The Diameter towel in which the sending module is located sends a message to the server. The sending module can send the notification information according to the routing information of the Diameter towel. Specifically, the description in the method embodiment is described.
恢复检测模块用于在检测出其所在 Diameter中继与服务器之间由不可达转变为可达后,通知发送 模块向邻接节点发送恢复通知信息。恢复检测模块通知发送模块发送恢复通知信息的具体实现过程、 以及发送模块发送恢复通知信息的具体实现过程如—卜_述方法实施方式中的描述。 恢复检测模块还可 以根据检测的结果刷新其所在 Diameter中继中存储的链路状态信息, 例如刷新存储子模块中存储的 链路状态信息。  The recovery detection module is configured to notify the sending module to send the recovery notification information to the neighboring node after detecting that the Diameter relay and the server are changed from unreachable to reachable. The specific implementation process of the recovery detection module notifying the sending module to send the recovery notification information, and the specific implementation process of the sending module sending the recovery notification information are as described in the implementation method of the method. The recovery detection module may further refresh the link state information stored in the Diameter relay according to the detected result, for example, refresh the link state information stored in the storage submodule.
下面对本发明实施方式提供的另一种基于 Diameter的连接中断处理装置进行说明,这里的装置可 以位于 Diameter中继设备中, 也可以位于接入设备中, 还可以位于服务器中。 该装置包括接收模块 和判断模块。  Another Diameter-based connection interruption processing apparatus provided by the embodiment of the present invention is described below. The apparatus herein may be located in a Diameter relay device, or may be located in an access device, or may be located in a server. The device includes a receiving module and a judging module.
接收模块在接收到通知信息后,如果判断模块从通知信息中获知发送通知信息的 Diameter中继与 服务器之间不可达, 则判断模块禁止其所在的设备向通过发送通知信息的 Diameter中继向―卜_述服务 器发送消息, 也就是说, 接收到通知信息的邻接节点不再通过发送通知信息的 Diameter中继向上述 服务器发送消息。 这里的邻接节点可以为: 接入设备, 也可以为: 与发送通知信息的 Diameter中继 直接连接的 Diameter中继, 还可以为: 与发送通知信息的 Diameter中继连接的各服务器。 当邻接节点 为接入设备时, 由于接入设备获知了发送通知信息的 Diameter中继与服务器之间不可达, 则不再向 发送通知信息的 Diameter中继发送请求消息, 即不再尝试请求和—卜_述不可达服务器的连接, 因此, 发送通知信息的 Diameter中继也就不需要向接入设备发送应答消息, 从而避免了接入设备与发送通 知信息的 Diameter中继之间大量、 重复的消息传输。 当邻接节点为 Diameter中继时, 该 Diameter中继 接收到通知信息后, 可以根据通知信息修改其与服务器连接的链路状态信息, 而且, 接收到通知信 息的 Diameter中继可以采用― h述发送通知信息的 Diameter中继接收到故障信息后执行的操作。 另夕卜, 当邻接节点为 Diameter中继时,该 Diameter中继在接收到接入设备的请求消息后可以不再通过发送通 知信息的 Diameter中继发送请求消息。 当邻接节点为服务器时, 服务器可以丢弃接收到的通知信息。  After receiving the notification information, if the determining module knows from the notification information that the Diameter relay transmitting the notification information is unreachable, the determining module prohibits the device in which it is located from relaying to the Diameter relaying the notification information. The server sends a message, that is, the neighboring node that receives the notification information no longer sends a message to the server through the Diameter relay that sends the notification information. The adjacent node here may be: an access device, or a Diameter relay directly connected to a Diameter relay that sends notification information, and may also be: each server connected to the Diameter relay that sends the notification information. When the neighboring node is an access device, the access device does not send a request message to the Diameter relay that sends the notification information, because the access device learns that the Diameter relay that sends the notification information is unreachable, that is, the request message is no longer attempted. - The connection of the unreachable server, therefore, the Diameter relay transmitting the notification information does not need to send a response message to the access device, thereby avoiding a large amount of repetition between the access device and the Diameter relay transmitting the notification information. Message transmission. When the neighboring node is a Diameter relay, the Diameter relay can modify the link state information connected to the server according to the notification information after receiving the notification information, and the Diameter relay that receives the notification information can be sent by using the “h” relay. The operation performed by the Diameter relay of the notification information after receiving the failure information. In addition, when the neighboring node is a Diameter relay, the Diameter relay may not send the request message through the Diameter relay that sends the notification information after receiving the request message of the access device. When the neighboring node is a server, the server can discard the received notification information.
下面对本发明实施方式提供的接入设备进行说明。 该接入设备包括: 接收模块和判断模块。 接收模块在接收到通知信息后,如果判断模块从通知信息中获知发送通知信息的 Diameter中继与 服务器之间不可达, 则判断模块禁止其所在的设备向通过发送通知信息的 Diameter中继向―卜_述服务 器发送消息, 也就是说, 接收到通知信息的接入设备不再通过发送通知信息的 Diameter中继向上述 服务器发送消息。 由于接入设备获知了发送通知信息的 Diameter中继与服务器之间不可达, 则不再 向发送通知信息的 Diameter中继发送请求消息, 即不再尝试请求和—卜_述不可达服务器的连接, 因此, 发送通知信息的 Diameter中继也就不需要向接入设备发送应答消息, 从而避免了接入设备与发送通 知信息的 Diameter中继之间大量、 重复的消息传输。  The access device provided by the embodiment of the present invention is described below. The access device includes: a receiving module and a determining module. After receiving the notification information, if the determining module knows from the notification information that the Diameter relay transmitting the notification information is unreachable, the determining module prohibits the device in which it is located from relaying to the Diameter relaying the notification information. The server sends a message, that is, the access device that receives the notification information no longer sends a message to the server through the Diameter relay that sends the notification information. Since the access device learns that the Diameter relay that sends the notification information is unreachable between the server and the server, the request message is no longer sent to the Diameter relay that sends the notification information, that is, the request and the connection to the unreachable server are no longer attempted. Therefore, the Diameter relay that sends the notification information does not need to send a response message to the access device, thereby avoiding a large amount of repeated message transmission between the access device and the Diameter relay that sends the notification information.
下面对本发明实施方式提供的服务器进行说明。 该服务器包括: 接收模块和判断模块。  The server provided by the embodiment of the present invention will be described below. The server includes: a receiving module and a judging module.
接收模块在接收到通知信息后,如果判断模块从通知信息中获知发送通知信息的 Diameter中继与 客户端之间不可达, 则判断模块禁止其所在的服务器向通过发送通知信息的 Diameter中继向― h述客 户端发送消息, 也就是说, 接收到通知信息的服务器不再通过发送通知信息的 Diameter中继向上述 客户端发送消息。 服务器可以丢弃接收模块接收到的通知信息。 After receiving the notification information, if the determining module learns from the notification information that the Diameter relay transmitting the notification information is unreachable between the client and the client, the determining module prohibits the server in which the server is located from relaying the Diameter relay by sending the notification information. ―h described the client sending a message, that is, the server receiving the notification information no longer relays the Diameter relay by sending the notification information to the above The client sends a message. The server can discard the notification information received by the receiving module.
下面对木发明实施方式提供的一种 Diameter中继设备进行说明。  A Diameter relay device provided by the embodiment of the wood invention will be described below.
Diameter中继设备包括: 不可达检测模块、 发送模块、 接收模块和判断模块。 Diameter中继设备 还可以可选的包括: 恢复检测模块。  The Diameter relay device includes: an unreachable detection module, a transmission module, a receiving module, and a judging module. The Diameter relay device can also optionally include: a recovery detection module.
不可达检测模块用于获取其所在 Diameter中继与服务器之间的连接信息,在根据连接信息确定出 该 Diameter中继与服务器之间不可达后, 触发发送模块。这里的不可达检测模块所在 Diameter中继即 上述方法实施方式中描述的第一 Diameter中继。 Diameter中继与服务器之间的连接可以为多种方式、 且连接方式的不同会使连接信息具有不同的含义, 具体如—卜.述方法实施方式中的描述。  The unreachable detection module is configured to obtain connection information between the Diameter relay and the server, and trigger the sending module after determining that the Diameter relay and the server are unreachable according to the connection information. The Diameter relay where the unreachable detection module is located is the first Diameter relay described in the above method implementation. The connection between the Diameter relay and the server may be in a plurality of manners, and the difference in the connection manner may make the connection information have different meanings, as described in the method embodiment.
- h述不可达检测模块可以包括: 存储子模块和检测子模块。 存储子模块和检测子模块执行的操 作如上述实施方式的描述。  - h The unreachable detection module may include: a storage submodule and a detection submodule. The operations performed by the storage sub-module and the detection sub-module are as described in the above embodiments.
发送模块用于根据不可达检测模块的触发, 向其所在的 Diameter中继的邻接节点发送通知信息, 以通告其所在的 Diameter中继的邻接节点 Diameter中继与服务器之间不可达,使邻接节点不再通过该 发送模块所在的 Diameter中继向服务器发送消息。发送模块可以根据 Diameter中继的路由信息发送— h 述通知信息。  The sending module is configured to send, according to the trigger of the unreachable detection module, a notification message to the neighboring node of the Diameter relay in which the Diameter relay is located, to notify the neighboring node of the Diameter relay that the Diameter relay is not reachable between the server and the server, so that the neighboring node The message is no longer sent to the server through the Diameter relay where the sending module is located. The sending module can send the notification information according to the routing information of the Diameter relay.
恢复检测模块用于在检测出其所在 Diameter中继与服务器之间由不可达转变为可达后,通知发送 模块向邻接节点发送恢复通知信息。恢复检测模块通知发送模块发送恢复通知信息的具体实现过程、 以及发送模块发送恢复通知信息的具体实现过程如—卜_述方法实施方式中的描述。 恢复检测模块还可 以根据检测的结果刷新其所在 Diameter中继中存储的链路状态信息, 例如刷新存储子模块中存储的 链路状态信息。  The recovery detection module is configured to notify the sending module to send the recovery notification information to the neighboring node after detecting that the Diameter relay and the server are changed from unreachable to reachable. The specific implementation process of the recovery detection module notifying the sending module to send the recovery notification information, and the specific implementation process of the sending module sending the recovery notification information are as described in the implementation method of the method. The recovery detection module may further refresh the link state information stored in the Diameter relay according to the detected result, for example, refresh the link state information stored in the storage submodule.
接收模块在接收到通知信息后,如果判断模块从通知信息中获知发送通知信息的 Diameter中继与 服务器之间不可达,则判断模块禁止其所在的 Diameter中继向通过发送通知信息的 Diameter中继向上 述服务器发送消息, 也就是说, 接收到通知信息的 Diameter中继不再通过发送通知信息的 Diameter 中继向上述服务器发送消息。  After receiving the notification information, if the determining module learns from the notification information that the Diameter relay transmitting the notification information is unreachable between the server, the determining module prohibits the Diameter relay in which the module is located from relaying the Diameter relay by sending the notification information. The message is sent to the above server, that is, the Diameter relay receiving the notification information no longer sends a message to the server through the Diameter relay that sent the notification information.
虽然通过实施例描绘了本发明, 本领域普通技术人员知道, 本发明有许多变形和变化而不脱离 本发明的精神, 本发明的申请文件的权利要求包括这些变形和变化。  While the invention has been described by the embodiments of the invention, it will be understood that

Claims

权利要求 Rights request
1、 一种基于计费传输协议 Diameter的连接巾断处理方法, 其特征在于, 包括: A method for processing a connection towel based on a charging transmission protocol Diameter, comprising:
判断第一 Diameter中继与服务器或客户端之间是否可达;  Determining whether the first Diameter relay is reachable to the server or the client;
如果所述第一 Diameter中继与服务器或客户端之间不可达, 则向所述第一 Diameter中继的邻接节 点发送通知信息, 所述通知信息包括所述第一 Diameter中继与所述服务器或客户端之间不可达信息, 以通知所述邻接节点不再通过所述第一 Diameter中继向所述服务器或客户端发送消息。  Sending, to the neighboring node of the first Diameter relay, notification information, where the first Diameter relay is unreachable between the server and the client, the notification information including the first Diameter relay and the server Or unreachable information between the clients, to notify the neighboring node that the message is no longer sent to the server or client by using the first Diameter relay.
2、如权利要求 1所述的方法, 其特征在于, 所述判断第一 Diameter中继与服务器或客户端之间 是否可达具体为: The method according to claim 1, wherein the determining whether the first Diameter relay is reachable to the server or the client is specifically:
在检测到所述第一 Diameter中继与服务器或客户端之间直接连接的链路中断后, 获取所述第一 Diameter中继与所述服务器或客户端的其它连接的链路状态信息, 根据所述第一 Diameter中继与所 述服务器或客户端的其它连接的链路状态信息, 判断所述第一 Diameter中继是否与所述服务器或客 户端之间可达。  After detecting that the link directly connected between the first Diameter relay and the server or the client is interrupted, acquiring link state information of the first Diameter relay and other connections of the server or the client, according to the Determining, by the first Diameter, link state information of the other connection with the server or the client, determining whether the first Diameter relay is reachable to the server or the client.
3、如权利要求 1所述的方法, 其特征在于, 所述判断第一 Diameter中继与服务器或客户端之间 是否可达具体为:  The method according to claim 1, wherein the determining whether the first Diameter relay is reachable to the server or the client is specifically:
接收其它 Diameter中继发送來的与所述服务器或客户端之间不可达的故障信息, 获取所述第一 Receiving failure information that is sent from another Diameter relay and being unreachable between the server or the client, acquiring the first
Diameter 中继与所述服务器或客户端的其它连接的链路状态信息, 并根据所述接收到的故障信息、 及所述第一 Diameter中继与所述服务器或客户端的其它连接的链路状态信息,判断第一 Diameter中 继是否与所述服务器或客户端之间可达。 Diameter relaying link state information of other connections with the server or client, and according to the received fault information, and link state information of the first Diameter relay and other connections of the server or client And determining whether the first Diameter relay is reachable to the server or the client.
4、如权利要求 1所述的方法, 其特征在于, 所述判断第一 Diameter中继与服务器或客户端之间 是否可达具体为:  The method according to claim 1, wherein the determining whether the first Diameter relay is reachable to the server or the client is specifically:
在检测到所述第一 Diameter中继与所述其它 Diameter中继连接的链路中断后, 获取所述第一 Diameter中继与所述服务器或客户端的其它连接的链路状态信息, 根据所述第一 Diameter中继与所 述服务器或客户端的其它连接的链路状态信息, 判断所述第一 Diameter中继是否与所述服务器或客 户端之间可达。  After detecting that the link of the first Diameter relay and the other Diameter relay connection is interrupted, acquiring link state information of the first Diameter relay and other connections of the server or the client, according to the The first Diameter relays link state information of the other connection with the server or the client, and determines whether the first Diameter relay is reachable to the server or the client.
5、如权利要求 1至 4中任一权利要求所述的方法, 其特征在于, 所述向所述第一 Diameter中继 的邻接节点发送通知信息的步骤包括:  The method according to any one of claims 1 to 4, wherein the step of transmitting the notification information to the adjacent node of the first Diameter relay comprises:
利用广播方式、 及防止广播环回机制向所述第一 Diameter中继的邻接节点发送通知信息。 The notification information is sent to the neighboring node of the first Diameter relay by using a broadcast method and a broadcast loopback prevention mechanism.
6、 如权利要求 5所述的方法, 其特征在于, 所述防止广播环回机制包括下述至少一种: 限制通知信息传输次数、 限制向广播通知信息的源节点发送通知信息和限制向通知信息的转发 节点发送通知信息。 6. The method according to claim 5, wherein the broadcast prevention loopback mechanism comprises at least one of: limiting a number of notification information transmissions, limiting transmission of notification information to a source node of the broadcast notification information, and limiting notification to the notification The forwarding node of the information sends the notification information.
7、 如权利要求 1至 4中任一权利要求所述的方法, 其特征在于, 所述方法还包括: 在检测出第一 Diameter中继 服务器或客户端之间由不可达转变为可达后, 向第一 Diameter中 继的邻接节点发送恢复通知信息, 以通告所述邻接节点所述第一 Diameter巾继与所述服务器或客户 端之间可达。 The method according to any one of claims 1 to 4, wherein the method further comprises: after detecting that the first Diameter relay server or the client is changed from unreachable to reachable , to the first Diameter The succeeding neighbor node sends recovery notification information to notify the neighboring node that the first Diameter towel is reachable to the server or client.
8、 一种基于 Diameter的连接中断处理装置, 位于 Diameter中继设备中, 其特征在于, 所述装 置包括:  8. A Diameter-based connection interruption processing device, located in a Diameter relay device, wherein the device comprises:
不可达检测模块, 用于判断其所在 Diameter中继与服务器或客户端之间是否可达, 如果该 The unreachable detection module is configured to determine whether the Diameter relay and the server or the client are reachable, if
Diameter中继与服务器或客户端之间不可达, 则触发发送模块; If the Diameter relay is unreachable between the server or the client, the sending module is triggered;
发送模块, 用于根据不可达检测模块的触发, 向所述 Diameter中继的邻接节点发送通知信息, 所 述通知信息包括所述 Diameter中继与所述服务器或客户端之间不可达, 以通知所述邻接节点不再通 过所述 Diameter中继向所述服务器或客户端发送消息。  a sending module, configured to send notification information to the neighboring node of the Diameter relay according to the trigger of the unreachable detection module, where the notification information includes that the Diameter relay is unreachable between the server or the client, to notify The neighboring node no longer sends a message to the server or client through the Diameter relay.
9、 如权利要求 8所述的装置, 其特征在于, 该不可达检测模块包括:  9. The device of claim 8, wherein the unreachable detection module comprises:
存储子模块, 用于存储其所在 Diameter中继与服务器或客户端之间各连接的链路状态信息; 检测子模块, 用于在检测到其所在 Diameter中继与服务器或客户端之间直接连接的链路中断、 或者检测到其所在 Diameter中继接收到其它 Diameter中继发送来的通知信息、 或者检测到其所在 Diameter中继与其它 Diameter中继的连接中断后, 根据所述存储子模块中存储的链路状态信息, 判 断所述 Diameter中继是否与所述服务器或客户端之间可达, 在确定出不可达后, 触发发送模块。  a storage submodule, configured to store link state information of a connection between the Diameter relay and the server or the client; the detecting submodule, configured to detect a direct connection between the Diameter relay and the server or the client If the link is interrupted, or the notification information sent by the other Diameter relay is detected, or the connection between the Diameter relay and the other Diameter relay is interrupted, according to the storage submodule The stored link state information determines whether the Diameter relay is reachable to the server or the client, and after determining that the reachability is unreachable, triggering the sending module.
10、 如权利要求 8或 9所述的装置, 其特征在于, 所述装置还包括:  The device according to claim 8 or 9, wherein the device further comprises:
恢复检测模块, 用于在检测出其所在 Diameter中继与服务器或客户端之间可达后, 通知发送模 块向邻接节点发送恢复通知信息。  The recovery detection module is configured to notify the sending module to send the recovery notification information to the neighboring node after detecting that the Diameter relay is reachable between the server and the client.
11、 一种基于 Diameter的连接中断处理装置, 其特征在于, 所述装置包括:  11. A Diameter-based connection interruption processing device, wherein the device comprises:
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息包括第一 Diameter中继与服务器或客户端之间 不可达的通知信息, 则禁止通过所述第一 Diameter中继向所述服务器或客户端发送消息。  a determining module, configured to: after determining that the message received by the receiving module includes the notification information that is unreachable between the first Diameter relay and the server or the client, prohibiting, by using the first Diameter relay, to the server or the client Send a message.
12、 一种接入设备, 所述接入设备通过 Diameter中继与服务器连接, 其特征在于, 所述接入设 备包括:  An access device, where the access device is connected to the server through a Diameter relay, and the access device includes:
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息包括第一 Diameter中继与服务器之间不可达的 通知信息, 则禁止通过所述第一 Diameter中继向所述服务器发送消息。  The determining module is configured to: when it is determined that the message received by the receiving module includes the unreachable notification information between the first Diameter relay and the server, prohibit sending the message to the server by using the first Diameter relay.
13、 一种服务器, 所述服务器通过 Diameter中继与客户端连接, 所述服务器包括:  13. A server, wherein the server is connected to a client by using a Diameter relay, and the server includes:
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块, 用于在判断出接收模块接收到的消息包括第一 Diameter中继与客户端之间不可达的 通知信息, 则禁止通过所述第一 Diameter中继向所述客户端发送消息。  The determining module is configured to: when it is determined that the message received by the receiving module includes the notification information that is unreachable between the first Diameter relay and the client, prohibit sending the message to the client by using the first Diameter relay.
14、 一种 Diameter中继设备, 其特征在于, 包括:  14. A Diameter relay device, comprising:
不可达检测模块,用于判断其所在 Diameter中继与服务器 /客户端之间是否可达,如果该 Diameter 中继与服务器或客户端之间不可达, 则触发发送模块; The unreachable detection module is configured to determine whether the Diameter relay and the server/client are reachable, if the Diameter If the relay is unreachable between the server and the client, the sending module is triggered;
发送模块, 用于根据不可达检测模块的触发, 向所述 Diameter中继的邻接节点发送通知信息, 所 述通知信息包括所述 Diameter中继与所述服务器或客户端之间不可达, 以通知所述邻接节点不再通 过所述 Diameter中继向所述服务器或客户端发送消息;  a sending module, configured to send notification information to the neighboring node of the Diameter relay according to the trigger of the unreachable detection module, where the notification information includes that the Diameter relay is unreachable between the server or the client, to notify The neighboring node no longer sends a message to the server or client through the Diameter relay;
接收模块, 用于接收消息;  a receiving module, configured to receive a message;
判断模块,用于在判断出接收模块接收到的消息包括预定 Diameter中继与服务器或客户端之间不 可达的通知信息, 则禁止通过所述预定 Diameter中继向所述服务器或客户端发送消息。  The determining module is configured to, after determining that the message received by the receiving module includes the notification information that is not reachable between the predetermined Diameter relay and the server or the client, prohibit sending the message to the server or the client by using the predetermined Diameter relay .
PCT/CN2008/073303 2007-12-04 2008-12-02 A method and apparatus for processing the break of the connection based on the charging and transmitting protocol WO2009074094A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710178734.9 2007-12-04
CN 200710178734 CN101453449A (en) 2007-12-04 2007-12-04 Connection interruption processing method and apparatus based on charge transmission protocol

Publications (1)

Publication Number Publication Date
WO2009074094A1 true WO2009074094A1 (en) 2009-06-18

Family

ID=40735473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073303 WO2009074094A1 (en) 2007-12-04 2008-12-02 A method and apparatus for processing the break of the connection based on the charging and transmitting protocol

Country Status (2)

Country Link
CN (1) CN101453449A (en)
WO (1) WO2009074094A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625406B (en) * 2011-01-28 2015-07-29 中国移动通信集团公司 A kind of application layer signalling route guard method and equipment
JP6405831B2 (en) * 2014-09-25 2018-10-17 富士ゼロックス株式会社 Information processing apparatus, communication system, and program
CN106330823A (en) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 Session live-keeping method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465166A (en) * 2001-07-24 2003-12-31 株式会社Ntt都科摩 Connection cutting method and associated link cut reporting method
KR20060032100A (en) * 2004-10-11 2006-04-14 한국전자통신연구원 Bootstrapping method in mobile network based on diameter protocol and system therein
CN1889457A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for raising Diameter internodal communication reliability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1465166A (en) * 2001-07-24 2003-12-31 株式会社Ntt都科摩 Connection cutting method and associated link cut reporting method
KR20060032100A (en) * 2004-10-11 2006-04-14 한국전자통신연구원 Bootstrapping method in mobile network based on diameter protocol and system therein
CN1889457A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for raising Diameter internodal communication reliability

Also Published As

Publication number Publication date
CN101453449A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
US8442517B2 (en) Method and apparatus for controlling communications
ES2384525T3 (en) Method to perform user registration activation in an IP multimedia subsystem
CN101304343B (en) Method, apparatus and system for detecting network fault
JP5636516B2 (en) Backup SIP server for enterprise network survivability using SIP
US20120042084A1 (en) Self-organizing ims network and method for organizing and maintaining sessions
US6061728A (en) Arrangement for controlling network proxy device traffic on a transparently-bridged local area network using a master proxy device
US20100223492A1 (en) Node failure detection system and method for sip sessions in communication networks
US20170230428A1 (en) Session initiation protocol (sip) communications over trusted hardware
EP1727309A1 (en) Methods and apparatus for monitoring link integrity for signaling traffic over a path traversing hybrid ATM/ethernet infrastructure in support of packet voice service provisioning
CN101605138A (en) Document transmission method and terminal
JP5519710B2 (en) Maximum transmission unit (MTU) size detection mechanism and method for data link layer
US20150142987A1 (en) Method and System of Transferring a Message in a Session Initiation Protocol Based Communications Network
US9584405B2 (en) Application layer session routing
WO2012106915A1 (en) Failure notification method, detection apparatus, forwarding apparatus, system and data structure
EP2649765B1 (en) Traffic routing across and between networks
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
WO2010000158A1 (en) Route state detection method, device and system
KR20120134466A (en) Mesh network node and data transferring method thereof
EP2485444B1 (en) Method of establishing optimized media path and signaling gateway for implementing this method
US9648018B2 (en) Methods, systems, and computer readable media for controlling deep parsing of diameter messages
US20080052406A1 (en) Media transmission method and apparatus in a communication system
WO2009074094A1 (en) A method and apparatus for processing the break of the connection based on the charging and transmitting protocol
US6442610B1 (en) Arrangement for controlling network proxy device traffic on a transparently-bridged local area network using token management
WO2008049346A1 (en) Method, system and device for registering device
EP1709777B1 (en) Session initiation protocol signalling

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: 08859298

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: 08859298

Country of ref document: EP

Kind code of ref document: A1