Summary of the invention
The invention provides a kind of asynchronous delay network communication method and system thereof, buffer processing device, it can be alleviated and occurs the situation that data message is congested, data message is lost in the cache processor.
Technical scheme of the present invention is: a kind of asynchronous delay network communication method, may further comprise the steps,
In first o'clock frame period, server sends downlink data information to first cache processor, and receives the upstream data information that described first cache processor sends; Second cache processor sends downlink data information to terminal, and described terminal sends upstream data information to second cache processor;
In second o'clock frame period, described server receives the upstream data information that described second cache processor sends, and sends downlink data information to described second cache processor; Described first cache processor sends downlink data information to described terminal, and described terminal sends upstream data information to described first cache processor.
A kind of asynchronous delay network communication system comprises,
Server in first o'clock frame period, is used to receive the upstream data information that first cache processor sends, and sends downlink data information to described first cache processor; In second o'clock frame period, be used to receive the upstream data information that second cache processor sends, and send downlink data information to described second cache processor;
First cache processor in first o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In second o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Second cache processor in second o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In first o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Terminal in first o'clock frame period, is used to receive the downlink data information that first cache processor sends, and sends upstream data information to described first cache processor; In second o'clock frame period, be used to receive the downlink data information that described second cache processor sends, and described second cache processor sends upstream data information.
A kind of buffer processing device comprises,
First cache processor in first o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In second o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Second cache processor in second o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In first o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server.
Asynchronous delay network communication method of the present invention and system thereof, described first cache processor and second cache processor adopt ping-pong, are the cycle to switch transmitting data information with the time frame, adopt two cache processor storage forwarding uplink data information, make that occurring the congested chance of data message in first cache processor and second cache processor reduces, and has also reduced the situation that data message is lost simultaneously.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is done a detailed elaboration.
Asynchronous delay network communication method is the cycle to carry out data communication usually with the time frame, and described asynchronous delay network can be that this network can be a full duplex network with the network of polling mode communication, and down link takies different channels with up link.
As shown in Figure 1, asynchronous delay network communication method of the present invention may further comprise the steps, S101, in first o'clock frame period, and server sends downlink data information to first cache processor, receives the upstream data information that described first cache processor sends simultaneously; S102, second cache processor send downlink data information to terminal, and described terminal sends upstream data information to second cache processor; S103, in second o'clock frame period, described server receives the upstream data information that described second cache processor sends, and sends downlink data information to described second cache processor simultaneously; S104, described first cache processor send downlink data information to described terminal, and described terminal sends upstream data information to described first cache processor simultaneously.In one embodiment, this communication means can time frame be the process that the cycle repeats data communication, promptly afterwards the time frame period in repeating step S101, S102, S103, S104.In one embodiment, described upstream data information and downlink data information can comprise communication data packet and polling list polling table information, and first cache processor or second cache processor send data message according to the polling list polling table information that receives to relevant terminal; Described first cache processor and second cache processor also can send data message to relevant terminal according to the precedence of the communication data packet that receives.
The function of described first cache processor and the existing receiving data information of second cache processor, the function that sends data message is also arranged, first cache processor and second cache processor carry out work with ping-pong, promptly in the time of one in the frame period, one of them cache processor and terminal are carried out data communication, and another cache processor and server carry out data communication.Terminal has a plurality of nodes, is equivalent to server and a plurality of node carries out data communication, i.e. point-to-multipoint delivery.The present invention's first cache processor and second cache processor adopt ping-pong to switch the transmission data, utilize two cache processor storage forwarding uplink data information, make that occurring the congested chance of data message in the cache processor reduces, and has also reduced the situation that data message is lost simultaneously.
As the further improvement of above-mentioned steps, in step S102, described terminal can send upstream data information according to the downlink data information that receives to described second cache processor when receiving downlink data information; In like manner, in step S104, described terminal can be when receiving downlink data information, the downlink data information that sends according to described first cache processor that receives sends upstream data information to described first cache processor, be that described terminal does not send upstream data information voluntarily, but when receiving the downlink data information of cache processor, send upstream data information according to the downlink data information that receives again, can solve like this because terminal does not have order to the upstream data bag that cache processor sends, there are the problem of asynchronous continuous transmission in the downlink data information that the generation terminal receives and the upstream data information of transmission.
Because behind the first time frame end cycle, the part upstream data information that may also have the terminal transmission does not send to described first cache processor, so can cause partial data information dropout yet.The present invention also comprises step after step S104, as shown in Figure 2, the upstream data information that S105, terminal will not send in first o'clock frame period sent to the 3rd cache processor in second o'clock frame period; S106, the 3rd cache processor sent to server with the described upstream data information that receives in second o'clock frame period; Certain the 3rd cache processor also can be after second o'clock frame period next the time the described upstream data information that receives is sent to server in the frame period.In like manner as can be known, behind the second hour hands end cycle, the part upstream data information that may also have the terminal transmission does not send to described second cache processor, so also can cause partial data information dropout, after step S104, also comprise step, the upstream data information that terminal will not send in second o'clock frame period sent to the 3rd cache processor in the 3rd o'clock frame period, the 3rd cache processor receives this upstream data information, can be in the 3rd o'clock frame period or in the frame period upstream data information that receives is sent to server during the 3rd o'clock frame period next.
Wherein before described first o'clock frame period, can also comprise step, described terminal sends the data connectivity request message by described first cache processor to described server, server receives this solicited message and sends the data link information to relevant terminal by described second cache processor, is connected with these data of setting up described terminal and corresponding terminal by server.
Corresponding asynchronous delay network communication system of the present invention comprises, as shown in Figure 3,
Server in first o'clock frame period, is used to receive the upstream data information that first cache processor sends, and sends downlink data information to described first cache processor; In second o'clock frame period, be used to receive the upstream data information that second cache processor sends, and send downlink data information to described second cache processor;
First cache processor in first o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In second o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Second cache processor in second o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In first o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Terminal in first o'clock frame period, is used to receive the downlink data information that first cache processor sends, and sends upstream data information to described first cache processor; In second o'clock frame period, be used to receive the downlink data information that described second cache processor sends, and send upstream data information to described second cache processor.
As the further improvement to terminal, in first o'clock frame period, described terminal sends upstream data information according to the downlink data information that receives to described second cache processor when receiving the downlink data information of first cache processor transmission; In second o'clock frame period, described terminal is when receiving the downlink data information of described second cache processor transmission, send upstream data information according to the downlink data information that receives to described first cache processor, be that described terminal does not send upstream data information voluntarily, but when receiving downlink data information, just send according to the downlink data information that receives, can solve like this because terminal does not have order to the upstream data bag that cache processor sends, there are the problem of asynchronous continuous transmission in the downlink data packet that the generation terminal receives and the upstream data bag of transmission.
Because behind the first time frame end cycle, the partial data information that may also have the terminal transmission does not send to described first cache processor or second cache processor, so can cause partial data information dropout yet.Communication system of the present invention also comprises, the 3rd cache processor, as shown in Figure 4, be used in the frame period in a period of time receiving terminal this time frame period on the upstream data information that do not send in the frame period for the moment, simultaneously the 3rd cache processor this time frame period in or should the time frame period next the time the described upstream data information that receives is sent to server in the frame period.
Communication system of the present invention in addition can also comprise clock apparatus, as shown in Figure 4, described clock apparatus is to divide in the cycle with the time frame with the time, described server, first cache processor, second cache processor, the 3rd cache processor and terminal according to this clock apparatus divide the time frame period carry out transfer of data, to guarantee that data can accurately transmit, wherein dotted line represents that clock signal in the clock apparatus can directly deliver to terminal and also can be sent to terminal by network.
The present invention has also disclosed a kind of buffer processing device, and it comprises,
First cache processor in first o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In second o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server;
Second cache processor in second o'clock frame period, is used for the upstream data information that receiving terminal sends, and sends downlink data information to terminal; In first o'clock frame period, be used for sending upstream data information, and receive the downlink data information that described server sends to described server.
This buffer processing device also comprises further,
The 3rd cache processor in the frame period in a period of time, is used to receive the upstream data information that described terminal did not send in the last frame period for the moment, and this time frame period in or next the time this upstream data information is sent to described server in the frame period.Can prevent the upstream data information dropout that buffer processing device will not send like this in the last frame period for the moment.
Voice communication with wireless local regional network (WLAN) comes asynchronous delay network communication method of the present invention and system thereof are done a specific description below, as shown in Figure 5, this system comprises wireless access point AP, speech website and first cache processor and second cache processor, in the frame period in a period of time, intercom mutually between AP and first cache processor, intercom mutually between second cache processor and the speech website; Next the time frame period in, intercom mutually between AP and second cache processor, intercom mutually between first cache processor and the speech website.Two cache processors are the cycle to carry out work with the table tennis form by time frame, this time frame period can produce by clock apparatus, described speech website has a plurality of, promptly forms the data communication of the point-to-multipoint of AP and a plurality of speech websites.Cache processor in the mode of poll to speech website generation downlink data packet, and the speech website is after receiving downlink data packet, send the upstream data bag to cache processor immediately, thereby guaranteed the downlink data packet that the speech website receives and sent to the upstream data bag to keep synchronous transmission.The time in frame period is divided into some isometric time slots in the time of can be with one, and each time frame comprises N time slot, and wherein N is the number that AP connects the speech website, and described communication means specifically may further comprise the steps:
A, in the frame period in a period of time, AP sends downlink data packet to first cache processor, first cache processor sends the upstream data bag to AP simultaneously; Second cache processor is to each speech website distribution downlink data packet, and corresponding speech website returns the upstream data bag to second cache processor immediately according to the upstream data bag that receives;
B, next the time frame period in, AP sends downlink data packet to second cache processor, second cache processor sends the upstream data bag to AP simultaneously; First cache processor is to each website distribution upstream data bag, and corresponding speech website returns the upstream data bag to first cache processor immediately according to the upstream data bag that receives.
Wherein the speech website wraps in to the upstream data that first cache processor does not send and sends to the 3rd cache processor in the B step in the A step, when the 3rd cache processor wraps in this with the upstream data that receives in the frame period or should the time frame period next the time send to AP in the frame period, thereby can reach frame synchronization.
Here, establishing slot length is t
s, N time slot arranged in the frame period in the time of one, i.e. N speech node, frame length is F=Nt in the time of then
sIf each speech website is t to the maximum delay (comprising processing delay and propagation delay time etc.) of AP in the network
Dmax, each website sends upstream data bag arrival cache processor and is t
s<t<t
Dmax, then
This M is exactly the number of the upstream data bag that do not send to cache processor in the frame period in a period of time of speech website, promptly also has the upstream data Bao Wei of M speech website to send to cache processor.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.