Summary of the invention
The invention provides a kind of system and method for realizing that extended Diameter protocol is used, in order to solve the diameter application extension method disunity problem that exists in the prior art.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of system that realizes that extended Diameter protocol is used, comprising: basic agreement assembly, expanded application assembly and Operations,Administration And Maintenance assembly, wherein,
Described basic agreement assembly is cooperated by its general-purpose interface that provides and expanded application assembly, Operations,Administration And Maintenance assembly, realizes the support to various expanded application; Described general-purpose interface comprises: registration interface, configuration interface, messenger service interface; Described messenger service interface comprises: message distribution interface, encoding and decoding interface; Described basic agreement assembly wherein is provided with application registry and message distribution policy table, described basic agreement assembly specifically is used for, registration scenarios according to the configuring condition and the described expanded application assembly of described Operations,Administration And Maintenance assembly, maintenance application registration table and message distribution policy table, and pass through the message distribution interface and between expanded application assembly and basic agreement assembly, transmit the Diameter explosion command;
Described Operations,Administration And Maintenance assembly is used to utilize the configuration interface of described basic agreement assembly, the expanded application assembly that configuration is newly-increased;
Described expanded application assembly is used to the registration interface of utilizing the basic agreement assembly to provide, to described basic agreement component register; Described expanded application assembly also is used for, and takes out interested special data information by the encoding and decoding interface from the request of Diameter explosion command, and data processed is packaged into the Diameter explosion command replys.
Further, be provided with application registry and message distribution policy table in the described basic agreement assembly, then described basic agreement assembly also is used for the registration scenarios according to the configuring condition and the described expanded application assembly of described Operations,Administration And Maintenance assembly, maintenance application registration table and message distribution policy table.
Further, described application registry comprises following one or more information: the strategy sign of the host name of expanded application sign, address, support, the application identities of support, support.
Further, described message distribution policy table comprises: by the distribution policy of configuration interface configuration and the acquiescence distribution policy of protocol stack appointment.
The present invention also provides a kind of method of utilizing said system to realize the Diameter expanded application, and described expanded application assembly is mutual by described basic agreement assembly and peers include both,
When receiving request and echo reply as service end, specifically comprise: described basic agreement assembly receives the Diameter explosion command request that peers include both is sent, and issues described expanded application assembly in the Diameter explosion command request that described peers include both is sent; Described expanded application assembly generates the Diameter explosion command according to the Diameter explosion command request that receives and replys, and described Diameter explosion command replied is handed down to described basic agreement assembly; The described Diameter explosion command that described basic agreement assembly will receive is replied and is transmitted to peers include both;
When sending request as client and handling when replying, specifically comprise: described expanded application assembly produces diameter explosion command request and also sends to described basic agreement assembly; Described basic agreement assembly sends to peers include both after route analysis is carried out in request to the diameter explosion command; Described basic agreement assembly receives the diameter explosion command from peers include both and replys and issue the expanded application assembly; The business information that described expanded application assembly carries according to the diameter explosion command response message logic of managing business.
Further, described basic agreement assembly is according to the registration scenarios of the configuring condition and the described expanded application assembly of described Operations,Administration And Maintenance assembly, when between described expanded application assembly and peers include both, transmitting the diameter explosion command, according to the application identities, command code, routing iinformation, the session identification that carry in the diameter order diameter explosion command is distributed, sent to correct expanded application assembly and peers include both.
In sum, the invention provides a kind of system and method for realizing that extended Diameter protocol is used, the registration interface, configuration interface and the messenger service interface that provide by the basic agreement assembly, can be between client and service end the reliable transmission explosion command, the quick realization that has made things convenient for various extended Diameter protocols to use.
Embodiment
Below in conjunction with accompanying drawing the system of the described realization extended Diameter application of the embodiment of the invention and the method for utilizing described system to carry out protocol extension are elaborated.
The system of 1 pair of described realization extended Diameter application of the embodiment of the invention is described in detail at first in conjunction with the accompanying drawings.
As shown in Figure 1, Fig. 1 is the hierarchical structure schematic diagram of system described in the embodiment of the invention.
Described system mainly comprises: basic agreement assembly, expanded application assembly and OAM (Operations,Administration And Maintenance) assembly, wherein,
The basic agreement assembly is cooperated by its registration interface that provides, configuration interface, messenger service interface and expanded application assembly, OAM assembly, thereby can realize the support to various special expanded application fast, easily.
When the expanded application assembly by registration interface behind the basic agreement component register, the basic agreement assembly need be safeguarded application registry and message distribution policy table wherein, wherein,
Application registry has reflected the situation of supporting expanded application, and the information that comprises has: the PolicyId of SvcId (expanded application sign), SvcAddr (address), the HostName (host name) that supports, the ApplicationId (application identities) that supports, support (strategy sign).
Include two kinds of strategies in the message distribution policy table:
A kind of is the distribution policy that disposes by configuration interface.According to the special distribution requirements configuration of expanded application, the Diameter explosion command that has wherein comprised tactful ID (sign) and supported.If during the expanded application component register, this strategy ID is supported in registration, represents that promptly this expanded application assembly receives the Diameter explosion command that comprises in this strategy.
Another kind is the acquiescence distribution policy of protocol stack appointment.If during the expanded application registration, unregistered distribution policy is promptly according to acquiescence distribution policy distribution command.Acquiescence comprised in the distribution policy all expanded application assemblies of having registered with and the ApplicationID that supports between corresponding relation.This corresponding relation is a kind of relation of multi-to-multi, and promptly an ApplicationID may be supported by a plurality of expanded application component registers, and an expanded application assembly also can be registered and support a plurality of ApplicationID.
The basic agreement assembly is when carrying out the message distribution, and the preferential distribution policy that uses by the configuration interface configuration secondly according to the acquiescence distribution policy, adopts average ways of distribution between the expanded application of the same ApplicationID of a plurality of supports.
The messenger service interface that the basic agreement assembly provides comprises: message distribution interface, encoding and decoding interface.The basic agreement assembly transmits the Diameter explosion command by the message distribution interface between expanded application assembly and basic agreement assembly; By the encoding and decoding interface, the expanded application assembly can take out interested special data information from the request of Diameter explosion command, and data processed is packaged into the Diameter explosion command replys.
The OAM assembly all has alternately with basic agreement assembly and expanded application assembly, the main Operation and Maintenance function that realizes the Diameter stack.For example: data configuration, signaling tracing, failure observation, data statistics or the like.At the embodiment of the invention, the OAM assembly has mainly used the data configuration function of OAM assembly, by the configuration interface between OAM assembly and the basic agreement assembly, according to various application extension demands, newly-increased expanded application assembly, CommandCode (command code) and the form thereof of configuration, expansion AVP (property value to), expansion AVP values etc.
The expanded application assembly realizes that professional AAA uses, and the registration interface of using the basic agreement assembly to provide, to the basic agreement component register.
, to accompanying drawing 4 method of utilizing said system to realize that extended Diameter protocol is used is elaborated below in conjunction with accompanying drawing 2, when receiving request and echo reply as service end, described method specifically comprises.
Steps A: when described basic agreement assembly receives the Diameter explosion command request that peers include both sends, issue described expanded application assembly in the Diameter explosion command request that described peers include both is sent;
Step B: described expanded application assembly generates the Diameter explosion command according to the Diameter explosion command request that receives and replys, and described Diameter explosion command replied is handed down to described basic agreement assembly;
Step C: the described Diameter explosion command that described basic agreement assembly will receive is replied and is transmitted to peers include both.
Each step to the described method of the embodiment of the invention is described in detail below.
Described steps A specifically comprises: described basic agreement assembly is received the Diamete explosion command request that peers include both is sent, and the action on this Diameter physical node is LOCAL through route analysis, after promptly local the processing, will issue the expanded application assembly in the described explosion command request; A described upward process specifically may further comprise the steps as shown in Figure 2:
Step 201: the basic agreement assembly takes out ApplicationID, CommandCode (command code), SessionID (session identification) etc. from the request of described Diameter explosion command, if carried Destination-Host (destination host) in the request of Diameter explosion command then also taking-up;
Step 202: the basic agreement assembly is checked this command code corresponding strategy ID from the distribution policy table of its maintenance, if find corresponding strategy ID, then execution instep 203; Otherwise execution instep 204;
Step 203: directly this Diameter explosion command request is distributed to the expanded application assembly of having registered this tactful ID;
Step 204: the distribution policy of basic agreement component inspection acquiescence: the ApplicationID that carries in the request of Diameter explosion command is by which expanded application assembly support, if do not use the expanded application assembly of supporting this ApplicationID, then execution instep 205; Otherwise enterstep 206;
Step 205: the basic agreement assembly returns application and does not support mistake;
Step 206: find the expanded application assembly of supporting this ApplicationID, if do not carry Destination-Host in the command request, then execution instep 207; Otherwise enterstep step 208;
Step 207: calculate hash (Hash) value and, between a plurality of expanded application assemblies, on average distribute to the number delivery of the expanded application assembly of supporting this ApplicationID according to the session identification that carries in the command request;
Step 208: find the expanded application assembly of supporting this ApplicationID, and carried Destination-Host in the command request, then in the expanded application assembly of supporting this ApplicationID, whether the host name when relatively registering is consistent with Destination-Host, and unanimity is execution instep 209 then; Otherwise enterstep 210.
Step 209: be distributed to this expanded application assembly;
Step 210: the expanded application assembly of supporting this ApplicationID is not the destination of this command request, and then basic agreement is returned purpose and can't be arrived mistake.
More than be how will issue the expanded application assembly in the request of a Diameter explosion command to the description of described steps A.
Among the described step B, the process of expanded application assembly processing Diameter explosion command request specifically may further comprise the steps as shown in Figure 3:
Step 301: the expanded application assembly is received the request of a Diameter explosion command by the messenger service interface;
Step 302:, described explosion command request is decoded by the encoding and decoding interface;
Step 303: obtain the needed data message of the logic of managing business, carry out business logic processing, organize data for producing response message, wherein, the required data message of the described logic of managing business is meant by concrete expanded application decision.Such as, use if charge, then interested in some metering datas, handle the charging logic; If it is authentication application is then interested in some authentication data, different by using a difference.
Step 304: use the encoding and decoding interface, the reply data that produces is encoded, produce the Dimeter explosion command and reply;
Step 305: use the messenger service interface, the Diameter explosion command of encapsulation is replied be handed down to the basic agreement assembly.
Among the step C, the Diameter explosion command that the basic agreement assembly generates the expanded application assembly is replied and is transmitted to peers include both, and detailed process may further comprise the steps as shown in Figure 4:
Step 401: take out Session-ID (session identification) the Diameter explosion command that the basic agreement assembly issues from the expanded application assembly is replied;
Step 402:Diameter basic agreement can not find search the Session-ID of coupling from the session instance of its preservation, and then execution instep 403; Find, then execution instep 404;
Step 403: enter error processing procedure, prompting upper strata expanded application assembly does not have the session of coupling.
Step 404: from the session instance of coupling, find peers include both address and corresponding out link, described explosion command is replied by out link send to peers include both.
When sending request as client and handling when replying, described method comprises that specifically step is as follows:
Described expanded application assembly produces diameter explosion command request and sends to described basic agreement assembly;
The described basic agreement assembly of step sends to peers include both after route analysis is carried out in request to the diameter explosion command;
Described basic agreement assembly receives the diameter explosion command from peers include both and replys and issue the expanded application assembly;
The business information that described expanded application assembly carries according to the diameter explosion command response message logic of managing business.
The specific implementation process of replying is asked and handled to described the transmission as client, similar with above-mentioned described concrete processing procedure as service end reception request and echo reply, those of ordinary skills send request and handle the specific implementation process of replying and can realize describedly receiving the concrete processing procedure of request and echo reply as service end as client according to described, so just repeat no more herein.
In sum, the system and method that adopts the described realization extended Diameter of the embodiment of the invention to use, by to the basic agreement component register, the service of using the basic agreement assembly to provide, can be between client and service end the reliable transmission explosion command, and the expanded application assembly only need obtain interested business information from explosion command, the quick realization that has made things convenient for various extended Diameters to use.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.