[go: up one dir, main page]

CN110266768B - A data transmission method and system - Google Patents

A data transmission method and system Download PDF

Info

Publication number
CN110266768B
CN110266768B CN201910442006.7A CN201910442006A CN110266768B CN 110266768 B CN110266768 B CN 110266768B CN 201910442006 A CN201910442006 A CN 201910442006A CN 110266768 B CN110266768 B CN 110266768B
Authority
CN
China
Prior art keywords
data
data table
scheduling system
video
network
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
CN201910442006.7A
Other languages
Chinese (zh)
Other versions
CN110266768A (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 CN201910442006.7A priority Critical patent/CN110266768B/en
Publication of CN110266768A publication Critical patent/CN110266768A/en
Application granted granted Critical
Publication of CN110266768B publication Critical patent/CN110266768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了数据传输方法和系统。该方法的一具体实施方式包括:上级视联网监控联网管理调度系统确定至少一个目标数据表,基于数据表与分区标识的对应关系,确定每一个目标数据表对应的分区标识;向下级视联网监控联网管理调度系统发送数据读取命令;接收下级视联网监控联网管理调度系统发送的从对应于分区标识的文件夹中读取出的变化数据。一方面,从感兴趣的数据表的变化数据所存储在的文件夹中获取变化数据,而无需在每一次获取变化数据时均获取所有数据表的变化数据,减少了上级视联网监控联网管理调度系统和下级视联网监控联网管理调度系统不必要的变化数据的传输。另一方面,方便变化数据的管理,提升业务处理的灵活性。

Figure 201910442006

Embodiments of the present invention provide a data transmission method and system. A specific implementation of the method includes: the upper-level video network monitoring network management and scheduling system determines at least one target data table, and based on the corresponding relationship between the data table and the partition identifier, determines the partition identifier corresponding to each target data table; The networked management and dispatching system sends a data read command; receives the change data read from the folder corresponding to the partition identification sent by the lower-level video networked monitoring and networked management and dispatching system. On the one hand, the change data is obtained from the folder where the change data of the data table of interest is stored, without the need to obtain the change data of all the data tables every time the change data is obtained, which reduces the network management and scheduling of the upper-level video network monitoring. The system and the subordinate video network monitor the transmission of unnecessary change data of the network management and dispatch system. On the other hand, it facilitates the management of changing data and improves the flexibility of business processing.

Figure 201910442006

Description

Data transmission method and system
Technical Field
The present application relates to the field of computers, and in particular, to the field of video networking, and more particularly, to a data transmission method and system.
Background
The video network is a real-time network capable of realizing high-definition video real-time transmission, and a plurality of internet applications are pushed to high-definition video, and high-definition face-to-face. The video network monitoring, networking, managing and scheduling system is used for monitoring the running condition of the equipment in the video network, managing the equipment in the video network and scheduling resources in the video network. The superior video networking monitoring, networking, managing and scheduling system and the inferior video networking monitoring, networking, managing and scheduling system which are in a cascade relation in the plurality of video networking monitoring, networking, managing and scheduling systems often have the requirement of data transmission, and the data transmission speed of the superior video networking monitoring, networking, managing and scheduling system and the inferior video networking monitoring, networking, managing and scheduling system directly influences the monitoring efficiency, the managing efficiency and the scheduling efficiency.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a data transmission method, a data transmission system that overcome or at least partially solve the above-mentioned problems.
In order to solve the above problem, an embodiment of the present invention provides a data transmission method, including: the superior video networking monitoring networking management scheduling system determines at least one target data table and determines a partition identifier corresponding to each target data table in the at least one target data table based on the corresponding relation between the data tables and the partition identifiers; the superior video network monitoring and networking management and scheduling system sends a data reading command to the subordinate video network monitoring and networking management and scheduling system, wherein the data reading command comprises: the partition identifier corresponding to each target data table is used for transmitting data through the video network by the superior video network monitoring and networking management and scheduling system and the subordinate video network monitoring and networking management and scheduling system; for the partition identifier corresponding to each target data table, the lower-level video networking monitoring and managing and scheduling system reads the change data from the folder corresponding to the partition identifier, wherein the change data of each data table is written into the corresponding folder in advance by the lower-level video networking monitoring and managing and scheduling system respectively, and the folder corresponding to each data table corresponds to one partition identifier respectively; and the superior video networking monitoring, networking, managing and scheduling system receives the read change data sent by the inferior video networking monitoring, networking and managing and scheduling system.
An embodiment of the present invention further provides a data transmission system, including: the system comprises a superior video networking monitoring, networking, managing and scheduling system and a subordinate video networking monitoring, networking, managing and scheduling system, wherein the superior video networking monitoring, networking, managing and scheduling system and the subordinate video networking monitoring, networking, managing and scheduling system transmit data through a video networking; the superior video networking monitoring networking management scheduling system is configured to: determining at least one target data table, and determining a partition identifier corresponding to each target data table in the at least one target data table based on the corresponding relationship between the data tables and the partition identifiers; sending a data reading command to a lower video network monitoring and networking management scheduling system, wherein the data reading command comprises: the partition identification corresponding to each target data table; receiving the read change data sent by the lower video networking monitoring and managing and scheduling system; the subordinate video networking monitoring networking management scheduling system is configured to: and for the partition identification corresponding to each target data table, reading the change data from the folder corresponding to the partition identification, wherein the change data of each target data table is written into the corresponding folder in advance by the lower-level video networking monitoring and managing and scheduling system, and the folder corresponding to each target data table corresponds to one partition identification.
The embodiment of the invention has the following advantages:
the subordinate video network monitoring and networking management and scheduling system stores the data tables of the data tables in different partitions respectively, namely the subordinate video network monitoring and networking management and scheduling system stores the data tables of the data tables in different folders respectively. Therefore, on one hand, the superior video networking monitoring and networking management and scheduling system acquires data from the interested subarea according to requirements, namely acquires the change data from the folder in which the change data of the interested data table is stored, and does not need to acquire the change data of all the data tables every time the change data is acquired, so that the transmission of unnecessary change data of the superior video networking monitoring and networking management and scheduling system and the subordinate video networking monitoring and networking management and scheduling system is reduced, and the reading and writing speed of the change data is improved. On the other hand, the change data of all the data tables are dispersed to a plurality of partitions to be stored respectively, namely, the change data are stored in a plurality of folders respectively, so that the management of the change data is facilitated, the superior video networking monitoring and networking management and scheduling system can acquire the change data in any partition according to the requirement, namely, the change data in any storage data table is stored in the folder to acquire the required change data, and the flexibility of service processing is improved.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
fig. 5 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
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 of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, 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 technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first 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, thereby realizing the seamless connection of the whole network switching type virtual circuit and the 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 networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing 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 configuration 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 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 centralized control function in the metropolitan area network and can control a node switch and a 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 with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
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.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, 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 server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, 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 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 based on 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 for forwarding 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 incoming data packet of the CPU module 304 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 nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include 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 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream 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 protocol conversion 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 MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
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 bytes, 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), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is 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., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and 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 invention: 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 0x 0001. 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 by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Referring to fig. 5, a flowchart of a data transmission method provided in an embodiment of the present invention is shown, which may specifically include the following steps:
step 501, the superior video networking monitoring networking management scheduling system determines at least one target data table and determines a partition identifier corresponding to each target data table.
In the application, the video network monitoring, networking, managing and scheduling system is used for monitoring the running condition of the equipment in the video network, managing the equipment in the video network and scheduling resources in the video network. In order to monitor the operation condition of the devices in the video network, manage the devices in the video network, and schedule resources in the video network, it is necessary to analyze massive data related to the operation condition of the devices in the video network, the management of the devices in the video network, the scheduling of the resources in the video network, and the like, so as to monitor the operation condition of the devices in the video network, manage the devices in the video network, and schedule the resources in the video network.
In the present application, the upper-level video networking monitoring, networking, managing and scheduling system and the lower-level video networking monitoring, networking, managing and scheduling system do not refer to a certain video networking monitoring, networking, managing and scheduling system. The superior video network monitoring, networking, managing and scheduling system and the subordinate video network monitoring, networking, managing and scheduling system can be two video network monitoring, networking, managing and scheduling systems with subordination. The networked management scheduling system can also be monitored for two video networks with an association relationship. For example, in the process of monitoring the operation condition of the device in the video network, managing the device in the video network, and scheduling resources in the video network, one video network monitoring, networking, managing and scheduling system needs to further process data generated on the other video network monitoring, networking, managing and scheduling system, and then the video network monitoring, networking, managing and scheduling system can be used as a superior video network monitoring, networking, managing and scheduling system, and the other video network monitoring, networking, managing and scheduling system can be used as a subordinate video network monitoring, networking, managing and scheduling system.
In the application, all the data tables can be stored in the subordinate video network monitoring and managing scheduling system. The data stored in the data table may be data related to monitoring the operation condition of the devices in the video network, managing the devices in the video network, scheduling resources in the video network, and the like.
In the application, the target data table is a data table of which the data change condition needs to be determined by the superior video network monitoring and networking management and scheduling system in all the data tables. And the superior video network monitoring and networking management and scheduling system determines the data change condition of the target data table by reading the change data of the target data table.
In the present application, the change data of one data table indicates a change condition of the data in which the change occurs in the data table. For example, the change data of one data table includes: the name of the field in which the field value is changed, the changed field value, etc. in the data table.
In the application, when the superior video networking monitoring networking management scheduling system needs to determine the change condition of data in a plurality of data tables, each data table in the plurality of data tables is used as a target data table.
In the application, before the superior video networking monitoring networking management scheduling system reads the change data of the target data table, a folder can be allocated in advance for each data table in all the data tables to store the change data of the data tables. It can also be called as storing the change data of all data tables in a partition mode. The change data of each data table in all the data tables can be written into the folder for storing the change data of the data tables respectively in advance by the lower-level video networking monitoring and managing and scheduling system.
In this application, each region storing change data of the data table may be referred to as a partition. The folder in which the change data of each data table is stored corresponds to a partition identifier. The partition identification corresponding to the folder in which the change data of each data table is stored is different from the partition identification corresponding to the change data of the other data table.
In the application, a corresponding relation table indicating the corresponding relation between the data table and the partition identification is stored in the lower-level video networking monitoring and networking management and scheduling system. The correspondence table indicating the correspondence of the data table with the partition identification may be stored in a configuration file or a database.
In the application, the lower-level video networking monitoring and networking management scheduling system can transmit the corresponding relation table of the corresponding relation between the indication data table and the partition identification to the upper-level video networking monitoring and networking management scheduling system in advance.
In the application, the superior video networking monitoring networking management scheduling system can determine the partition identifier corresponding to each target data table based on the corresponding relationship between the data table and the partition identifier.
In some embodiments, the folder in which the change data of each data table is stored may be set in advance, and then, a partition identifier corresponding to the folder may be assigned to each folder, so that the corresponding relationship between the data table and the partition identifier, and the corresponding relationship between the folder corresponding to the data table, that is, the folder in which the change data of the data table is stored, and the partition identifier may be determined at the same time.
For example, the operation and maintenance engineers of the video networking monitoring and management scheduling system can respectively set the folders in which the change data of each data table is stored.
In some embodiments, the corresponding relationship between the data tables and the partition identifiers may be established through a hash algorithm, and the identifier of each data table may be used as a key, and the hash algorithm is used to obtain the hash value corresponding to each data table. The hash value corresponding to the data table may be used as the partition identifier corresponding to the data table, so that the corresponding relationship between the data table and the partition identifier may be established.
Step 502, the superior video networking monitoring and networking management and scheduling system sends a data reading command to the subordinate video networking monitoring and networking management and scheduling system.
In the present application, the data read command includes: and each target data table corresponds to a partition identification.
Step 503, the lower video network monitoring, networking, managing and scheduling system reads the change data from the folder corresponding to the partition identifier.
In the present application, for each data table, the change data of the data table is stored in the folder corresponding to the partition identifier corresponding to the data table.
In the application, after receiving a data reading command containing the partition identifier corresponding to each target data table, for the partition identifier corresponding to each target data table, the lower-level video network monitoring and networking management scheduling system reads the change data from the folder corresponding to the partition identifier. Therefore, the lower-level video networking monitoring and managing and scheduling system respectively reads the change data of each target data table from different folders.
In step 504, the superior video networking monitoring, networking, managing and scheduling system receives the read change data sent by the subordinate video networking monitoring, networking, managing and scheduling system.
In the application, after the lower-level video networking monitoring, networking, managing and scheduling system reads the change data of each target data table, the upper-level video networking monitoring, networking, managing and scheduling system may receive the change data, namely the change data of each target data table, sent by the lower-level video networking monitoring, networking, managing and scheduling system and read by the lower-level video networking monitoring, networking, managing and scheduling system.
In some embodiments, the data read command further comprises: the starting read position of the changed data to be read. The start read position may indicate that the first change data among the change data remaining after the last reading of the change data is a few bytes. In other words, the start reading position may indicate that the change data is read from the several bytes at the time of reading the change data this time. All the change data can be read out starting from the byte indicated by the start read position at each reading of the change data. The starting read position may also be referred to as the file position.
The process of reading the change data is explained by taking the example that the superior video network monitoring and networking management and scheduling system reads the change data of a data table: the read command includes a partition identifier and a file location corresponding to the data table. And a file is arranged below the folder corresponding to the partition identifier corresponding to the data table, and all the change data of the data table are stored in the file. Accordingly, the file location may indicate that the first change data of the change data remaining after the last reading of the change data is the several bytes in the file.
When the change data is read from the file for the first time, the file position is 0, and then after the change data is read each time, the superior video networking monitoring networking management scheduling system updates the file position. For example, the change data is read for the first time from the beginning of the file, i.e., from the first byte in the file, i.e., byte 0.
After receiving a data reading command containing a file position of 0, the lower video networking monitoring and networking management and scheduling system sends all change data in the file starting from the first byte indicated by the file position 0 in the file to the upper video networking monitoring and networking management and scheduling system, and if the file contains 10 bytes of data, the lower video networking monitoring and networking management and scheduling system sends 10 bytes of data to the upper video networking monitoring and networking management and scheduling system, and the upper video networking monitoring and networking management and scheduling system updates the file position to 10 after processing the 10 bytes of data. Therefore, when a superior video networking monitoring and networking management scheduling system needs to read the change data of the data table next time, the file position in the data reading command sent to the inferior video networking monitoring and networking management scheduling system is 10, the file position is 10, the inferior video networking monitoring and networking management scheduling system indicates that the inferior video networking monitoring and networking management scheduling system continuously reads the change data from the 10 th byte, and after receiving the reading command containing the file position of 10, the inferior video networking monitoring and networking management scheduling system reads all the change data in the file from the 10 th byte indicated by the file position 10 and then sends the change data to the superior video networking monitoring and networking management scheduling system.
In the application, the subordinate video networking monitoring and networking management and scheduling system stores the data tables of the data tables in different partitions respectively, namely stores the data tables of the data tables in different folders respectively. Therefore, on one hand, the superior video networking monitoring and networking management and scheduling system acquires data from the interested subarea according to requirements, namely acquires the data from the folder in which the change data of the interested data table is stored, and does not need to acquire the change data of all the data tables when acquiring the change data every time, thereby reducing the transmission of unnecessary change data of the superior video networking monitoring and networking management and scheduling system and the subordinate video networking monitoring and networking management and scheduling system and improving the reading and writing speed of the change data. On the other hand, the change data of all the data tables are dispersed to a plurality of partitions to be stored respectively, namely, the change data are stored in a plurality of folders respectively, so that the management of the change data is facilitated, the superior video networking monitoring and networking management and scheduling system can acquire the change data in any partition according to the requirement, namely, the required change data is acquired from the folder in which the change data of any stored data table is stored, and the flexibility of service processing of the superior video networking monitoring and networking management and scheduling system is improved.
The following illustrates a data transmission method provided by an embodiment of the present invention:
the lower-level video networking monitoring and networking management scheduling system can allocate a partition identifier to each data table in the database in advance, so that each data table corresponds to one partition identifier respectively. The partition identification corresponding to each data table is unique, and the partition identification corresponding to each data table corresponds to one folder in the disk respectively.
For example, a partition identifier 1 is allocated to the data table 1, the partition identifier 1 corresponds to the folder 1, and a file 1 is created under the folder 1, so that all the change data of the data table 1 can be written into the file 1 under the folder 1. A partition identifier 2 is allocated to the data table 2, the partition identifier 2 corresponds to the folder 2, a file 2 is created under the folder 2, and the change data of the data table 2 can be written into the file 2 of the folder 2. A partition mark 3 is allocated to the data table 3, the partition mark 3 corresponds to the folder 3, a file 3 is created under the folder 3, and the change data of the data table 3 can be written into the file 3 of the folder 3. A partition mark 4 is allocated, the partition mark 4 corresponds to a folder 4, a file 4 is created under the folder 4, and the change data of the data table 4 can be written into the file 4 of the folder 4. A partition mark 5 is allocated, the partition mark 5 corresponds to a folder 5, a file 5 is created under the folder 5, and the change data of the data table 5 can be written into the file 5 of the folder 5.
When the superior video network monitoring and networking management scheduling system needs to read the change data of the data table, the superior video network monitoring and networking management scheduling system only needs to send the partition identification corresponding to the data table to which the interested change data belongs to the inferior video network monitoring and networking management scheduling system, and the inferior video network monitoring and networking management scheduling system searches the folder corresponding to the partition identification after receiving the partition identification, then, the file content under the folder corresponding to the partition identification, namely the interested change data, is sent to a superior video networking monitoring networking management scheduling system, therefore, the superior video network monitoring and networking management and scheduling system can acquire the change data of the interested data table without acquiring the change data of all the data tables every time the change data is read, therefore, unnecessary transmission of change data of the superior video networking monitoring, networking, managing and scheduling system and the subordinate video networking monitoring, networking, managing and scheduling system is reduced.
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 present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a schematic structural diagram of a data transmission system provided in an embodiment of the present invention is shown, where the data transmission system includes: the system comprises a superior video networking monitoring and networking management scheduling system 601, a subordinate video networking monitoring and networking management scheduling system 602, and the superior video networking monitoring and networking management scheduling system 601 and the subordinate video networking monitoring and networking management scheduling system 602 transmit data through a video networking. The superior video networking monitoring networking management scheduling system 601 is configured to: determining at least one target data table, and determining a partition identifier corresponding to each target data table in the at least one target data table based on the corresponding relationship between the data tables and the partition identifiers; sending a data reading command to a lower video network monitoring and networking management scheduling system, wherein the data reading command comprises: the partition identification corresponding to each target data table; receiving the read change data sent by the lower video networking monitoring and managing and scheduling system; the subordinate video networking monitoring networking management scheduling system 602 is configured to: and for the partition identification corresponding to each target data table, reading the change data from the folder corresponding to the partition identification, wherein the change data of each target data table is written into the corresponding folder in advance by the lower-level video networking monitoring and managing and scheduling system, and the folder corresponding to each target data table corresponds to one partition identification.
In some embodiments, the correspondence between the data table and the partition identifier is determined by a configuration operation of a user.
In some embodiments, the correspondence between the data table and the partition identifier is established by a hash algorithm.
In some embodiments, the data read command further comprises: the starting read position of the changed data to be read.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention 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 invention 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 invention 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 invention. 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 invention 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 preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
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 phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data transmission method and the data transmission system provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (6)

1.一种数据传输方法,所述方法包括:1. A data transmission method, the method comprising: 上级视联网监控联网管理调度系统确定至少一个目标数据表,以及基于数据表与分区标识的对应关系,确定至少一个目标数据表中的每一个目标数据表对应的分区标识;The upper-level video network monitoring network management and scheduling system determines at least one target data table, and determines the partition identifier corresponding to each target data table in the at least one target data table based on the corresponding relationship between the data table and the partition identifier; 上级视联网监控联网管理调度系统向下级视联网监控联网管理调度系统发送数据读取命令,数据读取命令包括:所述每一个目标数据表对应的分区标识和需要读取的变化数据的起始读取位置,其中,所述上级视联网监控联网管理调度系统与所述下级视联网监控联网管理调度系统通过视联网传输数据;The upper-level video network monitoring network management and dispatching system sends a data read command to the lower-level video network monitoring network management and dispatch system, and the data read command includes: the partition identifier corresponding to each target data table and the start of the changed data to be read. Reading the position, wherein the upper-level video network monitoring network management and dispatching system and the lower-level video network monitoring network management and dispatching system transmit data through the video network; 对于每一个目标数据表对应的分区标识,所述下级视联网监控联网管理调度系统从对应于所述分区标识的文件夹中以及所述需要读取的变化数据的起始读取位置读取出变化数据,其中,每一个目标数据表的变化数据分别由下级视联网监控联网管理调度系统预先写入到各自对应的文件夹中,每一个目标数据表对应的文件夹分别对应一个分区标识;For the partition identifier corresponding to each target data table, the lower-level video network monitoring network management and scheduling system reads the file from the folder corresponding to the partition identifier and the starting reading position of the changed data to be read. Change data, wherein the change data of each target data table is pre-written into the corresponding folder by the lower-level video network monitoring network management and scheduling system, and the folder corresponding to each target data table corresponds to a partition identifier; 上级视联网监控联网管理调度系统接收所述下级视联网监控联网管理调度系统发送的读取出的变化数据。The upper-level video network monitoring network management and dispatching system receives the read change data sent by the lower-level video network monitoring network management and dispatch system. 2.根据权利要求1所述的方法,所述数据表与分区标识的对应关系通过用户的配置操作而确定。2. The method according to claim 1, wherein the corresponding relationship between the data table and the partition identifier is determined through a user's configuration operation. 3.根据权利要求1所述的方法,所述数据表与分区标识的对应关系通过哈希算法建立。3. The method according to claim 1, wherein the corresponding relationship between the data table and the partition identifier is established by a hash algorithm. 4.一种数据传输系统,包括:上级视联网监控联网管理调度系统、下级视联网监控联网管理调度系统,所述上级视联网监控联网管理调度系统与所述下级视联网监控联网管理调度系统通过视联网传输数据;4. A data transmission system, comprising: an upper-level video network monitoring network management and scheduling system, a lower-level video network monitoring network management and scheduling system, the upper-level video network monitoring network management and scheduling system and the lower-level video network monitoring network management scheduling system pass through. Video network transmission data; 上级视联网监控联网管理调度系统被配置为:确定至少一个目标数据表,以及基于数据表与分区标识的对应关系,确定至少一个目标数据表中的每一个目标数据表对应的分区标识;向下级视联网监控联网管理调度系统发送数据读取命令,数据读取命令包括:所述每一个目标数据表对应的分区标识和需要读取的变化数据的起始读取位置;接收所述下级视联网监控联网管理调度系统发送的读取出的变化数据;The upper-level video network monitoring network management and scheduling system is configured to: determine at least one target data table, and based on the corresponding relationship between the data table and the partition identifier, determine the partition identifier corresponding to each target data table in the at least one target data table; The video network monitoring network management and dispatching system sends a data reading command, and the data reading command includes: the partition identifier corresponding to each target data table and the starting reading position of the changed data to be read; receiving the lower-level video network Monitor the read change data sent by the network management and dispatch system; 下级视联网监控联网管理调度系统被配置为:对于每一个目标数据表对应的分区标识,从对应于所述分区标识的文件夹中以及所述需要读取的变化数据的起始读取位置读取出变化数据,其中,每一个目标数据表的变化数据分别由下级视联网监控联网管理调度系统预先写入到各自对应的文件夹中,每一个目标数据表对应的文件夹分别对应一个分区标识。The lower-level video network monitoring network management and scheduling system is configured to: for the partition identifier corresponding to each target data table, read from the folder corresponding to the partition identifier and the starting reading position of the changed data to be read. Take out the change data, wherein the change data of each target data table is pre-written into the corresponding folder by the lower-level video network monitoring network management and scheduling system, and the folder corresponding to each target data table corresponds to a partition ID respectively . 5.根据权利要求4所述的系统,所述数据表与分区标识的对应关系通过用户的配置操作而确定。5. The system according to claim 4, wherein the corresponding relationship between the data table and the partition identifier is determined through a user's configuration operation. 6.根据权利要求4所述的系统,所述数据表与分区标识的对应关系通过哈希算法建立。6. The system according to claim 4, wherein the corresponding relationship between the data table and the partition identifier is established by a hash algorithm.
CN201910442006.7A 2019-05-24 2019-05-24 A data transmission method and system Active CN110266768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910442006.7A CN110266768B (en) 2019-05-24 2019-05-24 A data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910442006.7A CN110266768B (en) 2019-05-24 2019-05-24 A data transmission method and system

Publications (2)

Publication Number Publication Date
CN110266768A CN110266768A (en) 2019-09-20
CN110266768B true CN110266768B (en) 2022-02-25

Family

ID=67915380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910442006.7A Active CN110266768B (en) 2019-05-24 2019-05-24 A data transmission method and system

Country Status (1)

Country Link
CN (1) CN110266768B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113987089B (en) * 2021-12-28 2022-08-26 北京力控元通科技有限公司 System cascading method, data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103295464A (en) * 2012-02-23 2013-09-11 北京四维图新科技股份有限公司 Method and device for data management of electronic map and method and device for generation of electronic map
CN107391744A (en) * 2017-08-10 2017-11-24 东软集团股份有限公司 Data storage, read method, device and its equipment
CN109617956A (en) * 2018-12-04 2019-04-12 视联动力信息技术股份有限公司 A kind of data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5141234B2 (en) * 2007-12-19 2013-02-13 日本電気株式会社 Hierarchical storage control device, hierarchical storage control system, hierarchical storage control method used therefor, and program thereof
US9110808B2 (en) * 2009-12-30 2015-08-18 International Business Machines Corporation Formation of an exclusive ownership coherence state in a lower level cache upon replacement from an upper level cache of a cache line in a private shared owner state
US20160191508A1 (en) * 2014-12-31 2016-06-30 Nexenta Systems, Inc. Methods and Systems for Block Sharding of Objects Stored in Distributed Storage System

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103295464A (en) * 2012-02-23 2013-09-11 北京四维图新科技股份有限公司 Method and device for data management of electronic map and method and device for generation of electronic map
CN107391744A (en) * 2017-08-10 2017-11-24 东软集团股份有限公司 Data storage, read method, device and its equipment
CN109617956A (en) * 2018-12-04 2019-04-12 视联动力信息技术股份有限公司 A kind of data processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An incremental ensemble classifier learning by means of a rule-based accuracy and diversity comparison;Md Asafuddoula;《2017 International Joint Conference on Neural Networks (IJCNN)》;20170519;2161-4407 *
基于数据分区的密度聚类算法应用研究;孙业勤;《中国优秀硕士学位论文全文数据库》;20091128;全文 *

Also Published As

Publication number Publication date
CN110266768A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN109672856B (en) Resource synchronization method and device
CN111193788A (en) Audio and video stream load balancing method and device
CN109617956B (en) Data processing method and device
CN110190973B (en) Online state detection method and device
CN109768963B (en) Conference opening method and system based on video network
CN109818960B (en) Data processing method and device
CN108965226B (en) Data acquisition method and device based on video network
CN109246135B (en) Method and system for acquiring streaming media data
CN110557319B (en) Message processing method and device based on video network
CN110650147A (en) Data acquisition method and system
CN110113555B (en) Video conference processing method and system based on video networking
CN110784683B (en) A management method, device and storage medium for monitoring resources
CN110022500B (en) A kind of packet loss processing method and device
CN110289974B (en) Data stream processing method, system and device and storage medium
CN110446058B (en) Video acquisition method, system, device and computer readable storage medium
CN109743360B (en) Information processing method and device
CN110062259B (en) Video acquisition method, system, device and computer readable storage medium
CN110134892B (en) Loading method and system of monitoring resource list
CN110266768B (en) A data transmission method and system
CN110677315A (en) Method and system for monitoring state
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110557411A (en) video stream processing method and device based on video network
CN110166840B (en) Service processing method, system and device
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110267110B (en) Concurrent on-demand processing method and system based on video network

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
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address