The method for authenticating of SMS value-added service and system
Technical field
The present invention relates to a kind of SMS value-added service of mobile communication, particularly relate to the method for authenticating and the system of SMS value-added service.
Background technology
The branch operator that SMS value-added service is started to walk early, development is good is in order to strengthen the service management means to the value-added service in the Access Network, between SMSC and SP, added a kind of equipment that becomes value-added service platform one after another, when linking, such value-added service platform and SMSC all adopt the SMPP agreement of standard, SP then will adopt some proprietary agreements when inserting value-added service platform, and such agreement is more perfect than SMPP protocol function aspect service management.But the pattern of " SMSC+ value-added service platform+SP " still can't realize the networking of the whole network short message service, and key is the agreement that does not have networking between the value-added service platform.
And SMS value-added service is in a kind of state of doing things in his own way at present.The main cause that causes this state is that the SMSC of each branch company can't be by present general SMPP agreement (short MessagePeer to Peer, Short Message Peer to Peer) realizes networking, therefore SP is if will provide service for the user of a plurality of provinces, just must insert the SMSC of each province respectively, this situation has increased system and the human cost of SP greatly, has seriously hindered the development of SMS value-added service.
At present, the SMS value-added service access protocol of current international practice standard only has the SMPP agreement, and it is not that International Standards Organization is the standard access protocol that SMS value-added service is formulated at first, for no other reason than that it is simply suitable, application is more and more, thereby becomes international standard sanctified by usage.Also because so, the early stage version of SMPP is too simple, and not rigorous suspicion is arranged, to such an extent as to each SMSC manufacturer and operator when using, all need it is carried out some additional standards, so the version in the practical application can't be added up.
The SMPP agreement has been represented traditional access protocol, only considers that according to the system of its framework SMSC connects with the simple of ESME, does not consider the interconnected of SMSC or ESME, as shown in Figure 1.
ESME is the abbreviation of External Short Message Entity, and Short Message Entity is meant the entity that can initiate or transmit short message, and External Short Message Entity then refers to the Short Message Entity outside mobile network, generally provides the SP of SMS value-added service.SP can be by special line or Internet connection to SMSC, but all pass through the access that the SMPP agreement realizes business.
And as shown in Figure 2, according to the mode of GSM division short message service flow process, all short message services all are divided into MO (by the short message of cellphone subscriber's submission) and MT (by the short message of cellphone subscriber's reception) two big flow processs.
When a business order of having carried short message need be handled, the terminal point short messaging gateway must guarantee that the paying side of this short message is qualified and enjoy this service (such as not arrearage of paying customer), for this reason, short messaging gateway need check that thereby user profile judges whether to continue to transmit short message under some situation, and such process is referred to as authentication.According to the difference of Short Message Service type, way of paying can be divided into four classes: caller-pays system, reverse charge, SP pay and third-party charging.Caller-pays system is the situation in the MO flow process, and back three kinds of way of paying only occur in the MT flow process.
The calling party refers to initiate the cellphone subscriber of short message, and present SMSC has the function to calling subscriber's authentication, so the business order that SMSC is submitted to up, short messaging gateway is not done the authentication inspection.
Callee's finger is received the cellphone subscriber of short message.Equally, present SMSC has the function to called subscriber's authentication, so to the business order by reverse charge, short messaging gateway is not done the authentication inspection yet, directly is forwarded to SMSC; If callee's failed authentication, SMSC can be by feedback informing message gateway.
When the MT short message is (to send advertisement as SP) when being paid by SP, short messaging gateway does not need to do the authentication inspection.
And when the user customizes short message service by SP, have that mobile network can't carry out authentication to the paying customer under a kind of situation: promptly the MT short message is by third-party charging, registers on the website and utilizes register account number to give the customization short message service to the party B-subscriber as the party A-subscriber.This moment, the party A-subscriber was the paying customer; but because the authentication information that short message service center only can not grasp the mobile subscriber in real time to user's (party B-subscriber) authentication and the SP of actual reception message; if party A-subscriber's defaulting subscriber so, then SP and short message service center all can't limit the party A-subscriber and continue to use its registration account number on SP to give the customization short message to the party B-subscriber.
Therefore, be necessary in the SGIP agreement, to have designed complete authentication mechanism, on agreement and operation flow, guaranteed that all system can be to using professional user to carry out authentication with various forms.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method for authenticating and system of SMS value-added service, solution is because of the authentication leak of user by the Internet program request SMS value-added service, for the short message service networked system provides complete authentication mechanism, use professional user to carry out authentication to various forms with the assurance system.
To achieve these goals, the invention provides a kind of method for authenticating of SMS value-added service, be applied to have in the short message service networked system of short messaging gateway SMG, comprise the steps:
The service provider SP service of will being sent to by the short message service (SMS) data that user terminal receives inserts ground short messaging gateway SMG;
Described service inserts non-service provider SP in paying side or the called subscriber that ground short messaging gateway SMG judges this short message, and then Subscriber Number paying customer's ownership place short messaging gateway SMG of being belonged in the side's of paying sends authentication request to AUC;
AUC's loopback authentication information;
If authentication is passed through, the short message service (SMS) data that then described user terminal receives normally issues; If authentication is not passed through, then described service inserts the ground short messaging gateway SMG notification service SP of provider.
The short message service (SMS) data that described user terminal receives is sent by the short message service center of described paying customer's ownership place, and finishes authentication operations by the AUC of described paying customer's ownership place.
The authentication process of described paying customer's ownership place short messaging gateway and AUC comprises:
Described paying customer's ownership place short messaging gateway SMG sets up TCP/IP with AUC and is connected, and described paying customer's ownership place short messaging gateway SMG is a client, and this AUC is a server end;
Described paying customer's ownership place short messaging gateway SMG sends the authentication order to this AUC;
Described paying customer's ownership place short messaging gateway SMG receives Authentication Response from this AUC;
Described paying customer's ownership place short messaging gateway SMG disconnects with this AUC and being connected.
To achieve these goals, the present invention also provides a kind of right discriminating system of SMS value-added service, comprising:
Short messaging gateway SMG is used to receive and transmit the short message service (SMS) data by the user terminal reception that service provider SP sends, and the paying side's Subscriber Number that belongs to paying customer's ownership place short messaging gateway SMG is carried out authentication;
AUC, be used to carry out charge accounting, and the authentication request that receives described paying customer's ownership place short messaging gateway SMG transmission, and the side of paying user is carried out authentication, and loopback authentication information as the paying side of short message user with when receiving the inconsistent and non-service provider SP of the side of paying user of user.
The present invention is by at user's fee with when receiving the inconsistent and user's fee of user and being not service provider SP, utilize short messaging gateway SMG that user's fee is carried out authentication, for the short message service networked system provides complete authentication mechanism, the system that guaranteed uses professional user to carry out authentication to various forms, and has filled up original short message authentication mechanism and introduced the authentication leak that the back produces because of the value-added service of the Internet program request form.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is based on the conventional network structure of SMPP protocol application in the prior art;
Fig. 2 is based on the operation flow of SMPP protocol application in the prior art;
Fig. 3 is a short message service networked system general structure schematic diagram of the present invention;
Fig. 4 is the schematic diagram of the network organization of introducing short messaging gateway of the present invention;
Fig. 5 introduces operation flow schematic diagram behind the SMG for the present invention;
Fig. 6 is an authentication operation flow schematic diagram of the present invention.
Embodiment
In order to eliminate the disadvantage of conventional network structure, must introduce the notion of short messaging gateway SMG.Short messaging gateway is arranged on the functional entity between mobile communications network and the public data network, solves the charging problem of the information content, for SP provides unified interface, finishes functions such as service management, tariff management, safety management, authentication.
SMS value-added service networked system of the present invention has another name called at communication system, it is by SMG (Short Message Gateway as Fig. 3, short messaging gateway), GNS (Gateway Name Server, the short messaging gateway routing server), SMSC (Short Message Service Center, short message service center) and the common networked system of forming of SP (Service Provider, service provider).Communications protocol between the SMG adopts SGIP agreement (Short Message Gateway Interface Protocol, the short message service networking protocol), in this system except that SMSC, other all inter-node communications all adopt SGIP, the described Short message Gateway Interface Protocol of this agreement, be used to finish transmission, reception and forwarding capability at short message between SMG and the SP, between SMG and the SMG, and the synchronizing function of routing table between SMG and the GNS.GNS is responsible for the management of system's route with synchronously.This system provides a powerful support platform for SMS value-added service.
The design of SMG is based on value-added service platform, and the SGIP agreement is used to realize communicating by letter between networking between the SMG and SMG and the SP, and GNS is used for realizing route unified management in the net.System global structure figure as shown in Figure 3, TSMG (Trans-Short Message Gateway wherein, the tandem short messaging gateway) closes the equipment of establishing for SMG and GNS, notion by the traditional communication net, it is GNS, make the SMG networking on plane become hierarchical network, the short message service networked system is become be easy to the carrier class Operation Network of managing and expanding with route tissue.
Network organization behind the introducing short messaging gateway as shown in Figure 4, as seen from Figure 4, SMG does not replace SMSC fully, but has added one deck short messaging gateway layer in traditional network organization again, between SP and SMSC.SP communicates by letter with proprietary protocol (SGIP agreement) with SMG, still adopts the SMPP protocol communication between SMG and the SMSC.Also interconnected between each SMG by the SGIP agreement.Each SMG can insert a plurality of SP, also can link with a plurality of SMSC simultaneously.In fact SMG is divided into two the function of the SMSC in the conventional network structure, duty-bound still the realizing of interface function with mobile network by SMSC, but SMSC directly inserts the function of SMS value-added service then have been replaced fully by SMG, and SMG expanded this function, increased functions such as service management, charging.
The right discriminating system of SMS value-added service of the present invention is realized on the basis of this business networked system just.Right discriminating system of the present invention comprises: short messaging gateway SMG is used to receive and transmit the MT short message service (SMS) data by the user terminal reception that service provider SP sends, and the paying side's Subscriber Number that belongs to this short messaging gateway SMG is carried out authentication; AUC, be used to carry out charge accounting, and receive the authentication request that short messaging gateway SMG sends, and as the paying side of short message user with the reception user is inconsistent and the side of paying user does not carry out authentication to the side of paying user when being not service provider SP, and the loopback authentication information.This AUC can be used as a functional module and is integrated among this short messaging gateway SMG.
As shown in Figure 5, show operation flow schematic diagram after the present invention has introduced short messaging gateway SMG.As shown in the figure, for the MO operation flow, when user terminal passes through the SMSC of the short message service center initiation service request of its ownership, short messaging gateway SMG by user ascription area transmits this user's service request to the short messaging gateway SMG that service inserts ground, inserts ground SMG by this service and submits this user's service request to service provider SP to.In like manner,, insert ground SMG issuing service information to service, insert ground SMG by this service then and transmit business information, by user ascription area SMSC business information is issued to the user at last to user ascription area SMG by this service provider SP for the MT operation flow.MO is not necessarily relevant with the MT operation flow among Fig. 5, also promptly not necessarily can trigger a MT flow process by a MO flow process.
And as shown in Figure 6, showing the main flow process of authentication of the present invention, authorizing procedure of the present invention mainly is to utilize the above-mentioned professional networked system of the present invention to realize that it mainly comprises the steps:
(1) SP sends to SMG with the MT business datum;
(2) SMG judges that the paying side of this message is not SP or called subscriber and this SMG of paying customer's number home, and then SMG sends authentication request to AUC;
(3) AUC's loopback authentication information;
(4) if authentication is passed through, then MT message normally issues; If authentication by (as subscriber arrearage shut down, from net etc.), SMG notice SP then.
As Fig. 6, in the present invention, when the MT short message is by third-party charging, for example cellphone subscriber A registers the back and gives cellphone subscriber B requesting song on the webpage of SP, and pay by cellphone subscriber A, SMSC just can only be finished by short messaging gateway the authentication inspection of the side of paying cellphone subscriber A so only to cellphone subscriber B authentication.In this case, this MT short message should send from the short message service center of the side's of paying ownership place, and finishes authentication operations by the AUC of paying side's ownership place.If AUC's authentication is passed through, short messaging gateway is about to this MT short message and is sent to SMSC, otherwise short messaging gateway no longer sends this short message, sends the reason that an order notice SP sends failure simultaneously.
Short messaging gateway and AUC realize authentication functions by tcp/ip communication.AUC is a server end, and short messaging gateway is a client.Authentication process is finished the authentication to a phone number.Authentication step is as follows:
(1) information gateway is set up TCP/IP with AUC and is connected;
(2) information gateway sends the authentication order to AUC;
(3) short messaging gateway receives Authentication Response from AUC;
(4) short messaging gateway disconnects with AUC and being connected.
Below, will further specify the present invention in conjunction with the authentication order.Authentication message of the present invention is mainly used in SMG and to the charging center request cellphone subscriber is carried out authentication.Authentication operations is replied (table 2) by CheckUser order (table 1) and CheckUser_Resp and is formed.UserRpt order (table 3) and UserRpt_Resp reply (table 4) and are used to finish to after the subscription authentication, send order by SMG to the SP that the cellphone subscriber registered, and the cellphone subscriber is carried out state configuration.
The grammer of CheckUser order:
Field | Length (byte) | Type | Explanation |
UserName | 16 | Text | The user name that the charging center is distributed to SMG |
Passowrd | 16 | Text | Password with the user name correspondence |
UserNumber | 21 | Text | Treat the phone number of authentication, add " 86 " country origin sign before the phone number |
Reserve | 8 | Text | Keep, expansion is used |
Table 1:CheckUser message format
The grammer that CheckUser Resp replys:
Field | Length (byte) | Type | Explanation |
Result | 1 | Integer | Authenticating result 0: authentication success other: error code |
Status | 1 | Integer | User Status 0: nullify; 1: defaulting subscriber; 2: normal |
Reserve | 8 | Text | Keep, expansion is used |
Table 2:CheckUser_Resp message format
The grammer of UserRpt order:
Field | Length (byte) | Type | Explanation |
SPNumber | 21 | Text | The access code of SP |
UserNumber | 21 | Text | Phone number to be configured adds " 86 " country origin sign before the phone number |
UserCondition | 1 | Integer | 0: nullify; 1: defaulting subscriber; 2: recover normal |
Reserve | 8 | Text | Keep, expansion is used |
Table 3:UserRpt message format
The grammer that UserRpt_Resp replys:
Field | Length (byte) | Type | Explanation |
Result | 1 | Integer | UserRpt command execution results 0: the success other: error code |
Reserve | 8 | Text | Keep, expansion is used |
Table 4:UserRpt_Resp message format
The present invention is by above-mentioned authorizing procedure, and further for the short message service networked system provides complete authentication mechanism, thereby the system that guaranteed uses professional user to carry out authentication to various forms.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.