CN108616429B - reconnection method and device for push service - Google Patents
reconnection method and device for push service Download PDFInfo
- Publication number
- CN108616429B CN108616429B CN201810456987.6A CN201810456987A CN108616429B CN 108616429 B CN108616429 B CN 108616429B CN 201810456987 A CN201810456987 A CN 201810456987A CN 108616429 B CN108616429 B CN 108616429B
- Authority
- CN
- China
- Prior art keywords
- reconnection
- abnormal
- push service
- communication link
- index
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000002159 abnormal effect Effects 0.000 claims abstract description 220
- 238000004891 communication Methods 0.000 claims abstract description 114
- 230000004044 response Effects 0.000 claims abstract description 48
- 238000012544 monitoring process Methods 0.000 claims abstract description 25
- 230000003213 activating effect Effects 0.000 claims abstract description 8
- 230000005856 abnormality Effects 0.000 claims description 70
- 230000005540 biological transmission Effects 0.000 claims description 28
- 238000004364 calculation method Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 15
- 238000013475 authorization Methods 0.000 claims description 10
- 238000012360 testing method Methods 0.000 claims description 10
- 230000000977 initiatory effect Effects 0.000 claims 2
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention is suitable for the technical field of Internet, and provides a reconnection method and a reconnection device for push service, wherein the reconnection method comprises the following steps: if a push service starting instruction is received, activating an abnormal reconnection monitor; adding the communication link to a monitoring object list of an application environment acquisition thread, and acquiring the operating parameters of the communication link through the application environment acquisition thread; calling the abnormal reconnection monitor to extract operation parameters from output signals of the application environment acquisition threads, and determining abnormal indexes of the operation parameters; and if the abnormal index is larger than the abnormal threshold, performing reconnection operation based on the reconnection response parameters, and acquiring the reconnected abnormal index until the reconnected abnormal index is smaller than or equal to the abnormal threshold. The embodiment of the invention does not need to rely on the cycle task under the main thread to detect the abnormity of the communication link, and releases a large amount of resources originally used for maintaining the cycle task, thereby improving the efficiency of reconnection operation.
Description
Technical Field
the invention belongs to the technical field of internet, and particularly relates to a reconnection method and reconnection equipment for push services.
background
because users between different servers cannot directly transmit messages to each other, the messages can be transmitted to each other in a manner that one server issues messages to a push service database and then pushes the messages to another server subscribed with push services, and therefore, whether a communication link between the server and the push service database is reliable or not directly affects communication efficiency between the users.
the existing reconnection method for the push service mainly detects whether a communication link is interrupted or not by creating a loop task under a main thread of a server, however, the loop task brings a large computational burden to the server, and when the communication link is abnormal, the server not only needs to allocate resources to execute reconnection operation, but also needs to spend extra computational resources to maintain the loop task, thereby reducing reconnection efficiency.
disclosure of Invention
In view of this, embodiments of the present invention provide a reconnection method and apparatus for a push service, so as to solve the problem that the existing reconnection method for a push service not only needs to allocate resources to perform reconnection operations, but also needs to spend additional computational resources to maintain a loop task of monitoring connection anomalies, and the reconnection efficiency is low.
a first aspect of an embodiment of the present invention provides a reconnection method for a push service, including:
if a push service starting instruction is received, activating an abnormal reconnection monitor; the abnormal reconnection monitor is used for monitoring whether a communication link between the abnormal reconnection monitor and a push service database is abnormal or not; the abnormal reconnection listener is configured with an abnormal threshold and reconnection response parameters;
adding the communication link to a monitoring object list of an application environment acquisition thread, and acquiring the operating parameters of the communication link through the application environment acquisition thread;
Calling the abnormal reconnection monitor to extract the operating parameters from output signals of the application environment acquisition threads, and determining abnormal indexes of the operating parameters;
And if the abnormal index is larger than the abnormal threshold, performing reconnection operation based on the reconnection response parameters, and acquiring the reconnected abnormal index until the reconnected abnormal index is smaller than or equal to the abnormal threshold.
a second aspect of embodiments of the present invention provides a reconnection device for a push service, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the first aspect when executing the computer program.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of the first aspect.
The embodiment of the invention provides a reconnection method of a push service and a terminal device, which have the following beneficial effects:
the embodiment of the invention activates an abnormal reconnection monitor for monitoring the abnormal condition of a communication link between a user and a push service database when detecting that the user initiates a push service starting instruction, and adds the communication link into a monitored object list to obtain the operating parameters of the communication link in real time; because the abnormal reconnection listener is configured with the abnormal threshold and the reconnection response parameters, whether the communication link is abnormal or not can be automatically identified, the main thread of the server is not needed for monitoring the abnormality, and resources occupied by abnormal monitoring operation are reduced. When the abnormal reconnection monitor identifies that the abnormal index calculated based on the operation parameters is larger than a preset prestored threshold value, reconnection operation is executed based on reconnection response parameters, a communication link between the abnormal reconnection monitor and a pushing service database is maintained, and the reliability of data transmission is improved. Compared with the existing reconnection method for push service, the method has the advantages that the monitor has autonomy and can be managed by the sub-thread, so that the abnormity of the communication link is detected without depending on the circular task under the main thread, a large amount of resources originally used for maintaining the circular task are released, and the reconnection operation efficiency is improved.
Drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
fig. 1 is a flowchart of an implementation of a reconnection method for a push service according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating an implementation details of a reconnection method S104 for push service according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a detailed implementation of a reconnection method S103 for push services according to a third embodiment of the present invention;
Fig. 4 is a flowchart of a detailed implementation of a reconnection method for push services according to a fourth embodiment of the present invention;
Fig. 5 is a flowchart of a detailed implementation of a reconnection method for a push service according to a fifth embodiment of the present invention;
Fig. 6 is a block diagram illustrating a reconnecting apparatus for push service according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a reconnection device for a push service according to another embodiment of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention activates an abnormal reconnection monitor for monitoring the abnormal condition of a communication link between a user and a push service database when detecting that the user initiates a push service starting instruction, and adds the communication link into a monitored object list to obtain the operating parameters of the communication link in real time; because the abnormal reconnection listener is configured with the abnormal threshold and the reconnection response parameters, whether the communication link is abnormal or not can be automatically identified, the main thread of the server is not needed for monitoring the abnormality, and resources occupied by abnormal monitoring operation are reduced. When the abnormal reconnection monitor identifies that the abnormal index calculated based on the operation parameters is larger than a preset prestored threshold value, reconnection operation is executed based on reconnection response parameters, a communication link between the abnormal reconnection monitor and a push service database is maintained, the reliability of data transmission is improved, and the problems that the existing reconnection method of the push service needs to allocate resources to execute reconnection operation, needs to spend extra operation resources to maintain a cycle task for monitoring abnormal connection, and is low in reconnection efficiency are solved.
In the embodiment of the present invention, the execution subject of the flow is a reconnection device for push service. The reconnection device of the push service includes but is not limited to: the device comprises a notebook computer, a server, a tablet computer, a smart phone and the like with a reconnection function of a push service. In particular, the reconnected device of the push service is specifically a device that subscribes to the Redis database server, and the communication connection with the Redis database server is continuously maintained during the subscription. Fig. 1 shows a flowchart of an implementation of a reconnection method for a push service according to a first embodiment of the present invention, which is detailed as follows:
In S101, if a push service starting instruction is received, an abnormal reconnection monitor is activated; the abnormal reconnection monitor is used for monitoring whether a communication link between the abnormal reconnection monitor and a push service database is abnormal or not; the exception reconnection listener is configured with an exception threshold and reconnection response parameters.
In this embodiment, the reconnected device of the push service may receive information pushed by the push server in a subscription manner, and in this case, if the push server receives messages sent by other devices, the push server will send the received messages to each device subscribed to the push server, thereby implementing information transfer across servers. Certainly, the reconnection device can receive the message pushed by the push server, issue information to the push server, and push information to other devices through the push server.
In this embodiment, when the reconnection device receives a push service start instruction sent by a user, an abnormal reconnection listener is activated, and whether a communication link between the reconnection device and the push service database is abnormal is monitored through the abnormal reconnection listener. Optionally, when the reconnection device for the push service is started, a communication connection may be automatically established with the push service database, and a corresponding communication link is generated, in this case, that is, after the reconnection device is started, a push server start instruction may be generated, a push service function is started, and the abnormal reconnection listener is correspondingly activated.
Optionally, before S101, the method further includes: the business layer in the reconnection equipment of the push service is built by a Spring open source framework. The reconnection device creates a listener, configures the created listener based on an exception threshold and a reconnection response parameter, associates the listener with an Event to be monitored, namely configures a listener class corresponding to the listener and an Event class corresponding to the monitoring Event under the spring open-source framework, and declares the two classes in a configuration file of the spring open-source framework. Since the push service is operated in the service layer, and the service layer of the reconnection device is built based on the spring open-source framework, if the abnormal reconnection listener can be automatically activated when the push service is started, the corresponding listener class and Event class need to be configured in the spring open-source framework.
in this embodiment, the abnormal reconnection listener is configured with an abnormal threshold, and identifies whether the current communication link is in an abnormal state based on the abnormal threshold, which is a criterion for identifying an abnormality; the abnormal reconnection listener is also provided with a reconnection response parameter, and the reconnection equipment can execute reconnection operation corresponding to the reconnection response parameter based on the reconnection response parameter. It should be noted that the two types of parameters may be set by a user of the reconnected device, or may be uniformly sent to each device subscribed to the push service by the push service database. In this case, when the push service database detects that any device sends a push service registration request to the push service database, and when registration success information is returned, the two parameters are encapsulated in the registration success information, so that each device subscribed to the push service database configures an abnormal reconnection listener based on the two types of parameters.
in S102, the communication link is added to a monitored object list of an application environment acquisition thread, and the operating parameters of the communication link are acquired by the application environment acquisition thread.
In this embodiment, after activating the abnormal reconnection listener, the reconnection device adds a monitored object corresponding to the abnormal reconnection listener, that is, a communication link between the reconnection device and the push service database, to a monitored object list of the application environment acquisition thread, acquires an operating parameter of the communication link through the application environment acquisition thread, and identifies whether the communication link is in an abnormal state based on the acquired operating parameter. Due to the occurrence of the abnormality of the communication link, the abnormality can be generally reflected on the operation parameters thereof, namely, the relevant parameters in the transmission process, such as transmission rate, time delay, signal-to-noise ratio, bit error rate, signal strength and the like.
In this embodiment, the application environment acquisition thread is mainly used to acquire the operating parameters of the monitored objects corresponding to all kinds of listeners. Specifically, an operating parameter acquisition protocol is established between the application environment acquisition thread and all ports in the reconnection device, and based on the acquisition protocol, the operating parameters of each port are automatically reported to the application environment acquisition thread, and then the operating parameters of the monitored objects corresponding to different monitors are reported to determine whether a monitoring event is triggered.
In this embodiment, when the reconnection device establishes a subscription relationship with the push service database and receives information pushed by the push service database through the communication link, the application environment acquisition thread may continuously acquire the operating parameters of the communication link, store the operating parameters in a corresponding cache region based on the order of acquisition time, where the cache region is a queue with a fixed length, and the abnormal reconnection listener may acquire the required operating parameters from the corresponding queue and execute the relevant operation of S103.
in S103, the abnormal reconnection listener is called to extract the operating parameter from the output signal of the application environment acquisition thread, and an abnormal index of the operating parameter is determined.
In this embodiment, after the reconnection device sets the abnormal reconnection listener, the abnormal reconnection listener may acquire the operating parameters of the communication link from the application environment acquisition thread based on a preset acquisition frequency. The acquisition frequency can be the clock frequency of the reconnection device, and in this case, the acquisition frequency can be identified as the running parameter of the abnormal reconnection listener for monitoring the communication link in real time; the acquisition frequency may also be based on a setting for setting, i.e. a listening period, in which case the listener acquires the operating parameters from the application environment acquisition thread at preset listening period intervals. It should be noted that the size of the cache area where the application environment acquisition thread stores the operating parameter may be determined based on the monitoring frequency, that is, the higher the monitoring frequency is, the less the allocated cache area is; conversely, if the snoop frequency is lower, the allocated cache area is larger to store the obtained operating parameters between the snoop intervals.
Optionally, in this embodiment, when the abnormal reconnection listener is set, a corresponding listening Event is configured for the listener, and the listening Event of the abnormal reconnection listener is specifically an operation parameter of a communication link, so that a corresponding Event class is configured for the listening Event. When the communication link is added to the listening object list of the application environment acquisition thread, an application event class needs to be created in the listening object list. The reconnection device can configure the Event class corresponding to the abnormal reconnection listener and the applicable Event class in the monitored object list into the same class name, so that the abnormal reconnection listener can rapidly extract the operation parameters of the communication link from the application environment acquisition thread.
In this embodiment, after obtaining the operation parameters of the communication link, the reconnection device calculates the abnormality index corresponding to the operation parameters through a preset abnormality coefficient conversion algorithm. Optionally, the reconnection device may configure a corresponding threshold range for each parameter item in the operation parameters, calculate the number of parameter items exceeding the threshold range in the operation parameters, and determine the abnormality index of the communication link at the current time based on the number of parameter items. Of course, the abnormal coefficient conversion algorithm may also be a hash function, the operation parameter is imported into the hash function, the hash value corresponding to the operation parameter is determined, and the hash value is used as the abnormal index corresponding to the operation parameter.
In this embodiment, if the abnormal index is less than or equal to the abnormal threshold configured by the abnormal reconnection listener, it indicates that the communication link between the current reconnection device and the push service database is operating normally, and the reconnection is not required, and the operation returns to S102 after the arrival of the next listening period; otherwise, if the abnormality index is greater than the abnormality threshold, it indicates that the current communication link is abnormal or has been interrupted, and the relevant operation of S104 needs to be performed.
in S104, if the abnormality index is greater than the abnormality threshold, a reconnection operation is performed based on the reconnection response parameter, and a reconnected abnormality index is obtained until the reconnected abnormality index is less than or equal to the abnormality threshold.
in this embodiment, if the abnormal index determined based on the operation parameter is greater than the abnormal threshold, the reconnection device may extract a preconfigured reconnection response parameter from the abnormal reconnection listener, and execute a reconnection operation based on the reconnection response parameter to reestablish a communication link between the reconnection device and the push service database, after the reconnection operation is completed, the reconnection device may call the abnormal reconnection listener again to extract the operation parameter and calculate an abnormal index corresponding to the reconnection, and if the abnormal execution is still greater than the abnormal threshold, execute the relevant operation of S104 again, until the abnormal index is less than or equal to the abnormal threshold, it indicates that the communication link between the reconnection device and the push service database returns to normal.
Optionally, the reconnection response parameter includes a reconnection period, and the reconnection device may establish a communication link with the database server based on the reconnection period. The reconnection response parameter can also contain a communication address of the standby database, and the reconnection equipment can establish communication connection with the standby database and receive messages issued by other equipment through the standby database.
As can be seen from the above, in the reconnection method for push service provided in the embodiment of the present invention, when it is detected that a user initiates a push service start instruction, an abnormal reconnection monitor for monitoring an abnormal condition of a communication link between the user and a push service database is activated, and the communication link is added to a monitored object list, so as to obtain an operation parameter of the communication link in real time; because the abnormal reconnection listener is configured with the abnormal threshold and the reconnection response parameters, whether the communication link is abnormal or not can be automatically identified, the main thread of the server is not needed for monitoring the abnormality, and resources occupied by abnormal monitoring operation are reduced. When the abnormal reconnection monitor identifies that the abnormal index calculated based on the operation parameters is larger than a preset prestored threshold value, reconnection operation is executed based on reconnection response parameters, a communication link between the abnormal reconnection monitor and a pushing service database is maintained, and the reliability of data transmission is improved. Compared with the existing reconnection method for push service, the method has the advantages that the monitor has autonomy and can be managed by the sub-thread, so that the abnormity of the communication link is detected without depending on the circular task under the main thread, a large amount of resources originally used for maintaining the circular task are released, and the reconnection operation efficiency is improved.
Fig. 2 shows a flowchart of a detailed implementation of the reconnection method S104 for push service according to the second embodiment of the present invention. Referring to fig. 2, in the embodiment described with respect to fig. 1, in the reconnecting method of push service provided in this embodiment, S104 includes: s1041 to S1044, detailed description is as follows:
further, the reconnection response parameters include: reconnection period, adjustment step length and reconnection time threshold; the performing reconnection operation based on the reconnection response parameter includes:
in S1041, a communication link is established with the push service database according to the reconnection period interval, and a count value of a reconnection counter is adjusted.
In this embodiment, the reconnection response parameter includes a reconnection period, and when the reconnection device detects that the abnormality index is greater than the preset abnormality threshold for the first time, a reconnection counter is created to count the number of reconnection operations executed due to abnormality of a communication link between the reconnection device and the push service database. It should be noted that the initial value of the reconnect counter is 0, and each time a reconnect operation is executed, the reconnect device increments the reconnect counter by 1, so that by reading the counter of the reconnect counter, the number of times of the reconnect operation executed based on the current reconnect cycle can be determined.
In this embodiment, the reconnecting device will first disconnect the communication link with the push server database and send a connection request to the push service database to reestablish the communication link. If the reconnection equipment does not receive the connection confirmation information returned by the push service database within the preset time threshold, increasing the count value of the reconnection counter, waiting for the arrival of the next reconnection period again, sending a connection request again, and repeatedly executing the steps; if the connection confirmation information returned by the push service database is received within the preset time threshold, the operation parameters of the communication link are acquired through the application environment acquisition thread, and the relevant operation of S1042 is executed.
in S1042, the operation parameter of the reconnected communication link is obtained, and the abnormal reconnection listener is called to calculate an abnormal index of the reconnected operation parameter.
in this embodiment, as described in S102 and S103, since the communication link is already added to the list of monitored objects of the application environment acquisition thread, after the communication link is reconnected, the operation parameter of the communication link can be obtained by the application environment acquisition thread, and then the reconnection exception listener can extract the operation parameter from the output signal of the application environment acquisition thread and calculate the corresponding exception index. It should be noted that, the calculation method of the abnormality index may refer to the calculation method described in S103, and is not described herein again.
In this embodiment, after determining the abnormality index corresponding to the reconnected communication link, the abnormality index is compared with the abnormality threshold again to determine whether the current communication link is in an abnormal state. If the abnormal index is smaller than or equal to the abnormal threshold, whether the counting value of the reconnection counter is larger than the reconnection time threshold or not is judged, the reconnection is successfully identified, and the pushed message of the pushing server is continuously received through the communication link; otherwise, if the abnormal index is still greater than the abnormal threshold after reconnection, indicating that reconnection fails, and based on the size of the count value of the reconnection counter, selecting to execute the operation of S1043 or S1044.
In S1043, if the count value of the reconnection counter is less than or equal to the reconnection number threshold and the reconnected abnormality index is greater than the abnormality threshold, returning to perform the operation of establishing the communication link with the push service database according to the reconnection period interval.
In this embodiment, when the abnormal coefficient after reconnection is still greater than the abnormal threshold, it indicates that the current communication link is still in an abnormal state, and the reconnection operation needs to be executed again, and in this case, if the count value of the reconnection counter is less than or equal to the reconnection number threshold, it indicates that the number of executed reconnection operations still does not exceed the preset value based on the current reconnection period, and the communication link may continue to be established with the push service database based on the reconnection period interval, so that the operation of establishing the communication link with the push service database according to the reconnection period interval may be returned to be executed.
In S1044, if the count value of the reconnection counter is greater than the reconnection number threshold and the reconnected abnormality index is greater than the abnormality threshold, the reconnection period is updated based on the adjustment step length, the count value of the reconnection counter is initialized, and the operation of establishing a communication link with the push service database according to the reconnection period interval is executed in return.
In this embodiment, if the count value of the reconnection counter is greater than the reconnection number threshold, it indicates that the number of reconnection operations performed based on the current reconnection period exceeds a preset value, and the reconnection period needs to be adjusted to optimize the reconnection operations of the reconnection device. Specifically, the reconnection device may update the reconnection period based on the adjustment step size, where the update operation may be to increase the duration of the reconnection period based on the adjustment step size, and may decrease the duration of the reconnection period based on the adjustment step size.
for the first case, i.e., the length of the reconnection period is increased based on the adjustment step size, in this case, the initial value of the reconnection period is small, so that the communication connection can be quickly restored at a higher frequency just when the communication link abnormality is detected. However, since the high frequency reconnection consumes more resources of the reconnection device, when the number of times of performing the reconnection operation based on the reconnection period exceeds the reconnection number threshold, the communication connection is not recovered, and the reconnection frequency needs to be reduced to reduce the number of resources consumed by the reconnection operation. Of course, the reconnection device may set a maximum reconnection period, and when the updated reconnection period is greater than the maximum reconnection period, perform the reconnection operation at the maximum reconnection period.
in the second case, that is, the length of the reconnection period is reduced based on the adjustment step size, in this case, the initial value of the reconnection period is large, and in the case of an abnormal condition, a certain processing time is required for repairing a general line. In order to avoid the above situation, the reconnection device sets the initial value of the reconnection period to be larger, gradually reduces the duration of the reconnection period, and gradually completes the repair along with the time, so that the reconnection frequency is increased to quickly recover the communication.
in the embodiment of the invention, the triggering time of the reconnection operation is dynamically adjusted based on three parameters, namely the reconnection period, the adjustment step length and the maximum reconnection time threshold, so that the reconnection efficiency can be improved while the equipment resources consumed by the reconnection operation are reduced.
Fig. 3 shows a flowchart of a detailed implementation of the reconnection method S103 for push service according to the third embodiment of the present invention. Referring to fig. 3, with respect to the embodiment shown in fig. 1, S103 in the reconnection method for push service provided in this embodiment includes S1031 to S1033, which are detailed as follows:
Further, the operating parameters include: transmission rate, bit error rate and signal-to-noise ratio; the determining an abnormality index for the operating parameter includes:
In S1031, importing the transmission rate and the historical rate of the communication link into a first anomaly factor calculation model, and calculating a first anomaly factor; the abnormal factor calculation model specifically comprises the following steps:
Wherein, the ErrorFactor1The first abnormal factor; hstyrateiis the ith said historical rate; CurrentRate is the transmission rate;Is the average of the historical rates; n is the number of the historical rates.
in this embodiment, the operation parameters include a transmission rate, an error rate, and a signal-to-noise ratio, and the reconnection device determines three abnormal factors based on the three types of parameters, and calculates an abnormal index corresponding to the operation parameters based on the abnormal factors, so that the obtained abnormal index can more accurately determine whether the current communication link is in an abnormal state.
In this embodiment, the reconnection device for push service calculates a mean value of historical rates based on recorded historical rates, calculates a standard deviation of the historical rates, determines a standard offset, determines a current offset according to a currently obtained mean value of the transmission rate and the historical rates, calculates a ratio between the current offset and the standard offset, and uses the ratio as a first abnormal factor. When the ratio is larger, the current offset is abnormal, and the rate exceeds the normal rate range, so that the contribution amount is larger when the abnormal index is calculated; on the contrary, if the ratio is smaller, it indicates that the current offset is within the normal range, and the parameter of the transmission rate is not abnormal.
in S1032, a second anomaly factor is determined based on a product between the transmission rate and the bit error rate.
in this embodiment, after determining the transmission rate and the bit error rate of the current transmission link, the reconnection device may calculate a product between the transmission rate and the bit error rate, determine the number of error characters in a unit time, and use the number of error characters as the second anomaly factor. The larger the wrong character is, the worse the communication quality of the current communication link is indicated, and thus the larger the value of the second abnormality factor is.
In S1033, the first abnormality factor, the second abnormality factor, and the signal-to-noise ratio are introduced into an abnormality index calculation model, and an abnormality index of the operating parameter is calculated; the anomaly index calculation model specifically comprises the following steps:
ErrorLevel=10lg(Weight1*ErrorFactor1+Weight2*ErrorFactor2)
+Weight3*SNR
Wherein Errorlevel is the abnormality index, Errorfactor2The second abnormality factor; SNR is the signal-to-noise ratio, Weight1、Weight2、Weight3is a preset coefficient.
in this embodiment, since the unit of the signal-to-noise ratio is decibel (dB), in order to ensure the dimensional uniformity, the reconnection device converts the first abnormality factor and the second abnormality factor into parameter values in dB after calculating the two abnormality factors, and then calculates the sum of the calculated abnormality factors and the signal-to-noise ratio as the abnormality index of the operating parameter.
In this embodiment, the firstAn abnormal factor, a second abnormal factor and the SNR are all configured with a weighted value, i.e. Weight as mentioned above1、Weight2、Weight3The user may adjust the values of the three weights based on the message requirements for transmitting the message. For example, if the data size of the message to be output is large, the transmission rate and thus Weight are of great concern1The value of (d) may be greater than the values of the remaining two predetermined coefficients; if the data volume of the message to be transmitted is small, the accuracy of the message received each time needs to be ensured, and repeated sending is avoided, so Weight2、Weight3Can be greater than Weight1The value of (c).
in the embodiment of the invention, the corresponding abnormal factors are determined respectively based on the parameter items contained in the operation parameters, and then the abnormal index is calculated based on each abnormal factor, so that the accuracy of the abnormal index on the characterization of the abnormal condition of the communication link is improved, and the accuracy of the abnormal identification is improved.
Fig. 4 is a flowchart illustrating a detailed implementation of a reconnection method for a push service according to a fourth embodiment of the present invention. Referring to fig. 4, in the embodiment, with respect to fig. 1 to fig. 3, in the reconnection method for a push service according to this embodiment, before activating an abnormal reconnection listener if a push service start instruction is received, the method further includes: s401 to S402 are specifically described as follows:
In S401, a push authorization request is sent to the push service database, and an identifier of the push service database is obtained.
In this embodiment, the reconnection device for the push service may be connected to multiple push service databases at the same time, so as to receive messages pushed by the multiple push service databases, that is, the reconnection device needs to maintain multiple communication links at the same time. In order to distinguish different communication links and configure a plurality of listeners, when the reconnection device sends a push authorization request to the push service database, i.e. establishes a subscription relationship with the push service database, the reconnection device acquires an identifier of the push service database, so as to distinguish different push service databases through the identifier.
Specifically, the reconnection device sends a push authorization request to a push service database, the database performs authentication operation on the push authorization request, identifies whether the device has the authority to subscribe to a message pushed by the database, if the authentication is successful, for example, the device number of the reconnection device is in a white list of the push service database, returns an authorization success message to the push service data, encapsulates an identifier corresponding to the database in the authorization success message, and extracts the identifier from the authorization success message.
In S402, the abnormal reconnection listener corresponding to the push service database is created according to the identifier, the abnormal threshold value and the reconnection response parameter input by the user.
In this embodiment, after acquiring the identifier of the push service database, and receiving the abnormal threshold and the reconnection response parameter set by the user, the reconnection device may create an abnormal reconnection listener for the push service database, and monitor a communication link established with the abnormal reconnection listener when subsequently receiving a message sent by the push service database.
It should be noted that, when the reconnection device executes the operation in S101, the push service start instruction also includes the identifier of the target push service database, so that the reconnection device starts the abnormal reconnection listener corresponding to the identifier.
In the embodiment of the invention, when the abnormal reconnection listener is created, the corresponding identifier of the push service database is configured for the abnormal reconnection listener so as to realize the purpose of simultaneously receiving the messages pushed by different databases, thereby improving the efficiency of information acquisition of reconnection equipment, and because the listener is not dependent on the maintenance of a main process, the information acquisition equipment can be executed through an asynchronous process, thereby simultaneously maintaining a plurality of communication links through a plurality of listeners.
Fig. 5 is a flowchart illustrating a detailed implementation of a reconnection method for a push service according to a fifth embodiment of the present invention. Referring to fig. 5, with respect to the embodiments described in fig. 1 to fig. 3, after the determining the abnormality index of the operating parameter, the reconnection method for a push service according to this embodiment further includes: s501 and S502 are specifically detailed as follows:
In S501, if the abnormality index is smaller than or equal to the abnormality threshold, a test data packet is sent to the push service database.
In this embodiment, if the anomaly index is less than or equal to the anomaly threshold, it indicates that the communication link between the reconnection device for push service and the push service database is not abnormal, but it needs to receive the push message, and besides the link is not abnormal, it also needs to make the port of the database server normal, so that a test packet is sent to the push service database to detect whether the port connected to the push service database can respond to the request.
in this embodiment, if the port is not abnormal, a response data packet is returned to the reconnection device within a preset time, and if the reconnection device receives the response data packet within the preset time, it recognizes that the communication link and the port are not abnormal, and then maintains the current connection state, and receives a message sent by the push service database; otherwise, if the response packet is not received within the preset time, the relevant operation of S502 is executed.
In S502, if a response data packet returned by the push service database based on the test data packet is not received within a preset time, the reconnection operation based on the reconnection response parameter is executed.
In this embodiment, if the reconnection device does not receive a response packet returned by the push service database based on the test packet within the preset time, it indicates that the operation parameter of the communication link is not abnormal, but the push service database cannot respond to the request initiated by the reconnection device, that is, the port connected to the push service database is abnormal, and needs to be re-connected to the database to replace or activate the port, so that the port can normally receive and transmit data.
In the embodiment of the invention, the test data packet is sent to the push service database to ensure that the connected port can normally receive and send data, so that whether the operation parameters of the communication link are in the preset range or not is concerned, the performance state of the port can be detected, and the maintenance accuracy is improved.
it should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 6 shows a block diagram of a reconnection device for a push service according to an embodiment of the present invention, where the reconnection device for a push service includes units for executing steps in the embodiment corresponding to fig. 1. Please refer to fig. 1 and fig. 1 for the corresponding description of the embodiment. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the reconnection device for push service includes:
A listener activation unit 61, configured to activate an abnormal reconnection listener if a push service start instruction is received; the abnormal reconnection monitor is used for monitoring whether a communication link between the abnormal reconnection monitor and a push service database is abnormal or not; the abnormal reconnection listener is configured with an abnormal threshold and reconnection response parameters;
An operation parameter obtaining unit 62, configured to add the communication link to a monitored object list of an application environment acquisition thread, and obtain an operation parameter of the communication link through the application environment acquisition thread;
An operation parameter extracting unit 63, configured to invoke the abnormal reconnection listener to extract the operation parameter from an output signal of the application environment acquisition thread, and determine an abnormal index of the operation parameter;
A reconnect execution unit 64, configured to execute a reconnect operation based on the reconnect response parameter if the abnormality index is greater than the abnormality threshold, and obtain a reconnected abnormality index until the reconnected abnormality index is less than or equal to the abnormality threshold.
Optionally, the reconnection response parameters include: reconnection period, adjustment step length and reconnection time threshold; the reconnection execution unit 64 includes:
the reconnection counting unit is used for establishing a communication link with the push service database according to the reconnection period interval and adjusting the counting value of the reconnection counter;
An abnormal index reacquiring unit, configured to acquire an operation parameter of the reconnected communication link, and call the abnormal reconnection monitor to calculate an abnormal index of the reconnected operation parameter;
A first reconnection unit, configured to, if the count value of the reconnection counter is less than or equal to the reconnection number threshold and the reconnected abnormal index is greater than the abnormal threshold, return to perform an operation of establishing a communication link with the push service database according to the reconnection cycle interval;
and the second reconnection unit is used for updating the reconnection period based on the adjustment step length, initializing the count value of the reconnection counter and returning to execute the operation of establishing a communication link with the push service database according to the reconnection period interval if the count value of the reconnection counter is greater than the reconnection number threshold and the reconnected abnormal index is greater than the abnormal threshold.
Optionally, the operating parameters include: transmission rate, bit error rate and signal-to-noise ratio; the operation parameter extraction unit 63 includes:
A first abnormal factor calculation unit, configured to import the transmission rate and the historical rate of the communication link into a first abnormal factor calculation model, and calculate a first abnormal factor; the abnormal factor calculation model specifically comprises the following steps:
wherein, the ErrorFactor1The first abnormal factor; hstyrateiis the ith said historical rate; CurrentRate is the transmission rate;is the average of the historical rates; n is the number of the historical rates;
a second abnormality factor calculation unit configured to determine a second abnormality factor based on a product between the transmission rate and the bit error rate;
the abnormality index calculation unit is used for leading the first abnormality factor, the second abnormality factor and the signal-to-noise ratio into an abnormality index calculation model and calculating the abnormality index of the operation parameter; the anomaly index calculation model specifically comprises the following steps:
ErrorLevel=10lg(Weight1*ErrorFactor1+Weight2*ErrorFactor2)
+Weight3*SNR
wherein Errorlevel is the abnormality index, Errorfactor2the second abnormality factor; SNR is the signal-to-noise ratio, Weight1、Weight2、Weight3is a preset coefficient.
optionally, the reconnection device for push service further includes:
A database identifier obtaining unit, configured to send a push authorization request to the push service database, and obtain an identifier of the push service database;
and the listener creating unit is used for creating the abnormal reconnection listener corresponding to the push service database according to the identifier, the abnormal threshold value input by the user and the reconnection response parameter.
Optionally, the reconnection device for push service further includes:
a test data packet sending unit, configured to send a test data packet to the push service database if the abnormality index is smaller than or equal to the abnormality threshold;
And the third reconnection unit is used for executing the reconnection operation based on the reconnection response parameter if a response data packet returned by the push service database based on the test data packet is not received within a preset time.
Therefore, the reconnection device for push service provided by the embodiment of the invention can detect the abnormality of the communication link without depending on the loop task under the main thread, and releases a large amount of resources originally used for maintaining the loop task, thereby improving the efficiency of reconnection operation.
Fig. 7 is a schematic diagram of a reconnection device for a push service according to another embodiment of the present invention. As shown in fig. 7, the reconnection device 7 of the push service of this embodiment includes: a processor 70, a memory 71 and a computer program 72 stored in said memory 71 and operable on said processor 70, such as a reconnect program for push services. The processor 70, when executing the computer program 72, implements the steps in the embodiments of the reconnection method for push services described above, for example, S101 to S104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the units in the above-described device embodiments, such as the functions of the modules 61 to 64 shown in fig. 6.
Illustratively, the computer program 72 may be divided into one or more units, which are stored in the memory 71 and executed by the processor 70 to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the reconnecting device 7 of the push service. For example, the computer program 72 may be divided into a listener activation unit, an operation parameter acquisition unit, an operation parameter extraction unit, and a reconnection execution unit, each of which functions as described above.
the reconnecting device 7 of the push service may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The reconnecting device of the push service may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a reconnected device 7 of a push service, and does not constitute a limitation of the reconnected device 7 of a push service, and may comprise more or fewer components than shown, or some components in combination, or different components, for example, the reconnected device of a push service may also comprise an input output device, a network access device, a bus, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 71 may be an internal storage unit of the reconnected device 7 of the push service, for example, a hard disk or a memory of the reconnected device 7 of the push service. The memory 71 may also be an external storage device of the reconnection device 7 for the push service, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like equipped on the reconnection device 7 for the push service. Further, the memory 71 may also comprise both an internal storage unit and an external storage device of the reconnected device 7 of the push service. The memory 71 is used for storing the computer program and other programs and data required for reconnecting the device for the push service. The memory 71 may also be used to temporarily store data that has been output or is to be output.
in addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (8)
1. A reconnection method for a push service, comprising:
If a push service starting instruction is received, activating an abnormal reconnection monitor; the abnormal reconnection monitor is used for monitoring whether a communication link between the abnormal reconnection monitor and a push service database is abnormal or not; the abnormal reconnection listener is configured with an abnormal threshold and reconnection response parameters;
adding the communication link to a monitoring object list of an application environment acquisition thread, and acquiring the operating parameters of the communication link through the application environment acquisition thread;
Calling the abnormal reconnection monitor to extract the operating parameters from output signals of the application environment acquisition threads, and determining abnormal indexes of the operating parameters;
If the abnormal index is larger than the abnormal threshold, performing reconnection operation based on the reconnection response parameters, and acquiring a reconnected abnormal index until the reconnected abnormal index is smaller than or equal to the abnormal threshold;
the operating parameters include: transmission rate, bit error rate and signal-to-noise ratio; the determining an abnormality index for the operating parameter includes:
importing the transmission rate and the historical rate of the communication link into a first abnormal factor calculation model, and calculating a first abnormal factor; the abnormal factor calculation model specifically comprises the following steps:
Wherein, the ErrorFactor1The first abnormal factor; hstyrateiIs the ith said historical rate; CurrentRate is the transmission rate;Is the average of the historical rates; n is the number of the historical rates;
Determining a second anomaly factor based on a product between the transmission rate and the bit error rate;
Leading the first abnormal factor, the second abnormal factor and the signal-to-noise ratio into an abnormal index calculation model, and calculating the abnormal index of the operation parameter; the anomaly index calculation model specifically comprises the following steps:
ErrorLevel=10lg(Weight1*ErrorFactor1+Weight2*ErrorFactor2)
+Weight3*SNR
Wherein Errorlevel is the abnormality index, Errorfactor2The second abnormality factor; SNR is the signal-to-noise ratio, Weight1、Weight2、Weight3Is a preset coefficient.
2. The reconnect method according to claim 1, characterized in that the reconnect response parameters comprise: reconnection period, adjustment step length and reconnection time threshold; the performing reconnection operation based on the reconnection response parameter includes:
Establishing a communication link with the push service database according to the reconnection period interval, and adjusting the count value of a reconnection counter;
obtaining the operation parameters of the reconnected communication link, and calling the abnormal reconnection monitor to calculate the abnormal index of the reconnected operation parameters;
If the counting value of the reconnection counter is smaller than or equal to the reconnection time threshold and the reconnected abnormal index is larger than the abnormal threshold, returning to execute the operation of establishing a communication link with the push service database according to the reconnection period interval;
if the counting value of the reconnection counter is larger than the reconnection time threshold and the reconnected abnormal index is larger than the abnormal threshold, updating the reconnection period based on the adjustment step length, initializing the counting value of the reconnection counter, and returning to execute the operation of establishing a communication link with the push service database according to the reconnection period interval.
3. the reconnection method according to claim 1 or 2, wherein before activating the abnormal reconnection listener if the push service initiation instruction is received, the reconnection method further comprises:
sending a push authorization request to the push service database, and acquiring an identifier of the push service database;
And creating the abnormal reconnection monitor corresponding to the push service database according to the identifier, the abnormal threshold value and the reconnection response parameter input by the user.
4. The reconnecting method according to claim 1 or 2, characterized in that after said determining an abnormality index of said operating parameter, it further comprises:
If the abnormality index is smaller than or equal to the abnormality threshold, sending a test data packet to the push service database;
and if a response data packet returned by the push service database based on the test data packet is not received within a preset time, executing the reconnection operation based on the reconnection response parameter.
5. A reconnection device for a push service, characterized in that said reconnection device for a push service comprises a memory, a processor and a computer program stored in said memory and operable on said processor, said processor implementing the following steps when executing said computer program:
if a push service starting instruction is received, activating an abnormal reconnection monitor; the abnormal reconnection monitor is used for monitoring whether a communication link between the abnormal reconnection monitor and a push service database is abnormal or not; the abnormal reconnection listener is configured with an abnormal threshold and reconnection response parameters;
adding the communication link to a monitoring object list of an application environment acquisition thread, and acquiring the operating parameters of the communication link through the application environment acquisition thread;
Calling the abnormal reconnection monitor to extract the operating parameters from output signals of the application environment acquisition threads, and determining abnormal indexes of the operating parameters;
if the abnormal index is larger than the abnormal threshold, performing reconnection operation based on the reconnection response parameters, and acquiring a reconnected abnormal index until the reconnected abnormal index is smaller than or equal to the abnormal threshold;
The operating parameters include: transmission rate, bit error rate and signal-to-noise ratio; the determining an abnormality index for the operating parameter includes:
importing the transmission rate and the historical rate of the communication link into a first abnormal factor calculation model, and calculating a first abnormal factor; the abnormal factor calculation model specifically comprises the following steps:
wherein, the ErrorFactor1The first abnormal factor; hstyrateiIs the ith said historical rate; CurrentRate is the transmission rate;is the average of the historical rates; n is the number of the historical rates;
Determining a second anomaly factor based on a product between the transmission rate and the bit error rate;
Leading the first abnormal factor, the second abnormal factor and the signal-to-noise ratio into an abnormal index calculation model, and calculating the abnormal index of the operation parameter; the anomaly index calculation model specifically comprises the following steps:
ErrorLevel=10lg(Weight1*ErrorFactor1+Weight2*ErrorFactor2)
+Weight3*SNR
Wherein Errorlevel is the abnormality index, Errorfactor2The second abnormality factor; SNR is the signal-to-noise ratio, Weight1、Weight2、Weight3To presetand (4) the coefficient.
6. the reconnect device according to claim 5, characterized in that the reconnect response parameter comprises: reconnection period, adjustment step length and reconnection time threshold; the performing reconnection operation based on the reconnection response parameter includes:
establishing a communication link with the push service database according to the reconnection period interval, and adjusting the count value of a reconnection counter;
Obtaining the operation parameters of the reconnected communication link, and calling the abnormal reconnection monitor to calculate the abnormal index of the reconnected operation parameters;
if the counting value of the reconnection counter is smaller than or equal to the reconnection time threshold and the reconnected abnormal index is larger than the abnormal threshold, returning to execute the operation of establishing a communication link with the push service database according to the reconnection period interval;
If the counting value of the reconnection counter is larger than the reconnection time threshold and the reconnected abnormal index is larger than the abnormal threshold, updating the reconnection period based on the adjustment step length, initializing the counting value of the reconnection counter, and returning to execute the operation of establishing a communication link with the push service database according to the reconnection period interval.
7. The reconnecting device according to claim 5 or 6, characterized in that before activating an abnormal reconnect listener if a push service initiation instruction is received, the processor executes the computer program to further implement the following steps:
sending a push authorization request to the push service database, and acquiring an identifier of the push service database;
and creating the abnormal reconnection monitor corresponding to the push service database according to the identifier, the abnormal threshold value and the reconnection response parameter input by the user.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810456987.6A CN108616429B (en) | 2018-05-14 | 2018-05-14 | reconnection method and device for push service |
PCT/CN2018/097553 WO2019218480A1 (en) | 2018-05-14 | 2018-07-27 | Method and device for reconnecting push service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810456987.6A CN108616429B (en) | 2018-05-14 | 2018-05-14 | reconnection method and device for push service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108616429A CN108616429A (en) | 2018-10-02 |
CN108616429B true CN108616429B (en) | 2019-12-13 |
Family
ID=63663327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810456987.6A Active CN108616429B (en) | 2018-05-14 | 2018-05-14 | reconnection method and device for push service |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108616429B (en) |
WO (1) | WO2019218480A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965066B (en) * | 2018-10-17 | 2020-06-05 | 网宿科技股份有限公司 | Method and device for detecting transmission path |
CN109413612A (en) * | 2018-10-22 | 2019-03-01 | 深圳市元征科技股份有限公司 | A kind of communication connection method for building up and equipment |
CN109462646B (en) * | 2018-11-12 | 2021-11-19 | 平安科技(深圳)有限公司 | Abnormal response method and equipment |
KR20210017327A (en) | 2019-08-07 | 2021-02-17 | 삼성전자주식회사 | Apparatus and method for fast communication between mast and slave |
CN114363220A (en) * | 2020-09-30 | 2022-04-15 | 华为技术有限公司 | Equipment anomaly monitoring method and equipment |
CN112351094B (en) * | 2020-11-02 | 2023-10-03 | 深圳市安软科技股份有限公司 | Webpage pushing method and device, electronic equipment and storage medium |
CN113055246B (en) * | 2021-03-11 | 2022-11-22 | 中国工商银行股份有限公司 | Abnormal service node identification method, device, equipment and storage medium |
CN115277723B (en) * | 2022-07-19 | 2024-06-18 | 国能信控互联技术有限公司 | Breakpoint-resume transmission method and system based on buffer events in edge acquisition history module |
CN116647483B (en) * | 2023-06-20 | 2025-08-26 | 中国联合网络通信集团有限公司 | Network quality monitoring method, device, equipment and storage medium |
CN117880868B (en) * | 2024-03-12 | 2024-05-14 | 深圳市诚立业科技发展有限公司 | Short message communication link monitoring method |
CN118963304B (en) * | 2024-10-17 | 2025-03-04 | 临沂大学 | Industrial process automation control system and method for multi-source data fusion |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103220309A (en) * | 2012-01-19 | 2013-07-24 | 北京智慧风云科技有限公司 | Cloud computing system pushing service information automatically and implementation method thereof |
CN105808650A (en) * | 2016-02-26 | 2016-07-27 | 中国地质大学(武汉) | Skin care product pushing method and pushing server |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101914488B1 (en) * | 2011-04-06 | 2018-11-05 | 삼성전자주식회사 | Server cluster and method for push notification service |
CN103139818A (en) * | 2011-12-02 | 2013-06-05 | 中兴通讯股份有限公司 | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) |
US9197575B2 (en) * | 2014-02-17 | 2015-11-24 | Cellco Partnership | Handling of snapshot messages as a result of delivery failure in a two-way push connection |
CN106060846A (en) * | 2016-05-24 | 2016-10-26 | 北京雾联科技有限公司 | Method of collecting and displaying wireless network performance parameters measured based on mobile terminal |
CN107645517B (en) * | 2016-07-20 | 2021-04-16 | 腾讯科技(深圳)有限公司 | Data pushing method and device |
-
2018
- 2018-05-14 CN CN201810456987.6A patent/CN108616429B/en active Active
- 2018-07-27 WO PCT/CN2018/097553 patent/WO2019218480A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103220309A (en) * | 2012-01-19 | 2013-07-24 | 北京智慧风云科技有限公司 | Cloud computing system pushing service information automatically and implementation method thereof |
CN105808650A (en) * | 2016-02-26 | 2016-07-27 | 中国地质大学(武汉) | Skin care product pushing method and pushing server |
Also Published As
Publication number | Publication date |
---|---|
CN108616429A (en) | 2018-10-02 |
WO2019218480A1 (en) | 2019-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108616429B (en) | reconnection method and device for push service | |
CN115004673B (en) | Message pushing method, device, electronic equipment and computer readable medium | |
US9774697B2 (en) | Method, apparatus, and system for pushing notification | |
US10389801B2 (en) | Service request processing method, related apparatus, and system | |
CN109144559B (en) | Update data packet pushing method and server | |
CN108183950B (en) | Method and device for establishing connection of network equipment | |
CN104408048B (en) | A kind of method and apparatus of buffer-type cloud storage data syn-chronization | |
CN108200180B (en) | Method and device for limiting request frequency and computer equipment | |
CN109981538A (en) | Subscription event registration method and system, subscription event processing method and system | |
CN114338477B (en) | Communication link monitoring method, device, equipment and storage medium | |
US12009967B2 (en) | Communications methods and apparatus for minimizing and/or preventing message processing faults | |
US20130152196A1 (en) | Throttling of rogue entities to push notification servers | |
EP3691261A1 (en) | Method and device for locating video service fault, and storage medium | |
CN108243222A (en) | Server network architecture method and device | |
CN109462646B (en) | Abnormal response method and equipment | |
CN110311963B (en) | Message pushing method and device, computer equipment and computer readable storage medium | |
WO2018157105A1 (en) | Automatic recovery in remote management services | |
CN110597631A (en) | Resource management method, monitoring server, proxy server, and storage medium | |
CN116248473A (en) | Information processing method, device and computer readable storage medium | |
CN115103005B (en) | Request response method, device, electronic device and storage medium | |
CN111580961A (en) | Access request processing method, device, server and storage medium | |
CN107333286B (en) | Wifi hotspot connection management method and device and terminal equipment | |
CN116346611A (en) | Configuration updating method, device, electronic equipment and computer readable storage medium | |
KR20130109410A (en) | Method and apparatus for controlling push notification message transmit cycle in push notification services by communication system | |
US11178003B2 (en) | Resetting observable channel knockouts |
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 |