CN111478791B - Data management method and device - Google Patents

Data management method and device Download PDF

Info

Publication number
CN111478791B
CN111478791B CN202010137247.3A CN202010137247A CN111478791B CN 111478791 B CN111478791 B CN 111478791B CN 202010137247 A CN202010137247 A CN 202010137247A CN 111478791 B CN111478791 B CN 111478791B
Authority
CN
China
Prior art keywords
identifier
target
child node
identification
data
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
CN202010137247.3A
Other languages
Chinese (zh)
Other versions
CN111478791A (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 CN202010137247.3A priority Critical patent/CN111478791B/en
Publication of CN111478791A publication Critical patent/CN111478791A/en
Application granted granted Critical
Publication of CN111478791B publication Critical patent/CN111478791B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

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

Abstract

According to the data management method and device provided by the embodiment of the invention, through the mapping relation between the child node identification corresponding to the data existing in the target equipment and the target identification input by the user, the user can manage the data set corresponding to the parent node identification in the target equipment according to the target identification defined by the user, the readability of the child node identification corresponding to the data is improved, and the user can conveniently identify the child node identification.

Description

Data management method and device
Technical Field
The present invention relates to the field of information technologies, and in particular, to a data management method and apparatus.
Background
SNMP (Simple Network Management Protocol) is a common Network device Management Protocol, and can acquire an OID (Object I identifier) corresponding to information data from a Network device, so that the information data in the Network device can be managed by using the OID based on SNMP.
However, since the OID includes both numeric and alphanumeric forms, and the numeric value is a positive integer greater than 0 and less than 16000000, the alphanumeric value is a variable-length string of characters not less than 1 character and not greater than 100 characters. It can be seen that such a naming rule is complex, which causes poor readability of the OID, and is not beneficial for the user to identify the OID corresponding to the required information data when the OID is used to manage the information data of the network device.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data management method and apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, a first aspect of the embodiments of the present invention discloses a data management method, where the method includes:
acquiring a child node identifier corresponding to data stored in target equipment;
identifying a father node identification corresponding to the child node identification;
replacing the father node identification in a preset first mapping relation with the corresponding child node identification to obtain a second mapping relation, wherein the preset first mapping relation is the mapping relation between the father node identification and a preset identification;
receiving a target identification input aiming at the preset identification;
replacing the preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, so as to manage the data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
Optionally, after the step of replacing the preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, the method further includes:
receiving a first input, the first input comprising at least: acquiring an instruction and a target identifier;
determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relation;
and acquiring data corresponding to the at least one sub-node identifier from the target equipment according to the acquisition instruction.
Optionally, after the step of replacing the preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, the method further includes:
receiving a second input, the second input comprising at least: modifying the instruction, the target identification and the child node index value;
determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relation;
identifying a parent node identification corresponding to the at least one child node identification;
generating a target child node identifier according to the father node identifier and the child node index value;
and controlling the target equipment to modify the data corresponding to the target child node identification according to the modification instruction.
Optionally, the step of obtaining the child node identifier corresponding to the data stored in the target device includes:
acquiring a father node identifier corresponding to a data set stored in the target equipment and a child node index value corresponding to the father node identifier by using a query method class in a private simple network management protocol;
and combining the father node identification with the child node index value to obtain the child node identification corresponding to each data in the data set.
Optionally, the preset first mapping relationship is obtained through the following steps:
acquiring a father node identifier corresponding to the data set in the target equipment;
generating a preset identifier corresponding to the father node identifier according to a preset rule;
and establishing a mapping relation between the father node identification and the preset identification to obtain a preset first mapping relation.
Optionally, the device management system uses a video networking protocol, the target device uses an internet protocol, the device management system is in communication connection with the target device through a protocol conversion server, and the step of acquiring a child node identifier corresponding to data stored in the target device includes:
and acquiring child node identifications corresponding to the data stored in the target equipment through a transparent transmission module in the protocol conversion server.
The second aspect of the embodiments of the present invention discloses a data management apparatus, which is applied to a device management system, and includes:
the first acquisition module is used for acquiring child node identifications corresponding to data stored in target equipment;
the first identification module is used for identifying a father node identification corresponding to the child node identification;
a first replacement module, configured to replace the father node identifier in a preset first mapping relationship with the corresponding child node identifier to obtain a second mapping relationship, where the preset first mapping relationship is a mapping relationship between the father node identifier and a preset identifier;
the first receiving module is used for receiving a target identifier input aiming at the preset identifier;
and the second replacement module is configured to replace a preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, so as to manage a data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
Optionally, the apparatus further includes:
a second receiving module, configured to receive a first input, where the first input at least includes: acquiring an instruction and a target identifier;
a first determining module, configured to determine, according to the third mapping relationship, at least one child node identifier corresponding to the target identifier;
and the second acquisition module is used for acquiring data corresponding to the at least one sub-node identifier from the target equipment according to the acquisition instruction.
Optionally, the apparatus further includes:
a third receiving module, configured to receive a second input, where the second input at least includes: modifying the instruction, the target identification and the child node index value;
a second determining module, configured to determine, according to the third mapping relationship, at least one child node identifier corresponding to the target identifier;
the second identification module is used for identifying a father node identifier corresponding to the at least one child node identifier;
the generating module is used for generating a target child node identifier according to the father node identifier and the child node index value;
and the modification module is used for controlling the target equipment to modify the data corresponding to the target child node identification according to the modification instruction.
Optionally, the obtaining module includes:
a first obtaining sub-module, configured to obtain, by using a query method class in a private simple network management protocol, a parent node identifier corresponding to a data set stored in the target device, and a child node index value corresponding to the parent node identifier;
and the assembling submodule is used for combining the father node identification with the child node index value to obtain the child node identification corresponding to each data in the data set.
Optionally, the preset first mapping relationship is obtained through the following preprocessing module, where the preprocessing module is configured to:
acquiring a father node identifier corresponding to the data set in the target equipment;
generating a preset identifier corresponding to the father node identifier according to a preset rule;
and establishing a mapping relation between the father node identification and the preset identification to obtain a preset first mapping relation.
Optionally, the device management system uses a video networking protocol, the target device uses an internet protocol, the device management system is in communication connection with the target device through a protocol conversion server, and the first obtaining module includes:
and the second obtaining submodule is used for obtaining the child node identification corresponding to the data stored in the target equipment through the transparent transmission module in the protocol conversion server.
The embodiment of the invention has the following advantages:
according to the data management method and device provided by the embodiment of the invention, through the mapping relation between the child node identification corresponding to the data existing in the target equipment and the target identification input by the user, the user can manage the data set corresponding to the parent node identification in the target equipment according to the target identification defined by the user, the readability of the child node identification corresponding to the data is improved, and the user can conveniently identify the child node identification.
Drawings
FIG. 1 is a flow chart of the steps of a data management method of the present invention;
FIG. 2 is a schematic flow chart of a third mapping relationship generation according to the present invention;
FIG. 3 is a flow chart of the steps of another data management method of the present invention;
FIG. 4 is a flow chart of the steps of a data acquisition method of the present invention;
FIG. 5 is a flow chart of the steps of a data modification method of the present invention;
FIG. 6 is a flowchart of one step of generating a first mapping relationship of the present invention;
FIG. 7 is a block diagram of a data management apparatus according to the present invention;
FIG. 8 is a networking schematic of a video network of the present invention;
FIG. 9 is a diagram of a hardware architecture of a node server according to the present invention;
fig. 10 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to 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.
Referring to fig. 1, there is shown a data management method of the present invention, the method comprising:
step 101, acquiring a child node identifier corresponding to data stored in a target device.
In the embodiment of the present invention, the target device refers to an electronic device having a data storage function in a network environment. The child node identifier refers to an OID (Object IDentifiers) corresponding to data stored in the network device, and is used for locating and managing the data stored in the network device. SNMP is a standard protocol specially designed for managing network devices (servers, workstations, routers, switches, HUBS, etc.), and generally, a network device locally generates a MIB (Management Information Base) for storing data such as control and status Information, where the MIB is a tree database based on the SNMP protocol, and object data managed by the MIB is nodes of a tree, and each node has a corresponding child node identifier.
Usually, a user may obtain the data through the device management system and store the child node identifiers corresponding to the network devices, so as to perform operations such as adding, deleting, and modifying the data in the network devices. And because the naming rule of the sub-node identification is complex and the readability is poor, a user is difficult to identify and determine the sub-node identification corresponding to the required information. The child node identities need to be reassembled for easy user identification.
Before reassembly, the child node identifiers corresponding to the data contained in the MIB in the target device may be obtained via the private SNMP protocol. The private SNMP protocol obtains the index values included in the data sets included in the target device and corresponding to the parent node identifiers, so that the parent node identifiers and the corresponding index values are assembled to obtain the child node identifiers corresponding to the data in the data sets corresponding to the node identifiers.
And 102, identifying a parent node identifier corresponding to the child node identifier.
In the embodiment of the present invention, since the child node identifiers are generated in a tree structure, the parent node identifier corresponding to each child node identifier can be obtained by deleting the last object in the child node identifiers.
103, replacing the father node identifier in a preset first mapping relation with the corresponding child node identifier to obtain a second mapping relation, where the preset first mapping relation is a mapping relation between the father node identifier and a preset identifier.
In the embodiment of the present invention, the preset first mapping relationship is generated when the device management system establishes a communication connection with the target device. And replacing the father node identifier in the first mapping relation with the corresponding child node identifier to establish the mapping relation between the preset identifier and the child node identifier, and determining all child node identifiers in the father node identifier through the preset identifier.
And 104, receiving a target identification input aiming at the preset identification.
In the embodiment of the invention, in the design and development process, a user usually needs to set the identification name for each data according to the actual requirement of the user, so that the method and the device are suitable for different development and design requirements. Therefore, the user can input the target identification of each preset identification according to the requirement of the user by identifying the preset identification.
And 105, replacing a preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, so as to manage a data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
In the embodiment of the present invention, the preset identifier in the previously generated second mapping relationship is replaced by the target identifier input by the user, so as to establish a third mapping relationship between the target identifier and all child node identifiers corresponding to the parent node identifier. Therefore, a user can obtain and determine the father node identification corresponding to the data set where the needed data is located through the target identification set by the user. Since the target identifier is set by the user, and is easier to be recognized by the user than the child node identifier, the target identifier can be directly used to input a control instruction for data in the target device so as to manage the data in the target device.
Specifically, referring to fig. 2, a flowchart for generating the third mapping relationship is shown, where Oid represents a parent node identifier, index is a child node index value, and Oid + index is a child node identifier. Specifically, a child node identifier in the form of Oid + index, for example 1.3.6.1.4.1.54120.1.3.1.7.1.1 is 1, is first obtained from the target device; then, replacing the Oid in the first mapping relationship stored locally with the corresponding Oid + index, so as to obtain a second mapping relationship between the Oid + index and the preset identifier, for example: 1.3.6.1.4.1.54120.1.3.1.7.1.1 is a preset mark; then, replacing the preset identifier in the second mapping relationship with the received target identifier for the preset identifier to obtain a third mapping relationship between the target identifier and the preset identifier, for example: 1.3.6.1.4.1.54120.1.3.1.7.1.1 is the target identification.
Optionally, the device management system uses a video networking protocol, the target device uses an internet protocol, and the device management system is in communication connection with the target device through a protocol conversion server, where step 101 may include: and acquiring child node identifications corresponding to the data stored in the target equipment through a transparent transmission module in the protocol conversion server.
In the embodiment of the present invention, when the device management system is deployed in a video networking environment, due to the limitation of a network protocol, the device management system cannot directly communicate with a target device deployed in the internet, and therefore cannot directly obtain a child node identifier in the target device. Therefore, the protocol conversion server for performing protocol conversion between the video networking protocol and the internet protocol is arranged between the equipment management system and the target equipment. The protocol conversion server is provided with an internet interface and a video network interface, the target device sends the child node identification to the internet interface of the protocol conversion server through the transparent transmission module, the protocol conversion server completes protocol conversion by adding a video network packet header to a data packet of the child node identification, and then the transparent transmission module sends the child node identification after the protocol conversion to the device management system from the video network interface. Therefore, the communication connection of the equipment management system in the video networking environment to the electronic equipment in the Internet environment is realized.
According to the data management method provided by the embodiment of the invention, the mapping relation between the child node identification corresponding to the data existing in the target equipment and the target identification input by the user is realized, so that the user can manage the data set corresponding to the parent node identification in the target equipment according to the target identification defined by the user, the readability of the child node identification corresponding to the data is improved, and the user can conveniently recognize the child node identification.
Referring to fig. 3, there is shown another data management method of the present invention, the method comprising:
step 201, using a query method class in a private simple network management protocol, obtaining a parent node identifier corresponding to a data set stored in the target device, and a child node index value corresponding to the parent node identifier.
In the embodiment of the present invention, the private simple network management protocol refers to a private SNMP protocol, and the obtained protocol is a parent node identifier of a data set stored in a target device and an included index value. For example, the parent node is identified as 1.3.6.1.4.1.54120.1.3.1.7.1.3 and contains index values of 1, 2, 3, etc.
Step 202, combining the father node identification and the child node index value to obtain the child node identification corresponding to each data in the data set.
In the embodiment of the invention, the child node index value is used as an object to be added to the corresponding parent node identifier to obtain the child node identifier, and the mapping relation between the child node identifier and the child node index value is established. That is, oid + index is in the form of inedx, oid indicates the parent node id, index is the child node index value, and for example, the parent node id 1.3.6.1.4.1.54120.1.3.1.7.1.3 is assembled with its corresponding child node index value 1, and 1.3.6.1.4.1.54120.1.3.1.7.1.3.1 is equal to 1.
And 203, identifying a parent node identifier corresponding to the child node identifier.
This step can refer to the detailed description of step 102, and is not described herein again.
And 204, replacing the father node identifier in a preset first mapping relation with the corresponding child node identifier to obtain a second mapping relation, wherein the preset first mapping relation is the mapping relation between the father node identifier and a preset identifier.
This step can refer to the detailed description of step 103, which is not repeated herein.
Step 205, receiving a target identifier input aiming at the preset identifier.
This step can refer to the detailed description of step 104, which is not repeated here.
Step 206, replacing the preset identifier in the second mapping relationship with the target identifier, obtaining a third mapping relationship between the target identifier and the child node identifier, and managing a data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
This step can refer to the detailed description of step 105, which is not repeated here.
Optionally, referring to fig. 4, based on another data management method shown in fig. 3, the step 206 further includes the following steps 207 to 209:
step 207, receiving a first input, the first input at least comprising: and acquiring an instruction and a target identifier.
In the embodiment of the invention, when the user determines the required data set through the target identifier input by the user, the user inputs an acquisition instruction aiming at the target identifier.
And 208, determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relation.
In this embodiment of the present invention, the device management system may obtain, according to the target identifier, all child node identifiers corresponding to the target device from the third mapping relationship.
Step 209, obtaining data corresponding to the at least one sub-node identifier from the target device according to the obtaining instruction.
In the embodiment of the present invention, a child node identifier corresponding to the target identifier is sent to the target device through an SNMP protocol, so that the target device returns data corresponding to the child node identifier, that is, all data in a data set of a parent node identifier corresponding to the child node identifier. Therefore, the user can acquire the data in the target equipment through the target identification which is more convenient to recognize.
Optionally, referring to fig. 5, based on another data management method shown in fig. 3, the step 205 further includes the following steps 210 to 214:
step 210, receiving a second input, where the second input at least includes: modifying the instruction, the target identification and the child node index value.
In the embodiment of the present invention, when a user needs to perform operations such as adding, deleting, and modifying on certain data in a target device, a RowStatus (row state of a data object) corresponding to a target identifier may be set by an SNMP protocol to input a modification instruction, and a child node index value corresponding to the target identifier and the data to be modified.
Step 211, determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relationship.
In this embodiment of the present invention, all child node identifiers corresponding to the target identifier are determined from the third mapping relationship.
Step 212, identify a parent node identifier corresponding to the at least one child node identifier.
In the embodiment of the invention, the last object in the child node identifier is removed through the tree structure of the child node identifier, so that the father node identifier corresponding to the child node identifier is obtained.
Step 213, generating a target child node identifier according to the parent node identifier and the child node index value.
In the embodiment of the invention, the father node identification and the child node index value input by the user are assembled, so that the target child node identification corresponding to the data required to be modified by the modification instruction can be obtained.
And step 214, controlling the target device to modify the data corresponding to the target child node identifier according to the modification instruction.
In the embodiment of the present invention, a modification instruction carrying the child node identifier is sent to the target device, so that the target device modifies the data corresponding to the target child node identifier stored in the target device. Therefore, the data in the target equipment can be modified by the user through the recognizable target identification.
Optionally, referring to fig. 6, the preset first mapping relationship is obtained through the following steps a1 to A3:
step a1, acquiring a parent node identifier corresponding to the data set in the target device.
Step A2, generating a preset identifier corresponding to the father node identifier according to a preset rule.
Step A3, establishing a mapping relationship between the father node identifier and the preset identifier, and obtaining a preset first mapping relationship.
In the embodiment of the invention, the target device sends the father node identification corresponding to the data stored in the target device to the data management system, and then the device management system generates the preset identification corresponding to each father node identification according to the naming rule which can be identified by the user. The naming rule which can be identified by the user can be generated according to the content of the data set corresponding to the father node identification, so that the user can directly identify the content of the data combination corresponding to the father node identification through the preset identification. And enabling the user to identify the content of the data corresponding to each parent node when the user inputs the identifiable target identification.
In another data management method provided in the embodiment of the present invention, through a mapping relationship between a child node identifier corresponding to data existing in a target device and a target identifier input by a user, the user can acquire a data set corresponding to a parent node identifier in the target device according to a target identifier defined by the user and modify each data, so that the user can determine a required child node identifier by identifying the target identifier to manage the data in the target device, and readability of the child node identifier corresponding to the data is improved.
Referring to fig. 7, a data management apparatus of the present invention is shown, the apparatus being applied to a device management system, the apparatus including:
a first obtaining module 301, configured to obtain a child node identifier corresponding to data stored in a target device.
A first identifying module 302, configured to identify a parent node identifier corresponding to the child node identifier.
A first replacing module 303, configured to replace the parent node identifier in a preset first mapping relationship with the corresponding child node identifier to obtain a second mapping relationship, where the preset first mapping relationship is a mapping relationship between the parent node identifier and a preset identifier.
A first receiving module 304, configured to receive a target identifier input for the preset identifier.
A second replacing module 305, configured to replace a preset identifier in the second mapping relationship with the target identifier, to obtain a third mapping relationship between the target identifier and the child node identifier, so as to manage, according to the third mapping relationship, a data set corresponding to the parent node identifier stored in the target device.
Optionally, the apparatus further includes:
a second receiving module 306, configured to receive a first input, where the first input at least includes: and acquiring an instruction and a target identifier.
A first determining module 307, configured to determine, according to the third mapping relationship, at least one sub-node identifier corresponding to the target identifier.
A second obtaining module 308, configured to obtain, according to the obtaining instruction, data corresponding to the at least one child node identifier from the target device.
Optionally, the apparatus further includes:
a third receiving module 309, configured to receive a second input, where the second input at least includes: modifying the instruction, the target identification and the child node index value.
A second determining module 310, configured to determine at least one sub-node identifier corresponding to the target identifier according to the third mapping relationship.
The second identifying module 311 is configured to identify a parent node identifier corresponding to the at least one child node identifier.
A generating module 312, configured to generate a target child node identifier according to the parent node identifier and the child node index value.
A modifying module 313, configured to control the target device to modify, according to the modification instruction, data corresponding to the target child node identifier.
Optionally, the obtaining module 301 includes:
the first obtaining sub-module 3011 is configured to obtain, by using a query method class in a private simple network management protocol, a parent node identifier corresponding to a data set stored in the target device and a child node index value corresponding to the parent node identifier.
And the assembling sub-module 3012 is configured to combine the parent node identifier with the child node index value to obtain a child node identifier corresponding to each data in the data set.
Optionally, the preset first mapping relationship is obtained by the following preprocessing module 314, where the preprocessing module 314 is configured to:
acquiring a father node identifier corresponding to the data set in the target equipment;
generating a preset identifier corresponding to the father node identifier according to a preset rule;
and establishing a mapping relation between the father node identification and the preset identification to obtain a preset first mapping relation.
Optionally, the device management system uses a video networking protocol, the target device uses an internet protocol, the device management system is in communication connection with the target device through a protocol conversion server, and the first obtaining module 301 includes:
and the second obtaining sub-module 3013 is configured to obtain, through the transparent transmission module in the protocol conversion server, a sub-node identifier corresponding to the data stored in the target device.
According to the data management device provided by the embodiment of the invention, through the mapping relation between the child node identification corresponding to the data existing in the target equipment and the target identification input by the user, the user can manage the data set corresponding to the parent node identification in the target equipment according to the target identification defined by the user, the readability of the child node identification corresponding to the data is improved, and the user can conveniently identify the child node identification.
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.
To better illustrate the solution of the invention, the following detailed description of the video network is given:
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 over 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 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. 8, the view 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 on the metro network part can 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: 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. 9, the network interface module 501, the switching engine module 502, the CPU module 503, and the disk array module 504 are mainly included;
the network interface module 501, the CPU module 503 and the disk array module 504 all enter the switching engine module 502; the switching engine module 502 performs an operation of looking up the address table 505 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet into a queue of the corresponding packet buffer 506 according to the packet's steering information; if the queue of the packet buffer 506 is nearly full, it is discarded; the switching engine module 502 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 504 mainly implements control over the hard disk, including initialization, read-write, and other operations of the hard disk; the CPU module 503 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 505 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring a disk array module 504.
The access switch:
as shown in fig. 10, the network interface module (downlink network interface module 601, uplink network interface module 602), switching engine module 603, and CPU module 604 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 601 enters the packet detection module 605; the packet detection module 605 detects whether the Destination Address (DA), the Source Address (SA), the type of the packet, and the length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 603, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 602 enters the switching engine module 603; the incoming data packet from the CPU module 604 enters the switching engine module 603; the switching engine module 603 performs an operation of looking up the address table 606 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 603 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 607 in association with the stream-id; if the queue of the packet buffer 607 is close to full, it is discarded; if the packet entering the switching engine module 603 is not from the downlink network interface to the uplink network interface, the packet is stored in the queue of the corresponding packet buffer 607 according to the packet guiding information; if the queue of the packet buffer 607 is close to full, it is discarded.
The switching engine module 603 polls all packet buffer queues, which in this embodiment of the present invention 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 608 is configured by the CPU module 604 and generates tokens for packet buffer queues going to the upstream network interface from all downstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 604 is mainly responsible for protocol processing with the node server, configuration of the address table 606, and configuration of the code rate control module 608.
Ethernet protocol conversion gateway
As shown in fig. 11, the apparatus mainly includes a network interface module (a downlink network interface module 701, an uplink network interface module 702), a switching engine module 703, a CPU module 704, a packet detection module 705, an address table 706, a packet buffer 707, a rate control module 708, a MAC adding module 709, and a MAC deleting module 710.
Wherein, the data packet coming from the downlink network interface module 701 enters the packet detection module 705; the packet detection module 705 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 deleting module 710 subtracts MAC DA, MAC SA, length or frame type (2byte), and enters the corresponding receiving buffer, otherwise, discards;
the downlink network interface module 701 detects the sending buffer of the port, and if a packet exists, the downlink network interface module learns 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 all passively executed, which is different from label allocation of MPLS, which 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, which is located between the reserved bytes and the payload of the packet.
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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 management method and the data management device provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present 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 (10)

1. A method for managing data, the method comprising:
acquiring a child node identifier corresponding to data stored in target equipment;
identifying a father node identification corresponding to the child node identification;
replacing the father node identification in a preset first mapping relation with the corresponding child node identification to obtain a second mapping relation, wherein the preset first mapping relation is the mapping relation between the father node identification and a preset identification;
receiving a target identification input aiming at the preset identification;
replacing a preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, and managing a data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
2. The method according to claim 1, wherein after the step of replacing the preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, the method further comprises:
receiving a first input, the first input comprising at least: acquiring an instruction and a target identifier;
determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relation;
and acquiring data corresponding to the at least one sub-node identifier from the target equipment according to the acquisition instruction.
3. The method according to claim 1, wherein after the step of replacing the preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, the method further comprises:
receiving a second input, the second input comprising at least: modifying the instruction, the target identification and the child node index value;
determining at least one sub-node identifier corresponding to the target identifier according to the third mapping relation;
identifying a parent node identification corresponding to the at least one child node identification;
generating a target child node identifier according to the father node identifier and the child node index value;
and controlling the target equipment to modify the data corresponding to the target child node identification according to the modification instruction.
4. The method according to claim 1, wherein the step of obtaining the child node identifier corresponding to the data stored in the target device includes:
acquiring a father node identifier corresponding to a data set stored in the target equipment and a child node index value corresponding to the father node identifier by using a query method class in a private simple network management protocol;
and combining the father node identification with the child node index value to obtain the child node identification corresponding to each data in the data set.
5. The method according to claim 1, wherein the preset first mapping relationship is obtained by:
acquiring a father node identifier corresponding to the data set in the target equipment;
generating a preset identifier corresponding to the father node identifier according to a preset rule;
and establishing a mapping relation between the father node identification and the preset identification to obtain a preset first mapping relation.
6. The method according to claim 1, wherein a device management system uses a video networking protocol, the target device uses an internet protocol, the device management system is in communication connection with the target device through a protocol conversion server, and the step of acquiring the child node identifier corresponding to the data stored in the target device includes:
and acquiring child node identifications corresponding to the data stored in the target equipment through a transparent transmission module in the protocol conversion server.
7. A data management apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring child node identifications corresponding to data stored in target equipment;
the first identification module is used for identifying a father node identifier corresponding to the child node identifier;
a first replacement module, configured to replace the father node identifier in a preset first mapping relationship with the corresponding child node identifier to obtain a second mapping relationship, where the preset first mapping relationship is a mapping relationship between the father node identifier and a preset identifier;
the first receiving module is used for receiving a target identifier input aiming at the preset identifier;
and the second replacement module is configured to replace a preset identifier in the second mapping relationship with the target identifier to obtain a third mapping relationship between the target identifier and the child node identifier, so as to manage a data set corresponding to the parent node identifier stored in the target device according to the third mapping relationship.
8. The apparatus of claim 7, further comprising:
a second receiving module, configured to receive a first input, where the first input at least includes: acquiring an instruction and a target identifier;
a first determining module, configured to determine, according to the third mapping relationship, at least one child node identifier corresponding to the target identifier;
and the second acquisition module is used for acquiring data corresponding to the at least one child node identifier from the target equipment according to the acquisition instruction.
9. The apparatus of claim 7, further comprising:
a third receiving module, configured to receive a second input, where the second input at least includes: modifying the instruction, the target identification and the child node index value;
a second determining module, configured to determine, according to the third mapping relationship, at least one child node identifier corresponding to the target identifier;
the second identification module is used for identifying a father node identifier corresponding to the at least one child node identifier;
the generating module is used for generating a target child node identifier according to the father node identifier and the child node index value;
and the modification module is used for controlling the target equipment to modify the data corresponding to the target child node identification according to the modification instruction.
10. The apparatus of claim 7, wherein the obtaining module comprises:
a first obtaining submodule, configured to obtain, by using a query method class in a private simple network management protocol, a parent node identifier corresponding to a data set stored in the target device, and a child node index value corresponding to the parent node identifier;
and the assembling submodule is used for combining the father node identification with the child node index value to obtain the child node identification corresponding to each data in the data set.
CN202010137247.3A 2020-03-02 2020-03-02 Data management method and device Active CN111478791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010137247.3A CN111478791B (en) 2020-03-02 2020-03-02 Data management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010137247.3A CN111478791B (en) 2020-03-02 2020-03-02 Data management method and device

Publications (2)

Publication Number Publication Date
CN111478791A CN111478791A (en) 2020-07-31
CN111478791B true CN111478791B (en) 2022-09-20

Family

ID=71747140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010137247.3A Active CN111478791B (en) 2020-03-02 2020-03-02 Data management method and device

Country Status (1)

Country Link
CN (1) CN111478791B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064881B (en) * 2021-04-15 2024-05-24 深信服科技股份有限公司 Database management method, device, equipment and readable storage medium
CN113935276B (en) * 2021-12-16 2022-03-25 北京云枢创新软件技术有限公司 Design data mapping relation construction system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554169A (en) * 2014-11-04 2016-05-04 中兴通讯股份有限公司 OID configuration and analytic methods, ORS client, and OID node and database thereof
CN106301915A (en) * 2016-08-17 2017-01-04 福建星海通信科技有限公司 A kind of projector universal monitor method based on SNMP

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7539769B2 (en) * 2001-04-30 2009-05-26 Hewlett-Packard Development Company Automated deployment and management of network devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554169A (en) * 2014-11-04 2016-05-04 中兴通讯股份有限公司 OID configuration and analytic methods, ORS client, and OID node and database thereof
CN106301915A (en) * 2016-08-17 2017-01-04 福建星海通信科技有限公司 A kind of projector universal monitor method based on SNMP

Also Published As

Publication number Publication date
CN111478791A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN109617956B (en) Data processing method and device
CN111193788A (en) Audio and video stream load balancing method and device
CN110190973B (en) Online state detection method and device
CN109768963B (en) Conference opening method and system based on video network
CN108965226B (en) Data acquisition method and device based on video network
CN110602039A (en) Data acquisition method and system
CN110557319B (en) Message processing method and device based on video network
CN111131911B (en) Multicast method and device
CN111478791B (en) Data management method and device
CN111669337A (en) Flow control method and device
CN110545244A (en) message distribution method and device
CN110266577B (en) Tunnel establishment method and video networking system
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110493149B (en) Message processing method and device
CN110519549B (en) Conference terminal list obtaining method and system
CN110446058B (en) Video acquisition method, system, device and computer readable storage medium
CN109889516B (en) Method and device for establishing session channel
CN109743360B (en) Information processing method and device
CN110677315A (en) Method and system for monitoring state
CN110784683B (en) Management method, device and storage medium for monitoring resources
CN110688532B (en) Transaction management method and device
CN110493319B (en) Data synchronization method, system and device
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN109756476B (en) User-defined nickname setting method and system based on video network
CN110266768B (en) Data transmission method and system

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