CN108337274A - A kind of message distributing method and system - Google Patents

A kind of message distributing method and system Download PDF

Info

Publication number
CN108337274A
CN108337274A CN201710038638.8A CN201710038638A CN108337274A CN 108337274 A CN108337274 A CN 108337274A CN 201710038638 A CN201710038638 A CN 201710038638A CN 108337274 A CN108337274 A CN 108337274A
Authority
CN
China
Prior art keywords
server
node
message
central schedule
network connection
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.)
Pending
Application number
CN201710038638.8A
Other languages
Chinese (zh)
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.)
Guizhou White Cloud Technology Co Ltd
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou White Cloud 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 Guizhou White Cloud Technology Co Ltd filed Critical Guizhou White Cloud Technology Co Ltd
Priority to CN201710038638.8A priority Critical patent/CN108337274A/en
Publication of CN108337274A publication Critical patent/CN108337274A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of message distributing method and systems.This method includes:Central schedule server receives message distribution information;For the central schedule server according to the message distribution information, the node server for including to the message distribution information sends message;Detect the network connection state between the central schedule server and each node server, if the network connection between the central schedule server and a node server is abnormal, network connection normally other one or more node servers are then selected, and other node servers send the instruction to the node server of network connection exception forwarding message to the one or more.This method and system improve the distribution speed of message;Avoid packet loss phenomenon when network connection state exception between central schedule server and node server.

Description

A kind of message distributing method and system
Technical field
The present invention relates to network field more particularly to a kind of message distributing method and systems.
Background technology
When carrying out the distribution of message by server, the single publisher node of generally use carries out message distribution, distribution effect Rate is relatively low.Especially when network connection state exception, dispatch server may constantly attempt dispatch messages, expend a large amount of Time, but may finally message distribution can not also be gone down due to network connection.
The prior art has the disadvantage that:
(1) one-site model distribution efficiency is low, poor reliability;
(2) when exception occurs in the network between node and center piping server, it is possible to not receive message.
Therefore, it is necessary to a kind of method and systems for capableing of fast and efficiently dispatch messages.
Invention content
In order to solve the problems in the existing technology, it provides a kind of message distributing method and system, this method and is System being capable of fast and efficiently dispatch messages.
According to an aspect of the invention, there is provided a kind of message distributing method, the method includes:
Central schedule server receives message distribution information;
The central schedule server is according to the message distribution information, the node that includes to the message distribution information Server sends message;
The network connection state between the central schedule server and each node server is detected, if the center Network connection between dispatch server and a node server is abnormal, then select network connection normally it is one or more other Node server, and other node servers are sent to the forwarding of the node server of network connection exception to the one or more The instruction of message.
Wherein, central schedule server selection network connection normally other one or more node servers when, Select other one or more node servers that there is identical message to be received with the node server.
Wherein, central schedule server selection network connection normally other one or more node servers when, It is selected according to one or more of following principles:Wait for the node server of selection and the node serve that message is forwarded to it Device belongs to same computer room, either belongs to same region and either belongs to same node or belong to same operator.
Wherein, the central schedule server detects the net between the central schedule server and each node server Network connection status includes:
Whether the central schedule server is inquired periodically receives the detection packet that each node server is sent, wherein institute The polling cycle for stating central schedule server is more than the sending cycle of the node server;
If the query result for a node server is not receive detection packet, meet one or two in following conditions Judge whether to receive the message received state that the node server is sent in the case of a:The central schedule server transmission disappears Message received state is received by the period of setting, from every other node server after breath, if judging result is that do not have The message received state for receiving node server transmission, then judge between the central schedule server and the node server Network connection it is abnormal.
Wherein, the central schedule server and the node server are the nodes in CDN network.
According to another aspect of the present invention, a kind of message distributing method is additionally provided, the method includes:
Node server receives the message of central schedule server distribution;
Wherein, when the network connection exception between the central schedule server and the node server, the node By the network connection between the central schedule server, normally other one or more node servers connect server Receive the message of the central schedule server distribution.
Wherein, the method further includes:
The node server is received to the central schedule server network from the central schedule server and is connect The instruction of abnormal node server forwarding message, and according to the instruction, connect to the central schedule server network Abnormal node server forwards the message.
Wherein, the method further includes:
It is executed before the message that the node server receives the distribution of central schedule server:Periodically to the center Dispatch server sends detection packet, and sending cycle is less than whether central schedule server inquiry receives looking into for the detection packet Ask the period;
It is executed after the message that the node server receives the distribution of central schedule server:It is taken to the central schedule Business device sends message received state.
Wherein, the node server sends detection packet using multiple transport protocols to the central schedule server.
Wherein, the central schedule server and the node server are the nodes in CDN network.
According to another aspect of the present invention, a kind of message distributing system is additionally provided, the message distributing system is in center It is realized on dispatch server, the system comprises:
Receiving module receives message distribution information;
First sending module, the node for according to the message distribution information, including to the message distribution information Server sends message;
Detection module is adjusted for after first sending module sends message to node server, detecting the center Spend the network connection state between server and each node server;
Server se-lection module detects the central schedule server and a node serve for working as the detection module Network connection between device is abnormal, selects network connection normally other one or more node servers;
Second sending module sends the section to network connection exception for other node servers to the one or more Point server forwards the instruction of message.
Wherein, the server se-lection module is additionally operable to:Select network connection normally one or more other nodes clothes When business device, selects and the node server has other node servers of the one or more of identical message to be received.
Wherein, the server se-lection module is additionally operable to, and is selected according to one or more of following principles:It is to be selected The node server selected forwards the node server of message to belong to same computer room with to it, either belongs to same region or belongs to same Node, or belong to same operator.
Wherein, the detection module is additionally operable to:
It inquires periodically and whether receives the detection packet that each node server is sent, wherein polling cycle is more than the node The sending cycle of server;
If the query result for a node server is not receive detection packet, meet one or two in following conditions Judge whether to receive the message received state that the node server is sent in the case of a:First sending module sends message Message received state is received by the period of setting, from every other node server afterwards, if judging result is not receive The message received state sent to the node server, then judge between the central schedule server and the node server Network connection is abnormal.
Wherein, the central schedule server and the node server are the nodes in CDN network.
According to another aspect of the present invention, a kind of message distributing system is additionally provided, the message distributing system is in node It is realized on server, the system comprises:
First receiving module, the message for receiving the distribution of central schedule server,
Second receiving module, for when the network connection exception between the central schedule server and the node server When, by the network connection between the central schedule server, normally other one or more node servers receive institute State the message of central schedule server distribution.
Wherein, first receiving module is additionally operable to receive to the central schedule from the central schedule server and take The instruction of the node server forwarding message for device network connection exception of being engaged in;
The system also includes:
First sending module is used for according to the instruction, to the section for connecting exception with the central schedule server network Point server forwards the message.
Wherein, the system also includes:
Second sending module is used for before the message that first receiving module receives the distribution of central schedule server, Detection packet is sent to the central schedule server periodically, sending cycle is less than whether central schedule server inquiry receives To the polling cycle of the detection packet;And first receiving module receive central schedule server distribution message it Afterwards, message received state is sent to the central schedule server.
Wherein, second sending module is additionally operable to be sent to the central schedule server using multiple transport protocols and be visited Survey packet.
Wherein, the central schedule server and the node server are the nodes in CDN network.
In message distributing method and system in the present invention, when to node server dispatch messages, when central schedule takes When the network connection state exception between device and node server of being engaged in, disappeared by the normal node server forwarding of network state Breath, and network connection state detection is carried out by bi-directionally sent message between central schedule server and node server.Tool There is following advantageous effect:
(1) network transmission of system has with responding ability is significantly promoted, and improves the distribution speed of message;
(2) packet loss phenomenon when network connection state exception between central schedule server and node server is avoided.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the message distributing method according to the present invention executed by central schedule server;
Fig. 2 is the flow chart of the message distributing method according to the present invention executed by node server;
Fig. 3 is the schematic diagram of the specific embodiment of message distributing method according to the present invention;
Fig. 4 is the schematic diagram of the message distributing system according to the present invention realized on central schedule server;
Fig. 5 is the schematic diagram of the message distributing system according to the present invention realized on node server.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application mutually can be combined arbitrarily.
The present invention provides a kind of message distributing method, this method is executed by central schedule server.As shown in Figure 1, should Method includes:
Step 101, central schedule server receives message distribution information;
Step 102, central schedule server is according to message distribution information, the node serve for including to message distribution information Device sends message;
Step 103, the network connection state between central schedule server and each node server is detected, if central Network connection between dispatch server and a node server is abnormal, then select network connection normally it is one or more other Node server, and other node servers are sent to the forwarding of the node server of network connection exception to the one or more The instruction of message.
In step 103, central schedule server select network connection normally other one or more node servers when, Select other one or more node servers that there is identical message to be received with the node server.When central schedule takes When business device selection has other one or more node servers of identical message to be received with the node server, sending Forwarding message instruction in, then need not include to need the specific message that forward.But if central schedule server selects The node server of node server and network connection exception there is no identical message to be received, then the forwarding message sent Instruction in, need include specific message to be forwarded.
And central schedule server select network connection normally other one or more node servers when, under One or more of principle is stated to be selected:Wait for that the node server of selection forwards the node server of message to belong to it Same computer room either belongs to same region and either belongs to same node or belong to same operator.
Network connection shape between central schedule server detection central schedule server and each node server herein State includes:Whether central schedule server is inquired periodically receives the detection packet that each node server is sent, wherein center is adjusted The polling cycle for spending server is more than the sending cycle of node server;If the query result for a node server is that do not have Detection packet is received, then judges whether to receive disappearing for node server transmission in the case where following conditions meet one or two Message receiving state:Central schedule server sends after message period by setting, is received from every other node server Judge center if judging result is not receive the message received state of node server transmission to message received state Network connection between dispatch server and the node server is abnormal.
The polling cycle of central schedule server is more than node server and sends the sending cycle of detection packet, rather than is equal to Sending cycle is to prevent network connection state from judging situation by accident in order to following:Between central schedule server and node server Network connection is normal, but occur packet drop due to network and so that central schedule server is not received by node The detection packet that server is sent.In order to prevent this situation, polling cycle is generally equal to several times of sending cycle.Such as send week Phase is 10 minutes, and polling cycle is 30 minutes.
It should be noted that the above method can be realized in CDN network, i.e. central schedule server and node server For the node in CDN network.
The present invention also provides a kind of message distributing method, this method is executed by node server.As shown in Fig. 2, the party Method includes:
Step 201, node server receives the message of central schedule server distribution;When central dispatch server and the section When network connection exception between point server, node server is normal by the network connection between central schedule server Other one or more node servers receive the message of central schedule servers distribution.
The above method further includes:Node server, which is received from central dispatch server to central schedule server network, to be connected The instruction of abnormal node server forwarding message is connect, and according to the instruction, it is different to being connect with central schedule server network Normal node server forwards the message.The operation is when the network between a node server and central schedule server connects When connecing abnormal, central schedule server selects above-mentioned node server to disappear to the forwarding of the node server of network connection exception Breath.Above-mentioned node server can have identical message to be received with the node server of network connection exception, can also have There are different message to be received.When message to be received is identical, then need not be received from central dispatch server to be forwarded Specific message;When message difference to be received, then need to receive specific message to be forwarded from central dispatch server.
When node server forwards message to other node servers, select Optimization route to this its according to routing policy He forwards message by node server.
In addition, this method further includes:It is executed before the message that node server receives the distribution of central schedule server:Week Detection packet is sent to phase to central schedule server, it is described whether sending cycle receives less than central schedule server inquiry Detect the polling cycle of packet;It is executed after the message that node server receives the distribution of central schedule server:To central schedule Server sends message received state.Here it sends detection packet and is easy for central schedule server elder generation's preliminary search and node clothes Connection status between business device;It sends message received state and is easy for central schedule server determining and node server again Between connection status.This detection packet that first sends retransmits message received state, and is confirmed by central schedule server tide The mechanism of connection status ensure that the connection status between accurate judgement central schedule server and node server.In this way, working as When network connection exception between central schedule server and node server, can sound quickly be made by central schedule server It answers, i.e., from connecting other normal node servers with central schedule server network to the node serve of network connection exception Device forwards message, ensure that message can fast and efficiently be distributed to each stage server.
The mode of multi-protocol transmission may be used when sending detection packet to central schedule server in node server, with And the mode of channel transmission, so that central schedule server detects accuracy rate higher.It may be used when for example, sending detection packet Udp protocol adds the mode of proprietary protocol, and when preventing with single-protocol transmission mode, central schedule server does not receive detection Packet.Wherein, proprietary protocol refers to the agreement arranged between node server and central schedule server.
It should be noted that the above method can be realized in CDN network, i.e. central schedule server and node server For the node in CDN network.
Below in conjunction with the accompanying drawings, the embodiment of message distributing method according to the present invention is described in detail.The message distributing method System as shown in Figure 3 executes.The system includes an at least central schedule server, and such as 1000 are equipped with and disappear Cease the node server of distribution customer terminal.Also, above-mentioned center dispatch server and node server are the section in CDN network Point.
Each server is described as follows:
Central schedule server is used for:(1) message distribution task and dispatch messages are received;(2) each node server is collected The message received state reported;
Node server is used for:(1) detection packet is sent to central schedule server periodically;(2) to central schedule service Device reporting message reception state;(3) message is forwarded to other node servers.
Detailed process is as follows:
Step S1:The title of message, size, node server list are packaged into message distribution information and are sent to central tune Spend server;
Step S2:Central schedule server parses the message distribution information, sends a message to each node serve Device;
In this step, central schedule server detects itself and node server after sending message to node server Between connection status.For example, central schedule server detects itself and the node server N1 in small carrier network Between network connection it is abnormal, then random selection and the normal node server of network connection between it, such as node server N100, N200, N300 indicate that these node servers chosen forward message to node server N1.In it should be noted that Centre dispatch server can select to wait for difference with node server N1 when selection is forwarded the node server of message The node server for receiving message, can also select the node server with identical message to be received.In addition, central schedule takes Business device selects the node server of progress message forwarding according to following preference strategy:Preferably belong to same computer room, same to region, same Node, the node server with operator;Then selection belong to cross operator, higher level operator node server.When So, central schedule server can also randomly choose the node server for carrying out message forwarding.That is, selecting to node When the node server of server N1 forwarding message, selected according to above-mentioned strategy.
In addition, central schedule server, which detects its connection status between node server, can be used following specific sides Case:Node server presses some cycles, and such as 10 minutes primary, and detection packet is sent out to central schedule server.Send detection Bao Shike In a manner of adding proprietary protocol using udp protocol, this is because in the case where some servers prohibit UDP or TCP, use is this The mode of the double agreement transmission of multichannel, detects accuracy rate higher.Central schedule server presses some cycles, such as small every half When, whether inquiry receives the detection packet of node server transmission.Here, the polling cycle of central schedule server takes more than node Business device sends the sending cycle of detection packet.When central dispatch server sends repeatedly detection packet, such as 3 times in node server Afterwards, still without the detection packet for receiving node server N1 transmissions, then decision node server N1 is seemingly-dead (for example, by its state Code is set to -1).Central schedule server has received after sending message to each node server from every other node server Any response bag (such as message received state), but receive any response bag (such as message sink still without from node server N1 State), and the scanning of central schedule server to node server N1 conditional codes is -1, be judged as it is very dead, i.e., and node serve Network connection between device N1 is abnormal.In the above situation, when central schedule server does not reach setting after sending message Between section, that is, judge that the network connection between node server N1 is abnormal, naturally it is also possible to wait set period of time to be achieved, not have still Have from node server N1 and receive message received state, then judges that the network connection with it is abnormal.Above-mentioned judgement central schedule clothes The mode of network connection state between business device and node server improves the accurate of judgement by the way of two-way judgement Property.
The present invention also provides a kind of message distributing system, which realizes on central schedule server, such as Fig. 4 institutes Show, which includes:
Receiving module 401 receives message distribution information;
First sending module 402, the node server for according to message distribution information, including to message distribution information Send message;
Detection module 403, for after the first sending module sends message to node server, detecting central schedule service Network connection state between device and each node server;
Server se-lection module 404 detects central schedule server and a node server for working as detection module 403 Between network connection it is abnormal, select network connection normally other one or more node servers;
Second sending module 405 is sent for other node servers to the one or more to network connection exception Node server forwarding message instruction.
Server se-lection module 404 is additionally operable to:Select network connection normally other one or more node servers when, Select other one or more node servers that there is identical message to be received with the node server.
Server se-lection module 404 is additionally operable to, and is selected according to one or more of following principles:Wait for the section of selection Point server forwards the node server of message to belong to same computer room with to it, either belongs to same region or belongs to same node, or Person belongs to same operator.
Detection module 403 is additionally operable to:
It inquires periodically and whether receives the detection packet that each node server is sent, wherein polling cycle is more than node serve The sending cycle of device;
If the query result for a node server is not receive detection packet, meet one or two in following conditions Judge whether to receive the message received state that the node server is sent in the case of a:First sending module 402 sends message Message received state is received by the period of setting, from every other node server afterwards, if judging result is not receive The message received state sent to the node server, then judge the network between central schedule server and the node server Connection is abnormal.
Central schedule server and node server are the nodes in CDN network.
The present invention also provides a kind of message distributing system, which realizes on node server, as shown in figure 5, should System includes:
First receiving module 501, the message for receiving the distribution of central schedule server,
Second receiving module 502, for when the network connection exception between central dispatch server and the node server When, by the network connection between central schedule server, normally other one or more node servers receive center tune Spend the message of server distribution.
First receiving module 501 is additionally operable to receive from central dispatch server different to being connect with central schedule server network The instruction of normal node server forwarding message;
The system also includes:
First sending module, for according to the instruction, being taken to abnormal node is connect with central schedule server network Business device forwards the message.
The system also includes:
Second sending module is used for before the message that the first receiving module receives the distribution of central schedule server, the period Ground sends detection packet to central schedule server, and sending cycle is less than whether central schedule server inquiry receives the spy Survey the polling cycle of packet;And it after the message that the first receiving module receives the distribution of central schedule server, is adjusted to center It spends server and sends message received state.
Second sending module is additionally operable to send detection packet to the central schedule server using multiple transport protocols.
Central schedule server and node server are the nodes in CDN network.
In message distributing method and system in the present invention, when to node server dispatch messages, when central schedule takes When the network connection state exception between device and node server of being engaged in, disappeared by the normal node server forwarding of network state Breath, and network connection state detection is carried out by bi-directionally sent message between central schedule server and node server.Tool There is following advantageous effect:
(1) network transmission of system has with responding ability is significantly promoted, and improves the distribution speed of message;
(2) packet loss phenomenon when network connection state exception between central schedule server and node server is avoided.
Descriptions above can combine implementation individually or in various ways, and these variants all exist Within protection scope of the present invention.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that article or equipment including a series of elements include not only those elements, but also includes not having There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more In the case of system, the element that is limited by sentence " including ... ", it is not excluded that including the element article or equipment in There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair It is bright to be described in detail.It will be understood by those of ordinary skill in the art that can modify to technical scheme of the present invention Or equivalent replacement should all cover the claim model in the present invention without departing from the spirit of the technical scheme of the invention and range In enclosing.

Claims (20)

1. a kind of message distributing method, which is characterized in that the method includes:
Central schedule server receives message distribution information;
The central schedule server is according to the message distribution information, the node serve that includes to the message distribution information Device sends message;
The network connection state between the central schedule server and each node server is detected, if the central schedule Network connection between server and a node server is abnormal, then selects network connection normally other one or more nodes Server, and other node servers are sent to the node server of network connection exception forwarding message to the one or more Instruction.
2. the method as described in claim 1, which is characterized in that
Central schedule server selection network connection normally other one or more node servers when, selection and the section Point server has other one or more node servers of identical message to be received.
3. method as claimed in claim 1 or 2, which is characterized in that
Central schedule server selection network connection normally other one or more node servers when, according to following originals One or more of then selected:Wait for that the node server of selection forwards the node server of message to belong to same machine with to it Room either belongs to same region and either belongs to same node or belong to same operator.
4. the method as described in claim 1, which is characterized in that the central schedule server detects the central schedule service Network connection state between device and each node server includes:
Whether the central schedule server is inquired periodically receives the detection packet that each node server is sent, wherein in described The polling cycle of dispatch server is entreated to be more than the sending cycle of the node server;
If the query result for a node server is not receive detection packet, meet one or two in following conditions In the case of judge whether to receive the message received state of node server transmission:After the central schedule server sends message Period by setting receives message received state from every other node server, if judging result is not receive The message received state that the node server is sent, then judge the net between the central schedule server and the node server Network connection is abnormal.
5. the method as described in claim 1, which is characterized in that the central schedule server and the node server are Node in CDN network.
6. a kind of message distributing method, which is characterized in that the method includes:
Node server receives the message of central schedule server distribution;
Wherein, when the network connection exception between the central schedule server and the node server, the node serve By the network connection between the central schedule server, normally other one or more node servers receive institute to device State the message of central schedule server distribution.
7. method as claimed in claim 6, which is characterized in that the method further includes:
The node server receives abnormal to being connect with the central schedule server network from the central schedule server Node server forwarding message instruction, and according to the instruction, to connect with the central schedule server network extremely Node server forward the message.
8. method as claimed in claim 6, which is characterized in that the method further includes:
It is executed before the message that the node server receives the distribution of central schedule server:Periodically to the central schedule Server sends detection packet, and sending cycle is less than the inquiry week whether central schedule server inquiry receives the detection packet Phase;
It is executed after the message that the node server receives the distribution of central schedule server:To the central schedule server Send message received state.
9. method as claimed in claim 8, which is characterized in that
The node server sends detection packet using multiple transport protocols to the central schedule server.
10. method as claimed in claim 6, which is characterized in that the central schedule server and the node server are Node in CDN network.
11. a kind of message distributing system, which is characterized in that the message distributing system realizes on central schedule server, institute The system of stating includes:
Receiving module receives message distribution information;
First sending module, the node serve for according to the message distribution information, including to the message distribution information Device sends message;
Detection module, for after first sending module sends message to node server, detecting the central schedule clothes The network connection state being engaged between device and each node server;
Server se-lection module, for work as the detection module detect the central schedule server and a node server it Between network connection it is abnormal, select network connection normally other one or more node servers;
Second sending module is sent for other node servers to the one or more to the node of network connection exception clothes The instruction for device forwarding message of being engaged in.
12. system as claimed in claim 11, which is characterized in that
The server se-lection module is additionally operable to:Select network connection normally other one or more node servers when, choosing Select other one or more node servers that there is identical message to be received with the node server.
13. the system as described in claim 11 or 12, which is characterized in that
The server se-lection module is additionally operable to, and is selected according to one or more of following principles:Wait for the node of selection Server with to its forward message node server belong to same computer room, either belong to same region either belong to same node or Belong to same operator.
14. system as claimed in claim 11, which is characterized in that the detection module is additionally operable to:
It inquires periodically and whether receives the detection packet that each node server is sent, wherein polling cycle is more than the node serve The sending cycle of device;
If the query result for a node server is not receive detection packet, meet one or two in following conditions In the case of judge whether to receive the message received state of node server transmission:First sending module passes through after sending message It spends the period of setting, receive message received state from every other node server, if judging result is not receive this The message received state that node server is sent, then judge the network between the central schedule server and the node server Connection is abnormal.
15. method as claimed in claim 11, which is characterized in that the central schedule server and the node server are Node in CDN network.
16. a kind of message distributing system, which is characterized in that the message distributing system realizes on node server, the system System includes:
First receiving module, the message for receiving the distribution of central schedule server,
Second receiving module is used for when the network connection exception between the central schedule server and the node server, Described in the network connection between the central schedule server normally one or more other node servers receptions The message of central schedule server distribution.
17. system as claimed in claim 16, which is characterized in that
First receiving module be additionally operable to from the central schedule server receive to the central schedule server network The instruction of the abnormal node server forwarding message of connection;
The system also includes:
First sending module, for according to the instruction, being taken to abnormal node is connect with the central schedule server network Business device forwards the message.
18. system as claimed in claim 16, which is characterized in that the system also includes:
Second sending module is used for before the message that first receiving module receives the distribution of central schedule server, the period Ground sends detection packet to the central schedule server, and sending cycle is less than whether central schedule server inquiry receives institute State the polling cycle of detection packet;And after the message in first receiving module reception central schedule server distribution, Message received state is sent to the central schedule server.
19. method as claimed in claim 18, which is characterized in that
Second sending module is additionally operable to send detection packet to the central schedule server using multiple transport protocols.
20. the method described in claim 16, which is characterized in that the central schedule server and the node server are Node in CDN network.
CN201710038638.8A 2017-01-19 2017-01-19 A kind of message distributing method and system Pending CN108337274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710038638.8A CN108337274A (en) 2017-01-19 2017-01-19 A kind of message distributing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710038638.8A CN108337274A (en) 2017-01-19 2017-01-19 A kind of message distributing method and system

Publications (1)

Publication Number Publication Date
CN108337274A true CN108337274A (en) 2018-07-27

Family

ID=62922697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710038638.8A Pending CN108337274A (en) 2017-01-19 2017-01-19 A kind of message distributing method and system

Country Status (1)

Country Link
CN (1) CN108337274A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235399A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Content pushing method and device, computer equipment and storage medium
CN114422335A (en) * 2021-12-31 2022-04-29 长园深瑞继保自动化有限公司 Communication method, communication device, server and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018318A (en) * 2007-02-25 2007-08-15 华为技术有限公司 A stream media system, signaling forward device and stream media transmission method
US7299291B1 (en) * 2000-05-18 2007-11-20 Akamai Technologies, Inc. Client-side method for identifying an optimum server
CN101562569A (en) * 2009-05-26 2009-10-21 中国科学院计算技术研究所 Method and device for selecting forward nodes
CN103139661A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method and device of protecting redundancy of video distribution network node server
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN103685570A (en) * 2013-12-27 2014-03-26 兴天通讯技术(天津)有限公司 Server, terminal and message pushing method
CN106301853A (en) * 2015-06-05 2017-01-04 华为技术有限公司 The fault detection method of group system interior joint and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299291B1 (en) * 2000-05-18 2007-11-20 Akamai Technologies, Inc. Client-side method for identifying an optimum server
CN101018318A (en) * 2007-02-25 2007-08-15 华为技术有限公司 A stream media system, signaling forward device and stream media transmission method
CN101562569A (en) * 2009-05-26 2009-10-21 中国科学院计算技术研究所 Method and device for selecting forward nodes
CN103139661A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method and device of protecting redundancy of video distribution network node server
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN103685570A (en) * 2013-12-27 2014-03-26 兴天通讯技术(天津)有限公司 Server, terminal and message pushing method
CN106301853A (en) * 2015-06-05 2017-01-04 华为技术有限公司 The fault detection method of group system interior joint and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235399A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Content pushing method and device, computer equipment and storage medium
CN112235399B (en) * 2020-10-14 2024-01-02 腾讯科技(深圳)有限公司 Content pushing method, device, computer equipment and storage medium
CN114422335A (en) * 2021-12-31 2022-04-29 长园深瑞继保自动化有限公司 Communication method, communication device, server and storage medium

Similar Documents

Publication Publication Date Title
CN110809054B (en) Data transmission method, device, equipment and storage medium
CN107171885B (en) A kind of methods, devices and systems of detection service device operating status
CN100413290C (en) Method for setting up notification function for route selection according to border gateway protocol
CN101491041B (en) Techniques for distributing routing information using multicasts
CN104852826B (en) A kind of loop detecting method and device
CN101699786A (en) Method, device and system for detecting packet loss
US20110307603A1 (en) Broker node and event topic control method in distributed event distribution system
US7042850B2 (en) Focused link state advertisements
CN103444139A (en) Method and apparatus for rapid rerouting of ldp packets
CN112737880B (en) Bidirectional forwarding detection BFD message forwarding method and network equipment
Kim et al. Efficacy of techniques for responsiveness in a wide-area publish/subscribe system
CN108768796A (en) Link failure detection method and device
CN110908872A (en) Server state detection method and system
WO2017000677A1 (en) Multicast control method and device
CN108337274A (en) A kind of message distributing method and system
US20120327776A1 (en) Alarm Threshold For BGP Flapping Detection
CN108337276A (en) A kind of document distribution method and system
CN104378426B (en) A kind of load-balancing method for real time information dissemination system
CN106231007A (en) A kind of method and device preventing MAC Address from drifting about
CN101141409A (en) Method and equipment for implementing 6to4 relay routing device backup
EP2945314B1 (en) Distributed flow processing system fault tolerance method, nodes and system
US10666723B2 (en) Data distribution system, data communication device and program for data distribution
CN100512164C (en) Originator recognition method and device for tracking the multicast route
CN102325154B (en) Network system with disaster-tolerant backup function and method for realizing disaster-tolerant backup function
CN105791015A (en) High-availability message transmission channel and method for distributed alarm processing system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 550003 Building No. 12 in the Southern Park of Gui'an High-end Equipment Industrial Park, Guizhou Province

Applicant after: GUIZHOU BAISHANCLOUD TECHNOLOGY Co.,Ltd.

Address before: 100015 5 floor, block E, 201 IT tower, electronic city, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: GUIZHOU BAISHANCLOUD TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180727