CN111711788B - Code allocation method and device - Google Patents

Code allocation method and device Download PDF

Info

Publication number
CN111711788B
CN111711788B CN202010457970.XA CN202010457970A CN111711788B CN 111711788 B CN111711788 B CN 111711788B CN 202010457970 A CN202010457970 A CN 202010457970A CN 111711788 B CN111711788 B CN 111711788B
Authority
CN
China
Prior art keywords
directory
newly added
mapping code
data
code corresponding
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
CN202010457970.XA
Other languages
Chinese (zh)
Other versions
CN111711788A (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 CN202010457970.XA priority Critical patent/CN111711788B/en
Publication of CN111711788A publication Critical patent/CN111711788A/en
Application granted granted Critical
Publication of CN111711788B publication Critical patent/CN111711788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a code allocation method and a device, which are applied to an information management platform, wherein the method comprises the following steps: under the condition that newly added directory data is received and mapping codes corresponding to the newly added directory data do not exist in a temporary coding table, mapping codes corresponding to the parent directory and the number of child directory which are at the same level as the newly added directory data under the parent directory are obtained; based on the number of the sub-level directories, acquiring mapping codes of the newly added directory data under the sub-level directories; the mapping codes corresponding to the parent-level catalogs and the mapping codes corresponding to the child-level catalogs are set as target mapping codes corresponding to the newly added catalogs, so that recoding of the catalogs can be achieved, the number of bits and the range of the codes can be randomly expanded, and the situation that the catalogs are disordered due to random coding when the newly added catalogs are generated is avoided.

Description

Code allocation method and device
Technical Field
The invention relates to the technical field of video networking, in particular to a code allocation method and a code allocation device.
Background
With the development of the video networking, a one-machine one-file information management platform has been widely used.
At present, the first two-digit representing provinces, three-four digits representing cities and five-six digits representing counties are taken by a first-machine first-grade information management platform in directory processing according to a national standard mode.
However, in actual use, the new directory is not necessarily coded according to national standards, and when the new directory needs to be expanded from the three-level directory to the five-level directory, the problem may cause an error in the directory display level, resulting in a disordered directory.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention have been developed to provide a code allocation method and apparatus that overcome, or at least partially solve, the foregoing problems.
In order to solve the above problems, an embodiment of the present invention provides a code allocation method, which is applied to an information management platform, and the method includes:
under the condition that newly added directory data is received and mapping codes corresponding to the newly added directory data do not exist in a temporary coding table, mapping codes corresponding to the parent directory and the number of child directory which are at the same level as the newly added directory data under the parent directory are obtained;
based on the number of the sub-level directories, acquiring mapping codes of the newly added directory data under the sub-level directories;
and setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data.
Optionally, after setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data, the method further includes:
and storing the target mapping code into a mapping code table corresponding to the newly added directory data.
Optionally, before the mapping code corresponding to the parent directory and the number of child directories of the same child level as the newly added directory data under the parent directory are obtained, the method further includes:
receiving newly added directory data and a temporary coding table;
traversing the newly added directory data.
Optionally, after setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data, the method further includes:
and setting the mapping code as a target mapping code and storing the target mapping code into a directory table corresponding to the new directory data under the condition that the mapping code corresponding to the new directory data exists in the temporary coding table.
Optionally, after obtaining the mapping code corresponding to the parent directory and the number of child directories of the same child level as the newly added directory data under the parent directory, the method further includes:
and setting the code corresponding to the new added catalog data as a target mapping code and storing the target mapping code into the catalog corresponding to the new added catalog data under the condition that the parent catalog does not exist.
In order to solve the above problems, an embodiment of the present invention provides a code allocation apparatus, which is applied to an information management platform, and includes:
the first acquisition module is used for acquiring the mapping code corresponding to the parent directory and the number of child directory which is in the same level with the new directory data under the parent directory under the condition that the new directory data is received and the mapping code corresponding to the new directory data does not exist in the temporary coding table;
the second acquisition module is used for acquiring the mapping codes of the newly added directory data under the sub-level directory based on the number of the sub-level directories;
and the first setting module is used for setting the mapping code corresponding to the parent-level directory and the mapping code corresponding to the child-level directory as the target mapping code corresponding to the newly added directory data.
Optionally, the apparatus further comprises:
and the storage module is used for storing the target mapping code into a mapping code table corresponding to the newly added directory data.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the newly added catalog data and the temporary coding table;
and the traversing module is used for traversing the newly added directory data.
Optionally, the apparatus further comprises:
and the storage module is used for setting the mapping code as a target mapping code and storing the target mapping code into a directory table corresponding to the new directory data under the condition that the mapping code corresponding to the new directory data exists in the temporary coding table.
Optionally, the apparatus further comprises:
and the second setting module is used for setting the codes corresponding to the newly added directory data as target mapping codes and storing the target mapping codes into the directory table corresponding to the newly added directory data under the condition that the parent directory does not exist.
In order to solve the above problems, an embodiment of the present invention provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the code allocation method described above.
To solve the above-described problems, an embodiment of the present invention provides a computer-readable storage medium storing a computer program to cause a processor to execute the above-described code allocation method.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the information management platform can acquire the mapping code corresponding to the parent directory and the number of child directories which are in the same level as the newly added directory data under the parent directory under the condition that the newly added directory data is received and the mapping code corresponding to the newly added directory data does not exist in the temporary coding table, acquire the mapping code of the newly added directory data under the child directory based on the number of child directories, and set the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data, so that the recoding of the directory can be realized, the bit number and the range of the coding can be arbitrarily expanded, and the condition that the directory is disordered due to random coding when the newly added directory data occurs is avoided.
Drawings
Fig. 1 is a flowchart of a code allocation method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a code allocation method according to a second embodiment of the present invention;
FIG. 3 shows a schematic diagram of a coding table provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a directory data transmission according to an embodiment of the present invention;
fig. 5 is a block diagram showing a code allocation apparatus according to a third embodiment of the present invention;
FIG. 6 shows a networking schematic of the visual networking of the present invention;
FIG. 7 is a schematic diagram of the hardware architecture of a node server according to the present invention;
fig. 8 shows a schematic hardware architecture of an access switch according to the present invention;
fig. 9 shows a schematic hardware structure of an ethernet corotation gateway according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a flowchart illustrating steps of a code allocation method according to a first embodiment of the present invention is shown, where the method may be applied to an information management platform, and may specifically include the following steps:
step 501, under the condition that the newly added directory data is received and the mapping code corresponding to the newly added directory data does not exist in the temporary coding table, the mapping code corresponding to the parent directory and the number of child directory which are at the same child level as the newly added directory data under the parent directory are obtained.
In the embodiment of the invention, when the mapping code corresponding to the newly added catalog data does not exist in the temporary code table, the information management platform can further judge whether the newly added catalog data exists in a parent catalog, acquire the mapping code corresponding to the parent catalog and recursively return the corresponding mapping code under the condition that the newly added catalog data exists in the parent catalog, and acquire the number of child catalog of the same level as the newly added catalog data under the parent catalog.
When the new directory data is received and the mapping code corresponding to the new directory data does not exist in the temporary coding table, step 502 is executed after the mapping code corresponding to the parent directory and the number of child directories of the same child level as the new directory data in the parent directory are obtained.
Step 502, based on the number of sub-level directories, obtaining the mapping codes of the newly added directory data under the sub-level directories.
The information management platform queries from the temporary coding table, the number of the child-level catalogues of the same child level as the newly added catalogue data under the parent-level catalogue, and finds the corresponding two-bit codes in the m-area-codable table to serve as the mapping codes of the child level corresponding to the newly added catalogue data.
After the mapped encoding of the newly added directory data under the sub-level directory is acquired based on the number of sub-level directories, step 503 is performed.
In step 503, the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory are set as the target mapping code corresponding to the newly added directory data.
In the embodiment of the invention, the information management platform takes the mapping code corresponding to the recursively returned parent directory and the mapping code under the child directory as the target mapping code corresponding to the newly added directory data.
In the embodiment of the invention, the information management platform can acquire the mapping code corresponding to the parent directory and the number of child directories which are at the same level as the newly added directory data under the parent directory under the condition that the newly added directory data is received and the mapping code corresponding to the temporarily added directory data does not exist in the temporary coding table, acquire the mapping code of the newly added directory data under the child directory based on the number of child directories, and set the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data, so that the recoding of the directory can be realized, the bit number and the range of the coding can be arbitrarily expanded, and the condition that the directory is disordered due to random coding when the newly added directory data occurs is avoided.
Referring to fig. 2, a step flow chart of a code allocation method according to a second embodiment of the present invention is shown, where the method may be applied to an information management platform, and specifically may include the following steps:
step 601, receiving newly added directory data and a temporary coding table.
In the invention, the newly added directory data can be directory data synchronized by a first-machine first-file information management platform (information management platform) from a visual network monitoring network management scheduling system, and the temporary coding table can be a coding table synchronously acquired by the first-machine first-file information management platform from a first-machine first-file management platform database.
Fig. 3 is a schematic diagram of an encoding table provided in the embodiment of the present invention, referring to fig. 3, a one-machine-one-file management platform database may create a dictionary table (m-area-code), which is the temporary encoding table in the embodiment of the present invention, where the dictionary table is used to store the encoding range and the corresponding relationship between the number of sub-levels and the encoding.
After receiving the newly added directory data and the temporary encoding table, step 602 is performed.
Step 602, traversing the newly added directory data.
In the embodiment of the invention, after the information management platform synchronizes the newly added catalog data from the visual network monitoring and networking management scheduling system, the information management platform can traverse each catalog according to the length ordering of the newly added catalog data and judge whether the corresponding mapping code of the area corresponding to the newly added catalog data exists in the current temporary coding table.
After traversing the newly added directory data, step 603 is performed.
Step 603, under the condition that the new added directory data is received and the mapping code corresponding to the new added directory data does not exist in the temporary coding table, the mapping code corresponding to the parent directory and the number of child directory which are in the same child level with the new added directory data under the parent directory are obtained.
In the embodiment of the invention, when the mapping code corresponding to the newly added catalog data does not exist in the temporary code table, the information management platform can further judge whether the newly added catalog data exists in a parent catalog, acquire the mapping code corresponding to the parent catalog and recursively return the corresponding mapping code under the condition that the newly added catalog data exists in the parent catalog, and acquire the number of child catalog of the same level as the newly added catalog data under the parent catalog.
When the new directory data is received and the mapping code corresponding to the new directory data does not exist in the temporary coding table, step 604 is executed after the mapping code corresponding to the parent directory and the number of child directories of the same child level as the new directory data in the parent directory are obtained.
Step 604, based on the number of sub-level directories, obtaining the mapping codes of the newly added directory data under the sub-level directories.
Referring to fig. 3, the information management platform queries from the temporary coding table, finds the corresponding two-bit code in the m-area-codable table as the mapping code of the child level corresponding to the new directory data according to the number of child level directories of the same child level as the new directory data under the parent level directory.
After the mapped encoding of the newly added directory data under the sub-level directory is obtained based on the sub-level directory number, step 605 is performed.
Step 605, setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data.
In the embodiment of the invention, the information management platform takes the mapping code corresponding to the recursively returned parent directory and the mapping code under the child directory as the target mapping code corresponding to the newly added directory data.
After setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data, step 605 is performed.
Step 606, storing the target mapping code into a mapping code table corresponding to the newly added directory data.
After setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data, the information management platform stores the target mapping code into a mapping code table corresponding to the newly added directory data.
For example, the provincial Xinjiang region code is 65, the municipal Urufirluk region code is 6501, county level: the mountain area code is 650101, and the head river area code is 650102. If the mapping code of the Tianshan region is required at this time, firstly, finding the parent level of the Tianshan region, finding that the Wuruzu has the upper level, continuously finding Xinjiang, finding that the Xinjiang has no parent level, then the mapping code of the Xinjiang is 65, storing (65, null, 65) in a temporary mapping table, and then solving the following method of the Wuruzu code: firstly, checking the subdirectory number of a 65-bit parent directory in a temporary mapping table, then searching a corresponding code in a temporary coding table, and if the code is AA, connecting the AA with the code 65 of Xinjiang, and if the code is 65AA, the code of Wuluji is 65AA.
In step 607, when the mapping code corresponding to the newly added directory data exists in the temporary coding table, the mapping code is set as the target mapping code and stored in the directory table corresponding to the newly added directory data.
In the present invention, referring to fig. 3, when there is a map code corresponding to newly added directory data in the temporary code table, the information management platform may return the code of the map and update the map code into the directory table (m-org).
In step 608, when the parent directory does not exist, the code corresponding to the new directory data is set as the target mapping code and stored in the directory table corresponding to the new directory data.
In the invention, when the father-level directory does not exist, the code corresponding to the newly added directory data is set as the target mapping code, the newly added directory data and the target mapping code thereof are updated in the temporary coding table, and the target mapping code is stored in the directory table.
Fig. 4 shows a schematic diagram of catalog data transmission provided by the embodiment of the present invention, as shown in fig. 4, the one-machine one-file information management platform 01 may include a data acquisition module 011 and a catalog sorting module 012, where the data acquisition module 011 of the one-machine one-file information management platform 01 may acquire new catalog data from the internet-of-view monitoring and networking management scheduling system 02, store the new catalog data in a temporary catalog table of the one-file platform database 03, then call the catalog sorting module 012, obtain a mapping catalog for each catalog, update the mapping catalog into a new catalog table, and obtain a mapping coding table of the new catalog.
In the embodiment of the invention, the information management platform can receive the newly added catalog data and the temporary coding table, traverse the newly added catalog data, acquire the mapping code corresponding to the parent catalog and the number of child catalog of the same level as the newly added catalog data under the parent catalog under the condition that the mapping code corresponding to the newly added catalog data does not exist in the temporary coding table, acquire the mapping code of the newly added catalog data under the child catalog based on the number of child catalog, set the mapping code corresponding to the parent catalog and the mapping code corresponding to the child catalog as the target mapping code corresponding to the newly added catalog data, set the mapping code as the target mapping code to be stored in the catalog table corresponding to the newly added catalog data under the condition that the mapping code corresponding to the newly added catalog does not exist in the temporary coding table, and set the coding corresponding to the newly added catalog as the target mapping code to be stored in the catalog corresponding to the newly added catalog under the condition that the parent catalog does not exist in the condition that the mapping code corresponding to realize the recoding of the catalog, and the random number and the range of the mapping code can be expanded to avoid random number of the catalog when the new catalog is generated.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, a block diagram of a code allocation apparatus according to a third embodiment of the present invention is shown, where the code allocation apparatus 700 may be applied to an information management platform, and the apparatus specifically includes:
a first obtaining module 701, configured to obtain, when new directory data is received and a mapping code corresponding to the new directory data does not exist in the temporary coding table, a mapping code corresponding to a parent directory and the number of child directories in the same level as the new directory data in the parent directory;
a second obtaining module 702, configured to obtain, based on the number of sub-level directories, a mapping code of the newly added directory data under the sub-level directory;
the first setting module 703 is configured to set the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data.
Optionally, the apparatus further comprises:
and the storage module is used for storing the target mapping codes into a mapping code table corresponding to the newly added directory data.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the newly added catalog data and the temporary coding table;
and the traversing module is used for traversing the newly added directory data.
Optionally, the apparatus further comprises:
and the storage module is used for setting the mapping code as the target mapping code and storing the target mapping code into the directory table corresponding to the newly added directory data under the condition that the mapping code corresponding to the newly added directory data exists in the temporary coding table.
Optionally, the apparatus further comprises:
and the second setting module is used for setting the codes corresponding to the newly added directory data as target mapping codes and storing the target mapping codes into a directory table corresponding to the newly added directory data under the condition that the parent directory does not exist.
In the embodiment of the invention, the information management platform can acquire the mapping code corresponding to the parent directory and the number of child directories of the same child level as the newly added directory data under the parent directory under the condition that the newly added directory data is received by the first acquisition module and the mapping code corresponding to the newly added directory data does not exist in the temporary coding table, acquire the mapping code corresponding to the parent directory and the mapping code corresponding to the child level under the child level directory by the second acquisition module based on the number of child directories, and finally set the mapping code corresponding to the parent directory and the mapping code corresponding to the child level as the target mapping code corresponding to the newly added directory data by the first setting module, so that the recoding of the directory can be realized, the bit number and the range of the coding can be expanded randomly, and the condition that the directory is disordered due to random coding when the newly added directory data occurs is avoided.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the code allocation method as described above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for causing a processor to execute the code allocation method.
The video networking is an important milestone for network development, is a real-time network, can realize real-time transmission of high-definition videos, and pushes numerous internet applications to high-definition videos, and the high definition faces.
The video networking adopts a real-time high-definition video exchange technology, and can integrate all required services such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delay television, network teaching, live broadcast, VOD on demand, television mail, personal record (PVR), intranet (self-processing) channel, intelligent video playing control, information release and other tens of services into one system platform, and realize high-definition quality video playing through television or computer.
For a better understanding of embodiments of the present invention, the following description of the video networking is presented to one skilled in the art:
the partial techniques applied by the video networking are as follows:
network technology (Network Technology)
The network technology innovation of the internet of vision improves on the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (Circuit Switching), the technology of video networking employs Packet Switching to meet Streaming requirements. The video networking technology has the flexibility, simplicity and low price of packet switching, and simultaneously has the quality and the safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Exchange technology (Switching Technology)
The video network adopts the two advantages of the asynchronization and the packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has full-network end-to-end seamless connection, and is directly connected with the user terminal to directly bear the IP data packet. The user data does not need any format conversion in the whole network. The video networking is a higher-level form of Ethernet, is a real-time exchange platform, can realize real-time transmission of full-network large-scale high-definition video which cannot be realized by the current Internet, and pushes numerous 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 server in the traditional sense, the streaming media transmission is based on connection-oriented basis, the data processing capability is irrelevant to the flow and the 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 hundred times than that of a traditional server.
Accumulator technology (Storage Technology)
The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system for adapting to the ultra-large capacity and ultra-large flow media content, the program information in the server instruction is mapped to a specific hard disk space, the media content does not pass through the server any more, the media content is instantly and directly delivered to a user terminal, and the waiting time of the user is generally less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical motion of magnetic head seek of the hard disk, the resource consumption only accounts for 20% of the IP Internet of the same grade, but the concurrent flow which is 3 times greater 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 networking thoroughly structurally solves the network security problem puzzling the Internet by means of independent permission of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs or firewalls, eliminates attacks of hackers and viruses, and provides a structural carefree security network for users.
Service innovation technology (Service Innovation Technology)
The unified video platform fuses services with transmissions, whether a single user, private network users or a network aggregate, but automatically connects at a time. The user terminal, the set top box or the PC is directly connected to the unified video platform, so that various multimedia video services are obtained. The unified video platform adopts a menu type table allocation mode to replace the traditional complex application programming, and can realize complex application by using very few codes, thereby realizing 'infinite' new business innovation.
Networking of the video networking is as follows:
the video networking is a centrally controlled network structure, which may be of the tree network, star network, ring network, etc., but on the basis of this there is a need for a centralized control node in the network to control the whole network.
As shown in fig. 6, the view network is divided into an access network and a metropolitan area network.
The devices of the access network part can be mainly divided into 3 classes: node server, access switch, terminal (including various set-top boxes, code boards, memories, etc.). The node server is connected with an access switch, which can be connected with a plurality of terminals and can be connected with an Ethernet.
The node server is a node with a centralized control function in the access network, and can control the access switch and the terminal. The node server may be directly connected to the access switch or may be directly connected to the terminal.
Similarly, devices of the metropolitan area network portion can also be classified into 3 categories: metropolitan area server, node switch, 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 the node server of the access network part, namely the node server belongs to the access network part and also belongs to the metropolitan area network part.
The metropolitan area server is a node with centralized control function in the metropolitan area network, and can control a node switch and a node server. The metropolitan area server may be directly connected to the node switch or directly connected to the node server.
Thus, the whole video network is a hierarchical centralized control network structure, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star, ring and the like.
The access network part can be vividly called as a unified video platform (part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform can be interconnected and intercommunicated through metropolitan area and wide area video networking.
View networking device classification
1.1 devices in the visual network according to the embodiment of the present invention may be mainly classified into 3 types: a server, a switch (including an ethernet gateway), a terminal (including various set-top boxes, a code board, a memory, etc.). The view networking can be divided into metropolitan area networks (or national networks, global networks, etc.) and access networks as a whole.
1.2 devices in the access network part can be mainly classified into 3 classes: node server, access switch (including Ethernet gateway), terminal (including various set-top boxes, code board, memory, etc.).
The specific hardware structure of each access network device is as follows:
the node server:
as shown in fig. 7, the device mainly comprises a network interface module 201, a switching engine module 202, a CPU module 203 and a disk array module 204;
wherein, 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 packet guiding information; and stores the packet into a corresponding queue of the packet buffer 206 according to the packet's guiding information; discarding if the queue of the packet buffer 206 is nearly full; the switch engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly controls the hard disk, including initializing, reading and writing operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with access switches and terminals (not shown), configuration of the address table 205 (including a downstream protocol packet address table, an upstream protocol packet address table, and a data packet address table), and configuration of the disk array module 204.
Access switch:
as shown in fig. 8, mainly includes a network interface module (a downstream network interface module 301, an upstream network interface module 302), a switching engine module 303, and a CPU module 304;
wherein, the packet (uplink data) coming in from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), source Address (SA), packet type, and packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id), and enters the switching engine module 303, otherwise, discards the packet; the packets (downstream data) coming in from the upstream network interface module 302 enter the switching engine module 303; the data packet coming in from the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up an address table 306 on an incoming packet, thereby obtaining packet guiding information; if a packet entering the switching engine module 303 is sent 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 a stream identifier (stream-id); discarding if the queue of the packet buffer 307 is nearly full; if the packet entering the switching engine module 303 is not sent from the downlink network interface to the uplink network interface, storing the data packet into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switch engine module 303 polls all packet buffer queues, in two cases in the embodiment of the present invention:
if the queue is sent from the downlink network interface to the uplink network interface, the following conditions are satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not addressed by the downstream network interface to the upstream network interface, the following condition is satisfied for forwarding: 1) The port sending 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 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface 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 rate control module 308.
Ethernet corotation gateway
As shown in fig. 9, the network interface module (downlink network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, packet buffer 407, MAC adding module 409, and MAC deleting module 410 are mainly included.
Wherein, the data packet coming in from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, ethernet MAC SA, ethernet length or frame type, video network destination address DA, video network source address SA, video network packet type and packet length of the data packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC DA, MAC SA, length or frame type (2 byte) are subtracted by the MAC delete module 410 and enter the corresponding receive buffer, otherwise discarded;
the downlink network interface module 401 detects the sending buffer of the port, if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet's internet of view, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet cooperative gateway, and the ethernet length or frametype, and sends.
The function of the other modules in the ethernet corotation gateway is similar to that of the access switch.
And (3) 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/audio encoding/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 classes: node server, node switch, 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. View networking data 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 data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), 256 possibilities are at most provided, the second byte to the sixth byte are metropolitan area network addresses, and the seventh and eighth bytes are access network addresses;
the Source Address (SA) is also composed of 8 bytes (bytes), defined identically to the Destination Address (DA);
the reserved bytes consist of 2 bytes;
the payload portion has different lengths according to the types of the different datagrams, and is 64 bytes if it is various protocol packets, and 32+1024=1056 bytes if it is a unicast packet, and is of course not limited to the above 2 types;
the CRC consists of 4 bytes and its calculation method follows the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of the metropolitan area network is a pattern, there may be 2 or even more than 2 connections between two devices, i.e. there may be more than 2 connections between node switches and node servers, node switches and node switches, node switches and node servers. However, the metropolitan area network address of the metropolitan area network device is unique, and in order to accurately describe the connection relationship between metropolitan area network devices, parameters are introduced in the embodiment of the present invention: a tag to uniquely describe a metropolitan area network device.
The definition of label in this specification is similar to that of MPLS (Multi-Protocol Label Switch, multiprotocol label switching), and assuming that there are two connections between device a and device B, there are 2 labels for packets from device a to device B and 2 labels for packets from device B to device a. The label is split into label and label out, and assuming that the label (in label) of the packet entering the device a is 0x0000, the label (out label) of the packet when leaving the device a may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, that is, the address allocation and label allocation of the metropolitan area network are all led by the metropolitan area server, the node switch and the node server are all passively executed, which is different from the label allocation of the MPLS, which is the result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metropolitan area network mainly includes the following parts:
DA SA Reserved label (Label) Payload CRC
I.e. Destination Address (DA), source Address (SA), reserved bytes (Reserved), labels, payload (PDU), CRC. Wherein the format of the tag may be defined with reference to the following: the tag is 32 bits, with the high 16bit reservation, with only the low 16bit, and its position is between the reserved bytes and payload of the packet.
Based on the above characteristics of the video network, one of the core concepts of the embodiments of the present invention is provided, where the co-rotation server may receive first audio data sent by the wireless image transmission device, send the first audio data to the video network terminal, enable a speaker of the video network terminal to hear the first audio data sent by the wireless image transmission device, receive second audio data returned by the video network terminal according to the first audio data, and finally send the second audio data to the wireless image transmission device, so that the wireless image transmission device may answer the second audio data sent by the speaker of the video network terminal, and may implement voice communication between the video network terminal and the wireless image transmission device.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that 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 invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) 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 device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a code allocation method and apparatus provided by the present invention, and specific examples have been provided herein to illustrate the principles and embodiments of the present invention, the above examples being provided only to assist in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A code allocation method for use with an information management platform, the method comprising:
under the condition that newly added directory data is received and mapping codes corresponding to the newly added directory data do not exist in a temporary coding table, mapping codes corresponding to a parent directory and the number of child directories which are in the same level with the newly added directory data under the parent directory are obtained;
based on the number of the sub-level directories, acquiring mapping codes of the newly added directory data under the sub-level directories;
and setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory as the target mapping code corresponding to the newly added directory data.
2. The method of claim 1, wherein after setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data, the method further comprises:
and storing the target mapping code into a mapping code table corresponding to the newly added directory data.
3. The method of claim 1, wherein prior to the obtaining the mapped code corresponding to the parent directory and the number of child directories under the parent directory that are at a same level as the newly added directory data, the method further comprises:
receiving newly added directory data and a temporary coding table;
traversing the newly added directory data.
4. The method of claim 1, wherein after setting the mapping code corresponding to the parent directory and the mapping code corresponding to the child directory to the target mapping code corresponding to the newly added directory data, the method further comprises:
and setting the mapping code as a target mapping code and storing the target mapping code into a directory table corresponding to the new directory data under the condition that the mapping code corresponding to the new directory data exists in the temporary coding table.
5. The method of claim 1, wherein after obtaining the mapping code corresponding to a parent directory and the number of child directories under the parent directory that are at a same level as the newly added directory data, the method further comprises:
and setting the code corresponding to the new added catalog data as a target mapping code and storing the target mapping code into the catalog corresponding to the new added catalog data under the condition that the parent catalog does not exist.
6. A code distribution apparatus for use with an information management platform, the apparatus comprising:
the first acquisition module is used for acquiring the mapping code corresponding to the parent directory and the number of child directories which are in the same level with the new directory data under the parent directory under the condition that the new directory data is received and the mapping code corresponding to the new directory data does not exist in the temporary coding table;
the second acquisition module is used for acquiring the mapping codes of the newly added directory data under the sub-level directory based on the number of the sub-level directories;
and the first setting module is used for setting the mapping code corresponding to the parent-level directory and the mapping code corresponding to the child-level directory as the target mapping code corresponding to the newly added directory data.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the storage module is used for storing the target mapping code into a mapping code table corresponding to the newly added directory data.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the receiving module is used for receiving the newly added catalog data and the temporary coding table;
and the traversing module is used for traversing the newly added directory data.
9. An electronic device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the code allocation method of any one of claims 1 to 5.
10. A computer readable storage medium storing a computer program for causing a processor to perform the code allocation method of any one of claims 1 to 5.
CN202010457970.XA 2020-05-26 2020-05-26 Code allocation method and device Active CN111711788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457970.XA CN111711788B (en) 2020-05-26 2020-05-26 Code allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457970.XA CN111711788B (en) 2020-05-26 2020-05-26 Code allocation method and device

Publications (2)

Publication Number Publication Date
CN111711788A CN111711788A (en) 2020-09-25
CN111711788B true CN111711788B (en) 2024-03-15

Family

ID=72538313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457970.XA Active CN111711788B (en) 2020-05-26 2020-05-26 Code allocation method and device

Country Status (1)

Country Link
CN (1) CN111711788B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550371A (en) * 2016-01-27 2016-05-04 华中科技大学 Big data environment oriented metadata organization method and system
CN110619066A (en) * 2019-08-30 2019-12-27 视联动力信息技术股份有限公司 Information acquisition method and device based on directory tree

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2486462B (en) * 2010-12-16 2019-04-24 Maidsafe Found Distributed file system
US20180189124A1 (en) * 2017-01-03 2018-07-05 International Business Machines Corporation Rebuilding the namespace in a hierarchical union mounted file system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550371A (en) * 2016-01-27 2016-05-04 华中科技大学 Big data environment oriented metadata organization method and system
CN110619066A (en) * 2019-08-30 2019-12-27 视联动力信息技术股份有限公司 Information acquisition method and device based on directory tree

Also Published As

Publication number Publication date
CN111711788A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN109889780B (en) Data synchronization method and device
CN109474715B (en) Resource configuration method and device based on video network
CN109617956B (en) Data processing method and device
CN109672857B (en) Information processing method and device for monitoring resources
CN108965226B (en) Data acquisition method and device based on video network
CN109660753B (en) Resource synchronization method and device
CN109246135B (en) Method and system for acquiring streaming media data
CN110557319B (en) Message processing method and device based on video network
CN110619066B (en) Information acquisition method and device based on directory tree
CN110650313B (en) Catalog display method and device for monitoring resources and storage medium
CN109768957B (en) Method and system for processing monitoring data
CN109151061B (en) Data storage method and device
CN110839142B (en) Monitoring directory sharing method and device
CN110557608B (en) Resource monitoring method, device and computer readable storage medium
CN110022500B (en) Packet loss processing method and device
CN110134892B (en) Loading method and system of monitoring resource list
CN109743360B (en) Information processing method and device
CN110389771B (en) Upgrading method and system of video networking client
CN110109808B (en) Log processing method and device
CN111711788B (en) Code allocation method and device
CN110688532B (en) Transaction management method and device
CN110381029B (en) Monitoring resource synchronization method and device
CN110557611B (en) Information synchronization method, device and storage medium
CN110166840B (en) Service processing method, system and device
CN110475160B (en) Method and device for transmitting video data across 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