WO2014146394A1 - Method and apparatus for controlling traffic of short message service message call - Google Patents

Method and apparatus for controlling traffic of short message service message call Download PDF

Info

Publication number
WO2014146394A1
WO2014146394A1 PCT/CN2013/082004 CN2013082004W WO2014146394A1 WO 2014146394 A1 WO2014146394 A1 WO 2014146394A1 CN 2013082004 W CN2013082004 W CN 2013082004W WO 2014146394 A1 WO2014146394 A1 WO 2014146394A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
segment
message
messages
time period
Prior art date
Application number
PCT/CN2013/082004
Other languages
French (fr)
Chinese (zh)
Inventor
李正祥
丁俊
莫嫣
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014146394A1 publication Critical patent/WO2014146394A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices
    • H04W88/184Messaging devices, e.g. message centre

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a short message call flow control method and apparatus.
  • an operator In the process of terminating a short message service, an operator usually allocates a segment according to a region, and controls message traffic of a base station delivered to a region by controlling message traffic of the segment to reduce the impact of the message on the base station and prevent The base station is overloaded and causes a flaw.
  • SPs service providers
  • Embodiments of the present invention provide a short message call flow control method and apparatus for effectively controlling short message call traffic balance and avoiding base station load overload.
  • the embodiment of the present invention provides a short message call flow control method, including the steps of: receiving a short message sent by a mobile switching center or a service provider; querying a number segment of the short message, and counting the number segment of the short message at the current The number of actual delivery messages in the time period; determining whether the number of actual delivery messages in the current time period of the short message belongs to the traffic threshold of the number segment of the short message; When the number of actual delivery messages is less than the traffic threshold of the number segment to which the short message belongs, the short message is delivered to the base station controller corresponding to the segment of the short message.
  • the method further includes: When the number of actual delivery messages of the short message belongs to the current time period is greater than or equal to the traffic threshold of the number segment of the short message, the short message is cached; when the next time period arrives, the short message belongs to The number of actual delivery messages of the segment in the next time period; determining whether the number of actual delivery messages of the number segment of the short message in the next time period is less than the traffic threshold of the number segment to which the short message belongs;
  • the short message includes a high priority message and a normal message; the step of the actual delivery message number of the number segment of the statistical short message in the current time period specifically includes: counting the number segment of the short message belongs to the current time period The number of actual delivery messages for high priority messages and the actual number of delivery messages for normal messages.
  • the step of determining whether the number of actual delivery messages of the short message belongs to the current time period is less than the traffic threshold of the number segment of the short message includes: when the short message that arrives is a high priority And determining, by the message, whether the actual number of delivery messages of the high priority message is smaller than a difference between a maximum traffic threshold of the number segment of the short message and an actual delivery message of the common message; when the short message arrives is normal And determining, by the message, whether the actual number of delivery messages of the ordinary message is smaller than a common message threshold of the number segment of the short message, and less than a maximum traffic threshold of the number segment of the short message and an actual delivery of the high priority message.
  • the normal message threshold of the number segment to which the short message belongs is obtained by the following steps: counting the number of to-be-delivered messages T1, ⁇ 2 of the high priority message in the N time periods before the current time period
  • the method further includes: When the short message delivery fails, determining whether the delivery error code of the short message is a home location register error code; if yes, reducing the number of actual delivery messages of the short message belonging number segment in the current time period by one, Cache the short message, and return a step of counting the actual number of delivery messages of the short message belonging to the current time period; if not, buffering the short message, and returning statistics of the short message belonging to the current segment The step of actually delivering the number of messages within the time period; this loop.
  • the embodiment of the present invention further provides a short message call flow control apparatus, including: a receiving module, configured to receive a short message sent by a mobile switching center or a service provider; and a query module configured to query a number segment of the short message; a module, configured to count the number of actual delivery messages in the current time period of the short message belonging segment segment; the determining module, configured to determine whether the actual delivery message number of the short message belonging segment segment in the current time period is smaller than the short message a traffic threshold of the number segment; the delivery module, configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment period in the current time period is less than the traffic threshold value of the short message belonging segment segment, The short message is delivered to the base station controller corresponding to the segment of the short message.
  • a receiving module configured to receive a short message sent by a mobile switching center or a service provider
  • a query module configured to query a number segment of the short message
  • a module configured to count the number of actual delivery messages in the
  • the short message call flow control device further includes a cache module, configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment segment in the current time period is greater than or equal to the short message belonging number segment The short message is cached; the statistics module is further configured to: when the next time period arrives, count the actual number of delivery messages of the short message belonging segment segment in the next time period; the determining module is further configured to And determining whether the number of actual delivery messages of the number segment of the short message in the next time period is smaller than the traffic threshold of the number segment of the short message.
  • a cache module configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment segment in the current time period is greater than or equal to the short message belonging number segment The short message is cached; the statistics module is further configured to: when the next time period arrives, count the actual number of delivery messages of the short message belonging segment segment in the next time period; the determining module is further configured to And determining whether the number of actual delivery messages of the number segment
  • the short message includes a high priority message and a normal message;
  • the statistics module is specifically configured to: The actual number of delivery messages of the high priority message in the current time period and the actual delivery message number of the ordinary message are counted.
  • the determining module is specifically configured to: when the short message that arrives is a high priority message, determine whether the actual number of delivery messages of the high priority message is smaller than a maximum traffic threshold of the number segment of the short message.
  • the statistics module is further configured to: count the number of to-be-delivered messages T1, ⁇ 2 of the high priority message in the N time periods before the current time period
  • the short message call flow control device further includes a feedback module, wherein the determining module is further configured to: determine, when the short message delivery fails, whether the delivery error code of the short message is a home location register
  • the statistic module is further configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, the number of actual delivery messages of the short message belonging segment segment in the current time period
  • the feedback module is configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, buffer the short message, and feed the short message to the statistics module And when the determining module determines that the delivery error code of the short message is not a home location register error code, directly buffering the short message, and feeding back the short message to the statistics module.
  • the control of the short message call flow is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively
  • FIG. 1 is a flow chart of a first embodiment of a short message call flow control method according to the present invention
  • FIG. 2 is a flow chart of a second embodiment of a short message call flow control method according to the present invention
  • FIG. 4 is a flowchart of a fourth embodiment of a short message call flow control method according to the present invention
  • FIG. 5 is a fifth embodiment of a short message call flow control method according to the present invention
  • FIG. 6 is a schematic structural diagram of a first embodiment of a short message call flow control apparatus according to the present invention.
  • FIG. 7 is a schematic structural diagram of a second embodiment of a short message call flow control apparatus according to the present invention.
  • a schematic structural diagram of a third embodiment of a call flow control device The embodiments of the present invention will be further described with reference to the accompanying drawings. The specific embodiments described herein are merely intended to explain the present invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a first embodiment of a short message call flow control method according to the present invention.
  • the short message call flow control method mentioned in this embodiment includes the following steps: Step S10: Receive a short message sent by a mobile switching center or a service provider; when sending a short message, the user sends the short message to the mobile switching center, and is moved by the mobile terminal.
  • the switching center submits to the short message center; the service short message sent by the service provider is submitted by the service provider to the short message center by using the SMPP protocol.
  • Step S20 Query the number segment of the short message; an MSC area may be divided into multiple BSC number segments, and the short message is distributed to the base station corresponding to the segment number according to the number of the receiver for delivery and transmission. For example, divide the area into two MSC areas, each MSC area negative Responsible for two BSC segments, there are a total of 4 BSC segments.
  • the short message center sets the maximum traffic threshold for each segment in advance. For example, set the number of segments 1 for 100 segments/second and the segment segment 2 for 200 segments/second. Set 300/sec for segment 3 and 400/sec for segment 4.
  • Step S30 counting the actual number of delivery messages of the short message belonging segment period in the current time period; when a short message arrives, the short message center adds 1 to the actual delivery message number in the current time period.
  • Step S40 determining whether the number of actual delivery messages of the short message belonging to the current time period is less than the traffic threshold of the number segment of the short message; in order to control the traffic of the base station controller corresponding to each number segment, if the short message arrives at the traffic Within the threshold range, the delivery operation is performed. If the short message that arrives exceeds the traffic threshold, it is not sent temporarily, effectively preventing the base station controller from being overloaded.
  • Step S50 When the number of actual delivery messages of the short message belonging to the current time period is less than the traffic threshold of the number segment of the short message, the short message is delivered to the base station controller corresponding to the number segment of the short message.
  • the control of the short message call traffic is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively avoided.
  • FIG. 2 is a flowchart of a second embodiment of a short message call flow control method according to the present invention.
  • the embodiment is based on the embodiment shown in FIG. 1.
  • the method further includes: Step S61: When the number of actual delivery messages of the short message belonging to the current time period is greater than or equal to the traffic threshold of the number segment of the short message , the short message is cached; Step S62, the next time period arrives, and the process returns to step S30.
  • Step S61 When the short message that arrives in the current time period exceeds the traffic threshold range, the short message is temporarily not sent, and when the next time period arrives, the actual number of delivery messages of the short message belonging segment in the next time period is re-stated.
  • FIG. 3 is a flowchart of a third embodiment of a short message call flow control method according to the present invention.
  • the embodiment is based on the embodiment shown in FIG. 2, and the step S30 specifically includes: Step S31, counting the actual number of delivery messages of the high priority message and the actual delivery message of the ordinary message in the current period of the short message belonging segment segment; To ensure that important messages are delivered preferentially, the messages need to be classified, and the short messages are classified into high-priority messages and ordinary messages. Point-to-point short messages and important SP short messages are classified as high-priority messages.
  • the class is a normal message. The total traffic of the message sent in the same segment of the high-priority message and the normal message per second cannot be greater than the threshold set by the segment.
  • the number of messages to be delivered is the number of short messages that the MSC or SP requests to deliver to the short message center, and the number of actual delivery messages refers to the number of short messages actually delivered to the base station controller in the current time period.
  • the traffic sent by the two types of messages at the moment is dynamically adjusted according to the traffic of the high-priority message and the normal message.
  • the traffic of the two types of messages at a certain moment can be obtained as the actual number of delivered messages in real time; or the traffic submitted to the short message center at the historical moment of the high priority message (ie, the number of messages to be submitted) is used to estimate the current high priority message. Traffic, and the estimated traffic is subtracted from the segment threshold as the maximum allowed traffic at the current time of the normal message.
  • FIG. 4 is a flowchart of a fourth embodiment of a short message call flow control method according to the present invention.
  • the embodiment is based on the embodiment shown in FIG. 3.
  • step S43 when the short message that arrives is a normal message, it is determined whether the actual number of delivery messages of the ordinary message is smaller than the normal message threshold of the number segment of the short message, and is smaller than the maximum traffic threshold of the number segment of the short message and the high priority message. The difference between the actual number of delivery messages.
  • the sliding window mechanism is used to calculate the common message threshold, and the common message threshold of the current time period is estimated by the number of high priority messages to be delivered in the historical period.
  • the following conditions must be met to determine whether the ordinary message can continue to be delivered:
  • This embodiment adopts a sliding window mechanism to ensure the smoothness of message traffic, and also ensures that high-priority messages are sent preferentially, taking into account the balance between flow control and delivery efficiency.
  • FIG. 5 is a flowchart of a fifth embodiment of a short message call flow control method according to the present invention.
  • the embodiment is based on the embodiment shown in FIG. 2, and after step S50, further comprising: step S71, determining whether the short message fails to be delivered; if yes, executing step S72; if not, ending the process; step S72, determining the short Whether the delivery error code of the message is the home location register error code; if yes, step S73 is performed; if no, step S74 is performed; step S73, the number of actual delivery messages of the short message belonging number segment in the current time period is decremented by one, The short message is buffered, and the process returns to step S30; in step S74, the short message is buffered, and the process returns to step S30.
  • the short message center Before the short message center delivers the short message to the base station, it will first query the route by the HLR (Home Location Register). If the HLR returns a failure when querying the route, such short message will not be delivered to the BSC. It will not cause load impact, and can be deducted from the actual actual delivery BSC number. Therefore, it can be judged according to the error code returned by the core network whether it is a route failure returned by the HLR.
  • HLR Home Location Register
  • FIG. 6 is a schematic structural diagram of a first embodiment of a short message call flow control apparatus according to the present invention.
  • the short message call flow control device mentioned in this embodiment includes: The receiving module 10 is configured to receive a short message sent by the mobile switching center or the service provider; the querying module 20 is configured to query the number segment of the short message; and the statistics module 30 is configured to calculate the actual number of the short message belonging to the current time period.
  • the determining module 40 is configured to determine whether the actual number of delivery messages of the short message belonging to the current time period is less than the traffic threshold of the short message belonging to the number segment; the delivery module 50 is configured to determine, when the determining module 40 determines that the short message belongs to When the number of actual delivery messages in the current period is less than the traffic threshold of the number segment to which the short message belongs, the short message is delivered to the base station controller corresponding to the number segment to which the short message belongs.
  • the mobile terminal when the short message is sent by the user, the mobile terminal sends the short message to the mobile switching center, and the mobile switching center delivers the short message message; the service provider sends a short message to the service provider, and the service provider submits the short message by using the SMPP protocol.
  • Message Center when the short message is sent by the user, the mobile terminal sends the short message to the mobile switching center, and the mobile switching center delivers the short message message; the service provider sends a short message to the service provider, and the service provider submits the short message by using the
  • An MSC area may be divided into a plurality of BSC number segments, and the short message is distributed to the base station corresponding to the number segment according to the number of the receiver for delivery and transmission.
  • the area is divided into two MSC areas, each MSC area is responsible for two BSC segments, and there are a total of four BSC segments.
  • the short message center sets the maximum traffic threshold for each segment in advance, for example, a checkpoint segment. 1 Set 100 bars/second, set segment 2 for 200 segments/second, check segment 3 for 300 bars/second, and check segment 4 for 400 bars/second. When a short message arrives, the short message center increments the actual number of delivery messages in the current time period by one.
  • the delivery operation is performed. If the short message that arrives exceeds the traffic threshold, the short message is not sent, and the base station controller is effectively avoided.
  • the load is too large.
  • the control of the short message call traffic is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively avoided.
  • FIG. 7 is a schematic structural diagram of a second embodiment of a short message call flow control apparatus according to the present invention.
  • the cache module 60 is added, and is configured to determine, when the determining module 40 determines that the number of actual delivery messages of the short message belonging to the current time period is greater than or equal to the number segment of the short message.
  • the short message is cached; the statistics module 30 is further configured to: when the next time period arrives, count the actual number of delivery messages of the short message belonging segment segment in the next time period; the determining module 40 is further configured to determine the short message belonging number segment Whether the actual number of delivery messages in the next time period is less than the traffic threshold of the number segment to which the short message belongs.
  • the short message that arrives in the current time period exceeds the traffic threshold range, the short message is temporarily not sent, and when the next time period arrives, the actual number of delivery messages of the short message belonging segment in the next time period is re-stated.
  • the short message is sent out in the next time period, if the actual number of delivery messages in the next time period is still greater than If the traffic threshold is equal to or equal to the traffic threshold, the short message will continue to be sent. If the next time interval is reached, the statistics and judgments are repeated, and the loop is repeated until the traffic of the number segment of the short message meets the threshold range. Since the BSC traffic of each segment is finely controlled in this embodiment, the system load is effectively prevented from being overloaded by the base station.
  • the statistics module 30 is specifically configured to: count the number of actual delivery messages of the high priority message and the actual number of delivery messages of the ordinary message in the current time period of the number segment of the short message.
  • the messages need to be classified, the short messages are classified into high-priority messages and ordinary messages, and the point-to-point short messages and important SP short messages are classified into high-priority messages.
  • the other messages are classified as ordinary messages.
  • the total traffic of messages sent in the same segment of the high-priority message and the ordinary message per second cannot be greater than the threshold set by the number segment.
  • the number of messages to be delivered is the number of short messages that the MSC or SP requests to deliver to the short message center.
  • the actual number of posted messages refers to the number of short messages actually delivered to the base station controller in the current time period.
  • the traffic sent by the two types of messages at this time is dynamically adjusted according to the traffic of the high-priority message and the normal message.
  • the traffic of the two types of messages at a certain moment can be obtained as the actual number of delivered messages in real time; or the traffic submitted to the short message center at the historical moment of the high priority message (ie, the number of messages to be submitted) is used to estimate the current high priority message. Traffic, and the estimated traffic is subtracted from the segment threshold as the maximum allowed traffic at the current time of the normal message.
  • the determining module 40 is specifically configured to: when the short message that arrives is a high priority message, determine whether the actual number of delivery messages of the high priority message is smaller than the maximum traffic threshold of the number segment of the short message and the common message. The difference between the number of actual delivery messages; when the short message arrived is a normal message, it is determined whether the actual number of delivery messages of the ordinary message is less than the normal message threshold of the number segment of the short message, and is smaller than the maximum traffic threshold of the number segment of the short message and the maximum traffic threshold The difference between the actual number of delivery messages for the priority message.
  • the sliding window mechanism is used to calculate the common message threshold, and the common message threshold of the current time period is estimated by the number of high priority messages to be delivered in the historical period.
  • the following method is specifically adopted: Statistics before the current time period N
  • the number of to-be-delivered messages of the high-priority message T1, ⁇ 2 ⁇ , ⁇ is a natural number; the maximum traffic threshold Max of the number segment to which the short message belongs is obtained; the common message threshold Umax of the number segment of the short message in the current time period is determined.
  • the following conditions must be met to determine whether a normal message can continue to be delivered:
  • the number of ordinary message delivery messages is ⁇ m ax
  • This embodiment adopts a sliding window mechanism to ensure the smoothness of message traffic, and also ensures that high-priority messages are sent preferentially, taking into account the balance between flow control and delivery efficiency.
  • FIG. 8 is a schematic structural diagram of a third embodiment of a short message call flow control apparatus according to the present invention.
  • the feedback module 70 is added, wherein: the determining module 40 is further configured to: when the short message delivery fails, determine whether the delivery error code of the short message is the home location register error code.
  • the statistics module 30 is further configured to: when the determining module 40 determines that the delivery error code of the short message is the home location register error code, decrement the number of actual delivery messages of the short message belonging number segment in the current time period by one; the feedback module 70 is set to When the determining module 40 determines that the delivery error code of the short message is the home location register error code, the short message is buffered, and the short message is fed back to the statistics module 30; when the determining module 40 determines that the delivery error code of the short message is not the home location register error When the code is coded, the short message is directly buffered, and the short message is fed back to the statistics module 30.
  • the short message center first queries the route by the HLR (Home Location Register) before sending the short message to the base station. If the HLR returns a failure when querying the route, such short message will not be delivered to the short message.
  • the BSC does not affect the traffic of the base station, and can be deducted from the statistics of the actual delivery BSC. Therefore, it can be determined according to the error code returned by the core network whether it is a route failure returned by the HLR.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed are a method and an apparatus for controlling traffic of a short message service message call. The method comprises: receiving a short message service message sent by a mobile switching center or a service provider; querying for a number segment of the short message service message; counting the actual number of messages delivered by the number segment of the short message service message in a current time segment; determining whether the actual number of messages delivered by the number segment of the short message service message in the current time segment is smaller than a traffic threshold of the number segment of the short message service message; and when the actual number of messages delivered by the number segment of the short message service message in the current time segment is smaller than the traffic threshold of the number segment of the short message service message, delivering the short message service message to a base station controller corresponding to the number segment of the short message service message. In the present invention, by controlling the traffic of each area, each number segment and a base station controller, the control of traffic of a short message service message call can be specified to a number segment, the control is more accurate, and the configuration is more flexible, thereby effectively avoiding a system interruption due to overloading of a base station.

Description

短消息呼叫流量控制方法和装置 技术领域 本发明涉及到通信技术领域, 特别涉及到短消息呼叫流量控制方法和装置。 背景技术 在短消息业务终呼过程中, 运营商通常根据区域来分配号段, 通过控制号段的消 息流量来控制投递到一个区域的基站的消息流量, 以达到减少消息对基站的冲击, 防 止基站过负荷造成瘫痪的目的。 但是, 随着电信业务的不断发展, 移动终端用户数量 的急剧增加,短消息业务量越来越大,特别是越来越多的服务提供商(Service Provider, SP) 为了向用户提供丰富的增值业务, 大批量的给用户群发消息, 这必然对电信网络 的稳定性造成极大的冲击。 目前, 仅仅通过移动交换中心 (Mobile Switching Center, MSC) 控制消息流量, 并不能保证大片区域中不同的小片区域内基站的流量平衡, 容 易造成部分基站过载, 以致瘫痪。 发明内容 本发明实施例提供了一种有效控制短消息呼叫流量平衡、 避免基站负荷过载的短 消息呼叫流量控制方法和装置。 本发明实施例提出一种短消息呼叫流量控制方法, 包括步骤: 接收移动交换中心或服务提供商发送的短消息; 查询所述短消息所属号段, 并统计所述短消息所属号段在当前时段内的实际投递 消息数; 判断所述短消息所属号段在当前时段内的实际投递消息数是否小于所述短消息所 属号段的流量阈值; 当所述短消息所属号段在当前时段内的实际投递消息数小于所述短消息所属号段 的流量阈值时, 将所述短消息投递至所述短消息所属号段对应的基站控制器。 优选地, 所述判断所述短消息所属号段在当前时段内的实际投递消息数是否小于 所述短消息所属号段的流量阈值的步骤之后还包括: 当所述短消息所属号段在当前时段内的实际投递消息数大于或等于所述短消息所 属号段的流量阈值时, 缓存所述短消息; 当下一时段到达时, 统计所述短消息所属号段在下一时段内的实际投递消息数; 判断所述短消息所属号段在下一时段内的实际投递消息数是否小于所述短消息所 属号段的流量阈值; 以此循环。 优选地, 所述短消息包括高优先级消息和普通消息; 所述统计短消息所属号段在当前时段内的实际投递消息数的步骤具体包括- 统计所述短消息所属号段在当前时段内高优先级消息的实际投递消息数和普通消 息的实际投递消息数。 优选地, 所述判断所述短消息所属号段在当前时段内的实际投递消息数是否小于 所述短消息所属号段的流量阈值的步骤具体包括: 当到达的所述短消息为高优先级消息时, 判断所述高优先级消息的实际投递消息 数是否小于所述短消息所属号段的最大流量阈值与所述普通消息的实际投递消息数之 差; 当到达的所述短消息为普通消息时, 判断所述普通消息的实际投递消息数是否小 于所述短消息所属号段的普通消息阈值、 且小于所述短消息所属号段的最大流量阈值 与所述高优先级消息的实际投递消息数之差。 优选地, 所述短消息所属号段的普通消息阈值通过以下步骤获得: 统计在当前时段之前 N个时段内高优先级消息的待投递消息数 Tl、 Τ2 The present invention relates to the field of communications technologies, and in particular, to a short message call flow control method and apparatus. In the process of terminating a short message service, an operator usually allocates a segment according to a region, and controls message traffic of a base station delivered to a region by controlling message traffic of the segment to reduce the impact of the message on the base station and prevent The base station is overloaded and causes a flaw. However, with the continuous development of telecommunication services, the number of mobile terminal users has increased sharply, and the volume of short message services has become larger and larger, especially as more and more service providers (SPs) provide rich value-added to users. Business, mass messages to the user group, which will inevitably have a great impact on the stability of the telecommunications network. At present, the control of message traffic only through the Mobile Switching Center (MSC) does not guarantee the traffic balance of the base stations in different small areas in a large area, which is likely to cause overload of some base stations, which may cause paralysis. SUMMARY OF THE INVENTION Embodiments of the present invention provide a short message call flow control method and apparatus for effectively controlling short message call traffic balance and avoiding base station load overload. The embodiment of the present invention provides a short message call flow control method, including the steps of: receiving a short message sent by a mobile switching center or a service provider; querying a number segment of the short message, and counting the number segment of the short message at the current The number of actual delivery messages in the time period; determining whether the number of actual delivery messages in the current time period of the short message belongs to the traffic threshold of the number segment of the short message; When the number of actual delivery messages is less than the traffic threshold of the number segment to which the short message belongs, the short message is delivered to the base station controller corresponding to the segment of the short message. Preferably, after the step of determining whether the number of the actual delivery message of the short message belongs to the current time period is less than the traffic threshold of the number segment of the short message, the method further includes: When the number of actual delivery messages of the short message belongs to the current time period is greater than or equal to the traffic threshold of the number segment of the short message, the short message is cached; when the next time period arrives, the short message belongs to The number of actual delivery messages of the segment in the next time period; determining whether the number of actual delivery messages of the number segment of the short message in the next time period is less than the traffic threshold of the number segment to which the short message belongs; Preferably, the short message includes a high priority message and a normal message; the step of the actual delivery message number of the number segment of the statistical short message in the current time period specifically includes: counting the number segment of the short message belongs to the current time period The number of actual delivery messages for high priority messages and the actual number of delivery messages for normal messages. Preferably, the step of determining whether the number of actual delivery messages of the short message belongs to the current time period is less than the traffic threshold of the number segment of the short message includes: when the short message that arrives is a high priority And determining, by the message, whether the actual number of delivery messages of the high priority message is smaller than a difference between a maximum traffic threshold of the number segment of the short message and an actual delivery message of the common message; when the short message arrives is normal And determining, by the message, whether the actual number of delivery messages of the ordinary message is smaller than a common message threshold of the number segment of the short message, and less than a maximum traffic threshold of the number segment of the short message and an actual delivery of the high priority message. The difference in the number of messages. Preferably, the normal message threshold of the number segment to which the short message belongs is obtained by the following steps: counting the number of to-be-delivered messages T1, Τ2 of the high priority message in the N time periods before the current time period
Τη, Ν为自然数; 获取所述短消息所属号段的最大流量阈值 Max; 确定所述短消息所属号段在当前时段内的普通消息阈值 Umax, 其表达式为: IImax=Max― (T 1 +T2+ +Tn)÷N。 优选地, 所述将短消息投递至所述短消息所属号段对应的基站控制器的步骤之后 还包括: 当所述短消息投递失败时, 判断所述短消息的投递错误码是否为归属位置寄存器 错误码; 如果是, 则将所述短消息所属号段在当前时段内的实际投递消息数减一, 缓存所 述短消息, 并返回统计所述短消息所属号段在当前时段内的实际投递消息数的步骤; 如果否, 则缓存所述短消息, 并返回统计所述短消息所属号段在当前时段内的实 际投递消息数的步骤; 以此循环。 本发明实施例还提出一种短消息呼叫流量控制装置, 包括: 接收模块, 设置为接收移动交换中心或服务提供商发送的短消息; 查询模块, 设置为查询所述短消息所属号段; 统计模块, 设置为统计所述短消息所属号段在当前时段内的实际投递消息数; 判断模块, 设置为判断所述短消息所属号段在当前时段内的实际投递消息数是否 小于所述短消息所属号段的流量阈值; 投递模块, 设置为当所述判断模块判定所述短消息所属号段在当前时段内的实际 投递消息数小于所述短消息所属号段的流量阈值时, 将所述短消息投递至所述短消息 所属号段对应的基站控制器。 优选地, 所述短消息呼叫流量控制装置还包括缓存模块, 设置为当所述判断模块 判定所述短消息所属号段在当前时段内的实际投递消息数大于或等于所述短消息所属 号段的流量阈值时, 缓存所述短消息; 所述统计模块还设置为, 当下一时段到达时, 统计所述短消息所属号段在下一时 段内的实际投递消息数; 所述判断模块还设置为, 判断所述短消息所属号段在下一时段内的实际投递消息 数是否小于所述短消息所属号段的流量阈值。 优选地, 所述短消息包括高优先级消息和普通消息; 所述统计模块具体设置为: 统计所述短消息所属号段在当前时段内高优先级消息的实际投递消息数、 以及普 通消息的实际投递消息数。 优选地, 所述判断模块具体设置为- 当到达的所述短消息为高优先级消息时, 判断所述高优先级消息的实际投递消息 数是否小于所述短消息所属号段的最大流量阈值与所述普通消息的实际投递消息数之 差; 当到达的所述短消息为普通消息时, 判断所述普通消息的实际投递消息数是否小 于所述短消息所属号段的普通消息阈值、 且小于所述短消息所属号段的最大流量阈值 与所述高优先级消息的实际投递消息数之差。 优选地, 所述统计模块还设置为: 统计在当前时段之前 N个时段内高优先级消息的待投递消息数 Tl、 Τ2 Τη, Ν is a natural number; obtaining a maximum traffic threshold Max of the number segment to which the short message belongs; determining an ordinary message threshold Umax of the number segment of the short message in the current time period, and the expression is: IImax=Max― (T 1 +T2+ +Tn)÷N. Preferably, after the step of delivering the short message to the base station controller corresponding to the number segment to which the short message belongs, the method further includes: When the short message delivery fails, determining whether the delivery error code of the short message is a home location register error code; if yes, reducing the number of actual delivery messages of the short message belonging number segment in the current time period by one, Cache the short message, and return a step of counting the actual number of delivery messages of the short message belonging to the current time period; if not, buffering the short message, and returning statistics of the short message belonging to the current segment The step of actually delivering the number of messages within the time period; this loop. The embodiment of the present invention further provides a short message call flow control apparatus, including: a receiving module, configured to receive a short message sent by a mobile switching center or a service provider; and a query module configured to query a number segment of the short message; a module, configured to count the number of actual delivery messages in the current time period of the short message belonging segment segment; the determining module, configured to determine whether the actual delivery message number of the short message belonging segment segment in the current time period is smaller than the short message a traffic threshold of the number segment; the delivery module, configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment period in the current time period is less than the traffic threshold value of the short message belonging segment segment, The short message is delivered to the base station controller corresponding to the segment of the short message. Preferably, the short message call flow control device further includes a cache module, configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment segment in the current time period is greater than or equal to the short message belonging number segment The short message is cached; the statistics module is further configured to: when the next time period arrives, count the actual number of delivery messages of the short message belonging segment segment in the next time period; the determining module is further configured to And determining whether the number of actual delivery messages of the number segment of the short message in the next time period is smaller than the traffic threshold of the number segment of the short message. Preferably, the short message includes a high priority message and a normal message; the statistics module is specifically configured to: The actual number of delivery messages of the high priority message in the current time period and the actual delivery message number of the ordinary message are counted. Preferably, the determining module is specifically configured to: when the short message that arrives is a high priority message, determine whether the actual number of delivery messages of the high priority message is smaller than a maximum traffic threshold of the number segment of the short message. a difference between the number of actual delivery messages of the normal message and the normal message threshold of the number segment of the short message, and the number of actual delivery messages of the common message is less than the normal message threshold of the number segment of the short message, and The difference between the maximum traffic threshold of the number segment to which the short message belongs and the actual number of delivery messages of the high priority message. Preferably, the statistics module is further configured to: count the number of to-be-delivered messages T1, Τ2 of the high priority message in the N time periods before the current time period
Τη, Ν为自然数; 获取所述短消息所属号段的最大流量阈值 Max; 确定所述短消息所属号段在当前时段内的普通消息阈值 Umax, 其表达式为: IImax=Max-(Tl+T2+ +Tn)÷N。 优选地, 所述短消息呼叫流量控制装置还包括反馈模块,, 其中, 所述判断模块还设置为, 当所述短消息投递失败时, 判断所述短消息的投递错误 码是否为归属位置寄存器错误码; 所述统计模块还设置为, 当所述判断模块判定所述短消息的投递错误码为归属位 置寄存器错误码时, 将所述短消息所属号段在当前时段内的实际投递消息数减一; 所述反馈模块设置为, 当所述判断模块判定所述短消息的投递错误码为归属位置 寄存器错误码时, 缓存所述短消息, 并将所述短消息反馈给所述统计模块; 当所述判 断模块判定所述短消息的投递错误码不是归属位置寄存器错误码时, 直接缓存所述短 消息, 并将所述短消息反馈给所述统计模块。 本发明实施例通过控制各片区各号段基站控制器的流量, 使短消息呼叫流量的控 制细化至号段, 使控制更加精确, 配置更加灵活, 有效避免基站负荷过载导致系统瘫 Τη, Ν is a natural number; obtaining a maximum traffic threshold Max of the number segment to which the short message belongs; determining an ordinary message threshold Umax of the number segment of the short message in the current time period, and the expression is: IImax=Max-(Tl+ T2+ + Tn) ÷N. Preferably, the short message call flow control device further includes a feedback module, wherein the determining module is further configured to: determine, when the short message delivery fails, whether the delivery error code of the short message is a home location register The statistic module is further configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, the number of actual delivery messages of the short message belonging segment segment in the current time period The feedback module is configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, buffer the short message, and feed the short message to the statistics module And when the determining module determines that the delivery error code of the short message is not a home location register error code, directly buffering the short message, and feeding back the short message to the statistics module. In the embodiment of the present invention, by controlling the traffic of the base station controllers of each segment of each area, the control of the short message call flow is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively avoided.
附图说明 图 1为本发明短消息呼叫流量控制方法的第一实施例的流程图; 图 2为本发明短消息呼叫流量控制方法的第二实施例的流程图; 图 3为本发明短消息呼叫流量控制方法的第三实施例的流程图; 图 4为本发明短消息呼叫流量控制方法的第四实施例的流程图; 图 5为本发明短消息呼叫流量控制方法的第五实施例的流程图; 图 6为本发明短消息呼叫流量控制装置的第一实施例的结构示意图; 图 7为本发明短消息呼叫流量控制装置的第二实施例的结构示意图; 图 8为本发明短消息呼叫流量控制装置的第三实施例的结构示意图。 本发明实施例的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明, 具体实施方式 应当理解,此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。 如图 1所示, 图 1为本发明短消息呼叫流量控制方法的第一实施例的流程图。 本 实施例提到的短消息呼叫流量控制方法, 包括步骤: 步骤 S10, 接收移动交换中心或服务提供商发送的短消息; 用户发送短消息时, 通过移动终端发送至移动交换中心, 并由移动交换中心递交 到短消息中心; 服务提供商群发的服务短消息, 由服务提供商采用 SMPP协议提交到 短消息中心。 步骤 S20, 查询短消息所属号段; 一个 MSC地区可划分为多个 BSC号段, 短消息根据接收方的号码被分发到对应 号段的基站进行投递发送。 例如, 将本区域划分为两个 MSC地区, 每个 MSC地区负 责两个 BSC号段, 总共有 4个 BSC号段, 短消息中心预先分别对各号段设置最大流 量阈值, 例如, 对号段 1设置 100条 /秒, 对号段 2设置 200条 /秒, 对号段 3设置 300 条 /秒, 对号段 4设置 400条 /秒。 步骤 S30, 统计短消息所属号段在当前时段内的实际投递消息数; 当一条短消息到达时, 短消息中心将当前时段内的实际投递消息数加 1。 步骤 S40, 判断短消息所属号段在当前时段内的实际投递消息数是否小于短消息 所属号段的流量阈值; 为了控制各号段对应的基站控制器的流量, 对于到达的短消息如果在流量阈值范 围内, 才进行投递操作, 如果到达的短消息超过了流量阈值, 则暂不发送, 有效避免 基站控制器负荷过大。 步骤 S50, 当短消息所属号段在当前时段内的实际投递消息数小于短消息所属号 段的流量阈值时, 并将短消息投递至短消息所属号段对应的基站控制器。 本实施例通过控制各片区各号段基站控制器的流量, 使短消息呼叫流量的控制细 化至号段, 使控制更加精确, 配置更加灵活, 有效避免基站负荷过载导致系统瘫痪。 BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a flow chart of a first embodiment of a short message call flow control method according to the present invention; FIG. 2 is a flow chart of a second embodiment of a short message call flow control method according to the present invention; FIG. 4 is a flowchart of a fourth embodiment of a short message call flow control method according to the present invention; FIG. 5 is a fifth embodiment of a short message call flow control method according to the present invention; FIG. 6 is a schematic structural diagram of a first embodiment of a short message call flow control apparatus according to the present invention; FIG. 7 is a schematic structural diagram of a second embodiment of a short message call flow control apparatus according to the present invention; A schematic structural diagram of a third embodiment of a call flow control device. The embodiments of the present invention will be further described with reference to the accompanying drawings. The specific embodiments described herein are merely intended to explain the present invention and are not intended to limit the invention. As shown in FIG. 1, FIG. 1 is a flowchart of a first embodiment of a short message call flow control method according to the present invention. The short message call flow control method mentioned in this embodiment includes the following steps: Step S10: Receive a short message sent by a mobile switching center or a service provider; when sending a short message, the user sends the short message to the mobile switching center, and is moved by the mobile terminal. The switching center submits to the short message center; the service short message sent by the service provider is submitted by the service provider to the short message center by using the SMPP protocol. Step S20: Query the number segment of the short message; an MSC area may be divided into multiple BSC number segments, and the short message is distributed to the base station corresponding to the segment number according to the number of the receiver for delivery and transmission. For example, divide the area into two MSC areas, each MSC area negative Responsible for two BSC segments, there are a total of 4 BSC segments. The short message center sets the maximum traffic threshold for each segment in advance. For example, set the number of segments 1 for 100 segments/second and the segment segment 2 for 200 segments/second. Set 300/sec for segment 3 and 400/sec for segment 4. Step S30, counting the actual number of delivery messages of the short message belonging segment period in the current time period; when a short message arrives, the short message center adds 1 to the actual delivery message number in the current time period. Step S40: determining whether the number of actual delivery messages of the short message belonging to the current time period is less than the traffic threshold of the number segment of the short message; in order to control the traffic of the base station controller corresponding to each number segment, if the short message arrives at the traffic Within the threshold range, the delivery operation is performed. If the short message that arrives exceeds the traffic threshold, it is not sent temporarily, effectively preventing the base station controller from being overloaded. Step S50: When the number of actual delivery messages of the short message belonging to the current time period is less than the traffic threshold of the number segment of the short message, the short message is delivered to the base station controller corresponding to the number segment of the short message. In this embodiment, by controlling the traffic of the base station controllers of each segment of each area, the control of the short message call traffic is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively avoided.
如图 2所示, 图 2为本发明短消息呼叫流量控制方法的第二实施例的流程图。 本 实施例以图 1所示实施例为基础, 在步骤 S40之后还包括: 步骤 S61, 当短消息所属号段在当前时段内的实际投递消息数大于或等于短消息 所属号段的流量阈值时, 缓存短消息; 步骤 S62, 下一时段到达, 返回步骤 S30。 本实施例中, 对于当前时段内到达的短信息超出流量阈值范围时, 将该短信息暂 留不发, 当下一时段到达时, 重新统计短消息所属号段在下一时段内的实际投递消息 数, 当短消息所属号段在下一时段内的实际投递消息数小于短消息所属号段的流量阈 值, 则在下一时段内将该短消息发送出去, 如果下一时段内的实际投递消息数仍然大 于或等于流量阈值, 则继续将该短消息留中不发, 等到再下一时段到达时, 在做重新 统计与判断, 依次循环, 直至该短消息所属号段的流量满足阈值范围。 由于本实施例 对各号段的 BSC流量进行了细化控制, 有效避免基站负荷过载导致系统瘫痪。 如图 3所示, 图 3为本发明短消息呼叫流量控制方法的第三实施例的流程图。 本 实施例以图 2所示实施例为基础, 步骤 S30具体包括: 步骤 S31, 统计短消息所属号段在当前时段内高优先级消息的实际投递消息数和 普通消息的实际投递消息数; 为了保证重要的消息优先下发, 需要对消息进行分级, 把短消息分为高优先级消 息和普通消息, 点到点的短消息和重要的 SP 短消息归类为高优先级消息, 其它消息 归类为普通消息, 同一号段高优先级消息跟普通消息每秒下发的消息总流量不能大于 该号段设置的阈值。待投递消息数为 MSC或 SP向短消息中心请求投递的短消息数量, 实际投递消息数是指当前时段内到目前为止实际投递到基站控制器的短消息数量。 为 了兼顾效率, 需要根据高优先级消息和普通消息的流量来动态调整该时刻两类消息下 发的流量。 可通过实时获取某一时刻两类消息的流量作为实际投递消息数; 或根据高 优先级消息历史时刻提交到短消息中心的流量(即待递交消息数),来预估当前时刻高 优先级消息流量, 并且用号段阈值减去此预估流量作为普通消息的当前时刻最大允许 下发流量。 As shown in FIG. 2, FIG. 2 is a flowchart of a second embodiment of a short message call flow control method according to the present invention. The embodiment is based on the embodiment shown in FIG. 1. After step S40, the method further includes: Step S61: When the number of actual delivery messages of the short message belonging to the current time period is greater than or equal to the traffic threshold of the number segment of the short message , the short message is cached; Step S62, the next time period arrives, and the process returns to step S30. In this embodiment, when the short message that arrives in the current time period exceeds the traffic threshold range, the short message is temporarily not sent, and when the next time period arrives, the actual number of delivery messages of the short message belonging segment in the next time period is re-stated. When the number of actual delivery messages of the short message belonging to the next time period is less than the traffic threshold of the number segment of the short message, the short message is sent out in the next time period, if the actual number of delivery messages in the next time period is still greater than If the traffic threshold is equal to or equal to the traffic threshold, the short message will continue to be sent. If the next time interval is reached, the statistics and judgments are repeated, and the loop is repeated until the traffic of the number segment of the short message meets the threshold range. Since the BSC traffic of each segment is finely controlled in this embodiment, the system load is effectively prevented from being overloaded by the base station. As shown in FIG. 3, FIG. 3 is a flowchart of a third embodiment of a short message call flow control method according to the present invention. The embodiment is based on the embodiment shown in FIG. 2, and the step S30 specifically includes: Step S31, counting the actual number of delivery messages of the high priority message and the actual delivery message of the ordinary message in the current period of the short message belonging segment segment; To ensure that important messages are delivered preferentially, the messages need to be classified, and the short messages are classified into high-priority messages and ordinary messages. Point-to-point short messages and important SP short messages are classified as high-priority messages. The class is a normal message. The total traffic of the message sent in the same segment of the high-priority message and the normal message per second cannot be greater than the threshold set by the segment. The number of messages to be delivered is the number of short messages that the MSC or SP requests to deliver to the short message center, and the number of actual delivery messages refers to the number of short messages actually delivered to the base station controller in the current time period. In order to balance the efficiency, the traffic sent by the two types of messages at the moment is dynamically adjusted according to the traffic of the high-priority message and the normal message. The traffic of the two types of messages at a certain moment can be obtained as the actual number of delivered messages in real time; or the traffic submitted to the short message center at the historical moment of the high priority message (ie, the number of messages to be submitted) is used to estimate the current high priority message. Traffic, and the estimated traffic is subtracted from the segment threshold as the maximum allowed traffic at the current time of the normal message.
如图 4所示, 图 4为本发明短消息呼叫流量控制方法的第四实施例的流程图。 本 实施例以图 3所示实施例为基础, 步骤 S40具体包括: 步骤 S41, 判断到达的短消息类型; 步骤 S42, 当到达的短消息为高优先级消息时, 判断高优先级消息的实际投递消 息数是否小于短消息所属号段的最大流量阈值与普通消息的实际投递消息数之差; 对高优先级消息采用动态实时计算阈值, 最大流量阈值记为 Max, 高优先级消息 阈值记为 Imax, Imax=MaX—当前时段普通消息实际投递数, 如果当前时刻高优先级 消息实际投递消息数 <Imax, 该高优先级消息可以继续投递。 步骤 S43, 当到达的短消息为普通消息时, 判断普通消息的实际投递消息数是否 小于短消息所属号段的普通消息阈值、 且小于短消息所属号段的最大流量阈值与高优 先级消息的实际投递消息数之差。 为了保证消息流量的平稳, 本实施例采用滑窗机制计算普通消息阈值, 通过历史 时段高优先级的待投递消息数来估算当前时段的普通消息阈值, 具体采用以下方法: 统计在当前时段之前 N个时段内高优先级消息的待投递消息数 Tl、 Τ2 Τη, Ν 为自然数; 获取短消息所属号段的最大流量阈值 Max; 确定所述短消息所属号段在当 前时段内的普通消息阈值 Umax, 其表达式为: nmaX=Max— ri+T2+ ...... +Tn)÷N。 本 实施例以 Ν=3为例, 获取前三个时段内的高优先级消息的待投递消息数 Tl、 Τ2、 Τ3, 即分别在当前时段之前 3个时段内 MAC和 SP向短消息中心请求提交的高优先级消息 数, 在当前时段之前 3个时段内高优先级消息的平均流量为 (Tl+T2+T3)÷3, 则当前时 段的普通消息阈值 IImax=MaX— (Tl+T2+T3)÷3。判断普通消息是否能够继续投递必须 满足以下条件: 普通消息实际投递消息数 <IImaX, 并且普通级消息实际投递消息数 <Max—高优先级消息实际投递消息数。本实施例采用滑窗机制, 保证了消息流量的平 稳, 同时还确保了高优先级消息优先发送, 兼顾了流量控制与下发效率之间的平衡。 As shown in FIG. 4, FIG. 4 is a flowchart of a fourth embodiment of a short message call flow control method according to the present invention. The embodiment is based on the embodiment shown in FIG. 3. Step S40 specifically includes: Step S41: determining the type of the short message that arrives; Step S42, when the short message that arrives is a high priority message, determining the actual content of the high priority message. Whether the number of delivery messages is smaller than the difference between the maximum traffic threshold of the number segment of the short message and the actual number of delivery messages of the normal message; the dynamic real-time calculation threshold is used for the high priority message, the maximum traffic threshold is recorded as Max, and the high priority message threshold is recorded as Imax, Im ax = Ma X — The actual number of ordinary messages for the current time period. If the current high-priority message actually delivers the number of messages <Imax, the high-priority message can continue to be delivered. In step S43, when the short message that arrives is a normal message, it is determined whether the actual number of delivery messages of the ordinary message is smaller than the normal message threshold of the number segment of the short message, and is smaller than the maximum traffic threshold of the number segment of the short message and the high priority message. The difference between the actual number of delivery messages. In order to ensure the smoothness of the message traffic, the sliding window mechanism is used to calculate the common message threshold, and the common message threshold of the current time period is estimated by the number of high priority messages to be delivered in the historical period. The following method is specifically adopted: Statistics before the current time period N The number of to-be-delivered messages of the high-priority message T1, Τ2 Τη, Ν is a natural number; the maximum traffic threshold Max of the number segment to which the short message belongs is obtained; the common message threshold Umax of the number segment of the short message in the current time period is determined. , the expression is: nma X = Max - ri + T2 + ... + Tn) ÷ N. In this embodiment, Ν=3 is taken as an example to obtain the number of to-be-delivered messages T1, Τ2, Τ3 of the high-priority message in the first three time periods, that is, the MAC and the SP request to the short message center within three time periods before the current time period respectively. The number of high-priority messages submitted, the average traffic of high-priority messages in the three periods before the current time period is (Tl+T2+T3)÷3, then the common message threshold of the current time period IIm ax =Ma X — (Tl+ T2+T3)÷3. The following conditions must be met to determine whether the ordinary message can continue to be delivered: The number of ordinary delivery messages of the normal message <IIma X , and the number of ordinary delivery messages of the normal-level message <Max—the number of actual delivery messages of the high-priority message. This embodiment adopts a sliding window mechanism to ensure the smoothness of message traffic, and also ensures that high-priority messages are sent preferentially, taking into account the balance between flow control and delivery efficiency.
如图 5所示, 图 5为本发明短消息呼叫流量控制方法的第五实施例的流程图。 本 实施例以图 2所示实施例为基础, 在步骤 S50之后还包括: 步骤 S71, 判断短消息是否投递失败; 如果是, 则执行步骤 S72; 如果否, 则结 束流程; 步骤 S72, 判断短消息的投递错误码是否为归属位置寄存器错误码; 如果是, 则 执行步骤 S73; 如果否, 则执行步骤 S74; 步骤 S73, 将短消息所属号段在当前时段内的实际投递消息数减一, 缓存短消息, 并返回步骤 S30; 步骤 S74, 缓存短消息, 并返回步骤 S30。 短消息中心在向基站投递短消息前, 会先 HLR (Home Location Register, 归属位 置寄存器)查询路由, 如果在查询路由时 HLR就返回失败, 这类短消息并不会投递到 BSC, 对基站流量不会造成负荷影响, 可在统计实际投递 BSC数中扣除, 因此, 可以 根据核心网返回的错误码来判断是否是 HLR返回的路由失败。 As shown in FIG. 5, FIG. 5 is a flowchart of a fifth embodiment of a short message call flow control method according to the present invention. The embodiment is based on the embodiment shown in FIG. 2, and after step S50, further comprising: step S71, determining whether the short message fails to be delivered; if yes, executing step S72; if not, ending the process; step S72, determining the short Whether the delivery error code of the message is the home location register error code; if yes, step S73 is performed; if no, step S74 is performed; step S73, the number of actual delivery messages of the short message belonging number segment in the current time period is decremented by one, The short message is buffered, and the process returns to step S30; in step S74, the short message is buffered, and the process returns to step S30. Before the short message center delivers the short message to the base station, it will first query the route by the HLR (Home Location Register). If the HLR returns a failure when querying the route, such short message will not be delivered to the BSC. It will not cause load impact, and can be deducted from the actual actual delivery BSC number. Therefore, it can be judged according to the error code returned by the core network whether it is a route failure returned by the HLR.
如图 6所示,图 6为本发明短消息呼叫流量控制装置的第一实施例的结构示意图。 本实施例提到的短消息呼叫流量控制装置, 包括: 接收模块 10, 设置为接收移动交换中心或服务提供商发送的短消息; 查询模块 20, 设置为查询短消息所属号段; 统计模块 30, 设置为统计短消息所属号段在当前时段内的实际投递消息数; 判断模块 40, 设置为判断短消息所属号段在当前时段内的实际投递消息数是否小 于短消息所属号段的流量阈值; 投递模块 50, 设置为当判断模块 40判定短消息所属号段在当前时段内的实际投 递消息数小于短消息所属号段的流量阈值时, 将短消息投递至短消息所属号段对应的 基站控制器。 本实施例中, 用户发送短消息时, 通过移动终端发送至移动交换中心, 并由移动 交换中心递交到短消息中心;服务提供商群发的服务短消息,由服务提供商采用 SMPP 协议提交到短消息中心。 一个 MSC地区可划分为多个 BSC号段, 短消息根据接收方 的号码被分发到对应号段的基站进行投递发送。 例如, 将本区域划分为两个 MSC 地 区, 每个 MSC地区负责两个 BSC号段, 总共有 4个 BSC号段, 短消息中心预先分别 对各号段设置最大流量阈值, 例如, 对号段 1设置 100条 /秒, 对号段 2设置 200条 / 秒, 对号段 3设置 300条 /秒, 对号段 4设置 400条 /秒。 当一条短消息到达时, 短消息 中心将当前时段内的实际投递消息数加 1。为了控制各号段对应的基站控制器的流量, 对于到达的短消息如果在流量阈值范围内, 才进行投递操作, 如果到达的短消息超过 了流量阈值, 则暂不发送, 有效避免基站控制器负荷过大。 本实施例通过控制各片区 各号段基站控制器的流量, 使短消息呼叫流量的控制细化至号段, 使控制更加精确, 配置更加灵活, 有效避免基站负荷过载导致系统瘫痪。 As shown in FIG. 6, FIG. 6 is a schematic structural diagram of a first embodiment of a short message call flow control apparatus according to the present invention. The short message call flow control device mentioned in this embodiment includes: The receiving module 10 is configured to receive a short message sent by the mobile switching center or the service provider; the querying module 20 is configured to query the number segment of the short message; and the statistics module 30 is configured to calculate the actual number of the short message belonging to the current time period. The determining module 40 is configured to determine whether the actual number of delivery messages of the short message belonging to the current time period is less than the traffic threshold of the short message belonging to the number segment; the delivery module 50 is configured to determine, when the determining module 40 determines that the short message belongs to When the number of actual delivery messages in the current period is less than the traffic threshold of the number segment to which the short message belongs, the short message is delivered to the base station controller corresponding to the number segment to which the short message belongs. In this embodiment, when the short message is sent by the user, the mobile terminal sends the short message to the mobile switching center, and the mobile switching center delivers the short message message; the service provider sends a short message to the service provider, and the service provider submits the short message by using the SMPP protocol. Message Center. An MSC area may be divided into a plurality of BSC number segments, and the short message is distributed to the base station corresponding to the number segment according to the number of the receiver for delivery and transmission. For example, the area is divided into two MSC areas, each MSC area is responsible for two BSC segments, and there are a total of four BSC segments. The short message center sets the maximum traffic threshold for each segment in advance, for example, a checkpoint segment. 1 Set 100 bars/second, set segment 2 for 200 segments/second, check segment 3 for 300 bars/second, and check segment 4 for 400 bars/second. When a short message arrives, the short message center increments the actual number of delivery messages in the current time period by one. In order to control the traffic of the base station controller corresponding to each number segment, if the short message that arrives is within the traffic threshold range, the delivery operation is performed. If the short message that arrives exceeds the traffic threshold, the short message is not sent, and the base station controller is effectively avoided. The load is too large. In this embodiment, by controlling the traffic of the base station controllers of each segment of each area, the control of the short message call traffic is refined to the number segment, so that the control is more accurate, the configuration is more flexible, and the system overload is effectively avoided.
如图 7所示,图 7为本发明短消息呼叫流量控制装置的第二实施例的结构示意图。 本实施例在图 6所示实施例的基础上, 增加了缓存模块 60, 设置为当判断模块 40判 定短消息所属号段在当前时段内的实际投递消息数大于或等于短消息所属号段的流量 阈值时, 缓存短消息; 统计模块 30还设置为, 当下一时段到达时, 统计短消息所属号段在下一时段内的 实际投递消息数; 判断模块 40还设置为,判断短消息所属号段在下一时段内的实际投递消息数是否 小于短消息所属号段的流量阈值。 本实施例中, 对于当前时段内到达的短信息超出流量阈值范围时, 将该短信息暂 留不发, 当下一时段到达时, 重新统计短消息所属号段在下一时段内的实际投递消息 数, 当短消息所属号段在下一时段内的实际投递消息数小于短消息所属号段的流量阈 值, 则在下一时段内将该短消息发送出去, 如果下一时段内的实际投递消息数仍然大 于或等于流量阈值, 则继续将该短消息留中不发, 等到再下一时段到达时, 在做重新 统计与判断, 依次循环, 直至该短消息所属号段的流量满足阈值范围。 由于本实施例 对各号段的 BSC流量进行了细化控制, 有效避免基站负荷过载导致系统瘫痪。 As shown in FIG. 7, FIG. 7 is a schematic structural diagram of a second embodiment of a short message call flow control apparatus according to the present invention. In this embodiment, on the basis of the embodiment shown in FIG. 6, the cache module 60 is added, and is configured to determine, when the determining module 40 determines that the number of actual delivery messages of the short message belonging to the current time period is greater than or equal to the number segment of the short message. When the traffic threshold is used, the short message is cached; the statistics module 30 is further configured to: when the next time period arrives, count the actual number of delivery messages of the short message belonging segment segment in the next time period; the determining module 40 is further configured to determine the short message belonging number segment Whether the actual number of delivery messages in the next time period is less than the traffic threshold of the number segment to which the short message belongs. In this embodiment, when the short message that arrives in the current time period exceeds the traffic threshold range, the short message is temporarily not sent, and when the next time period arrives, the actual number of delivery messages of the short message belonging segment in the next time period is re-stated. When the number of actual delivery messages of the short message belonging to the next time period is less than the traffic threshold of the number segment of the short message, the short message is sent out in the next time period, if the actual number of delivery messages in the next time period is still greater than If the traffic threshold is equal to or equal to the traffic threshold, the short message will continue to be sent. If the next time interval is reached, the statistics and judgments are repeated, and the loop is repeated until the traffic of the number segment of the short message meets the threshold range. Since the BSC traffic of each segment is finely controlled in this embodiment, the system load is effectively prevented from being overloaded by the base station.
本发明实施例中, 统计模块 30具体设置为: 统计短消息所属号段在当前时段内高优先级消息的实际投递消息数和普通消息的 实际投递消息数。 本实施例为了保证重要的消息优先下发, 需要对消息进行分级, 把短消息分为高 优先级消息和普通消息, 点到点的短消息和重要的 SP 短消息归类为高优先级消息, 其它消息归类为普通消息, 同一号段高优先级消息跟普通消息每秒下发的消息总流量 不能大于该号段设置的阈值。待投递消息数为 MSC或 SP向短消息中心请求投递的短 消息数量, 实际投递消息数是指当前时段内到目前为止实际投递到基站控制器的短消 息数量。 为了兼顾效率, 需要根据高优先级消息和普通消息的流量来动态调整该时刻 两类消息下发的流量。可通过实时获取某一时刻两类消息的流量作为实际投递消息数; 或根据高优先级消息历史时刻提交到短消息中心的流量(即待递交消息数),来预估当 前时刻高优先级消息流量, 并且用号段阈值减去此预估流量作为普通消息的当前时刻 最大允许下发流量。 In the embodiment of the present invention, the statistics module 30 is specifically configured to: count the number of actual delivery messages of the high priority message and the actual number of delivery messages of the ordinary message in the current time period of the number segment of the short message. In this embodiment, in order to ensure that important messages are preferentially delivered, the messages need to be classified, the short messages are classified into high-priority messages and ordinary messages, and the point-to-point short messages and important SP short messages are classified into high-priority messages. The other messages are classified as ordinary messages. The total traffic of messages sent in the same segment of the high-priority message and the ordinary message per second cannot be greater than the threshold set by the number segment. The number of messages to be delivered is the number of short messages that the MSC or SP requests to deliver to the short message center. The actual number of posted messages refers to the number of short messages actually delivered to the base station controller in the current time period. In order to balance the efficiency, the traffic sent by the two types of messages at this time is dynamically adjusted according to the traffic of the high-priority message and the normal message. The traffic of the two types of messages at a certain moment can be obtained as the actual number of delivered messages in real time; or the traffic submitted to the short message center at the historical moment of the high priority message (ie, the number of messages to be submitted) is used to estimate the current high priority message. Traffic, and the estimated traffic is subtracted from the segment threshold as the maximum allowed traffic at the current time of the normal message.
本发明实施例中, 判断模块 40具体设置为: 当到达的短消息为高优先级消息时, 判断高优先级消息的实际投递消息数是否小 于短消息所属号段的最大流量阈值与普通消息的实际投递消息数之差; 当到达的短消息为普通消息时, 判断普通消息的实际投递消息数是否小于短消息 所属号段的普通消息阈值、 且小于短消息所属号段的最大流量阈值与高优先级消息的 实际投递消息数之差。 本实施例对高优先级消息采用动态实时计算阈值, 最大流量阈值记为 Max, 高优 先级消息阈值记为 Imax, Imax=—当前时段普通消息实际投递数, 如果当前时刻高优 先级消息实际投递消息数 <Imax, 该高优先级消息可以继续投递。 为了保证消息流量 的平稳, 本实施例采用滑窗机制计算普通消息阈值, 通过历史时段高优先级的待投递 消息数来估算当前时段的普通消息阈值, 具体采用以下方法: 统计在当前时段之前 N 个时段内高优先级消息的待投递消息数 Tl、 Τ2 Τη, Ν为自然数; 获取短消息 所属号段的最大流量阈值 Max; 确定所述短消息所属号段在当前时段内的普通消息阈 值 Umax, 其表达式为: IImax=Max— (T1+T2+ +Tn)÷N。 本实施例以 Ν=3为例, 获取前三个时段内的高优先级消息的待投递消息数 Tl、 Τ2、 Τ3, 即分别在当前时段之 前 3个时段内 MAC和 SP向短消息中心请求提交的高优先级消息数,在当前时段之前 3 个时段内高优先级消息的平均流量为 (Tl+T2+T3)÷3, 则当前时段的普通消息阈值 nmax=MaX—(Tl+T2+T3)÷3。 判断普通消息是否能够继续投递必须满足以下条件: 普 通消息实际投递消息数<Πmax,并且普通级消息实际投递消息数 <Max—高优先级消息 实际投递消息数。 本实施例采用滑窗机制, 保证了消息流量的平稳, 同时还确保了高 优先级消息优先发送, 兼顾了流量控制与下发效率之间的平衡。 In the embodiment of the present invention, the determining module 40 is specifically configured to: when the short message that arrives is a high priority message, determine whether the actual number of delivery messages of the high priority message is smaller than the maximum traffic threshold of the number segment of the short message and the common message. The difference between the number of actual delivery messages; when the short message arrived is a normal message, it is determined whether the actual number of delivery messages of the ordinary message is less than the normal message threshold of the number segment of the short message, and is smaller than the maximum traffic threshold of the number segment of the short message and the maximum traffic threshold The difference between the actual number of delivery messages for the priority message. In this embodiment, a dynamic real-time calculation threshold is used for the high-priority message, the maximum traffic threshold is recorded as Max, and the high-priority message threshold is recorded as Imax, Imax=—the actual number of ordinary messages in the current time period, if the current time high-priority message is actually delivered. The number of messages <Imax, the high priority message can continue to be delivered. In order to ensure the smoothness of the message traffic, the sliding window mechanism is used to calculate the common message threshold, and the common message threshold of the current time period is estimated by the number of high priority messages to be delivered in the historical period. The following method is specifically adopted: Statistics before the current time period N The number of to-be-delivered messages of the high-priority message T1, Τ2 Τη, Ν is a natural number; the maximum traffic threshold Max of the number segment to which the short message belongs is obtained; the common message threshold Umax of the number segment of the short message in the current time period is determined. , the expression is: IImax=Max—(T1+T2+ +Tn)÷N. In this embodiment, Ν=3 is taken as an example to obtain the number of to-be-delivered messages T1, Τ2, Τ3 of the high-priority message in the first three time periods, that is, the MAC and the SP request to the short message center within three time periods before the current time period respectively. The number of high-priority messages submitted, the average traffic of high-priority messages in the three periods before the current time period is (Tl+T2+T3)÷3, then the common message threshold of the current time period nm ax =Ma X —(Tl+ T2+T3)÷3. The following conditions must be met to determine whether a normal message can continue to be delivered: The number of ordinary message delivery messages is <Πm ax , and the number of normal delivery messages of normal-level messages <Max—the number of actual delivery messages of high-priority messages. This embodiment adopts a sliding window mechanism to ensure the smoothness of message traffic, and also ensures that high-priority messages are sent preferentially, taking into account the balance between flow control and delivery efficiency.
如图 8所示,图 8为本发明短消息呼叫流量控制装置的第三实施例的结构示意图。 本实施例在图 7所示实施例的基础上, 增加了反馈模块 70, 其中: 判断模块 40还设置为, 当短消息投递失败时,判断短消息的投递错误码是否为归 属位置寄存器错误码; 统计模块 30还设置为, 当判断模块 40判定短消息的投递错误码为归属位置寄存 器错误码时, 将短消息所属号段在当前时段内的实际投递消息数减一; 反馈模块 70设置为, 当判断模块 40判定短消息的投递错误码为归属位置寄存器 错误码时, 缓存短消息, 并将短消息反馈给统计模块 30; 当判断模块 40判定短消息 的投递错误码不是归属位置寄存器错误码时, 直接缓存短消息, 并将短消息反馈给统 计模块 30。 本实施例中, 短消息中心在向基站投递短消息前, 会先 HLR ( Home Location Register, 归属位置寄存器) 查询路由, 如果在查询路由时 HLR就返回失败, 这类短 消息并不会投递到 BSC,对基站流量不会造成负荷影响,可在统计实际投递 BSC数中 扣除, 因此, 可以根据核心网返回的错误码来判断是否是 HLR返回的路由失败。 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发 明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在其他相关 的技术领域, 均同理包括在本发明的专利保护范围内。 As shown in FIG. 8, FIG. 8 is a schematic structural diagram of a third embodiment of a short message call flow control apparatus according to the present invention. On the basis of the embodiment shown in FIG. 7, the feedback module 70 is added, wherein: the determining module 40 is further configured to: when the short message delivery fails, determine whether the delivery error code of the short message is the home location register error code. The statistics module 30 is further configured to: when the determining module 40 determines that the delivery error code of the short message is the home location register error code, decrement the number of actual delivery messages of the short message belonging number segment in the current time period by one; the feedback module 70 is set to When the determining module 40 determines that the delivery error code of the short message is the home location register error code, the short message is buffered, and the short message is fed back to the statistics module 30; when the determining module 40 determines that the delivery error code of the short message is not the home location register error When the code is coded, the short message is directly buffered, and the short message is fed back to the statistics module 30. In this embodiment, the short message center first queries the route by the HLR (Home Location Register) before sending the short message to the base station. If the HLR returns a failure when querying the route, such short message will not be delivered to the short message. The BSC does not affect the traffic of the base station, and can be deducted from the statistics of the actual delivery BSC. Therefore, it can be determined according to the error code returned by the core network whether it is a route failure returned by the HLR. The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are used directly or indirectly in other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims

权 利 要 求 书 、 一种短消息呼叫流量控制方法, 包括步骤: Claims, a short message call flow control method, including the steps:
接收移动交换中心或服务提供商发送的短消息;  Receiving short messages sent by the mobile switching center or service provider;
查询所述短消息所属号段, 并统计所述短消息所属号段在当前时段内的实 际投递消息数;  Querying a number segment of the short message, and counting the number of actual delivery messages of the short message belonging to the current time period;
判断所述短消息所属号段在当前时段内的实际投递消息数是否小于所述短 消息所属号段的流量阈值;  Determining whether the number of actual delivery messages of the number segment of the short message in the current time period is smaller than the traffic threshold of the number segment to which the short message belongs;
当所述短消息所属号段在当前时段内的实际投递消息数小于所述短消息所 属号段的流量阈值时, 将所述短消息投递至所述短消息所属号段对应的基站控 制器。 、 根据权利要求 1所述的短消息呼叫流量控制方法, 其中, 所述判断所述短消息 所属号段在当前时段内的实际投递消息数是否小于所述短消息所属号段的流量 阈值的步骤之后还包括:  When the number of actual delivery messages of the short message belongs to the current time period is less than the traffic threshold of the number segment of the short message, the short message is delivered to the base station controller corresponding to the number segment to which the short message belongs. The short message call flow control method according to claim 1, wherein the step of determining whether the number of actual delivery messages of the short message belonging segment segment in the current time period is smaller than the traffic threshold value of the short message belonging segment segment It also includes:
当所述短消息所属号段在当前时段内的实际投递消息数大于或等于所述短 消息所属号段的流量阈值时, 缓存所述短消息;  The short message is cached when the number of actual delivery messages of the short message belongs to the current time period is greater than or equal to the traffic threshold of the number segment to which the short message belongs;
当下一时段到达时, 统计所述短消息所属号段在下一时段内的实际投递消 息数;  When the next time period arrives, the actual delivery message number of the number segment of the short message in the next time period is counted;
判断所述短消息所属号段在下一时段内的实际投递消息数是否小于所述短 消息所属号段的流量阈值;  Determining whether the number of actual delivery messages of the number segment of the short message in the next time period is smaller than the traffic threshold of the number segment of the short message;
以此循环。 、 根据权利要求 1或 2所述的短消息呼叫流量控制方法, 其中, 所述短消息包括 高优先级消息和普通消息;  This cycle. The short message call flow control method according to claim 1 or 2, wherein the short message includes a high priority message and a normal message;
所述统计短消息所属号段在当前时段内的实际投递消息数的步骤具体包 括- 统计所述短消息所属号段在当前时段内高优先级消息的实际投递消息数和 普通消息的实际投递消息数。 、 根据权利要求 3所述的短消息呼叫流量控制方法, 其中, 所述判断所述短消息 所属号段在当前时段内的实际投递消息数是否小于所述短消息所属号段的流量 阈值的步骤具体包括: The step of the actual delivery message number of the number segment of the statistical short message in the current time period specifically includes: counting the actual delivery message number of the high priority message and the actual delivery message of the ordinary message in the current time period of the short message belonging segment segment number. The short message call flow control method according to claim 3, wherein the step of determining whether the number of actual delivery messages of the short message belonging to the current time period is less than the traffic threshold of the short message belonging to the short message belongs to Specifically include:
当到达的所述短消息为高优先级消息时, 判断所述高优先级消息的实际投 递消息数是否小于所述短消息所属号段的最大流量阈值与所述普通消息的实际 投递消息数之差;  When the short message that arrives is a high priority message, it is determined whether the actual number of delivery messages of the high priority message is smaller than a maximum traffic threshold of the number segment of the short message and an actual number of delivery messages of the common message. Poor
当到达的所述短消息为普通消息时, 判断所述普通消息的实际投递消息数 是否小于所述短消息所属号段的普通消息阈值、 且小于所述短消息所属号段的 最大流量阈值与所述高优先级消息的实际投递消息数之差。 、 根据权利要求 4所述的短消息呼叫流量控制方法, 其中, 所述短消息所属号段 的普通消息阈值通过以下步骤获得:  When the short message that arrives is a normal message, it is determined whether the number of actual delivery messages of the common message is smaller than a common message threshold of the number segment of the short message, and is smaller than a maximum traffic threshold of the number segment of the short message. The difference between the actual number of delivery messages of the high priority message. The short message call flow control method according to claim 4, wherein the normal message threshold of the number segment to which the short message belongs is obtained by the following steps:
统计在当前时段之前 N 个时段内高优先级消息的待投递消息数 Tl、 Τ2、 、 Τη, Ν为自然数;  Counting the number of to-be-delivered messages of high priority messages in the N time periods before the current time period Tl, Τ2, Τη, Ν is a natural number;
获取所述短消息所属号段的最大流量阈值 Max;  Obtaining a maximum traffic threshold Max of the number segment of the short message;
确定所述短消息所属号段在当前时段内的普通消息阈值 Umax, 其表达式 为: IImax=Max― (T 1 +T2+ +Tn)÷N。 、 根据权利要求 1或 2所述的短消息呼叫流量控制方法, 其中, 所述将短消息投 递至所述短消息所属号段对应的基站控制器的步骤之后还包括:  Determining a common message threshold Umax of the number segment of the short message in the current time period, and the expression is: IImax=Max−(T 1 +T2+ +Tn)÷N. The short message call flow control method according to claim 1 or 2, wherein the step of delivering the short message to the base station controller corresponding to the number segment of the short message further comprises:
当所述短消息投递失败时, 判断所述短消息的投递错误码是否为归属位置 寄存器错误码;  When the short message delivery fails, determining whether the delivery error code of the short message is a home location register error code;
如果是, 则将所述短消息所属号段在当前时段内的实际投递消息数减一, 缓存所述短消息, 并返回统计所述短消息所属号段在当前时段内的实际投递消 息数的步骤;  If yes, the number of actual delivery messages of the number segment of the short message is reduced by one in the current time period, the short message is buffered, and the number of actual delivery messages of the number segment of the short message in the current time period is returned. Step
如果否, 则缓存所述短消息, 并返回统计所述短消息所属号段在当前时段 内的实际投递消息数的步骤;  If not, buffering the short message, and returning a step of counting the actual number of delivery messages of the number segment of the short message in the current time period;
以此循环。 、 一种短消息呼叫流量控制装置, 包括:  This cycle. A short message call flow control device, comprising:
接收模块, 设置为接收移动交换中心或服务提供商发送的短消息; 查询模块, 设置为查询所述短消息所属号段; 统计模块, 设置为统计所述短消息所属号段在当前时段内的实际投递消息 数; a receiving module, configured to receive a short message sent by the mobile switching center or the service provider; and a query module, configured to query the number segment of the short message; a statistics module, configured to count the number of actual delivery messages of the short message belonging to the current time period;
判断模块, 设置为判断所述短消息所属号段在当前时段内的实际投递消息 数是否小于所述短消息所属号段的流量阈值;  a judging module, configured to determine whether the number of actual delivery messages of the short message belonging to the current period is less than a traffic threshold of the number segment of the short message;
投递模块, 设置为当所述判断模块判定所述短消息所属号段在当前时段内 的实际投递消息数小于所述短消息所属号段的流量阈值时, 将所述短消息投递 至所述短消息所属号段对应的基站控制器。 、 根据权利要求 7所述的短消息呼叫流量控制装置, 其中, 还包括缓存模块, 设 置为当所述判断模块判定所述短消息所属号段在当前时段内的实际投递消息数 大于或等于所述短消息所属号段的流量阈值时, 缓存所述短消息;  a delivery module, configured to deliver the short message to the short when the determining module determines that the number of actual delivery messages of the short message belonging segment period in the current time period is less than the traffic threshold value of the short message belonging segment segment The base station controller corresponding to the segment to which the message belongs. The short message call flow control device according to claim 7, further comprising a cache module, configured to: when the determining module determines that the number of actual delivery messages of the short message belonging segment segment in the current time period is greater than or equal to The short message is cached when the traffic threshold of the short message belongs to the segment;
所述统计模块还设置为, 当下一时段到达时, 统计所述短消息所属号段在 下一时段内的实际投递消息数;  The statistic module is further configured to: when the next time period arrives, count the actual number of delivery messages of the number segment of the short message in the next time period;
所述判断模块还设置为, 判断所述短消息所属号段在下一时段内的实际投 递消息数是否小于所述短消息所属号段的流量阈值。 、 根据权利要求 7或 8所述的短消息呼叫流量控制装置, 其中, 所述短消息包括 高优先级消息和普通消息;  The determining module is further configured to: determine whether the number of actual delivery messages of the short message belonging segment segment in the next time period is smaller than the traffic threshold value of the short message belonging segment segment. The short message call flow control apparatus according to claim 7 or 8, wherein the short message comprises a high priority message and a normal message;
所述统计模块具体设置为- 统计所述短消息所属号段在当前时段内高优先级消息的实际投递消息数和 普通消息的实际投递消息数。 0、 根据权利要求 9所述的短消息呼叫流量控制装置, 其中, 所述判断模块具体设 置为- 当到达的所述短消息为高优先级消息时, 判断所述高优先级消息的实际投 递消息数是否小于所述短消息所属号段的最大流量阈值与所述普通消息的实际 投递消息数之差;  The statistic module is specifically configured to: - count the actual number of delivery messages of the high priority message and the actual number of delivery messages of the normal message in the current time period of the short message belonging segment. The short message call flow control apparatus according to claim 9, wherein the determining module is specifically configured to: when the short message that arrives is a high priority message, determine the actual delivery of the high priority message Whether the number of messages is smaller than a difference between a maximum traffic threshold of the number segment to which the short message belongs and an actual delivery message number of the normal message;
当到达的所述短消息为普通消息时, 判断所述普通消息的实际投递消息数 是否小于所述短消息所属号段的普通消息阈值、 且小于所述短消息所属号段的 最大流量阈值与所述高优先级消息的实际投递消息数之差。 1、 根据权利要求 10所述的短消息呼叫流量控制装置,其中,所述统计模块还设置 为: 统计在当前时段之前 N 个时段内高优先级消息的待投递消息数 Tl、 Τ2、 、 Τη, Ν为自然数; When the short message that arrives is a normal message, it is determined whether the number of actual delivery messages of the common message is smaller than a common message threshold of the number segment of the short message, and is smaller than a maximum traffic threshold of the number segment of the short message. The difference between the actual number of delivery messages of the high priority message. 1. The short message call flow control apparatus according to claim 10, wherein the statistics module is further configured to: Counting the number of to-be-delivered messages T1, Τ2, Τη, 高 of the high-priority messages in the N time periods before the current time period is 自然;
获取所述短消息所属号段的最大流量阈值 Max;  Obtaining a maximum traffic threshold Max of the number segment of the short message;
确定所述短消息所属号段在当前时段内的普通消息阈值 Umax, 其表达式 为: IImax=Max― (T 1 +T2+ +Tn)÷N。 根据权利要求 7或 8所述的短消息呼叫流量控制装置,其中,还包括反馈模块, 所述判断模块还设置为, 当所述短消息投递失败时, 判断所述短消息的投 递错误码是否为归属位置寄存器错误码;  Determining a common message threshold Umax of the number segment of the short message in the current time period, and the expression is: IImax=Max−(T 1 +T2+ +Tn)÷N. The short message call flow control device according to claim 7 or 8, further comprising a feedback module, wherein the determining module is further configured to: determine, when the short message delivery fails, whether the delivery error code of the short message is Is the home location register error code;
所述统计模块还设置为, 当所述判断模块判定所述短消息的投递错误码为 归属位置寄存器错误码时, 将所述短消息所属号段在当前时段内的实际投递消 息数减一;  The statistic module is further configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, reduce the number of actual delivery messages of the short message belonging number segment in the current time period by one;
所述反馈模块设置为, 当所述判断模块判定所述短消息的投递错误码为归 属位置寄存器错误码时, 缓存所述短消息, 并将所述短消息反馈给所述统计模 块; 当所述判断模块判定所述短消息的投递错误码不是归属位置寄存器错误码 时, 直接缓存所述短消息, 并将所述短消息反馈给所述统计模块。  The feedback module is configured to: when the determining module determines that the delivery error code of the short message is a home location register error code, buffering the short message, and feeding back the short message to the statistics module; When the determining module determines that the delivery error code of the short message is not the home location register error code, the short message is directly buffered, and the short message is fed back to the statistics module.
PCT/CN2013/082004 2013-03-22 2013-08-21 Method and apparatus for controlling traffic of short message service message call WO2014146394A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310093861.4A CN104066119B (en) 2013-03-22 2013-03-22 Short message call flow control methods and device
CN201310093861.4 2013-03-22

Publications (1)

Publication Number Publication Date
WO2014146394A1 true WO2014146394A1 (en) 2014-09-25

Family

ID=51553601

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082004 WO2014146394A1 (en) 2013-03-22 2013-08-21 Method and apparatus for controlling traffic of short message service message call

Country Status (2)

Country Link
CN (1) CN104066119B (en)
WO (1) WO2014146394A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597694A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 Message dilivery current-limiting method and device, electronic equipment
CN114979979A (en) * 2021-09-17 2022-08-30 中移互联网有限公司 Message processing method and message processing system thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462716B (en) * 2018-03-23 2021-03-19 厦门集微科技有限公司 Error code conversion method and device and computer readable storage medium
CN114039925B (en) * 2021-10-28 2023-11-28 北京思特奇信息技术股份有限公司 Dynamic flow control method based on priority in short message gateway system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068376A (en) * 2007-06-14 2007-11-07 中兴通讯股份有限公司 Short message system, flow control configurating method and flow controlling method
CN101141670A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Message distributing system and method
CN100407807C (en) * 2005-03-07 2008-07-30 中兴通讯股份有限公司 Short message down transmitting flow control method of short message centre
CN101404811A (en) * 2008-11-17 2009-04-08 中兴通讯股份有限公司 Cell short message flow control method and system
CN102271311A (en) * 2010-06-02 2011-12-07 中国移动通信集团浙江有限公司 Short message flow control method, system and short message center

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588555A (en) * 2008-05-21 2009-11-25 中兴通讯股份有限公司 Flow control method of short messages and short message gateway
CN102137445B (en) * 2010-09-16 2014-07-30 华为软件技术有限公司 Method and device for controlling data service flow of telecommunication network as well as communication system
CN102612007B (en) * 2011-01-19 2015-06-24 中国电信股份有限公司 Flow control method and device for short messages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407807C (en) * 2005-03-07 2008-07-30 中兴通讯股份有限公司 Short message down transmitting flow control method of short message centre
CN101141670A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Message distributing system and method
CN101068376A (en) * 2007-06-14 2007-11-07 中兴通讯股份有限公司 Short message system, flow control configurating method and flow controlling method
CN101404811A (en) * 2008-11-17 2009-04-08 中兴通讯股份有限公司 Cell short message flow control method and system
CN102271311A (en) * 2010-06-02 2011-12-07 中国移动通信集团浙江有限公司 Short message flow control method, system and short message center

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597694A (en) * 2018-09-29 2019-04-09 阿里巴巴集团控股有限公司 Message dilivery current-limiting method and device, electronic equipment
CN114979979A (en) * 2021-09-17 2022-08-30 中移互联网有限公司 Message processing method and message processing system thereof
CN114979979B (en) * 2021-09-17 2023-07-21 中移互联网有限公司 Message processing method and message processing system thereof

Also Published As

Publication number Publication date
CN104066119A (en) 2014-09-24
CN104066119B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
JP6605132B2 (en) User equipment and media streaming network support node
CN103733680B (en) Method and apparatus for controlling wireless uplink session
JP6422384B2 (en) Method for controlling packet access, network side device, terminal device, and communication system
CN101594588B (en) Method and system for controlling short message terminated call flow
WO2017148260A1 (en) Voice code sending method and apparatus
JP6219891B2 (en) Method, apparatus and communication system for control of pause timer
WO2014146394A1 (en) Method and apparatus for controlling traffic of short message service message call
CN101785275A (en) Be transmitted as media server chosen content speed by the frame of acting on behalf of FEEDBACK CONTROL
EP2925049A1 (en) Bandwidth management method, evolved node b, serving gateway, and communication system
CN103369674B (en) The distribution method of interface-free resources and equipment
CN101282173A (en) Method, system and apparatus for adjusting data package transmission velocity
WO2010099718A1 (en) Method and equipment for controlling data tranmission, and system thereof
CN103763216A (en) System and method for adjusting data transmission
CN113395671B (en) Message pushing rate adjusting method and device and server
WO2008011779A1 (en) Method and device for adjusting the air interface paging channel and access channel in communication system
CN102065382B (en) Method and system for dynamic flow control on message issuing of multimedia message service
CN110858844A (en) Service request processing method, control method, device, system and electronic equipment
WO2011106979A1 (en) Method for controlling accessing quantity of short message service and base station sub-system
CN101552771B (en) Media gateway, media gateway controller, multimedia telephone intercommunication method and system
CN103024683B (en) A kind of method of obedient party&#39;s state reporting in trunking communication
CN102711254A (en) Resource release control method of network side and radio network controller (RNC)
CN103731323A (en) Method and device for monitoring service traffic of mobile Internet
CN106572483B (en) Data transmission method and device and core network self-configuration self-optimization platform
CN1945989A (en) Method for service speed regulation under no cascade operation/no coder operation
WO2012149787A1 (en) Traffic control method and device

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

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

Country of ref document: EP

Kind code of ref document: A1