CN111061517A - 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
CN111061517A
CN111061517A CN201911032913.0A CN201911032913A CN111061517A CN 111061517 A CN111061517 A CN 111061517A CN 201911032913 A CN201911032913 A CN 201911032913A CN 111061517 A CN111061517 A CN 111061517A
Authority
CN
China
Prior art keywords
configuration
autonomous
server
configuration file
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.)
Granted
Application number
CN201911032913.0A
Other languages
Chinese (zh)
Other versions
CN111061517B (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

Images

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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method and a device for generating a configuration file, electronic equipment and a storage medium. The method is applied to the video network 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 a video 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 file of each autonomous server is unique in the video network. The method for generating the configuration file can conveniently and quickly generate the configuration file, when the configuration file is used for updating the configuration file in the autonomous server, the updating operation of the configuration file of the autonomous server can be obviously simplified, the manpower resource is 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 prominent.

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 an apparatus for generating a configuration file, an electronic device, and a storage medium.
Background
In the visual networking, by modifying the json type configuration file in the autonomous server, the operations of increasing, deleting, modifying and checking the sub-control, the terminal and each layer of autonomous cascade can be realized. However, when the configuration file in the autonomous server needs to be modified, 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 files is complicated, and when the configuration files of all the autonomous servers in the whole autonomous environment need to be updated, a large amount of human resources need to be consumed; secondly, the modification work of the configuration file needs to be executed by an operator who grasps certain professional knowledge, the operator needs to additionally learn a large amount of related knowledge, and the modification difficulty of the configuration file is high, so that the update operation of the configuration file of the autonomous server is not flexible.
Disclosure of Invention
The embodiment of the application provides a method and a device for generating a configuration file, electronic equipment and a storage medium, and aims to simplify the updating operation of the configuration file of an autonomous server and improve the flexibility of the updating operation.
A first aspect of an embodiment of the present application provides a method for generating a configuration file, where the method is applied to a video network, and includes:
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 a video 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 file of each autonomous server is unique in the video network.
Optionally, the configuration data includes a title and a tag corresponding to the title;
analyzing the configuration diagram to obtain configuration data, wherein the configuration data comprises:
extracting a title in the configuration diagram, wherein the title comprises: IP value, sub-control number value, analog equipment number value, entity equipment number value, cascade equipment number value and boundary routing equipment number value of the autonomous server;
obtaining a label corresponding to each title, wherein the label is used for representing the video network equipment to which the title belongs;
the label that the IP value of autonomous server corresponds is the autonomous server, the label that branch accuse code value corresponds is the branch accuse, the label that analog device code value corresponds is analog equipment, the label that entity equipment code value corresponds is entity equipment, the label that cascade equipment code value corresponds is cascade equipment, the label that border routing equipment code value corresponds is border routing equipment.
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 is uniquely corresponding to one of the N autonomous servers.
Optionally, determining the number N of the autonomous servers, and dividing the configuration data into N groups of autonomous configuration data includes:
determining the titles and labels corresponding to the autonomous server, sub-control and simulation equipment, entity equipment, cascade equipment and boundary routing equipment under the autonomous server as a group of autonomous configuration data for each of N autonomous servers until N groups of autonomous configuration data are obtained by division;
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 aiming at each group of the N groups of the autonomous configuration data to generate a group of configuration files until the N groups of the configuration files are generated.
Optionally, obtaining the configuration map 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 editing operation of a plurality of components provided by a user through the configuration graph editing window on the newly-built configuration graph;
and when receiving a configuration diagram generation instruction triggered by a user, converting the topological diagram into a 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 sending alarm information when the configuration data is illegal.
Optionally, the method further comprises:
when an updating instruction triggered by a user is received, acquiring an updating configuration file interface of the autonomous server;
and sending the configuration file to the autonomous server through the configuration file updating 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 a video network, and includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a configuration diagram of an autonomous server, and the configuration diagram is generated according to a network structure diagram of the autonomous server in a video 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 network.
Optionally, the configuration data includes a title and a tag corresponding to the title; the parsing module includes:
a title extracting module, configured to extract a title in the configuration diagram, where the title includes: IP value, sub-control number value, analog equipment number value, entity equipment number value, cascade equipment number value and boundary routing equipment number value of the autonomous server;
the label obtaining module is used for obtaining labels corresponding to the titles, and the labels are used for representing the video network equipment to which the titles belong;
the label that the IP value of autonomous server corresponds is the autonomous server, the label that branch accuse code value corresponds is the branch accuse, the label that analog device code value corresponds is analog equipment, the label that entity equipment code value corresponds is entity equipment, the label that cascade equipment code value corresponds is cascade equipment, the label that border routing equipment code value corresponds is border routing equipment.
Optionally, the data modeling module comprises:
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;
and 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 is uniquely corresponding to one of the N autonomous servers.
Optionally, the determining module includes:
a determining submodule, configured to determine, for each of the N autonomous servers, a group of autonomous configuration data from titles and labels corresponding to the autonomous server, the sub-control and simulation device, the entity device, the cascade device, and the boundary routing device under the autonomous server until the group of autonomous configuration data is obtained by division;
the generation module comprises:
and the generating submodule is used for writing the configuration data into a preset configuration file code frame aiming at each group of the autonomous configuration data in the N groups of the autonomous configuration data to generate a group of configuration files until the N groups of the configuration files are generated.
Optionally, the first obtaining module includes:
the new building module is used for building a new configuration diagram in the configuration diagram editing window;
the topological graph generating module is used for generating a topological graph of the autonomous server according to the editing operation of a plurality of assemblies provided by a user through the configuration graph editing window on the newly-built configuration graph;
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 out 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 embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect of the present application when executed.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to the first aspect of the present application.
The application provides a method for generating a configuration file, and by the method, when the configuration file of an autonomous server is generated, a configuration diagram of the autonomous server is firstly obtained; then, analyzing 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 so as to automatically generate a configuration file corresponding to the autonomous server. The method can conveniently and quickly generate the configuration file, when the configuration file is used for updating the configuration file in the autonomous server, the updating operation of the configuration file of the autonomous server can be obviously simplified, the human 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 outstanding.
Secondly, when the configuration file is generated by using the method for generating the configuration file, an operator does not need to actively learn related technical knowledge, when the operation of increasing, deleting, modifying and checking a certain video network device in the video network is needed, because the configuration diagram reflects the network connection relation of the autonomous server in the video network, the operator only needs to modify the configuration diagram correspondingly, and can automatically generate the configuration file by using the modified configuration diagram, so that the generation mode of the configuration file 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 needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic illustration 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 diagram illustrating a method of generating a configuration diagram according to one embodiment of the present application;
fig. 3A is a schematic diagram illustrating a connection relationship between autonomous servers according to an embodiment of the present application;
3A 1-3A 6 are partial block diagrams of a configuration diagram of an autonomic server as disclosed in one embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of parsing a configuration diagram according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method of parsing a configuration map according to an embodiment of the present application;
FIG. 6 is a schematic overall flow chart illustrating a method for generating a configuration file according to an embodiment of the present application;
FIG. 7 is a block diagram illustrating 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 shown in an embodiment of the present application;
FIG. 9 is a networking schematic of a video 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 hardware architecture diagram of an access switch of the present application;
fig. 12 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the invention provides one of core concepts based on the characteristics of the video network (see the following for detailed description of the video network), namely: following the video network protocol, firstly obtaining 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 video network; and then analyzing the configuration diagram to obtain configuration data, and performing 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 network. The method for generating the configuration file can quickly and conveniently generate the configuration file of the autonomous server, and further solve the problem existing in the related technology when the configuration file of the autonomous server is modified.
FIG. 1 is a schematic diagram of an implementation environment shown in an embodiment of the present application. In the implementation environment, a control terminal is in communication connection with 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 flowchart illustrating a method for 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 steps of:
step S11: the method comprises the steps of obtaining a configuration diagram of an autonomous server, wherein the configuration diagram is generated according to a network structure diagram of the autonomous server in a video network.
Fig. 3 is a flowchart 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 editing operation of a plurality of components provided by a user through the configuration graph editing 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 a configuration diagram of the autonomous server.
In the embodiment of the application, the application program for updating the autonomic configuration file installed in the control terminal can provide a function of drawing the configuration diagram, and the format of the drawn configuration diagram is the xmnd 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:
firstly, a configuration diagram is newly built in a configuration diagram editing window, and then a plurality of components are provided through a component column or a component library of the editing window, for example: the construction of the topology graph of the autonomous server is completed by various lines, basic shapes and the like, and when the topology graph is specifically constructed, a network structure graph (i.e., a connection relation graph between autonomous servers of each hierarchy) of the autonomous server in a video network may be referred to, as shown in fig. 3A, fig. 3A is a schematic connection relation graph of the autonomous server shown 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; and when all the components are edited, a configuration diagram command is generated by clicking a submit button, and the established topological graph of the autonomous server is automatically converted into the configuration diagram of the autonomous server when the configuration diagram command is received by the application program for updating the autonomous configuration file.
In the embodiment of the present application, in addition to obtaining the configuration diagram of the autonomous server by updating the application program of the autonomous configuration file, the configuration diagram of the autonomous server may also be obtained by drawing with professional xmnd software.
In the embodiment of the present application, the generated configuration diagram may be as shown in fig. 3a 1-3 a6, and fig. 3a 1-3 a6 are schematic partial structures of a configuration diagram of an autonomous server shown in an embodiment of the present application. With reference to fig. 3A, the autonomic server includes four levels, autonomic 4, autonomic 3, autonomic 2, and autonomic 1, and under each level, there may be one or more autonomic servers, such as: there is one autonomous server under autonomous layer 4, namely: 4.25.12.101 autonomous, under autonomous 3 level, there are 4.25.12.103 autonomous, under autonomous 2 level, there are 4 autonomous servers of 4.25.12.111 autonomous, 4.25.12.114 autonomous, 4.25.12.102 autonomous and 4.25.12.104 autonomous, and under autonomous 1 level, there are 7 autonomous servers of 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.
Specifically, FIG. 3A1 is a partial magnified view between autonomous layer 4 and autonomous layer 3 (i.e., 4.25.12.101 through 4.25.12.103); FIG. 3A2 is a partial magnified view between autonomous layer 3 and autonomous layer 2 (i.e., 4.25.12.103-4.25.12.111, 4.25.12.114, 4.25.12.102, and 4.25.12.104); FIG. 3A3 is a partial magnified view between layer 4.25.12.111 and layer 1 (i.e., 4.25.12.111 through 4.25.12.112, 4.25.12.113) for layer 2; FIG. 3A4 is a close-up view of the layer 4.25.12.114 of autonomous 2 and between autonomous 1 layers (i.e., 4.25.12.114 through 4.25.12.115); FIG. 3A5 is a partial magnified view between layer 4.25.12.102 and layer 1 (i.e., 4.25.12.102 through 4.25.12.105, 4.25.12.106) for layer 2; fig. 3a6 is a partial magnified view between the autonomous 2 layer 4.25.12.104 and the autonomous 1 layer (i.e., 4.25.12.104 through 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 flowchart illustrating a method for parsing a configuration diagram according to an embodiment of the present application. Referring to fig. 4, in particular, step S12 may include:
step S121: extracting a title in the configuration diagram, wherein the title comprises: IP value, branch control number value, analog equipment number value, entity equipment number value, cascade equipment number value and boundary routing equipment number value of the autonomous server.
In the embodiment of the present application, each autonomous server is connected with one or more of a sub-controller, a cascade device, a boundary routing device, a simulation device, and an entity device, and the autonomous server, the connected sub-controller, cascade device, boundary 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-controller, cascade device, boundary 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 entire video network, and the sub-control number value and the boundary 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 titles include: "4.25.12.101 autonomy", "70001", "s 1[10001- & ltSUB & gt 10250 ]", "sd 1[10251 ]", "70002", "00100", "80001", "4.25.12.103 autonomy", wherein "4.25.12.101 autonomy" and "4.25.12.103 autonomy" are IP values of the autonomy server, "70001" and "70002" are minute control number values, "s 1[10001- & ltSUB & gt 50 ]" are analog device number values, "sd 1[10251 ]" are entity device number values, "00100" are cascade device number values, and "80001" is a boundary routing device number value.
In the embodiment of the application, in order to ensure the normal operation of each device in the video network, the IP value of each autonomous server is unique, and the number values of each sub-controller, each analog device, each physical device, each cascade device, and each boundary routing device also conform to the corresponding rules, so as to avoid that the normal video network service is affected by address conflict among the devices.
Step S122: obtaining a label corresponding to each title, wherein the label is used for representing the video network equipment to which the title belongs;
in an embodiment of the present application, a video networking device includes: the system comprises an autonomous server, branch control, simulation equipment, entity equipment, cascade equipment and boundary routing equipment. The sub-control is a server, namely a micro-cloud server in an autonomous cloud (autonomous domain) of the video network.
The label that the IP value of autonomous server corresponds is the autonomous server, the label that branch accuse code value corresponds is the branch accuse, the label that analog device code value corresponds is analog equipment, the label that entity equipment code value corresponds is entity equipment, the label that cascade equipment code value corresponds is cascade equipment, the label that border routing equipment code value corresponds is border routing equipment.
Taking fig. 3a1 as an example, a label corresponding to "4.25.12.101 autonomy" is an autonomy server, labels corresponding to specific values of "autonomy _4 layer", "70001" and "70002" are branch controls, specific values are "branch controls", "s 1[ 10001-. Here, the border routing device "80001" should belong to the autonomous domain where the autonomous server "4.25.12.103 autonomous" is located, but not to the autonomous domain where the autonomous server "4.25.12.101 autonomous" is located. Similarly, in fig. 3a2, the boundary routing device "80001" connected to the autonomous server "4.25.12.111 autonomous" should belong to the autonomous domain where the autonomous server "4.25.12.111 autonomous" is located, the boundary routing device "80001" connected to the autonomous server "4.25.12.114 autonomous" should belong to the autonomous domain where the autonomous server "4.25.12.114 autonomous" is located, and so on.
Step S13: and carrying out data modeling on the configuration data to generate configuration files, wherein the configuration file of each autonomous server is unique in the video network.
In the embodiment of the application, after all configuration data are obtained by analyzing the configuration diagram, the data modeling can be performed on the configuration data through a modeling tool provided by an application program for updating the autonomous configuration file installed in the control terminal, and the configuration file is generated. In the video network, each autonomous server is different, and the video network devices connected below the autonomous servers are also different, so that the network connection structure formed by each autonomous server is different, the autonomous domains where the different autonomous servers are located are different, and the configuration files corresponding to the autonomous domains are 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 flowchart illustrating a method for parsing a configuration diagram according to an embodiment of the present application. Referring to fig. 5, in particular, 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 the titles and labels corresponding to the autonomous server, the sub-control and simulation equipment, the entity equipment, the cascade equipment and the boundary routing equipment under the autonomous server as a group of autonomous configuration data for each of the N autonomous servers until the autonomous configuration data of the N groups are obtained through division.
In the embodiment of the application, when the configuration data is divided, the configuration data corresponding to the network structure formed between each autonomous server and the plurality of pieces of video networking equipment 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 the obtained autonomous servers is determined to be 13, that is, the value of N is 13, all the 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, the configuration data corresponding to the autonomous domain in which the autonomous server "4.25.12.101 is autonomous" includes: the system comprises titles and labels corresponding to an autonomous server ' 4.25.12.101 autonomous ', a branch control ' 70001 ', a simulator's 1[ 10001-; similarly, referring to fig. 3a2, the configuration data corresponding to the autonomous domain in which the autonomous server "4.25.12.103 is located includes: a boundary routing device "80001" (the boundary routing device "80001" is shown in fig. 3a 1), an autonomous server "4.25.12.103", a branch control "70001-; by analogy, according to fig. 3a4-a6, 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.
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 is uniquely corresponding to one of the N autonomous servers.
Specifically, step S132 may be:
and writing the configuration data into a preset configuration file code frame aiming at each group of the N groups of the autonomous configuration data to generate a group of configuration files until the N groups of the configuration files are generated.
In the embodiment of the application, after the configuration data of each autonomous server is obtained, data modeling is performed on the configuration data, and a configuration file in a json format corresponding to each autonomous server can be obtained. The method comprises the steps that a mac _ add and a device _ number are defined in a preset configuration file code frame, and when configuration data are written, whether the type of a corresponding title is an autonomous server or other video networking equipment (including branch control equipment, simulation equipment, entity equipment, cascade equipment and boundary routing equipment) is determined according to a label. If the device number is the same as the IP number of the autonomous server, the autonomous server acquires the IP value of the autonomous server and assigns the IP value to the corresponding device number, and if the device number is other video networking equipment, the device number value is acquired and assigned to the corresponding mac _ add, and according to the mode, the acquired IP value and the device number value of each video networking equipment are used for completing the filling of the configuration file code frame. Each autonomous server corresponds to a device _ number, each other video network device corresponds to a mac _ add, the mac _ add is used for addressing each video network device, and the connection relationship between the autonomous server and the video network device below the autonomous server can be obtained according to the mac _ add, for example: the format of mac _ add may be 60: f 2: ef: YY (YY is the hexadecimal representation of the last three digits of the branch control number of the branch control M under the autonomous server): ZZ (ZZ is a hexadecimal representation of the device number of sub-control M), where 60: f 2: ef is a fixed format. Illustratively, when mac _ add is 60: f 2: ef: 01: 01: 01, the first video network device s1[10001] under the sub-control "70001" under the autonomy server "4.25.12.101 autonomy" is represented. Therefore, according to the above rules, the preset configuration file code frame can be filled by using the configuration data of each autonomous server and each video network device thereunder, so as to generate the json-format configuration file of each autonomous server.
In the embodiment of the application, when a configuration file of an autonomous server is generated, a configuration diagram of the autonomous server in an xmnd format is obtained first; then, analyzing the configuration diagram to obtain configuration data, wherein the configuration data comprises a title and a label corresponding to the title; and then carrying out data modeling on the configuration data, namely writing the configuration data into a code frame according to a preset format, thereby automatically generating a configuration file corresponding to the autonomous server. The method can conveniently and quickly generate the configuration file, when the configuration file is used for updating the configuration file in the autonomous server, the updating operation of the configuration file of the autonomous server can be obviously simplified, the manpower resource is 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 outstanding.
Secondly, when the configuration file is generated by using the method for generating the configuration file, an operator does not need to actively learn related technical knowledge, when the operation of increasing, deleting, modifying and checking a certain video network device in the video network is needed, because the configuration diagram reflects the network connection relation of the autonomous server in the video network, the operator only needs to modify the configuration diagram correspondingly, and can automatically generate the configuration file by using the modified configuration diagram, so that the generation mode of the configuration file 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 also be included:
verifying the validity of the configuration data;
and sending alarm information when the configuration data is illegal.
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 repeated IP values of the autonomous servers exist in the configuration data or repeated number values of the devices can be verified (as mentioned above, the null number values and the number values of the boundary routing devices are unique in the same autonomous domain), because the repeated IP values of the autonomous servers or the number values of the devices can cause address conflict of related autonomous servers or video network devices, subsequent video network services are disturbed, when the configuration data are inaccurate, the generated configuration file cannot successfully update the configuration file in the autonomous servers, and the configuration file needs to be modified for many times until the configuration file in the autonomous servers is successfully updated, so that the maintenance cost of the autonomous servers is increased.
In the embodiment of the application, a verification link for the configuration data is added after the configuration data is obtained through analysis, and one-time effective updating of the configuration file of the autonomous server is realized by ensuring the accuracy of the generated configuration file.
Fig. 6 is a schematic overall flowchart 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 further be included:
step S14, when receiving an update instruction triggered by a user, acquiring an update configuration file interface of the autonomous server;
step S15, 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.
In the embodiment of the present application, the update indication means: an indication to update a configuration file of the autonomous server. After the configuration file is generated, the user may also issue an update instruction through an update autonomic configuration file application installed on the control terminal, so as to update the configuration files in all autonomic servers in the entire autonomic environment (e.g., the autonomic environment shown in fig. 3A).
In the embodiment of the application, a user may trigger an update instruction on an interface of the control terminal through a mouse, may trigger an update instruction on an interface of the control terminal through a gesture, and may even trigger the update instruction through a request for triggering the update instruction sent by a third party platform.
When receiving an update instruction triggered by a user, an update autonomy configuration file application program firstly acquires an update configuration file interface of an autonomy server. For example, in fig. 3A, if there are 13 autonomous servers, the respective update profile interfaces of the 13 autonomous servers need to be acquired. And then sending the configuration file to the corresponding autonomous server by updating the configuration file interface. For example, in FIG. 3A, the configuration file sent through the update configuration file interface of autonomic server "4.25.12.101 autonomic" should be the configuration file belonging to autonomic server "4.25.12.101 autonomic".
In this embodiment of the present application, an update policy may also be set for updating the configuration file of the autonomous server, for example: the autonomous server to be updated, the updating time and the like can be set, wherein the autonomous server to be updated can select all or part of the autonomous servers under the whole autonomous environment, and the updating time can be set by self-defining, so that the configuration file of the autonomous server can be updated more flexibly.
In this practical application, the video network is a network with a centralized control function, and includes a main control server and a lower level network device, where the lower level network device includes a terminal, and one of the core concepts of the video network is that a table is configured for a downlink communication link of a current service by notifying a switching device by the main control server, and then a data packet is transmitted based on the configured table.
In the embodiment of the present application, the communication method in which the control terminal and the autonomous servers are deployed in the video network and the configuration file is sent 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 (namely, the control terminal in the application) to the target terminal (namely, the autonomous server in the application) according to the downlink communication link.
In the embodiment of the present invention, configuring the downlink communication link of the current service includes: informing the switching equipment related to the downlink communication link of the current service to allocate a table;
further, transmitting according to the downlink communication link includes: the switching device transmits the received data packets through the corresponding port (i.e., the update profile interface of the autonomic server) by querying the configured table.
In particular implementations, the services include unicast communication services and multicast communication services. Namely, whether multicast communication or unicast communication, the core concept of the table matching-table can be adopted to realize communication in the video network.
The video network includes an access network portion (described in detail later), in which a master server is a node server and a lower-level network device includes an access switch and a terminal.
For the unicast communication service in the access network, the step of configuring the downlink communication link of the current service by the master server may include the following steps:
in the substep 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 (i.e. the control terminal in the present application), where the downlink communication link information includes the downlink communication port information of the main control server and the access switch participating in the current service;
in the substep S12, the main control server sets a downlink port to which a packet of the current service is directed in a packet address table inside the main control server according to the downlink communication port information of the control server; sending a port configuration command to a corresponding access switch according to the downlink communication port information of the access switch;
in sub-step S13, the access switch sets the downstream port to which the packet of the current service is directed in its internal packet address table according to the port configuration command.
For the multicast communication service in the access network, the step of the master server obtaining the downlink communication link information of the current service may include the following sub-steps:
in the substep S21, the main control server obtains a service request protocol packet for applying for multicast communication service initiated by a target terminal (i.e. an autonomous server in the application), wherein the service request protocol packet includes service type information, service content information and an access network address of the target terminal; wherein, the service content information comprises a service number;
substep S22, the master control server extracts the access network address of the source terminal in the preset content-address mapping table according to the service number;
in the substep of 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 updating strategy, so that the corresponding autonomous server is updated. Compared with the operation of manually and singly modifying the configuration file in the autonomous server by an operator in the related art, when the configuration file generated in the method is used for updating the configuration file in the autonomous server, the updating operation of the configuration file of the autonomous server can be obviously simplified, the human resources are saved, and the updating efficiency of the autonomous server is improved.
Secondly, when the configuration file is generated by using the method for generating the configuration file, an operator does not need to actively learn related technical knowledge, when the operation of increasing, deleting, modifying and checking a certain video network device in the video network is needed, because the configuration diagram reflects the network connection relation of the autonomous server in the video network, the operator only needs to modify the configuration diagram correspondingly, and can automatically generate the configuration file by using the modified configuration diagram, so that the generation mode of the configuration file 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 described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The embodiment of the present application further provides an apparatus 700 for generating a 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 video network;
an analyzing module 702, configured to analyze the configuration map to obtain configuration data;
and the data modeling module 703 is configured to perform data modeling on the configuration data to generate configuration files, where the configuration file of each autonomous server is unique in the video network.
Optionally, the configuration data includes a title and a tag corresponding to the title; the parsing module 702 includes:
a title extracting module, configured to extract a title in the configuration diagram, where the title includes: IP value, sub-control number value, analog equipment number value, entity equipment number value, cascade equipment number value and boundary routing equipment number value of the autonomous server;
the label obtaining module is used for obtaining labels corresponding to the titles, and the labels are used for representing the video network equipment to which the titles belong;
the label that the IP value of autonomous server corresponds is the autonomous server, the label that branch accuse code value corresponds is the branch accuse, the label that analog device code value corresponds is analog equipment, the label that entity equipment code value corresponds is entity equipment, the label that cascade equipment code value corresponds is cascade equipment, the label that border routing equipment code value corresponds is border routing equipment.
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;
and 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 is uniquely corresponding to one of the N autonomous servers.
Optionally, the determining module includes:
a determining submodule, configured to determine, for each of the N autonomous servers, a group of autonomous configuration data from titles and labels corresponding to the autonomous server, the sub-control and simulation device, the entity device, the cascade device, and the boundary routing device under the autonomous server until the group of autonomous configuration data is obtained by division;
the generation module comprises:
and the generating submodule is used for writing the configuration data into a preset configuration file code frame aiming at each group of the autonomous configuration data in the N groups of the autonomous configuration data to generate a group of configuration files until the N groups of the configuration files are generated.
Optionally, the first obtaining module 701 includes:
the new building module is used for building a new configuration diagram in the configuration diagram editing window;
the topological graph generating module is used for generating a topological graph of the autonomous server according to the editing operation of a plurality of assemblies provided by a user through the configuration graph editing window on the newly-built configuration graph;
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 comprises:
the verification module is used for verifying the validity of the configuration data;
and the alarm module is used for sending out alarm information when the configuration data is illegal.
Optionally, the apparatus 700 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.
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 performs the steps of the method according to any of the embodiments of the present application.
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 when executed by a processor implements the steps in the method according to any of the above-mentioned embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The video networking technology 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 high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 10, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 11, the network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 12, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device, and the storage medium for generating a configuration file according to the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for generating a configuration file, wherein the method is applied to a video network 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 a video 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 file of each autonomous server is unique in the video network.
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, wherein the configuration data comprises:
extracting a title in the configuration diagram, wherein the title comprises: IP value, sub-control number value, analog equipment number value, entity equipment number value, cascade equipment number value and boundary routing equipment number value of the autonomous server;
obtaining a label corresponding to each title, wherein the label is used for representing the video network equipment to which the title belongs;
the label that the IP value of autonomous server corresponds is the autonomous server, the label that branch accuse code value corresponds is the branch accuse, the label that analog device code value corresponds is analog equipment, the label that entity equipment code value corresponds is entity equipment, the label that cascade equipment code value corresponds is cascade equipment, the label that border routing equipment code value corresponds is border routing equipment.
3. The method of claim 2, wherein data modeling the configuration data to generate a configuration file comprises:
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 is uniquely corresponding to one of the N autonomous servers.
4. The method of claim 3, wherein determining the number N of the autonomic servers and dividing the configuration data into N sets of autonomic configuration data comprises:
determining the titles and labels corresponding to the autonomous server, sub-control and simulation equipment, entity equipment, cascade equipment and boundary routing equipment under the autonomous server as a group of autonomous configuration data for each of N autonomous servers until N groups of autonomous configuration data are obtained by division;
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 aiming at each group of the N groups of the autonomous configuration data to generate a group of configuration files until the N groups of the configuration files are generated.
5. The method of claim 1, wherein obtaining the configuration map of the 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 editing operation of a plurality of components provided by a user through the configuration graph editing window on the newly-built configuration graph;
and when receiving a configuration diagram generation instruction triggered by a user, converting the topological diagram into a configuration diagram of the autonomous server.
6. The method of claim 1, wherein after parsing the configuration graph to obtain configuration data, the method further comprises:
verifying the validity of the configuration data;
and sending alarm information when the configuration data is illegal.
7. The method of claim 1, further comprising:
when an updating instruction triggered by a user is received, acquiring an updating configuration file interface of the autonomous server;
and sending the configuration file to the autonomous server through the configuration file updating interface so as to update the configuration file of the autonomous server.
8. An apparatus for generating a configuration file, the apparatus being applied to a video network, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a configuration diagram of an autonomous server, and the configuration diagram is generated according to a network structure diagram of the autonomous server in a video 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 network.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executed implements the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
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 true CN111061517A (en) 2020-04-24
CN111061517B 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)

Cited By (1)

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

Citations (4)

* 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
US20190268218A1 (en) * 2018-02-28 2019-08-29 Red Hat, Inc. Networking visualizations that update data model and deploy visualization

Patent Citations (4)

* 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
US20190268218A1 (en) * 2018-02-28 2019-08-29 Red Hat, Inc. Networking visualizations that update data model and deploy visualization
CN109787837A (en) * 2019-02-02 2019-05-21 视联动力信息技术股份有限公司 The configuration method and device of a kind of view networking port

Cited By (2)

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

Also Published As

Publication number Publication date
CN111061517B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN108965224B (en) Video-on-demand method and device
CN111193788A (en) Audio and video stream load balancing method and device
CN109617956B (en) Data processing method and device
CN110602266B (en) Domain name resolution method and system
CN109672857B (en) Information processing method and device for monitoring resources
CN108965226B (en) Data acquisition method and device based on video network
CN109918104B (en) Automatic upgrading system and method
CN109743555B (en) Information processing method and system based on video network
CN108632075B (en) Method and device for programming video network terminal
CN108989850B (en) Video playing control method and control system
CN110022500B (en) Packet loss processing method and device
CN109743360B (en) Information processing method and device
CN109640194B (en) Method and device for acquiring terminal permission through two-dimensional code based on video network
CN110418169B (en) Monitoring data carousel method and device
CN111061517B (en) Method and device for generating configuration file, electronic equipment and storage medium
CN108965219B (en) Data processing method and device based on video network
CN110677315A (en) Method and system for monitoring state
CN110557658A (en) Monitoring system and method
CN110650169A (en) Terminal equipment upgrading method and device
CN110557687B (en) Multicast data packet processing method, device and storage medium
CN110493555B (en) Request processing method, user terminal, core server, device and storage medium
CN110096854B (en) Resource permission sharing method and device and readable storage medium
CN110166840B (en) Service processing method, system and device
CN110493319B (en) Data synchronization method, system and device
CN110266768B (en) Data transmission method and system

Legal Events

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