CN109861929A - A kind of method and apparatus of data buffer storage processing - Google Patents

A kind of method and apparatus of data buffer storage processing Download PDF

Info

Publication number
CN109861929A
CN109861929A CN201811603526.3A CN201811603526A CN109861929A CN 109861929 A CN109861929 A CN 109861929A CN 201811603526 A CN201811603526 A CN 201811603526A CN 109861929 A CN109861929 A CN 109861929A
Authority
CN
China
Prior art keywords
data packet
depending
networked
buffer queue
clients
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
CN201811603526.3A
Other languages
Chinese (zh)
Other versions
CN109861929B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811603526.3A priority Critical patent/CN109861929B/en
Publication of CN109861929A publication Critical patent/CN109861929A/en
Application granted granted Critical
Publication of CN109861929B publication Critical patent/CN109861929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application provides a kind of method and apparatus of data buffer storage processing, and the method and device are applied in view networking, and the view networking includes transmitting terminal and receiving end, and transmitting terminal and receiving end may respectively be view networked server or view networked clients;The transmitting terminal of the embodiment of the present application is not when receiving the confirmation message that receiving end is returned for the nth data packet, the nth data packet is sent to the receiving end, the embodiment of the present application only sends unacknowledged data packet, change transmitting terminal in prior art can not receive the response of receiving end within a certain period of time after having sent all data packets, data transmission will be takeed for lose, again can by all data packets from start retransmit to receiving end, cause receiving end is duplicate to have received excessive data packet, system running pressure increases, prevent the problem of system resource is from being used appropriately.

Description

A kind of method and apparatus of data buffer storage processing
Technical field
This application involves view networking technology fields, slow more particularly to the method and a kind of data of a kind of processing of data buffer storage Deposit the device of processing.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video, High definition is face-to-face.It will finally realize that the world without distance, realizes that the distance of person to person in global range is the distance of a screen.
It is more and more depending on networking service data with the extensive use of view networking, while data transmission service efficiency also exists Constantly accelerate, and at present depending on networked clients or depending on networked server treatment effeciency also in the stage more lagged, data Transmission rate is frequently more than the processing speed of data, leads to data packetloss often occur depending on networked clients or depending on networked server Problem.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind The device of a kind of method of data buffer storage processing to solve the above problems and a kind of corresponding data buffer storage processing.
To solve the above-mentioned problems, the embodiment of the present application discloses the method for the first data buffer storage processing, the method Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the first reception buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described that networked clients are provided with the first hair Send buffer queue, which comprises
N number of data packet that the view networked clients are sent first in buffer queue is periodically taken out;Wherein, N is positive Integer, the data packet carry the identification marking of the view networked clients;
It is described that N number of data packet is successively sent to target view networked server depending on networked clients;The target view Networked server is used for when receiving nth data packet, and nth data packet deposit described first is received caching team Column, n is positive integer;
It is described to receive what the target view networked server was returned for the nth data packet depending on networked clients When confirmation message, (n+1)th data packet is sent to the target and regards networked server;The target is used for depending on networked server When receiving (n+1)th data packet, (n+1)th data packet deposit described first is received in buffer queue, and It is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the method for second of data buffer storage processing, the method Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the first reception buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described that networked clients are provided with the first hair Send buffer queue, which comprises
The target view networked server successively receives N number of data packet that view networked clients are sent;Wherein, N is positive whole Number, the data packet are periodically taken out from the first transmission buffer queue by described depending on networked clients, and the data packet carries There is the identification marking of the view networked clients;
The target depending on networked server when receiving nth data packet, by nth data packet deposit described the One receives buffer queue, and n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The confirmation message is sent to the view networked clients depending on networked server by the target;
The target depending on networked server receive it is described depending on networked clients for the confirmation message when return (n+1)th A data packet;
The target view networked server receives (n+1)th data packet deposit described first in buffer queue, and It is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the method for the third data buffer storage processing, the method Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the second transmission buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described networked clients are provided with second to connect Receive buffer queue, which comprises
N number of data packet that the view networked server is sent second in buffer queue is periodically taken out;Wherein, N is positive Integer, the data packet carry the identification marking of the view networked server;
It is described that N number of data packet is successively sent to target view networked clients depending on networked server;The target view Networked clients are used for when receiving nth data packet, and nth data packet deposit described second is received caching team Column, n is positive integer;
It is described to receive what the target view networked clients were returned for the nth data packet depending on networked server When confirmation message, (n+1)th data packet is sent to the target and regards networked clients;The target is used for depending on networked clients When receiving (n+1)th data packet, (n+1)th data packet deposit described second is received in buffer queue, and It is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the method for the 4th kind of data buffer storage processing, the method Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the second transmission buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described networked clients are provided with second to connect Receive buffer queue, which comprises
The target view networked clients successively receive N number of data packet that view networked server is sent;Wherein, N is positive whole Number, the data packet are periodically taken out from the second transmission buffer queue by described depending on networked server, and the data packet carries There is the identification marking of the view networked server;
The target depending on networked clients when receiving nth data packet, by nth data packet deposit described the Two receive buffer queue, and n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The confirmation message is sent to the view networked server depending on networked clients by the target;
The target depending on networked clients receive it is described depending on networked server for the confirmation message when return (n+1)th A data packet;
The target view networked clients receive (n+1)th data packet deposit described second in buffer queue, and It is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the device of the first data buffer storage processing, described device Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the first reception buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described that networked clients are provided with the first hair Buffer queue is sent, described to be comprised the following modules depending on networked clients:
Data packet first takes out module, periodically takes out for sending N number of data packet in buffer queue by first;Its In, N is positive integer, and the data packet carries the identification marking of the view networked clients;
The first sending module of data packet, for N number of data packet to be successively sent to target view networked server;It is described Target is used for depending on networked server when receiving nth data packet, nth data packet deposit described first is received slow Queue is deposited, n is positive integer;
The second sending module of data packet, for receiving the target view networked server for the nth data When wrapping the confirmation message returned, (n+1)th data packet is sent to the target and regards networked server;The target view networking clothes Device be engaged in for when receiving (n+1)th data packet, (n+1)th data packet deposit described first to be received caching team In column, and it is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the device of second of data buffer storage processing, described device Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the first reception buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described that networked clients are provided with the first hair Buffer queue is sent, the target is comprised the following modules depending on networked server:
The first receiving module of data packet, the N number of data packet sent for successively receiving view networked clients;Wherein, N is positive Integer, the data packet are periodically taken out from the first transmission buffer queue by described depending on networked clients, and the data packet is taken Identification marking with the view networked clients;
Data packet first is stored in module, for when receiving nth data packet, the nth data packet to be stored in institute The first reception buffer queue is stated, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The first sending module of confirmation message, for the confirmation message to be sent to the view networked clients;
The second receiving module of data packet, for receive it is described depending on networked clients for the confirmation message when return the N+1 data packet;
Data packet second is stored in module, for (n+1)th data packet deposit described first to be received in buffer queue, And it is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the device of the third data buffer storage processing, described device Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the second transmission buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described networked clients are provided with second to connect Buffer queue is received, described to be comprised the following modules depending on networked server:
Data packet second takes out module, periodically takes out for sending N number of data packet in buffer queue by second;Its In, N is positive integer, and the data packet carries the identification marking of the view networked server;
Data packet third sending module, for N number of data packet to be successively sent to target view networked clients;It is described Target is used for depending on networked clients when receiving nth data packet, nth data packet deposit described second is received slow Queue is deposited, n is positive integer;
The 4th sending module of data packet, for receiving the target view networked clients for the nth data When wrapping the confirmation message returned, (n+1)th data packet is sent to the target and regards networked clients;The target view networking visitor Family end is used for when receiving (n+1)th data packet, and (n+1)th data packet deposit described second is received caching team In column, and it is arranged in after the nth data packet for carrying same identification marking.
To solve the above-mentioned problems, the embodiment of the present application discloses the device of the 4th kind of data buffer storage processing, described device Applied in view networking, the view networking is and described including multiple view networked servers for being provided with the second transmission buffer queue Multiple view networked clients depending on networked server based on view networking protocol connection, it is described networked clients are provided with second to connect Buffer queue is received, the target is comprised the following modules depending on networked clients:
Data packet third receiving module, the N number of data packet sent for successively receiving view networked server;Wherein, N is positive Integer, the data packet are periodically taken out from the second transmission buffer queue by described depending on networked server, and the data packet is taken Identification marking with the view networked server;
Data packet third is stored in module, for when receiving nth data packet, the nth data packet to be stored in institute The second reception buffer queue is stated, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The second sending module of confirmation message, for the confirmation message to be sent to the view networked server;
The 4th receiving module of data packet, for receive it is described depending on networked server for the confirmation message when return the N+1 data packet;
Data packet the 4th is stored in module, for (n+1)th data packet deposit described second to be received in buffer queue, And it is arranged in after the nth data packet for carrying same identification marking.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the method that described device executes one or more described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the method that the processor executes one or more described in the embodiment of the present application.
The embodiment of the present application includes the following advantages:
The characteristic of the embodiment of the present application application view networking, in the transmitting terminal that view is networked (depending on networked clients or view networking clothes Business device) increase transmission buffer queue, receiving end (depending on networked clients or view networked server) increases reception buffer queue, this Shen Please embodiment by send buffer queue and receive that buffer queue caches simultaneously in the way of, increase after data transmission at data The time of reason may make that the processing speed of data packet substantially can be synchronous with the transmission rate of data, so that receiving end can be by it just Normal rate processing data can solve not catching up with data depending on networked clients or depending on processing speed of the networked server to data at present Transmission rate, the problem of leading to data packet packet loss;
The characteristic of the embodiment of the present application application view networking, being provided with data validation mechanism, (i.e. receiving end receives a number According to, with regard to confirming immediately to the data packet, after transmitting terminal receives the confirmation message of a data packet, then being sent in order after packet Next data packet), it is ensured that stability and integrality of all data in transmission in primary view networking service can also be kept away Exempt from receiving end to repeat to receive excessive data packet, own system operating pressure is increased, prevent own system resource is from being closed The problem of reason utilizes;
The characteristic of the embodiment of the present application application view networking, each data packet are that standard regards networking data packet, standard view networking Data packet is 1024 bytes, is transmitted with the minimum data packet depending on networking, more can guarantee the integrality of data;
The characteristic of the embodiment of the present application application view networking, transmitting terminal are not receiving receiving end for the nth data When wrapping the confirmation message returned, the nth data packet is sent to the receiving end, the embodiment of the present application only sends unconfirmed Data packet, change transmitting terminal in prior art can not receive receiving end after having sent all data packets within a certain period of time Response, will take for data transmission lose, and can by all data packets from start retransmit to receiving end, cause to receive Hold it is duplicate have received excessive data packet, system running pressure increases, prevent the problem of system resource is from being used appropriately.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is the step flow chart of the method for the first data buffer storage of the embodiment of the present application processing;
Fig. 6 is the step flow chart of the method for second of data buffer storage of the embodiment of the present application processing;
Fig. 7 is the step flow chart of the method for the third data buffer storage of the embodiment of the present application processing;
Fig. 8 is the step flow chart of the method for the 4th kind of data buffer storage of the embodiment of the present application processing;
Fig. 9 is the structural block diagram of the device of the first data buffer storage of the embodiment of the present application processing;
Figure 10 is the structural block diagram of the device of second of data buffer storage of the embodiment of the present application processing;
Figure 11 is the structural block diagram of the device of the third data buffer storage of the embodiment of the present application processing;
Figure 12 is the structural block diagram of the device of the 4th kind of data buffer storage of the embodiment of the present application processing.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 the embodiment of the present application can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in the embodiment of the present application:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MACDA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in the embodiment of the present application: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Transmission rate in addition to not catching up with data depending on networked clients or depending on processing speed of the networked server to data, leads The problem of being forced packet discard depending on networked clients or depending on networked server is caused, in the data transmission mechanism of view networking at present also Have the following problems: transmitting terminal sequentially persistently sends data packet to receiving end, and receiving end is to some data packet reception failure or right When the processing overlong time of data, transmitting terminal can not receive the sound of receiving end within a certain period of time after having sent all data packets Answer, will take for data transmission lose, and can by all data packets from start retransmit to receiving end so that receiving end It is duplicate to receive excessive data packet, system resource is occupied, causes receiving end operation abnormal.
For example transmitting terminal is view networked clients, receiving end is view networked server, 10 numbers of transmitting terminal periodicity sending View networked server is given according to packet, and arranges serial number the 5th data packet reception failure depending on networked server, can continue to wait Receiving Order The 5th data packet number is arranged, and is still in the lasting state for sending data packet depending on networked clients, is being sent out depending on networked clients It can not receive the response for regarding networked server within a certain period of time after having sent all data packets, data transmission will be takeed for and lost, It can be sent again by all data packets (10 data packets) from starting to retransmit to networked server is regarded with maximum delivery formula, Cause in this way depending on networked server it is duplicate have received excessive data packet (repeat Receive sequence number arrange 1~4,6~10 data Packet), the system running pressure of server is increased, prevent system resource is from being used appropriately.
Based on the above-mentioned characteristic of view networking, one of core idea of the embodiment of the present application is proposed, it then follows regard the association of networking View increases in the transmitting terminal (depending on networked clients or view networked server) of view networking and sends buffer queue, and receiving end is (depending on networking Client or view networked server) increase reception buffer queue, data packet is first put into transmission before sending data by transmitting terminal In buffer queue, data packet is first put into after receiving data packet and before handling data and receives in buffer queue by receiving end, And the confirmation message feedback of the data packet will be received simultaneously to transmitting terminal, so that transmitting terminal is normally by next data packet from hair It send and receiving end is taken out and be sent in buffer queue, the embodiment of the present application is using transmission buffer queue and receives buffer queue simultaneously The mode of caching increases the time that data processing is arrived after data are transmitted, and is that receiving end processing data are reserved using the time Cushion space can solve to regard networked clients or view the Internet services at present so that receiving end can handle data by its normal speed Not the problem of device does not catch up with the transmission rate of data to the processing speed of data, leads to data packet packet loss, while can guarantee primary view Stability and integrality of all data in transmission in networking service, is avoided that receiving end repeats to receive excessive data Packet, increases own system operating pressure, prevent the problem of own system resource is from being used appropriately.
It also can be considered the distributed data base frame based on view networking mentioned by the embodiment of the present application depending on networked server, It is distributed in each region of entire view networking, at most can access 255 view networked servers in entire view networking.Each view Networked server manages multiple view networked clients of view intranet zone where oneself, for example, depending on can be in networked server Safeguard it is managed enter netlist depending on networked clients, enter the number that view networked clients are had recorded in netlist, title, addressing ground Location etc. only carries out control scheduling depending on networked clients to configured networking depending on networked server.
It can be considered a kind of view networked hosts depending on networked clients, this can be an integrated view networking sound depending on networked hosts Frequently, the hardware and software device of the functions such as decoding video stream;It is also possible to a kind of data communication for supporting double nets (depending on networking, internet) Hardware and software device.Networking being regarded by view networking number access depending on networked terminals, (view in affiliated view networking network, which is networked, to be taken Business device), it is communicated with others depending on networked hosts etc..
Embodiment 1:
As shown in figure 5, the step flow chart of the method for the first data buffer storage of the embodiment of the present application processing is shown, it is described Method can be applied in view networking, described to include multiple view the Internet services for being provided with the first reception buffer queue depending on networking Device, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol, it is described to be set depending on networked clients It is equipped with the first transmission buffer queue, the method can specifically include following steps:
Step S501: N number of data packet that the view networked clients are sent first in buffer queue is periodically taken out;Its In, N is positive integer, and the data packet carries the identification marking of the view networked clients;
The embodiment of the present application is provided with first in view networked clients and sends buffer queue, the data for that will will send First deposit first is sent in buffer queue packet, then again in order by the data packet in the first transmission buffer queue with first in first out Mode be periodically sent to target view networked server, with this optimize view networked clients sending strategy, avoid giving birth to At or received data packet get lodged in view networked clients as on the network of transmitting terminal, cause data transmission when occur congestion or Person sends too fast problem.
Above-mentioned data packet, in the trigger action for receiving some business, can directly give birth to from depending on networked clients At data packet;It can also derive from and the other equipment being connect depending on networked clients.
According to the level of current view networking, a view networked server about can access 60000 view networked clients, institute To regard networked clients when sending data packet to target view networked server, each data packet can carry the view networking The identification marking of client records data source in order to identify depending on networked server to received data packet.It is above-mentioned Identification marking can be the MAC Address of view networked clients or the account of view networking registration user.
Step S502: described that N number of data packet is successively sent to target view networked server depending on networked clients;Institute It states target to be used for depending on networked server when receiving nth data packet, nth data packet deposit described first is received Buffer queue, n are positive integer;
It is each to manage oneself place view networking depending on networked server entire depending on there is multiple view networked servers in networking Multiple view networked clients in region, so view networked clients before sending data packet, must first confirm target view networking clothes Business device, so the data packet further includes the address information of target view networked server;The view networked clients are by N number of data Packet periodically takes out from the first transmission buffer queue, and is sent to target and can specifically include depending on the step of networked server: It is described periodically to take out N number of data packet from the first transmission buffer queue depending on networked clients, and be sent to and the address The corresponding target of information regards networked server.
The embodiment of the present application is provided with first in view networked server and receives buffer queue, the data packet for will receive First deposit first receives in buffer queue, provides the more sufficient time depending on networked server processing data as target, Data packet can be extracted from the first reception buffer queue by normal processing speed depending on networked server and be handled, can solve mesh Forward sight networked server does not catch up with the transmission rate of data to the processing speed of data, cause data packet actively be dropped ask Topic.
Step S503: described to receive the target view networked server for the nth depending on networked clients When according to wrapping the confirmation message returned, (n+1)th data packet being sent to the target and regards networked server;The target view networking Server is used for when receiving (n+1)th data packet, and (n+1)th data packet deposit described first is received and is cached In queue, and it is arranged in after the nth data packet for carrying same identification marking.
Target in above-mentioned steps receives the data packet depending on networked server one by one, often receives a data packet With regard to generating corresponding confirmation message, and the view networked clients are returned to, it then again will be from the first buffer queue depending on connection client 02 It is middle that next data packet is sent to target view networked server.It is this true to data packet progress parcel in the embodiment of the present application The mode recognized, all data packets all receive to be over return again to the mode of confirmation message compared to the prior art, more can guarantee Stability of the data in transmission process, it is ensured that the integrality of all data in primary view networking service.
Preferably, each data packet is that standard regards networking data packet, and standard regards networking data packet as 1024 bytes.At this In preferred embodiment, to be transmitted depending on the minimum data packet networked, the integrality of data more can guarantee.
In addition, in one preferred embodiment of the application, additionally provides and described do not receiving the mesh depending on networked clients Specific processing step when the confirmation message that mark view networked server is returned for the nth data packet:
It is described not receive the target view networked server for nth data packet return depending on networked clients Confirmation message when, the nth data packet is sent to the target and regards networked server.
Above preferred embodiment only sends unacknowledged data packet, compares current prior art, also changes view networking visitor Family end 03 can not receive the response of view networked server within a certain period of time after having sent all data packets, will take for data Transmission is lost, and can give all data packets to target view networked server from retransmission is started, and leads to target view networking clothes Being engaged in, device is duplicate to have received excessive data packet, the system running pressure of server is increased, prevent system resource is from being closed The problem of reason utilizes.
For step S501~step S503, provide when view networked clients are as transmitting terminal, depending on networked server work When for receiving end, by the angle depending on networked clients come illustrate data buffer storage handle it is a kind of it is possible in a manner of, the embodiment of the present application is adopted It is further described with a specific example:
Data packet derives from the first database connecting with depending on networked clients, the data needs updated in first database It is sent to view networked server backup, above-mentioned first database can be the MySQL database connecting with depending on networked clients.
The data that first database updates are surrounded by 100, and the number of data packet is 0~99, and the first transmission buffer queue is every Secondary to cache 10 data packets, first receives buffer queue for same view networked clients, can cache 10 data packets every time. 10 data packets periodically (interval 0.1 second) that the view networked clients are sent first in buffer queue are taken out, also can week The data packet received is filled into the first transmission buffer queue by phase property.
Number is sent to target view networked server, target view connection first as 0 data packet by the networked clients that regard Data packet deposit first is first received buffer queue after receiving the data packet by network server, while being generated and being directed to the data packet The confirmation message of (number 0) then regards networked clients and is again sent out number from first as 1 data packet according to the confirmation message It send and target is taken out and be sent in buffer queue regards networked server (transmission time is 0.1 second).Target regards networked server mesh Preceding to handle the data packet (the processing time of each data packet is 0.2 second) that number is 0, target view networked server will at this time The data packet deposit first that number is 1 receives in buffer queue.Next according to said sequence, target regards networked server meeting again By number it is data packet deposit the first reception buffer queue of 2,3,4......, and successively handles above-mentioned data packet.
So in the examples described above, data cached using transmission buffer queue and reception buffer queue, and periodically take out Mode can solve data packet in current technology so that the processing speed of data packet substantially can be synchronous with the transmission rate of data The problem of packet loss.
Embodiment 2:
As shown in fig. 6, the step flow chart of the method for second of data buffer storage of the embodiment of the present application processing is shown, it is described Method can be applied in view networking, described to include multiple view the Internet services for being provided with the first reception buffer queue depending on networking Device, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol, it is described to be set depending on networked clients It is equipped with the first transmission buffer queue, the method can specifically include following steps:
Step S601: the target view networked server successively receives N number of data packet that view networked clients are sent;Its In, N is positive integer, and the data packet is periodically taken out from the first transmission buffer queue by described depending on networked clients, described Data packet carries the identification marking of the view networked clients;
Step S602: the target depending on networked server when receiving nth data packet, by the nth data packet It is stored in described first and receives buffer queue, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
Step S603: the confirmation message is sent to the view networked clients depending on networked server by the target;
Step S604: the target is returned when receiving the view networked clients for the confirmation message depending on networked server (n+1)th data packet returned;
Step S605: the target view networked server, which receives (n+1)th data packet deposit described first, to be cached In queue, and it is arranged in after the nth data packet for carrying same identification marking.
For step S601~step S605, provide when view networked clients are as transmitting terminal, depending on networked server work When for receiving end, by the angle depending on networked server come illustrate data buffer storage processing it is alternatively possible in a manner of, implement principle Referring to embodiment 1, due to length, not described here any more.
Embodiment 3:
As shown in fig. 7, the step flow chart of the method for the third data buffer storage of the embodiment of the present application processing is shown, it is described Method can be applied in view networking, described to include multiple view the Internet services for being provided with the second transmission buffer queue depending on networking Device, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol, it is described to be set depending on networked clients It is equipped with the second reception buffer queue, the method can specifically include following steps:
Step S701: N number of data packet that the view networked server is sent second in buffer queue is periodically taken out;Its In, N is positive integer, and the data packet carries the identification marking of the view networked server;
Step S702: described that N number of data packet is successively sent to target view networked clients depending on networked server;Institute It states target to be used for depending on networked clients when receiving nth data packet, nth data packet deposit described second is received Buffer queue, n are positive integer;
Step S703: described to receive the target view networked clients for the nth depending on networked server When according to wrapping the confirmation message returned, (n+1)th data packet being sent to the target and regards networked clients;The target view networking Client is used for when receiving (n+1)th data packet, and (n+1)th data packet deposit described second is received and is cached In queue, and it is arranged in after the nth data packet for carrying same identification marking.
For step S701~step S703, provide when view networked server is as transmitting terminal, depending on networked clients work When for receiving end, by the angle depending on networked server come illustrate data buffer storage handle it is a kind of it is possible in a manner of, specific implementation principle ginseng According to embodiment 1, due to length, not described here any more.
Embodiment 4:
As shown in figure 8, the step flow chart of the method for the 4th kind of data buffer storage of the embodiment of the present application processing is shown, it is described Method can be applied in view networking, described to include multiple view the Internet services for being provided with the second transmission buffer queue depending on networking Device, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol, it is described to be set depending on networked clients It is equipped with the second reception buffer queue, the method can specifically include following steps:
Step S801: the target view networked clients successively receive N number of data packet that view networked server is sent;Its In, N is positive integer, and the data packet is periodically taken out from the second transmission buffer queue by described depending on networked server, described Data packet carries the identification marking of the view networked server;
Step S802: the target depending on networked clients when receiving nth data packet, by the nth data packet It is stored in described second and receives buffer queue, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
Step S803: the confirmation message is sent to the view networked server depending on networked clients by the target;
Step S804: the target is returned when receiving the view networked server for the confirmation message depending on networked clients (n+1)th data packet returned;
Step S805: the target view networked clients, which receive (n+1)th data packet deposit described second, to be cached In queue, and it is arranged in after the nth data packet for carrying same identification marking.
For step S801~step S805, provide when view networked server is as transmitting terminal, depending on networked clients work When for receiving end, by the angle depending on networked clients come illustrate data buffer storage processing it is alternatively possible in a manner of, implement principle Referring to embodiment 1, due to length, not described here any more.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.
Embodiment 5:
As shown in figure 9, method described in corresponding embodiment 1, shows the processing of the first data buffer storage of the embodiment of the present application Device structural block diagram, described device can be applied in view networking, and the view networking is provided with the first reception including multiple The view networked server of buffer queue, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol End, it is described that networked clients are provided with the first transmission buffer queue, it is described to can specifically include depending on networked clients with lower die Block:
Data packet first takes out module 901, periodically takes out for sending N number of data packet in buffer queue by first; Wherein, N is positive integer, and the data packet carries the identification marking of the view networked clients;
The first sending module of data packet 902, for N number of data packet to be successively sent to target view networked server; The target is used for depending on networked server when receiving nth data packet, and nth data packet deposit described first is connect Buffer queue is received, n is positive integer;
The second sending module of data packet 903, for receiving the target view networked server for the nth When according to wrapping the confirmation message returned, (n+1)th data packet being sent to the target and regards networked server;The target view networking Server is used for when receiving (n+1)th data packet, and (n+1)th data packet deposit described first is received and is cached In queue, and it is arranged in after the nth data packet for carrying same identification marking.
Embodiment 6:
As shown in Figure 10, method described in corresponding embodiment 2 shows second of data buffer storage processing of the embodiment of the present application Device structural block diagram, described device can be applied in view networking, and the view networking is provided with the first reception including multiple The view networked server of buffer queue, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol End, it is described that networked clients are provided with the first transmission buffer queue, the target depending on networked server can specifically include with Lower module:
The first receiving module of data packet 1001, the N number of data packet sent for successively receiving view networked clients;Wherein, N For positive integer, the data packet is periodically taken out from the first transmission buffer queue by described depending on networked clients, the data Packet carries the identification marking of the view networked clients;
Data packet first is stored in module 1002, for when receiving nth data packet, the nth data packet to be deposited Enter described first and receive buffer queue, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The first sending module of confirmation message 1003, for the confirmation message to be sent to the view networked clients;
The second receiving module of data packet 1004, return when for receiving the view networked clients for the confirmation message (n+1)th data packet;
Data packet second is stored in module 1005, for (n+1)th data packet deposit described first to be received caching team In column, and it is arranged in after the nth data packet for carrying same identification marking.
Embodiment 7:
As shown in figure 11, method described in corresponding embodiment 3 shows the processing of the third data buffer storage of the embodiment of the present application Device structural block diagram, described device can be applied in view networking, and the view networking is provided with the second transmission including multiple The view networked server of buffer queue, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol End, it is described that networked clients are provided with the second reception buffer queue, it is described to can specifically include depending on networked server with lower die Block:
Data packet second takes out module 1101, periodically takes out for sending N number of data packet in buffer queue by second; Wherein, N is positive integer, and the data packet carries the identification marking of the view networked server;
Data packet third sending module 1102, for N number of data packet to be successively sent to target view networked clients; The target is used for depending on networked clients when receiving nth data packet, and nth data packet deposit described second is connect Buffer queue is received, n is positive integer;
The 4th sending module 1103 of data packet, for receiving the target view networked clients for described n-th When the confirmation message that data packet returns, (n+1)th data packet is sent to the target and regards networked clients;The target view connection Net client is used for when receiving (n+1)th data packet, (n+1)th data packet deposit described second is received slow It deposits in queue, and is arranged in after the nth data packet for carrying same identification marking.
Embodiment 8:
As shown in figure 12, method described in corresponding embodiment 4 shows the 4th kind of data buffer storage processing of the embodiment of the present application Device structural block diagram, described device can be applied in view networking, and the view networking is provided with the second transmission including multiple The view networked server of buffer queue, with it is described depending on networked server based on the multiple view networked clients being connect depending on networking protocol End, it is described that networked clients are provided with the second reception buffer queue, the target depending on networked clients can specifically include with Lower module:
Data packet third receiving module 1201, the N number of data packet sent for successively receiving view networked server;Wherein, N For positive integer, the data packet is periodically taken out from the second transmission buffer queue by described depending on networked server, the data Packet carries the identification marking of the view networked server;
Data packet third is stored in module 1202, for when receiving nth data packet, the nth data packet to be deposited Enter described second and receive buffer queue, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The second sending module of confirmation message 1203, for the confirmation message to be sent to the view networked server;
The 4th receiving module 1204 of data packet, return when for receiving the view networked server for the confirmation message (n+1)th data packet;
Data packet the 4th is stored in module 1205, for (n+1)th data packet deposit described second to be received caching team In column, and it is arranged in after the nth data packet for carrying same identification marking.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the method that described device executes one or more described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the method that the processor executes one or more described in the embodiment of the present application.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The device of method to a kind of data buffer storage processing provided herein and a kind of processing of data buffer storage above, into It has gone and has been discussed in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementation The explanation of example is merely used to help understand the present processes and its core concept;Meanwhile for the general technology people of this field Member, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as the limitation to the application.

Claims (10)

1. a kind of method of data buffer storage processing, which is characterized in that the method is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the first reception buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the first transmission buffer queue, which comprises
N number of data packet that the view networked clients are sent first in buffer queue is periodically taken out;Wherein, N is positive integer, The data packet carries the identification marking of the view networked clients;
It is described that N number of data packet is successively sent to target view networked server depending on networked clients;The target view networking Server is used for when receiving nth data packet, nth data packet deposit described first is received buffer queue, n is Positive integer;
It is described to receive the target view networked server for the confirmation of nth data packet return depending on networked clients When message, (n+1)th data packet is sent to the target and regards networked server;The target is depending on networked server for connecing When receiving (n+1)th data packet, (n+1)th data packet deposit described first is received in buffer queue, and is arranged After carrying the nth data packet of same identification marking.
2. a kind of method of data buffer storage processing, which is characterized in that the method is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the first reception buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the first transmission buffer queue, which comprises
The target view networked server successively receives N number of data packet that view networked clients are sent;Wherein, N is positive integer, institute It states data packet periodically to be taken out from the first transmission buffer queue by described depending on networked clients, the data packet carries described Depending on the identification marking of networked clients;
The target, when receiving nth data packet, nth data packet deposit described first is connect depending on networked server Buffer queue is received, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The confirmation message is sent to the view networked clients depending on networked server by the target;
The target depending on networked server receive it is described depending on networked clients for the confirmation message when (n+1)th number returning According to packet;
The target view networked server receives (n+1)th data packet deposit described first in buffer queue, and arranges After carrying the nth data packet of same identification marking.
3. a kind of method of data buffer storage processing, which is characterized in that the method is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the second transmission buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the second reception buffer queue, which comprises
N number of data packet that the view networked server is sent second in buffer queue is periodically taken out;Wherein, N is positive integer, The data packet carries the identification marking of the view networked server;
It is described that N number of data packet is successively sent to target view networked clients depending on networked server;The target view networking Client is used for when receiving nth data packet, nth data packet deposit described second is received buffer queue, n is Positive integer;
It is described to receive the target view networked clients for the confirmation of nth data packet return depending on networked server When message, (n+1)th data packet is sent to the target and regards networked clients;The target is depending on networked clients for connecing When receiving (n+1)th data packet, (n+1)th data packet deposit described second is received in buffer queue, and is arranged After carrying the nth data packet of same identification marking.
4. a kind of method of data buffer storage processing, which is characterized in that the method is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the second transmission buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the second reception buffer queue, which comprises
The target view networked clients successively receive N number of data packet that view networked server is sent;Wherein, N is positive integer, institute It states data packet periodically to be taken out from the second transmission buffer queue by described depending on networked server, the data packet carries described Depending on the identification marking of networked server;
The target, when receiving nth data packet, nth data packet deposit described second is connect depending on networked clients Buffer queue is received, n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The confirmation message is sent to the view networked server depending on networked clients by the target;
The target depending on networked clients receive it is described depending on networked server for the confirmation message when (n+1)th number returning According to packet;
The target view networked clients receive (n+1)th data packet deposit described second in buffer queue, and arrange After carrying the nth data packet of same identification marking.
5. a kind of device of data buffer storage processing, which is characterized in that described device is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the first reception buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the first transmission buffer queue, the view networked clients packet It includes with lower module:
Data packet first takes out module, periodically takes out for sending N number of data packet in buffer queue by first;Wherein, N is Positive integer, the data packet carry the identification marking of the view networked clients;
The first sending module of data packet, for N number of data packet to be successively sent to target view networked server;The target It is used for depending on networked server when receiving nth data packet, nth data packet deposit described first is received into caching team Column, n is positive integer;
The second sending module of data packet, for being returned for the nth data packet depending on networked server receiving the target When the confirmation message returned, (n+1)th data packet is sent to the target and regards networked server;The target regards networked server For when receiving (n+1)th data packet, (n+1)th data packet deposit described first to be received buffer queue In, and be arranged in after the nth data packet for carrying same identification marking.
6. a kind of device of data buffer storage processing, which is characterized in that described device is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the first reception buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, described that networked clients are provided with the first transmission buffer queue, the target regards the Internet services Device comprises the following modules:
The first receiving module of data packet, the N number of data packet sent for successively receiving view networked clients;Wherein, N is positive whole Number, the data packet are periodically taken out from the first transmission buffer queue by described depending on networked clients, and the data packet carries There is the identification marking of the view networked clients;
Data packet first is stored in module, for when receiving nth data packet, by nth data packet deposit described the One receives buffer queue, and n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The first sending module of confirmation message, for the confirmation message to be sent to the view networked clients;
The second receiving module of data packet, for receive it is described depending on networked clients for the confirmation message when return (n+1)th A data packet;
Data packet second is stored in module, for receiving (n+1)th data packet deposit described first in buffer queue, side by side It is listed in after the nth data packet for carrying same identification marking.
7. a kind of device of data buffer storage processing, which is characterized in that described device is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the second transmission buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, it is described that networked clients are provided with the second reception buffer queue, the view networked server packet It includes with lower module:
Data packet second takes out module, periodically takes out for sending N number of data packet in buffer queue by second;Wherein, N is Positive integer, the data packet carry the identification marking of the view networked server;
Data packet third sending module, for N number of data packet to be successively sent to target view networked clients;The target It is used for depending on networked clients when receiving nth data packet, nth data packet deposit described second is received into caching team Column, n is positive integer;
The 4th sending module of data packet, for being returned for the nth data packet depending on networked clients receiving the target When the confirmation message returned, (n+1)th data packet is sent to the target and regards networked clients;The target regards networked clients For when receiving (n+1)th data packet, (n+1)th data packet deposit described second to be received buffer queue In, and be arranged in after the nth data packet for carrying same identification marking.
8. a kind of device of data buffer storage processing, which is characterized in that described device is applied in view networking, described to include depending on networking Multiple view networked servers for being provided with the second transmission buffer queue are based on connecting depending on networking protocol with described depending on networked server Multiple view networked clients, described that networked clients are provided with the second reception buffer queue, the target regards networked client End comprises the following modules:
Data packet third receiving module, the N number of data packet sent for successively receiving view networked server;Wherein, N is positive whole Number, the data packet are periodically taken out from the second transmission buffer queue by described depending on networked server, and the data packet carries There is the identification marking of the view networked server;
Data packet third is stored in module, for when receiving nth data packet, by nth data packet deposit described the Two receive buffer queue, and n is positive integer, while generating the confirmation message for being directed to the nth data packet;
The second sending module of confirmation message, for the confirmation message to be sent to the view networked server;
The 4th receiving module of data packet, for receive it is described depending on networked server for the confirmation message when return (n+1)th A data packet;
Data packet the 4th is stored in module, for receiving (n+1)th data packet deposit described second in buffer queue, side by side It is listed in after the nth data packet for carrying same identification marking.
9. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made The methods for obtaining the one or more that described device is executed as described in claim 1-4.
10. one or more machine readable medias, which is characterized in that instruction is stored thereon with, when by one or more processors When execution, so that the processor executes one or more methods as described in claim 1-4.
CN201811603526.3A 2018-12-26 2018-12-26 Data caching processing method and device Active CN109861929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811603526.3A CN109861929B (en) 2018-12-26 2018-12-26 Data caching processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811603526.3A CN109861929B (en) 2018-12-26 2018-12-26 Data caching processing method and device

Publications (2)

Publication Number Publication Date
CN109861929A true CN109861929A (en) 2019-06-07
CN109861929B CN109861929B (en) 2022-12-13

Family

ID=66892497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811603526.3A Active CN109861929B (en) 2018-12-26 2018-12-26 Data caching processing method and device

Country Status (1)

Country Link
CN (1) CN109861929B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489484A (en) * 2019-07-11 2019-11-22 视联动力信息技术股份有限公司 Method of data synchronization, device, readable storage medium storing program for executing and electronic equipment
CN112988350A (en) * 2021-03-01 2021-06-18 网易(杭州)网络有限公司 Data task processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168545A1 (en) * 2006-01-18 2007-07-19 Venkat Venkatsubra Methods and devices for processing incomplete data packets
CN108418778A (en) * 2017-02-09 2018-08-17 北京视联动力国际信息技术有限公司 A kind of internet and method, apparatus and interactive system regarding connected network communication
CN108574597A (en) * 2017-08-01 2018-09-25 北京视联动力国际信息技术有限公司 A kind of newer method, apparatus of state and interactive system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168545A1 (en) * 2006-01-18 2007-07-19 Venkat Venkatsubra Methods and devices for processing incomplete data packets
CN108418778A (en) * 2017-02-09 2018-08-17 北京视联动力国际信息技术有限公司 A kind of internet and method, apparatus and interactive system regarding connected network communication
CN108574597A (en) * 2017-08-01 2018-09-25 北京视联动力国际信息技术有限公司 A kind of newer method, apparatus of state and interactive system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489484A (en) * 2019-07-11 2019-11-22 视联动力信息技术股份有限公司 Method of data synchronization, device, readable storage medium storing program for executing and electronic equipment
CN112988350A (en) * 2021-03-01 2021-06-18 网易(杭州)网络有限公司 Data task processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN109861929B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN109120946A (en) The method and apparatus for watching live streaming
CN110121059A (en) Monitor video processing method, device and storage medium
CN109743595A (en) Terminal data synchronous method and device
CN109842519A (en) A kind of method and apparatus of preview video stream
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN110190973A (en) A kind of presence detection method and device
CN108234190A (en) A kind of management method and system regarding networked devices
CN108632234A (en) A kind of user login method and device
CN108809922B (en) A kind of audio fault handling method, conference dispatching end and view networked terminals
CN108307212A (en) A kind of file order method and device
CN109462594A (en) A kind of data processing method and system based on view networking
CN109284265A (en) A kind of date storage method and system
CN108206927B (en) A kind of meeting synchronous method and device
CN109857591A (en) A kind of method and apparatus for transmitting data validation
CN109491783A (en) A kind of acquisition methods and system of memory usage
CN109005378A (en) A kind of processing method and system of video conference
CN109347930A (en) A kind of task processing method and device
CN109861929A (en) A kind of method and apparatus of data buffer storage processing
CN108989850A (en) A kind of video playing control method and control system
CN110519549A (en) A kind of conference terminal list obtaining method and system
CN110035249A (en) A kind of video gets method and apparatus ready
CN110166363A (en) A kind of multicast link monitoring method and device
CN110087028A (en) A kind of web video component obtains the method and system of video flowing
CN110022500A (en) A kind of loss treating method and device
CN109743360A (en) A kind of information processing method and device

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