CN109861929B - Data caching processing method and device - Google Patents

Data caching processing method and device Download PDF

Info

Publication number
CN109861929B
CN109861929B CN201811603526.3A CN201811603526A CN109861929B CN 109861929 B CN109861929 B CN 109861929B CN 201811603526 A CN201811603526 A CN 201811603526A CN 109861929 B CN109861929 B CN 109861929B
Authority
CN
China
Prior art keywords
data packet
video network
video
receiving
server
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.)
Active
Application number
CN201811603526.3A
Other languages
Chinese (zh)
Other versions
CN109861929A (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

Images

Abstract

The embodiment of the application provides a method and a device for data caching, wherein the method and the device are applied to a video network, the video network comprises a sending end and a receiving end, and the sending end and the receiving end can be a video network server or a video network client respectively; the sending end of the embodiment of the application only sends the unconfirmed data packet when not receiving the confirmation message returned by the receiving end aiming at the nth data packet, so that the problem that the system resource cannot be reasonably utilized due to the fact that the sending end in the prior art cannot receive the response of the receiving end within a certain time after sending all the data packets, the sending end can mistakenly think that the data transmission is lost, and can resend all the data packets to the receiving end from the beginning, and the receiving end repeatedly receives too many data packets, and the system operating pressure is increased is solved.

Description

Data caching processing method and device
Technical Field
The present application relates to the field of video networking technologies, and in particular, to a data caching method and a data caching device.
Background
The video networking is an important milestone of network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
With the wide application of video networking, video networking service data is more and more, and meanwhile, the data transmission service efficiency is also continuously accelerated, but the processing efficiency of the video networking client or video networking server is in a relatively lagged stage at present, and the data transmission rate is often greater than the data processing rate, so that the problem of data packet loss often occurs in the video networking client or video networking server.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a method for data caching processing and a corresponding apparatus for data caching processing, which overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses a first data caching method, where the method is applied to a video network, where the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with a first sending cache queue, and the method includes:
the video network client periodically takes out the N data packets in the first sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
the video networking client side sequentially sends the N data packets to a target video networking server; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
when receiving a confirmation message returned by the target video network server aiming at the nth data packet, the video network client sends the (n + 1) th data packet to the target video network server; and the target video networking server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
In order to solve the above problem, an embodiment of the present application discloses a second data caching method, where the method is applied to a video network, where the video network includes multiple video network servers provided with a first receiving cache queue, and multiple video network clients connected to the video network servers based on a video network protocol, where the video network clients are provided with a first sending cache queue, and the method includes:
the target video network server sequentially receives N data packets sent by the video network client; the data packets are periodically taken out from a first sending cache queue by the video network client, and the data packets carry the identification of the video network client;
when the target video network server receives an nth data packet, storing the nth data packet into the first receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
the target video network server sends the confirmation message to the video network client;
the target video network server receives the (n + 1) th data packet returned by the video network client aiming at the confirmation message;
and the target video network server stores the (n + 1) th data packet into the first receiving cache queue and arranges the data packet behind the nth data packet carrying the same identification mark.
In order to solve the above problem, an embodiment of the present application discloses a third method for data caching, where the method is applied to a video network, where the video network includes multiple video network servers provided with second sending cache queues and multiple video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with second receiving cache queues, and the method includes:
the video network server periodically takes out the N data packets in the second sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
the video network server sequentially sends the N data packets to a target video network client; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
when receiving a confirmation message returned by the target video network client aiming at the nth data packet, the video network server sends the (n + 1) th data packet to the target video network client; and the target video network client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packets after the nth data packet carrying the same identification mark.
In order to solve the above problem, an embodiment of the present application discloses a fourth data caching method, where the method is applied to a video network, where the video network includes a plurality of video network servers provided with second sending caching queues, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with second receiving caching queues, and the method includes:
the target video network client side sequentially receives N data packets sent by the video network server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
when the target video networking client receives the nth data packet, storing the nth data packet into the second receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
the target video network client side sends the confirmation message to the video network server;
the target video network client receives the (n + 1) th data packet returned by the video network server aiming at the confirmation message;
and the target video network client stores the (n + 1) th data packet into the second receiving cache queue and arranges the data packet after the nth data packet carrying the same identification mark.
In order to solve the above problem, the embodiment of the present application discloses a first data caching device, the device is applied to a video network, the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected by the video network servers based on a video network protocol, the video network clients are provided with a first sending cache queue, and the video network clients include the following modules:
the first data packet taking-out module is used for periodically taking out the N data packets in the first sending buffer queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
the first data packet sending module is used for sequentially sending the N data packets to a target video network server; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
the data packet second sending module is used for sending the (n + 1) th data packet to the target video network server when receiving a confirmation message returned by the target video network server aiming at the nth data packet; and the target video networking server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
In order to solve the above problem, the embodiment of the present application discloses a second data caching device, the device is applied to a video network, the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected by the video network servers based on a video network protocol, the video network clients are provided with a first sending cache queue, the target video network server includes the following modules:
the first data packet receiving module is used for sequentially receiving N data packets sent by the video networking client; the data packets are periodically taken out from a first sending cache queue by the video network client, and the data packets carry the identification of the video network client;
a first data packet storing module, configured to store an nth data packet into the first receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
the first sending module of the confirmation message is used for sending the confirmation message to the video network client;
the data packet second receiving module is used for receiving the (n + 1) th data packet returned by the video network client aiming at the confirmation message;
and the second data packet storing module is used for storing the (n + 1) th data packet into the first receiving cache queue and arranging the data packets behind the nth data packet carrying the same identification mark.
In order to solve the above problem, the embodiment of the present application discloses a third data caching device, the device is applied to a video network, the video network includes a plurality of video network servers provided with a second sending caching queue, and a plurality of video network clients connected by the video network servers based on a video network protocol, the video network clients are provided with a second receiving caching queue, the video network servers include the following modules:
the second data packet taking-out module is used for periodically taking out the N data packets in the second sending buffer queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
the data packet third sending module is used for sequentially sending the N data packets to the target video networking client; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
the data packet fourth sending module is used for sending the (n + 1) th data packet to the target video network client when receiving a confirmation message returned by the target video network client aiming at the nth data packet; and the target video networking client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packet behind the nth data packet carrying the same identification mark.
In order to solve the above problem, the embodiment of the present application discloses a fourth data caching device, the device is applied to a video network, the video network includes a plurality of video network servers provided with a second sending caching queue, and a plurality of video network clients connected by the video network servers based on a video network protocol, the video network clients are provided with a second receiving caching queue, and the target video network client includes the following modules:
the data packet third receiving module is used for sequentially receiving N data packets sent by the video networking server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
a third data packet storing module, configured to store an nth data packet into the second receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
the second sending module of the confirmation message is used for sending the confirmation message to the video network server;
the data packet fourth receiving module is used for receiving the (n + 1) th data packet returned by the video network server aiming at the confirmation message;
and the data packet fourth storing module is used for storing the (n + 1) th data packet into the second receiving cache queue and arranging the data packet after the nth data packet carrying the same identification mark.
An embodiment of the present application further provides an apparatus, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more of the methods of embodiments of the present application.
Embodiments of the present application further provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods of embodiments of the present application.
The embodiment of the application has the following advantages:
the method and the device apply the characteristics of the video network, a sending cache queue is added at a sending end (a video network client or a video network server) of the video network, and a receiving cache queue is added at a receiving end (the video network client or the video network server), and the method and the device utilize the mode that the sending cache queue and the receiving cache queue cache simultaneously, so that the time from data transmission to data processing is prolonged, the processing speed of a data packet can be basically synchronous with the transmission speed of the data, the receiving end can process the data according to the normal speed of the data packet, and the problem that the data packet loss is caused because the processing speed of the data packet by the video network client or the video network server cannot keep up with the transmission speed of the data at present can be solved;
the embodiment of the application applies the characteristics of the video network and sets a data confirmation mechanism (namely, a receiving end immediately confirms a data packet after receiving the data packet, and a sending end sends the next data packet in sequence after receiving the confirmation message of the data packet), so that the stability and the integrity of all data in one video network service during transmission can be ensured, the problem that the receiving end repeatedly receives too many data packets, the running pressure of a system per se is increased, and the system resource per se cannot be reasonably utilized can be solved;
the embodiment of the application applies the characteristics of the video network, each data packet is a standard video network data packet, the standard video network data packet is 1024 bytes, and the data integrity can be better ensured by transmitting the minimum data packet of the video network;
the embodiment of the application applies the characteristic of video networking, when a sending end does not receive a confirmation message returned by the receiving end aiming at the nth data packet, the nth data packet is sent to the receiving end, the embodiment of the application only sends the unconfirmed data packet, and the problem that in the prior art, the sending end cannot receive the response of the receiving end within a certain time after sending all the data packets, the sending end can mistakenly think that data transmission is lost, and can resend all the data packets to the receiving end from the beginning, so that the receiving end repeatedly receives too many data packets, the system operating pressure is increased, and system resources cannot be reasonably utilized is solved.
Drawings
FIG. 1 is a networking schematic of a video network of the present application;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present application;
fig. 3 is a schematic diagram of a hardware architecture of an access switch of the present application;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to the present application;
FIG. 5 is a flowchart illustrating steps of a first method for data caching according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating steps of a second method for data caching according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating steps of a third method for data caching according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating steps of a fourth method for data caching according to an embodiment of the present application;
fig. 9 is a block diagram of a first data caching device according to an embodiment of the present application;
fig. 10 is a block diagram of a second data caching device according to the embodiment of the present application;
fig. 11 is a block diagram of a third apparatus for data caching according to an embodiment of the present application;
fig. 12 is a block diagram of a fourth data caching device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mails, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like into a system platform, and realizes high-definition quality video broadcast through a television or a computer.
In order to make the embodiments of the present application better understood, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network innovations in video networking have improved the traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, and realizes the seamless connection of a whole network switching type virtual circuit and a data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video network is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the large-scale high-definition video real-time transmission of the whole network which can not be realized by the current Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type matching table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into two parts, an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a central control function in the metropolitan area network and can control the node switch and the node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure controlled by a hierarchical centralized way, and the network controlled by the node server and the metropolitan area server can be in various structures such as a tree, a star, a ring and the like.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Visio networking device classification
1.1 devices in the video network of the embodiment of the present application can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the packets coming from the network interface module 201, the cpu module 203 and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 according to the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues and forwards if the following conditions are met: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is close to full, it is discarded; if the packet entering the switching engine module 303 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downlink network interfaces to the uplink network interfaces at programmable intervals to control the rate of uplink forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet co-rotating gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MACDA, MAC SA, length or frame type (2 byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, if there is a packet, the ethernet MAC DA of the corresponding terminal is known according to the destination address DA of the packet in the video network, the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type are added, and the packet is sent.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), source Address (SA), reserved byte, payload (PDU), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), and is defined to be the same as the Destination Address (DA);
reserved bytes consist of 2 bytes;
the payload part has different lengths according to the types of different datagrams, 64 bytes if various protocol packets, 32+1024=1056 bytes if single-multicast data packets, and certainly not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., more than 2 connections between a node switch and a node server, between a node switch and a node switch, and between a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present application: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), source Address (SA), reserved byte (Reserved), tag, payload (PDU), CRC. The format of the tag may be defined as follows: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the payload of the packet.
In addition to the problem that the processing rate of the video network client or the video network server cannot keep up with the transmission rate of the data, so that the video network client or the video network server is forced to discard the data packets, the following problems also exist in the current data transmission mechanism of the video network: the sending end continuously sends data packets to the receiving end in sequence, when the receiving end fails to receive a certain data packet or the processing time of the data is too long, the sending end cannot receive the response of the receiving end within a certain time after sending all the data packets, the data transmission loss can be mistaken, and all the data packets can be sent to the receiving end again from the beginning, so that the receiving end repeatedly receives too many data packets, the system resources are occupied, and the receiving end is abnormal in operation.
For example, the sending end is a video network client, the receiving end is a video network server, the sending end periodically sends 10 data packets to the video network server, the video network server fails to receive the data packet with the 5 th sequence number, the receiving end can continuously wait for receiving the data packet with the 5 th sequence number, the video network client is still in a state of continuously sending the data packet, the video network client cannot receive the response of the video network server within a certain time after sending all the data packets, the data transmission loss can be mistaken, all the data packets (10 data packets) are re-sent to the video network server from the beginning, and the data packets are sent in a maximum delivery mode, so that the video network server repeatedly receives too many data packets (repeatedly receives the data packets with the 1-4 and 6-10 sequence numbers), the system operation pressure of the server is increased, and system resources cannot be reasonably utilized.
Based on the above characteristics of the video network, one of the core concepts of the embodiment of the application is provided, a sending buffer queue is added at a sending end (a video network client or a video network server) of the video network according to a protocol of the video network, a receiving end (the video network client or the video network server) is added with a receiving buffer queue, the sending end firstly puts a data packet into the sending buffer queue before sending data, the receiving end firstly puts the data packet into the receiving buffer queue after receiving the data packet and before processing the data, and simultaneously feeds back a confirmation message of receiving the data packet to the sending end, so that the sending end normally takes the next data packet out of the sending buffer queue and sends the next data packet to the receiving end.
The video network server mentioned in the embodiment of the present application can also be regarded as a video network-based distributed database framework, which is distributed in various areas of the whole video network, and 255 video network servers can be accessed in the whole video network at most. Each video network server manages a plurality of video network clients in the video network area, for example, the video network server can maintain a network access table of the managed video network clients, the network access table records the numbers, names, addressing addresses and the like of the video network clients, and the video network server only controls and schedules the video network clients configured for network access.
The video network client can be regarded as a video network host, and the video network host can be a software and hardware device integrating the functions of video network audio and video stream decoding and the like; or a software and hardware device supporting data communication of dual networks (video networking, internet). The video network terminal can access the video network (the video network server in the video network) through the video network number, and communicate with other video network hosts and the like.
Example 1:
as shown in fig. 5, a flowchart illustrating steps of a first data caching method according to an embodiment of the present invention is shown, where the method may be applied to a video network, where the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with a first sending cache queue, and the method specifically may include the following steps:
step S501: the video network client periodically takes out the N data packets in the first sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
according to the embodiment of the application, the first sending cache queue is arranged at the video network client and used for storing the data packets to be sent into the first sending cache queue first and then sending the data packets in the first sending cache queue to the target video network server periodically in a first-in first-out mode in sequence, so that the sending strategy of the video network client is optimized, and the problem that the generated or received data packets are blocked on a network with the video network client as a sending end to cause data congestion or too fast sending during sending is avoided.
The data packet can be derived from a data packet directly generated by a video networking client when the video networking client receives a trigger operation of a certain service; or from other devices connected to the video networking client.
According to the current level of the video network, about 60000 video network clients can be accessed to one video network server, so that when the video network client sends data packets to a target video network server, each data packet carries an identification identifier of the video network client, so that the video network server can identify the received data packets and record data sources. The identification mark can be the MAC address of the video network client or the account number of the video network registered user.
Step S502: the video network client side sequentially sends the N data packets to a target video network server; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
the whole video network is provided with a plurality of video network servers, each video network server manages a plurality of video network clients in a video network area where the video network server is located, so that the video network clients must confirm a target video network server before sending data packets, and the data packets also comprise address information of the target video network server; the step of periodically taking out the N data packets from the first sending buffer queue and sending the N data packets to the target video network server by the video network client may specifically include: and the video network client periodically takes out the N data packets from the first sending cache queue and sends the N data packets to a target video network server corresponding to the address information.
According to the embodiment of the application, the first receiving cache queue is arranged on the video networking server and used for storing the received data packet into the first receiving cache queue, so that more sufficient time is provided for the target video networking server to process data, the video networking server can extract the data packet from the first receiving cache queue at a normal processing rate and process the data packet, and the problem that the data packet is actively discarded because the processing rate of the current video networking server to the data cannot follow the transmission rate of the data can be solved.
Step S503: when receiving a confirmation message returned by the target video network server aiming at the nth data packet, the video network client sends the (n + 1) th data packet to the target video network server; and the target video networking server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
The target video network server in the above steps receives the data packets one by one, generates a corresponding confirmation message every time a data packet is received, returns the data packet to the video network client, and then the video network client 02 sends the next data packet from the first cache queue to the target video network server. Compared with the prior art that all data packets are received and then acknowledgement messages are returned, the method for packet acknowledgement of the data packets in the embodiment of the application can better ensure the stability of the data in the transmission process and can ensure the integrity of all data in the primary video networking service.
Preferably, each data packet is a standard video networking data packet, and the standard video networking data packet is 1024 bytes. In the preferred embodiment, the data integrity is better guaranteed by transmitting the data in the smallest data packet of the video network.
In addition, in a preferred embodiment of the present application, there is further provided a specific processing step of the video network client when the acknowledgement message returned by the target video network server for the nth data packet is not received:
and when the video network client side does not receive the confirmation message returned by the target video network server aiming at the nth data packet, the nth data packet is sent to the target video network server.
Compared with the prior art, the preferred embodiment only sends unacknowledged data packets, and changes the problem that the video networking client 03 cannot receive the response of the video networking server within a certain time after sending all the data packets, so that the data transmission is mistakenly lost, and all the data packets are sent to the target video networking server again from the beginning, so that the target video networking server repeatedly receives too many data packets, the system operation pressure of the server is increased, and the system resources cannot be reasonably utilized.
For steps S501 to S503, a possible way of describing data caching processing in terms of a video network client when the video network client is used as a sending end and a video network server is used as a receiving end is provided, and this embodiment of the present application further describes with a specific example:
the data packet is from a first database connected with the video network client, the updated data in the first database needs to be sent to the video network server for backup, and the first database can be a MySQL database connected with the video network client.
The number of the data packets updated by the first database is 100, the number of the data packets is 0-99, the first sending buffer queue can buffer 10 data packets each time, and the first receiving buffer queue can buffer 10 data packets each time for the same video network client. The client side of the video network periodically (at an interval of 0.1 second) takes out 10 data packets in the first sending buffer queue, and also periodically supplements the received data packets in the first sending buffer queue.
The video network client firstly sends the data packet with the number of 0 to a target video network server, the target video network server stores the data packet into a first receiving cache queue after receiving the data packet, meanwhile, a confirmation message aiming at the data packet (with the number of 0) is generated, and then the video network client takes out the data packet with the number of 1 from the first sending cache queue according to the confirmation message and sends the data packet to the target video network server (the transmission time is 0.1 second). The target video network server is currently processing the data packet with the number 0 (the processing time of each data packet is 0.2 seconds), and at this time, the target video network server stores the data packet with the number 1 into the first receiving buffer queue. Next, according to the sequence, the target video network server stores the data packets numbered 2, 3 and 4.
Thus, in the above example, the data is buffered by the sending buffer queue and the receiving buffer queue, and the data is periodically taken out, so that the processing rate of the data packet can be basically synchronized with the transmission rate of the data, and the problem of packet loss of the data packet in the prior art can be solved.
Example 2:
as shown in fig. 6, a flowchart illustrating steps of a second method for data caching according to an embodiment of the present invention is shown, where the method may be applied to a video network, where the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with a first sending cache queue, and the method specifically may include the following steps:
step S601: the target video network server sequentially receives N data packets sent by the video network client; the data packet is periodically taken out from a first sending cache queue by the video network client, and the data packet carries an identification mark of the video network client;
step S602: when the target video network server receives an nth data packet, storing the nth data packet into the first receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
step S603: the target video network server sends the confirmation message to the video network client;
step S604: the target video network server receives the (n + 1) th data packet returned by the video network client aiming at the confirmation message;
step S605: and the target video network server stores the (n + 1) th data packet into the first receiving cache queue and arranges the data packet after the nth data packet carrying the same identification mark.
For steps S601 to S605, another possible way of processing data caching is described in terms of a video network server when the video network client is used as a sending end and the video network server is used as a receiving end, and the specific implementation principle refers to embodiment 1, which is not described herein for reasons of brevity.
Example 3:
as shown in fig. 7, a flowchart illustrating steps of a third method for data caching according to an embodiment of the present invention is shown, where the method may be applied to a video network, where the video network includes a plurality of video network servers provided with second sending cache queues, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with second receiving cache queues, and the method specifically includes the following steps:
step S701: the video network server periodically takes out the N data packets in the second sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
step S702: the video network server sequentially sends the N data packets to a target video network client; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
step S703: when receiving a confirmation message returned by the target video networking client aiming at the nth data packet, the video networking server sends the (n + 1) th data packet to the target video networking client; and the target video networking client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packet behind the nth data packet carrying the same identification mark.
For steps S701 to S703, a possible way of describing data caching processing in terms of a video networking server when the video networking server is used as a sending end and a video networking client is used as a receiving end is provided, and the specific implementation principle refers to embodiment 1, which is not described herein for reasons of brevity.
Example 4:
as shown in fig. 8, a flowchart of steps of a fourth method for data caching according to the embodiment of the present application is shown, where the method may be applied to a video network, where the video network includes multiple video network servers provided with second sending cache queues and multiple video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with second receiving cache queues, and the method specifically includes the following steps:
step S801: the target video network client side sequentially receives N data packets sent by the video network server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
step S802: when the target video networking client receives the nth data packet, storing the nth data packet into the second receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
step S803: the target video network client side sends the confirmation message to the video network server;
step S804: the target video network client receives the (n + 1) th data packet returned by the video network server aiming at the confirmation message;
step S805: and the target video network client stores the (n + 1) th data packet into the second receiving cache queue and arranges the data packet behind the nth data packet carrying the same identification mark.
With respect to steps S801 to S805, another possible way of processing data caching is described in terms of a video network client when the video network server is used as a sending end and the video network client is used as a receiving end, and the specific implementation principle refers to embodiment 1, which is not described herein for reasons of brevity.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Example 5:
as shown in fig. 9, a structural block diagram of a device for data caching processing according to a first embodiment of the present invention is shown corresponding to the method described in embodiment 1, where the device may be applied to a video network, where the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected to the video network servers based on a video network protocol, where the video network clients are provided with a first sending cache queue, and the video network clients may specifically include the following modules:
a first data packet fetching module 901, configured to periodically fetch N data packets in a first sending buffer queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
a first data packet sending module 902, configured to send the N data packets to a target video networking server in sequence; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
a second data packet sending module 903, configured to send an n +1 th data packet to the target video network server when receiving a confirmation message returned by the target video network server for the nth data packet; and the target video networking server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
Example 6:
as shown in fig. 10, a block diagram of a device for processing data caching according to the second embodiment of the present application is shown corresponding to the method described in embodiment 2, where the device may be applied to a video network, where the video network includes a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected to the video network servers based on a video network protocol, where the video network clients are provided with a first sending cache queue, and the target video network server may specifically include the following modules:
a first data packet receiving module 1001, configured to receive N data packets sent by a client of a video network in sequence; the data packets are periodically taken out from a first sending cache queue by the video network client, and the data packets carry the identification of the video network client;
a first data packet storing module 1002, configured to store an nth data packet into the first receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
a confirmation message first sending module 1003, configured to send the confirmation message to the video networking client;
a second data packet receiving module 1004, configured to receive an n +1 th data packet returned by the video networking client for the acknowledgement message;
a second data packet storing module 1005, configured to store the (n + 1) th data packet into the first receiving buffer queue, and arrange the data packet after the nth data packet that carries the same identifier.
Example 7:
as shown in fig. 11, a block diagram of a device for processing data caching in the third embodiment of the present application is shown corresponding to the method described in embodiment 3, where the device may be applied to a video network, where the video network includes a plurality of video network servers provided with second sending caching queues, and a plurality of video network clients connected to the video network servers based on a video network protocol, where the video network clients are provided with second receiving caching queues, and the video network server may specifically include the following modules:
a second packet fetching module 1101, configured to periodically fetch N packets in the second sending buffer queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
a third data packet sending module 1102, configured to send the N data packets to a target video networking client in sequence; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
a fourth data packet sending module 1103, configured to send an n +1 th data packet to the target video network client when receiving a confirmation message returned by the target video network client for the nth data packet; and the target video networking client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packet behind the nth data packet carrying the same identification mark.
Example 8:
as shown in fig. 12, the method described in embodiment 4 is a block diagram of a fourth data caching device in the embodiment of the present application, where the device may be applied to a video network, where the video network includes a plurality of video network servers provided with second sending cache queues, and a plurality of video network clients connected to the video network servers based on a video network protocol, and the video network clients are provided with second receiving cache queues, where the target video network client specifically includes the following modules:
a third data packet receiving module 1201, configured to sequentially receive N data packets sent by the video networking server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
a third data packet storing module 1202, configured to store an nth data packet into the second receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
a second confirmation message sending module 1203, configured to send the confirmation message to the video network server;
a data packet fourth receiving module 1204, configured to receive an n +1 th data packet returned by the video network server for the acknowledgement message;
a fourth storing module 1205 of the data packet is configured to store the (n + 1) th data packet into the second receiving buffer queue, and arrange the data packet after the nth data packet that carries the same identifier.
An embodiment of the present application further provides a device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more of the methods of embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described in embodiments of the present application.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The method for processing the data cache and the device for processing the data cache provided by the present application are introduced in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for processing data cache is applied to a video network, wherein the video network comprises a plurality of video network servers provided with first receiving cache queues and a plurality of video network clients connected with the video network servers based on a video network protocol, the video network clients are provided with first sending cache queues, and the method comprises the following steps:
the video network client periodically takes out the N data packets in the first sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
the video network client side sequentially sends the N data packets to a target video network server; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
when receiving a confirmation message returned by the target video network server aiming at the nth data packet, the video network client sends the (n + 1) th data packet to the target video network server; and the target video network server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
2. A method for processing data cache is applied to a video network, wherein the video network comprises a plurality of video network servers provided with a first receiving cache queue, and a plurality of video network clients connected with the video network servers based on a video network protocol, the video network clients are provided with a first sending cache queue, and the method comprises the following steps:
the target video network server sequentially receives N data packets sent by the video network client; the data packets are periodically taken out from a first sending cache queue by the video network client, and the data packets carry the identification of the video network client;
when the target video network server receives an nth data packet, storing the nth data packet into the first receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
the target video network server sends the confirmation message to the video network client;
the target video network server receives the (n + 1) th data packet returned by the video network client aiming at the confirmation message;
and the target video network server stores the (n + 1) th data packet into the first receiving cache queue and arranges the data packet after the nth data packet carrying the same identification mark.
3. A method for processing data cache is applied to a video network, wherein the video network comprises a plurality of video network servers provided with second sending cache queues and a plurality of video network clients connected with the video network servers based on a video network protocol, the video network clients are provided with second receiving cache queues, and the method comprises the following steps:
the video network server periodically takes out the N data packets in the second sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
the video network server sequentially sends the N data packets to a target video network client; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
when receiving a confirmation message returned by the target video networking client aiming at the nth data packet, the video networking server sends the (n + 1) th data packet to the target video networking client; and the target video networking client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packet behind the nth data packet carrying the same identification mark.
4. A method for processing data cache is applied to a video network, wherein the video network comprises a plurality of video network servers provided with second sending cache queues and a plurality of video network clients connected with the video network servers based on a video network protocol, and the video network clients are provided with second receiving cache queues, and the method comprises the following steps:
the target video network client side sequentially receives N data packets sent by the video network server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
when the target video networking client receives the nth data packet, storing the nth data packet into the second receiving cache queue, wherein n is a positive integer, and meanwhile, generating a confirmation message aiming at the nth data packet;
the target video network client side sends the confirmation message to the video network server;
the target video network client receives the (n + 1) th data packet returned by the video network server aiming at the confirmation message;
and the target video network client stores the (n + 1) th data packet into the second receiving cache queue and arranges the data packet after the nth data packet carrying the same identification mark.
5. The utility model provides a device that data cache was handled, its characterized in that, the device is applied to in the video networking, the video networking includes a plurality of video networking servers that are provided with first receipt buffer queue, with a plurality of video networking customer ends that the video networking server is connected based on the video networking agreement, the video networking customer end is provided with first transmission buffer queue, the video networking customer end includes following module:
the first data packet taking-out module is used for periodically taking out the N data packets in the first sending cache queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network client;
the first data packet sending module is used for sequentially sending the N data packets to a target video networking server; the target video network server is used for storing the nth data packet into the first receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
the second data packet sending module is used for sending the (n + 1) th data packet to the target video network server when receiving a confirmation message returned by the target video network server aiming at the nth data packet; and the target video networking server is used for storing the (n + 1) th data packet into the first receiving cache queue when receiving the (n + 1) th data packet, and arranging the data packet behind the nth data packet carrying the same identification mark.
6. The utility model provides a device that data cache was handled, its characterized in that, the device is applied to in the video networking, the video networking includes a plurality of video networking servers that are provided with first receipt buffer queue, with a plurality of video networking customer ends that the video networking server is connected based on the video networking agreement, the video networking customer end is provided with first transmission buffer queue, and the target video networking server includes following module:
the first data packet receiving module is used for sequentially receiving N data packets sent by the video networking client; the data packets are periodically taken out from a first sending cache queue by the video network client, and the data packets carry the identification of the video network client;
a first data packet storing module, configured to store an nth data packet into the first receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
the first sending module of the confirmation message is used for sending the confirmation message to the video network client;
the second data packet receiving module is used for receiving the (n + 1) th data packet returned by the video networking client aiming at the confirmation message;
and the second data packet storing module is used for storing the (n + 1) th data packet into the first receiving cache queue and arranging the data packets behind the nth data packet carrying the same identification mark.
7. The utility model provides a device that data cache was handled, its characterized in that, the device is applied to in the video networking, the video networking includes a plurality of video networking servers that are provided with the second and send the buffering queue, with a plurality of video networking customer ends that the video networking server is connected based on the video networking agreement, the video networking customer end is provided with the second and receives buffering queue, the video networking server includes following module:
the second data packet taking-out module is used for periodically taking out the N data packets in the second sending buffer queue; wherein, N is a positive integer, and the data packet carries the identification mark of the video network server;
the data packet third sending module is used for sequentially sending the N data packets to the target video networking client; the target video network client is used for storing the nth data packet into the second receiving cache queue when receiving the nth data packet, wherein n is a positive integer;
the data packet fourth sending module is used for sending the (n + 1) th data packet to the target video network client when receiving a confirmation message returned by the target video network client aiming at the nth data packet; and the target video network client is used for storing the (n + 1) th data packet into the second receiving cache queue when receiving the (n + 1) th data packet and arranging the data packets after the nth data packet carrying the same identification mark.
8. The utility model provides a device that data cache was handled, its characterized in that, the device is applied to in the video networking, the video networking includes a plurality of video networking servers that are provided with the second and send the buffering queue, with a plurality of video networking customer ends that the video networking server is connected based on the video networking agreement, the video networking customer end is provided with the second and receives buffering queue, and the target video networking customer end includes following module:
the data packet third receiving module is used for sequentially receiving N data packets sent by the video network server; the data packets are periodically taken out from a second sending cache queue by the video network server, and the data packets carry the identification marks of the video network server;
a third data packet storing module, configured to store an nth data packet into the second receiving buffer queue when the nth data packet is received, where n is a positive integer, and meanwhile, generate a confirmation message for the nth data packet;
the second sending module of the confirmation message is used for sending the confirmation message to the video network server;
the data packet fourth receiving module is used for receiving the (n + 1) th data packet returned by the video network server aiming at the confirmation message;
and the data packet fourth storing module is used for storing the (n + 1) th data packet into the second receiving cache queue and arranging the data packet after the nth data packet carrying the same identification mark.
9. An apparatus for data caching, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a method of data caching processing according to any one of claims 1 to 4.
10. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform a method of data caching process as recited in any one of claims 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 CN109861929A (en) 2019-06-07
CN109861929B true 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)

Families Citing this family (2)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037745B2 (en) * 2006-01-18 2015-05-19 International Business Machines Corporation Methods and devices for processing incomplete data packets

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN109861929A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109996086B (en) Method and device for inquiring service state of video networking
CN109617956B (en) Data processing method and device
CN110190973B (en) Online state detection method and device
CN109474715B (en) Resource configuration method and device based on video network
CN109120879B (en) Video conference processing method and system
CN109379254B (en) Network connection detection method and system based on video conference
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN110049273B (en) Video networking-based conference recording method and transfer server
CN110224988B (en) Image data processing method, system and device and storage medium
CN109714568B (en) Video monitoring data synchronization method and device
CN109005378B (en) Video conference processing method and system
CN109861929B (en) Data caching processing method and device
CN110557370B (en) Method, system, electronic equipment and storage medium for pamir synchronization of terminal information
CN110166363B (en) Multicast link monitoring method and device
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109889516B (en) Method and device for establishing session channel
CN110289974B (en) Data stream processing method, system and device and storage medium
CN109698953B (en) State detection method and system for video network monitoring equipment
CN109587524B (en) Method and device for synchronizing video networking resources to Internet terminal
CN110557411A (en) video stream processing method and device based on video network
CN110493311B (en) Service processing method and device
CN110062259B (en) Video acquisition method, system, device and computer readable storage medium
CN110808896B (en) Data transmission method and device, electronic equipment and storage medium
CN110493319B (en) Data synchronization method, system and device
CN110120937B (en) Resource acquisition method, system, device and computer readable storage medium

Legal Events

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