CN111061517B - Method and device for generating configuration file, electronic equipment and storage medium - Google Patents

Method and device for generating configuration file, electronic equipment and storage medium Download PDF

Info

Publication number
CN111061517B
CN111061517B CN201911032913.0A CN201911032913A CN111061517B CN 111061517 B CN111061517 B CN 111061517B CN 201911032913 A CN201911032913 A CN 201911032913A CN 111061517 B CN111061517 B CN 111061517B
Authority
CN
China
Prior art keywords
autonomous
configuration
server
data
configuration 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
CN201911032913.0A
Other languages
Chinese (zh)
Other versions
CN111061517A (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 CN201911032913.0A priority Critical patent/CN111061517B/en
Publication of CN111061517A publication Critical patent/CN111061517A/en
Application granted granted Critical
Publication of CN111061517B publication Critical patent/CN111061517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method, a device, electronic equipment and a storage medium for generating a configuration file. The method is applied to the video networking and comprises the following steps: acquiring a configuration diagram of an autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network; analyzing the configuration diagram to obtain configuration data; and carrying out data modeling on the configuration data to generate configuration files, wherein the configuration files of each autonomous server are unique in the video networking. The configuration file can be conveniently and rapidly generated by the configuration file generation method, when the configuration file is used for updating the configuration file in the autonomous server, the configuration file updating operation of the autonomous server can be obviously simplified, the manpower resources are saved, the updating efficiency of the autonomous server is improved, and when the number of the autonomous servers is large, the effect of improving the updating efficiency of the autonomous server is particularly remarkable.

Description

Method and device for generating configuration file, electronic equipment and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and apparatus for generating a configuration file, an electronic device, and a storage medium.
Background
In the video networking, the operations of adding, deleting and checking the control, the terminal and each layer of autonomous cascade can be realized through modifying the json type configuration file in the autonomous server. However, when it is necessary to modify the configuration file in the autonomous server, the related art can only adopt a scheme of manually modifying the configuration file of each autonomous server. This solution has the following drawbacks: firstly, the modification process of the configuration file is complicated in operation, and when the configuration files of all autonomous servers in the whole autonomous environment are required to be updated, a large amount of human resources are required to be consumed; secondly, the modification work of the configuration file is required to be executed by an operator who grasps certain professional knowledge, and a great deal of related knowledge is required to be additionally learned by the operator, so that the modification difficulty of the configuration file is high, and the update operation of the configuration file of the autonomous server is not flexible enough.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for generating a configuration file, which aim to simplify the updating operation of the configuration file of an autonomous server and promote the flexibility of the updating operation.
An embodiment of the present application provides, in a first aspect, a method for generating a configuration file, where the method is applied to an internet of view, including:
Acquiring a configuration diagram of an autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network;
analyzing the configuration diagram to obtain configuration data;
and carrying out data modeling on the configuration data to generate configuration files, wherein the configuration files of each autonomous server are unique in the video networking.
Optionally, the configuration data includes a title and a tag corresponding to the title;
analyzing the configuration diagram to obtain configuration data, including:
extracting a title in the configuration diagram, wherein the title comprises: IP value, branch control number value, analog device number value, entity device number value, cascade device number value and boundary route device number value of the autonomous server;
obtaining labels corresponding to the titles, wherein the labels are used for representing video networking equipment to which the titles belong;
the label corresponding to the IP value of the autonomous server is an autonomous server, the label corresponding to the sub-control number value is a sub-control, the label corresponding to the analog device number value is an analog device, the label corresponding to the entity device number value is an entity device, the label corresponding to the cascade device number value is a cascade device, and the label corresponding to the boundary routing device number value is a boundary routing device.
Optionally, performing data modeling on the configuration data to generate a configuration file, including:
determining the number N of the autonomous servers, and dividing the configuration data into N groups of autonomous configuration data;
and carrying out data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, wherein each group of configuration files uniquely corresponds to one autonomous server in the N autonomous servers.
Optionally, determining the number N of autonomous servers, dividing the configuration data into N groups of autonomous configuration data, includes:
aiming at each autonomous server in N autonomous servers, determining titles and labels corresponding to the autonomous server, sub-control, simulation equipment, entity equipment, cascading equipment and boundary routing equipment under the autonomous server as a group of autonomous configuration data until N groups of autonomous configuration data are obtained by dividing;
performing data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, wherein the data modeling comprises the following steps:
and writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
Optionally, obtaining a configuration diagram of the autonomous server includes:
newly building a configuration diagram in a configuration diagram editing window;
generating a topological graph of the autonomous server according to the edit operation of a plurality of components provided by a user through the configuration graph edit window on the newly-built configuration graph;
and when receiving a configuration diagram generation instruction triggered by a user, converting the topological diagram into the configuration diagram of the autonomous server.
Optionally, after parsing the configuration diagram to obtain configuration data, the method further includes:
verifying the validity of the configuration data;
and when the configuration data is illegal, sending out alarm information.
Optionally, the method further comprises:
when receiving an update instruction triggered by a user, acquiring an update configuration file interface of the autonomous server;
and sending the configuration file to the autonomous server through the update configuration file interface so as to update the configuration file of the autonomous server.
A second aspect of the embodiments of the present application provides an apparatus for generating a configuration file, where the apparatus is applied to an internet of view, including:
the first acquisition module is used for acquiring a configuration diagram of the autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network;
The analysis module is used for analyzing the configuration diagram to obtain configuration data;
and the data modeling module is used for carrying out data modeling on the configuration data to generate configuration files, and the configuration file of each autonomous server is unique in the video networking.
Optionally, the configuration data includes a title and a tag corresponding to the title; the parsing module includes:
the title extracting module is used for extracting a title in the configuration diagram, and the title comprises: IP value, branch control number value, analog device number value, entity device number value, cascade device number value and boundary route device number value of the autonomous server;
the label acquisition module is used for acquiring labels corresponding to the titles, and the labels are used for representing the video networking equipment to which the titles belong;
the label corresponding to the IP value of the autonomous server is an autonomous server, the label corresponding to the sub-control number value is a sub-control, the label corresponding to the analog device number value is an analog device, the label corresponding to the entity device number value is an entity device, the label corresponding to the cascade device number value is a cascade device, and the label corresponding to the boundary routing device number value is a boundary routing device.
Optionally, the data modeling module includes:
the determining module is used for determining the number N of the autonomous servers and dividing the configuration data into N groups of autonomous configuration data;
the generating module is used for carrying out data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, and each group of configuration files uniquely corresponds to one autonomous server in the N autonomous servers.
Optionally, the determining module includes:
a determining submodule, configured to determine, for each autonomous server of the N autonomous servers, a group of autonomous configuration data corresponding to the autonomous server, a sub-control, a simulation device, an entity device, a cascading device, and a border routing device under the autonomous server, until N groups of autonomous configuration data are obtained by dividing;
the generation module comprises:
the generating sub-module is used for writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
Optionally, the first acquisition module includes:
the new module is used for newly building the configuration diagram in the configuration diagram editing window;
The topology map generation module is used for generating a topology map of the autonomous server according to the edit operation of the plurality of components provided by the user through the configuration map edit window on the newly-built configuration map;
and the conversion module is used for converting the topological graph into the configuration graph of the autonomous server when receiving a configuration graph generation instruction triggered by a user.
Optionally, the apparatus further comprises:
the verification module is used for verifying the validity of the configuration data;
and the alarm module is used for sending alarm information when the configuration data is illegal.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring an update configuration file interface of the autonomous server when receiving an update instruction triggered by a user;
and the sending module is used for sending the configuration file to the autonomous server through the update configuration file interface so as to update the configuration file of the autonomous server.
A third aspect of the embodiments of the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed implements the steps of the method described in the first aspect of the present application.
A fourth aspect of the embodiments provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs steps in a method as described in the first aspect of the application.
The application provides a method for generating a configuration file, by which, when generating the configuration file of an autonomous server, a configuration diagram of the autonomous server is firstly obtained; then analyzing the configuration graph to obtain configuration data (including a title and a label corresponding to the title); and modeling the configuration data so as to automatically generate a configuration file corresponding to the autonomous server. The application provides a method for generating configuration files through a configuration diagram, the configuration files can be generated conveniently and rapidly, when the configuration files are used for updating the configuration files in an autonomous server, the updating operation of the configuration files of the autonomous server can be obviously simplified, manpower resources are saved, the updating efficiency of the autonomous server is improved, and when the number of the autonomous servers is large, the effect of improving the updating efficiency of the autonomous server is particularly remarkable.
Secondly, when the configuration file is generated by using the configuration file generation method, an operator does not need to actively learn related technical knowledge, when a certain visual networking device in the visual networking needs to be subjected to an operation of adding, deleting and checking, the configuration file can be automatically generated by using the modified configuration file only by the operator as the configuration diagram reflects the network connection relation of the autonomous server in the visual networking, so that the configuration file generation mode is more flexible, and when the configuration file is used for updating the configuration file in the autonomous server, the convenience of the operation of updating the configuration file of the autonomous server can be further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment shown in an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method of generating a configuration file according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of generating a configuration map according to an embodiment of the present application;
FIG. 3A is a schematic diagram of an autonomous server connection relationship according to an embodiment of the present application;
FIGS. 3A 1-3A 6 are partial schematic structural diagrams of a configuration diagram of an autonomous server according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of resolving a configuration map according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method of resolving a configuration map according to an embodiment of the present application;
FIG. 6 is a general flow diagram illustrating a method of generating a configuration file according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an apparatus for generating a configuration file according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 9 is a networking schematic of a visual network of the present application;
FIG. 10 is a schematic diagram of a hardware architecture of a node server according to the present application;
FIG. 11 is a schematic diagram of a hardware architecture of an access switch of the present application;
fig. 12 is a schematic hardware structure of an ethernet corotation gateway according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the invention provides one of core concepts based on the characteristics of the internet of vision (for a detailed description of the internet of vision, please see below), namely: firstly, acquiring a configuration diagram of an autonomous server according to a video networking protocol, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the video networking; and then analyzing the configuration diagram to obtain configuration data, and carrying out data modeling on the obtained configuration data to generate configuration files, wherein the generated configuration files of each autonomous server are unique in the video networking. By the method for generating the configuration file, the configuration file of the autonomous server can be quickly and conveniently generated, and further the problems existing in the related art when the configuration file of the autonomous server is modified are overcome.
FIG. 1 is a schematic diagram of an implementation environment as shown in an embodiment of the present application. In this implementation environment, a control terminal is communicatively connected to a plurality of autonomous servers, wherein an update autonomous profile application is installed in the control terminal.
The embodiment of the application provides a method for generating a configuration file, which is applied to a control terminal in fig. 1. FIG. 2 is a flow chart illustrating a method of generating a configuration file according to an embodiment of the present application. Referring to fig. 2, the method for generating a configuration file of the present application includes the following steps:
step S11: and acquiring a configuration diagram of the autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network.
Fig. 3 is a flow chart illustrating a method of generating a configuration diagram according to an embodiment of the present application. Referring to fig. 3, specifically, the step S11 may include:
step S111: newly building a configuration diagram in a configuration diagram editing window;
step S112: generating a topological graph of the autonomous server according to the edit operation of a plurality of components provided by a user through the configuration graph edit window on the newly-built configuration graph;
step S113: and when receiving a configuration diagram generation instruction triggered by a user, converting the topological diagram into the configuration diagram of the autonomous server.
In the embodiment of the application, the updated autonomous configuration file application program installed in the control terminal can provide a function of drawing a configuration diagram, and the format of the drawn configuration diagram is an xmind format. The user can draw the configuration diagram by updating the configuration diagram editing window provided by the autonomous configuration file application program, and the specific drawing process is as follows:
first, a configuration diagram is newly built in a configuration diagram editing window, and then a plurality of components provided through a component column or a component library of the editing window, for example: the topology of the autonomous server is built by various lines, basic shapes and the like, and when the topology is built specifically, a network structure diagram (namely a connection relation diagram among the autonomous servers of each level) of the autonomous server in the visual network can be referred to, as shown in fig. 3A, and fig. 3A is a schematic diagram of the connection relation of the autonomous server in an embodiment of the present application. When each component is specifically edited, one of the key steps is to input the title of each component and the label corresponding to the title; when all the components are edited, a configuration diagram generation instruction is triggered by clicking a submit button, and when the configuration diagram generation instruction is received by the application program for updating the autonomous configuration file, the built topology diagram of the autonomous server is automatically converted into the configuration diagram of the autonomous server.
In the embodiment of the application, besides drawing the configuration diagram of the autonomous server by updating the autonomous configuration file application program, the configuration diagram of the autonomous server can also be drawn by professional xmind software, and the application is not particularly limited how to draw the configuration diagram of the autonomous server.
In the embodiment of the present application, the generated configuration diagram may be shown in fig. 3A1 to 3A6, and fig. 3A1 to 3A6 are schematic partial structures of the configuration diagram of an autonomous server according to an embodiment of the present application. In connection with fig. 3A, the autonomous server comprises four tiers, namely autonomous 4, autonomous 3, autonomous 2, and autonomous 1, under each of which there may be one or more autonomous servers, such as: below the autonomous 4 layer there is an autonomous server, namely: 4.25.12.101 autonomous, under layer 3, there is one 4.25.12.103 autonomous, under layer 2, there are 4.25.12.111 autonomous, 4.25.12.114 autonomous, 4.25.12.102 autonomous, and 4.25.12.104 autonomous, and under layer 1, there are 4.25.12.112 autonomous, 4.25.12.113 autonomous, 4.25.12.115 autonomous, 4.25.12.105 autonomous, 4.25.12.106 autonomous, 4.25.12.107 autonomous, and 4.25.12.108 autonomous, there are 7 autonomous servers.
Specifically, FIG. 3A1 is an enlarged view of a portion between autonomous 4 and 3 layers (i.e., 4.25.12.101 to 4.25.12.103); FIG. 3A2 is an enlarged view of a portion between autonomous 3 and autonomous 2 layers (i.e., 4.25.12.103 through 4.25.12.111, 4.25.12.114, 4.25.12.102, and 4.25.12.104); fig. 3A3 is an enlarged view of a portion of an autonomy layer 2 between 4.25.12.111 autonomy and autonomy layer 1 (i.e., 4.25.12.111 to 4.25.12.112, 4.25.12.113); FIG. 3A4 is an enlarged view of a portion of an autonomy layer 2 between 4.25.12.114 autonomy and autonomy layer 1 (i.e., 4.25.12.114 to 4.25.12.115); fig. 3A5 is an enlarged view of a portion of an autonomy layer 2 between 4.25.12.102 autonomy and autonomy layer 1 (i.e., 4.25.12.102 to 4.25.12.105, 4.25.12.106); fig. 3A6 is an enlarged view of a portion of an autonomous layer 2 between 4.25.12.104 autonomous and autonomous layer 1 (i.e., 4.25.12.104 to 4.25.12.107, 4.25.12.108).
Step S12: and analyzing the configuration diagram to obtain configuration data.
In the embodiment of the present application, the configuration data includes a title and a tag corresponding to the title. Fig. 4 is a flow chart illustrating a method of resolving a configuration diagram according to an embodiment of the present application. Referring to fig. 4, specifically, step S12 may include:
step S121: extracting a title in the configuration diagram, wherein the title comprises: IP value, branch control number value, analog device number value, entity device number value, cascade device number value, and boundary routing device number value of the autonomous server.
In this embodiment of the present application, one or more of a sub-control, a cascade device, a border routing device, a simulation device, and an entity device is connected under each autonomous server, where the autonomous server and the connected sub-control, cascade device, border routing device, simulation device, and entity device form an autonomous domain (the autonomous server in the autonomous domain is unique and is used for managing and controlling the sub-control, cascade device, border routing device, simulation device, and entity device in the autonomous domain).
In the embodiment of the application, the IP value, the analog device number value, the entity device number value, and the cascade device number value of the autonomous server in the header are unique in the whole video network, and the fractional control number value and the border routing device number value in the header are different in the same autonomous domain and may be the same in different autonomous domains.
Taking fig. 3A1 as an example, the extracted title includes: "4.25.12.101 autonomous", "70001", "s1[10001-10250]", "sd1[10251]", "70002", "00100", "80001", "4.25.12.103 autonomous", wherein "4.25.12.101 autonomous" and "4.25.12.103 autonomous" are IP values of autonomous servers, "70001 [10001-10250]" are analog device number values, "sd1[10251]" is a physical device number value, "00100" is a tandem device number value, "80001" is a border routing device number value.
In the embodiment of the application, in order to ensure the normal operation of each device in the video networking, the IP value of each autonomous server is unique, and the number values of each sub-control, analog device, entity device, cascade device and boundary routing device should also accord with the corresponding rules, so as to avoid the influence of address conflict between each device on the normal video networking service.
Step S122: obtaining labels corresponding to the titles, wherein the labels are used for representing video networking equipment to which the titles belong;
in an embodiment of the present application, a video networking device includes: autonomous server, sub-control, analog device, entity device, cascade device, and boundary routing device. The cloud management system is divided into servers, namely micro cloud servers in autonomous clouds (autonomous domains) of the video networking.
The label corresponding to the IP value of the autonomous server is an autonomous server, the label corresponding to the sub-control number value is a sub-control, the label corresponding to the analog device number value is an analog device, the label corresponding to the entity device number value is an entity device, the label corresponding to the cascade device number value is a cascade device, and the label corresponding to the boundary routing device number value is a boundary routing device.
Taking fig. 3A1 as an example, a label corresponding to "4.25.12.101 autonomy" is an autonomy server, a specific value is "autonomy_4 layer", "70001" and "70002" are sub-control, a specific value is "sub-control", "s1[10001-10250]" is a simulation device, a specific value is "simulator", "sd1[10251]" is a physical device, a specific value is "physical device", "00100" is a cascade device, a specific value is "cascade device", "80001" is a border routing device, and a specific value is "border routing". The boundary routing device "80001" should belong to an autonomous domain where the autonomous server "4.25.12.103 autonomy" is located, and not to an autonomous domain where the autonomous server "4.25.12.101 autonomy" is located. Similarly, in fig. 3A2, the border routing apparatus "80001" connected to the autonomous server "4.25.12.111" should belong to the autonomous domain where the autonomous server "4.25.12.111" is located, the border routing apparatus "80001" connected to the autonomous server "4.25.12.114" should belong to the autonomous domain where the autonomous server "4.25.12.114" is located, and so on.
Step S13: and carrying out data modeling on the configuration data to generate configuration files, wherein the configuration files of each autonomous server are unique in the video networking.
In the embodiment of the application, after all the configuration data are analyzed from the configuration diagram, the configuration data can be subjected to data modeling through a modeling tool provided by an updating autonomous configuration file application program installed in the control terminal, and a configuration file is generated. In the video networking, each autonomous server is different, and the devices connected under the autonomous server are also different, so that the network connection structure formed by each autonomous server is different, and thus, the autonomous domain where different autonomous servers are located is different, and the configuration file corresponding to the autonomous domain is also different. In the embodiment of the present application, the configuration file corresponding to each autonomous domain is stored in an autonomous server in the autonomous domain.
Fig. 5 is a flow chart illustrating a method of resolving a configuration diagram according to an embodiment of the present application. Referring to fig. 5, specifically, step S13 may include:
step S131: and determining the number N of the autonomous servers, and dividing the configuration data into N groups of autonomous configuration data.
Specifically, step S131 may be:
and determining titles and labels corresponding to the autonomous server, the sub-control, the simulation equipment, the entity equipment, the cascading equipment and the boundary routing equipment under the autonomous server as a group of autonomous configuration data aiming at each autonomous server in the N autonomous servers until N groups of autonomous configuration data are obtained through division.
In the embodiment of the application, when the configuration data is divided, the configuration data corresponding to a network structure formed between each autonomous server and a plurality of video networking devices connected below the autonomous server is determined as the configuration data of the autonomous domain where the autonomous server is located.
Taking fig. 3A as an example, if the number of autonomous servers is determined to be 13, that is, the value of N is 13, all configuration data needs to be divided into 13 groups of configuration data, so that the configuration file of each autonomous server corresponds to one group of configuration data.
For example, referring to fig. 3A1, configuration data corresponding to an autonomous domain where the autonomous server "4.25.12.101 autonomy" is located includes: autonomous server "4.25.12.101 autonomous", sub-control "70001", simulator "s1[10001-10250]", entity device "sd1[10251]", sub-control "70002" and title and label corresponding to cascade device "00100"; similarly, referring to fig. 3A2, configuration data corresponding to an autonomous domain where the autonomous server "4.25.12.103 autonomous" is located includes: a boundary routing device "80001" (the boundary routing device "80001" is shown in fig. 3 A1) directly connected to the autonomous server "4.25.12.103", the autonomous server "4.25.12.103 autonomous", the sub-control "70001-70006", the simulators "s1[10001-10250] -s6[10001-10250]", the sub-control "70007", the cascade device "00111", the cascade device "00114", the cascade device "00102" and titles and labels corresponding to the cascade device "00104"; by analogy, respective configuration data of the autonomous server "4.25.12.114 autonomous", the autonomous server "4.25.12.115 autonomous", the autonomous server "4.25.12.102 autonomous", the autonomous server "4.25.12.105 autonomous", the autonomous server "4.25.12.106 autonomous", the autonomous server "4.25.12.104 autonomous", the autonomous server "4.25.12.107 autonomous" and the autonomous server "4.25.12.108 autonomous" can be obtained according to fig. 3A4 to A6.
Step S132: and carrying out data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, wherein each group of configuration files uniquely corresponds to one autonomous server in the N autonomous servers.
Specifically, step S132 may be:
and writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
In the embodiment of the application, after the configuration data of each autonomous server is obtained, the configuration data is subjected to data modeling, so that the configuration file in json format corresponding to each autonomous server can be obtained. The preset configuration file code frame is defined with mac_add and device_number, and when configuration data is written, the type of the corresponding title is determined to be an autonomous server or other video networking equipment (including a sub-control, a simulation equipment, an entity equipment, a cascading equipment and a boundary routing equipment) according to the label. If the device is an autonomous server, the IP value is acquired, the corresponding device number is assigned, if the device is other visual networking equipment, the device number is acquired, the corresponding mac add is assigned, and according to the mode, the filling of the configuration file code frame is completed by utilizing the acquired IP value and the device number value of each visual networking equipment. Each autonomous server corresponds to a device_number, each other video networking device corresponds to a mac_add, the mac_add is used for addressing each video networking device, and according to the mac_add, a connection relationship between the autonomous server and the video networking device below the autonomous server can be obtained, for example: the format of mac_add may be 60: f2: ef: XX (XX is the hexadecimal representation of the last three digits of the IP value of the autonomous server) YY (YY is the hexadecimal representation of the last three digits of the subcontrol number of subcontrol M under the autonomous server): ZZ (ZZ is hexadecimal representation of the device number of the sub-control M), wherein 60: f2: ef is in a fixed format. Illustratively, when mac_add is 60: f2: ef:01:01:01, the first viewing networking device s1[10001] under the sub-control "70001" under the autonomous server "4.25.12.101 autonomous" is shown. Therefore, according to the rule, filling of the preset configuration file code frame can be completed by using the configuration data of each autonomous server and each video networking device below the autonomous server, so that the configuration file of the json format of each autonomous server is generated.
In the embodiment of the application, when a configuration file of an autonomous server is generated, firstly, a configuration diagram of an xmind format of the autonomous server is obtained; then analyzing from the configuration diagram to obtain configuration data including a title and a label corresponding to the title; and performing data modeling on the configuration data, namely writing a code frame according to a preset format, so as to automatically generate a configuration file corresponding to the autonomous server. The application provides a method for automatically generating configuration files through an xmind format configuration diagram, the configuration files can be generated conveniently and rapidly, when the configuration files are used for updating the configuration files in an autonomous server, the updating operation of the configuration files of the autonomous server can be obviously simplified, manpower resources are saved, the updating efficiency of the autonomous server is improved, and when the number of the autonomous servers is large, the effect of improving the updating efficiency of the autonomous server is particularly remarkable.
Secondly, when the configuration file is generated by using the configuration file generation method, an operator does not need to actively learn related technical knowledge, when a certain visual networking device in the visual networking needs to be subjected to an operation of adding, deleting and checking, the configuration file can be automatically generated by using the modified configuration file only by the operator as the configuration diagram reflects the network connection relation of the autonomous server in the visual networking, so that the configuration file generation mode is more flexible, and when the configuration file is used for updating the configuration file in the autonomous server, the convenience of the operation of updating the configuration file of the autonomous server can be further improved.
In the embodiment of the present application, after step S12, the following steps may be further included:
verifying the validity of the configuration data;
and when the configuration data is illegal, sending out alarm information.
In the embodiment of the application, after the configuration data is obtained by analyzing the configuration diagram, a link for verifying the configuration data can be further set, so that the accuracy of the configuration data is ensured, and the accuracy of the generated configuration file is further ensured. For example: whether the configuration data has the IP value of the repeated autonomous server or the number value of the repeated equipment (as mentioned above, in the same autonomous domain, the space division number value is unique to the number value of the border routing equipment) can be verified, and the IP value of the repeated autonomous server or the number value of the equipment can cause the address conflict of the related autonomous server or the video networking equipment, so that the subsequent video networking service is disordered.
In the embodiment of the application, after the configuration data is obtained through analysis, a verification link for the configuration data is additionally arranged, and the configuration file of the autonomous server is effectively updated once by ensuring the accuracy of the generated configuration file.
Fig. 6 is a schematic overall flow chart of a method for generating a configuration file according to an embodiment of the present application. Referring to fig. 6, in the embodiment of the present application, after step S13, the following steps may be further included:
step S14, when receiving an update instruction triggered by a user, acquiring an update configuration file interface of the autonomous server;
and step S15, the configuration file is sent to the autonomous server through the update configuration file interface so as to update the configuration file of the autonomous server.
In the embodiment of the present application, the update instruction refers to: an indication of a configuration file of the autonomous server is updated. After generating the configuration file, the user may also issue an update indication through an update autonomous configuration file application installed on the control terminal to update the configuration files in all autonomous servers in the entire autonomous environment (e.g., the autonomous environment shown in fig. 3A).
In the embodiment of the application, the user may trigger the update instruction on the interface of the control terminal through the mouse, may trigger the update instruction on the interface of the control terminal through the gesture, and may even trigger the update instruction through a request for triggering the update instruction sent by the third party platform.
When receiving an update instruction triggered by a user, the update autonomous configuration file application program firstly acquires an update configuration file interface of the autonomous server. For example, in fig. 3A, there are 13 autonomous servers, and then the update profile interfaces of the 13 autonomous servers need to be obtained. And then the configuration file is sent to the corresponding autonomous server through updating the configuration file interface. For example, in fig. 3A, the profile sent through the update profile interface of autonomous server "4.25.12.101 autonomous" should be a profile belonging to autonomous server "4.25.12.101 autonomous".
In the embodiment of the application, an update policy may also be set for updating a configuration file of the autonomous server, for example: the autonomous server to be updated, the update time and the like can be set, wherein the autonomous server to be updated can select all or part of autonomous servers in the whole autonomous environment, and the update time can be self-defined, so that the configuration file of the autonomous server can be updated more flexibly.
In this practical application, the internet of view is a network with a centralized control function, and includes a main control server and a lower network device, where the lower network device includes a terminal, and one of the core concepts of the internet of view is to allocate a table for a downlink communication link of a current service by notifying, by the main control server, a switching device, and then transmit a data packet based on the allocated table.
In the embodiment of the present application, the control terminal and the autonomous servers are deployed in the internet of view, and the communication method for sending the configuration file to each autonomous server through the control terminal may include:
the main control server configures a downlink communication link of the current service;
and transmitting the data packet of the current service sent by the source terminal (i.e. the control terminal in the application) to the target terminal (i.e. the autonomous server in the application) according to the downlink communication link.
In the embodiment of the invention, the configuration of the downlink communication link of the current service comprises the following steps: notifying a switching equipment configuration table related to a downlink communication link of the current service;
further, transmitting according to the downlink communication link includes: the configured table is queried, and the switching device transmits the received data packet through a corresponding port (i.e. an update configuration file interface of the autonomous server).
In particular implementations, the services include unicast communication services and multicast communication services. That is, both multicast communication and unicast communication can be realized by adopting the core concept of the table-allocation-use table.
The internet of view network includes an access network part (described in detail later), in which a main control server is a node server, and a subordinate network device includes an access switch and a terminal.
For unicast communication services in an access network, the step of configuring the downlink communication link of the current service by the master server may include the steps of:
step S11, the main control server obtains the downlink communication link information of the current service according to the service request protocol packet initiated by the source terminal (namely, the control terminal in the application), wherein the downlink communication link information comprises the main control server participating in the current service and the downlink communication port information of the access switch;
step S12, the main control server sets a downlink port guided by the current service data packet in an internal data packet address table according to the downlink communication port information of the main control server; according to the downlink communication port information of the access switch, a port configuration command is sent to the corresponding access switch;
in the substep S13, the access switch sets a downlink port to which the currently served packet is directed in the packet address table according to the port configuration command.
For multicast communication services in an access network, the step of the master server obtaining downlink communication link information for the current service may comprise the sub-steps of:
step S21, the main control server obtains a service request protocol packet which is initiated by a target terminal (namely an autonomous server in the application and applies for multicast communication service, wherein the service request protocol packet comprises service type information, service content information and an access network address of the target terminal; the service content information comprises a service number;
S22, the main control server extracts the access network address of the source terminal from a preset content-address mapping table according to the service number;
step S23, the main control server obtains the multicast address corresponding to the source terminal and distributes the multicast address to the target terminal; and acquiring the communication link information of the current multicast service according to the service type information and the access network addresses of the source terminal and the target terminal.
Through the communication method, the control terminal can send the generated configuration file to the autonomous server and update the configuration file in the corresponding autonomous server.
In the embodiment of the application, after the configuration file is generated, the configuration file can be sent to the corresponding autonomous server through a certain update strategy, so that the update of the corresponding autonomous server is realized. Because the configuration file generation method provided by the application can quickly and conveniently generate the configuration file, compared with the operation of manually and singly modifying the configuration file in the autonomous server by an operator in the related technology, when the configuration file generated in the application is used for updating the configuration file in the autonomous server, the configuration file updating operation of the autonomous server can be obviously simplified, the manpower resource is saved, and the updating efficiency of the autonomous server is improved.
Secondly, when the configuration file is generated by using the configuration file generation method, an operator does not need to actively learn related technical knowledge, when a certain visual networking device in the visual networking needs to be subjected to an operation of adding, deleting and checking, the configuration file can be automatically generated by using the modified configuration file only by the operator as the configuration diagram reflects the network connection relation of the autonomous server in the visual networking, so that the configuration file generation mode is more flexible, and when the configuration file is used for updating the configuration file in the autonomous server, the convenience of the operation of updating the configuration file of the autonomous server can be further improved.
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.
The embodiment of the application also provides a device 700 for generating the configuration file. Fig. 7 is a schematic structural diagram of an apparatus for generating a configuration file according to an embodiment of the present application. Referring to fig. 7, an apparatus 700 for generating a configuration file according to the present application includes:
a first obtaining module 701, configured to obtain a configuration diagram of an autonomous server, where the configuration diagram is generated according to a network structure diagram of the autonomous server in a view networking;
the parsing module 702 is configured to parse the configuration diagram to obtain configuration data;
the data modeling module 703 is configured to perform data modeling on the configuration data to generate configuration files, where each configuration file of the autonomous server is unique in the view network.
Optionally, the configuration data includes a title and a tag corresponding to the title; the parsing module 702 includes:
the title extracting module is used for extracting a title in the configuration diagram, and the title comprises: IP value, branch control number value, analog device number value, entity device number value, cascade device number value and boundary route device number value of the autonomous server;
the label acquisition module is used for acquiring labels corresponding to the titles, and the labels are used for representing the video networking equipment to which the titles belong;
The label corresponding to the IP value of the autonomous server is an autonomous server, the label corresponding to the sub-control number value is a sub-control, the label corresponding to the analog device number value is an analog device, the label corresponding to the entity device number value is an entity device, the label corresponding to the cascade device number value is a cascade device, and the label corresponding to the boundary routing device number value is a boundary routing device.
Optionally, the data modeling module 703 includes:
the determining module is used for determining the number N of the autonomous servers and dividing the configuration data into N groups of autonomous configuration data;
the generating module is used for carrying out data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, and each group of configuration files uniquely corresponds to one autonomous server in the N autonomous servers.
Optionally, the determining module includes:
a determining submodule, configured to determine, for each autonomous server of the N autonomous servers, a group of autonomous configuration data corresponding to the autonomous server, a sub-control, a simulation device, an entity device, a cascading device, and a border routing device under the autonomous server, until N groups of autonomous configuration data are obtained by dividing;
The generation module comprises:
the generating sub-module is used for writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
Optionally, the first obtaining module 701 includes:
the new module is used for newly building the configuration diagram in the configuration diagram editing window;
the topology map generation module is used for generating a topology map of the autonomous server according to the edit operation of the plurality of components provided by the user through the configuration map edit window on the newly-built configuration map;
and the conversion module is used for converting the topological graph into the configuration graph of the autonomous server when receiving a configuration graph generation instruction triggered by a user.
Optionally, the apparatus 700 further includes:
the verification module is used for verifying the validity of the configuration data;
and the alarm module is used for sending alarm information when the configuration data is illegal.
Optionally, the apparatus 700 further includes:
the second acquisition module is used for acquiring an update configuration file interface of the autonomous server when receiving an update instruction triggered by a user;
and the sending module is used for sending the configuration file to the autonomous server through the update configuration file interface so as to update the configuration file of the autonomous server.
Based on the same inventive concept, another embodiment of the present application provides an electronic device 800, as shown in fig. 8. Fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 802, a processor 801 and a computer program stored on the memory and executable on the processor, which when executed implements the steps of the method according to any of the embodiments described herein.
Based on the same inventive concept, another embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, which program, when being executed by a processor, realizes the steps in the method according to any of the embodiments described in the present application.
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 technology of video networking used in the present application will be described in detail below.
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. 1, 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. 10, 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. 11, 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. 12, 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 frame type, 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.
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 above description of the method, the device, the electronic equipment and the storage medium for generating the configuration file provided by the invention applies specific examples to illustrate the principle and the implementation of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the 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 (8)

1. A method of generating a configuration file, the method being applied to the internet of vision and comprising:
acquiring a configuration diagram of an autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network;
analyzing the configuration diagram to obtain configuration data;
dividing the configuration data into N groups of autonomous configuration data, carrying out data modeling on the N groups of autonomous configuration data, and generating N groups of configuration files, wherein each group of configuration files uniquely corresponds to one autonomous server in N autonomous servers, and N is the number of the autonomous servers;
The partitioning of the configuration data into N groups of autonomous configuration data includes:
aiming at each autonomous server in N autonomous servers, determining titles and labels corresponding to the autonomous server, sub-control, simulation equipment, entity equipment, cascading equipment and boundary routing equipment under the autonomous server as a group of autonomous configuration data until N groups of autonomous configuration data are obtained by dividing;
performing data modeling on the N groups of autonomous configuration data to generate N groups of configuration files, wherein the data modeling comprises the following steps:
and writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
2. The method of claim 1, wherein the configuration data comprises a title and a tag corresponding to the title;
analyzing the configuration diagram to obtain configuration data, including:
extracting a title in the configuration diagram, wherein the title comprises: IP value, branch control number value, analog device number value, entity device number value, cascade device number value and boundary route device number value of the autonomous server;
obtaining labels corresponding to the titles, wherein the labels are used for representing video networking equipment to which the titles belong;
The label corresponding to the IP value of the autonomous server is an autonomous server, the label corresponding to the sub-control number value is a sub-control, the label corresponding to the analog device number value is an analog device, the label corresponding to the entity device number value is an entity device, the label corresponding to the cascade device number value is a cascade device, and the label corresponding to the boundary routing device number value is a boundary routing device.
3. The method of claim 1, wherein obtaining a configuration map of an autonomous server comprises:
newly building a configuration diagram in a configuration diagram editing window;
generating a topological graph of the autonomous server according to the edit operation of a plurality of components provided by a user through the configuration graph edit window on the newly-built configuration graph;
and when receiving a configuration diagram generation instruction triggered by a user, converting the topological diagram into the configuration diagram of the autonomous server.
4. The method of claim 1, wherein after parsing the configuration map to obtain configuration data, the method further comprises:
verifying the validity of the configuration data;
and when the configuration data is illegal, sending out alarm information.
5. The method according to claim 1, wherein the method further comprises:
when receiving an update instruction triggered by a user, acquiring an update configuration file interface of the autonomous server;
and sending the configuration file to the autonomous server through the update configuration file interface so as to update the configuration file of the autonomous server.
6. An apparatus for generating a configuration file, the apparatus being applied to a video networking, comprising:
the first acquisition module is used for acquiring a configuration diagram of the autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in the visual network;
the analysis module is used for analyzing the configuration diagram to obtain configuration data;
the data modeling module is used for dividing the configuration data into N groups of autonomous configuration data, carrying out data modeling on the N groups of autonomous configuration data, and generating N groups of configuration files, wherein each group of configuration files uniquely corresponds to one autonomous server in N autonomous servers, and N is the number of the autonomous servers;
the data modeling module includes: a determining module and a generating module;
the determining module includes:
A determining submodule, configured to determine, for each autonomous server of the N autonomous servers, a group of autonomous configuration data corresponding to the autonomous server, a sub-control, a simulation device, an entity device, a cascading device, and a border routing device under the autonomous server, until N groups of autonomous configuration data are obtained by dividing;
the generation module comprises:
the generating sub-module is used for writing the configuration data into a preset configuration file code frame for each set of autonomous configuration data in the N sets of autonomous configuration data to generate a set of configuration files until the N sets of configuration files are generated.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-5 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN201911032913.0A 2019-10-28 2019-10-28 Method and device for generating configuration file, electronic equipment and storage medium Active CN111061517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911032913.0A CN111061517B (en) 2019-10-28 2019-10-28 Method and device for generating configuration file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911032913.0A CN111061517B (en) 2019-10-28 2019-10-28 Method and device for generating configuration file, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111061517A CN111061517A (en) 2020-04-24
CN111061517B true CN111061517B (en) 2024-03-15

Family

ID=70298384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911032913.0A Active CN111061517B (en) 2019-10-28 2019-10-28 Method and device for generating configuration file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111061517B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116346598B (en) * 2023-05-31 2023-09-01 四川中普盈通科技有限公司 Site configuration method for data transmission control and network access system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426335A (en) * 2017-08-15 2017-12-01 成都千牛信息技术有限公司 A kind of system and application method for automatically generating cloud environment configuration file
CN108958762A (en) * 2017-08-02 2018-12-07 北京视联动力国际信息技术有限公司 A kind of upgrade method and device of software
CN109787837A (en) * 2019-02-02 2019-05-21 视联动力信息技术股份有限公司 The configuration method and device of a kind of view networking port

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10680891B2 (en) * 2018-02-28 2020-06-09 Red Hat, Inc. Networking visualizations that update data model and deploy visualization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958762A (en) * 2017-08-02 2018-12-07 北京视联动力国际信息技术有限公司 A kind of upgrade method and device of software
CN107426335A (en) * 2017-08-15 2017-12-01 成都千牛信息技术有限公司 A kind of system and application method for automatically generating cloud environment configuration file
CN109787837A (en) * 2019-02-02 2019-05-21 视联动力信息技术股份有限公司 The configuration method and device of a kind of view networking port

Also Published As

Publication number Publication date
CN111061517A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN108965224B (en) Video-on-demand method and device
CN110502259B (en) Server version upgrading method, video networking system, electronic equipment and storage medium
CN111193788A (en) Audio and video stream load balancing method and device
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
CN110022295B (en) Data transmission method and video networking system
CN109660816B (en) Information processing method and device
CN109743555B (en) Information processing method and system based on video network
CN109803119B (en) Method and device for monitoring information transmission
CN109768957B (en) Method and system for processing monitoring data
CN111478791B (en) Data management method and device
CN111061517B (en) Method and device for generating configuration file, electronic equipment and storage medium
CN110389771B (en) Upgrading method and system of video networking client
CN109743360B (en) Information processing method and device
CN108965219B (en) Data processing method and device based on video network
CN110650169A (en) Terminal equipment upgrading method and device
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110096854B (en) Resource permission sharing method and device and readable storage medium
CN110266768B (en) Data transmission method and system
CN110191202B (en) Method and device for determining access address of equipment
CN110324286B (en) Conference control system and method
CN110166840B (en) Service processing method, system and device
CN110493555B (en) Request processing method, user terminal, core server, device and storage medium
CN110062258B (en) Method and device for distributing video networking numbers

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