Network device configuration method, system, device and storage medium
The graphical configuration interface displays network device parameters and controls, which solves the problem of low network device configuration efficiency, realizes intuitive display and centralized configuration of parameters, and improves configuration efficiency.
Patent Information
- Application Number
- CN202510791961.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-08-15
AI Technical Summary
In the prior art, the configuration efficiency of network equipment is low, mainly relying on command line interfaces or distributed Web management modules, and the configuration method is cumbersome and the efficiency is low.
Provides a graphical configuration interface, which displays the device parameters and configuration controls of network devices through the configuration interface, supports parameter modification, configuration file update, firmware update and software update operations, and reduces dependence on the command line.
It realizes intuitive display and centralized configuration of network equipment parameters, improves configuration efficiency, and reduces configuration time and operation complexity.
Smart Images

Figure CN120498987A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network device configuration, and in particular to a configuration method, system, device and storage medium for a network device. Background Art
[0002] Currently, network device configuration, including device parameters, firmware, and software, primarily relies on command-line interfaces (CLIs) or decentralized Web (World Wide Web) management modules, resulting in low configuration efficiency. For example, to update the parameters of a network device, one must first connect to the device using a Telnet (teletype network) client, then enter the parameters and save them using commands. Multiple configuration parameters require multiple commands, one at a time, making the configuration process cumbersome and inefficient.
[0003] Therefore, how to improve the configuration efficiency of network devices is a technical problem that those skilled in the art need to solve. Summary of the Invention
[0004] The present application provides a configuration method, system, device and storage medium for a network device to improve the configuration efficiency of the network device.
[0005] In a first aspect, the present application provides a method for configuring a network device, comprising:
[0006] Displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters;
[0007] Obtaining a configuration instruction through the configuration control; the configuration instruction includes any one of a parameter modification instruction, a configuration file update instruction, a firmware update instruction, and a software update instruction;
[0008] The configuration instruction is used to perform corresponding configuration operations.
[0009] Optionally, if the configuration instruction is a software update instruction, performing a corresponding configuration operation using the configuration instruction includes:
[0010] Obtain the first version number of the software to be updated and the second version number of the current software;
[0011] Determine whether the first version number is greater than the second version number;
[0012] If so, replacing the current software with the software to be updated;
[0013] If not, a first prompt message is displayed through the configuration interface; the first prompt message is used to prompt that the current software is the latest version.
[0014] Optionally, obtaining a configuration instruction through the configuration control includes:
[0015] A parameter modification instruction is obtained through the text input box of the target device parameter; the parameter modification instruction includes parameter data of the target device parameter input by the user.
[0016] Optionally, the performing a corresponding configuration operation using the configuration instruction includes:
[0017] Determining whether the parameter data is valid data; the valid data is non-conflicting data and is within a standard parameter range;
[0018] If so, modifying the target device parameters using the parameter data;
[0019] If not, a second prompt message is displayed through the configuration interface; the second prompt message is used to prompt modification suggestions for the parameter data.
[0020] Optionally, if the target device parameter is a MAC configuration parameter of the switching function parameter, after performing a corresponding configuration operation using the configuration instruction, the method further includes:
[0021] If the parameter data is PORT data of a MAC configuration parameter, VID data corresponding to the PORT data is queried, and the VID data is filled into a target display position.
[0022] Optionally, if the configuration instruction is a configuration file update instruction or a firmware update instruction, performing a corresponding configuration operation using the configuration instruction includes:
[0023] Obtaining the connection status of the network device;
[0024] If the connection status is connection failure, a third prompt message is displayed through the configuration interface; the third prompt message is used to prompt that the network device connection fails;
[0025] If the connection status is successful, the target file is sent to the network device through the FTP service; wherein the target file is a configuration file to be updated or a firmware to be updated;
[0026] An update instruction is sent to the network device via the TELNET service, so that the network device performs an update operation using the target file.
[0027] Optionally, if the configuration instruction is a firmware update instruction, before obtaining the connection status of the network device, the method further includes:
[0028] Obtain the third version number of the firmware to be updated and the second version number of the current software;
[0029] Using the mapping table, determining whether the third version number matches the second version number;
[0030] If yes, continue to execute the step of obtaining the connection status of the network device;
[0031] If not, a fourth prompt message is displayed through the configuration interface; the fourth prompt message is used to prompt: update the current software to the matching target software, or update the current firmware to the matching target firmware.
[0032] In a second aspect, the present application provides a configuration system for a network device, comprising:
[0033] A presentation layer for displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters;
[0034] The logic processing layer is used to obtain configuration instructions through the configuration control and store the updated device parameters in the data layer; the configuration instructions include any one of parameter modification instructions, configuration file update instructions, firmware update instructions, and software update instructions;
[0035] A data layer, used to store device parameters of the network device;
[0036] The response layer is used to execute corresponding configuration operations using the configuration instructions.
[0037] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0038] Memory for storing computer programs;
[0039] The processor is used to implement the steps of the above configuration method when executing the program stored in the memory.
[0040] In a fourth aspect, the present application further provides a computer storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the steps of the above-mentioned configuration method of the present application.
[0041] The above-mentioned technical solution provided by the embodiment of the present application has the following advantages over the prior art: the embodiment of the present application provides a configuration method, system, device and storage medium for a network device; the present application can display the device parameters and configuration controls of the network device through the configuration interface to realize the intuitive display of the device parameters. When configuring the network device, there is no need to enter the control command through the command line interface. Only one of the parameter modification instructions, configuration file update instructions, firmware update instructions and software update instructions can be triggered through touch operation on the configuration interface, thereby improving configuration efficiency; and the device parameters in the present application include: at least one of time-sensitive network configuration parameters, service quality control parameters, port configuration parameters and switching function parameters, thereby realizing centralized configuration and display of various types of parameters, greatly reducing configuration time and operation complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0045] Figure 1 A flowchart of a method for configuring a network device provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a configuration interface provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of a network device configuration provided in an embodiment of the present application;
[0048] Figure 4 A software update flow chart provided in an embodiment of the present application;
[0049] Figure 5 A parameter checking flow chart provided in an embodiment of the present application;
[0050] Figure 6A schematic diagram of prompt information provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of a VLAN configuration provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of a MAC configuration provided in an embodiment of the present application;
[0053] Figure 9 A configuration file / firmware update diagram provided in an embodiment of the present application;
[0054] Figure 10 A schematic diagram of firmware source selection provided in an embodiment of the present application;
[0055] Figure 11 A schematic diagram of a software update provided in an embodiment of the present application;
[0056] Figure 12 A configuration system architecture diagram of a network device provided in an embodiment of the present application;
[0057] Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0059] The disclosure below provides many different embodiments or examples for implementing different configurations of the present invention. To simplify the disclosure of the present invention, the components and configurations of specific examples are described below. Of course, these are merely examples and are not intended to limit the present invention. In addition, the present invention may repeat reference numerals and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or configurations discussed.
[0060] The embodiments of the present application disclose a configuration method, system, device and storage medium for a network device to improve the configuration efficiency of the network device.
[0061] See also Figure 1 , is a flow chart of a configuration method for a network device provided in an embodiment of the present application, the configuration method comprising:
[0062] S101. Displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters;
[0063] In traditional solutions, there is a lack of visual display of device parameters. For example, when viewing the current configuration parameters of a network device, the traditional solution requires connecting to the board (network device) through a telnet client and entering the configuration, and then issuing commands through the command line interface to view the configuration parameters. However, this method prints a large number of entries each time the configuration is viewed, making it very difficult to find the configuration, and it is impossible to query cross-functional configurations intuitively and quickly. Therefore, in this application, the configuration interface of the network device can be displayed through a display device, and the configuration interface can display the device parameters and configuration controls of the network device.
[0064] Among them, the configuration interface is a graphical user interface (GUI). A graphical user interface is an interface form that interacts with users through visual elements. Configuration controls are visual elements with interactive functions, including: input controls, selection controls, display controls, etc. Input controls include: text input boxes, numeric adjustment boxes, file upload boxes, etc. Selection controls include: radio buttons, multi-select list boxes, drop-down boxes, etc. Display controls include: information display icons, etc.
[0065] The device parameters include: network device configuration parameters, software version parameters, firmware version parameters, etc., which are not specifically limited here. As long as they are parameters related to the network device, they can be displayed through the configuration interface; the device parameters include: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters. The time-sensitive network configuration parameters include: TSN CB (Time-Sensitive Networking Control Block), TSN QCI (Time-Sensitive Networking QoS Class Identifier), TSN QBV (Time-Sensitive Networking Quality of Service), etc. The quality of service control parameters include: QOS (Quality of Service) configuration parameters, MIRROR configuration parameters, ACL (Access Control List) configuration parameters, etc. The port configuration parameters include: port configuration parameters, PHY configuration (Physical Layer) parameters, etc.; the switching function parameters include: MAC (Media Access Control) configuration parameters, VLAN (Virtual Local Area) configuration parameters. Network (Virtual Local Area Network) configuration parameters, LAG (Link Aggregation Group) configuration parameters, PTP (Precision Time Protocol Domain) domain configuration parameters, PTP port configuration parameters, etc.
[0066] It should be noted that this application can convert each configuration parameter into an interactive table element, and use a chart to realize the configuration and display of parameters. This method has the effect of concise display and fast modification, and does not require memorizing the command format; see Figure 2 , is a schematic diagram of a configuration interface provided in an embodiment of the present application, such as Figure 2 As shown, this application displays different configuration parameters in a graphical manner. Users can switch the configuration interface by clicking on different configuration parameters. In the configuration interface, configuration controls such as text input boxes or multiple-selection list boxes for different parameters are displayed. Users can trigger the generation of parameter modification instructions in the configuration controls.
[0067] S102, obtaining a configuration instruction through a configuration control; the configuration instruction includes any one of a parameter modification instruction, a configuration file update instruction, a firmware update instruction, and a software update instruction;
[0068] In this application, if a user needs to configure a network device, they can directly touch the corresponding configuration controls in the configuration interface through a device such as a mouse, trackpad, or touch screen to generate the corresponding configuration instructions, without having to memorize complex command line instructions. For example, after a device parameter is displayed in the configuration interface, the device parameter has a corresponding text input box. If it is detected that the user has entered parameter data in the text input box, a parameter modification instruction can be automatically generated to quickly modify the device parameters of the network device.
[0069] In addition, when the present application obtains configuration instructions through a configuration control, the corresponding configuration instructions can be determined according to the type of the configuration control being touched; configuration instructions include parameter modification instructions, configuration file update instructions, firmware update instructions, software update instructions, configuration reading instructions, etc., which are not specifically limited here; for example: if the configuration control corresponds to a configuration parameter, a parameter modification instruction will be generated after the configuration control is touched; if the configuration control corresponds to an updated configuration file, a configuration file update instruction will be generated after the configuration control is touched; if the configuration control corresponds to an updated firmware, a firmware update instruction will be generated after the configuration control is touched; if the configuration control corresponds to an updated software, a software update instruction will be generated after the configuration control is touched.
[0070] See also Figure 3 , is a configuration diagram of a network device provided in an embodiment of the present application, such as Figure 3 As shown, the configuration interface includes the IP Address (Internet Protocol Address) and Password of the network device. After entering the IP address and password of the network device, you can connect to the network device; the user clicks the "Firmware Burn" button in the configuration interface to generate a firmware update instruction, the user clicks the "Configuration Burn" button in the configuration interface to generate a configuration file update instruction, and the user clicks the "Configuration Read" button in the configuration interface to generate a configuration read instruction.
[0071] S103: Execute corresponding configuration operations using the configuration instructions.
[0072] In this application, different operating logics are required to execute corresponding configuration operations for different types of configuration instructions. For example, if the configuration instruction is a parameter modification instruction, the parameter data input by the user is obtained, and the configuration parameters of the network device are modified according to the parameter data; if the configuration instruction is a configuration file update instruction, the configuration file to be updated is obtained, and the configuration file of the network device is updated according to the configuration file to be updated.
[0073] It should be noted that when performing corresponding configuration operations in this application, data transmission and instruction sending can be achieved through pre-defined services. This application does not specifically limit the services, as long as the configuration of network devices can be achieved. For example, network devices can be configured through FTP (File Transfer Protocol) services and TELNET (Telecommunication Network) services. Among them, FTP services are used to send parameter data, configuration files, firmware, and software to network devices, and TELNET services are used to send corresponding processing instructions to network devices; such as parameter modification instructions, update instructions, etc.
[0074] In summary, this application displays the device parameters and configuration controls of network devices through a configuration interface, which can realize the intuitive display of device parameters. When configuring network devices, there is no need to enter control commands through a command line interface. Only touch operations are required on the configuration interface to trigger any one of parameter modification instructions, configuration file update instructions, firmware update instructions, and software update instructions, thereby improving configuration efficiency. Moreover, the device parameters in this application include at least one of time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters, thereby realizing centralized configuration and display of various types of parameters, greatly reducing configuration time and operation complexity. This solution can be applied to the rapid deployment and policy management of complex network equipment in vehicle-mounted or industrial networking scenarios.
[0075] In another embodiment of the present application, if the configuration instruction is a software update instruction, performing the corresponding configuration operation using the configuration instruction includes:
[0076] Obtain the first version number of the software to be updated and the second version number of the current software;
[0077] Determine whether the first version number is greater than the second version number;
[0078] If so, replacing the current software with the software to be updated;
[0079] If not, a first prompt message is displayed through the configuration interface; the first prompt message is used to prompt that the current software is the latest version.
[0080] In this application, when updating software, it is necessary to check the software version. If the first version number of the software to be updated is greater than the second version number of the current software, the software update process is executed; otherwise, a first prompt message is generated and displayed on the configuration interface, indicating that the current software is the latest version and does not need to be updated.
[0081] See also Figure 4, is a software update flow chart provided in an embodiment of the present application, through Figure 4 It can be seen that when updating the software, this application first downloads the software version information to be updated and the update link information file, parses the software version number to be updated from the software version information to be updated, and obtains the download link from the update link information file; determines whether the software is updated: if not, the process ends; if so, determines whether the parsed version number is greater than the current version number; if it is greater than the current version number, a pop-up window prompts that the current software version is the latest version, and the process ends; if it is not greater than the current version number, downloads the software to be updated, creates a software replacement script, runs the software replacement script, the script ends, and the network device restarts after the software is replaced.
[0082] It should be noted that when downloading the software version information and update link information file to be updated, it can be automatically pushed to the configuration interface after the software is updated. If the user triggers the generation of a software update instruction in the configuration interface, it is determined that the software needs to be updated, and then the step of determining whether the parsed version number is greater than the current version number is executed.
[0083] From the above, it can be seen that when updating the software of a network device, this application needs to check the software version. Only when the software version number to be updated is greater than the current software version number, the software update operation is performed. In this way, it is possible to avoid installing old versions or the same version of software on the network device, avoid functional regression of the network device or compatibility issues, ensure the effectiveness and necessity of the software update, improve the stability of the network device, and reduce resource consumption.
[0084] In another embodiment of the present application, when obtaining a configuration instruction through a configuration control, a parameter modification instruction is obtained specifically through a text input box of a target device parameter; the parameter modification instruction includes parameter data of the target device parameter input by the user;
[0085] Accordingly, the process of executing the corresponding configuration operation using the configuration instruction in this application includes:
[0086] Determine whether the parameter data is valid data; the valid data is non-conflicting data and is within the standard parameter range; if so, use the parameter data to modify the target device parameters; if not, display a second prompt message through the configuration interface; the second prompt message is used to prompt modification suggestions for the parameter data.
[0087] In traditional solutions, the error rate is high when configuring parameters, and the associated configurations of different functional modules require manual verification of parameter consistency. For example, when traditional solutions configure complex parameter combinations for network devices, configuration conflicts are prone to occur, and manual verification is required at this time, such as manually checking the priority conflicts between ACL rules and QCI flow classifications, and manually checking the consistency between VLAN and MAC. Moreover, after a command is entered incorrectly in the traditional solution, it is necessary to search for the incorrectly entered configuration by checking all configurations, and the incorrect configuration cannot be effectively checked. Furthermore, after the firmware is updated, some configuration commands will be modified. If the configuration commands before the modification are continued to be used, the network device cannot be effectively configured. In the present application, if the parameter data of the target configuration parameters needs to be modified, the user only needs to enter the parameter data in the text input box of the target device parameters to generate the parameter modification instruction, without having to enter different commands in the command line interface. Moreover, when the present application performs the corresponding configuration operation, the validity of each configuration parameter in all tables can be verified in real time based on the rule engine.
[0088] When judging whether the parameter data is valid data, the present application needs to perform at least the following two check operations on the parameter data: configuration conflict check and parameter range check; wherein, the configuration conflict check is used to perform conflict check on the same port or configuration to reduce redundant configuration; the parameter range check is used to screen the parameter range of the parameter data entered in each text input box; if the parameter data is neither conflicting data nor within the standard parameter range, then the parameter data is valid data, and the parameter data can be used to modify the target device parameters; otherwise, the parameter data is judged to be invalid data, and a second prompt message needs to be generated and displayed on the configuration interface. The second prompt message is used to prompt modification suggestions for the parameter data. In this way, the present application can timely check for conflicting invalid data when configuring ACL rules and QCI flow classification priorities; when configuring VLAN and MAC, it automatically checks the consistency of parameters, and if there is inconsistent parameter data, it is judged to be invalid data; in this way, even if the parameter data is modified incorrectly, the user can be reminded in time through a prompt message, and the user can re-enter the correct parameter data according to the prompt message.
[0089] See also Figure 5 , is a parameter checking flow chart provided in an embodiment of the present application, through Figure 5 It can be seen that this application first initializes the parameter data of each configuration parameter of the network device on the configuration interface. The user enters the parameter data through the configuration interface and determines whether the parameter data is legal; if so, the parameter data is determined to be valid data and the configuration parameters are updated; if not, the correct data value range is prompted through a pop-up window in the configuration interface. Figure 6 , is a schematic diagram of a prompt information provided in an embodiment of the present application, through Figure 6 It can be seen that if the input parameter data is incorrect, a modification suggestion will be prompted in a pop-up window, and the user can re-enter valid parameter data based on the modification suggestion.
[0090] From the above, it can be seen that when modifying the configuration parameters of this application, the parameter data can be entered in the text input box of the configuration interface, and the validity of the parameter data can be checked. If the parameter data is valid data, the configuration parameters are modified to ensure the validity and correctness of the parameters; if the parameter data is not valid data, a prompt message is generated so that the user can adjust the parameter data according to the modification suggestions in the prompt message, thereby providing users with effective reference opinions and improving the modification efficiency of the configuration parameters.
[0091] In another embodiment of the present application, if the target device parameter is a MAC configuration parameter of a switching function parameter, after executing the corresponding configuration operation using the configuration instruction, it also includes: if the parameter data is PORT data of the MAC configuration parameter, querying the VID data corresponding to the PORT data and filling the VID data into the target display position.
[0092] In traditional solutions, after entering the VLAN configuration on a network device, you must use the MAC command to generate the corresponding configuration. For example, to configure VLANs including VLAN1, VLAN3, and VLAN4, and the corresponding L2 unknown multicast, broadcast, and unicast drop, you need to enter the command:
[0093] vlan create 1
[0094] vlan add-port 1 0
[0095] vlan add-port 1 3
[0096] vlan add-port 1 1
[0097] vlan add-port 1 2
[0098] vlan add-port 1 4
[0099] vlan l2-miss-opt 1drop drop drop
[0100] vlan create 3
[0101] vlan add-port 3 7
[0102] vlan add-port 3 8
[0103] vlan add-port 3 0
[0104] vlan add-port 3 1
[0105] vlan l2-miss-opt 3drop drop drop
[0106] vlan create 4
[0107] vlan add-port 4 1
[0108] vlan add-port 4 0
[0109] vlan l2-miss-opt 4drop drop drop
[0110] mac add static 07:0C:0E:03:0E:06port 0 1
[0111] mac add static 07:0C:0E:03:0E:06port 0 3
[0112] mac add static 07:0C:0E:03:0E:06port 0 4
[0113] In this application, each configuration parameter can be configured directly in the configuration interface, see Figure 7 , is a schematic diagram of a VLAN configuration provided by an embodiment of the present application; as shown in the figure, the user can directly select the port of each VLAN in the VLAN configuration interface to trigger the generation of parameter modification instructions, without having to enter different commands for each modification; Figure 7 As shown, the user configures the ports of VLAN1 as Port0, Port1, Port2, Port3, and Port4. In addition, the present application can also automatically deduce the VLAN-MAC association configuration relationship through the chart perception engine. That is, if the currently set target device parameter is the MAC configuration parameter of the switching function parameter, then after configuring the PORT data of the MAC configuration parameter, the VID (VLAN ID) data corresponding to the PORT data can be automatically queried from the VLAN configuration and filled into the target display position.
[0114] See also Figure 8 , is a MAC configuration diagram provided by an embodiment of the present application. As shown in the figure, the current input configuration PORT data is PORT0, then through Figure 7The VLAN configuration in the configuration interface can be found. PORT0 corresponds to VLAN1, VLAN3, and VLAN4 respectively. The VID data is 1, 3, and 4. The VID data is filled in the target display position on the configuration interface. It should be noted that if VLAN is not configured when configuring the MAC, the VID data cannot be directly found based on the association relationship. The user can directly enter the VID data on the configuration interface.
[0115] From the above, it can be seen that after creating the vlan configuration in this application, when creating the mac configuration, you only need to enter the PORT data, and the VID data of the PORT data can be automatically queried and saved, which improves the configuration speed of the parameter data and ensures the correctness of the parameter data.
[0116] In another embodiment of the present application, if the configuration instruction is a configuration file update instruction or a firmware update instruction, performing the corresponding configuration operation using the configuration instruction includes:
[0117] Obtain the connection status of the network device; if the connection status is connection failure, display a third prompt message through the configuration interface; the third prompt message is used to prompt that the network device connection has failed; if the connection status is connection success, send a target file to the network device through the FTP service; wherein the target file is a configuration file to be updated or firmware to be updated; send an update instruction to the network device through the TELNET service so that the network device can perform the update operation using the target file.
[0118] In the traditional solution, when updating the firmware of a network device, the user needs to first open the FTP server, copy the firmware to the FTP server, then connect to the board through the TELNET client, enter the corresponding update command to update the firmware, and manually trigger a restart after the update. When updating the configuration file, after connecting to the board through the TELNET client, enter the configuration file and save it through the command. Only one configuration file with a fixed name can be saved at a time, and only one can be exported, which requires manual renaming to ensure input and output.
[0119] In the present application, the user only needs to trigger the generation of a configuration file update instruction or a firmware update instruction on the configuration interface to automatically execute the update process. That is, after the present application obtains the configuration file update instruction or the firmware update instruction, it first determines the connection status of the network device; if the connection status is connection failure, a third prompt message is generated and displayed on the configuration interface, and the third prompt message is used to prompt the user that the network device connection has failed and the subsequent update process cannot be executed at this time; if the connection status is connection success, the target file is sent to the network device via the FTP service; if the configuration instruction is a configuration file update instruction, the target file is the configuration file to be updated; if the configuration instruction is a firmware update instruction, the target file is the firmware to be updated; then the update instruction is sent to the network device via the TELNET service so that the network device performs the update operation using the target file; and the target file verification result sent by the network device is received, and the verification result includes: verification success or verification failure. If the verification is successful, it means that the target file has been completely transferred to the network device and the network device can successfully complete the update operation; if the verification fails, it means that the target file transferred to the network device is an incorrect file and the update operation cannot be completed at this time. At this time, the user can choose whether to retransmit the target file according to the settings. In addition, this application can set different configuration files according to different application scenarios, and different configuration files can be set with different names and saved according to different scenarios.
[0120] See also Figure 9 , is a configuration file / firmware update schematic diagram provided by an embodiment of the present application. As shown in the figure, the present application can generate a corresponding configuration file based on the configuration information, and then enter the board IP and the corresponding operation password; determine whether the connection is successful: if not, a pop-up window will prompt that the connection failed and the process ends; if successful, open the FTP service to point to the current path, which is the path for saving the target file, so that the configuration file can be transferred to the network device through the FTP service; determine whether the configuration file needs to be updated or the firmware is updated; if the firmware is updated, prepare to send a firmware update instruction; if the configuration file is updated, select the configured update location, such as: update the configuration file to the a partition or b partition of the network device, and prepare to send the configuration update instruction; send the update command through the TELNET service, the file transfer verification is completed, and the process ends.
[0121] In another embodiment of the present application, if the configuration instruction is a firmware update instruction, before obtaining the connection status of the network device, the method further includes:
[0122] Obtain the third version number of the firmware to be updated and the second version number of the current software; use the mapping table to determine whether the third version number matches the second version number; if so, continue to execute the step of obtaining the connection status of the network device; if not, display a fourth prompt message through the configuration interface; the fourth prompt message is used to prompt: update the current software to the matching target software, or update the current firmware to the matching target firmware.
[0123] It should be noted that in order to avoid the problem of configuration errors caused by inconsistency between software version and firmware version, this application can establish a mapping table between firmware version and software version. Before updating the firmware, it is necessary to obtain the third version number of the firmware to be updated and the second version number of the current software; use the mapping table to determine whether the third version number matches the second version number; only if the third version number matches the second version number, the firmware update process is executed, otherwise the fourth prompt information is displayed through the configuration interface, and the fourth prompt information is used to prompt the user: the current software can be updated to the matching target software, or the current firmware can be updated to the matching target firmware; for example: the mapping table records that the firmware version 20250306 matches the software version 1.2.4.0-1.2.4.4. If the third version number of the firmware to be updated is 20250306, and the second version number of the current software is 1.2.3.3, it can be determined that the firmware to be updated does not match the current software. At this time, the user can be prompted through the configuration interface to update the software to the latest version to match the firmware, thereby realizing the issuance of relevant configurations.
[0124] See also Figure 10 , is a schematic diagram of a firmware source selection provided by an embodiment of the present application. It can be seen that when updating the firmware, the present application can download the firmware online or select the firmware locally for burning; see Figure 11 , is a software update diagram provided in an embodiment of the present application. The user can view the software update status on the configuration interface. There is currently a new version 1.2.4.2. At this time, the user can click the Update Now button on the configuration interface to trigger the software update instruction to update the software to the latest version; the user can also click the View Update Log button on the configuration interface to trigger the update log viewing instruction and display the update log on the interface.
[0125] See also Figure 12 , is a configuration system architecture diagram of a network device provided in an embodiment of the present application. As shown in the figure, the system includes:
[0126] A presentation layer for displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters;
[0127] The logic processing layer is used to obtain configuration instructions through the configuration control and store the updated device parameters in the data layer; the configuration instructions include any one of parameter modification instructions, configuration file update instructions, firmware update instructions, and software update instructions;
[0128] A data layer, used to store device parameters of the network device;
[0129] The response layer is used to execute corresponding configuration operations using the configuration instructions.
[0130] Among them, the presentation layer is used to provide an interactive interface, which is the configuration interface of the network device. The presentation layer can be divided into: parameter configuration area, help document, tool area and about area according to function. The parameter configuration area is used to implement: PTP domain, PTP port, TSN CB, TSN QBV, TSN QCI, VLAN, MAC, MIRROR, PHY, PORT, LAG, QOS, ACL and other network configuration-related functions; the tool category includes: board network configuration tool, board burning tool, board quick start configuration tool; the board network configuration tool and board quick start configuration tool are used to configure different parameters to realize network device startup configuration and graphical management of network configuration; the board burning tool is used to realize the burning of configuration files and firmware; the about area contains version number and check update function; the help file can be updated and corrected in real time, and supports scanning QR code to view the help file through terminal device on the intranet, and supports viewing the help file by clicking QR code on the extranet.
[0131] The logic processing layer primarily includes parameter data inspection and reading and writing, configuration file opening and saving, user operation monitoring, network download functionality, version verification, FTP services, and Telnet services. The logic processing layer is used to obtain configuration instructions through configuration controls and refresh configuration information based on configuration instructions triggered by the presentation layer. This includes opening and closing configuration files, validating and modifying parameter data, and interacting with network devices, downloading different file versions, verifying firmware and software version numbers, and transferring board configurations.
[0132] The data layer is used to store configuration information, operation request information and version information; the response layer is used to respond to configuration instructions triggered by the user on the interface. The configuration instructions include parameter modification instructions, configuration file update instructions, firmware update instructions, software update instructions, etc., and use different response logic to perform different configuration operations according to each configuration instruction, such as: modifying the parameter value of the network device, updating the configuration file of the network device, updating the firmware of the network device, updating the software of the network device, etc.; that is: the functions that this application needs to interact with the network device must be implemented through the response layer; operations that do not require interaction with the network device, such as version number comparison, parameter data conflict detection, etc., are all implemented through the logic processing layer.
[0133] As an optional embodiment, the logic processing layer is specifically configured to: if the configuration instruction is a software update instruction, obtain a first version number of the software to be updated and a second version number of the current software; determine whether the first version number is greater than the second version number; if so, trigger the response layer; if not, generate a first prompt message and trigger the presentation layer;
[0134] The response layer is specifically configured to: when the first version number is greater than the second version number, replace the current software with the software to be updated;
[0135] The presentation layer is specifically configured to: display a first prompt message through the configuration interface when the first version number is not greater than the second version number; the first prompt message is configured to prompt that the current software is the latest version.
[0136] As an optional embodiment, the logic processing layer is specifically used to: obtain a parameter modification instruction through a text input box of the target device parameter; the parameter modification instruction includes parameter data of the target device parameter input by the user.
[0137] As an optional embodiment, the logic processing layer is specifically used to: determine whether the parameter data is valid data; the valid data is non-conflicting data and the valid data is within the standard parameter range; if so, trigger the response layer; if not, generate a second prompt message and trigger the presentation layer;
[0138] The response layer is specifically configured to: modify the target device parameters using the parameter data when the parameter data is valid data;
[0139] The presentation layer is specifically configured to: display second prompt information through the configuration interface when the parameter data is not valid data; the second prompt information is configured to provide modification suggestions for the parameter data.
[0140] As an optional embodiment, the logic processing layer is specifically used to: if the target device parameter is the MAC configuration parameter of the switching function parameter, and the parameter data is the PORT data of the MAC configuration parameter, then query the VID data corresponding to the PORT data and fill the VID data into the target display position.
[0141] As an optional embodiment, the response layer is specifically used to: if the configuration instruction is a configuration file update instruction or a firmware update instruction, obtain the connection status of the network device; if the connection status is a connection failure, display a third prompt message through the configuration interface of the presentation layer; the third prompt message is used to prompt that the network device connection fails; if the connection status is a connection success, send the target file to the network device through the FTP service; wherein the target file is a configuration file to be updated or firmware to be updated; send an update instruction to the network device through the TELNET service so that the network device uses the target file to perform the update operation.
[0142] As an optional embodiment, the logic processing layer is specifically configured to: if the configuration instruction is a firmware update instruction, obtain a third version number of the firmware to be updated and a second version number of the current software; use a mapping table to determine whether the third version number matches the second version number; if so, continue to obtain the connection status of the network device through the response layer; if not, generate a fourth prompt message and trigger the presentation layer;
[0143] The presentation layer is specifically used to: display fourth prompt information through the configuration interface; the fourth prompt information is used to prompt: update the current software to matching target software, or update the current firmware to matching target firmware.
[0144] From the above, it can be seen that the present application can automatically update the configuration files and firmware of the network device through configuration file update instructions or firmware update instructions; and when updating the firmware, the present application needs to use a mapping table to check whether the firmware to be updated matches the software, so as to avoid the firmware being incompatible with the software after the update.
[0145] See also Figure 13 , Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application includes a processor 21, a communication interface 22, a memory 23, and a communication bus 24, wherein the processor 21, the communication interface 22, and the memory 23 communicate with each other via the communication bus 24;
[0146] Memory 23, for storing computer programs;
[0147] The processor 21 is configured to implement the steps of the configuration method described in any of the above method embodiments when executing the program stored in the memory 23, which will not be repeated here.
[0148] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0149] The communication interface is used for communication between the above terminal and other devices.
[0150] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0151] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0152] In another exemplary embodiment, a computer storage medium is provided, wherein the program instructions, when executed by a processor, implement the steps of the configuration method described in any of the above method embodiments. The storage medium may include any medium capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0153] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0154] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0155] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for configuring a network device, characterized in that: include: Displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters; Obtaining a configuration instruction through the configuration control; the configuration instruction includes any one of a parameter modification instruction, a configuration file update instruction, a firmware update instruction, and a software update instruction; The configuration instruction is used to perform corresponding configuration operations.
2. The configuration method according to claim 1, characterized in that: If the configuration instruction is a software update instruction, performing the corresponding configuration operation using the configuration instruction includes: Obtain the first version number of the software to be updated and the second version number of the current software; Determine whether the first version number is greater than the second version number; If so, replacing the current software with the software to be updated; If not, a first prompt message is displayed through the configuration interface; the first prompt message is used to prompt that the current software is the latest version.
3. The configuration method according to claim 1, wherein: Obtaining configuration instructions through the configuration control includes: A parameter modification instruction is obtained through the text input box of the target device parameter; the parameter modification instruction includes parameter data of the target device parameter input by the user.
4. The configuration method according to claim 3, characterized in that: The performing of the corresponding configuration operation using the configuration instruction includes: Determining whether the parameter data is valid data; the valid data is non-conflicting data and is within a standard parameter range; If so, modifying the target device parameters using the parameter data; If not, a second prompt message is displayed through the configuration interface; the second prompt message is used to prompt modification suggestions for the parameter data.
5. The configuration method according to claim 3, characterized in that: If the target device parameter is a MAC configuration parameter of the switching function parameter, after performing a corresponding configuration operation using the configuration instruction, the method further includes: If the parameter data is PORT data of a MAC configuration parameter, VID data corresponding to the PORT data is queried, and the VID data is filled into a target display position.
6. The configuration method according to any one of claims 1 to 5, characterized in that: If the configuration instruction is a configuration file update instruction or a firmware update instruction, performing the corresponding configuration operation using the configuration instruction includes: Obtaining the connection status of the network device; If the connection status is connection failure, a third prompt message is displayed through the configuration interface; the third prompt message is used to prompt that the network device connection fails; If the connection status is successful, the target file is sent to the network device through the FTP service; wherein the target file is a configuration file to be updated or a firmware to be updated; An update instruction is sent to the network device via the TELNET service, so that the network device performs an update operation using the target file.
7. The configuration method according to claim 6, characterized in that: If the configuration instruction is a firmware update instruction, before obtaining the connection status of the network device, the method further includes: Obtain the third version number of the firmware to be updated and the second version number of the current software; Using the mapping table, determining whether the third version number matches the second version number; If yes, continue to execute the step of obtaining the connection status of the network device; If not, a fourth prompt message is displayed through the configuration interface; the fourth prompt message is used to prompt: update the current software to the matching target software, or update the current firmware to the matching target firmware.
8. A configuration system for a network device, characterized in that: include: A presentation layer for displaying a configuration interface of a network device; wherein the configuration interface is a graphical interface for displaying device parameters and configuration controls of the network device; the device parameters include: at least one of: time-sensitive network configuration parameters, quality of service control parameters, port configuration parameters, and switching function parameters; The logic processing layer is used to obtain configuration instructions through the configuration control and store the updated device parameters in the data layer; the configuration instructions include any one of parameter modification instructions, configuration file update instructions, firmware update instructions, and software update instructions; A data layer, used to store device parameters of the network device; The response layer is used to execute corresponding configuration operations using the configuration instructions.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the steps of the configuration method according to any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer storage medium, characterized in that The computer storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the steps of the configuration method described in any one of claims 1 to 7 of the present application.
Citation Information
Patent Citations
Parameter configuration method and device based on industrial control screen and computer equipment
CN112114897A
Visual development method, device and system of business, electronic equipment and medium
CN115167842A
Equipment control method and device, equipment and storage medium
CN119718147A
Network equipment management method and device, equipment and storage medium
CN119728423A