Specific embodiment
The invention will be further described below in conjunction with accompanying drawing and concrete execution mode.In order to prevent unnecessarily fuzzy flesh and blood of the present invention, omitted in the accompanying drawings and irrelevant each parts of theme of the present invention or the irrelevant function in the parts.
Figure 1A is the block diagram of information delivery system 100 according to an embodiment of the invention.As shown in Figure 1, information delivery system 100 comprises a plurality of computing nodes 110 that are widely deployed in the network
1-110
n, each computing node is applicable to from network the information that need be unified to handle by the center processing system of collecting.For example, computing node can be the range detector in the main machine detection system, and it is distributed in the different network topology structures so that collect and the analytically dependent information of host information.
Information delivery system 100 also comprises information gathering discharge device 120
1-120
n, each information gathering discharge device 120
1-120
nComprise message recipient 130
1-130
nWith information-storing device 140
1-140
nBecause information gathering discharge device 120 needs to handle the information from a large amount of computing nodes, so this equipment also is distributed usually.Though these information gathering discharge devices are dispersed on a plurality of server nodes, but each information gathering discharge device all has the autonomy of height, and the integral body of formation of cooperating mutually, and make that for carrying out mutual parts with the information gathering discharge device, the information gathering discharge device is equivalent to transparent unified parts.In the description of back, except the place that needs describe especially, all only be described, but should be understood that described feature is equally applicable to each information gathering discharge device in logic information gathering discharge device.
Message recipient 130
1-130
nThe information that reception sends over from each computing node, and these information are sent to information-storing device 140
1-140
nIn.Information-storing device 140
1-140
nUsually store the information that sends over from message recipient in the mode of message queue.Alternatively, because the information type that computing node sended over is various, therefore, message recipient can be classified to information.And information-storing device also can have to tabulate with each information category information corresponding and stores the information of same type.
According to one embodiment of present invention, the information that certain message recipient received usually can store in the information-storing device that is in same information gathering discharge device apace.Can certainly be as required with information stores that certain message recipient received in the information-storing device of other information collecting devices.All these is within protection scope of the present invention.
In addition, in the above-described embodiments, comprise message recipient 130 and corresponding information-storing device 140 although understand each information gathering discharge device 120, but because of understanding, because the relative independentability of the operation between message recipient 130 and the information-storing device 140, information gathering discharge device 120 can only comprise single message recipient or single information-storing device, perhaps comprise single message recipient and a plurality of information-storing device, perhaps comprise a plurality of message recipients and single information-storing device.In other words, message recipient and information-storing device can be used as independent parts and are present in the information delivery system 100, and irrelevant with information gathering discharge device 120.
Information delivery system 100 also comprises a plurality of information analyser 150
1-150
n, it is from information-storing device 140
1-140
nObtaining wherein canned data analyzes and handles.Alternatively, each information analyser 140 can be handled certain type information, and the information of correspondingly obtaining corresponding types from each information-storing device is handled.Perhaps each information analyser can be handled all types of information, but only handles one type information at every turn, and correspondingly obtains the information that needs to handle type from each information-storing device and handle.All these is within protection scope of the present invention.
Figure 1B-1D has illustrated the structured flowchart of each parts in the information delivery system 100 respectively.Figure 1B shows the structured flowchart of computing node 110, as shown in the figure, computing node 110 comprises that information gathering discharge device list memory 1101, default information collect discharge device and determine device 1103, information-storing device 1105, information unit piece packaging system 1107, information unit piece storage device 1108 and information unit piece dispensing device 1109.Wherein stored information is collected the discharge device tabulation in the information gathering discharge device list memory 1101, because can communicating with a plurality of information gathering discharge devices, each computing node comes to transmit collected information to one of information gathering discharge device according to priority, therefore, each computing node need be stored a plurality of information gathering discharge devices that can communicate with it.Default information collect discharge device determine device 1103 determine acquiescence default in other words, computing node will send the information gathering discharge device of collected information to it.Default information is collected discharge device and is determined that device 1103 can be according to determine default information collection discharge device below with reference to the described method of Fig. 3.Information-storing device 1105 storage by computing node collected, to send to the information gathering discharge device so that the information of further handling, information can have polytype, but because computing node collects the type information similar usually, therefore can essentially identical form with these information stores in information-storing device 1105.Many the information that information unit piece packaging system 1107 is used for that computing node is obtained are encapsulated as an information unit piece, and store in the information unit piece storage device 1108.Computing node can be collected a large amount of information usually.And, need once send many information (for example once sending 10 information) usually in order more efficiently and reliably to send information.For this reason, before transmission information, need the tectonic information cell block, each information unit piece comprises many information that are packaged together.Alternatively, can encrypt the information in each information unit piece and compress according to pre-defined algorithm.Subsequently, it is medium to be sent the information unit piece to be stored into the information unit piece storage device 1108 of computing node.Information unit piece dispensing device 1109 obtains the information unit piece that will send from information unit piece storage device 1108, and this information unit piece is sent to the default information collection discharge device that default information collection discharge device determines that device 1103 is determined.Particularly, information unit piece dispensing device 1109 is according to below in conjunction with the described method of Fig. 4 the information unit piece being sent to message recipient 120 in the information gathering discharge device.
Fig. 2 C shows the structured flowchart of information gathering discharge device 120.Shown in Fig. 2 C, information gathering discharge device 120 comprises message recipient 130, information-storing device 140, status poll device 1201, state interactive device 1202 and enlivens information gathering discharge device memory 1203.Status poll device 1201 is used to handle the equipment query information from computing node 110 or information analyser 150.Can status poll device 1201 determine to receive the information of computing node 110 according to the present load situation of information gathering discharge device 120 or to information analyser 150 transmission information.Therefore as hereinafter in conjunction with Fig. 3 described, " recoil state " message of status poll device 1201 structures message format shown in Fig. 2 B, wherein the loading condition of this information gathering discharge device 120 value with the 0-9 that quantizes is written among the field Self_state, and from enliven information gathering discharge device memory 1203, reads other that known and enliven information gathering discharge device information and be written among the field Active_peers.Generally speaking, quantized value is high more, and it is high more that descriptive information is collected the load of discharge device, and quantized value 0 descriptive information is collected discharge device does not have load substantially.And status poll device 1201 will be constructed good message and be replied computing node 110 as " recoil state " message.
State interactive device 1202 is responsible for carrying out state between information gathering discharge device 120 mutual, so that allow each information gathering discharge device know the state of out of Memory collection discharge device, particularly, the mutual content of the state between the information gathering discharge device comprises:
1, safeguards that enlivening the information gathering discharge device of storing in the information gathering discharge device memory 1203 that enlivens tabulates, and come to give priority for each information gathering discharge device according to response time and other feedback information of other information gathering discharge devices;
2, when information gathering discharge device 120 is in abnormality, message (computing node information with the information unit piece that received, message number) passes to and enliven in the information gathering discharge device tabulation other and enliven the information gathering discharge device, corresponding information is collected discharge device and is sent " resending " message to computing node, sends collected information thereby make this computing node normally to collect discharge device to this corresponding information;
3, when this information gathering discharge device 120 is in abnormality, broadcast the unavailable message of this information gathering discharge device, so as the state interactive device 1202 of other information gathering discharge devices by corresponding enliven in the information gathering discharge device memory 1203 that this information gathering discharge device information of deletion upgrades that it keeps enliven the tabulation of information gathering discharge device; And
4, when this information gathering discharge device 120 is resumed work state, the broadcasting corresponding message is so that the state interactive device 1202 of other information gathering discharge devices joins corresponding the enlivening in the tabulation of information gathering discharge device that information gathering discharge device memory 1203 kept of enlivening with this information gathering discharge device.
The mutual purpose of state between the information gathering discharge device 120 is the fail safe and the availability of guarantee information collection discharge device 120, and guarantee when certain information gathering discharge device breaks down, other information gathering discharge devices can be taken over the operation of information gathering discharge device of breaking down, thereby make the information delivery system effectively to move.As discussed previously, each information gathering discharge device has similar configuration, logically can be used as an information gathering discharge device to all information gathering discharge devices treats, but physically, these information gathering discharge devices can be distributed in a plurality of different network node places, to handle the information from computing node nearby according to network topology structure.The distribution mode of this server node is well-known to those skilled in the art, carries out state between them and also is well known to those skilled in the art alternately.Therefore, all can be in the mode of mutual above-mentioned information between the information gathering discharge device all within the protection range in the application.
Message recipient 130 comprises information handling task memory 1301, information unit piece processing unit 1302, information unit piece storage device 1303.Message recipient 130 is set up an information handling task for each to the computing node 110 of its delivery information, and is separate between these tasks.Each task receives the All hosts information of fixedly computing node transmission and it is distributed to information-storing device 140.Like this, utilize the parallel processing such as multithreading or multi-process, make communication between each message recipient 130 and the computing node 110 can not influence the communication between message recipient 130 and other computing nodes 110.These information handling tasks are stored in the information handling task memory 1301.Information unit piece processing unit 1302 is used to receive the information unit piece from computing node 110, wherein according to corresponding calculated node 110, from information handling task memory 1301, select corresponding information handling task to receive the information unit piece, and the information unit block cache that received in information unit piece storage device 1303, and is sent to information-storing device 140 with the information unit piece of institute's buffer memory subsequently.Hereinafter in conjunction with the respective handling that has further described information unit piece processing unit 1302 in the given method of Fig. 6 and Fig. 7.
Should be noted in the discussion above that message recipient 130 receives after the information unit piece from computing node 110, the information unit piece need be sent to information-storing device 140.The information unit piece processing unit 1302 preferential local information store devices of selecting to be in the same information gathering discharge device 120 140 come the stored information cell block, if the resource of local information store device 140 distributes, then will search the available information memory 140 of other information gathering discharge devices, and the information unit piece sent in this information available memory 140 store.Alternatively, consider, when the message recipient 130 in same information gathering discharge device and information-storing device 140 carry out adopting signal/semaphore transmit mode information when mutual for efficient.
Information-storing device 140 comprises information-storing device 1401, Information Access control device 1402, information receiver 1403, information unit block cache device 1404 and information transmitting apparatus 1405.The important use of information-storing device is to store classifiedly the information of collecting from computing node.Information-storing device 1401 selectively comes stored information in the formation mode, each queue stores one category information wherein, and formation is independent separately, and structure is identical.This structure can guarantee stored information efficiently.Therefore, stored information formation in the information-storing device 1401.In addition, Information Access control device 1402 is guaranteed safe and efficient read-write to the information in the Information Access device 1402 with technology known in the art.Information receiver 1403 receives the information unit piece from message recipient 130, the information unit piece that utilizes information unit block cache device 1404 to come buffer memory to receive, remove the encapsulation of information unit piece subsequently and wherein the information extracted to store in the information-storing device 1401.In with reference to figure 8 described methods, describe the processing of information receiver 1403 below in detail.Information transmitting apparatus 1404 sends to information analyser 150 with canned data in the information-storing device 1401 and handles after information-storing device 140 receives the information request of information analyser 150.The concrete processing of information transmitting apparatus 1404 has provided detailed description in the method in conjunction with Figure 10 hereinafter.
Fig. 2 D shows the structured flowchart of information analyser 150.As shown in the figure, information analyser 150 comprises that information gathering discharge device memory 1501, default information collect discharge device and determine device 1502, information-storing device 1503, information processor 1504 and information acquisition device 1505.Wherein be similar to computing node 110, information analyser 150 need determine therefrom to obtain the information gathering discharge device of information according to network state and information category to be processed, therefore, in the information gathering discharge device memory 1501 stored information collect the tabulation of discharge device and default information collect discharge device determine device 1502 determine acquiescence default in other words, information analyser 150 will therefrom obtain the information gathering discharge device of information.Default information is collected discharge device and is determined that device 1502 is with the definite information gathering discharge device of giving tacit consent to of the mode that is similar to the corresponding intrument 1103 in the computing node.Information acquisition device 1505 is collected discharge device from default information and is determined to obtain information the information-storing device 150 of device 1502 determined information gathering discharge devices, and with this information stores in information-storing device 1503, so that handle by information processor 1504.Describe the operation of information acquisition device 1505 in the method that provides below in conjunction with Fig. 9 in detail.
Below will be in more detail mutual between each parts in the descriptor delivery system 100, can reliably and apace handle by the collected information of computing node guaranteeing by information analyser.
At first, each computing node 110
1-110
nNeed to determine will the information that it is collected to send to the message recipient 130 of which information gathering discharge device
1-130
nBecause the network service situation between computing node and the information gathering discharge device, the loading condition of information gathering discharge device and operating state etc. can change, so each computing node must be monitored at any time and will carry out the information gathering discharge device of information communication with it and upgrade so that communicate with the most reliable information gathering discharge device.Fig. 3 shows the flow chart that computing node is determined the method 300 of default information collection discharge device, and wherein computing node will send to collected information this default information and collect discharge device.
As shown in Figure 3, at step S310, computing node initialization self network settings, and collect canned data collection discharge device tabulation in the discharge device list memory 1101 according to system's setting in advance or network condition initialization information simultaneously.Subsequently at step S320, default information is collected discharge device and is determined that it is that default information is collected discharge device that device 1103 is selected the highest information gathering discharge device of information gathering discharge devices tabulation medium priorities, and the state that default information is collected discharge device is set to be verified.The priority of information gathering discharge device can be according to the network connection state of computing node and this information gathering discharge device, set in advance to wait and specify.Subsequently, default information is collected discharge device and is determined that device 1103 comes alternately to determine by collecting discharge device with default information whether this default information is collected discharge device available, particularly, at step S330, default information is collected discharge device and is determined that device 1103 sends " inquiry message is collected the discharge device state " message to default information collection discharge device, collects " recoil state " message of discharge device to wait for default information." inquiry message is collected the discharge device state " message can adopt the message format shown in Fig. 2 A, and wherein the value of Message_type field is set to 0; The type of the value indicating gage operator node among the field Device_Type is classified to the information that this computing node obtained after helping.If at step S340 wait timeout, be that default information collection discharge device is not replied " inquiry message is collected the discharge device state " message, then in step S345, the information gathering discharge device that information gathering discharge device tabulation medium priority takes second place is set to default information and collects discharge device, and begins the processing of step S330 once more.On the contrary, if at step S340, default information is collected discharge device and is received " recoil state " message, then the state of collecting discharge device in step S350 default information is set to available, if " recoil state " message that is received comprises the known information of enlivening other information gathering discharge devices, then come the information gathering discharge device in the update calculation node to tabulate according to the information of these other information gathering discharge devices.Described the message format of " recoil state " message above in conjunction with Fig. 2 B, if wherein default information is collected the information that discharge device is not known other information gathering discharge devices, then the content of Active_peers field can be sky.Subsequently, default information collection discharge device determines that device 1103 utilizes method 300 states of checking default information collection discharge devices regularly, promptly regularly begins the processing of step S320.
At computing node 110
1-110
nDetermined to send to this default information to the collected information of this computing node and collect discharge device after the default information collection discharge device.As mentioned above, computing node once sends many information in the mode of information unit piece usually, therefore, in the present embodiment, is that example comes descriptive information to send with the information unit piece.Fig. 2 C shows the message format that is used to send the information unit piece, and wherein the value of field Message_type is 2; Value among the field Message_ID is the unique identification of information unit piece.Because the size of an information unit piece may be too big, and can't intactly send in a piece of news, therefore, may need multiple messages to send an information unit piece.Field Is_last indicates whether this message is the last item message of this information unit piece, and value 0 expression is not the last item message, is the last item and be worth 1 expression, when being information unit piece of each complete transmission, the field Is_last in the multiple messages can only be: 0,0, .., 1 combination.Deposit the content of information unit piece among the field Payload.
Fig. 4 schematically shows the flow chart that computing node sends to the information unit piece method of the message recipient in the information gathering discharge device.As shown in Figure 4, in step S410, at first information unit piece dispensing device 1107 judges whether default information is collected discharge device available.If it is unavailable that default information is collected discharge device, then carry out processing shown in Figure 3 and redefine default information collection discharge device.On the contrary, if default information is collected discharge device and can be used, then select the information unit piece that will send in the formation of canned data cell block in the information unit piece storage device 1100, and send this information unit piece is collected discharge device to default information message recipient at step S420.Alternatively, send an information unit piece with multiple messages if desired, then also comprised among the step S420 sending the step that constitutes the multiple messages that carries a complete information cell block.Subsequently, after the transmission of information unit piece finishes, wait for the return information of default information collection discharge device at step S430.If at step S440, information unit piece dispensing device 1107 determines not receive return information, it is wait timeout, then carry out processing shown in Figure 3 by computing node and redefine default information collection discharge device, and the transmission of blockage information cell block is till having determined that default information is collected discharge device at step S450.If receive " successfully receiving " message of returning from the message recipient of information gathering discharge device, then at step S460, information unit piece dispensing device 1107 selects the information unit piece next to be sent in the formation of information unit piece to send.If receive " successfully sending " message of returning from message recipient, then at step S470, information unit piece dispensing device 1107 discharges this information unit piece in the tabulation of information unit piece, and selects the information unit piece next to be sent in the formation of information unit piece to send.If when receiving, then then from the block of information tabulation, take out this information unit piece and send again at step S480 from " resending " message that message recipient returns.The processing among Fig. 4 is carried out in circulation, till the information unit piece that will not send in the formation of information unit piece.
According to top description with reference to the given relevant calculation node of figure 3-Fig. 4 as can be known, computing node determines that regularly default information collects the state of discharge device, to guarantee and can the information that it is collected send to the information gathering discharge device.Computing node is judged according to the information that the information gathering discharge device is returned whether information sends successful, thereby is guaranteed and information can be sent to the information gathering discharge device reliably when collected information is sent to the information gathering discharge device.For example, when message recipient returns " successfully receiving " message, this has only illustrated that message recipient receives the information unit piece that computing node sends, and can not determine the information unit piece whether successfully sent to be used in the information-storing device storage, then computing node is not deleted the information unit piece of institute's buffer memory, but only continues to send next information unit piece.And only return " successfully send " message at message recipient, promptly message recipient successfully sends to the information unit piece after the information-storing device, just deletes the information unit piece of buffer memory in the computing node.Therefore, utilize above-mentioned mechanism, can guarantee reliably the information unit piece to be stored in the information-storing device to be further processed.
In addition, the information gathering discharge device is when replying " inquiry message is collected the discharge device state " message of computing node, other that returns also that it knows enlivens the information of information gathering discharge device, thereby in the time of can guaranteeing further that this information gathering discharge device goes wrong, computing node can send to collected information other information gathering discharge devices, has increased the reliability of information delivery thus.
Fig. 5 and Fig. 6 have provided respectively flow chart corresponding with the method for the computing node shown in Fig. 3 and 4, the correlation method on the information gathering discharge device.Particularly, Fig. 5 shows the flow chart of method 500 that the information gathering discharge device is replied " inquiry message collect discharge device state " message of computing node.Method 500 starts from step S510, and wherein the information gathering discharge device carries out initialization operation, i.e. initialization self network settings, and wait is from the message of computing node.At step S520, receive " inquiry message is collected the discharge device state " message subsequently from computing node, and at step S530, the message of status poll device 1201 structures message format shown in Fig. 2 B.At step S540, status poll device 1201 will be constructed good message and be replied computing node as " recoil state " message subsequently.
Fig. 6 shows the flow chart that message recipient 130 in the information gathering discharge device receives the method 600 of the information unit piece that sends from computing node.As shown in Figure 6, at step S610, the information unit piece processing unit 1302 of message recipient 130 receives the connection request that sends information unit piece message from the request of computing node, and searches the information handling task corresponding with this computing node at step S620 in message pick-up task memory 1301.If this information handling task is also set up, then at the newly-built information handling task of step S630 corresponding to this computing node, and by this information handling task continuation subsequent operation.Subsequently, at step S640, information unit piece processing unit 1302 utilizes the information handling task corresponding to this computing node to receive from message computing node, that comprise the information unit piece (it has the message format shown in Fig. 2 C).As previous with reference to as described in the figure 4, might need multiple messages to send the content of an information unit piece, therefore, alternatively, method 600 comprises that also step S650 cause information handling task judges whether intactly to have received the content (value according to message field Is_last is judged) of an information unit piece.If also do not receive a complete information unit piece in step S650 judgement, then continue a piece of news under reception and the buffer memory by information handling task, till having received a complete information unit piece fully at step S660.After intactly having received an information unit piece, at step S670, by information unit piece processing unit 1302 utilize information handling task with the information unit block cache that received in information unit piece storage device 1303, and send the message that indication " successfully receives " the information unit piece to computing node.Subsequently step S680 by information unit piece processing unit 1302 with receive and the information unit piece of buffer memory sends to information-storing device.If successfully the information unit piece is sent to information-storing device, then utilize information handling task to return the message of " successfully sending " information unit piece to computing node by information unit piece processing unit 1302 at step S690, so that computing node discharges the information unit piece of buffer memory, message recipient also discharges the information unit piece of institute's buffer memory simultaneously.Wait at step S695 subsequently and receive this next information unit piece from this computing node, if receive next information unit piece, then continue the processing that begins from step S640, otherwise after a period of time, finish with this computing node information corresponding Processing tasks or make this information handling task enter resting state at step S697.
Should be noted in the discussion above that above-mentioned information unit piece processing unit 1302 receives the information unit pieces and processing that the information unit piece that is received is sent in the corresponding information memory can executed in parallel.In case and the processing of message recipient occurs unusually, then can send " resending " message to computing node, so that computing node resends the information unit piece.On the contrary, can't handle the information that computing node sends if the load of information gathering discharge device is too high, then can give relevant information gathering discharge device with this advisory alternately by the state between the information gathering discharge device, so that corresponding information is collected discharge device and sent " resending " message to computing node, carry out information delivery thereby make this computing node continuation and this corresponding information collect between discharge device.
The message of above-mentioned " successfully receiving " information unit piece, the message of " successfully sending " information unit piece and " resending " message can be used the message format shown in Fig. 2 D.Particularly, the field Message_ID in this message indicates the unique information number of related information unit piece, to identify the related information unit piece of this message.Value 0,1 and 2 among the field Rcv_state is represented above-mentioned three kinds of states respectively, i.e. " successfully reception ", " successfully sending " and " resending ".
Fig. 7 shows the flow chart that message recipient sends to the information unit piece method of information-storing device.At step S710, information unit piece processing unit 1302 is determined the classification of information according to the information of information unit piece, subsequently at step S 720 inquiry local information store devices, to determine whether the local information store device has memory space to store this information unit piece.If determine that at step S730 the local information store district has not had memory space, then step S740 place information unit piece processing unit 1302 from enliven information gathering discharge device tabulation, choose priority high enliven the information gathering discharge device, and to this equipment " solicited message formation " message takes place at step S750 and with the specified queue of inquiring the information that is used to store respective classes in the information-storing device in this equipment whether idle memory space is arranged.If at step S760, information unit piece processing unit 1302 does not receive " formation can with " message or receives " formation is unavailable " message from this equipment from this equipment, promptly the information-storing device of this equipment does not have the respective stored space to store this information-storing device, then enlivens the information gathering discharge device with what continue to choose other from enliven the tabulation of information gathering discharge device returning step S740.
After having determined information-storing device, utilize information handling task to send the information unit piece to this information-storing device at step S770 information unit piece processing unit 1302.As mentioned above, an information unit piece needs multiple messages to send usually.After the content that sends whole information unit piece, judge whether to receive " receiving " message at step S780 from information-storing device, if in a period of time, do not receive this message, be the response timeout of information-storing device, then turn back to the processing that step S720 restarts to send the information unit piece.On the contrary, if information unit piece processing unit 1302 has been received " receiving " message from information-storing device, then the descriptive information cell block is received and is stored by information-storing device, therefore at step S790, information unit piece processing unit 1302 utilizes information handling task to return " successfully sending " message to the computing node that sends this information unit piece, this information unit piece of buffer memory in step S795 release information unit piece storage device 1303, and the processing of ending method 700.
That Fig. 8 shows is corresponding with method shown in Figure 7, receive at information-storing device 140 places and storage from the flow chart of the method 800 of the information unit piece of message recipient.As shown in Figure 8, in step S810, information-storing device carries out initialization, be included in information accumulation device and be used in the memory space of stored information in 1401 minutes, dividing with the formation of information category information corresponding, in information unit block cache device 1404 of constructing in memory space is used in the information unit piece formation of cache information cell block, and distributes a plurality of progresses of work that message pick-up is handled of carrying out.Subsequently in step S820, information receiver 1403 receives the request of " the solicited message formation " of local information receivers or external information receiver, and judges at step S 830 whether information-storing device is used to store the resource of corresponding information cell block available.Judge whether available standard comprises for the resource of information-storing device: whether whether information unit piece formation full, that information unit block cache device 1404 is used for the cache information cell block is full to be used for storing the message queue of this information in the information-storing device 1401, can not apply for temporary space if be full of, whether local operating state enters critical condition.If can use in step S830 judgement resource, then revise and the memory block user mode that will receive the formation of information category information corresponding and the formation of information unit piece of information (making the memory space that is used to store the maximum fault information that once sends in advance), and return " formation can be used " message to message recipient at step S840 information receiver 1403.Otherwise at step S850, information receiver 1403 returns " formation is unavailable " message to message recipient, so that message recipient can be stored to out of Memory memory requests information unit piece.At step S860 place, information receiver 1403 receives the information unit piece, because each information unit piece needs multiple messages to transmit, therefore information-storing device is according to the sign of each message, be that value among the field Message_ID is stored these message, till having received whole information unit piece.At step S870, information receiver 1403 is assembled these information unit pieces and is carried out decompress(ion)/decryption processing alternatively to restore many information that comprise in the information unit piece, in the corresponding information formation of storing information-storing device 1401 into subsequently.Method is then carried out the processing of step S880, and wherein information receiver 1403 returns " receiving " message to message recipient, and is released in the information unit piece of buffer memory in that step S860 distributes, the information unit block cache device 1404 at step S890.
According to as can be known above-mentioned, message recipient not only can send to the information unit piece local information store device that is in the same information gathering discharge device, but also can be when the local information store device be unavailable, the information unit piece is sent to other information-storing devices reliably store, thereby further guaranteed the reliability of information delivery.In addition, according to top flow chart with reference to figure 3-8, only after information stores is in the respective queue of information-storing device, just progressively discharge the memory space of temporary transient stored information in message recipient and the computing node, thereby guaranteed that collected information can send to information-storing device safely and reliably.
Fig. 9 and 10 shows the information interactive method between information analyser and the information gathering discharge device.Particularly, Fig. 9 shows the information-storing device of information analyser 150 from the information gathering discharge device and obtains the method 900 that information is handled.Therefore, at first, at step S910, information analyser 150 is selected therefrom to obtain the information gathering discharge device that information is handled.Be similar to computing node, information analyser 150 also has the tabulation of information gathering discharge device, and can determine default information collection discharge device to be similar to reference to method shown in Figure 3.Subsequently, at step S920, the network topology structure situation that the information acquisition device 1505 of information analyser 150 is collected between discharge device 120 and the information analyser 150 according to default information is selected information transmission mode, for example, whether whether whether information will encrypt, compress, many information are packed or the like.After having determined information transmission mode, at step S930, the information-storing device 150 that information analyser 150 solicited messages are collected in the discharge device 120 sends the information that specifies number that belongs to certain classification.Particularly, send " solicited message " message to information-storing device 150.The concrete form of this message is shown in Fig. 2 E.The type of the information that field queue_type indication wherein will be handled; Field Message_Num specifies an information transmitted number; Field Is_Compact is a Boolean, indicates whether whether will compress when transmission information (its intermediate value 0 indication is not compressed, and compresses and be worth 1 indication); Field Is_Encrypt is a Boolean, and whether indication will carry out encryption (its intermediate value 0 indication is not encrypted, and is worth 1 indication encryption) when transmission information.Subsequently, at step S940, the information list that information acquisition device 1505 is waited for from information-storing device.If receive corresponding information, then carry out alternatively and decompress or decryption processing at step S950, and with the information stores obtained in the pending information list of information-storing device 1503 so that further handle by information processor 1504.On the contrary, if at step S940 wait timeout, then information acquisition device 1505 turns back to the processing of step S910, handles to select new default information collection discharge device to obtain information from the tabulation of information gathering discharge device.In addition, if at step S960, information acquisition device 1505 determines that the information of obtaining from the information gathering discharge device is less than required predetermined entries to be processed, then can be at step S970, information acquisition device 1505 definite data entries that will continue to obtain, and turn back to step S910, handle from the tabulation of information gathering discharge device, to select new default information collection discharge device to obtain information.
Figure 10 has illustrated with the described method of Fig. 9 corresponding, is sent the method 1000 of information in response to the information request of information analyser 150 by information-storing device 140.This method starts from step S1010, wherein information-storing device 140 receives after " solicited message " message from information analyser 150, determine the type of information by information transmitting apparatus 1405 according to the value among the field queue_type, and in information-storing device 1401, locate the information list of storage the type information.If determine not have in this message queue number to reach the information of the clauses and subclauses of Message_Num appointment, then read full detail clauses and subclauses in this information list at step S1030 at step S1020.Otherwise from this information list, read the data entries of specified number among the field Message_Num at step S1040.Subsequently in step S1050, information transmitting apparatus 1405 is prepared the information that will send according to the transmission means of appointment in " solicited message " message (as whether encrypting and compression etc.).And at step S1060, information transmitting apparatus 1405 sends to the information requested analyzer with ready information, and finishes the transmission of this time information at step S1070, and removes the data entries that has sent from corresponding information list.
Because the quantity of information analyser 150 is general all much smaller than the quantity of computing node, and its usually and the network connection architecture between the information gathering discharge device 120 also comparatively simple, so its TCP reliable transmission that is connected with the information gathering discharge device guarantees time generally just can meet the requirements.So it is simply many that the assurance of the transmission here mechanism is compared with the transmission of information gathering discharge device compared with computing node, and also can accelerate the processing speed of information stores and distribution greatly.
In summary, in information delivery according to the present invention system, computing node to information gathering discharge device transmission data, has increased the flexibility of transmission with the enciphered message block mode; The multiple accepting state feedback of information gathering discharge device is guaranteed the integrality in the information distribution procedure.In addition, computing node is classified to information in the acquisition of information process, has simplified the handling process in early stage of information analyser; The easier employing set form of similar information is transmitted/is resolved, and has also saved transmission bandwidth and parsing time.Information delivery system's employing distributed deployment mode according to the present invention is disposed node, if a station information collection analysis equipment is busy or it is unusual to occur, computing node can send information to available information collection analysis equipment apace, thereby make that main frame delivery system according to the present invention has the reliability height, the advantage that availability is good.
Though above the present invention has been described with reference to embodiment, should be appreciated that can be according to practical application, and each parts of information delivery system are split and merge.For example can there be the information gathering discharge device, but message recipient wherein and information-storing device be present in the information delivery system with parts independently respectively, and message recipient and information-storing device have the state interactive function of information gathering discharge device respectively.
It should be noted the foregoing description the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment under the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to restriction to claim.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.Any order is not represented in the use of word first, second and C grade.Can be title with these word explanations.