CN111328033A - Short message load transmission method and system - Google Patents

Short message load transmission method and system Download PDF

Info

Publication number
CN111328033A
CN111328033A CN202010163558.7A CN202010163558A CN111328033A CN 111328033 A CN111328033 A CN 111328033A CN 202010163558 A CN202010163558 A CN 202010163558A CN 111328033 A CN111328033 A CN 111328033A
Authority
CN
China
Prior art keywords
gateway
short message
gateway host
list
host
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010163558.7A
Other languages
Chinese (zh)
Other versions
CN111328033B (en
Inventor
李永巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN202010163558.7A priority Critical patent/CN111328033B/en
Publication of CN111328033A publication Critical patent/CN111328033A/en
Application granted granted Critical
Publication of CN111328033B publication Critical patent/CN111328033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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/16Gateway arrangements

Abstract

The invention relates to a short message load transmission method and a short message load transmission system.A list of effective gateway hosts is obtained by selecting the gateway hosts which are simultaneously included in a gateway host connection state list and a routing gateway host list, so that the gateway hosts in the effective gateway host list are ensured to be in a normal state, and a distributed gateway system cluster formed by the method realizes the load transmission of uplink short message data, and further can effectively transmit the uplink short message data to a short message service processing platform for processing in real time.

Description

Short message load transmission method and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a system for transmitting a short message load.
Background
With the development of mobile short message service, the number of uplink short messages received and processed by the short message service processing platform of each province per day reaches millions, so that the requirements on the stability and performance of the short message service processing platform are gradually improved. Meanwhile, based on the consideration of operation cost, all PC servers, namely gateway hosts, are adopted for uplink short message transmission, and meanwhile, in order to avoid single-point faults, a newly-built system is required to be deployed by adopting a multi-gateway-host distributed cluster, namely a distributed gateway system cluster, and can be dynamically expanded.
Therefore, how to successfully send each uplink short message to the short message service processing platform is a technical problem to be solved urgently in the industry.
Disclosure of Invention
The invention provides a short message load transmission method and a short message load transmission system aiming at the defects of the prior art.
The technical scheme of the short message load transmission method of the invention is as follows:
TCP connection is carried out on a plurality of gateway hosts, and a gateway host connection state list is generated;
generating a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform client of each gateway host;
selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list to obtain an effective gateway host list;
and extracting corresponding uplink short messages from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list, and sending the corresponding uplink short messages to a short message service processing platform through a short message service processing platform client of each gateway host.
The short message load transmission method has the following beneficial effects:
the effective gateway host list is obtained by selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list, so that the gateway hosts in the effective gateway host list are ensured to be in a normal state, the formed distributed gateway system cluster realizes the load transmission of the uplink short message data, and the uplink short message data can be effectively sent to the short message service processing platform in real time for processing.
On the basis of the above scheme, the short message load transmission method of the present invention can be further improved as follows.
Further, before extracting the corresponding uplink short message from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list, the method further includes:
and selecting any gateway host from the list of the effective gateway hosts in turn to acquire the uplink short message data, and sending the uplink short message data to the rest gateway hosts in the list of the effective gateway hosts.
Further, after generating the gateway host connection state list, the method further includes:
establishing socket connection among a plurality of gateway hosts, then carrying out heartbeat packet interaction, and updating a gateway host connection state list according to an interaction result;
then, selecting the gateway host included in the gateway host connection state list and the routing gateway host list at the same time to obtain an effective gateway host list, including:
and selecting the updated gateway host connection state list and the gateway hosts included in the routing gateway host list to obtain the effective gateway host list.
The beneficial effect of adopting the further scheme is that: and further ensuring that the gateway host in the effective gateway host list is in a normal state, and further ensuring that the uplink short message data can be effectively sent to the short message service processing platform for processing in real time.
Further, inquiring the preset connection number of the short message service processing platform client side which is connected with each gateway host in a preset manner;
and when the preset connection number of any gateway host does not exceed the maximum allowable access number of the short message service processing platform, opening the short message service processing platform client with the preset connection number for the gateway host until the connection number of the short message service processing platform client of each gateway host is obtained.
The beneficial effect of adopting the further scheme is that: the process of obtaining the number of connections of the short message service processing platform client of each gateway host is explained in detail.
Further, still include: monitoring the state of each gateway host in the list of valid gateway hosts;
when any gateway host in the effective gateway host list is monitored to have a fault, the gateway host stops extracting corresponding short message data from the uplink short message data, and the remaining gateway hosts in a normal state in the effective gateway host list are extracted.
The beneficial effect of adopting the further scheme is that: and monitoring the state of each gateway host in the effective gateway host list in real time, and when a fault gateway host occurs, automatically stopping data distribution of the gateway host and taking over the data by the rest normal gateway hosts so as to ensure that the uplink short message data can be effectively sent to the short message service processing platform for processing in real time.
The technical scheme of the short message load transmission system is as follows:
the system comprises a connection generation module, a list generation module, an intersection module and an extraction and sending module;
the connection generation module is used for performing TCP connection on a plurality of gateway hosts and generating a gateway host connection state list;
the list generating module is used for generating a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform client of each gateway host;
the intersection module is used for selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list to obtain an effective gateway host list;
the extraction and sending module is used for extracting corresponding uplink short messages from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list and sending the corresponding uplink short messages to the short message service processing platform through the short message service processing platform client of each gateway host.
The short message load transmission system has the following beneficial effects:
the effective gateway host list is obtained by selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list, so that the gateway hosts in the effective gateway host list are ensured to be in a normal state, the formed distributed gateway system cluster realizes the load transmission of the uplink short message data, and the uplink short message data can be effectively sent to the short message service processing platform in real time for processing.
On the basis of the above scheme, the short message load transmission method of the present invention can be further improved as follows.
Further, the extracting and sending module is further configured to select any gateway host from the list of effective gateway hosts in turn to obtain uplink short message data, and send the uplink short message data to the remaining gateway hosts in the list of effective gateway hosts.
The system comprises a plurality of gateway hosts, a heartbeat packet interaction module and an updating module, wherein the gateway hosts are connected with one another through a socket;
the intersection module is specifically configured to select a gateway host included in the updated gateway host connection state list and the routing gateway host list at the same time, and obtain the effective gateway host list.
The beneficial effect of adopting the further scheme is that: and further ensuring that the gateway host in the effective gateway host list is in a normal state, and further ensuring that the uplink short message data can be effectively sent to the short message service processing platform for processing in real time.
Further, the system also comprises a query connection module; the query connection module is configured to: and inquiring the preset connection number of the short message service processing platform client of each gateway host, and opening the short message service processing platform client with the preset connection number for the gateway host when the preset connection number of any gateway host does not exceed the maximum allowable access number of the short message service processing platform until the connection number of the short message service processing platform client of each gateway host is obtained.
The beneficial effect of adopting the further scheme is that: the process of obtaining the number of connections of the short message service processing platform client of each gateway host is explained in detail.
The system further comprises a monitoring module, wherein the monitoring module is used for monitoring the state of each gateway host in the effective gateway host list, and when any gateway host in the effective gateway host list is monitored to have a fault, the extracting and sending module enables the gateway host to stop extracting corresponding short message data from the uplink short message data, so that the rest gateway hosts in a normal state in the effective gateway host list are extracted.
The beneficial effect of adopting the further scheme is that: and monitoring the state of each gateway host in the effective gateway host list in real time, and when a fault gateway host occurs, automatically stopping data distribution of the gateway host and taking over the data by the rest normal gateway hosts so as to ensure that the uplink short message data can be effectively sent to the short message service processing platform for processing in real time.
Drawings
Fig. 1 is a schematic flow chart of a short message load transmission method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a short message load transmission system according to an embodiment of the present invention;
Detailed Description
As shown in fig. 1, a short message load transmission method according to an embodiment of the present invention includes the following steps:
s1, performing TCP connection on the multiple gateway hosts and generating a gateway host connection state list;
s2, generating a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform client of each gateway host;
s3, selecting the gateway host which is included in the gateway host connection state list and the routing gateway host list at the same time, and obtaining an effective gateway host list;
and S4, extracting corresponding uplink short messages from the uplink short message data according to preset rules through each gateway host in the effective gateway host list, and sending the corresponding uplink short messages to a short message service processing platform through a short message service processing platform client of each gateway host.
The effective gateway host list is obtained by selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list, so that the gateway hosts in the effective gateway host list are ensured to be in a normal state, the formed distributed gateway system cluster realizes the load transmission of the uplink short message data, and the uplink short message data can be effectively sent to the short message service processing platform in real time for processing.
Wherein, the number of the gateway hosts in the effective gateway host list may be N, N is a positive integer, and N is greater than or equal to 2, which is described by taking N as an example, at this time, there are 3 gateway hosts, which are the first gateway host, the second gateway host, and the third gateway host, respectively, and then, S1 specifically includes:
s10, when starting the FwdServer process, each gateway host is registered in a SERVER summary table SERVER _ LIST of the distributed memory database, and the IP address, the port and the state of each network host are filled in the SERVER summary table SERVER _ LIST, wherein the states comprise a normal state and a fault state;
s11, setting each gateway host to scan SERVER summary table SERVER _ LIST at fixed time when starting or running FwdClient process, obtaining IP address, port and state registered in SERVER summary table SERVER _ LIST when starting FwdServer process, and generating initial LIST of gateway host connection state LIST;
s12, the FwdClient process of each gateway host establishes TCP long connection to the FwdServer processes of all other gateway hosts, and a gateway host connection state list is obtained according to the connection result.
The obtaining of the connection number of the short message service processing platform client of each gateway host in S2 specifically includes:
s200, querying a preset connection number of a short message service processing platform client preset connected to each gateway host, which is described by taking a first gateway host as an example, specifically:
1) the method comprises the steps that a first gateway host starts a short message processing platform to connect an interactive process, and a connection query request SpLinkQuery is initiated to an FwdClient process of the first gateway host through the short message processing platform to connect the interactive process;
2) the FwdClient process of the first gateway host acquires the preset connection number of the short message service processing platform client of each gateway host from the distributed memory database table SP _ LINK, for example, the preset connection number of the short message service processing platform client of the first gateway host is 1, the preset connection number of the short message service processing platform client of the first gateway host is 2, and the preset connection number of the short message service processing platform client of the third gateway host is 3;
the short message service processing platform client can be understood as an account for logging in the short message service processing platform, and when the first gateway host, the second gateway host and the third gateway host are connected with the short message service processing platform client, the obtained uplink short message can be sent to the short message service processing platform through the short message service processing platform client of each gateway host;
3) the FwdClient process of the first gateway host feeds back the acquired preset connection number of the short message service processing platform client of each gateway host to the short message processing platform connection interaction process through the connection query result process SpLinkResp;
s201, when the preset connection number of any gateway host does not exceed the maximum allowable access number of the short message service processing platform, opening a short message service processing platform client with the preset connection number for the gateway host; by analogy, the connection number of the short message service processing platform client of each gateway host is obtained;
s201 and S202 specifically include:
1) for the first gateway host, if the maximum allowable access number of the short message service processing platform is 2, and the preset connection number of the short message service processing platform client of the first gateway host is 1, namely 1<2, the first gateway host is connected with 1 short message service processing platform client;
2) for the second gateway host, if the maximum allowable access number of the short message service processing platform is 2, because the preset connection number of the short message service processing platform client of the second gateway host is 2, that is 2, opening and connecting 2 short message service processing platform clients for the second gateway host;
3) for the third gateway host, if the maximum allowable access number of the short message service processing platform is 2, and the preset connection number of the short message service processing platform client of the third gateway host is 3, namely 3 is more than 2, the third gateway host can be connected with 2 short message service processing platform clients and modify the table data in the distributed memory database table SP _ LINK, or the third gateway host is directly abandoned and is not connected with the short message service processing platform client;
the maximum allowable access number of the short message service processing platform can be set for the first gateway host, the second gateway host and the third gateway host simultaneously or respectively;
when starting the wdServer process to initialize each gateway host, setting the access connection number of all the short message service processing platform clients of each gateway host to be 0, counting the connection number of the short message service processing platform clients of each gateway host in real time during operation, and updating the table data of the distributed memory database table SP _ LINK when the change occurs;
the distributed memory database table SP _ LINK comprises: the number of each gateway host, the number of the short message service processing platform connection accounts, namely the short message service processing platform client, the number of the short message service processing platform clients, and the valid state of the short message service processing platform client, wherein the valid state of the short message service processing platform client comprises a valid state or an invalid state, which respectively represent that the corresponding short message service processing platform client can be normally used or can not be normally used.
The process of generating the routing gateway host list in S2 is described with the first gateway host as an example, specifically:
1) the first gateway host starts an uplink routing process, and the uplink routing process forwards the uplink short message data to the FwdClient process of the first gateway host, wherein the process of obtaining the uplink short message data can be understood as follows: the plurality of users send the short messages to a plurality of corresponding base stations, and the plurality of base stations send the received short messages to an uplink short message center for summarizing to obtain uplink short message data;
the uplink short message data can be stored in a distributed memory database or a non-relational database NoSQL, if the uplink short message data can be stored in the distributed memory database, the uplink short message center takes the first gateway host as an example for explanation, the uplink short message center transfers the uplink short message data to an uplink routing process of the first gateway host through an uplink receiving process of the first gateway host, and in a forwarding data table FwdMsg stored in the distributed memory database through an FwdClient process of the first gateway host, the forwarding data table FwdMsg comprises: the message serial number of each uplink short message, the short message service processing platform connection account, namely the short message service processing platform client, the source host computer number, the source short message center number, the destination host computer number, the uplink message information, the data insertion time and the like.
2) The FwdClient process of the first gateway host obtains the connection number of the short message service processing platform clients of the first gateway host, the second gateway host and the third gateway host through the steps from S200 to S202, and then generates a routing gateway host list according to the mobile phone number of the uplink short message data, the sending port, the uplink short message such as the uplink short message content and other routing information.
In S4, extracting corresponding uplink short messages from the uplink short message data according to a preset rule by each gateway host in the effective gateway host list, which can be understood as the following two ways:
1) the numbers of the first gateway host, the second gateway host and the third gateway host, namely the numbers of the target host, are respectively set to be 1, 2 and 3, the uplink short messages in the uplink short message data are divided into three parts, for example, the first part, the second part and the third part respectively comprise 10 uplink short messages, the numbers of the first part, the second part and the third part are also 1, 2 and 3, and the gateway host extracts the uplink short messages with the same number from the uplink short message data, namely, the first gateway host acquires 10 uplink short messages of the first part, the second gateway host acquires 10 uplink short messages of the second part, and the third gateway host acquires 10 uplink short messages of the third part.
2) Assuming that the number corresponding to the first gateway host is '10086', the number corresponding to the second gateway host is '10010' and the number corresponding to the third gateway host is '10000', the first gateway host acquires the uplink short message sent to '10086' from the uplink short message data, the second gateway host acquires the uplink short message sent to '10010' from the uplink short message data, and the third gateway host acquires the uplink short message sent to '10000' from the uplink short message data;
the FwdServer process of each gateway host inquires and extracts data in a forwarding data table FwdMsg of the distributed memory database in real time to obtain corresponding uplink short messages, the obtained uplink short messages are sent to the uplink routing process of each gateway host through the FwdServer process of each gateway host, and the uplink routing process is forwarded to the short message processing platform of each gateway host to be connected with the interaction process and then sent to the short message service processing platform for processing.
The FwdServer process of each gateway host stores the running log into the log fwdrcv _ log of each gateway host in the starting or running process, and the FwdClient process of each gateway host stores the running log into the log fwdsnd _ log of each gateway host in the starting or running process.
Preferably, in the above technical solution, in S4, before obtaining the effective gateway host list before extracting the corresponding uplink short message from the uplink short message data according to a preset rule by each gateway host in the effective gateway host list, the method further includes:
s04, selecting any gateway host from the list of effective gateway hosts in turn to obtain the uplink short message data, and sending the uplink short message data to the remaining gateway hosts in the list of effective gateway hosts, taking the example of selecting a first gateway host as an example for explanation, specifically: the forwarding data table FwdMsg is stored to a first gateway host, then the first gateway host forwards the forwarding data table FwdMsg to a second gateway host and a third gateway host, and then the first gateway host, the second gateway host and the third gateway host extract corresponding uplink short messages from the uplink short message data according to preset rules and send the uplink short messages to a short message service processing platform through a short message service processing platform client of each gateway host.
When the forwarding data table FwdMsg is received again, the forwarding data table FwdMsg can be received by the second gateway host and the third gateway host in sequence and then forwarded to other gateway hosts.
Preferably, in the above technical solution, the method further comprises:
establishing socket connection among a plurality of gateway hosts, then carrying out heartbeat packet interaction, updating the gateway host connection state list according to an interaction result, and then selecting the gateway hosts included in the gateway host connection state list and the routing gateway host list to obtain an effective gateway host list, wherein the heartbeat packet interaction comprises the following steps: and selecting the updated gateway host connection state list and the gateway hosts included in the routing gateway host list to obtain the effective gateway host list.
And selecting the updated gateway host connection state list and the gateway hosts included in the routing gateway host list to obtain the effective gateway host list.
And further ensuring that the gateway host in the effective gateway host list is in a normal state, and further ensuring that the uplink short message data can be effectively sent to the short message service processing platform for processing in real time. Specifically, the method comprises the following steps:
the FwdClient process of the first gateway host establishes socket connection with the FwdServer process of the second gateway host and the FwdServer process of the third gateway host respectively, the FwdClient process of the second gateway host establishes socket connection with the FwdServer process of the first gateway host and the FwdServer process of the third gateway host respectively, and the FwdClient process of the third gateway host establishes socket connection with the FwdServer process of the first gateway host and the FwdServer process of the second gateway host respectively, so that heartbeat packet interaction is maintained, thereby monitoring the running state of all gateway hosts in real time and avoiding sending uplink short messages to the gateway hosts with faults.
For example, when a first gateway host is detected to be in a fault state, that is, the first gateway host is in a fault state, and the second gateway host and the third gateway host are in normal states, the first gateway host in the fault state does not exist in the updated gateway host connection state list, and the first gateway host in the fault state does not exist in the obtained effective gateway host list, that is, the gateway host in the fault state is deleted, so that the uplink data is prevented from being sent to the gateway host in the fault state.
Preferably, in the above technical solution, the method further comprises:
s5, monitoring the state of each gateway host in the effective gateway host list, and monitoring the state of each gateway host in the effective gateway host list in a mode of 'heartbeat packet interaction after socket connection is established among a plurality of gateway hosts';
s6, when it is monitored that any gateway host in the list of valid gateway hosts fails, stopping the gateway host from extracting corresponding short message data from the uplink short message data, and extracting the remaining gateway hosts in a normal state in the list of valid gateway hosts, specifically:
when the second gateway host is monitored to have a fault, the second part of uplink short messages are automatically sent to the first gateway host or the third gateway host, namely, the first gateway host or the third gateway host acquires the second part of uplink short messages and forwards the uplink short messages to the short message service processing platform, namely, the state of each gateway host in the list of effective gateway hosts is monitored in real time, and when the gateway host has the fault, the data distribution of the gateway host is automatically stopped and the rest normal gateway hosts take over, so that the uplink short message data can be effectively sent to the short message service processing platform in real time for processing.
In another embodiment, when a distributed gateway system cluster formed by gateway hosts in an effective gateway host list is expanded, the FwdServer process, the FwdClient process, the short message processing platform connection interaction process and other processes of the gateway hosts to be expanded can be started to automatically perform registration and connection operations, and all data forwarding configuration is automatically completed.
In the above embodiments, although the steps are numbered as S1, S2, etc., but only the specific embodiments are given in the present application, and those skilled in the art can adjust the execution sequence of S1, S2, etc. according to the actual situation, which is also within the protection scope of the present invention.
As shown in fig. 2, a short message load transmission system 200 according to an embodiment of the present invention includes a connection generating module 210, a list generating module 220, an intersection module 230, and an extracting and sending module 240;
the connection generating module 210 is configured to perform TCP connection between multiple gateway hosts and generate a gateway host connection state list;
the list generating module 220 is configured to generate a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform clients of each gateway host;
the intersection module 230 is configured to select a gateway host included in the gateway host connection status list and the routing gateway host list at the same time, so as to obtain an effective gateway host list;
the extracting and sending module 240 is configured to extract a corresponding uplink short message from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list, and send the uplink short message to a short message service processing platform through a short message service processing platform client of each gateway host.
The effective gateway host list is obtained by selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list, so that the gateway hosts in the effective gateway host list are ensured to be in a normal state, the formed distributed gateway system cluster realizes the load transmission of the uplink short message data, and the uplink short message data can be effectively sent to the short message service processing platform in real time for processing. Preferably, in the above technical solution, the extracting and sending module is further configured to select any gateway host from the list of effective gateway hosts in turn to obtain uplink short message data, and send the uplink short message data to the remaining gateway hosts in the list of effective gateway hosts.
Preferably, in the above technical solution, the system further comprises an update module, wherein the update module is configured to perform heartbeat packet interaction after socket connection is established among the plurality of gateway hosts, and update the gateway host connection state list according to an interaction result;
the intersection module is specifically configured to select a gateway host included in the updated gateway host connection state list and the routing gateway host list at the same time, and obtain the effective gateway host list.
Preferably, in the above technical solution, the system further comprises an inquiry connection module; the query connection module is configured to: and inquiring the preset connection number of the short message service processing platform client of each gateway host, and opening the short message service processing platform client with the preset connection number for the gateway host when the preset connection number of any gateway host does not exceed the maximum allowable access number of the short message service processing platform until the connection number of the short message service processing platform client of each gateway host is obtained.
Preferably, in the above technical solution, the system further includes a monitoring module, where the monitoring module is configured to monitor a state of each gateway host in the list of effective gateway hosts, and when it is monitored that any gateway host in the list of effective gateway hosts fails, the extracting and sending module 240 stops the gateway host from extracting corresponding short message data from the uplink short message data, so that the remaining gateway hosts in a normal state in the list of effective gateway hosts are extracted.
The above steps for realizing the corresponding functions of each parameter and each unit module in the short message load transmission system 200 of the present invention can refer to each parameter and step in the above embodiment of a short message load transmission method, which are not described herein again.
In the present invention, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A short message load transmission method is characterized by comprising the following steps:
TCP connection is carried out on a plurality of gateway hosts, and a gateway host connection state list is generated;
generating a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform client of each gateway host;
selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list to obtain an effective gateway host list;
and extracting corresponding uplink short messages from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list, and sending the corresponding uplink short messages to a short message service processing platform through a short message service processing platform client of each gateway host.
2. The method of claim 1, wherein before extracting the corresponding uplink short message from the uplink short message data according to a preset rule through each gateway host in the list of valid gateway hosts, the method further comprises:
and selecting any gateway host from the list of the effective gateway hosts in turn to acquire the uplink short message data, and sending the uplink short message data to the rest gateway hosts in the list of the effective gateway hosts.
3. The short message load transmission method according to claim 1 or 2, wherein after the generating the gateway host connection state list, the method further comprises:
establishing socket connection among a plurality of gateway hosts, then carrying out heartbeat packet interaction, and updating a gateway host connection state list according to an interaction result;
then, selecting the gateway host included in the gateway host connection state list and the routing gateway host list at the same time to obtain an effective gateway host list, including:
and selecting the updated gateway host connection state list and the gateway hosts included in the routing gateway host list to obtain the effective gateway host list.
4. The short message load transmission method according to claim 3, further comprising:
inquiring the preset connection number of the short message service processing platform client side which is connected with each gateway host in a preset manner;
and when the preset connection number of any gateway host does not exceed the maximum allowable access number of the short message service processing platform, opening the short message service processing platform client with the preset connection number for the gateway host until the connection number of the short message service processing platform client of each gateway host is obtained.
5. The short message load transmission method according to claim 1, 2 or 4, further comprising:
monitoring the state of each gateway host in the list of valid gateway hosts;
when any gateway host in the effective gateway host list is monitored to have a fault, the gateway host stops extracting corresponding short message data from the uplink short message data, and the remaining gateway hosts in a normal state in the effective gateway host list are extracted.
6. A short message load transmission system is characterized by comprising a connection generation module, a list generation module, an intersection module and an extraction and sending module;
the connection generation module is used for performing TCP connection on a plurality of gateway hosts and generating a gateway host connection state list;
the list generating module is used for generating a routing gateway host list according to the routing information of the uplink short message data and the connection number of the short message service processing platform client of each gateway host;
the intersection module is used for selecting the gateway hosts which are simultaneously included in the gateway host connection state list and the routing gateway host list to obtain an effective gateway host list;
the extraction and sending module is used for extracting corresponding uplink short messages from the uplink short message data according to a preset rule through each gateway host in the effective gateway host list and sending the corresponding uplink short messages to the short message service processing platform through the short message service processing platform client of each gateway host.
7. The system of claim 6, wherein the message load is a message load,
the extraction and transmission module is further used for selecting any gateway host from the list of the effective gateway hosts in turn to acquire uplink short message data, and transmitting the uplink short message data to the rest gateway hosts in the list of the effective gateway hosts.
8. The short message load transmission system according to claim 6 or 7, further comprising an update module, wherein the update module is configured to perform heartbeat packet interaction after socket connection is established among the plurality of gateway hosts, and update the gateway host connection state list according to an interaction result;
the intersection module is specifically configured to select a gateway host included in the updated gateway host connection state list and the routing gateway host list at the same time, and obtain the effective gateway host list.
9. The short message load transmission system of claim 8, further comprising a query connection module; the query connection module is configured to: and inquiring the preset connection number of the short message service processing platform client side which is connected with each gateway host in a preset manner, and opening the short message service processing platform client side with the preset connection number for the gateway host when the preset connection number of any gateway host is not more than the maximum allowable access number of the short message service processing platform until the connection number of the short message service processing platform client side of each gateway host is obtained.
10. The system according to claim 6, 7 or 9, further comprising a monitoring module, wherein the monitoring module is configured to monitor a state of each gateway host in the list of effective gateway hosts, and when it is monitored that any gateway host in the list of effective gateway hosts fails, the extracting and sending module stops the gateway host from extracting corresponding short message data from the uplink short message data, so that the remaining gateway hosts in a normal state in the list of effective gateway hosts are extracted.
CN202010163558.7A 2020-03-10 2020-03-10 Short message load transmission method and system Active CN111328033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010163558.7A CN111328033B (en) 2020-03-10 2020-03-10 Short message load transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010163558.7A CN111328033B (en) 2020-03-10 2020-03-10 Short message load transmission method and system

Publications (2)

Publication Number Publication Date
CN111328033A true CN111328033A (en) 2020-06-23
CN111328033B CN111328033B (en) 2021-12-28

Family

ID=71171569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010163558.7A Active CN111328033B (en) 2020-03-10 2020-03-10 Short message load transmission method and system

Country Status (1)

Country Link
CN (1) CN111328033B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115474165A (en) * 2021-05-24 2022-12-13 中移动金融科技有限公司 Self-monitoring dynamic adjustment method and system for short message service

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479497A (en) * 2002-08-29 2004-03-03 中国移动通信集团公司 Short message transfer system based on internet and method of data transfer
CN1758774A (en) * 2004-10-10 2006-04-12 华为技术有限公司 Method for selecting short message routing at multiple path
US7793334B2 (en) * 2001-11-16 2010-09-07 At&T Mobility Ii Llc System and method for password protecting a distribution list
CN102325313A (en) * 2011-08-16 2012-01-18 华为终端有限公司 Mobile terminal gateway table-updating method, mobile terminal and gateway system
CN102811452A (en) * 2011-05-31 2012-12-05 德赛电子(惠州)有限公司 Distributed wireless gateway system and communication method
CN103188144A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 System and method for achieving distributed gateway intercommunication
CN103618667A (en) * 2013-12-16 2014-03-05 苏州工业园区服务外包职业学院 Information transfer method, access gateway and system
CN104066064A (en) * 2014-06-26 2014-09-24 深圳市东信时代信息技术有限公司 SMS gateway distributed control system based on concurrency and method thereof
CN105992177A (en) * 2015-01-30 2016-10-05 中国移动通信集团广东有限公司 Method, device and system for improving availability of mobile agent server
CN108737260A (en) * 2017-04-13 2018-11-02 中国移动通信集团上海有限公司 A kind of industry short message sending method, controller, interchanger and system
US20180324134A1 (en) * 2012-05-31 2018-11-08 Microsoft Technology Licensing, Llc Two-way Message Service and Voice Communication

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7793334B2 (en) * 2001-11-16 2010-09-07 At&T Mobility Ii Llc System and method for password protecting a distribution list
CN1479497A (en) * 2002-08-29 2004-03-03 中国移动通信集团公司 Short message transfer system based on internet and method of data transfer
CN1758774A (en) * 2004-10-10 2006-04-12 华为技术有限公司 Method for selecting short message routing at multiple path
CN102811452A (en) * 2011-05-31 2012-12-05 德赛电子(惠州)有限公司 Distributed wireless gateway system and communication method
CN102325313A (en) * 2011-08-16 2012-01-18 华为终端有限公司 Mobile terminal gateway table-updating method, mobile terminal and gateway system
CN103188144A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 System and method for achieving distributed gateway intercommunication
US20180324134A1 (en) * 2012-05-31 2018-11-08 Microsoft Technology Licensing, Llc Two-way Message Service and Voice Communication
CN103618667A (en) * 2013-12-16 2014-03-05 苏州工业园区服务外包职业学院 Information transfer method, access gateway and system
CN104066064A (en) * 2014-06-26 2014-09-24 深圳市东信时代信息技术有限公司 SMS gateway distributed control system based on concurrency and method thereof
CN105992177A (en) * 2015-01-30 2016-10-05 中国移动通信集团广东有限公司 Method, device and system for improving availability of mobile agent server
CN108737260A (en) * 2017-04-13 2018-11-02 中国移动通信集团上海有限公司 A kind of industry short message sending method, controller, interchanger and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115474165A (en) * 2021-05-24 2022-12-13 中移动金融科技有限公司 Self-monitoring dynamic adjustment method and system for short message service

Also Published As

Publication number Publication date
CN111328033B (en) 2021-12-28

Similar Documents

Publication Publication Date Title
US8892768B2 (en) Load balancing apparatus and load balancing method
CA2699314C (en) Failover in a host concurrently supporting multiple virtual ip addresses across multiple adapters
CN101605108B (en) Method, system and apparatus for instant communication
US10313452B2 (en) Migrating a chat message service provided by a chat server to a new chat server
CN110351246A (en) Server cluster system Socket management method and device
CN111787079B (en) Communication method, device, server, system and medium based on communication group
CN107204873B (en) Method for switching target domain name resolution server and related equipment
CN107528891B (en) Websocket-based automatic clustering method and system
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN113596191A (en) Data processing method, network element equipment and readable storage medium
CN111917562B (en) Broadcast message forwarding method, device, equipment and storage medium
US6389550B1 (en) High availability protocol computing and method
CN107689878A (en) TCP length connection SiteServer LBSs based on name scheduling
CN106101297B (en) A kind of message answer method and device
CN111328033B (en) Short message load transmission method and system
US11863633B2 (en) Cloud communication method and apparatus
CN112968965B (en) Metadata service method, server and storage medium for NFV network node
CN112217735A (en) Information synchronization method and load balancing system
CN106708881B (en) Interaction method and device based on network file system
CN107911496A (en) A kind of VPN service terminal acts on behalf of the method and device of DNS
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
CN103138961B (en) server control method, controlled server and central control server
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN111010425A (en) Server connection method, load balancing equipment and electronic equipment
CN110602143A (en) Method, system and readable storage medium for realizing communication between PC (personal computer) end and remote equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant