Disclosure of Invention
The invention provides a software defined metropolitan area network control system which is rapid to deploy and agilely developed for overcoming the defects of the prior art and saving the expenditure of equipment replacement for supporting openflow.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a software defined metropolitan area network control system comprising: an application module and control module and infrastructure equipment;
the application module and the control module are arranged on the web server and perform data transmission mutually, and the control module issues a device configuration instruction to the infrastructure equipment;
the application module is a web service module based on a Django framework and specifically comprises a model module, a template unit and a view module;
the model module sets the relation mapping between the business object and the database;
the template unit manages the presentation logic and presents Web content by matching a built-in template and an HTML file;
the view module processes business logic, including the process from http request to response;
the control module comprises an SDWAN controller;
the infrastructure equipment is network equipment applying the software defined metropolitan area network control system.
The principle of the network control system is that the existing host or similar equipment is used as a server, an application program module is arranged on the server, so that communication interaction is carried out between network equipment of other infrastructure and the application program, and the application program carries out corresponding network change and configuration deployment according to the network state sent by the network equipment of the infrastructure; in order to achieve the above purpose, the network control system is further provided with an SDWAN controller, and the SDWAN controller and the infrastructure issue an equipment configuration instruction through remote login (such as telnet, snmp, and the like) to complete corresponding network change, such as establishing an mpls vpn private line, allocating bandwidth resources as required, and the like.
Furthermore, the SDWAN controller is provided with a function facing the infrastructure equipment and modifying the network setting and parameters of the infrastructure equipment, and the function modifying the network setting and parameters of the infrastructure equipment is provided with an API (application program interface).
Furthermore, the template unit comprises an mpls construction template, a route-map configuration template and a plurality of webpage templates.
Further, the model module comprises a user management unit and a work order management unit;
the application module is also provided with a database, and the user management unit and the work order management unit are provided with corresponding user and work order data structures and storage information in a setting library.
Further, the view module specifically includes a plurality of view functions, where the view functions include at least 1 view function calling model module, and are used to process an HTTP request initiated by a user, render a corresponding template file through a template unit, and return the template file to the user;
the view function is also connected with the SDWAN controller, and the SDWAN controller function is accessed through an API (application program interface) of the SDWAN controller function.
Further, the infrastructure equipment includes PCs, routers and switches.
Furthermore, the application module realizes user management, metropolitan area network private line service and private line cloud service through the cooperation of the model module, the template unit and the view module.
Further, the SDWAN controller configures and deploys the infrastructure equipment in an mpls pn and lineloud automated deployment mode, wherein the automated deployment mode conforms to the protocols of bgp, mpls and ospf.
Furthermore, the application module is also provided with a URL distribution unit for analyzing the page request of the URL and distributing the page request to a corresponding function in the view module for processing.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the invention designs a framework comprising an application program module and a controller to control the flow behavior of the traditional network, thereby achieving the purpose of replacing openflow protocol to realize the fine-grained management of the flow behavior, saving the network upgrading and modifying cost and providing technical scheme support for saving enterprise network transformation.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
A software defined metropolitan area network control system, as shown in fig. 1, comprising: an application module and control module and infrastructure equipment;
the application module and the control module are arranged on the web server and mutually transmit data, a work order system is established to provide network services for users, the system reads the network resource information related to the system resource pool and presents the information at the front end, and a client can submit a work order according to actual needs; the control module issues a device configuration instruction to the infrastructure equipment, reads work order information to perform network change by self, achieves the effect of network resource allocation as required, and charges according to the user flow use condition to achieve the demand of paying according to the flow;
the application module is a web service module based on a Django framework and specifically comprises a model module, a template unit and a view module;
the model module sets Object-Relational Mapping (ORM) of a business Object and a database, each model corresponds to one or more unique tables in the database, is used for constructing and operating data in application and comprises necessary fields and behaviors of corresponding stored data;
the template unit manages and expresses logic, and the Web content is presented by matching a built-in template and an HTML file, wherein the template comprises a static part output by the HTML and a special grammar which can be used for inserting dynamic content and can be non-HTML;
the view module processes service logic, including a process from http request to response, wherein logic for processing user request and returning response is encapsulated in a function; in the process of processing logic, the model module and the template unit are called correspondingly according to requirements, data reading is carried out, pages are returned to infrastructure equipment, and the like;
the control module comprises an SDWAN controller, the SDWAN controller performs flow control, flow path dynamic planning, network link quality regulation and control and network link attribute control on the whole network of the network control system, and establishes a special line through an mpls and/or routing strategy;
the infrastructure equipment defines network equipment of the metropolitan area network control system for the application software.
In this embodiment, the SDWAN controller is provided with a function facing the infrastructure device and modifying network settings and parameters of the infrastructure device, and the function modifying network settings and parameters of the infrastructure device is provided with an API interface. Specifically, including mpls and lineloud automated deployment;
the mpls pn carries out flow isolation in a configuration vrf mode, and further completes the construction of a special line; when the user deploys the mpls vpn, the user needs to submit related vrf (virtual Routing Forwarding instance) tags, rd (route distingguisher) and rt (route target) information on the work order system;
the routing strategy establishes a special line, namely the direction of a data packet is controlled by configuring a strategy routing form, and route-map is configured under an interface to complete flow forwarding; the routing strategy has the problem that the flow between different user groups can not be communicated, in the application scene of mpls pn, vrf can form a natural isolation area, and vrf is cancelled, so that the isolation is realized through the combination of acl and route-map; specifically, the QoS behavior is configured in the system, the configuration path is obtained first, that is, the calculated optimal path is obtained, and then the configuration is issued to the network device.
In this embodiment, the template unit includes an mpls pn construction template, a route-map configuration template, and a plurality of Web page templates, and the template implements dynamic presentation of a Web page generated by the template by means of template tags, filters, flow control statements, template inheritance, and the like, in cooperation with css and js scripts.
In this embodiment, the model module includes a user management unit and a work order management unit, and the management units are each composed of a plurality of custom fields, and can be used for operations such as creation, reading, modification, deletion and the like; specifically, the operation is carried out through functions of Django ORM such as get, filter, save, delete and the like; the method is also applied to cache optimization, and the data inquired from the database is stored in a memory in a class object form for being extracted at any time; instead of querying the database when the ORM query command executes, the select operation of the database is actually performed when the query result is needed.
The application module is also provided with a database, and the user management unit and the work order management unit are provided with corresponding user and work order data structures and storage information in a setting library; specifically, the database is a MySQL database.
In this embodiment, the view module specifically includes a plurality of view functions, where the view functions include at least 1 view function calling model module, and are used to process an HTTP request initiated by a user, render a corresponding template file through a template unit, and return the template file to the user;
the view function is also connected with the SDWAN controller, the SDWAN controller function is accessed through an API (application program interface) of the SDWAN controller function, and the SDWAN controller can take the existing function as the API interface and can also adopt a new function for calling the existing function as the API interface; specifically, the system is matched with an SDWAN controller, a user submits a special line work order requirement after logging successfully, if the user needs a vpn service, an mpls service is selected, and if the user needs a special line cloud service, the linecloud is clicked; the application module serves as a background and provides corresponding services for the user according to related work order requirements.
In this embodiment, the infrastructure equipment includes PCs, routers, and switches.
In this embodiment, the application module implements user management, metropolitan area network private line service, and private line cloud service by the cooperation of the model module, the template unit, and the view module;
specifically, the user management comprises the steps of setting a model of a user in a model module, wherein the model is provided with a role type and is used for distinguishing 3 authorities of a super manager, an administrator and the user, setting a login page and a function for processing login logic in a template unit and a view module, wherein the functions comprise the input of an account number and a password, performing database query, and jumping to a corresponding user interface if login is successful; if the login is unsuccessful, prompting that the account number and the password are wrong, keeping the interface unchanged, and waiting for the user to input again;
in the special service of the metropolitan area network, self-service configuration is carried out according to rd (XX: NN) and rt (XX: NN) which are already applied by a user, and whether the service is carried out is judged according to whether rd and rt labels are already applied under the role of the user. If no rd and rt exist under the user name, an application needs to be made to an administrator; the administrator can apply to the system to allocate rd and rt for the user, can manually configure rd and rt of the user, and starts the private line change work for the user; the super administrator has the right to delete rd and rt; in addition, the rd and the rt can be applied to the system to be allocated to the user, or the rd and the rt of the user can be manually configured, and the special line change work is started for the user;
a user perceives network bandwidth to purchase corresponding private line cloud services from a system according to requirements, and the system configures a routing strategy according to an ip address of the user; if the database does not have related ip records, the user needs to manually input the data, and then the change process is initiated through the audit of an administrator; an administrator can manually add an ip address to a certain user and configure a corresponding routing strategy for the user; the super administrator can add and delete the ip address of a certain user and can configure a corresponding routing strategy for the certain user.
In this embodiment, because the existing metropolitan area network/wide area network adopts the protocols of bgp, ospf and mpls, the SDWAN controller performs corresponding configuration and deployment on the infrastructure equipment through mpls and linecloud automated deployment modes, and issues a corresponding configuration policy by reading a work order requirement and combining configured template information; by automatic deployment, enterprise information among different regions can be interconnected and intercommunicated, and a network logic layer is established; in order to guarantee the network connection quality, the network logic layer imitates the network of the existing operator, and nesting is carried out through bgp, ospf and mpls.
In this embodiment, the application module is further provided with a URL distribution unit, configured to analyze a page request of a URL and distribute the page request to a corresponding function in the view module for processing, and the view module recalls data of a corresponding template unit and a corresponding model module to form a response, which is returned to the user side, and the process is as follows:
s1, a Web server (middleware) receives an http or https request;
s2, Django searches a corresponding View (View) function in URLconf to process the http or https request;
s3, calling a corresponding data model by the view function to access data and calling a corresponding template to display a page for a user;
s4, calling a corresponding data model by the view function to access data and calling a corresponding template to display a page for a user;
and S5, the Web server sends the response to the client.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.