CN110247942A - A kind of data transmission method for uplink, device and readable medium - Google Patents

A kind of data transmission method for uplink, device and readable medium Download PDF

Info

Publication number
CN110247942A
CN110247942A CN201810194815.6A CN201810194815A CN110247942A CN 110247942 A CN110247942 A CN 110247942A CN 201810194815 A CN201810194815 A CN 201810194815A CN 110247942 A CN110247942 A CN 110247942A
Authority
CN
China
Prior art keywords
data packet
sent
data
subscriber
version number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810194815.6A
Other languages
Chinese (zh)
Other versions
CN110247942B (en
Inventor
汪胜蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810194815.6A priority Critical patent/CN110247942B/en
Publication of CN110247942A publication Critical patent/CN110247942A/en
Application granted granted Critical
Publication of CN110247942B publication Critical patent/CN110247942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/56Queue scheduling implementing delay-aware scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a kind of data transmission method for uplink, device and readable medium, it is related to technical field of data processing, in method and apparatus disclosed by the invention, data source is after getting data packet to be sent, the version number of data packet to be sent is put into the tail of the queue of version number's buffer queue, when determine in version number's buffer queue and wrap send that the quantity of version number reaches packaging threshold value in window when, the packet combining to be sent of respective numbers is sent to subscriber at a packaging data packet, compared with sending data packet to be sent to subscriber one by one, subscriber can once read multiple data packets from receiving queue, to reduce the time of read data packet and save the occupied resource of read data packet, so that subscriber has more resource processing data packet and provides business service, to accelerate the processing speed of data packet, into And the delay generated when also just reducing synchrodata, it is particularly suitable for process locating for subscriber and loads higher scene.

Description

A kind of data transmission method for uplink, device and readable medium
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data transmission method for uplink, device and readable medium.
Background technique
In order to promote the number of players of carrying, network game server would generally be split as multiple service processes by function. Different processes is responsible for different playing method function and data storage.Between different playing method modules again tight association, a process Playing method often rely on the data in other playing method processes.And the real-time of player's interaction is emphasized in most of online game very much Property, the processing delay of player requests must be smaller than the reaction time on sense organ, otherwise will lead to the Caton of game experiencing.This is just It is required that the calculating logic of playing method and the data of dependence avoid striding course data query from increasing additional request in the same process Processing delay.It is therefore desirable to which the data of a process are synchronized in other processes for relying on the data.Each process can be safeguarded Its data buffer storage for relying on data, the data buffer storage for only needing to inquire in this process when inquiring data.
Existing method of data synchronization are as follows: as shown in connection with fig. 1, the data source for being responsible for the process of playing method module is receiving data When modification, the data of modification are sent to subscriber by the way of broadcast, subscriber is the number for relying on the playing method module and generating According to other processes.Subscriber can just send only after receiving and processing data to data source to be confirmed, however due to difference Subscriber carry different playing methods, and when some playing method CPU overheads are bigger, will lead at the subscriber that these playing methods are provided In high load condition, and then lead to slowing for the synchrodata for receiving and processing data source transmission, to cause more Data stacking in the receiving queue of subscriber, cause data synchronizing relay increase the case where.
Therefore, the delay generated when how to reduce inter process synchronization data become in the prior art urgent problem to be solved it One.
Summary of the invention
The embodiment of the present invention provides a kind of data transmission method for uplink, device and readable medium, to reduce in the prior art into Delay between journey when synchrodata.
In a first aspect, the embodiment of the present invention provides a kind of data transmission method for uplink, comprising:
Data source obtains data packet to be sent;And
According to the sequence of first in, first out, the version number for the data to be sent that will acquire is put into the team of version number's buffer queue Tail;
It sends the quantity of the version number in window when determining to fall into and wrap in version number's buffer queue and reaches packaging It is that a packaging data packet is sent to subscriber, the packaging data by the packet combining to be sent of respective numbers when threshold value Quantity information is carried in the packet header of packet, so that subscriber splits into phase according to the quantity information, by the packaging data packet Answer the data packet of quantity;And the data packet after fractionation is written in the data buffer storage of subscriber place process.
In this way, subscriber once can be from receiving queue compared with sending data packet to be sent to subscriber one by one Multiple data packets are read, thus reduce the time of read data packet and save the occupied resource of read data packet, so that Subscriber has more resource to handle data packet and provide business service, to accelerate the processing speed of data packet, in turn When the delay generated when also just reducing synchrodata, the especially process locating for subscriber load are higher, provided using the present invention Method, can prevent subscriber for a long time be in slow consumption status, in addition, by introduce version number's buffer queue, according to version It drops into and wraps in this number buffer queue and send the quantity of version number in window and determine whether to reach packaging threshold value, only when reaching Packaging data packet is just sent when packaging threshold value, and subscriber can be allowed to have more time processing to send but the data of non-acknowledgement in this way Packet accelerates the speed that subscriber handles data packet.
Preferably, the number for falling into window and having sent but not being subscribed person's acknowledgement is sent in version number's buffer queue in advance According to the version number of packet;The method, further includes:
When receiving the data packet acknowledgement instruction of subscriber every time, window is sent in advance described in synchronous slide and and wraps transmission window Mouthful, so that removing the pre- transmission window by the version number of the data packet of acknowledgement;And
When have the version number of data packet from it is described and wrap send window be added into the pre- transmission window when, however, it is determined that mend out It is not sent to enter the pre- corresponding data packet of version number for sending window, then it is corresponding to be sent will to fill into the pre- version number for sending window Data packet is sent to subscriber.
Since subscriber can send acknowledgement instruction after having handled data packet to subscriber, in order to monitor subscriber's in real time Data processing state, receive acknowledgement instruction after, need to slide sent in advance in version number's buffer queue window and and wrap transmission Window, in this way according to fallen into current version buffer queue it is pre- transmission window and and wrap send window in version number quantity, Accurately determine the current consuming capacity of subscriber.
Optionally, the data source from the first process for obtaining the data packet to be sent and the subscriber For the data packet received to be written in the data buffer storage of the second process.
Data source and subscriber can be applied in same server between the complementary multi-process of data in the present invention Data are synchronous.
Preferably, the pre- size for sending window are as follows:
Y=max (0.1*WPS, (RTT+tdelay) * WPS)
Wherein,yIndicate the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIndicate that subscriber's single sends delay caused by the acknowledgement instruction handled at least two data packets.
It is to handle a data packet or handling multiple since subscriber is when sending acknowledgement instruction to data source It is just sent after data packet, can so there is an acknowledgement delay, and by being configured to the pre- size for sending window, it can be with Avoid the delay of acknowledgement bring that data source is caused to do sth. in advance the generation for using packaging sending method to send this case that packaging data packet.
Optionally, if the acknowledgement received is sent after being designated as subscriber's one data packet of every processing, the pre- hair Send the size of window are as follows:
Y=max (0.1*WPS, RTT*WPS)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
It can be generated since data source sends data packet to be sent between subscriber and subscriber's return acknowledgement instruction RTT delay, in order to guarantee that data source can receive first version number pair in pre- transmission window when sending window in advance and being filled The acknowledgement for the data packet to be sent answered indicates, pre- transmission window can be allowed normally to slide, so that it is too early also to avoid data source It is sent using packaging sending method and is postponed caused by data packet.
Second aspect, the embodiment of the present invention provide another data transmission method for uplink, comprising:
Subscriber obtains the packaging data packet of data source transmission from receiving queue, and the packaging data packet is that data source exists The sequence after data packet to be sent according to first in, first out is obtained, it is slow that the version number for the data packet to be sent that will acquire is put into version number Deposit the tail of the queue of queue;It sends the quantity of the version number in window when determining to fall into and wrap in version number's buffer queue and reaches When packaging threshold value, the data packet to be sent of respective numbers is merged, is taken in the packet header of the packaging data packet With quantity information;
According to the quantity information, the packaging data packet is split into the data packet of respective numbers;And
Where data packet after fractionation is written to subscriber in the data buffer storage of process.
Subscriber is when receiving packaging data packet, according to the quantity information carried in the packet header of packaging data packet, by institute State the data packet that packaging data packet splits into respective numbers;And the data packet after fractionation is written to the number of subscriber place process According in caching, since using packaging mode packaging data packet occurs for data source, so that subscriber has more resource to handle number According to wrapping and providing business service, to accelerate the processing speed of data packet, and then while also just reducing synchrodata, is generated When delay, the especially process locating for subscriber load are higher, using method provided by the invention, subscriber can be prevented for a long time In slow consumption status.
Preferably, the method, further includes:
Acknowledgement instruction is sent to data source, the version number of the data packet of acknowledgement is carried in the acknowledgement instruction.
By carrying the version number of the data packet of acknowledgement in indicating to the acknowledgement that data source is sent, so that data source root According to acknowledgement indicate in the version number that carries, slide and send window in version number's buffer queue in advance and and wrap transmission window, such root According to fallen into current version buffer queue it is pre- transmission window and and wrap send window in version number quantity, accurately determine to order The current consuming capacity of reader.
The third aspect, the embodiment of the present invention provide a kind of data sending device, comprising:
Acquiring unit, for obtaining data packet to be sent;
First processing units, for the sequence according to first in, first out, the version number for the data packet to be sent that will acquire is put into The tail of the queue of version number's buffer queue;
Transmission unit sends the version number in window for working as to determine to fall into and wrap in version number's buffer queue It is that a packaging data packet is sent to subscriber by the packet combining to be sent of respective numbers when quantity reaches packaging threshold value, Quantity information is carried in the packet header of the packaging data packet, so that subscriber is according to the quantity information, by the packaging number The data packet of respective numbers is split into according to packet;And the data packet after fractionation is written to the data buffer storage of subscriber place process In.
Preferably, the number for falling into window and having sent but not being subscribed person's acknowledgement is sent in version number's buffer queue in advance According to the version number of packet;And described device, further includes:
Sliding unit when the data packet acknowledgement for receiving subscriber every time indicates, sends window described in synchronous slide in advance Mouthful and and wrap transmission window so that removing the pre- transmission window by the version number of the data packet of acknowledgement;
The second processing unit, for when have the version number of data packet from it is described and wrap send window be added into the pre- transmission When window, however, it is determined that the corresponding data packet of version number for filling into pre- transmission window out is not sent, then will fill into pre- transmission window The corresponding data packet to be sent of version number is sent to subscriber.
Preferably, the data source from the first process for obtaining the data packet to be sent and the subscriber For the data packet received to be written in the data buffer storage of the second process.
Preferably, the pre- size for sending window are as follows:
Y=max (0.1*WPS, (RTT+tdelay) * WPS)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIndicate that subscriber's single sends delay caused by the acknowledgement instruction handled at least two data packets.
Optionally, if the acknowledgement received is sent after being designated as subscriber's one data packet of every processing, the pre- hair Send the size of window are as follows:
Y=max (0.1*WPS, RTT*WPS)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
Fourth aspect, the embodiment of the present invention provide another data sending device, comprising:
Acquiring unit, the packaging data packet sent for obtaining data source from receiving queue, the packaging data packet are According to the sequence of first in, first out after obtaining data packet to be sent, the version number for the data packet to be sent that will acquire is put into data source The tail of the queue of version number's buffer queue sends the version number in window when determining to fall into and wrap in version number's buffer queue When quantity reaches packaging threshold value, the data packet to be sent of respective numbers is merged, the packaging data packet Quantity information is carried in packet header;
Split cells, for according to the quantity information, the packaging data packet to be split into the data packet of respective numbers;
Writing unit, for the data packet after splitting to be written in the data buffer storage of subscriber place process.
Preferably, described device, further includes:
Transmission unit carries the data packet of acknowledgement for sending acknowledgement instruction to data source in the acknowledgement instruction Version number.
5th aspect, the embodiment of the present invention provide a kind of computer-readable medium, and being stored with can be executed by computing device Computer program, when described program is run on the computing device so that the computing device execute source side provide The step of data transmission method for uplink, or the step of executing the data transmission method for uplink that subscriber side provides.
6th aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the data transmission method for uplink of source side offer, or holds The data transmission method for uplink that row subscriber side provides.
The invention has the advantages that:
Data transmission method for uplink, device and readable medium provided in an embodiment of the present invention, data source are getting number to be sent After packet, the version number for the data packet to be sent that first will acquire is put into the tail of the queue of version number's buffer queue, described when determining When being fallen into version number's buffer queue and wrapping the quantity of version number sent in window and reach packaging threshold value, by respective numbers to Packet combining is sent into a packaging data packet, is then sent to subscriber, and sends data to be sent to subscriber one by one Packet is compared, and subscriber can once read multiple data packets from receiving queue, to reduce the time of read data packet With save the occupied resource of read data packet;In addition, subscriber is when receiving packaging data packet, according to packaging data packet Packet header in the quantity information that carries, the packaging data packet is split into the data packet of respective numbers;And by the number after fractionation Where being written to subscriber according to packet in the data buffer storage of process, since subscriber has more resource to handle data packet and offer Business service, to accelerate the processing speed of data packet, and then the delay that while also just reducing synchrodata generates, especially exist When the load of process locating for subscriber is higher, using method provided by the invention, subscriber can be prevented to be in slow consumption for a long time State.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram that progress data are synchronous between data source and subscriber in the prior art;
Fig. 2 a is the application architecture figure for implementing the network game server of data transmission method for uplink provided by the invention;
Fig. 2 b is inter process synchronization schematic diagram in network game server provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram for carrying out data transmission in the present invention in server between process;
Fig. 4 is the flow diagram of data transmission method for uplink provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of version number's buffer queue provided in an embodiment of the present invention;
Fig. 6 a is that version number provided in an embodiment of the present invention falls into and wraps the schematic diagram for sending window;
Fig. 6 b is the schematic diagram that version number provided in an embodiment of the present invention fell into and wrapped transmit queue after transmission window;
Fig. 6 c is the contrast schematic diagram of packaging sending method and real-time sending method provided in an embodiment of the present invention;
Fig. 7 a is that version number provided in an embodiment of the present invention falls into the pre- schematic diagram for sending window;
Fig. 7 b is the schematic diagram that version number provided in an embodiment of the present invention falls into transmit queue after pre- transmission window;
Fig. 8 a is when carrying a version number in acknowledgement provided in an embodiment of the present invention instruction, in version number's buffer queue in advance It sends window and and wraps the schematic diagram for sending serial ports sliding front and back;
Fig. 8 b is when carrying 5 version numbers in acknowledgement provided in an embodiment of the present invention instruction, in version number's buffer queue in advance It sends window and and wraps the schematic diagram for sending serial ports sliding front and back;
Fig. 9 a is the different pre- variation schematic diagrames for sending subscriber's consuming capacity under window provided in an embodiment of the present invention;
Fig. 9 b is the different pre- bring delays sent under window when subscriber provided in an embodiment of the present invention loads variation Schematic diagram;
Figure 10 is the schematic diagram of version number's buffer queue provided in an embodiment of the present invention comprising non-transmittable window;
Figure 11 a is that data when subscriber provided in an embodiment of the present invention is in normal consumption status send schematic diagram;
Figure 11 b is that data when subscriber provided in an embodiment of the present invention is in slow consumption status send schematic diagram;
Figure 12 a is one of data process effects schematic diagram of subscriber after using data transmission method for uplink provided by the invention;
Figure 12 b is after using data transmission method for uplink provided by the invention the two of the data process effects schematic diagram of subscriber;
Figure 13 is the structural schematic diagram of the data sending device of source side provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram of the data sending device of subscriber side provided in an embodiment of the present invention;
Figure 15 is the structural schematic diagram of the computing device provided in an embodiment of the present invention for implementing data transmission method for uplink.
Specific embodiment
Data transmission method for uplink, device and readable medium provided in an embodiment of the present invention, to solve prior art use The problem of data synchronizing relay caused by data transmission method for uplink increases.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
To facilitate the understanding of the present invention, to the present embodiments relate to part term be illustrated:
1, data source: the source of data is to provide certain component for needing data, i.e. data source is used to need to other The process of Process Synchronization data provides data synchronization service.
2, subscriber: for the relying party of data, data variation in focused data source needs to receive the logical of data variation Know, i.e. subscriber's data packet that source is sent for receiving data, and the data for writing the data packet to subscriber place process are slow In depositing, in case the process directly inquires data from the data buffer storage of self maintained when needing data.
3, online game, also referred to as game on line refer generally to the electronic game that several players carry out interaction entertainment by network.
4, network game client, refers to corresponding with network game server, provides the program of local service for player, It is typically mounted on the mobile phone of player, needing to cooperate with server runs.
5, network game server, refers to corresponding with network game client, is mounted on Internet data center (IDC) In, the software program of data forwarding Yu logical process service is provided for network game client.Due to being mounted in player device Client be easy to be cracked and be utilized cheating, it is complicated to require with crucial logic in network so in online game It is calculated on game server.
6, consuming capacity refers to the data volume that can receive and handle in subscriber's unit time.
7, data synchronizing relay refers to the time difference sent data between subscriber's completion data receiver from data source.
8, data synchronize slow consumption problem, refer to that the data transmission speed of data source is more than the information rate of subscriber When, the problem of data can be deposited in the receiving queue of subscriber, synchronizing relay is caused to increase.
9, the tail of the queue in version number's buffer queue refers to adjacent with the last one version number fallen into queue and does not insert The position of version number.
In order to solve the problems, such as that data synchronizing relay existing in the prior art is higher, the embodiment of the present invention gives a kind of solution The certainly data transmission method for uplink of the above problem, can be applied in server, such as method provided by the invention can be applied to net In network game server, the application architecture figure of the network game server can be with reference to shown in Fig. 2 a, the net of a online game For network game server when providing service to player, it is each that the function of being realized according to this game, which is provided with corresponding scene process, A function provides service, and to provide various playing methods, player can choose different playing methods and carry out for the most common service in game Game is then directed to each playing method, is provided with scene process corresponding with the playing method in network game server and provides for the playing method Service, such as the service that game provides in Fig. 2 a have playing method, ranking list, auction and buffer service, and wherein playing method service includes side Group, war team, compete and form a team service etc..For these services, give in Fig. 2 a corresponding scene process be playing method, auction and The schematic diagram of the offers service such as ranking list provides service if any special scene process for faction's playing method, and player can help Send game.In order to guarantee the real-time of the interaction of player in game process, it is provided in the corresponding scene process of different playing methods corresponding Caching, so as to which the data in other processes are synchronized in the caching of oneself, avoid striding course data query increase volume Outer request handles delay, for example, the process Zhong You faction data buffer storage of service is provided in Fig. 2 b for faction's playing method, for the team that fights Playing method, which provides, war team's data buffer storage etc. in the process serviced, the data buffer storage being arranged in each process can cache other processes In data, it is possible thereby to read the data of other processes from the caching of oneself.Will be in process any in online game It, can be according to data provided by the invention in order to reduce the synchronous time delay of inter-process data when data are synchronized in other processes Sending method implement, i.e., data source is set in the process for needing synchrodata, need other processes generate data into Subscriber is set in journey, the data packet to be sent generated in the available process for needing synchrodata of data source, and will be pending The tail of the queue for sending the version number of data packet to be put into version number's buffer queue, when determining in version number's buffer queue and wrap transmission window It is that a packaging data packet is sent by the packet combining to be sent of respective numbers when the quantity of middle version number reaches packaging threshold value To subscriber, by using method provided by the invention, after obtaining data packet to be sent, it can not be sent to subscriber first, when And when wrapping the quantity of version number for sending and falling into window and reaching packaging threshold value, then the data packet to be sent of respective numbers is combined into One packet is sent to subscriber, can reduce the processing delay of subscriber in this way, increase considerably the data consumption energy of subscriber Power, so that slow consumption problem is not present in subscriber.Structural schematic diagram shown in Fig. 3 can be referred to when inter-process data is synchronous, Data source in upper layer procedures can will need synchronous data same using data transmission method for uplink provided by the invention in the process It walks to the subscriber in scene process 1 and/or 2, the data packet that subscriber 1 and/or 2 will acquire again is written in scene process Data buffer storage in.
Below with reference to the application scenarios of Fig. 2 a, Fig. 2 b and Fig. 3, exemplary reality according to the present invention is described with reference to Fig. 4-Figure 15 The data transmission method for uplink that the mode of applying provides.It should be noted that above-mentioned application scenarios are merely for convenience of understanding essence of the invention Mind and principle and show, embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be with Applied to applicable any scene.
It may include following step as shown in figure 4, being the flow diagram of data transmission method for uplink provided in an embodiment of the present invention It is rapid:
S11, data source obtain data packet to be sent.
The data source for obtaining the data packet to be sent from the first process, first process be comprising mostly into Any of server of journey needs the process of synchrodata, such as when server is network game server, then first into Journey can be, but not limited to as faction's playing method process etc..
As shown in connection with fig. 3, process is the first process to server at the middle and upper levels, is had in the business module in upper layer procedures fast According to generation/loading interface and order generation/loading interface.Wherein, snapshot refers to the full dose data of business module at a time, Order refers to the incremental data that business module generates in a certain period of time.Data source can generate interface or order by snapshot Interface is generated to obtain the data in upper layer procedures in business module, for convenience, the embodiment of the present invention obtains employment single The data obtained in business module are referred to as data packet to be sent.
Specifically, it is illustrated so that business module common in network game server is faction's module as an example, faction's mould Block can provide the generation of snapshot and order and be loaded into interface, initial in scene process and faction's playing method process (upper layer procedures) respectively Change subscriber and data source.When network game server starting, the subscriber in scene process can be into faction's playing method process Faction's module (business module) in data source send data synchronization request, data source adjusts after receiving data synchronization request Interface is generated with the snapshot of faction's module to obtain the synchronous faction's data of the needs in faction's module.For example, working as online game When server starting starts to provide game services, can trigger subscriber in the scene process of each playing method to respective upper layer into Data source in journey sends data synchronization request, so that the data source of each upper layer procedures will be first by calling snapshot to generate interface Beginningization data are synchronized to subscriber, and initialization data is loaded into interface by snapshot again and is written in scene process by each subscriber Data buffer storage in.
On the other hand, when having newly-increased data in business module in upper layer procedures, it can be sent to data source and obtain newly-increased number According to instruction, data source can generate interface by order and obtain in newly-increased data namely the present invention after receiving the instruction Data packet to be sent.For example, the data of modification can be generated after faction's playing method process detection is instructed to data modification, i.e., newly-increased number According to then the data source into faction's playing method process sends the instruction for obtaining newly-increased data, and then data source can pass through order It generates interface and obtains data packet (newly-increased data) to be sent, the newly-increased data can be, but not limited to as the ranking list number in faction According to.
According to the sequence of first in, first out, it is slow that the version number for the data packet to be sent that will acquire is put into version number for S12, data source Deposit the tail of the queue of queue.
It specifically can be refering to what is shown in Fig. 5, version number's buffer queue in the present invention be used to store the data to be sent obtained The version number of packet, and version number's buffer queue maintains three transmission windows, including has confirmed that window, pre- transmission window and and wrap Send window, wherein have confirmed that the version number in window is to have sent and the version number of the data packet of the person's of being subscribed acknowledgement;Pre- hair Sending the version number in window is the version number for having sent but not being subscribed the data packet of person's acknowledgement;And wrap the version sent in window Number for may be to have sent but the version number of the data packet of subscribed person's acknowledgement, it is also possible to for etc. data packet to be sent version This number.It when determining that subscriber is in slow consumption status, and wraps to send and just has version number's presence in window, otherwise version number It can only fall into pre- transmission window, therefore the corresponding version number of tail of the queue of version number's buffer queue may drop into pre- transmission window In, it is also possible to it drops into and wraps in transmission window.For example, giving tail of the queue in Fig. 5 respectively falls in the pre- window and simultaneously of sending Packet sends the schematic diagram of window.Certainly, however, it is determined that the subscribed person of the version number gone out in version number's buffer queue receives and processes, Then in advance send window and and wrap send window in without version number, the tail of the queue in the case of this in version number's buffer queue is corresponding Version number, which drops into, to be had confirmed that in window.
Preferably, version number is that data source gets data packet to be sent from hyperplasia at version number is for characterizing every time The state of data packet to be sent.Subscriber receives after data packet can in real time or timing to data source sends acknowledgement data packet It is true can to know that the corresponding data packet of which version number has been subscribed person after the version number of data sources to acknowledgement for version number It receives, which is not subscribed person's acknowledgement.Specifically, after data source obtains data packet to be sent every time, match for the data packet to be sent A version number is set, which is that the last version number of data packet to be sent configuration obtained is adjacent with data source, in full It is 10 according to the version number that source is the last data packet to be sent configuration obtained, then data source is this data to be sent obtained The version number of packet configuration is 11, and so on.Data source carries version number after for data packet configuration version number to be sent Be sent to subscriber in data packet to be sent and according to the method provided by the invention, when subscriber from received in receiving queue and from After managing data packet, acknowledgement instruction can be sent to data source, the version number of the data packet of acknowledgement is carried in acknowledgement instruction, thus After data sources are indicated to acknowledgement, can be indicated according to acknowledgement in the version number that carries determine that the data packet sent is being ordered The processing status of reader side.
Furthermore data source further includes at data other than comprising version number into the data packet to be sent that subscriber sends Reason indicates and required data, such as at the data for including in the corresponding data packet to be sent of a ranking list list in faction Reason be designated as generate ranking list list instruction and corresponding data make a living into ranking list list needed for data, such as each object for appreciation Family identifies and for parameter value needed for measuring ranking;For another example, a faction, corresponding data to be sent are added in a player The data processing for including in packet is designated as that faction's instruction is added and required data are the mark of player to be added and are intended to be added The mark of faction.
S13, data source work as the number determined to fall into and wrap in version number's buffer queue and send the version number in window It is that a packaging data packet is sent to subscriber by the packet combining to be sent of respective numbers when amount reaches packaging threshold value.
Specifically, send in advance window with and wrap that send window adjacent, and it is pre- send window appear in and wrap transmission window it Before, as shown in connection with fig. 5, first there is pre- transmission window, when the quantity for determining version number in pre- transmission window reaches pre- transmission window When the size of mouth, then when data source obtains data packet to be sent from business module again, the version number of the data packet to be sent is fallen Enter and wrap to send in window.For example, if the size for sending window in version number's buffer queue in advance is 50, working as data with reference to Fig. 5 When source determines that the quantity of the version number 11~60 fallen into pre- transmission window reaches 50, that is, show that current subscriber is in unrestrained and disappears Take state, increases in order to avoid synchrodata is delayed, it is after data source subsequent time gets data packet to be sent, this is pending Send the version number 61 of data packet to drop into and wrap send window in, with reference to shown in Fig. 6 a, until and wrap send window in version number Quantity when reaching packaging threshold value, according to the sequence that version number is ascending, by the version number for meeting packaging threshold value it is corresponding to Packet combining is sent into a packaging data packet, the packaging data packet is then sent to subscriber, i.e., by the hair of data source It send the data in queue to send pointer to be directed toward in the corresponding data packet to be sent of version number 61, with reference to shown in Fig. 6 b, wait drop into And when wrapping the quantity of version number sent in window and reaching packaging threshold value, packaging is carried out by method provided by the invention, and will spelling It wraps obtained packaging data packet and is sent to subscriber.Such as when packaging threshold value is 10, sent in window when dropping into and wrapping Version number is 61~70, that is, falls into and the quantity for wrapping version number in transmission window reaches 10, then version number 61~70 is corresponding Then the packaging data packet is sent to subscriber at a packaging data packet by packet combining to be sent, at this time and wrap transmission Version number 61~70 in window can be characterized as having sent but the version number of the data packet of not subscribed person's acknowledgement, and version number 71 the version number of data packet to be sent such as can be characterized as.So, with packaging sending method send packaging data packet to When subscriber, subscriber need to only read a packaging data packet from receiving queue can be by the data of packaging threshold value corresponding number Packet disposably read out, in the prior art do not use packaging data packet, every time from receiving queue only reading one data Packet is compared, and read access time and the occupied resource of multiple read data packet are reduced, can be by the time of these savings and resource Data packet is handled, it is possible thereby to accelerate the speed that subscriber handles data packet.For example, also being carried out so that packaging threshold value is 10 as an example Illustrate, when data source sends the packaging data packet obtained by 10 packet combinings to be sent into the receiving queue of subscriber Afterwards, subscriber can disposably read the packaging data packet from receiving queue, i.e., disposably read 10 data packets, and nothing 10 times, which need to be executed, could read 10 data packets, and therefore deducing that reduces 9 read data packets occupied time and money Source improves the speed that subscriber handles data packet so that time and resource that subscriber is saved using these handle data packet, So that subscriber comparatively fast terminates unrestrained consumption status.
In addition, when reaching packaging threshold value, data source using and will meet by the way of wrapping packaging threshold value version number it is corresponding Data packet to be sent be combined into a packet and sent, subscriber can be allowed once to receive batch of data packet and uniformly locate Reason, the data of subscriber can be increased considerably by sending packaging data packet really by packaging mode by test discovery data source Packet consuming capacity, in the case where process CPU usage reaches 80% where subscriber, data source is with 10 data packets to be sent It is merged into a packaging data packet to send, be sent relative to not packaging, the consumption rate of subscriber is increased to 5 times or so, specifically It can be with reference to shown in Fig. 6 c.It can be concluded that, packaging data packet is sent to by subscriber using packaging sending method from Fig. 6 c, so that Subscriber has more time and resource processing data packet, to accelerate data processing speed, terminates unrestrained consumption processing shape ahead of time State, while the delay that synchronization process generates is reduced using packaging sending method.
Preferably, the packaging threshold value can be adjusted according to the consumption processing status of subscriber.
Preferably, data source is after getting data packet to be sent, however, it is determined that drop into the version in pre- transmission window out Number amount is no more than the pre- size for sending window, that is, indicates that the pre- window that sends is discontented, then by data packet to be sent in the present invention The tail of the queue that version number is put into version number's buffer queue can be understood as the version number of the data packet to be sent dropping into pre- transmission Close to the version number of upper one data packet to be sent in window, while the data packet to be sent is transmitted directly to subscriber.For example, The version number of the data packet to be sent currently got is 57, and when determining that pre- transmission window is less than, then by the number to be sent The tail of the queue in pre- transmission window is dropped into according to the version number of packet, i.e., is filled into version number 57 in pre- transmission window and version number 56 At adjacent position, needle locating is sent to version number with reference to shown in Fig. 7 a, while by the data in the transmit queue of data source 57 corresponding data packets to be sent, and the data packet to be sent is transmitted directly to subscriber, with reference to shown in Fig. 7 b.
Specifically, data source is by packaging data when sending packaging data packet or data packet to be sent to subscriber Packet or data packet to be sent are sent in the receiving queue of subscriber.When data source sends packaging data packet to subscriber, spell Quantity information is carried in the packet header of bag data packet, which is used to indicate the number for the data packet that packaging data packet includes Amount.Wherein when obtaining packaging data packet, data source carries out packaging according to the agreement appointed with subscriber, and such subscriber exists After reading packaging data packet, processing of unpacking is carried out to packaging data packet according to scheduled agreement, and correctly read each data packet. Then subscriber correctly reads out required data further according to the format arranged with data source from data packet.
It should be noted that it is slow that data source can distinguish maintenance release number for each subscriber when subscriber's more than one Queue is deposited, the service identification and version number's buffer queue of subscriber can be set for executing different business in each subscriber Corresponding relationship, with distinguish data source be each subscriber maintenance version number's buffer queue, further according to each version number cache Quantity of the version number in each window selects the mode that data packet is sent to respective subscriber in queue.
S14, subscriber obtain the packaging data packet of data source transmission from receiving queue.
Subscriber's consumption data can be divided to two processes, and one is to receive data, i.e., data packet is obtained from receiving queue; The other is processing data, i.e. execution data modification logic.
When executing this step, have in scene process special module be responsible for notifying to have in subscriber's receiving queue it is newly-increased Data packet, thus subscriber can read the data packet of data source transmission from receiving queue, however subscriber also needs to handle The data packet read before handles the fast speed of data packet if current subscriber's cpu load is smaller, in receiving queue Increase a data packet newly, subscriber can read the newly-increased data packet and then be handled from receiving queue;If current subscription When person's cpu load is larger, after subscriber receives the notice of newly-increased data packet, may currently in process other packets or it mention For other services, at this moment subscriber can not obtain newly-increased data packet from receiving queue, handle current data to subscriber When the service load after packet or currently provided is less high, data are successively read from receiving queue further according to first in, first out principle Packet will lead to subscriber and send data packet in this case if subscriber does not use packaging mode to send data packet always Speed be significantly larger than the speed that subscriber handles data packet, cause subscriber to be in slow consumption processing status, if data source exists When determining that subscriber is in slow consumption status, packaging data packet is sent by the way of packaging, then subscription can be effectively relieved The slow consumption processing status of person, and quickening subscriber terminates the speed of slow consumption status.
The quantity information that S15, subscriber are carried in the packet header according to packaging data packet splits into the packaging data packet The data packet of respective numbers.
In this step, after subscriber reads packaging data packet from receiving queue, then need according to packaging data packet Packet header in the quantity information that carries, the packaging data packet is split into the data packet of respective numbers, such as when quantity information is When 10, then the packaging data packet is split into 10 data packets.
Where data packet after fractionation is written to subscriber by S16, subscriber in the data buffer storage of process.
The data packet received for being written in the data buffer storage of the second process by the subscriber, second process It can be to be in same clothes with the first process comprising the process for needing to rely on the data in other processes in multi-process server It is engaged in device, when the server is network game server, and the first process is faction's playing method process, then the second process can be The scene process of faction's playing method service is provided.
In this step, subscriber is according to the data processing instruction and required data execution in each data packet after fractionation After respective handling, the data for needing to be loaded into data buffer storage in scene process are loaded by snapshot shown in calling figure 3/order Interface is loaded into data buffer storage, and the scene process in Fig. 3 is the second process.If data are the number for initializing scene process According to then by calling snapshot loading interface that the data for initializing scene process are loaded into data buffer storage, if in data packet Data make a living into the relevant data of ranking list, then these data are on the one hand loaded into data by call instruction loading interface and delayed In depositing, ranking list list on the other hand is generated using these data and shows player.
If what subscriber read from receiving queue is single data packet, directly according to the data processing in the data packet Instruction and required data execute corresponding operation, can specifically refer to the above-mentioned treatment process to multiple data packets.
S17, subscriber send the instruction of data packet acknowledgement to data source.
In this step, when subscriber from receiving queue read data packet and after handle it, then can be to data source Send acknowledgement instruction.Specifically, subscriber then can send the data packet really to subscriber immediately with one data packet of every processing Instruction is received, the version number of the data packet is carried in acknowledgement instruction;On the other hand, subscriber can also handle multiple data packets Afterwards, then by the instruction of the acknowledgements of these data packets disposably be sent to data source, i.e., carried in the acknowledgement indicates it is multiple Handle the version number of data packet.
When S18, data source receive the data packet acknowledgement instruction of subscriber every time, sent described in synchronous slide in advance window and And transmission window is wrapped, so that removing the pre- transmission window by the version number of the data packet of acknowledgement.
In this step, when data sources to acknowledgement instruction carry be the version number of a data packet when, then slide It is pre- send window and and wrap transmission window, by the version number carried in acknowledgement instruction from pre- the transmissions window removal.Example Such as, the version number carried in the acknowledgement instruction being currently received is 11, then sends window in version number's buffer queue in advance and and wrap Schematic diagram before and after transmission window sliding can be with reference to shown in Fig. 8 a.Pre- transmission window is slided in Fig. 8 a and and wraps transmission window Afterwards, version number 11, which drops into, has confirmed that in window, and version number 61 drops into pre- transmission window.
When carrying multiple version numbers in acknowledgement instruction, then by sliding the pre- transmission window and and wrapping transmission window Mouthful, multiple version numbers are removed from pre- the transmissions window, if while and wrap transmission window Zhong You version number, phase will be no more than Answer the version number of quantity from and wrap to send in window and remove and be added into pre- transmissions window, such as acknowledgement indicate in have N number of version This number, then this N number of version number can be removed from the pre- transmission window, however, it is determined that go out it is described and wrap send in window have it is super GuoNGe version number, then since and wrap send version number adjacent with pre- transmission window in window QuNGe version number be added into it is pre- Send window in, and if wrap send window in version number's quantity be less than it is N number of, will and wrap send window in all versions number fill into It is sent in window to pre-.Such as 5 version numbers are carried in acknowledgement instruction, it is 11~15, then can slides pre- transmission window and simultaneously Packet sends window, this 5 version numbers are removed from pre- the transmissions window, and if wrap transmission window Zhong You version number, will simultaneously Packet sends not more than 5 version numbers in window and is added into pre- transmission window, specifically can be with reference to shown in Fig. 8 b, due in Fig. 8 b And wrapping the version number's quantity sent in window is more than 5, then sliding it is pre- send window and and when wrapping transmission window, can be by 61 ~65 this 5 version numbers fill into pre- transmission window.If quantity that is certain and wrapping version number in transmission window is not more than 5, Incite somebody to action and wrap send window in all versions number be added into pre- transmission window.
Specifically, send version number's instruction in window in advance is that its corresponding data packet has been sent but not subscribed person connects It receives.Therefore the data packet processing status of subscriber side can be known by sending the quantity of version number in window in advance, and send out in advance The sensitivity for sending the size of window to determine slow consumption detection.When the pre- size for sending window is 0, show that data source uses always Packaging sending method sends packaging data packet to subscriber;And when sending when being dimensioned to infinity of window in advance, show to count Send data packet to be sent in real time according to source.Therefore, the setting for sending the size of window in advance directly affects subscriber and consumes shape slowly The testing result of state.Fig. 9 a gives subscriber when data packet to be sent is written with fixed writing speed in data source and loads variation Shi Butong sends the variation schematic diagram of subscriber's consuming capacity under window in advance, and the pre- size for sending window is illustrated in Fig. 9 a and is The change of subscriber's CPU usage and subscriber's consuming capacity under 0,0.1* writing speed, 0.2* writing speed and 10* writing speed Change schematic diagram, it can be seen that the pre- size for sending window is that 0 corresponding consuming capacity curve is above other pre- transmission windows pair The consuming capacity curve answered, that is to say, that the pre- window that sends is smaller, shows more early unlatching packaging sending method, the consumption of subscriber Ability is also higher.
But using packaging sending method send packaging data packet when, source side only and wrap send window in version number Quantity when reaching packaging threshold value, just can from and wrap to send in window and started to query from the version number of initial position, until inquiry 1 corresponding version number is subtracted to packaging threshold value, by the corresponding packet combining to be sent of the version number between this at a packaging Data packet, then packaging data packet is sent to subscriber, can so exist and send delay, Fig. 9 b gives data source with solid It is different when subscriber loads variation when data packet to be sent is written in fixed writing speed to send bring delay signal under window in advance Figure, it can be seen that when corresponding CPU usage in the region where subscriber's CPU usage is less than label 1, i.e. subscriber Loading the relatively low consumption delay in when not using packaging sending method to send data packet to be sent when normally consuming is most Small, that is to say, that it is pending using being sent under the corresponding pre- transmission window of 10 times of writing speeds in Fig. 9 b when cpu load is lower The delay of data packet is sent to be less than packaging sending method bring delay when the pre- size for sending window is 0, this is because no matter Which kind of consuming capacity subscriber, which handles, which is all made of packaging sending method, to give birth to additional and biggish delay because waiting and contracting for fixed output quotas.When ordering Reader's load is larger to cause CPU usage higher position to use packaging sending method to send packaging data packet again when slow consumption, can To find that the pre- delay for sending the smaller generation of window is smaller, i.e. CPU usage is greater than corresponding in the region at 1 place of label in Fig. 9 b CPU usage when, it is 10 that bring consumption delay is less than the pre- size for sending window instead when the pre- size for sending window is 0 The delay of times writing speed bring.To sum up, in conjunction with Fig. 9 a and 9b it can be concluded that, when subscriber is in normal consumption status, lead to Delay can be reduced by crossing the certain pre- transmission window of setting and sending data packet to be sent in real time, be adopted when subscriber, which is in, to consume slowly Packaging data packet is sent with packaging sending method, can not only reduce delay in this way but also accelerates the ability of subscriber's consumption.
It specifically, is to handle a data packet or place since subscriber is when sending acknowledgement instruction to data source It has managed and has just sent after multiple data packets, can so have acknowledgement delay, in order to avoid the delay of acknowledgement bring causes to count Do sth. in advance the generation for this case that packaging sending method is used to send packaging data packet according to source, the present invention is to the pre- size for sending window It is configured, pre- transmission window is dimensioned to public affairs by comprehensive subscription person consuming capacity and transmission two aspect factors of delay Shown in formula (1):
Y=max (0.1*WPS, (RTT+tdelay) * WPS) (1)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIt indicates that subscriber's single is sent at least two data packets prolong caused by processed acknowledgement instruction When.
In formula (1), after RTT expression normally sends data packet to be sent to subscriber, and subscriber receives data packet The delay that acknowledgement instruction generates is sent, will normally send the delay and subscriber's single that data packet to be sent generates in formula (1) It sends to be delayed caused by the acknowledgement instruction for handling at least two data packets and take into account, can refer to avoid because sending acknowledgement Show that bring delay causes data source that packaging sending method is used to send packaging data packet to subscriber ahead of time.
When sending acknowledgement instruction immediately after subscriber often receives a data packet and handles it, comprehensive subscription Two aspect factors of person's consuming capacity and delay, the size of the pre- transmission window of configuration are shown in formula (2):
Y=max (0.1*WPS, RTT*WPS) (2)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
It can be generated since data source sends data packet to be sent between subscriber and subscriber's return acknowledgement instruction RTT delay, in order to guarantee that data source can receive first version number pair in pre- transmission window when sending window in advance and being filled The acknowledgement for the data packet to be sent answered indicates, pre- transmission window can be allowed normally to slide, so that it is too early also to avoid data source It is sent using packaging sending method and occurs sending delay caused by packaging data packet.
Preferably, when subscriber is in slow consumption status for a long time, if data source continues with packaging sending method to ordering Reader sends packaging data packet, and the slow consumption status of subscriber is also unable to get releasing, therefore the present invention is in order to avoid this asks The generation of topic, to and wrap send window size limit, when fall into and wrap send window in version number's quantity be more than simultaneously When packet sends the size of window, then the version number of the subsequent data packet to be sent got is dropped into non-transmittable window, With specific reference to shown in Figure 10, version number shown in Figure 10 is an example, is not to say that the pre- size for sending window is exactly 50 and wrap that send window size be exactly 950 etc., the pre- size for sending window can be according in the acknowledgement instruction that subscriber returns The quantity of the version number of carrying determines, and and wrap and send the size of window and can be, but not limited to as 5*WPS.Similarly, work as number After the acknowledgement instruction for receiving subscriber's transmission according to source, according to acknowledgement indicate in the version number that carries, slide the pre- window, simultaneously of sending Packet sends window and non-transmittable window so that the version number in acknowledgement instruction removes from pre- send in window, and incite somebody to action and wrap hair It send the version number of respective numbers in window to be added into pre- transmission window, the version number of respective numbers in non-transmittable window is fallen into To and wrap transmission window, however, it is determined that be added into out it is pre- transmission window in the corresponding data packet to be sent of version number it is not sent then will These data packets to be sent are transmitted directly to subscriber, while if it is determined that being added into and wrapping and send version number in window and simultaneously Packet sends the quantity of remaining version number in window and reaches packaging threshold value, then according to and wrap and send the sequence of window from left to right, Successively data packet to be sent corresponding to the version number for meeting packaging threshold value merges processing and obtains packaging data packet and send To subscriber.
It should be noted that the version number that subscriber when sending acknowledgement instruction to data source, carries in acknowledgement instruction Amount be it is variable, as single sends the acknowledgement sent to the acknowledgement instruction of 10 data packets or bill time to 15 data packets Instruction, that is to say, that the version number's quantity carried in the acknowledgement instruction of transmission can change according to the actual situation.But for spelling Bag data packet, when sending acknowledgement instruction, the version number in packaging data packet needs to carry in an acknowledgement instruction, such as on 10 version numbers are carried in the acknowledgement instruction of secondary transmission, current subscriber obtains packaging data packet, and packaging data packet is by 15 What a packet combining obtained, then subscriber could incite somebody to action only after handling all data packets in packaging data packet The version number of this 15 data packets, which carries, is sent to data source in acknowledgement instruction.
Preferably, the average transmission speed that can also send data packet to be sent using data source replaces writing speed come really Determine the pre- size for sending window and and wraps the size for sending window.
In addition, the data transmission method for uplink provided according to the present invention, Figure 11 a and 11b give subscriber and are in normal consumption State and data in slow consumption status send schematic diagram.In Figure 11 a and 11b by send in advance window size be 50 for into Row explanation, pre- send includes two parts content in window, that is, has been sent transmittable with residue, wherein sent for characterizing The version number of the data packet sent to subscriber, residue can be transmitted for characterizing the version that can also be fallen into pre- transmission window Number.In Figure 11 a data source by version number be 1~11 data packet be sent to subscriber, at this time in advance send window in version number 1~ 11 is have sent, and 12~50 be remaining transmittable;After receiving the acknowledgement instruction of subscriber's transmission, indicated according to the acknowledgement The version number 1~10 of middle carrying, the sliding of trigger data source has confirmed that window and pre- transmission window, so that version number 1~10 falls into Version number 11 is to have sent in pre- transmission window to having confirmed that in window, and after sliding, and 12~60 be remaining transmittable;It is subsequent Data source can drop into the version number of data packet to be sent in pre- transmission window when getting data packet to be sent, and The data packet to be sent is sent to subscriber, that is to say, that drop into the corresponding number to be sent of version number in pre- transmission window It can be transmitted directly to subscriber according to packet, subscriber can continue to confirm in batches, that is, send really after receiving data packet Receive the acknowledgement carried in instruction to the corresponding data packet of version number 11~20.
The corresponding data packet to be sent of version number 1~12 is sent to subscriber, and version number 1 by data source in Figure 11 b ~10 subscribed person's acknowledgements, then version number 1~10, which drops into, has confirmed that in window, and version number 11~12 drops into pre- transmission window In mouthful and to have sent, 13~60 be remaining transmittable in pre- transmission window.When data source by version number 13~60 it is corresponding to It sends after data packet is sent to subscriber, pre- to send in window 11~60 be to have sent, and residue can be transmitted as sky, then shows pre- It sends window to be filled, when subscriber causes load higher due to the influence of other playing methods at this time, not in time from receiving queue Middle acquisition data packet simultaneously sends acknowledgement instruction to data source, in this way when data source determines that pre- transmission window is filled, thus You can learn that subscriber is in slow consumption status, then when data source is subsequent gets data packet to be sent, by data to be sent The version number 61 of packet drops into and wraps and sends in window, and the data packet to be sent cannot be sent to subscriber in real time at this time, need The version number for dropping into and wrapping and send in window is waited to reach packaging threshold value.If not receiving the acknowledgement of subscriber's transmission also at this time Instruction, then each fall within later release number 62 etc. and wrap in transmission window, sends version number in window when counting and wrapping Amount reaches packaging threshold value, and when such as packaging threshold value being 10, then data source is by the corresponding packet combining to be sent of version number 61~70 Subscriber is sent at a packaging data packet, then by the packaging data packet.When the load of subscriber gradually decreases, start from Data packet is obtained in receiving queue, and sends acknowledgement instruction to data source, and sliding sends window in advance after data source receives acknowledgement instruction Mouthful and and wrap transmission window, if send in advance in window it is remaining it is transmittable be not sky, it is determined that subscriber is no longer on slow consumption shape State, it is subsequent get data packet to be sent after, while the version number of data packet to be sent being dropped into pre- transmission window, The data packet to be sent is transmitted directly to subscriber.
S19, data source slide pre- the transmissions window and and after wrapping transmission window, when having the version number of data packet from institute It states and wraps and send window when being added into pre- the transmissions window, however, it is determined that fill into the corresponding data of version number of pre- transmission window out Wrap it is not sent, then will fill into it is pre- send window the corresponding data packet to be sent of version number be sent to subscriber.
In this step, slide pre- the transmissions window and and wrap and send in window, due in transmission window pre- before sliding Version number is used to indicate the corresponding data packet of its interior version number and has sent but non-acknowledgement, and and wrap the version number sent in window When only reaching packaging threshold value, just the corresponding packet combining of these version numbers can be sent to subscription at a packaging data packet Person, this, which has also indicated that and has wrapped, sends in window that may send may also be not sent for the corresponding data packet of version number.Therefore exist By and wrap send window in version number be added into pre- transmission window after, it is thus necessary to determine that be added into version number in pre- transmission window Whether corresponding data packet is sent to subscriber, if not sent to subscriber, successively by the corresponding data packet of these version numbers It is sent to subscriber.
Preferably, Figure 12 a and 12b give after using data transmission method for uplink provided by the invention, at the data of subscriber Manage effect diagram, it can be seen that when process load is lower where subscriber, in Figure 12 a and packet rate is 1 characterize data packet Version number each falls in pre- transmission window, does not fall within and wraps in transmission window.When loading increase with process where subscriber, It sends and packet rate is also increasing, show that subscriber is in slow consumption status, data source is sent out using packaging sending method to subscriber Send packaging data packet.Delay contrast schematic diagram shown in Figure 12 b can be seen that over time, where subscriber into When journey load variation, caused consumption is not prolonged when packaging sending method is used and sent by the way of data packet to be sent in real time Fluctuation is very violent late, and sends the mode of data packet according to process load variation adjustment where subscriber (subscriber's load is low When data source send in real time, subscriber load it is high when data source use packaging sending method) generate afterwards consumption delay on the whole It is that comparison is stable, and relatively low, therefore data packet sending method is accordingly adjusted not only according to the data processing state of subscriber Subscriber can be accelerated to terminate slow consumption status, delay can also be reduced to a certain extent.
Data transmission method for uplink provided by the invention, data source is after getting data packet to be sent according to the suitable of first in, first out Sequence, the version number for the data packet to be sent that will acquire are put into the tail of the queue of version number's buffer queue, are determining that the version number is slow When depositing the quantity of version number for falling into and wrapping in queue and send in window and reaching packaging threshold value, by the data to be sent of respective numbers Packet is merged into a packaging data packet, is then sent to subscriber, compared with sending data packet to be sent to subscriber one by one, orders Reader can once read multiple data packets from receiving queue, to reduce the time of read data packet and save reading Take the occupied resource of data packet;In addition, subscriber when receiving packaging data packet, takes according in the packet header of packaging data packet The packaging data packet is split into the data packet of respective numbers by the quantity information of band;And the data packet after fractionation is written to In the data buffer storage of process where subscriber, handles data packet since subscriber has more resource and business service is provided, To accelerating the processing speed of data packet, and then the delay that while also just reducing synchrodata generates, especially in subscriber institute When process load in place's is higher, using method provided by the invention, subscriber can be prevented to be in slow consumption status for a long time.
Based on the same inventive concept, a kind of data sending device is additionally provided in the embodiment of the present invention, due to above-mentioned apparatus The principle solved the problems, such as is similar to data transmission, therefore the implementation of above-mentioned apparatus may refer to the implementation of method, repeats place not It repeats again.
It as shown in figure 13, is the structural schematic diagram of the data sending device of source side provided in an embodiment of the present invention, packet It includes:
Acquiring unit 21, for obtaining data packet to be sent;
First processing units 22, for the sequence according to first in, first out, the version number for the data packet to be sent that will acquire is put Enter the tail of the queue of version number's buffer queue;
Transmission unit 23 determines to fall into and wrap in version number's buffer queue the version number sent in window for working as Quantity when reaching packaging threshold value, be that a packaging data packet is sent to subscription by the packet combining to be sent of respective numbers Person carries quantity information in the packet header of the packaging data packet, so that subscriber is according to the quantity information, by the packaging Data packet splits into the data packet of respective numbers;And the data packet after fractionation is written to the data buffer storage of subscriber place process In.
Preferably, the number for falling into window and having sent but not being subscribed person's acknowledgement is sent in version number's buffer queue in advance According to the version number of packet;And described device, further includes:
Sliding unit when the data packet acknowledgement for receiving subscriber every time indicates, sends window described in synchronous slide in advance Mouthful and and wrap transmission window so that removing the pre- transmission window by the version number of the data packet of acknowledgement;
The second processing unit, for when have the version number of data packet from it is described and wrap send window be added into the pre- transmission When window, however, it is determined that the corresponding data packet of version number for filling into pre- transmission window out is not sent, then will fill into pre- transmission window The corresponding data packet to be sent of version number is sent to subscriber.
Preferably, the data source from the first process for obtaining the data packet to be sent and the subscriber For the data packet received to be written in the data buffer storage of the second process.
Preferably, the pre- size for sending window are as follows:
Y=max (0.1*WPS, (RTT+tdelay) * WPS)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIndicate that subscriber's single sends delay caused by the acknowledgement instruction handled at least two data packets.
Optionally, if the acknowledgement received is sent after being designated as subscriber's one data packet of every processing, the pre- hair Send the size of window are as follows:
Y=max (0.1*WPS, RTT*WPS)
Wherein, y indicates the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
As shown in figure 14, for the embodiment of the invention also provides a kind of structural representations of the data sending device of subscriber side Figure, comprising:
Acquiring unit 31, the packaging data packet sent for obtaining data source from receiving queue, the packaging data packet For data source according to the sequence of first in, first out after obtaining data packet to be sent, the version number for the data packet to be sent that will acquire is put The tail of the queue for entering version number's buffer queue, when determining to fall into and wrap in version number's buffer queue the version number sent in window Quantity when reaching packaging threshold value, the data packet to be sent of respective numbers is merged, the packaging data packet Packet header in carry quantity information;
Split cells 32, for according to the quantity information, the packaging data packet to be split into the data of respective numbers Packet;
Writing unit 33, for the data packet after splitting to be written in the data buffer storage of subscriber place process.
Preferably, described device, further includes:
Transmission unit carries the data packet of acknowledgement for sending acknowledgement instruction to data source in the acknowledgement instruction Version number.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
After the data transmission method for uplink and device for describing exemplary embodiment of the invention, next, introducing basis The computing device of another exemplary embodiment of the invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, it is single can to include at least at least one processing for computing device according to the present invention Member and at least one storage unit.Wherein, the storage unit is stored with program code, when said program code is described When processing unit executes, so that the processing unit executes the exemplary implementations various according to the present invention of this specification foregoing description Step in the data transmission method for uplink of mode.For example, the processing unit can execute step S11~S19 as shown in Figure 4.
The computing device 41 of this embodiment according to the present invention is described referring to Figure 15.The calculating that Figure 15 is shown Device 41 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 15, computing device 41 is showed in the form of universal computing device.The component of computing device 41 can wrap It includes but is not limited to: at least one above-mentioned processing unit 411, at least one above-mentioned storage unit 412, the different system components of connection The bus 413 of (including storage unit 412 and processing unit 411).
Bus 413 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 412 may include the readable medium of form of volatile memory, such as random access memory (RAM) 4121 and/or cache memory 4122, it can further include read-only memory (ROM) 4123.
Storage unit 412 can also include program/utility with one group of (at least one) program module 4124 4125, such program module 4124 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Computing device 41 can also be communicated with one or more external equipments 414 (such as keyboard, sensing equipment etc.), may be used also Enable a user to the equipment interacted with computing device 41 communication with one or more, and/or with enable the computing device 41 Any equipment (such as router, modem etc.) communicated with one or more of the other calculating equipment communicates.This Kind communication can be carried out by input/output (I/O) interface 415.Also, computing device 41 can also pass through network adapter 416 is logical with one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) Letter.As shown, network adapter 416 is communicated by bus 413 with other modules for computing device 41.It should be appreciated that Although not shown in the drawings, other hardware and/or software module can be used in conjunction with computing device 41, including but not limited to: micro- generation Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited Storage system etc..
In some possible embodiments, the various aspects of data transmission method for uplink provided by the invention are also implemented as A kind of form of program product comprising program code, when described program product is run on a computing device, described program The illustrative embodiments various according to the present invention that code is used to that the computer equipment to be made to execute this specification foregoing description Step in data transmission method for uplink, for example, the computer equipment can execute step S11~S19 as shown in Figure 4.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product for data transmission method for uplink of embodiments of the present invention can be read-only using portable compact disc Memory (CD-ROM) and including program code, and can run on the computing device.However, program product of the invention is unlimited In this, in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, which can be referred to Enable execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, embodiment according to the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is to be embodied by multiple units with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Terminal positioning device provided by embodiments herein can be realized by a computer program.Those skilled in the art It should be appreciated that above-mentioned module division mode is only one of numerous module division modes, if being divided into other moulds Block or non-division module all should be within the scope of protection of this application as long as positioning device has above-mentioned function.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of data transmission method for uplink characterized by comprising
Data source obtains data packet to be sent;And
According to the sequence of first in, first out, the version number for the data packet to be sent that will acquire is put into the tail of the queue of version number's buffer queue;
It sends the quantity of the version number in window when determining to fall into and wrap in version number's buffer queue and reaches packaging threshold value When, it is that a packaging data packet is sent to subscriber by the packet combining to be sent of respective numbers, the packaging data packet Quantity information is carried in packet header, so that subscriber splits into respective counts according to the quantity information, by the packaging data packet The data packet of amount;And the data packet after fractionation is written in the data buffer storage of subscriber place process.
2. the method as described in claim 1, which is characterized in that send in window and fall into advance in version number's buffer queue Send but be not subscribed the version number of the data packet of person's acknowledgement;And the method, further includes:
When receiving the data packet acknowledgement instruction of subscriber every time, sent described in synchronous slide in advance window and and wrap transmission window, So that removing the pre- transmission window by the version number of the data packet of acknowledgement;And
When have the version number of data packet from it is described and wrap send window be added into the pre- transmission window when, however, it is determined that fill into out pre- The corresponding data packet of version number for sending window is not sent, then will fill into the pre- corresponding data to be sent of version number for sending window Packet is sent to subscriber.
3. method according to claim 1 or 2, which is characterized in that described in the data source is used to from the first process obtain The data packet received for being written in the data buffer storage of the second process by data packet to be sent and the subscriber.
4. method according to claim 2, which is characterized in that the pre- size for sending window are as follows:
Y=max (0.1*WPS, (RTT+tdelay)*WPS)
Wherein,yIndicate the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIndicate that subscriber's single sends delay caused by the acknowledgement instruction handled at least two data packets.
5. method according to claim 2, which is characterized in that if the acknowledgement received is designated as subscriber's one number of every processing According to what is sent after packet, then it is described it is pre- send window size are as follows:
Y=max (0.1*WPS, RTT*WPS)
Wherein,yIndicate the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
6. a kind of data sending device characterized by comprising
Acquiring unit, for obtaining data packet to be sent;
First processing units, for the sequence according to first in, first out, the version number for the data packet to be sent that will acquire is put into version The tail of the queue of number buffer queue;
Transmission unit determines to fall into and wrap in version number's buffer queue the quantity for sending the version number in window for working as It is that a packaging data packet is sent to subscriber by the packet combining to be sent of respective numbers when reaching packaging threshold value, it is described Quantity information is carried in the packet header of packaging data packet, so that subscriber is according to the quantity information, by the packaging data packet Split into the data packet of respective numbers;And the data packet after fractionation is written in the data buffer storage of subscriber place process.
7. device as claimed in claim 6, which is characterized in that send in window and fall into advance in version number's buffer queue Send but be not subscribed the version number of the data packet of person's acknowledgement;And described device, further includes:
Sliding unit, when the data packet acknowledgement for receiving subscriber every time indicates, sent described in synchronous slide in advance window and And transmission window is wrapped, so that removing the pre- transmission window by the version number of the data packet of acknowledgement;
The second processing unit, for when have the version number of data packet from it is described and wrap send window be added into the pre- transmission window When, however, it is determined that the corresponding data packet of version number for filling into pre- transmission window out is not sent, then will fill into the pre- version for sending window Number corresponding data packet to be sent is sent to subscriber.
8. device as claimed in claims 6 or 7, which is characterized in that described in the data source is used to from the first process obtain The data packet received for being written in the data buffer storage of the second process by data packet to be sent and the subscriber.
9. device as claimed in claim 7, which is characterized in that the pre- size for sending window are as follows:
Y=max (0.1*WPS, (RTT+tdelay)*WPS)
Wherein,yIndicate the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time;
tdelayIndicate that subscriber's single sends delay caused by the acknowledgement instruction handled at least two data packets.
10. device as claimed in claim 7, which is characterized in that if the acknowledgement received is designated as the every processing one of subscriber It is sent after data packet, then the pre- size for sending window are as follows:
Y=max (0.1*WPS, RTT*WPS)
Wherein,yIndicate the pre- size for sending window;
WPS indicates the speed of write-in data packet to be sent per second;
RTT indicates round trip delay time.
11. a kind of computer-readable medium, which is characterized in that it is stored with the computer program that can be executed by computing device, when When described program is run on the computing device, so that the computing device perform claim requires the step of 1 to 5 any the method Suddenly.
12. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out method according to any one of claims 1 to 5.
CN201810194815.6A 2018-03-09 2018-03-09 Data sending method, device and readable medium Active CN110247942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810194815.6A CN110247942B (en) 2018-03-09 2018-03-09 Data sending method, device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810194815.6A CN110247942B (en) 2018-03-09 2018-03-09 Data sending method, device and readable medium

Publications (2)

Publication Number Publication Date
CN110247942A true CN110247942A (en) 2019-09-17
CN110247942B CN110247942B (en) 2021-09-07

Family

ID=67882242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810194815.6A Active CN110247942B (en) 2018-03-09 2018-03-09 Data sending method, device and readable medium

Country Status (1)

Country Link
CN (1) CN110247942B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851455A (en) * 2019-11-06 2020-02-28 尚娱软件(深圳)有限公司 Data landing method and device, mobile terminal and computer readable storage medium
CN111569435A (en) * 2020-06-16 2020-08-25 腾讯科技(深圳)有限公司 Ranking list generation method, system, server and storage medium
CN112418667A (en) * 2020-11-23 2021-02-26 南京星邺汇捷网络科技有限公司 Automatic task order dispatching method and system
CN113663338A (en) * 2021-08-31 2021-11-19 腾讯科技(深圳)有限公司 Virtual service subscription method and device and electronic equipment
CN113824651A (en) * 2021-11-25 2021-12-21 上海金仕达软件科技有限公司 Market data caching method and device, storage medium and electronic equipment
CN116170385A (en) * 2023-04-21 2023-05-26 四川汉科计算机信息技术有限公司 Gateway information forwarding system, method, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827033A (en) * 2010-04-30 2010-09-08 北京搜狗科技发展有限公司 Method and device for controlling network traffic and local area network system
CN101841545A (en) * 2010-05-14 2010-09-22 中国科学院计算技术研究所 TCP stream restructuring and/or packetizing method and device
US20110299597A1 (en) * 2010-06-07 2011-12-08 Sony Corporation Image processing method using motion estimation and image processing apparatus
CN102461324A (en) * 2009-06-29 2012-05-16 诺基亚公司 Resource allocation
CN102456069A (en) * 2011-08-03 2012-05-16 中国人民解放军国防科学技术大学 Incremental aggregate counting and query methods and query system for data stream
CN101330472B (en) * 2008-07-28 2013-01-16 中兴通讯股份有限公司 Method for caching and processing stream medium data
US20150112853A1 (en) * 2013-10-18 2015-04-23 Wonga Technology Limited Online loan application using image capture at a client device
CN107528789A (en) * 2016-06-22 2017-12-29 新华三技术有限公司 Method for dispatching message and device
CN107645455A (en) * 2017-09-12 2018-01-30 天津津航计算技术研究所 A kind of message transmission dispatching method of CAN

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330472B (en) * 2008-07-28 2013-01-16 中兴通讯股份有限公司 Method for caching and processing stream medium data
CN102461324A (en) * 2009-06-29 2012-05-16 诺基亚公司 Resource allocation
CN101827033A (en) * 2010-04-30 2010-09-08 北京搜狗科技发展有限公司 Method and device for controlling network traffic and local area network system
CN101841545A (en) * 2010-05-14 2010-09-22 中国科学院计算技术研究所 TCP stream restructuring and/or packetizing method and device
US20110299597A1 (en) * 2010-06-07 2011-12-08 Sony Corporation Image processing method using motion estimation and image processing apparatus
CN102456069A (en) * 2011-08-03 2012-05-16 中国人民解放军国防科学技术大学 Incremental aggregate counting and query methods and query system for data stream
US20150112853A1 (en) * 2013-10-18 2015-04-23 Wonga Technology Limited Online loan application using image capture at a client device
CN107528789A (en) * 2016-06-22 2017-12-29 新华三技术有限公司 Method for dispatching message and device
CN107645455A (en) * 2017-09-12 2018-01-30 天津津航计算技术研究所 A kind of message transmission dispatching method of CAN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴礼发: "流量控制与拥塞控制技术", 《网络原理与技术教程》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851455A (en) * 2019-11-06 2020-02-28 尚娱软件(深圳)有限公司 Data landing method and device, mobile terminal and computer readable storage medium
CN111569435A (en) * 2020-06-16 2020-08-25 腾讯科技(深圳)有限公司 Ranking list generation method, system, server and storage medium
CN111569435B (en) * 2020-06-16 2022-11-25 腾讯科技(深圳)有限公司 Ranking list generation method, system, server and storage medium
CN112418667A (en) * 2020-11-23 2021-02-26 南京星邺汇捷网络科技有限公司 Automatic task order dispatching method and system
CN113663338A (en) * 2021-08-31 2021-11-19 腾讯科技(深圳)有限公司 Virtual service subscription method and device and electronic equipment
CN113663338B (en) * 2021-08-31 2023-09-26 腾讯科技(深圳)有限公司 Subscription method and device for virtual service and electronic equipment
CN113824651A (en) * 2021-11-25 2021-12-21 上海金仕达软件科技有限公司 Market data caching method and device, storage medium and electronic equipment
CN116170385A (en) * 2023-04-21 2023-05-26 四川汉科计算机信息技术有限公司 Gateway information forwarding system, method, equipment and storage medium

Also Published As

Publication number Publication date
CN110247942B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN110247942A (en) A kind of data transmission method for uplink, device and readable medium
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
EP2466824A1 (en) Service scheduling method and device
EP2902914B1 (en) Data transmission method and device
CN109525458B (en) Data transmission method, device, medium and electronic equipment
GB2496681A (en) A publish/subscribe system with time-sensitive message delivery to subscribers
CN109600388A (en) Data transmission method, device, computer-readable medium and electronic equipment
CN111405336B (en) Multi-device synchronous playing method and system, electronic device and storage medium
EP3273664A1 (en) Data processing method and device, server, and controller
CN105677491B (en) A kind of data transmission method and device
CN109603149A (en) Method of data synchronization and device
CN109002357A (en) Resource allocation methods, device and Internet of things system
CN110019386A (en) A kind of stream data processing method and equipment
CN106101184B (en) A kind of document down loading method and playback equipment
CN116033025A (en) Cloud edge cooperation-based power distribution network automatic calculation task scheduling method and system
CN107908365A (en) The method, apparatus and equipment of User space memory system data interaction
US9769022B2 (en) Timeout value adaptation
CN107657434A (en) The Notification Method, device and gateway device of payment result are supplemented in game with money
CN116896511B (en) Special line cloud service speed limiting method, device, equipment and storage medium
CN109821235A (en) Game recording method, apparatus and server
CN111597041B (en) Calling method and device of distributed system, terminal equipment and server
CN108551485A (en) A kind of streaming medium content caching method, device and computer storage media
CN106713462A (en) Network data packet processing method and device
CN104684068B (en) The method and apparatus that a kind of data synchronize
CN114024913B (en) Network performance optimization method, device, equipment and storage medium

Legal Events

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