A kind of method of controlling the short message hop count
The present invention relates to a kind of technology of controlling the short message hop count, refer to a kind of method of controlling the short message hop count by the parameter of transmitting introducing lifetime counting (TTL) in the short message signaling especially.
Mobile communication technology is along with mobile network's the fast development and the growing develop rapidly of personal communication demand, and is current, mobile communication just by second generation digital mobile communication system to the evolution of third generation digital mobile communication system.Short Message Service is very important business in the mobile communication, and it provides a lot of convenience and attractive value-added service for mobile subscriber's use.In short message service (SMS) standard of 3G (Third Generation) Moblie collaborative project (3GPP), business to short message has been done relevant regulations: mobile switching centre (MSC) or general packet service business support node (SGSN) can be forwarded to short message corresponding SMS service center (SMSC), are forwarded on the corresponding apparatus by SMSC again.But, because other equipment, as: home location register (HLR), Service Control Point can instruct MS C or SGSN the address that it receives the destination is shifted, such as: travelling carriage A (MSA) transfers to travelling carriage B (MSB), and MSB transfers to MSA, so just might cause endless loop.
At present in the process of short message transfer business realizing, without any software or the hardware measure hop count that can monitor or control short message, just short message is forwarded on other equipment simply, so, just can not avoid the appearance of endless loop, so after the short message forwarding is absorbed in endless loop, system also is unable to find out current short message and transmits residing state, this just makes to have the operation forever in system of a large amount of short messages, consume system resources, influence the regular traffic operation of system, and then cause system crash.
In view of this, main purpose of the present invention is to provide a kind of method of controlling the short message hop count, makes system can avoid the endless loop phenomenon occurring in transfer process, and then prevents system crash, also can guarantee to reduce simultaneously the unnecessary consumption of system resource.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of controlling the short message hop count, key are that this method comprises the steps: at least
A. system is provided with a lifetime count parameter TTL in transmitting short message signaling message;
B. do you after SMS service center is received the short message signaling of mobile switching centre or the forwarding of general packet service business support node, judge that TTL is greater than 0?
If c. TTL is greater than 0, then the value of TTL subtracts 1, and SMS service center receives short message with institute and issues purpose mobile switching centre or general packet service business support node by transmitting short message signaling; Otherwise SMS service center stops the forwarding of this short message.
Wherein, set when the value of described lifetime count parameter TTL can be submitted short message to by travelling carriage, set in the time of also can submitting short message to by outside Short Message Entity.
Described outside Short Message Entity is mobile phone, manual board, automatic station or other equivalent equipment.
Comprise the following steps: further that in step b after SMSC received short message, if do not set the value of TTL in the short message signaling, then the value of TTL was set by SMSC, this value is relevant with the configuration parameter of SMSC program.
By technique scheme as can be seen, key of the present invention is: adopt short message transfer TTL mechanism, just refer to introduce the TTL parameter in transmitting short message signaling, SMSC can stop the too much short message of hop count by the judgement to this parameter.
In sum, the method of control short message transfer number of times provided by the present invention, be in the transmitting signaling of short message, to have introduced the TTL parameter, SMSC is by the judgement to the TTL parameter value, or directly the parameter TTL of designated value is not set, control by this owing to system's endless loop that short message causes is transmitted in circulation, so can effectively avoid by transmitting the system crash that short message caused, improved the reliability of system, also reduced simultaneously because the short message forwarding problems causes the consumption of system resource, reduced the unnecessary waste of resource.
In addition, the TTL mechanism that the present invention introduced also can be placed on the switch of MSC, but so needs to change MSC switch or SCP, all bigger influence can be arranged to on-line apparatus and operator.And method of the present invention has just been revised SMSC, and the structure of message parameter reaches corresponding handling process is changed a little, and need not online hardware device is done big change, and the whole system structure does not have big variation, and therefore, both simple and flexible was easy to again realize.
Following conjunction with figs. is further described as follows to detailed technology content of the present invention:
The structural representation that Fig. 1 transmits for short message;
Fig. 2 is for transmitting successful signaling process schematic diagram in the short message repeating process of the present invention;
Fig. 3 is the signaling process schematic diagram of retransmission failure in the short message repeating process of the present invention;
Fig. 4 is the process chart of short message repeating process of the present invention.
Referring to shown in Figure 1, the structural representation that Fig. 1 transmits for short message.Certain user A belongs to the user in MSC1 or the SGSN1 control range, when he sends SMS message to user B, and user B is when being user in another regional MSC2 or the SGSN2, MSC1 or SGSN1 under the user A at first issue SMS service center with this short message, be transmitted to MSC2 or SGSN2 by SMS service center again, MSC2 or SGSN2 are transmitted to this short message corresponding user B more then.
Fig. 2~Fig. 4 has provided the inventive method and short message has been transmitted the signaling and the process chart of control.As shown in Figure 4, method of the present invention comprises the steps: at least
1) system's increase in the data structure of transmitting short message signaling message is provided with the TTL parameter, and the parameter group of this message became originally:
{ Validity-Period; (effective period)
Service-Centre-Time-Stamp; (service centre's time tag)
Protocol-Identifier; (protocol identifier)
More-Messages-to-Send; (more message send sign)
Priority; (priority)
Messages-Waiting; (Messages-Waiting)
Alert-SC。(reminding short messages center) } message parameter of the present invention forms and becomes:
{ TTL; (lifetime counting)
Validity-Period; (effective period)
Service-Centre-Time-Stamp; (service centre's time tag)
Protocol-Identifier; (protocol identifier)
More-Messages-to-Send; (more message send sign)
Priority; (priority)
Messages-Waiting; (Messages-Waiting)
Alert-SC。(reminding short messages center) }
2) SMSC is after receiving the forwarding short message signaling of MSC or SGSN, is the value of at first checking TTL parameter in this signaling greater than 0?
3) if the TTL parameter value greater than 0, then the value of TTL subtracts 1, SMSC issues purpose MSC or SGSN with this short message by transmitting short message signaling, as shown in Figure 2.After purpose MSC or SGSN receive this short message and message signaling, at first to judge whether to continue to transmit, if then continue to transmit this short message; If not, then finish the short message forwarding process.
If the TTL parameter value is smaller or equal to 0, then SMSC sends one and transmits the short message failure to MSC or the SGSN of making a start, and stops the forwarding of this short message then, as shown in Figure 3.
Ttl value recited above can be specified when travelling carriage or other Short Message Entities are submitted short message to, and this Short Message Entity is meant: mobile phone, manual board, automatic station or have other equipment or the system of equivalent function.The setting of this ttl value is according to forwarding strategy, and is relevant with applicable cases, in general is no more than three times.If SMSC after receiving short message, finds the value that it does not specify TTL, then SMSC should specify the value of TTL, and this value can be obtained by the configuration parameter of SMSC program, and this configuration parameter is relevant with the software of SMSC.
As from the foregoing, the present invention controls the short message hop count by reinforcement TTL parameter, and is promptly simple and convenient, solved again owing to transmitting the wrong big problem that causes system crash.