An interactive network management system and method based on the Internet
By designing an interactive network management system based on the Internet, using mapping files and AJAX technology, the existing system lacks flexibility and degraded user experience when facing new device types or configurations, and achieves efficient device management and excellent user experience.
Patent Information
- Application Number
- CN202311513310.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Existing network management systems lack flexibility in the face of new device types or configurations, and require manual modification, resulting in low management efficiency and dispersed configuration information, cumbersome maintenance and updates. At the same time, the system adopts synchronous data interaction method, resulting in a decline in user experience.
Design an interactive network management system based on the Internet to realize the query and configuration of equipment through user management module, client module, CLI module, server module, device query module and device configuration module. Use a mapping file to convert JSON format data into a CLI command line string, and parse the AJAX-GoActions operation based on AJAX to achieve asynchronous data interaction.
Improves the flexibility and management efficiency of the system, and makes the system easier to expand and maintain by mapping files. AJAX's asynchronousness improves the user experience and system interactivity, effectively avoiding device configuration errors.
Smart Images

Figure CN118694532B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network management systems, and in particular to an interactive network management system and method based on the Internet. Background Art
[0002] As enterprises and organizations expand in size, network infrastructure becomes more and more complex. Large organizations may have distributed network architectures, multiple subnets, cloud infrastructure, etc. Effective management of such networks requires a highly automated and integrated system. With the increase in network attacks and failures, real-time monitoring of the health of the network becomes critical. Interactive network management systems can provide real-time performance data and respond quickly based on monitored issues, thereby reducing the impact of network failures on equipment. A management system is a system that uses Internet technology to achieve network management and monitoring. This system is typically used to organize and manage complex network infrastructure to ensure network efficiency, availability, and security.
[0003] The prior art has the following deficiencies:
[0004] 1. Existing management systems use hard-coded or fixed configuration files, which results in a lack of flexibility when facing new device types or configurations. Manual modifications are required, resulting in low management efficiency for device networks. In addition, in the absence of mapping files, configuration information may be scattered in multiple places, making system maintenance and updates cumbersome and prone to errors.
[0005] 2. The management system adopts a synchronous data interaction method, which requires the entire page to be refreshed, which will lead to a decline in user experience when data needs to be updated frequently. Summary of the invention
[0006] The purpose of the present invention is to provide an interactive network management system and method based on the Internet to solve the shortcomings of the background technology.
[0007] In order to achieve the above object, the present invention provides the following technical solution: an interactive network management system based on the Internet, including a user management module, a client module, a CLI module, a server module, a device query module and a device configuration module:
[0008] User management module: authenticates users through the IPS interface provided by the AAA component;
[0009] Client module: Provides a visual interface to users who have successfully authenticated their identities on a Web browser, and parses and displays HTML language through an HTML parser;
[0010] CLI module: converts JSON format data into corresponding CLI command line strings through mapping files to query and configure devices;
[0011] Server module: parses AJAX-based GoActions operations through the AJAX-GoActions parser, returns the CLI command line to the CLI module for processing through the configuration interface provided by VTY, interacts with the client module through the GoAhead-Web-Server server, obtains JSON data, and returns the processing results of the Web server to the client module for display;
[0012] Device query module: query the device's operating data information based on the CLI command line, and display the operating data information through a dynamic data table;
[0013] Device configuration module: The device is configured based on the CLI command line. The device manages the network through configuration information. The user configures relevant parameters based on the Web page and sends them to the device for device network management.
[0014] Preferably, the CLI module converts the JSON format data into a corresponding CLI command line string through a mapping file, comprising the following steps:
[0015] Receive JSON format data from the Web front end, load a mapping file, the mapping file includes a mapping relationship between JSON data fields and CLI commands, parse the received JSON data, convert the JSON data into an internal data structure, map each field in the JSON data to a corresponding CLI command and parameter according to the rules defined in the mapping file, generate a final CLI command line string, analyze the mapping quality in real time during the mapping process, evaluate whether there are hidden defects in the generated CLI command line string, and when there are no hidden defects in the generated CLI command line string, send the generated CLI command to the target device through the device communication interface.
[0016] Preferably, analyzing the mapping quality in real time during the mapping process and evaluating whether the generated CLI command line string has hidden defects comprises the following steps:
[0017] During the mapping process, the field value range deviation index, field matching degree, mapping jam frequency, and mapping complexity coefficient are obtained in real time;
[0018] The quality coefficient is generated after comprehensively analyzing the field value range deviation index, field matching degree, mapping jam frequency and mapping complexity coefficient. The quality coefficient is used to determine whether the mapping quality is qualified;
[0019] The calculation logic of the quality coefficient is as follows: normalize the field value range deviation index, field matching degree, mapping jamming frequency, and mapping complexity coefficient. Based on the fact that the field value range deviation index, mapping jamming frequency, and mapping complexity coefficient are inversely proportional to the quality coefficient, and the field matching degree is directly proportional to the quality coefficient, the quality coefficient ys is obtained by comprehensively calculating the field value range deviation index, field matching degree, mapping jamming frequency, and mapping complexity coefficient. x ;
[0020] Get the quality coefficient ys x Then, the quality coefficient ys x Compared with the quality threshold, if the quality coefficient ys x < quality threshold, the analysis mapping quality is poor, and the evaluation of the generated CLI command line string has hidden defects. If the quality coefficient ys x ≥Quality threshold, the quality of the analysis mapping is good, and the evaluation generates CLI command line strings without hidden defects.
[0021] Preferably, the calculation expression of the field matching degree is: zpd=NMT / TNF; wherein NMT represents the number of fields whose actual data type matches the expected data type, and TNF represents the total number of fields;
[0022] The calculation expression of the field value range deviation index is:
[0023] In the formula, qz s Get the field value in real time, qz min ~qz max Indicates the value range of the field specified in the mapping file;
[0024] The calculation expression of the mapping jam frequency is: kdp=YKC / TC; where YKC represents the number of jams during the mapping process, and TC represents the mapping duration;
[0025] The calculation expression of the mapping complexity coefficient is: Where F(t) is the real-time complexity change of the mapping file, [t x , t y ] is the period of conditional judgment quantity warning, [t i , t j ] is the time period for nested mapping quantity warning.
[0026] Preferably, the server module is used to parse the AJAX-GoActions operation based on AJAX by using an AJAX-GoActions parser, comprising the following steps:
[0027] Listen to the HTTP endpoint on the server side, receive AJAX requests from the client, extract parameters from the AJAX request, including URL parameters, POST data, and HTTP headers, perform request verification to ensure that the request is legal and authorized, and pass the received AJAX request to the AJAX-GoActions parser. The AJAX-GoActions parser parses the request and executes the GoActions operation. The AJAX-GoActions parser parses the AJAX request according to predefined rules and maps the AJAX request to the corresponding GoActions operation. After executing the GoActions operation, the server performs subsequent processing, including generating a response, recording logs, and updating the database. An AJAX response is generated according to the execution result of the GoActions operation. The AJAX response includes data in JSON format and HTML fragments.
[0028] Preferably, the client module parses the HTML language through an HTML parser and displays it, including the following steps:
[0029] Obtain HTML content from the server through HTTP request, and use HTML parser to parse the obtained HTML content. HTML parser includes browser's built-in parsing engine or third-party JavaScript library, parses HTML to generate DOM tree, DOM tree is used to represent the internal data structure of page structure, matches elements in HTML with corresponding styles, applies CSS rules, determines the display style of each element, and executes JavaScript scripts contained in HTML. The scripts include page interaction and dynamic content generation, and render the page according to DOM tree and style information.
[0030] Preferably, the client module includes a structure layer, a presentation layer and a behavior layer. The structure layer corresponds to an HTML file, the presentation layer corresponds to a CSS file, and the behavior layer corresponds to a JavaScript file. However, in actual applications, the three cannot be completely separated. JavaScript is referenced in the HTML file, and the CSS style file is introduced through the head tag for hierarchical division.
[0031] Preferably, the structure layer is implemented by HTML, and the HTML structure document defines the document type by DOCTYPE;
[0032] The presentation layer is implemented through CSS. Each functional file has a corresponding CSS file and is introduced into HTML through tags;
[0033] The behavior layer is implemented by JavaScript, using the jQurey function library, and performing secondary development on JavaScript, CSS, DOM, and AJAX through jQuery.
[0034] Preferably, the client module includes the division of file structure and the layout of Web pages;
[0035] The CLI module includes a CLI virtual terminal and a CLI adaptation layer, which implements HTTP protocol framework and page device adaptation through the Web protocol stack, and the CLI module and the device are not aware of HTTP data;
[0036] The device query module queries the device operation data information based on the CLI command line, and the operation data information includes status information, version information, local SN, management port information, routing information and alarm information;
[0037] The device configuration module configures the device based on the CLI command line, and the configuration includes management port configuration, routing configuration, Callhome configuration, SNMP configuration, domain configuration, interface domain configuration, Yang model switching and dual network port switching.
[0038] The present invention also provides an interactive network management method based on the Internet, the management method comprising the following steps:
[0039] S1: The authentication end authenticates the user through the IPS interface provided by the AAA component;
[0040] S2: Provide a visual interface to the user who has successfully authenticated his / her identity on a web browser, and parse the HTML language through an HTML parser and display it;
[0041] S3: Converts JSON format data into corresponding CLI command line strings through XML mapping files;
[0042] S4: AJAX-GoActions parser is used to parse AJAX-based GoActions operations, and parse and encapsulate JSON format data through relevant interfaces;
[0043] S5: Send the CLI command line to the CLI for processing through the configuration interface provided by VTY, and use the CLI's configuration and management functions to access traditional resources;
[0044] S6: The GoAhead-Web-Server interacts with the client, calls the GoAct ion implementation interface, obtains the JSON data, and returns the processing result of the Web server to the Web browser for display;
[0045] S7: The query end queries the running status data of the device based on the CLI command line and displays the running status data through a dynamic data table;
[0046] S8: The configuration end configures the device based on the CLI command line, and the device manages the network through the configuration information. The user configures relevant parameters based on the Web page and sends them to the device for network management.
[0047] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0048] 1. The present invention converts JSON format data into corresponding CLI command line strings through a mapping file through a CLI module to achieve device query and configuration. The server module parses the AJAX-GoActions operation based on AJAX through an AJAX-GoActions parser, returns the CLI command line to the CLI module for processing through the configuration interface provided by VTY, interacts with the client module through the GoAhead-Web-Server server, and returns the processing result of the Web server to the client module for display after obtaining the JSON data. The device query module queries the operating data information of the device based on the CLI command line, and displays the operating data information through a dynamic data table. The device configuration module configures the device based on the CLI command line, and the device manages the network through the configuration information. The user configures the relevant parameters based on the Web page and sends them to the device for device network management. The management system makes the system easier to expand and maintain by using mapping files, and helps to realize asynchronous data interaction through the asynchrony of AJAX, improves user experience and system interactivity, and facilitates network management of the device.
[0049] 2. The present invention generates a quality coefficient by comprehensively analyzing JSON field data and mapping file data, and analyzes the mapping quality and evaluates whether the generated CLI command line string has hidden defects based on the comparison result of the quality coefficient ysx and the quality threshold, thereby effectively preventing CLI command line strings with hidden defects from being sent to the device, thereby preventing the device from being unable to operate normally due to configuration errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0051] Figure 1 It is a system module diagram of the present invention.
[0052] Figure 2 It is a schematic diagram of the system operation platform architecture of the present invention.
[0053] Figure 3 The figure is a schematic diagram of the processing flow inside the protocol stack during the device parameter query and configuration process of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] Example 1: Please refer to Figure 1 and Figure 2 As shown, the interactive network management system based on the Internet described in this embodiment includes a user management module, a client module, a CLI module, a server module, a device query module and a device configuration module:
[0056] User management module: mainly implements user authentication and local user level functions through the IPS interface provided by the AAA (Authentication-Authorization-Accounting) component. The Web server uses the IPS interface provided by the network socket communication component for network communication.
[0057] Provide account login operation for users, support user hierarchical management, that is, administrator users and ordinary users have different rights. Ordinary users only have basic equipment configuration and equipment query capabilities, while administrator users have complete equipment configuration and management capabilities, and can query and modify ordinary user information. Support login authentication and timeout mechanism. If the user logs in with an incorrect password for 3 times, it takes 1 minute to enter the password again. If the user does not perform any operation within 5 minutes after logging in, it needs to log in again. Support multi-user management;
[0058] The user accesses the target device through a browser (such as Internet Explorer, Google Chrome, Mozilla Firefox, etc.) on the client, enters the IP address of the device in the address bar to access the login page, and the Web server receives the user's access request and determines whether the user has failed to log in more than three times before. If not, the user account password is obtained, and the user identity authentication is performed through the IPS interface provided by the AAA component. If the identity authentication fails, a prompt message indicating that the user account password is incorrect is returned to the user, and the access failure returns to the login page; when the authentication identity is legal, the corresponding Web network management configuration page is returned to the user, and the user can then enter the corresponding page for operation.
[0059] Client module: This module runs on a Web browser and is responsible for providing a visual interface to users who have successfully authenticated. It parses the HTML language through an HTML parser and displays it, including the division of file structure and the implementation of Web page layout. When implementing the Web front-end module, we mainly pay attention to the user experience and ensure that the interface is beautiful, so that users can perform simple configuration and view relevant information of the device even if they do not understand the technology.
[0060] The front-end module of the client module network management system is based on the Bootstrap framework, using HTML+CSS+JavaScript to implement Web templates, CSS page styles and front-end logic respectively, and combining AJAX technology to realize the data interaction management of the front-end and back-end of the system;
[0061] The client module is divided into three aspects: structure layer, presentation layer and behavior layer, which correspond to HTML files, CSS files and JavaScript files respectively. However, in actual applications, the three cannot be completely separated. In this paper, JavaScript is written into HTML files.<scripttype="text / javascript"language="javascript"> Reference the JS code to the HTML file and introduce the CSS style file through the head tag, successfully achieving hierarchical division, making the code logic structure clearer and easier to maintain;
[0062] The structural layer is implemented using HTML. HTML structure documents use DOCTYPE to define the document type. The browser generally determines which HTML version to use to interpret the page code based on this declaration, and then adds navigation, content, and footers, etc., and then adds more detailed HTML elements on this page to complete the page, such as 、 <input> 、 <label>The final functional page generally includes the small title in the upper left corner, the middle content, the form title, the table content and the form content;
[0063] The presentation layer is implemented using CSS. CSS is the only source of presentation. Each functional file has its corresponding CSS file and is introduced into HTML through tags.
[0064] The behavior layer is implemented by JavaScript, using the jQurey function library, and performing secondary development of JavaScript, CSS, DOM, and AJAX through jQuery. When using it to process some mouse and keyboard events, AJAX requests, or some page effects, there is no need to write a lot of code, which greatly simplifies JavaScript programming. The jQuery function library is the centralized expression of JavaScript in the front-end module. It provides good support for AJAX operations and greatly reduces the amount of code. The dynamic interaction of the front-end page is implemented through JS scripts;
[0065] The user enters the IP address of the device in the browser. The web browser first verifies whether the Uniform Resource Locator URL is legal. If it is legal, the browser sends a request to the server. Otherwise, it returns an error message. The server returns the HTML file. When the browser parses the HTML code, it finds that the tag <link> The tag introduces the CSS style file, the browser will then send a request for the CSS file, and the server will return the CSS file. Similarly, through the The tag requests the image resource file. After receiving the page file, the browser will parse the HTML into a DOM tree. During the parsing process, it encounters a JS code. <script>标签,浏览器会停止解析DOM树,直接运行JS脚本;
[0066] 当遇到CSS代码时,浏览器将CSS解析成CSS规则树,并根据DOM树和CSS规则树来构造Render树,根据构造出来的Render树进行页面布局和渲染,加载前端界面。
[0067] CLI模块:通过映射文件将JSON格式数据转换为对应的CLI命令行字符串,从而实现设备的查询和配置,包括CLI虚拟终端和CLI适配层组成,通过Web协议栈实现HTTP协议框架与页面设备适配功能,与设备之间不感知HTTP数据,CLI命令行发送至服务器模块、设备配置模块以及设备查询模块;
[0068] CLI为命令行接口,是设备提供给用户一种基于文本的使用接口,用户可以通过Console串口连接或远程Telnet、SSH等方式进入设备配置界面,在图形化管理界面输入相应的命令来实现对设备的配置与管理,该方法因为操作简单、易于功能扩展、对客户端要求不高、运行速度快的特点,被广泛应用到各种嵌入式网络设备;
[0069] 嵌入式设备向用户提供一系列命令,用户可以登录设备输入下发命令,CLI负责解析用户输入的命令及其所携带的相应配置信息的报文,从而实现用户对设备的配置和管理,CLI支持错误命令打印、提示用户信息、日志记录等功能,同时CLI提供命令的在线帮助等功能,帮助用户更好地使用CLI;
[0070] 通过可定制配置文件的映射机制将JSON格式数据灵活映射至CLI命令行,实现了CLI网管与Web网管功能上的同步。
[0071] JSON(Java-Script-Object-Notation,JavaScript对象符号)是一种轻量级的、基于文本的、独立于语言的数据交换格式,源自ECMAScript编程语言标准,JSON可以表示四种基本类型:字符串、数字、布尔值和null,以及两种结构化类型:对象和数组,字符串是零个或多个Unicode字符的序列,没有字符数限制,单个字符也是一个字符串,结构化类型中对象是指零个或多个"名称 / 值”对的无序集合,其中名称是字符串,值是字符串、数字、布尔值、null、对象或数组;数组是指由零个或多个值组成的有序序列;
[0072] JSON的设计目标是使它最小化、可移植、文本化,并且是基于JavaScr ipt且不考虑数据显示的一个子集实现,能被Javascript直接解析。
[0073] 服务器模块:通过AJAX-GoActions解析器用于解析基于AJAX的Go Actions操作,并通过相关接口解析和封装JSON格式数据,将CLI命令行通过VTY(Virtual-Teletype-Terminal,虚拟终端)提供的配置接口返回到CLI模块处理,利用CLI模块的配置和管控功能,可以实现对于传统资源的访问,以及对设备的管控,通过GoAhead-Web-Server服务器与客户端模块交互,是处理Web页面动态数据显示与提交流程,通过调用GoA ction实现接口,获取相应的JSON数据,并将Web服务器的处理结果返回给客户端模块显示;
[0074] GoActions直接绑定开头为 / action / 的URI到一个定义好的C语言函数,以URI / action / NAME形式提交POST或GET请求时,将调用操作处理程序,然后该操作处理程序将通过NAME查找与之绑定好的函数并执行;
[0075] 利用AJAX技术构建GoActions实现局部数据交互,使用这种方法将前端模块与Web服务器在逻辑层面上分离,这样Web服务器与CLI模块只需专注业务的处理,客户端模块则只需负责解析和显示后台返回的结果,GoActions程序通过websDefineAction API进行声明注册,并在接口函数中定义GoActions过程名和回调函数,当返回值为0时,函数注册成功,当返回值为-1时,函数注册失败;
[0076] AJAX(Asynchronous-JavaScript-And-XML,异步JavaScript和XML)是一种用于创建快速动态网页的技术,它并不是一种新的前端开发技术,而是多种前端开发技术的集合,其中包括DOM、CSS、JAVA以及XmlHttpRequest技术等,这些Web技术在各个方面都表现优异,应用广泛;
[0077] AJAX的工作原理相当于在Web浏览器和Web服务器之间增加了一个过滤层——AJAX引擎,AJAX引擎的作用是分析用户的行为操作,异步处理Web服务器,可以减少网页向Web服务器重复发送信息请求,从而达到快速响应的目的;
[0078] 当用户在Web浏览器中发送HTTP请求时,通过JavaScript方式调用AJAX引擎,一旦AJAX引擎处理了部分数据,它就向Web服务器发送HTTP请求,并通过调用XmlHttpRequest对象与Web服务器交换数据,而且AJAX引擎在向Web服务器发送请求的时候,Web浏览器的页面可以保持不变,只有当Web服务器的消息返回给AJAX引擎的时候,Web浏览器的页面才会被局部刷新,这个过程发生在后台,用户无法感知,因此用户在发出页面请求之后,屏幕不会变成空白,后台处理的速度很快,同时用户还可以继续向Web服务器提交其他的数据请求;
[0079] GoAhead-Web-Server是为嵌入式实时操作系统(RTOS)量身定制的Web服务器,GoAhead-Web-Server构建在设备管理框架(Device-Managem ent-Framework)之上,用户可以像标准的Web-Services一样来部署自己的应用,不需要额外的编程,GoAhead-Web-Server支持SOAP客户端(Sim ple-Object-Access-Protocol,简单对象访问协议),XML-RPC客户端,各种Web浏览器和单独的Flash客户端,GoAhead-Web-Server支持一种类AS P的服务器端脚本语言,其语法形式和微软的ASP语法基本相同(Active-Server-Page),GoAhead-Web-Server是跨平台的服务器软件,可以稳定地运行在Windows,Linux和MacOSX操作系统之上,GoAhead-Web-Server是开放源代码的,这意味着你可以随意修改Web服务器的功能,这款WE B服务器非常小巧,它的WINCE版本编译后的大小还不到60k,它的输出通常也是面向一些小屏幕设备,在性能方面,使用一颗24MHz的68040处理器,它的响应速度为20次 / 秒,使用266MHz的Pentium处理器可以达到50次 / 秒的响应速度。
[0080] 设备查询模块:基于CLI命令行查询设备的状态信息、版本信息、本地SN、管理口信息、路由信息和告警信息,实现个性化定制状态页面,通过动态数据表格将相关状态数据信息灵活直观地展示出来;
[0081] 用户在前端页面进行查询操作后,Web服务器收到客户端的业务页面请求,就调用GoActions过程实现接口,获取待查询的JSON数据,通过映射文件将JSON数据转换CLI命令行,下发到CLI模块查询设备相关信息,假如查询成功,则CLI模块返回设备的相关状态数据给Web服务器,Web服务器再将查询结果通过HTTP协议传送到Web浏览器,由Web浏览器将Web服务器端的页面信息解析出来并以图表等形式显示在Web页面。该查询功能同时应用在配置页面,当用户配置下发后,后台读取相关的配置信息返回到前台,并转换成HTML表单显示在页面上方,即可实现同步查看配置信息。
[0082] 设备配置模块:基于CLI命令行实现以下功能配置:管理口配置,路由配置,Callhome配置(一种常用的Netconf设备主动连接控制器的配置选项),SNMP配置,域配置,接口域配置,Yang模型切换和双网口切换,数据中心互联设备通过这些配置实现对网络的管理,而用户则基于Web网页配置相关参数下发到设备中达到管理网络的目的;
[0083] 用户在前端页面进行设备参数配置操作后,Web浏览器提交业务配置页面表单,Web服务器执行GoActions过程实现接口,获取JSON格式的配置数据,再通过映射文件将JSON数据转换成CLI命令行,Web服务器再将命令行字符串发送到CLI模块进行大规模业务配置,假如配置成功,则返回JSON格式设备配置数据给Web服务器,Web服务器输出包含动态数据的业务页面,若配置失败则返回错误提示给Web服务器,经过Web服务器处理后将错误的字符串返回到页面,用户在配置页面进行参数配置操作时,用户配置的数据先由校验表单检查输入数据是否符合要求,格式错误或非法字符等不符合要求的数据,在前台页面进行返错提示,该设计提高了系统的安全性,保证了设备运行稳定;
[0084] 参阅说明书附图3所示,首先进行Web协议栈初始化,初始化包括全局变量、数据结构等,通过用户管理模块的认证,接着注册GoActions过程,再调用这些函数接口实现JSON数据到CLI命令行的模型适配来查询数据或处理用户设置,并将查询结果或处理结果以HTTP响应的方式返回给页面,操作完成后关闭Web服务器并释放资源。
[0085] 本申请通过CLI模块通过映射文件将JSON格式数据转换为对应的C LI命令行字符串,实现设备的查询和配置,服务器模块通过AJAX-GoActi ons解析器解析基于AJAX的GoActions操作,将CLI命令行通过VTY提供的配置接口返回到CLI模块处理,通过GoAhead-Web-Server服务器与客户端模块交互,获取JSON数据后将Web服务器的处理结果返回给客户端模块显示,设备查询模块基于CLI命令行查询设备的运行数据信息,通过动态数据表格展示运行数据信息,设备配置模块基于CLI命令行对设备进行配置,设备通过配置信息对网络进行管理,用户基于Web网页配置相关参数下发到设备中进行设备网络管理。该管理系统通过使用映射文件使得系统更易于扩展和维护,通过AJAX的异步性有助于实现异步数据交互,提高用户体验和系统的交互性,便于对设备进行网络管理。
[0086] 实施例2:A、用户管理模块通过AAA(Authentication-Authorization-Accounting,认证授权计费)组件提供的IPS接口实现用户身份认证和本地用户级别功能,Web服务器使用网络Socket通信组件提供的IPS接口进行网络通信;
[0087] 用户首次访问Web服务器时,用户管理模块通过AAA组件的IPS接口发送认证请求。AAA组件根据认证请求,验证用户的身份信息,例如用户名和密码。如果验证通过,AAA组件返回认证成功的消息,并将用户的身份信息与相应的权限(授权信息)关联;
[0088] 通过AAA组件的IPS接口,用户管理模块可以查询或设置本地用户的级别功能,这可能包括用户的权限、角色或其他与用户相关的配置信息,用户管理模块通过IPS接口将用户的级别功能应用到系统中,以确保用户在系统中具有相应的权限和功能;
[0089] Web服务器使用网络Socket通信组件提供的IPS接口监听指定的网络端口,等待客户端的连接,当用户通过浏览器或其他客户端发起请求时,Web服务器通过Socket通信组件接受连接请求,建立与客户端的通信通道,一旦建立通信通道,Web服务器通过Socket通信组件接收客户端的HTTP请求,
[0090] 根据请求的内容,Web服务器可能需要验证用户的身份,此时,它可以通过IPS接口与用户管理模块进行通信,获取用户的认证信息,Web服务器根据客户端的请求,执行相应的业务逻辑,这可能包括查询数据库、调用其他服务或执行本地操作,在需要进行用户身份验证或获取用户级别功能时,Web服务器通过Socket通信组件调用AAA组件的IPS接口,与用户管理模块进行交互;Web服务器生成相应的HTTP响应,通过Socket通信组件的IPS接口将响应发送回客户端,如果用户需要登录或执行受限制的操作,Web服务器可能会通过IPS接口与AAA组件通信,以确保用户有权执行相应的操作。
[0091] B、客户端模块运行在Web浏览器上,负责向身份认证成功的用户提供可视化界面,通过HTML解析器解析HTML语言并显示出来,包括文件结构的划分和Web页面布局的实现,在实现Web前端模块时主要注意用户体验度,保证界面美观的前提,确保用户即使不懂得技术也可以进行简单的配置,查看设备的相关信息;
[0092] 利用HTML解析器解析HTML语言,确保页面结构的正确性,使用CSS进行样式设计,以保证页面的美观性和用户友好性,利用JavaScript等前端技术实现动态页面渲染,提高用户交互性;
[0093] 将页面内容划分为合理的文件结构,包括HTML、CSS、JavaScript等文件,采用响应式设计,确保页面在不同设备和屏幕尺寸上都能良好呈现,在界面上显示用户的身份认证信息,以便用户了解其当前的登录状态;
[0094] 设计直观的设备信息展示页面,包括设备的基本信息、状态、性能等方面的内容,使用图表、图形等可视化元素,提高用户对设备信息的理解;
[0095] 通过HTML解析器解析HTML语言并显示出来包括以下步骤:
[0096] 从服务器端获取HTML内容,可以通过HTTP请求或其他通信方式获取,使用HTML解析器对获取的HTML内容进行解析,常见的HTML解析器有浏览器内置的解析引擎(如WebKit、Gecko、Trident等)或第三方JavaScript库(如jQuery、DOMParser等),解析HTML生成DOM树,表示HTML文档的结构和层次关系,DOM树是浏览器用于表示页面结构的内部数据结构,将HTML中的元素与相应的样式进行匹配,应用CSS规则,确定每个元素的显示样式,这包括颜色、字体、布局等方面,执行HTML中包含的JavaScript脚本,这些脚本可能包含页面交互、动态内容生成等功能,根据DOM树和样式信息,进行页面的渲染,浏览器将元素布局在页面上,并将其显示给用户。
[0097] C、CLI模块:通过映射文件将JSON格式数据转换为对应的CLI命令行字符串,从而实现设备的查询和配置,包括CLI虚拟终端和CLI适配层组成,通过Web协议栈实现HTTP协议框架与页面设备适配功能,与设备之间不感知HTTP数据;
[0098] CLI模块通过映射文件将JSON格式数据转换为对应的CLI命令行字符串包括以下步骤:
[0099] 从Web前端或其他模块接收到JSON格式的数据,该数据可能包含设备的查询和配置信息,加载映射文件,映射文件通常包含JSON数据字段到CLI命令的映射关系,这个文件可以是一个配置文件,定义了如何将特定字段映射为相应的CLI命令,解析接收到的JSON数据,将JSON数据转化为内部数据结构,以便在映射过程中进行处理,根据映射文件中定义的规则,将JSON数据中的各个字段映射为相应的CLI命令和参数,这可能包括将JSON数据中的键值对映射为命令行参数,定义命令的顺序和结构通过映射得到的结果,生成最终的CLI命令行字符串,这可能涉及到拼接字符串、处理特殊字符、格式化等操作,在映射过程中实时分析映射质量,评估生成CLI命令行字符串是否存在隐藏缺陷,利用设备通信接口(如SSH、Telnet等)将生成的CLI命令发送给目标设备,在这一步骤中,可能需要处理身份验证、建立安全连接等操作等待设备的响应,将设备返回的信息解析为可用的数据结构,解析可能包括从命令输出中提取关键信息,处理特殊格式或结构的响应等;
[0100] 在映射过程中实时分析映射质量,评估生成CLI命令行字符串是否存在隐藏缺陷包括以下步骤:
[0101] 在映射过程中,实时获取字段取值范围偏差指数、字段匹配度、映射卡顿频率以及映射复杂度系数;
[0102] 在映射过程中生成质量系数,质量系数用于判断映射质量是否合格,质量系数越大,表明映射质量越好;
[0103] 质量系数的计算逻辑为:对字段取值范围偏差指数、字段匹配度、映射卡顿频率以及映射复杂度系数进行归一化处理,归一化处理为:分别为字段取值范围偏差指数、字段匹配度、映射卡顿频率以及映射复杂度系数乘上比例系数,比例系数用于使字段取值范围偏差指数、字段匹配度、映射卡顿频率以及映射复杂度系数的取值范围相近,避免某一参数取值范围过大或过小(参数过度影响质量系数或过欠影响质量系数),依据字段取值范围偏差指数、映射卡顿频率以及映射复杂度系数与质量系数成反比关系,字段匹配度与质量系数成正比关系,综合计算字段取值范围偏差指数、字段匹配度、映射卡顿频率以及映射复杂度系数后得到质量系数ysx,计算表达式为:
[0104] 式中,zpd为字段匹配度,qzp为字段取值范围偏差指数,kdp为映射卡顿频率,fys为映射复杂度系数,a1、a2、a3、a4分别为字段匹配度、字段取值范围偏差指数、映射卡顿频率以及映射复杂度系数的比例系数,且a1、a2、a3、a4均大于0;
[0105] 获取质量系数ysx后,将质量系数ysx与质量阈值进行对比,若质量系数ysx<质量阈值,分析映射质量差,评估生成CLI命令行字符串存在隐藏缺陷,若质量系数ysx≥质量阈值,分析映射质量好,评估生成CLI命令行字符串不存在隐藏缺陷。
[0106] 本申请通过综合分析JSON字段数据以及映射文件数据生成质量系数,并依据质量系数ysx与质量阈值的对比结果分析映射质量和评估生成CLI命令行字符串是否存在隐藏缺陷,有效避免存在隐藏缺陷的CLI命令行字符串下发至设备,进而避免设备配置错误无法正常运行。
[0107] 当生成的CLI命令行字符串存在隐藏缺陷时,可能会导致设备配置错误无法正常运行,具体为:
[0108] 1)语法错误:生成的CLI命令行字符串可能包含语法错误,如命令参数的顺序不正确、缺少必要的参数、参数值的格式错误等,这样的语法错误可能导致设备拒绝配置命令或配置不正确;
[0109] 2)逻辑错误:映射规则中的逻辑错误或不正确的规则可能导致生成的CLI命令行字符串在语法上是正确的,但在逻辑上是错误的,例如,配置了相互冲突的参数或不一致的配置项;
[0110] 3)错误的设备状态:生成的CLI命令行字符串可能假设了设备的某种状态,而实际设备状态可能与预期不符,这可能导致配置命令无法正确应用,因为设备处于不允许的状态;
[0111] 4)安全性问题:生成的CLI命令行字符串可能存在安全性问题,如未经充分验证的用户输入,可能导致设备被注入恶意命令,这可能导致配置不当、安全漏洞或拒绝服务等问题;
[0112] 5)版本兼容性问题:映射规则可能基于特定版本的设备或CLI命令版本,而实际设备的版本可能不同,这可能导致生成的命令在实际设备上无法正常运行;
[0113] 6)不完整的配置:映射规则可能无法正确处理所有可能的配置情况,导致生成的CLI命令行字符串缺乏某些必要的配置项,这可能导致设备处于不完整或不一致的状态;
[0114] 7)缺乏错误处理:生成的CLI命令行字符串可能缺乏足够的错误处理机制,无法捕捉和处理设备返回的错误信息,这使得在配置失败时难以诊断和解决问题;
[0115] 8)网络通信问题:生成的CLI命令行字符串可能无法通过网络正确传递到设备,或者设备的响应无法正确传递回管理系统,这可能导致配置命令无法正常应用或得到正确的响应。
[0116] 需要注意的是,当生成CLI命令行字符串存在明显缺陷时,可以通过命令行字符串检测系统检测出来,但当CLI命令行字符串存在较小缺陷(即隐藏缺陷)时,命令行字符串检测系统并不能检测出,具有隐藏缺陷的CLI命令行字符串下发设备会导致设备配置可能出现错误,从而无法正常运行。
[0117] 字段匹配度的计算表达式为:zpd=NMT / TNF;式中,NMT表示实际数据类型与期望数据类型相匹配的字段数量,TNF表示总字段数量,字段匹配度越小,表明JSON数据中的字段与映射文件中规定的数据类型越不匹配,从而会导致映射失败或生成错误的CLI命令行字符串。
[0118] 字段取值范围偏差指数的计算表达式为:
[0119] 式中,qzs为实时获取的字段取值,qzmin~qzmax表示映射文件规定字段的取值范围,字段取值范围偏差指数越大,表明实时获取的字段取值越偏离映射文件规定字段的取值范围,映射可能失败或生成不合法的CLI命令行字符串。
[0120] 映射卡顿频率的计算表达式为:kdp=YKC / TC;式中,YKC表示映射过程中的卡顿次数,TC表示映射时长,映射卡顿频率越大,表明在映射过程中出现的卡顿次数越多,容易导致生成的CLI命令行字符串中出现文件丢失或文件错误等问题。
[0121] 映射复杂度系数的计算表达式为:式中,F(t)为映射文件的实时复杂度变化量,[tx,ty]为条件判断数量预警的时段,[ti,tj]为嵌套映射数量预警的时段;
[0122] 当映射文件中的条件判断数量以及嵌套映射数量过多时,会导致映射规则变得复杂,可能导致映射过程的混乱和错误,因此,条件判断数量超过判断数量阈值的时段为条件判断数量预警的时段,嵌套映射数量超过映射数量阈值的时段为嵌套映射数量预警的时段。
[0123] D、服务器模块通过AJAX-GoActions解析器用于解析基于AJAX的GoActions操作,并通过相关接口解析和封装JSON格式数据,将CLI命令行通过VTY(Virtual-Teletype-Terminal,虚拟终端)提供的配置接口返回到CLI模块处理,利用CLI模块的配置和管控功能,可以实现对于传统资源的访问,以及对设备的管控,通过GoAhead-Web-Server服务器与客户端模块交互,是处理Web页面动态数据显示与提交流程,通过调用GoAction实现接口,获取相应的JSON数据,并将Web服务器的处理结果返回给客户端模块显示;
[0124] 服务器模块通过AJAX-GoActions解析器用于解析基于AJAX的GoA ctions操作包括以下步骤:
[0125] 监听服务器端的HTTP端点,接收来自客户端的AJAX请求,这通常涉及到在服务器端设置相应的路由或终点,从AJAX请求中提取必要的参数,这可能涉及解析URL参数、POST数据、HTTP头等,进行请求验证,确保请求是合法且具有必要的权限,这可以涉及用户身份验证、权限检查等,将接收到的AJAX请求传递给AJAX-GoActions解析器,该解析器负责解析请求并执行相应的GoActions操作,AJAX-GoActions是一种用于处理AJAX请求的框架,它能够将请求映射到Go语言中的相应操作,
[0126] AJAX-GoActions解析器会根据预定义的规则解析AJAX请求,并将其映射到相应的GoActions操作,GoActions操作可能是预定义的一组操作,例如在服务器上执行特定的功能或返回特定的数据,在执行GoActions操作之后,服务器可能需要进行一些后续处理,例如生成响应、记录日志、更新数据库等,根据GoActions操作的执行结果,生成适当的AJAX响应,这可能是JSON格式的数据、HTML片段或其他格式,具体取决于应用程序的需求。
[0127] E、设备查询模块基于CLI命令行查询设备的状态信息,版本信息,本地SN,管理口信息,路由信息和告警信息,实现个性化定制状态页面,通过动态数据表格将相关状态数据信息灵活直观地展示出来;
[0128] 确定用于查询设备信息的CLI命令,每个需要查询的信息可能需要一个或多个CLI命令来获取,设计规则或映射文件,将用户请求的状态信息映射为相应的CLI命令,这可能包括参数的映射、命令的组合等,使用设备通信接口(如SSH、Telnet等)执行设计的CLI命令,获取设备的状态信息,这可能需要处理身份验证和建立安全连接,解析从设备返回的CLI命令输出,对于每个查询,可能需要编写解析器来提取关键信息,如设备状态、版本号、SN、管理口信息、路由信息和告警信息;
[0129] 将解析得到的设备信息转化为适用于动态数据表格的数据格式,这可以是JSON、XML或其他适合前端展示的数据格式,设计用于展示设备状态信息的个性化定制页面,这可能包括使用HTML、CSS、JavaScript等前端技术来创建用户友好的界面,在状态页面中,通过AJAX等技术将前端与后端进行交互,请求设备信息并接收服务器返回的数据,利用前端技术,将后端返回的设备信息动态地展示在状态页面上,可能通过动态数据表格或其他交互式元素进行展示。
[0130] F、设备配置模块基于CLI命令行实现以下功能配置:管理口配置,路由配置,Callhome配置(一种常用的Netconf设备主动连接控制器的配置选项),SNMP配置,域配置,接口域配置,Yang模型切换和双网口切换,数据中心互联设备通过这些配置实现对网络的管理,而用户则基于Web网页配置相关参数下发到设备中达到管理网络的目的;
[0131] 确定用于配置设备的CLI命令,每个配置选项可能需要一个或多个CLI命令来实现,设计规则或映射文件,将用户在Web网页上进行的配置映射为相应的CLI命令,这可能包括参数的映射、命令的组合等,在服务器端监听Web网页上用户的配置请求,这可能涉及设置HTTP端点或类似的机制,对用户提交的配置请求进行验证,确保请求是合法的且具有必要的权限,这可能涉及用户身份验证和权限检查,解析从Web网页接收到的用户配置请求,这可能包括解析JSON数据或通过表单收集的数据,根据解析得到的用户配置信息,生成对应的CLI命令,这可能涉及使用预定义的映射规则,使用设备通信接口执行生成的CLI命令,将用户的配置应用到设备上,这可能需要处理身份验证和建立安全连接;
[0132] 在配置生效后,可能需要进行一些后续处理,例如生成日志、通知用户配置成功等,配置的执行结果反馈给用户,以便用户了解配置是否成功应用,设计Web网页界面,提供给用户配置的交互界面,这可能涉及使用HTML、CSS、JavaScript等前端技术。
[0133] 实施例3:本实施例所述一种基于互联网的交互式网络管理方法,所述管理方法包括以下步骤:
[0134] 认证端通过AAA(Authentication-Authorization-Accounting,认证授权计费)组件提供的IPS接口实现用户身份认证和本地用户级别功能,Web服务器使用网络Socket通信组件提供的IPS接口进行网络通信,在Web浏览器上向身份认证成功的用户提供可视化界面,通过HTML解析器解析HTML语言并显示出来,包括文件结构的划分和Web页面布局的实现,在实现Web前端模块时主要注意用户体验度,保证界面美观的前提,确保用户即使不懂得技术也可以进行简单的配置,查看设备的相关信息,通过XML映射文件将JSON格式数据转换为对应的CLI命令行字符串,从而实现设备的查询和配置,包括CLI虚拟终端和CLI适配层组成,通过Web协议栈实现HTTP协议框架与页面设备适配功能,通过AJAX-GoA ctions解析器用于解析基于AJAX的GoActions操作,并通过相关接口解析和封装JSON格式数据,将CLI命令行通过VTY(Virtual-Teletype-Termi nal,虚拟终端)提供的配置接口发送到CLI处理,利用CLI的配置和管控功能,可以实现对于传统资源的访问,以及对设备的管控,通过GoAhead-Web-Server服务器与客户端模块交互,是处理Web页面动态数据显示与提交流程,通过调用GoAction实现接口,获取相应的JSON数据,并将Web服务器的处理结果返回给Web浏览器显,查询端基于CLI命令行查询设备的状态信息,版本信息,本地SN,管理口信息,路由信息和告警信息,实现个性化定制状态页面,通过动态数据表格将相关状态数据信息灵活直观地展示出来,配置端基于CLI命令行实现以下功能配置:管理口配置,路由配置,Callhome配置(一种常用的Netconf设备主动连接控制器的配置选项),SNMP配置,域配置,接口域配置,Yang模型切换和双网口切换,数据中心互联设备通过这些配置实现对网络的管理,而用户则基于Web网页配置相关参数下发到设备中达到管理网络的目的。
[0135] 上述公式均是去量纲取其数值计算,公式是由采集大量数据进行软件模拟得到最近真实情况的一个公式,公式中的预设参数由本领域的技术人员根据实际情况进行设置。
[0136] 在本说明书的描述中,参考术语"一个实施例”、"示例”、"具体示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
[0137] 以上公开的本发明优选实施例只是用于帮助阐述本发明。优选实施例并没有详尽叙述所有的细节,也不限制该发明仅为的具体实施方式。显然,根据本说明书的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本发明的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本发明。本发明仅受权利要求书及其全部范围和等效物的限制。< / script> < / label>
Claims
1. An interactive network management system based on the Internet, characterized in that: It includes user management module, client module, CLI module, server module, device query module and device configuration module: User management module: authenticates users through the IPS interface provided by the AAA component; Client module: Provides a visual interface to users who have successfully authenticated their identities on a Web browser, and parses and displays HTML language through an HTML parser; CLI module: converts JSON format data into corresponding CLI command line strings through mapping files to query and configure devices; Server module: parses AJAX-based GoActions operations through the AJAX-GoActions parser, returns the CLI command line to the CLI module for processing through the configuration interface provided by VTY, interacts with the client module through the GoAhead-Web-Server server, obtains JSON data, and returns the processing results of the Web server to the client module for display; Device query module: query the device's operating data information based on the CLI command line, and display the operating data information through a dynamic data table; Device configuration module: configure the device based on the CLI command line. The device manages the network through the configuration information. Users configure relevant parameters based on the Web page and send them to the device for device network management. Analyzing the mapping quality in real time during the mapping process and evaluating whether there are hidden defects in the generated CLI command line string include the following steps: During the mapping process, the field value range deviation index, field matching degree, mapping jam frequency, and mapping complexity coefficient are obtained in real time; The quality coefficient is generated after comprehensively analyzing the field value range deviation index, field matching degree, mapping jam frequency and mapping complexity coefficient. The quality coefficient is used to determine whether the mapping quality is qualified; The calculation logic of the quality coefficient is as follows: normalize the field value range deviation index, field matching degree, mapping jamming frequency, and mapping complexity coefficient. The field value range deviation index, mapping jamming frequency, and mapping complexity coefficient are inversely proportional to the quality coefficient, and the field matching degree is directly proportional to the quality coefficient. The quality coefficient is obtained by comprehensively calculating the field value range deviation index, field matching degree, mapping jamming frequency, and mapping complexity coefficient. ; Get the quality factor Then, the quality coefficient Compared with the quality threshold, if the quality coefficient < quality threshold, poor quality of analysis mapping, evaluation of hidden defects in the generated CLI command line string, if the quality coefficient ≥Quality threshold, the quality of the analysis and mapping is good, and the generated CLI command line string is evaluated to have no hidden defects; The calculation expression of the field matching degree is: ; In the formula, Indicates the number of fields whose actual data type matches the expected data type. Indicates the total number of fields; The calculation expression of the field value range deviation index is: ; In the formula, Get the field value in real time. Indicates the value range of the field specified in the mapping file; The calculation expression of the mapping jam frequency is: ; In the formula, Indicates the number of freezes during the mapping process. Indicates the mapping duration; The calculation expression of the mapping complexity coefficient is: ; In the formula, is the real-time complexity change of the mapping file, The time period for conditional judgment quantity warning, The time period for the nested mapping quantity alert; The server module is used to parse the AJAX-GoActions operation based on AJAX by the AJAX-GoActions parser, including the following steps: Listen to the HTTP endpoint on the server side, receive AJAX requests from the client, extract parameters from the AJAX request, including URL parameters, POST data, and HTTP headers, perform request verification to ensure that the request is legal and authorized, and pass the received AJAX request to the AJAX-GoActions parser. The AJAX-GoActions parser parses the request and executes the GoActions operation. The AJAX-GoActions parser parses the AJAX request according to predefined rules and maps the AJAX request to the corresponding GoActions operation. After executing the GoActions operation, the server performs subsequent processing, including generating a response, recording logs, and updating the database. An AJAX response is generated according to the execution result of the GoActions operation. The AJAX response includes data in JSON format and HTML fragments.
2. The interactive network management system based on the Internet according to claim 1, characterized in that: The CLI module converts the JSON format data into the corresponding CLI command line string through the mapping file, including the following steps: Receive JSON format data from the Web front end, load a mapping file, the mapping file includes a mapping relationship between JSON data fields and CLI commands, parse the received JSON data, convert the JSON data into an internal data structure, map each field in the JSON data to a corresponding CLI command and parameter according to the rules defined in the mapping file, generate a final CLI command line string, analyze the mapping quality in real time during the mapping process, evaluate whether there are hidden defects in the generated CLI command line string, and when there are no hidden defects in the generated CLI command line string, send the generated CLI command to the target device through the device communication interface.
3. An interactive network management system based on the Internet according to claim 2, characterized in that: The client module parses the HTML language through the HTML parser and displays it, including the following steps: Obtain HTML content from the server through HTTP request, and use HTML parser to parse the obtained HTML content. HTML parser includes browser's built-in parsing engine or third-party JavaScript library, parses HTML to generate DOM tree, DOM tree is used to represent the internal data structure of page structure, matches elements in HTML with corresponding styles, applies CSS rules, determines the display style of each element, and executes JavaScript scripts contained in HTML. The scripts include page interaction and dynamic content generation, and render the page according to DOM tree and style information.
4. The interactive network management system based on the Internet according to claim 3, characterized in that: The client module includes a structure layer, a presentation layer and a behavior layer. The structure layer corresponds to HTML files, the presentation layer corresponds to CSS files, and the behavior layer corresponds to JavaScript files. However, in actual applications, the three cannot be completely separated. JavaScript is referenced in the HTML file, and the CSS style file is introduced through the head tag for hierarchical division.
5. The interactive network management system based on the Internet according to claim 4, characterized in that: The structure layer is implemented by HTML, and the HTML structure document defines the document type by DOCTYPE; The presentation layer is implemented through CSS. Each functional file has a corresponding CSS file and is introduced into HTML through tags; The behavior layer is implemented by JavaScript, using the jQurey function library, and performing secondary development on JavaScript, CSS, DOM, and AJAX through jQuery.
6. The interactive network management system based on the Internet according to claim 1, characterized in that: The client module includes the division of file structure and the layout of Web pages; The CLI module includes a CLI virtual terminal and a CLI adaptation layer, which implements HTTP protocol framework and page device adaptation through the Web protocol stack, and the CLI module and the device are not aware of HTTP data; The device query module queries the device operation data information based on the CLI command line, and the operation data information includes status information, version information, local SN, management port information, routing information and alarm information; The device configuration module configures the device based on the CLI command line, and the configuration includes management port configuration, routing configuration, Callhome configuration, SNMP configuration, domain configuration, interface domain configuration, Yang model switching and dual network port switching.
7. An interactive network management method based on the Internet, implemented by the management system according to any one of claims 1 to 6, characterized in that: The management method comprises the following steps: S1: The authentication end authenticates the user through the IPS interface provided by the AAA component; S2: Provide a visual interface to the user who has successfully authenticated his / her identity on a web browser, and parse the HTML language through an HTML parser and display it; S3: Converts JSON format data into corresponding CLI command line strings through XML mapping files; S4: AJAX-GoActions parser is used to parse AJAX-based GoActions operations, and parse and encapsulate JSON format data through relevant interfaces; S5: Send the CLI command line to the CLI for processing through the configuration interface provided by VTY, and use the CLI's configuration and management functions to access traditional resources; S6: The GoAhead-Web-Server interacts with the client, calls the GoAction implementation interface, obtains JSON data, and returns the processing result of the Web server to the Web browser for display; S7: The query end queries the running status data of the device based on the CLI command line and displays the running status data through a dynamic data table; S8: The configuration end configures the device based on the CLI command line, the device manages the network through the configuration letter, and the user configures relevant parameters based on the Web page and sends them to the device for network management.
Citation Information
Patent Citations
Browser page display data processing method and apparatus
CN108733499A
Page file conversion method and device, electronic equipment and storage medium
CN113420532A