CN116260722A - Network equipment configuration synchronization method and synchronization system - Google Patents

Network equipment configuration synchronization method and synchronization system Download PDF

Info

Publication number
CN116260722A
CN116260722A CN202310154528.3A CN202310154528A CN116260722A CN 116260722 A CN116260722 A CN 116260722A CN 202310154528 A CN202310154528 A CN 202310154528A CN 116260722 A CN116260722 A CN 116260722A
Authority
CN
China
Prior art keywords
configuration information
network device
dimensional code
client
configuration
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.)
Pending
Application number
CN202310154528.3A
Other languages
Chinese (zh)
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.)
Shanghai Ambiton Information Technology Co ltd
Original Assignee
Shanghai Ambiton 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 Shanghai Ambiton Information Technology Co ltd filed Critical Shanghai Ambiton Information Technology Co ltd
Priority to CN202310154528.3A priority Critical patent/CN116260722A/en
Publication of CN116260722A publication Critical patent/CN116260722A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a network equipment configuration synchronization method and a synchronization system, and provides a convenient configuration synchronization mechanism, so that the configuration synchronization of the network equipment is more convenient to realize in practical application. The network equipment configuration synchronization method provided by the application comprises the following steps: the method comprises the steps that a first network device obtains configuration information to be synchronized to a second network device; the first network equipment converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture; the client scans the two-dimensional code picture to obtain configuration information; the client writes the configuration information into the second network device; and loading configuration information by the second network equipment to fulfill the aim of configuration synchronization.

Description

Network equipment configuration synchronization method and synchronization system
Technical Field
The present application relates to the field of networks, and in particular, to a network device configuration synchronization method and a synchronization system.
Background
In the case of initial network equipment loading or network equipment hardware changing stage, the configuration of the existing network equipment needs to be synchronized to the new equipment, important network nodes and other equipment, in this case, one network equipment is configured as cold backup, and the configuration backup needs to be synchronized periodically.
The current method for synchronizing the network equipment configuration mainly comprises three steps: 1. the backup synchronization is performed through the HA dual-machine system, however, the scheme needs that two devices are physically close to each other to connect one HA line, or the two devices are not isolated on a network; 2. cloud synchronization is performed through the public network, however, the scheme requires that both devices can access the public network, and new devices often have no suitable network location or affect the existing network structure; 3. the USB flash disk synchronization is performed through the USB interface, however, the scheme needs to add USB flash disk hardware, the USB flash disk needs to be special, and a plurality of different configuration options are not generally supported.
It can be seen that the existing network device configures the synchronization scheme, and although the synchronization purpose can be achieved, the existing network device has a plurality of limitations, and has the problem of inconvenient application.
Disclosure of Invention
The application provides a network equipment configuration synchronization method and a synchronization system, and provides a convenient configuration synchronization mechanism, so that the configuration synchronization of the network equipment is more convenient to realize in practical application.
In a first aspect, the present application provides a network device configuration synchronization method, where the method includes:
the method comprises the steps that a first network device obtains configuration information to be synchronized to a second network device;
the first network equipment converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture;
the client scans the two-dimensional code picture to obtain configuration information;
the client writes the configuration information into the second network device;
and loading configuration information by the second network equipment to fulfill the aim of configuration synchronization.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the obtaining, by a first network device, configuration information to be synchronized to a second network device includes:
the network equipment analyzes the original configuration information to be synchronized to the second network equipment into hexadecimal codes or base64 codes, and obtains the configuration information through encryption and compression processing, wherein the encryption algorithm is AES, DES, RC, RSA or ECC encryption algorithm.
With reference to the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, the converting, by a first network device, configuration information into a two-dimensional code picture includes:
the first network equipment groups the configuration information according to 1024 bytes to obtain a plurality of pieces of sub-configuration information;
the first network device converts the plurality of sub-configuration information into corresponding two-dimensional code pictures.
With reference to the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the displaying, by a first network device, a two-dimensional code picture includes:
the first network equipment displays GIF images or videos which are prepared by a plurality of two-dimensional code pictures frame by frame.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the displaying, by a first network device, a two-dimensional code picture includes:
and the first network equipment displays the two-dimensional code picture in the Web page accessed by the client.
With reference to the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, after the client scans the two-dimensional code picture to obtain the configuration information, the method further includes:
the client side names and notes configuration information and stores the configuration information so as to complete the input operation.
With reference to the fifth possible implementation manner of the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, before the client writes the configuration information to the second network device, the method further includes:
the client receives a write operation initiated by a user for a configuration information list, wherein the configuration information list is composed of different configuration information, and the write operation is used for writing the configuration information into the second network device.
With reference to the first aspect of the present application, in a seventh possible implementation manner of the first aspect of the present application, the writing, by the client, configuration information into the second network device includes:
the client writes configuration information to the second network device based on the USB connection between itself and the second network device.
In a second aspect, the present application provides a synchronization system, where the synchronization system includes a first network device, a client, and a second network device, configured to perform the method provided by the first aspect of the present application or any one of the possible implementation manners of the first aspect of the present application.
In a third aspect, the present application provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method provided in the first aspect of the present application or any one of the possible implementations of the first aspect of the present application.
From the above, the present application has the following advantages:
aiming at the network equipment configuration synchronization requirement, the configuration information to be synchronized to the second network equipment is acquired by the first network equipment, the configuration information is converted into the two-dimension code picture and displayed, so that the client can scan the two-dimension code picture to acquire the configuration information and write the configuration information into the second network equipment, then the second network equipment loads the configuration information to fulfill the configuration synchronization aim, and under the configuration synchronization mechanism, the convenient configuration information transmission work is realized between the first network equipment and the second network equipment through the flexible two-dimension code picture and the client, thereby being more convenient for realizing the configuration synchronization of the network equipment in practical application.
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 will be briefly introduced 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 flow chart of a network device configuration synchronization method in the present application;
FIG. 2 is a system architecture diagram of the synchronization system of the present application;
FIG. 3 is a schematic diagram of a result of the configuration information of the present application;
FIG. 4 is a schematic diagram of still another result of the configuration information of the present application;
FIG. 5 is a schematic diagram of still another result of the configuration information of the present application;
fig. 6 is a schematic diagram of a result of the two-dimensional code picture of the present application;
FIG. 7 is a diagram illustrating one result of the configuration information list of the present application;
fig. 8 is a schematic structural diagram of a related processing device of the synchronization system of 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 only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled 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 terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules that are expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be executed according to the time/logic sequence indicated by the naming or numbering, and the execution sequence of the steps in the flow that are named or numbered may be changed according to the technical purpose to be achieved, so long as the same or similar technical effects can be achieved.
The division of the modules in the present application is a logical division, and may be implemented in another manner in practical application, for example, a plurality of modules may be combined or integrated in another system, or some features may be omitted or not implemented, and in addition, coupling or direct coupling or communication connection between the modules that are shown or discussed may be through some interfaces, and indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separate, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purposes of the present application.
Before introducing the network device configuration synchronization method provided in the present application, the background content related in the present application is first described.
The network equipment configuration synchronization method and the computer readable storage medium can be applied to a synchronization system, and the configuration synchronization of the network equipment is more convenient to realize in practical application by providing a convenient configuration synchronization mechanism.
It should be understood that the network device related to the present application may be any network device related to a network architecture, and the configuration synchronization requirement of the network device may be that the network device configuration synchronization method provided by the present application may implement convenient configuration synchronization.
The client related to the application may be understood by a User Equipment (UE) on which an application related to the client is installed, and the client may be a smart phone, a tablet computer, a personal digital assistant (Personal Digital Assistance, PDA), or a smart bracelet, which is convenient for a User to operate and carry about.
Next, a network device configuration synchronization method provided in the present application will be described.
Referring to fig. 1, fig. 1 shows a flow chart of a network device configuration synchronization method according to the present application, and the network device configuration synchronization method provided in the present application may specifically include steps 101 to 105 as follows:
step S101, a first network device acquires configuration information to be synchronized to a second network device;
it can be understood that in the network device configuration synchronization scenario, network devices on both sides are involved, where the network device on one side needs to provide its own configuration information, and the network device on the other side needs to configure and load the configuration information, so as to achieve the purpose of configuration synchronization.
For the network device providing its own configuration information, for convenience of explanation, the present application refers to a first network device, which may also be referred to as a configuration synchronization source device, etc., and for the network device configuring and loading configuration information, the present application refers to a second network device, which may also be referred to as a configuration synchronization destination device, etc.
For a configuration synchronization process, the first network device is first required to acquire configuration information to be synchronized to itself and to the second network device.
It can be understood that the configuration information is related configuration information of the network device in implementing the network device function service, and the application focuses on how to improve the transmission and synchronization of the configuration information from the first network device to the second network device, and the content of the configuration information belongs to the prior art category, so the application does not specifically describe the configuration information here.
In addition, how the first network device determines and triggers to perform configuration synchronization is the same as the configuration information, and the description is omitted herein.
Step S102, the first network device converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture;
in the prior art, after the first network device side determines the configuration information needing to be configured and synchronized, the first network device side performs backup synchronization through the HA dual system, performs cloud synchronization through the public network or performs USB disk synchronization through the USB interface, however, the first network device side HAs the problem of inconvenient application.
The application of the client is introduced between the first network device and the second network device, and the application of the two-dimension code is continuously introduced on the basis of the client, so that the two-dimension code and the client are flexible in application, and convenient configuration information transmission work can be realized, and the configuration synchronization of the network devices can be realized more conveniently in practical application.
Correspondingly, after the first network device determines the configuration information needing to be configured and synchronized currently, the first network device can be converted into a two-dimensional code picture, so that a subsequent client can scan the two-dimensional code picture to obtain the configuration information needing to be configured and synchronized currently.
It should be understood that, the two-dimensional code picture generated herein does not necessarily directly carry specific content (such as text, picture and other file formats) of the configuration information, but may also carry a storage address of the configuration information (such as an accessible related page on which the specific content of the configuration information is recorded), and may also carry a transit media transaction in other ways that may obtain the specific content of the configuration information online.
Step S103, the client scans the two-dimensional code picture to obtain configuration information;
it can be understood that the client has a camera and a two-dimensional code analysis function, so that after the two-dimensional code picture displayed by the first network device is scanned, the two-dimensional code picture can be analyzed, and corresponding configuration information is obtained along with a direct or indirect content recording mode of the two-dimensional code picture.
The method is characterized in that in the process of displaying the two-dimension code picture to the client by the first network device, the two-dimension code picture is not necessarily limited to the local display of the device, but can be remotely transmitted and displayed, so that the limitation of local short-distance communication connection, local physical communication connection or public network communication connection is directly eliminated between the first network device and the client, and the configuration information of the current required configuration synchronization can be flexibly obtained through the client.
In addition, the client has the characteristic of being convenient for carrying out adaptability development according to the use requirement of a user, so that more convenient operation effect can be realized on concrete realization.
Step S104, the client writes the configuration information into the second network device;
it can be understood that, because the client has the characteristics of portability and being capable of conveniently adjusting the position, the client is convenient to obtain the configuration information as described above, and also convenient to write the obtained configuration information into the second network device, so as to complete the information transmission work of transmitting the configuration information from the first network device to the second network device.
In this process, the client preferably adopts a local short-distance communication connection or a local physical communication connection mode to write configuration information into the second network device, which has the advantage of being more convenient compared with on-line or other transmission paths, because the client has the characteristics of portability and being capable of conveniently adjusting the position.
Step S105, the second network device loads the configuration information to fulfill the purpose of configuration synchronization.
After the configuration information of the first network device side, which is required to be configured and synchronized, is obtained, the second network device can configure and load the configuration information according to a preset processing mode, so that the configuration synchronization is completed, and the safety of the application service of the network device is ensured.
It is easy to understand that the processing at the second network device side may refer to the prior art, and thus the description is not repeated herein.
As can be seen from the above embodiment, in view of the network device configuration synchronization requirement, the present application obtains the configuration information to be synchronized to the second network device by the first network device, and converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture, so that the client can scan the two-dimensional code picture to obtain the configuration information and write the configuration information into the second network device, and then the second network device loads the configuration information to complete the configuration synchronization, and under the configuration synchronization mechanism, the first network device and the second network device realize convenient configuration information transmission work through both the more flexible two-dimensional code picture and the client, thereby being more convenient to realize the configuration synchronization of the network device in practical application.
The steps of the embodiment shown in fig. 1 and the possible implementation thereof in practical applications will be described in detail.
In the first network device side, in the case that the content of the configuration information is relatively fixed, in order to improve the security in the information transmission process, and also in order to reduce the data size (number), a conversion process of the data format may be introduced to achieve the object.
Specifically, as an implementation manner suitable for practical use, the step S101 of the first network device obtaining configuration information to be synchronized to the second network device may include the following contents:
the network equipment analyzes the original configuration information to be synchronized to the second network equipment into hexadecimal codes or base64 codes, and obtains the configuration information through encryption and compression processing, wherein the encryption algorithm is AES, DES, RC, RSA or ECC encryption algorithm.
It can be understood that through coding processing of coding types such as hexadecimal coding or base64 coding, original configuration information of different types can be analyzed into a unified preset format, so that unified processing is facilitated.
The security of the encryption processing of the data is higher, so that the information transmitted by the two-dimensional code picture is encrypted by the tibia, and the security of the transmission process can be ensured (the second network equipment side can perform corresponding decryption operation).
The encryption process may use a symmetric encryption algorithm such as AES, DES, RC, or may use an asymmetric encryption algorithm such as RSA and ECC.
In addition, the data compression processing can effectively reduce the data volume.
Under the combination of coding, encryption and compression, configuration information can be simplified in specific application, and the information security can be ensured.
In addition, in the process of generating the two-dimensional code picture at the first network equipment side, the method and the device have specific optimal design, so that the subsequent scanning processing of the two-dimensional code and the processing of configuration information are more convenient.
Specifically, as yet another practical implementation manner, in the process of converting the configuration information into the two-dimensional code picture by the first network device in step S102, the method is specifically performed by:
the first network equipment groups the configuration information according to 1024 bytes to obtain a plurality of pieces of sub-configuration information;
the first network device converts the plurality of sub-configuration information into corresponding two-dimensional code pictures.
It can be understood that, since 1024 bytes of the configuration information (including the configuration information obtained after the previous compression) is close to the maximum capacity of the two-dimensional code, the number of generated two-dimensional code pictures can be reduced as much as possible through the constraint under the condition that the data size of the configuration information is fixed, so that the configuration information can be grouped according to 1024 bytes in the process of converting the two-dimensional code pictures, and each group of sub-configuration information generates one two-dimensional code picture.
The number of the two-dimensional code pictures is reduced as much as possible, the follow-up scanning process and the process of sub configuration information after scanning can reduce batches, and further manual scanning operation and file management operation can be reduced on the whole, so that the processing is more convenient.
Furthermore, in order to facilitate the display of the two-dimensional code picture, and simultaneously facilitate the scanning of the two-dimensional code picture, the two-dimensional code picture converted in step S102 is also optimally designed.
Specifically, as yet another implementation manner suitable for practical use, in the process of displaying the two-dimensional code picture by the first network device in step S102, the method specifically may include:
the first network equipment displays GIF images or videos which are prepared by a plurality of two-dimensional code pictures frame by frame.
That is, the two-dimensional code picture obtained by the conversion is processed into a GIF (graphic information format) diagram or video for display.
It can be understood that, compared with a plurality of two-dimensional code pictures, more display area space is needed, and only one display area space of the two-dimensional code pictures is needed under the condition that a batch of two-dimensional code pictures are directly manufactured into the GIF images or the video, so that the layout design of the display area space is more convenient.
In addition, for the setting of the GIF map or the video, there is an advantage that, compared with the original method of simultaneously displaying a plurality of two-dimensional code pictures, the client only needs one same gesture at this time, and can automatically update the currently displayed two-dimensional code pictures along with the GIF map or the video, so as to complete the scanning processing of all the two-dimensional code pictures, obviously, the required user operation can be obviously reduced for the user at the client side, and the method is more convenient.
Compared with the original two-dimensional code pictures, the GIF images or videos are convenient to manage in aspects of storage, calling, loading and the like on the file, and file management is facilitated.
In addition, in the foregoing, the process of displaying the two-dimensional code picture by the first network device is not necessarily limited to the local display of the device, and the two-dimensional code picture can be remotely sent and displayed, and in this case, for the remote display of the two-dimensional code picture, the application can also introduce Web service to realize more convenient two-dimensional code scanning processing.
Specifically, as yet another practical implementation manner, in the process of displaying the two-dimensional code picture by the first network device in the previous step S102, the following display manner may be specifically included:
and the first network equipment displays the two-dimensional code picture in the Web page accessed by the client.
It can be understood that the client side is configured with the client application program, so that the client side can preset or update relevant Web pages of the network equipment configuration synchronization service related to the application in real time, and the client side can conveniently access the Web pages and scan the two-dimensional code pictures displayed in the pages.
In a specific application, the method can also relate to related identifiers such as network equipment identifiers, configuration information identifiers and two-dimension code image identifiers, so that from the overall aspect, if configuration synchronous services of a plurality of network equipment are involved, a client can lock two-dimension code images which need to be scanned and are related to specific configuration information based on the related identifiers, the condition can also affect the design of a Web page, for example, one Web page can only display two-dimension code images of one configuration information, one Web page can also display two-dimension code images of a plurality of configuration information at the same time, and the target two-dimension code images are centered and enlarged for display.
After the client scans the two-dimensional code pictures to obtain the corresponding configuration information, the application batch processing can also involve related information management work so as to divide and manage the configuration information of different batches.
Specifically, after the client scans the two-dimensional code picture to obtain the configuration information in step S103, the method of the present application may further include the following steps:
the client side names and notes configuration information and stores the configuration information so as to complete the input operation.
It can be understood that for the configuration information obtained by scanning each batch, the client names and notes and stores each time of input operation, so that each configuration information is distinguished, file management work such as file storage of a background is facilitated, and distinguishing is facilitated on presentation, so that a user can conveniently perform relevant file selection operation (related to an operation interface presenting different configuration information).
In the process of the input operation, manual operation instructions of a user, such as manual naming, manual remarks, confirmation storage and the like, can be involved, and the suitability of the manual operation instructions is adjusted according to specific application requirements of the client in practical application.
Further, taking the file selection operation mentioned herein as an example, the relevant configuration information selection operation may be involved in the process of writing the configuration information to the second network device by the client.
As yet another practical implementation manner, before the client writes the configuration information to the second network device in step S104, the method of the present application may further include the following steps:
the client receives a write operation initiated by a user for a configuration information list, wherein the configuration information list is composed of different configuration information, and the write operation is used for writing the configuration information into the second network device.
It is easy to see that the aforementioned operation interface presenting different configuration information may be specifically referred to herein as a configuration information list presenting different configuration information in the form of a list, for example, displaying names of different configuration information, and further, related information of configuration information such as remark information may be viewed by clicking a detail button.
In the configuration information list, the client is instructed to write and transmit the corresponding configuration information to the designated network equipment, namely the second network equipment side, in a clicking or dragging mode, so that the configuration synchronization processing is performed in a further step in real time.
It can be understood that the centralized configuration information list is set, so that the convenience of the visualization operation is improved, and the configuration synchronization management of each network device in the network device cluster is facilitated for the user in practical application.
In addition, as mentioned above, a connection manner of local short-range communication connection or local physical communication connection is preferably adopted between the client and the second network device, which has the advantage of being more convenient, and in consideration of the fact that the application is conveniently implanted into the existing application scene, and in consideration of the configuration cost and the convenience of the local physical communication connection, the application can use a USB connection to write configuration information, that is, the communication connection is established between the client and the second network device through a USB data line.
Correspondingly, in step S104, the client may write the configuration information into the second network device, which may specifically include:
the client writes configuration information to the second network device based on the USB connection between itself and the second network device.
Taking a client as an example of a smart phone, obviously, under the setting, a user can install and carry an application program related to the client on the smart phone of the user, and can complete configuration synchronization of network equipment by only one USB data line, and obviously, the device has high convenience.
To facilitate understanding of the foregoing embodiments, it may also be understood by way of a set of examples of the present application in practical application, which are shown below.
Referring to fig. 2, fig. 2 shows a system architecture diagram of the synchronization system of the present application, which involves configuring a synchronization source device (first network device), a mobile terminal (client), and a synchronization destination device (second network device).
Briefly, configuration information in a configuration synchronization source device is subjected to coding compression, a plurality of two-dimensional code graphs are generated, and two-dimensional code carousel is performed; the mobile terminal is a commonly used smart phone for scanning and reading two-dimension codes, the configuration management module can manage and select a plurality of different configuration information, and the writing module is responsible for writing the selected configuration information into the configuration synchronization target device; after the configuration synchronization target device is written with the configuration information, decompression decoding operation is performed, and then the configuration information is validated after checking, namely, one-time configuration synchronization is completed.
In connection with the data processing flow in fig. 2, the related processing content of the synchronization system according to the present application is as follows:
1. configuring synchronous source device (first network device)
1.1 encoding compression
The network device configuration information is typically a line command, or json file, as shown in a resulting schematic of the configuration information of the present application shown in fig. 3.
Taking hexadecimal encoding as an example, the original configuration information is parsed into hexadecimal encoding, as shown in the further resulting schematic of the configuration information of the present application shown in fig. 4.
And encrypting and compressing hexadecimal codes to obtain the content which can be converted into the two-dimensional code picture.
The encryption mode may be various symmetric or asymmetric encryption modes, or a private encryption mode implemented by itself, and the compression may be any one of possible compression algorithms to reduce the amount of data to be transmitted, as shown in a further result schematic diagram of the configuration information of the present application shown in fig. 5.
1.2 generating a plurality of two-dimensional code pictures and broadcasting the two-dimensional code pictures in turn
The generated compression codes are grouped in 1024 bytes because 1024 bytes approach the maximum capacity of the two-dimensional code.
Each group of 1024 bytes of data generates a two-dimensional code picture, as shown in a result schematic diagram of the two-dimensional code picture of the present application shown in fig. 6.
If the configuration quantity is large, a plurality of two-dimensional code pictures are generated, the two-dimensional code pictures are made into GIF images or videos frame by frame, and carousel is carried out.
2. Mobile terminal (client)
2.1 configuration reading
Because the configuration synchronization source device belongs to the network device generally and can be accessed through the Web service, when the configuration synchronization function is needed, the client can log in a Web page of the device, two-dimensional code pictures needing to be configured and synchronized can be broadcast on the Web page in turn, the client (generally a smart phone) is used for continuous scanning at the moment, and when all pictures are scanned, configuration input on the client is completed.
2.2 configuration management Module
After one configuration information is input, the configuration management module on the client can name, remark information, save and the like the configuration information, and if a plurality of configuration information exists on the client, the configuration management module can select the configuration information to be written in, as shown in a result schematic diagram of the configuration information list shown in fig. 7.
2.3 configuration write Module
The client is connected with the configuration synchronization destination device through a USB data line, and after the connection, data can be transmitted between the client and the configuration synchronization destination device, and at the moment, the client can transmit the read configuration information to the configuration synchronization destination device through the USB data line.
3. The synchronization destination device (second network device) is configured.
3.1 configuration analysis Module and verification Module
After receiving the configuration information, the configuration synchronization destination device needs to perform inverse operation corresponding to the preamble encryption compression processing, namely, decompression and decryption are performed, and then configuration verification is performed.
The configuration verification is the function generally possessed by the network equipment, namely loading the decrypted configuration information, and running the command one by one to see whether the network equipment can normally run, and if no error is reported, the configuration can be considered to be normally used.
3.2 configuration validation
After the configuration information passes the verification, the configuration synchronization destination device replaces the obtained configuration information with the current configuration information, and the configuration information is validated by reloading or restarting the device, so that a configuration synchronization process is completed.
The foregoing describes a network device configuration synchronization method, on the basis of the network device configuration synchronization method, the present application further provides a corresponding synchronization system from the perspective of a hardware structure, where the synchronization system involves three aspects, namely, a first network device, a client, and a second network device, all configured in the form of hardware devices in practical use, so, for convenience of explanation, all three are referred to as a processing device, referring to fig. 8, fig. 8 shows a schematic structural diagram of a related processing device of the network device configuration synchronization system, and specifically, the processing device may include a processor 801, a memory 802, and an input/output device 803, where the processor 801 is configured to implement, when executing a computer program stored in the memory 802, the steps corresponding to the network device configuration synchronization method in the corresponding embodiment of fig. 1.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in the memory 802 and executed by the processor 801 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions to describe the execution of the computer program in a computer device.
Processing devices may include, but are not limited to, a processor 801, memory 802, and input output devices 803. It will be appreciated by those skilled in the art that the illustrations are merely examples of processing devices, and are not limiting of processing devices, and may include more or fewer components than shown, or may combine some components, or different components, e.g., processing devices may also include network access devices, buses, etc., through which the processor 801, memory 802, input output device 803, etc. are connected.
The processor 801 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center for a processing device, with various interfaces and lines connecting the various parts of the overall device.
The memory 802 may be used to store computer programs and/or modules, and the processor 801 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 802 and invoking data stored in the memory 802. The memory 802 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of the processing device, or the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
When the processor 801 is configured to execute the computer program stored in the memory 802, the following functions corresponding to the execution subject may be specifically implemented:
the method comprises the steps that a first network device obtains configuration information to be synchronized to a second network device;
the first network equipment converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture;
the client scans the two-dimensional code to obtain configuration information;
the client writes the configuration information into the second network device;
and loading configuration information by the second network equipment to fulfill the aim of configuration synchronization.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the synchronization system related processing device described above may refer to the description of the network device configuration synchronization method in the corresponding embodiment of fig. 1, and will not be described in detail herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer readable storage medium, in which a plurality of instructions capable of being loaded by a processor are stored, so as to execute the steps of the network device configuration synchronization method in the corresponding embodiment of fig. 1, and specific operations may refer to the description of the network device configuration synchronization method in the corresponding embodiment of fig. 1, which is not repeated herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Since the instructions stored in the computer readable storage medium may execute the steps of the network device configuration synchronization method in the corresponding embodiment of fig. 1, the beneficial effects that can be achieved by the network device configuration synchronization method in the corresponding embodiment of fig. 1 are described in detail in the foregoing description, and are not repeated herein.
The network device configuration synchronization method, synchronization system and computer readable storage medium provided in the present application are described in detail above, and specific examples are applied to illustrate the principles and embodiments of the present application, and the description of the above examples is only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for synchronizing configuration of a network device, the method comprising:
the method comprises the steps that a first network device obtains configuration information to be synchronized to a second network device;
the first network equipment converts the configuration information into a two-dimensional code picture and displays the two-dimensional code picture;
the client scans the two-dimensional code picture to obtain the configuration information;
the client writes the configuration information into the second network device;
and the second network equipment loads the configuration information to fulfill the aim of configuration synchronization.
2. The method of claim 1, wherein the first network device obtaining configuration information for itself to be synchronized to a second network device comprises:
the network device analyzes the original configuration information to be synchronized to the second network device into hexadecimal codes or base64 codes, and obtains the configuration information through encryption and compression processing, wherein the encryption algorithm is AES, DES, RC, RSA or ECC encryption algorithm.
3. The method of claim 1, wherein the first network device converting the configuration information into a two-dimensional code picture comprises:
the first network device groups the configuration information according to 1024 bytes to obtain a plurality of sub-configuration information;
the first network device converts the plurality of sub-configuration information into corresponding two-dimensional code pictures.
4. The method of claim 3, wherein the first network device presents the two-dimensional code picture, comprising:
and the first network equipment displays GIF images or videos which are prepared from a plurality of two-dimensional code pictures frame by frame.
5. The method of claim 1, wherein the first network device presents the two-dimensional code picture, comprising:
and the first network equipment displays the two-dimensional code picture in the Web page accessed by the client.
6. The method of claim 1, wherein after the client scans the two-dimensional code picture to obtain the configuration information, the method further comprises:
and the client names and remarks the configuration information and stores the configuration information so as to complete the input operation.
7. The method of claim 6, wherein prior to the client writing the configuration information to the second network device, the method further comprises:
the client receives a write operation initiated by a user for a configuration information list, wherein the configuration information list is composed of different configuration information, and the write operation is used for writing the configuration information into the second network device.
8. The method of claim 1, wherein the client writing the configuration information to the second network device comprises:
the client writes the configuration information into the second network device based on the USB connection between the client and the second network device.
9. A synchronization system comprising a first network device, a client and a second network device for performing the method of any of claims 1 to 8.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of any one of claims 1 to 8.
CN202310154528.3A 2023-02-22 2023-02-22 Network equipment configuration synchronization method and synchronization system Pending CN116260722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310154528.3A CN116260722A (en) 2023-02-22 2023-02-22 Network equipment configuration synchronization method and synchronization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310154528.3A CN116260722A (en) 2023-02-22 2023-02-22 Network equipment configuration synchronization method and synchronization system

Publications (1)

Publication Number Publication Date
CN116260722A true CN116260722A (en) 2023-06-13

Family

ID=86683944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310154528.3A Pending CN116260722A (en) 2023-02-22 2023-02-22 Network equipment configuration synchronization method and synchronization system

Country Status (1)

Country Link
CN (1) CN116260722A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117201485A (en) * 2023-11-07 2023-12-08 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117201485A (en) * 2023-11-07 2023-12-08 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium
CN117201485B (en) * 2023-11-07 2024-02-06 北京飞轮数据科技有限公司 Text file transmission method, text file transmission device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN102946440B (en) Automatic cloud synchronization and recovery system based on cloud storage technology
CN106572139B (en) Multi-terminal control method, terminal, server and system
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN103873803A (en) Display device, display system, method of controlling display device and signal processing device
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
US20220215192A1 (en) Two-dimensional code display method, apparatus, device, and medium
CN116260722A (en) Network equipment configuration synchronization method and synchronization system
CN111694795A (en) File online preview method, device, terminal and medium
US8706803B1 (en) Client-side generation of preliminary version of network page
CN108388461A (en) A kind of screen picture intercept method and device for firmware
CN101840690A (en) Image display device, image display system and method for displaying image
CN110442601A (en) A kind of method and apparatus that Openstack mirror image data accelerates parallel
US9973554B2 (en) Interactive broadcasting between devices
CN105681616A (en) Multiple-mobile terminal and terminal medical level image data transmission method
CN112416893A (en) Data sharing method, system, device, computer equipment and storage medium
CN110868471A (en) Novel equipment construction method and device and storage medium
CN115695543A (en) Microscopic image sharing method and microscope system
CN112016280B (en) File editing method and device and computer readable medium
CN114327317B (en) Mirror image screen projection method, device and system
EP2469457A1 (en) System and method for improved service oriented architecture
KR102481009B1 (en) Method for rapid reference object storage format for chroma subsampled images
CN116661790B (en) Cross-platform rendering method and device and electronic equipment
CN110855539B (en) Device discovery method, device and storage medium
US20160085471A1 (en) Storage device and method
KR102180346B1 (en) User terminal device and contents providing server, method for providing contents of user terminal device

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