Background technology
At present, in the process of transmitting of short message, though the business order of encapsulation short message is a reliable transmission between two direct connections (direct connection of transport layer) node, it is a kind of connection-oriented service, but it then is a kind of connectionless service that short message arrives final destination (service provider SP or cellphone subscriber) from promoter's (cellphone subscriber or service provider SP).Yet mobile operator will Short Message Service be defined as the carrier-class service, must take some measures the reliability that strengthens this no Connection Service on the service mechanism of short message again.In the mobile network side, when short message arrives user's terminal, no matter success or not, switching center must give acknowledge message of SMSC, thisly can be called the datagram service that affirmation is arranged.In the data network side, in the SMPP agreement, need acknowledge message (also claiming status report) to determine by ESME (External Short Message Entity refers to the Short Message Entity outside mobile network, generally provides the service provider SP of SMS value-added service) oneself.
And other are with in the quasi-protocol, have adopted the interaction flow of synchronous mode at SP in the communication process of SMSC through short messaging gateway, as shown in Figure 1, show the synchronous mode interaction flow that SP submits short message to.In the synchronous mode interactive mode, no matter message is transmitted through several nodes, response all must be waited until after message is received by destination node just can be replied to the initiation point, does the effect of having expanded response like this, though guaranteed reliability in theory, has drawback.In Fig. 1, SP sends an order, be through just receiving response for a long time, and this section in the period SP what all can not do, so promptly influenced efficient, and can not inform in fact still whether the SP end user has enjoyed service.
And in SMPP agreement and other similar agreements, sequence number is the respective flag between the replying of every message and it, and the mode that its produces is to be that step-length adds up in proper order since 0 with 1, recycles, and promptly resets after its numerical value is added to 0XFFFFFFFF.The layout sequence number can only be used for simple network configuration like this, and promptly a piece of news directly arrives destination node from start node, if need the forwarding of intermediate node therebetween, that will cause confusion.Thereby sequence number only can be at the unique relatively packet of sign of communication aspect in SMPP agreement and other similar agreements, and business information that can not a data collation package of unique expression, for this reason, SMPP agreement and other the similar agreements field of a message id by name of all in carrying the message of business information, having annotated.In the SMPP agreement, message id can only be generated by short message service center, and to its algorithm definition, only regulation is decided in its sole discretion by short message service center in the agreement; And other can only be generated by short messaging gateway with quasi-protocol regulation message id, but because of its short messaging gateway needs networking, so algorithm need be unified: adopt the integer of 64 (8 bytes), be divided into three sections:
(1) time (from being accurate to branch by the moon) 64~27 (bit);
(2) short message service center's number 26~17 (bit) is only filled in last 6 100500 as 13000100500;
(3) 16~1 (bit) orders of sequence number add up, and step-length is 1, recycles.
The message id that generates by above algorithm does not indicate the source node that certain bar business information is initiated, so forward node or destination node can't be informed source node with the state of this business information.
Therefore, though existing SMS service system can guarantee the reliability of communication from the communication aspect, but being mobile operator, SMS value-added service offers user's telecommunications service, professional two ends are SP and user, and prior protocols does not consider how to guarantee the end-to-end reliability of short message service in design process, thereby can not provide the carrier-class reliability services for the user.And the response method that existing short message sends has not only influenced system works efficient, wasted the disposal ability of software, and because the problem of sequence number generating algorithm, fundamentally restricted the improvement of mode that short message is responded, whether reliability that can not guarantee agreement can not enjoy service from fact informing the SP end user.(inventor can partly further remark additionally to the defective and the above-mentioned background technology contents of existing response method)
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of response method of short message transmission, purpose is to overcome the defective of above-mentioned prior art, guaranteed the end-to-end reliability that business information is transmitted, for the user of SMS value-added service provides the carrier-class reliability services, and by in the short message process of transmitting, makeing mistakes or when successfully arriving the end user, message feedback Report of Discrepancy or status report are answered in sending it back of trigger-type, thereby the real state with business information is informed source node, to the charging when inferior business also must be just can carry out after the business success, and then guarantees reliability professional and charging.
To achieve these goals, the invention provides the response method that a kind of short message sends, its characteristics are, be applied to by service provider SP, the SMSC of short message service center, gateway router GNS, and in the short message service networked system of the short messaging gateway SMG of the networking between this service provider SP and the SMSC of short message service center composition, by be the short message of every transmission distribute one unique in system, and unique relatively in time sequence number, and arrive the process of transmitting of point of destination from initiating point at short message, when makeing mistakes in the transmission course or message when successfully arriving, to this short message the node of process send one and receive the response in the mode of order, feedback Report of Discrepancy or status report are given and are initiated point.
The response method that above-mentioned short message sends, its characteristics are that the response method of this short message in transmission course comprises:
Submitting to by the user in the MO process of short message, after short message arrives user ascription area short messaging gateway SMG, be forwarded in the transmission course of other short messaging gateways SMG or service provider SP at this short message, as long as can't pass on next node, then receive the response and inform the user by short messaging gateway SMG initiation one;
In MT course by receiving short-message of user, the short message that service provider SP issues is before arriving the SMSC of short message service center, short messaging gateway SMG fails in processing messages or repeating process, then receives the response by one and gives a last node until source node Report of Discrepancy;
After short message arrives the SMSC of short message service center, the SMSC of short message service center then informs the short messaging gateway SMG of direct connection with it by the form of status report with the state of short message issuing, and this short messaging gateway SMG gives a last node until source node status report by receiveing the response again.
The response method that above-mentioned short message sends, its characteristics are, the sequence number of this short message is produced by the order source node, and it comprises three parts, and every part is 32 integers, first represents to order the unique number of source node, second portion is represented the date and time that service request produces, and third part is by 0 beginning, end-around carry, zero clearing again after carry has expired restarts counting.
The response method that above-mentioned short message sends, its characteristics are that this sequence number of receiveing the response is identical with the sequence number of its corresponding order.
The response method that above-mentioned short message sends, its characteristics are, all communication nodes of this short message service networked system, comprise that service provider SP, the SMSC of short message service center, gateway router GNS and short messaging gateway SMG have a unique numeral number, different service provider SP, the SMSC of short message service center, gateway router GNS and short messaging gateway SMG numbering are inequality.
The response method that above-mentioned short message sends, its characteristics are, the form of the second portion of this sequence number is metric mmddhhmmss, represent respectively month, day, hour, minute, second, and the holding time of any service request in the system should be above 1 year.
Beneficial effect of the present invention is by makeing mistakes in the short message process of transmitting or when successfully arriving the end user, message feedback Report of Discrepancy or status report are answered in sending it back of trigger-type, thereby the real state with business information is informed source node, source node can determine the short message that the state that whether resends is made mistakes when receiving Report of Discrepancy or unsuccessful status report, and therefore gateway can not guarantee reliability professional and that charge to chargeing when time service request when receiving success state report.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Embodiment
Shown in Fig. 2,3, SMS value-added service networked system of the present invention has another name called at communication system, it is by SMG (Short Message Gateway, 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 the SGIP agreement, 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 2, 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.
SMSC only needs to link with its original SMPP agreement and SMG, and existing network has moved professional SMSC not as any change like this, so system's construction period can not have any impact to the short message service operation.When system design, take into full account simultaneously the uniformity of charge accounting, in the gateway construction, also built short message service networking charge accounting platform.
SGIP agreement among the present invention is to be that source derives from SMPP, but the system configuration of using because of its is than the system configuration complexity of SMPP protocol application, thereby protocol contents and SMPP agreement have no small difference.The SGIP agreement is more rigorous with quasi-protocol with respect to other, has guaranteed the high efficiency of operation flow and the accuracy of charging.
SGIP agreement of the present invention has been improved connected mode in the dedicated bearer mode.Set up mode in connection and broken through IP connection " the short connection " (HTTP connection commonly used, distribute packet and promptly disconnect connection) with the notion of " long be connected " (communicating pair is set up permanent connection), the pluses and minuses of comprehensive these two kinds of connected modes have proposed a kind of new connected mode---and " length connection ", after promptly connecting, as long as transfer of data is arranged, just keep connecting, just disconnect connection when having only within a certain period of time free of data transmission continuously, improved the efficient of transfer of data greatly.
SGIP agreement of the present invention is an application layer protocol, and has introduced concept hierarchy when design, and agreement is divided into bearing bed agreement and operation layer agreement two parts.Connected mode between bearing bed protocol definition communication node, communication port, retransmission mechanisms etc. are promptly stipulated mainly in the communication aspect how communicating pair is set up with disconnecting and are connected, in a connection with which kind of form pass-along message etc.And the operation layer agreement mainly comprises message definition etc., and the message of operation layer encapsulates according to the mode of bearing bed protocol definition.
In addition, the SGIP agreement is the interface protocol that is used between SP and short messaging gateway, GNS and short messaging gateway and the short messaging gateway, has also considered the otherness of three kinds of interfaces when the design connected mode.The developer of short messaging gateway and GNS should be the programmer who is proficient in communication software, thus the The design of communication of these two interfaces get can complexity a bit; And SP is the service provider, their speciality in the exploitation value-added service, the ability of exploitation communication software perhaps a little less than, especially for some by the information source unit of providing development and SP or little SP of coming are all the more so.Based on this consideration, except that special-purpose efficiently SGIP bearing mode is provided, also provide general HTTP bearing mode at bearing bed.The communication mode of introducing HTTP in the SGIP agreement is in order to reduce the threshold that SP inserts.The HTTP bearing mode only is applicable in the communicating by letter of SP and short messaging gateway SMG.The characteristics of this kind mode are not have to connect, and a request is only handled in promptly each connection.The intact client's of server process request, and after receiving the replying of client promptly disconnects and connecting.The mode of the authorization identifying of the URL of the authentication employing HTTP that connects, the message that does not need special connection to authenticate.And at transmission, reception and the forwarding capability of short message between SMG and the SP, between SMG and the SMG, and the synchronizing function of routing table between SMG and the GNS, then can realize by special-purpose SGIP mode.
The present invention is when adopting special-purpose SGIP mode to carry, and communicating pair is the client and server end each other, promptly work as either party and can initiate connection request and service request, and the promoter of connection request and service request is consistent.When client will send service request, initiatively connect to server end, send service request to server end then, and reception is replied; Server end receives service request from client, echo reply.Connect after the foundation, client can send a plurality of service requests continuously.Service request sends and receives all reply after, client should initiatively disconnect connection.But, service request and reply between the time interval maximum is arranged, if the time of wait acknowledge surpasses maximum latency, then require client to retransmit this time service request; And the service request number of wait acknowledge also should have a upper limit.Connect the long-time free time if server end detects one, can initiatively disconnect this connection.If desired, client can be set up a plurality of connections to a server end simultaneously.As shown in Figure 4, show the architectural schematic of short messaging gateway SMG of the present invention, in this networked system between SMG and the SP, between SMG and the SMG, and between SMG and the GNS, equal client and server ends each other.
In the data network side, next bar order of most applications can be from initiating the correct point of destination that arrives of point, the therefore disposal ability of having wasted software greatly by the synchronous mode interactive mode.Consider that from another angle the reliability of guarantee agreement mainly is when message is made mistakes in transmittance process, Report of Discrepancy notice information source can be arranged.This Report of Discrepancy feeds back to information source in the mode of order rather than in the mode that responds.Such control command is called the Report order in the SGIP agreement.In above-mentioned short message service networked system, the response method that short message of the present invention sends is ordered by this Report just and is realized response that short message sends, it mainly is by distribute unique in system, an and unique relatively in time sequence number for the short message of every transmission, and arrive the process of transmitting of point of destination from initiating point at short message, when makeing mistakes in the transmission course or message when successfully arriving, to this short message the node of process send one and receive the response in the mode of order, feedback Report of Discrepancy or status report are given and are initiated point.
Report order is a kind of report of trigger-type, in the process of message transmission, make mistakes or message just may produce such report when successfully arriving the end user, in this way, information source can not be initiatively and can only be passive know state after message sends.
Shown in Fig. 5,6, show the short message transmission flow after the present invention introduces short messaging gateway SMG, gateway router GNS respectively.As shown in Figure 5, 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, insert ground SMG by this service and submit this user's service request to service provider SP to, at this moment, this user ascription area SMG and service insert between the ground SMG, this service inserts the mode that i.e. employing between ground SMG and the service provider SP the present invention is based on the SGIP agreement and insert.In this access procedure, this user ascription area SMG inserts ground SMG client and server end each other with service, this service inserts ground SMG and service provider SP client and server end each other, all can connect and inserts by the above-mentioned cut-in method of the present invention between them.In like manner, for the MT operation flow, this service of insert between the ground SMG in this service provider SP of issuing service information and service, transmitting business information inserts between ground SMG and the user ascription area SMG, also can adopt the above-mentioned cut-in method of the present invention to connect and inserts.
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.
As shown in Figure 6, show the short messaging gateway system business process that the present invention introduces GNS.Similar with the described flow process of Fig. 5, between user ascription area SMG and the gateway routing server GNS, gateway routing server GNS and service inserts between the ground SMG, service inserts and also can adopt the above-mentioned cut-in method of the present invention to carry out the miscellaneous service flow process between ground SMG and the service provider SP to handle, do not repeat them here.
Among Fig. 6 with 4 short messaging gateways of figure notation to GNS inquiry route and the step that obtains feedback be not in each operation flow all must through, only when can not find route in the routing table of short messaging gateway in self maintained, just have.
Shown in Fig. 5,6, short message of the present invention in different transmission courses, its response method difference:
Submitting to by the user in the MO process of short message, after short message arrives user ascription area short messaging gateway SMG, be forwarded in the transmission course of other short messaging gateways SMG or service provider SP at this short message, as long as can't pass on next node, then receive the response and inform the user by short messaging gateway SMG initiation one;
In MT course by receiving short-message of user, the short message that service provider SP issues is before arriving the SMSC of short message service center, short messaging gateway SMG fails in processing messages or repeating process, then receives the response by one and gives a last node until source node Report of Discrepancy;
After short message arrives the SMSC of short message service center, the SMSC of short message service center then informs the short messaging gateway SMG of direct connection with it by the form of status report with the state of short message issuing, and this short messaging gateway SMG gives a last node until source node status report by receiveing the response again.
In the present invention, by being the sequence number of every distribution of messages one unique in system (being unique relatively in time), so that information source receives after the Report order that what can know its report according to this sequence number is the state of which bar transmitted message.
The uniqueness of the sequence number sign a piece of news in the SGIP agreement does not exist only between two direct connection nodes, more be present in the whole short messaging gateway system, because one business information can not packed by secondary in repeating process, so sequence number also can business information of unique identification.Reach above purpose, the layout of sequence number and algorithm are very crucial.
As shown in Figure 7, the sequence number of SGIP agreement is divided into three parts, every part is 32 integers, first represents to order the numbering of source node, in whole gateway system, all communication nodes (short messaging gateway, GNS, SP and SMSC) all have a unique numeral number, and different SP or SMSC or short messaging gateway or GNS numbering can not be identical; Second portion is represented the date and time that service request produces (holding time of any service request in the gateway system not should above a year), form is metric mmddhhmmss, such as the service request that produce 20: 32: 25 on the 20th November, its second portion is the decimal system 1120203225; Third part begins by 0, end-around carry, and zero clearing again after carry has expired restarts counting.Just because of comprised the unique number of service request source node in the sequence number, after making that just a business information any one node in transmittance process is made mistakes, source node can obtain the notice of makeing mistakes, thereby whether decision will retransmit this business information, has guaranteed the reliability that business information is transmitted.
The transmission of message between SP and SMSC is the mode that adopts similar relay, every message and corresponding replying only represent whether this time message sends to the result of next node correct, and can't illustrate whether the business information that this message will be transmitted correctly arrives the final destination.Such as, SP sends a short message to some mobile phones, realizes by send a Submit order to local short messaging gateway, and subsequently, SP can receive a Submit_Resp response from short messaging gateway.But, even replying expression Submit order correctly receives, do not represent that the short message in the Submit order has sent on the mobile phone yet, and only represent that this short message has been sent to short messaging gateway, short messaging gateway will be done next step processing, perhaps send to SMSC, perhaps be routed to other short messaging gateway, finally send on the mobile phone by purpose SMSC.Mistake appears in any one link in the middle of this, and the continuation of system's meeting termination message sends, and by telling the reason that message is made mistakes to the message node transmission Report order of process.Certainly, Report orders except transmitting the Report of Discrepancy, can also transmit successful status report as required.
The Report of Discrepancy of Report order produces in following situation:
(1) destination address of message is unreachable, and this wherein has three kinds of situations again: a kind of is that routing table exists route and message route correct but node that be routed temporarily can not provide the situation of service; A kind ofly be that there is route in routing table but situation that the message route is made mistakes; At last a kind of is exactly not have route in the routing table.
(2) when the destination of message is a cellphone subscriber, short messaging gateway in some cases should to determining whether should send this message after its authentication again, if authentication finds that the user haves no right to use this business, so just should there be Report of Discrepancy to feed back to transmit leg.
(3) last big class is the Report of Discrepancy of short message when arriving behind the SMSC reason because of the mobile network side and can't arrive the user.
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.