CN106162639A - SDN wireless network management platform based on Floodlight and authentication method - Google Patents

SDN wireless network management platform based on Floodlight and authentication method Download PDF

Info

Publication number
CN106162639A
CN106162639A CN201610457253.0A CN201610457253A CN106162639A CN 106162639 A CN106162639 A CN 106162639A CN 201610457253 A CN201610457253 A CN 201610457253A CN 106162639 A CN106162639 A CN 106162639A
Authority
CN
China
Prior art keywords
user
network
management
data
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610457253.0A
Other languages
Chinese (zh)
Other versions
CN106162639B (en
Inventor
陈昕
路兆铭
温向明
张彪
雷涛
王鲁晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Publication of CN106162639A publication Critical patent/CN106162639A/en
Application granted granted Critical
Publication of CN106162639B publication Critical patent/CN106162639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明是一种基于Floodlight的SDN无线网络管理平台及认证方法,属于无线网络管理领域。本发明的无线网络管理平台,在Apache服务器上实现,包括系统管理模块、拓扑管理模块、配置管理模块、用户管理模块、AP管理模块和数据统计模块。在控制器中增加用于周期性地监视用户信息变化的线程。AP管理模块作为无线AP同时实现OpenFlow交换机功能。数据统计模块周期性获取网络数据,根据数据分析模型预测网络状态。通过分布式数据库彼此同步添加/修改的用户信息,保持整个网络的用户一致。本发明可实时处理频繁的用户变化,适应无线网络的管理需求,增加了SDN控制器数据存储与反馈能力,实现了网络用户认证的统一。

The invention relates to a Floodlight-based SDN wireless network management platform and an authentication method, belonging to the field of wireless network management. The wireless network management platform of the present invention is implemented on an Apache server, and includes a system management module, a topology management module, a configuration management module, a user management module, an AP management module and a data statistics module. Add threads for periodically monitoring user information changes in the controller. As a wireless AP, the AP management module also implements the OpenFlow switch function. The data statistics module periodically acquires network data and predicts the network status based on the data analysis model. The added/modified user information is synchronized with each other through distributed databases to keep users consistent across the network. The invention can process frequent user changes in real time, adapt to the management requirements of the wireless network, increase the data storage and feedback capabilities of the SDN controller, and realize the unification of network user authentication.

Description

基于Floodlight的SDN无线网络管理平台及认证方法Floodlight-based SDN wireless network management platform and authentication method

技术领域technical field

本发明属于无线网络管理领域,涉及SDN的网络管理,具体涉及一种基于SDN控制器的集中式WLAN系统的网络管理与用户认证方式。The invention belongs to the field of wireless network management, relates to SDN network management, in particular to a network management and user authentication method of a centralized WLAN system based on an SDN controller.

背景技术Background technique

无线局域网技术由于其廉价高效的特性越来越得到广泛的应用,目前基于802.11协议的无线接入点(Access Point,AP)已经成为现阶段无线通信网络不可或缺的重要组成部分。无线网络流量的迅猛增加和用户需求的提升使得大量企业与场所开始布置自己的无线局域网,而一个无线接入节点的布网方式早已不能满足中大型场景的需要,基于802.11协议族的WLAN组网方式由于其方便部署、高性价比的特点,是现在各个客户的首选方案。目前大多数使用的WLAN架构是基于分布式的自主管理架构,即胖AP架构。AP直接控制WLAN用户的接入和认证过程,可以完成用户数据加密、用户认证、QOS等功能。由于每个AP都是一个单独的节点,独立于配置、其信道和功率,安装十分简便。然而,由于频段受限与MAC竞争机制的限制,以及无线接入点的快速增长;分布式的无线接入点之间干扰严重,难以管理。因此许多企业级WLAN系统引入了基于接入控制(Access Control,AC)的瘦AP架构,所有无线接入功能由AP和AC共同完成,AC实现网络的QoS,移动性管理,资源分配,负载均衡等高级网络功能;AP则将工作重点放在无线功能上。AC与AP之间则通过国际标准的CAPWAP和LWAPP协议通信。这种集中管理的瘦AP结构能够提供统一的认证与安全设置,高效的网络管理以及区域内用户的切换与漫游服务,适用于较大型场景的应用。然而,这些瘦AP的解决方案通常是闭源的、专有的、昂贵的,且主要依靠硬件实现的,因而限制了整个网络的灵活性和扩展型。Due to its cheap and high-efficiency characteristics, wireless local area network technology is more and more widely used. At present, the wireless access point (Access Point, AP) based on the 802.11 protocol has become an indispensable and important part of the current wireless communication network. The rapid increase of wireless network traffic and the improvement of user demand have caused a large number of enterprises and places to start to deploy their own wireless local area network, and the network deployment method of a wireless access node has long been unable to meet the needs of medium and large-scale scenarios. WLAN networking based on the 802.11 protocol family Due to its convenient deployment and high cost performance, it is the preferred solution of various customers. Most currently used WLAN architectures are based on a distributed autonomous management architecture, that is, a fat AP architecture. The AP directly controls the access and authentication process of WLAN users, and can complete functions such as user data encryption, user authentication, and QOS. Since each AP is an individual node, independent of configuration, its channel and power, installation is easy. However, due to the limited frequency band, the limitation of the MAC competition mechanism, and the rapid growth of wireless access points, the interference between distributed wireless access points is serious and difficult to manage. Therefore, many enterprise-level WLAN systems have introduced a thin AP architecture based on Access Control (AC). All wireless access functions are completed by the AP and the AC. The AC implements network QoS, mobility management, resource allocation, and load balancing. and other advanced network functions; AP will focus on wireless functions. The AC and AP communicate through the international standard CAPWAP and LWAPP protocols. This centralized management thin AP structure can provide unified authentication and security settings, efficient network management, and user switching and roaming services in the area, and is suitable for applications in larger scenarios. However, these thin AP solutions are usually closed-source, proprietary, expensive, and mainly implemented by hardware, thus limiting the flexibility and scalability of the entire network.

其中基于Floodlight控制器的企业级SDN-WLAN系统成为改变现状的一种有效解决方案。软件定义网络(Software Defined Network,SDN),是一种新型网络创新架构,是网络虚拟化的一种实现方式,其核心技术OpenFlow通过将网络设备控制面与数据面分离开来,从而实现了网络流量的灵活控制,使网络作为管道变得更加智能。总的来说,SDN网络分成三层,即数据层,控制层和应用层。数据层的网络设备只负责单纯的数据转发,可以采用通用的硬件,专注于提升数据转发能力;而原来负责控制的操作系统将提炼为独立的网络操作系统,划分为控制层,负责对不同业务特性进行适配,而且网络操作系统和业务特性以及硬件设备之间的通信都可以通过编程实现。Floodlight就是基于JAVA开发的模块化OpenFlow控制器,可以选择Floodlight启动时候所加载的模块,也可以加入你自己定义的功能的模块。而最上面的应用层,可以收集利用控制层获取的底层资源与信息,做出全局化,高层次的控制管理与网络优化,实现以需求为主导的网络应用。这种基于通用硬件和可编程软件的组网方式让网络具有更好的拓展性,造价更加低廉,升级更加方便,管理更加灵活。Among them, the enterprise-level SDN-WLAN system based on the Floodlight controller has become an effective solution to change the status quo. Software Defined Network (Software Defined Network, SDN) is a new type of network innovation architecture and a way to realize network virtualization. Its core technology, OpenFlow, separates the control plane of network equipment from the data plane, thereby realizing network The flexible control of traffic makes the network more intelligent as a pipeline. In general, SDN network is divided into three layers, namely data layer, control layer and application layer. The network equipment at the data layer is only responsible for simple data forwarding, and general-purpose hardware can be used to focus on improving data forwarding capabilities; while the original operating system responsible for control will be refined into an independent network operating system, divided into control layers, responsible for different business The characteristics are adapted, and the communication between the network operating system and business characteristics and hardware devices can be realized through programming. Floodlight is a modular OpenFlow controller developed based on JAVA. You can choose the modules loaded when Floodlight starts, or you can add your own defined function modules. The uppermost application layer can collect and use the underlying resources and information obtained by the control layer, make global, high-level control management and network optimization, and realize demand-oriented network applications. This networking method based on general-purpose hardware and programmable software makes the network more scalable, cheaper to build, easier to upgrade, and more flexible to manage.

在基于软件定义网络的WLAN中,AP只是作为实现无线接收和数据转发的单元,不具备网络智能,上层的功能需要控制器来实现,包括用户接入、安全认证、转发路径、移动性管理、功率控制等。并且控制器只是提供类似于操作系统一样的资源抽象化流程,具体更高级的无线网络管理由应用层编写的软件程序代码实现。本发明将基于Floodlight控制器,实现网络的管理与用户的认证接入。在参考文献[1][2][3]中,已经提出了基于SDN的WLAN具体组网方案。整个WLAN网络都处于控制器的统一管理之中,网络管理者可以根据自身的需求动态改变管理方案,以适应网络状态的变化。由于大规模WLAN系统对于接入管理有着更为严格的要求,统一管理下的网络平台能够方便的提供更加多样化的网络管理服务和多层次的权限管理。因此大大降低网络受到配置错误和错误操作带来的损失。这些方案的重点在于实现SDN网络的在无线体系中的实现,以达成控制的集中化,接入侧的简化,并没有实际的实现管理无线网络平台的系统。同时,在简化接入侧的同时忽略了许多AP本身可用的管理功能,大大浪费了AP的固有管理能力。SDN思想应对的是传统的变化较少的有线网络,而在无线网络中用户的进入和离开都是随机且频繁的。虽然SDN网络可以使用负载均衡,流量管理技术很好的应对网络中流量的波动,但是对于网络用户本身的变化,它的管理近乎失败。在参考文献[1][2]中,控制器甚至需要重新启动,来读取用户列表的变化,每次控制器的重新启动都要花费数秒,无论是无线网络的QoS,还是用户体验,都是无法接受的。此外,目前的SDN控制器都是以实时获取数据为主,往往数据信息的请求都会带来急剧增大的控制器开销,此时网络的性能会有明显的下降,具体体现在网络响应时间的增加,传输抖动加剧,服务器CPU与内存使用率波动等方面。因此导致的网络稳定性问题也亟待解决。In a WLAN based on a software-defined network, the AP is only a unit for wireless reception and data forwarding, without network intelligence. The upper layer functions need to be implemented by the controller, including user access, security authentication, forwarding path, mobility management, power control etc. And the controller only provides the resource abstraction process similar to the operating system, and the specific and more advanced wireless network management is realized by the software program code written in the application layer. The present invention realizes network management and user authentication access based on the Floodlight controller. In references [1][2][3], specific networking solutions for SDN-based WLANs have been proposed. The entire WLAN network is under the unified management of the controller, and network managers can dynamically change the management scheme according to their own needs to adapt to changes in network status. Since large-scale WLAN systems have more stringent requirements for access management, the network platform under unified management can easily provide more diversified network management services and multi-level authority management. Therefore, the loss caused by misconfiguration and misoperation of the network is greatly reduced. The focus of these solutions is to implement the SDN network in the wireless system to achieve centralized control and simplification of the access side, and there is no actual implementation of the system for managing the wireless network platform. At the same time, while simplifying the access side, many management functions available on the AP itself are ignored, which greatly wastes the inherent management capabilities of the AP. The idea of SDN is to deal with the traditional wired network with few changes, while the entry and exit of users in the wireless network are random and frequent. Although the SDN network can use load balancing and traffic management technology to cope with the fluctuation of traffic in the network, but for the change of network users itself, its management almost fails. In references [1][2], the controller even needs to be restarted to read the changes in the user list. Each restart of the controller takes several seconds. Whether it is the QoS of the wireless network or the user experience, it is very important. is unacceptable. In addition, the current SDN controllers are mainly based on real-time data acquisition, and often data information requests will bring a sharp increase in controller overhead. At this time, network performance will decline significantly, which is specifically reflected in the network response time increase, increased transmission jitter, server CPU and memory usage fluctuations, etc. The resulting network stability issues also need to be resolved urgently.

参考文献如下:The references are as follows:

[1]Vestin J,Dely P,Kassler A,et al.CloudMAC:towards software definedWLANs[J].Acm Sigmobile Mobile Computing&Communications Review,2013,16(4):42-45.[1]Vestin J, Dely P, Kassler A, et al.CloudMAC: towards software defined WLANs[J].Acm Sigmobile Mobile Computing&Communications Review,2013,16(4):42-45.

[2]Suresh L,Schulz-Zander J,Merz R,et al.Towards programmableenterprise WLANS with Odin[C]//Proceedings of the first workshop on Hottopics in software defined networks.ACM,2012:115-120.[2] Suresh L, Schulz-Zander J, Merz R, et al. Towards programmable enterprise WLANS with Odin[C]//Proceedings of the first workshop on Hottopics in software defined networks. ACM, 2012: 115-120.

[3]Lei T,Lu Z,Wen X,et al.SWAN:An SDN based campus WLAN framework[C]//Wireless Communications,Vehicular Technology,Information Theory andAerospace&Electronic Systems(VITAE),2014 4th International Conferenceon.IEEE,2014:1-5.[3]Lei T, Lu Z, Wen X, et al.SWAN:An SDN based campus WLAN framework[C]//Wireless Communications,Vehicular Technology,Information Theory and Aerospace&Electronic Systems(VITAE),2014 4th International Conference on.IEEE,2014 :1-5.

发明内容Contents of the invention

针对基于SDN的无线网络缺乏有效管理措施的现状,本发明提出了一种基于Floodlight的SDN无线网络管理平台及认证方法,更改了SDN控制器在无线侧的管理架构,采用REST API接口,将floodlight的控制功能加以改进,把REST API扩展到AP端;通过数据库技术存储统计控制器的数据,降低控制器的负载并对数据做出分析预测;同时增加了用户管理的线程,使得可以进行实施的用户管理与认证。Aiming at the current situation that the SDN-based wireless network lacks effective management measures, the present invention proposes a Floodlight-based SDN wireless network management platform and authentication method, changes the management structure of the SDN controller on the wireless side, adopts the REST API interface, and integrates floodlight The control function is improved, and the REST API is extended to the AP side; the data of the statistical controller is stored through database technology, the load of the controller is reduced, and the data is analyzed and predicted; at the same time, the thread of user management is added, so that it can be implemented User management and authentication.

本发明提供了一种基于Floodlight的SDN无线网络管理平台,在Apache服务器上实现,所应用网络中的SDN控制器为Floodlight。SDN控制器的编程接口包括JAVA接口和REST API接口。所述的管理平台包括系统管理模块、拓扑管理模块、配置管理模块、用户管理模块、AP管理模块和数据统计模块。The invention provides a Floodlight-based SDN wireless network management platform, which is implemented on an Apache server, and the SDN controller in the applied network is Floodlight. The programming interface of the SDN controller includes a JAVA interface and a REST API interface. The management platform includes a system management module, a topology management module, a configuration management module, a user management module, an AP management module and a data statistics module.

所述的系统管理模块获取Apache服务器和Floodlight控制器本身的信息。The system management module obtains the information of the Apache server and the Floodlight controller itself.

所述的拓扑管理模块利用交换机的连接关系和用户的附着关系,绘制网络逻辑拓扑图,根据布置的AP位置,绘制网络的物理拓扑图。The topology management module uses the connection relationship of the switch and the attachment relationship of the users to draw a logical network topology map, and draws a physical topology map of the network according to the arranged AP positions.

所述的配置管理模块包括两个方面的配置管理,一是SDN的配置管理,包括RESTAPI操作控制器的配置和JAVA接口的应用配置;二是AP的配置管理,利用OpenWRT提供的URI(统一资源标识符)模拟REST流程,以统一的方式管理AP。Described configuration management module comprises the configuration management of two aspects, the one, the configuration management of SDN, comprise the configuration of RESTAPI operation controller and the application configuration of JAVA interface; identifier) simulates the REST process to manage APs in a unified way.

所述的用户管理模块在控制器中增加用于周期性地监视用户信息变化的线程。用户信息通过管理平台的WEB UI(用户界面)配置,用户信息变化通过数据库的触发器实现。用户信息存储在分布式数据库中,当网络中某一SDN控制器的数据库发生改变时,触发网络中SDN控制器的数据库的同步操作,保持整个网络中用户信息的一致。The user management module adds threads for periodically monitoring user information changes in the controller. User information is configured through the WEB UI (user interface) of the management platform, and user information changes are realized through database triggers. User information is stored in a distributed database. When the database of an SDN controller in the network changes, the synchronization operation of the database of the SDN controller in the network is triggered to maintain the consistency of user information in the entire network.

所述的AP管理模块用于管理无线交换机数据,实现两方面功能,一是作为无线AP,将所有AP的操作指令存储到管理平台上,管理平台通过统一的远程操作调用AP的无线管理功能。二是作为网络中的数据面交换机,利用floodlight的交换机控制能力,实现流表配置与防火墙设置,实现通用的OpenFlow交换机功能。The AP management module is used to manage the data of the wireless switch, and realizes two functions. One is as a wireless AP, storing all AP operation instructions on the management platform, and the management platform invokes the wireless management function of the AP through a unified remote operation. The second is as a data plane switch in the network, using the switch control capability of floodlight to realize flow table configuration and firewall settings, and realize the general OpenFlow switch function.

所述的数据统计模块周期性地获取用户数量、交换机负载和用户使用情况数据,并进行分别存储,更新统计数据,存储的数据可以放在每一个控制器上,也可以集中放在数据中心里。数据统计模块通过建立的数据分析模型,根据获得的数据预测网络的状态,反馈下一时段中的网络参数给配置管理模块。The data statistics module periodically acquires the data of the number of users, switch load and user usage data, and stores them separately to update the statistical data. The stored data can be placed on each controller or centrally placed in the data center . The data statistics module predicts the state of the network according to the obtained data through the established data analysis model, and feeds back the network parameters in the next period to the configuration management module.

本发明还提出了一种基于所述管理平台的用户认证方法。该方法包括:The invention also proposes a user authentication method based on the management platform. The method includes:

步骤1,管理员通过WEB UI在网络中某一个SDN控制器上添加/修改用户信息,WEBUI通过PHP接口连接到数据库;Step 1, the administrator adds/modifies user information on an SDN controller in the network through the WEB UI, and the WEBUI connects to the database through the PHP interface;

步骤2,数据库检验管理员添加/修改的用户信息的合理性,驳回非法修改,更新合理的修改请求;Step 2, the database checks the rationality of the user information added/modified by the administrator, rejects the illegal modification, and updates the reasonable modification request;

步骤3,分布式数据库之间彼此同步添加/修改的用户信息,保持整个网络的用户信息的一致,在同步未完成时,到来的该用户认证请求作为认证失败处理;Step 3, the distributed databases synchronize the added/modified user information with each other to keep the user information consistent across the network. When the synchronization is not completed, the incoming user authentication request is treated as an authentication failure;

步骤4,AP接收到用户认证请求,上传给Floodlight控制器,控制器将用户的认证数据包转化成认证事件,激活用户管理线程;Step 4, the AP receives the user authentication request, uploads it to the Floodlight controller, and the controller converts the user authentication data packet into an authentication event, and activates the user management thread;

步骤5,控制器根据认证用户的MAC地址或其他统一标识符,在数据库中查询用户信息是否存在,对于没有用户信息的用户不予接入网络;存在用户信息,但是用户属性或者用户权限异常,则将继续联结操作,接入后给予访问权限受控,并提示异常信息;存在用户信息,并且用户属性与用户权限都正常,继续联结与认证操作,完成MAC层的接入,并给AP下发对应的流表;Step 5, the controller checks whether the user information exists in the database according to the MAC address or other unified identifier of the authenticated user, and does not allow users without user information to access the network; there is user information, but the user attributes or user rights are abnormal, Then the connection operation will continue, and the access rights will be controlled after access, and an abnormal message will be prompted; if there is user information, and the user attributes and user rights are normal, continue the connection and authentication operations, complete the access at the MAC layer, and download the AP. Send the corresponding flow table;

步骤6,在用户状态发生改变之后,由控制器修改对应数据库中的用户信息,同时用户管理模块获取该用户信息;Step 6, after the user state changes, the controller modifies the user information in the corresponding database, and the user management module acquires the user information;

步骤7,分布式数据库之间彼此同步用户信息,保持整个网络的用户信息一致,以使得用户在不同AP/控制器间切换时不会重复认证和断开连接,完成用户认证流程。Step 7. The distributed databases synchronize user information with each other to keep the user information consistent across the network, so that users will not be repeatedly authenticated and disconnected when switching between different APs/controllers, and the user authentication process is completed.

相对于现有技术,本发明的优点和积极效果在于:Compared with prior art, advantage and positive effect of the present invention are:

(1)增加SDN网络中无线管理功能。SDN的核心功能在于路由转发与流控制,对于无线侧的管理功能近乎没有。本发明因此在控制平台中集成了AP固有的无线管理功能指令,将AP的管理分成SDN交换机管理和无线AP管理,分别以OF config协议和带外信令的方式管理AP;同时修改了SDN控制器的结构,增加了处理无线用户的线程和数据库操作线程,将用户数据从文件管理转变为数据库管理,实时处理频繁的用户变化,更加适应无线网络的管理需求,如无缝切换。(1) Increase the wireless management function in the SDN network. The core function of SDN lies in routing and forwarding and flow control, and there is almost no management function on the wireless side. Therefore, the present invention integrates the inherent wireless management function instructions of the AP in the control platform, divides the management of the AP into SDN switch management and wireless AP management, and manages the AP with the OF config protocol and out-of-band signaling respectively; at the same time, it modifies the SDN control The structure of the server adds threads for processing wireless users and database operation threads, transforms user data from file management to database management, handles frequent user changes in real time, and is more suitable for wireless network management requirements, such as seamless switching.

(2)增加了SDN控制器数据存储与反馈能力。为了避免网络性能的波动,较大规模的网络数据操作可以在网络负载较轻时进行,管理员可以先请求最近的历史数据,以免在重负载下,继续增加控制器负担。通常,SDN控制器只是根据当前的网络状态实现网络的管理,在本管理平台中,网络管理应用程序将通过结合分析历史数据和当前网络情况,反馈给配置管理模块,做出更加合理的网络应用参数预测。(2) The data storage and feedback capabilities of the SDN controller are increased. In order to avoid fluctuations in network performance, large-scale network data operations can be performed when the network load is light, and the administrator can request the latest historical data first, so as not to continue to increase the burden on the controller under heavy load. Usually, the SDN controller only implements network management according to the current network status. In this management platform, the network management application program will combine and analyze historical data and current network conditions, and feed back to the configuration management module to make more reasonable network applications. Parameter prediction.

(3)实现网络用户认证的统一。本发明采用的Floodlight配合分布式数据库系统模式,弥补了当前大多数SDN控制器缺乏东西向接口的不足。控制器的拓展性一直是SDN网络的软肋,由于用户认证中使用的是用户数据,因此多个控制器之间可以通过数据同步来实现统一的用户认证;这种变化并不需要对控制器做出更改,用户在某一控制器下的状态变化对于其他控制器是透明的,用户在移动过程中,用户认证操作不需要重新进行。(3) Realize the unification of network user authentication. The Floodlight adopted in the present invention cooperates with the distributed database system mode, which makes up for the deficiency that most current SDN controllers lack an east-west interface. The scalability of the controller has always been the weakness of the SDN network. Since user data is used in user authentication, unified user authentication can be realized through data synchronization between multiple controllers; this change does not require any changes to the controllers. The user's state change under a certain controller is transparent to other controllers, and the user authentication operation does not need to be performed again during the user's movement.

附图说明Description of drawings

图1是本发明的基于Floodlight的WLAN管理与认证平台的架构图;Fig. 1 is the architecture diagram of the WLAN management and authentication platform based on Floodlight of the present invention;

图2是本发明的管理平台各模块协作与反馈关系图;Fig. 2 is each module collaboration and feedback relationship diagram of management platform of the present invention;

图3是本发明的用户统一接入认证的流程图。Fig. 3 is a flow chart of unified user access authentication in the present invention.

具体实施方式detailed description

下面将结合附图和实施例对本发明作进一步的详细说明。The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

本发明提出了一种基于Floodlight的SDN无线网络管理平台及认证方法,其实现基于改进的模块化OpenFlow控制器Floodlight、分布式数据库系统、上层管理应用以及基于WEB的可视化用户界面。其中,以改进的Floodlight控制器为核心,向下连接物理网络,完成基于SDN的WLAN系统搭建,在SDN控制器上实现各种管理应用。管理平台实现在Apache服务器上,通过控制器和编程抽象网络参数、AP参数、用户参数、管理参数,提供给管理者以方便快捷的管理能力;并通过分布式数据库系统实现无线用户认证与权限管理,弥补了一般的SDN控制器缺乏WLAN管理能力的缺点,提升了网络的整体性能与可控性。The present invention proposes a Floodlight-based SDN wireless network management platform and an authentication method, which implements an improved modular OpenFlow controller Floodlight, a distributed database system, an upper-layer management application, and a WEB-based visual user interface. Among them, with the improved Floodlight controller as the core, it connects to the physical network downwards, completes the construction of the SDN-based WLAN system, and implements various management applications on the SDN controller. The management platform is implemented on the Apache server, through the controller and programming abstract network parameters, AP parameters, user parameters, and management parameters, providing managers with convenient and fast management capabilities; and realizing wireless user authentication and authority management through a distributed database system , making up for the lack of WLAN management capabilities of general SDN controllers, and improving the overall performance and controllability of the network.

图1为本发明的基于Floodlight的WLAN管理与认证平台的架构图。根据本发明提出的管理与认证架构,其基本原理是通过数据接口实现网络信息的收集和网络参数的配置,提供对于无线SDN网络的管理能力。本发明提供的一个具体实施例如下。FIG. 1 is an architecture diagram of the Floodlight-based WLAN management and authentication platform of the present invention. According to the management and authentication framework proposed by the present invention, its basic principle is to realize the collection of network information and the configuration of network parameters through the data interface, and provide management capabilities for wireless SDN networks. A specific embodiment provided by the present invention is as follows.

网络管理平台的运行环境为ThinkServer RD640S2620v2 4/300A2HROD;The operating environment of the network management platform is ThinkServer RD640S2620v2 4/300A2HROD;

主要参数有:The main parameters are:

CPU型号:Xeon E5-2620v2; 标配CPU数量:1颗;CPU model: Xeon E5-2620v2; Standard CPU quantity: 1;

内存类型:DDR3; 内存容量:4GB;Memory type: DDR3; Memory capacity: 4GB;

硬盘接口类型:SAS; 标配硬盘容量:300GB;Hard disk interface type: SAS; standard hard disk capacity: 300GB;

运行操作系统:Ubuntu 14.04操作系统;Operating system: Ubuntu 14.04 operating system;

SDN控制器为Floodlight V1.0(无线功能为后添加);The SDN controller is Floodlight V1.0 (the wireless function is added later);

WEB环境:Apache 2.0+PHP 5.5+MySQL 5.5.44WEB environment: Apache 2.0+PHP 5.5+MySQL 5.5.44

AP环境:OpenWRT 12.09+OVS 2.3AP environment: OpenWRT 12.09+OVS 2.3

网络部署的方式可参考文献[2][3],这里主要介绍管理平台的架构与流程。Floodlight控制器是整个OpenFlow网络体系架构的控制中心,对整个OpenFlow网络具有全局的视野。控制器负责为数据流制定逻辑规则,并通过下发流表的方式实现数据流在指定路径上的传输。管理平台与WLAN网络控制器的交互主要是通过表述性状态传递接口(Representational State Transfer Application Programming Interface,REST API)实现,REST利用简单的HTTP、URI标准和XML语言构建起轻量级的Web服务,REST的框架下,控制层所有能够提供的信息都被抽象成REST的资源,每一个资源都被分配一个唯一的统一资源标识符(Uniform Resource Identifier,URI)。Floodlight提供了REST SERVER模块,将可供操作的模块将REST API接口暴露给用户,开发者通过对基于URI的操作,实现与网络的互操作,其操作方式可以参考文献[4]:路兆铭,王鲁晗,温向明,软件定义的无线接入网络架构与关键技术,北京邮电大学出版社,2015:170-174。For the network deployment method, please refer to [2][3]. Here we mainly introduce the architecture and process of the management platform. The Floodlight controller is the control center of the entire OpenFlow network architecture and has a global view of the entire OpenFlow network. The controller is responsible for formulating logical rules for the data flow, and realizes the transmission of the data flow on the specified path by issuing the flow table. The interaction between the management platform and the WLAN network controller is mainly realized through the Representational State Transfer Application Programming Interface (REST API). REST uses simple HTTP, URI standards and XML language to build lightweight Web services. Under the REST framework, all the information that can be provided by the control layer is abstracted into REST resources, and each resource is assigned a unique Uniform Resource Identifier (URI). Floodlight provides the REST SERVER module, which exposes the operable module to the user through the REST API interface. The developer realizes the interoperability with the network through the operation based on the URI. For the operation method, please refer to [4]: Lu Zhaoming , Wang Luhan, Wen Xiangming, Software-Defined Wireless Access Network Architecture and Key Technologies, Beijing University of Posts and Telecommunications Press, 2015:170-174.

管理平台中的系统管理模块、拓扑管理模块、配置管理模块、AP管理模块、数据统计模块的大多数信息都是通过SDN控制器的编程接口来获取。SDN控制器的编程接口包括JAVA接口和REST API接口。REST API通过在服务器中注册服务,获取SDN控制器的网络信息。管理平台需要对Floodlight控制器提供的数据进行筛选,剔除无法利用的网络信息,甄别出管理人员可用的网络信息,并以格式化的模式输出,形成用户友好的WEB UI。JAVA接口则直接与应用层/控制层相关联,获取网络数据。Most of the information of the system management module, topology management module, configuration management module, AP management module, and data statistics module in the management platform are obtained through the programming interface of the SDN controller. The programming interface of the SDN controller includes a JAVA interface and a REST API interface. The REST API obtains the network information of the SDN controller by registering the service in the server. The management platform needs to filter the data provided by the Floodlight controller, eliminate unusable network information, identify the network information available to managers, and output it in a formatted mode to form a user-friendly WEB UI. The JAVA interface is directly associated with the application layer/control layer to obtain network data.

系统管理模块获取的是服务器和Floodlight控制器本身的信息,包括目前服务器的CPU,内存,IO使用状况,控制器的总体状态,工作模式,开启时长,控制器的模块信息,网络部件概述,连接交换机概述,流统计概述防火墙配置。服务器信息由Linux的shell指令获取,控制器信息则由REST API获取。The system management module obtains the information of the server and the Floodlight controller itself, including the current CPU, memory, and IO usage status of the server, the overall status of the controller, working mode, open time, module information of the controller, overview of network components, connection Switch overview, flow statistics overview firewall configuration. The server information is obtained by the Linux shell command, and the controller information is obtained by the REST API.

拓扑管理模块通过REST API收集OpenFlow交换机的连接关系和用户的附着关系,绘制网络逻辑拓扑图,拓扑数据通过数据统计信息或者实时查询获取。拓扑管理模块还根据所布置的AP位置信息,绘制网络的物理拓扑图,可作为用户定位的大致参考。The topology management module collects the connection relationship of the OpenFlow switch and the attachment relationship of the user through the REST API, and draws a logical network topology map. The topology data is obtained through data statistics or real-time query. The topology management module also draws the physical topology map of the network according to the deployed AP location information, which can be used as a rough reference for user positioning.

配置管理模块分为两个方面的配置管理,一是SDN的配置管理,包括REST API操作控制器的配置和JAVA接口的应用配置。根据Floodlight的开发者文档,本发明采取了部分与WLAN网络相关的REST API配置接口,例如设备管理,交换机信息获取,流表配置等,JAVA接口主要给管理员编写的应用层管理应用提供代码参数输入。二是AP的配置管理,本发明将REST API从控制器端扩展到AP端,利用OpenWRT提供的URI模拟REST流程,以统一的方式管理AP。从上层用户来看,并不需要区分REST API是来自Floodlight,还是AP。The configuration management module is divided into two aspects of configuration management, one is the configuration management of SDN, including the configuration of the REST API operation controller and the application configuration of the JAVA interface. According to the developer documentation of Floodlight, the present invention adopts some REST API configuration interfaces related to WLAN networks, such as device management, switch information acquisition, flow table configuration, etc., and the JAVA interface mainly provides code parameters for application layer management applications written by administrators enter. The second is AP configuration management. The present invention extends the REST API from the controller side to the AP side, utilizes the URI provided by OpenWRT to simulate the REST process, and manages the AP in a unified manner. From the perspective of upper-level users, there is no need to distinguish whether the REST API comes from Floodlight or AP.

图1右侧的数据统计模块的收集功能是独立于Floodlight控制器的,基于Linux的crontab命令实现,crond是Linux下用来周期性地执行某种任务或等待处理某些事件的一个守护进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务。同时,管理平台根据网络负载情况决定是否真正执行数据采集。在WLAN网络规模较大时,一个控制器下可能会有十几个甚至几十个AP节点,获取全网信息会成为消耗大量CPU资源和内存资源的操作,例如获取拓扑信息,全网交换机信息等。当控制器负载已经很大时,典型值:CPU利用率大于70%,内存使用率大于65%,此时数据统计模块的收集功能将会被抑制,如果管理员请求较大规模数据也会优先使用既存的数据,因为一旦服务器资源使用过高,一些WLAN网络突发操作致使网络性能迅速下降,响应时间过长。因此数据统计作为低优先级线程,可以被推迟操作。数据将会被存放在数据仓库中,在此基础上可以建立数据分析模型,例如态势感知模型、数据挖掘模型,预测网络的状态,并通过判决算法,控制配置管理模块决定下一段时段网络的参数。The collection function of the data statistics module on the right side of Figure 1 is independent of the Floodlight controller and implemented based on the Linux crontab command. crond is a daemon process used to periodically execute certain tasks or wait for certain events to be processed under Linux. The crond process regularly checks whether there is a task to be executed every minute, and if there is a task to be executed, the task is automatically executed. At the same time, the management platform decides whether to actually perform data collection according to the network load situation. When the WLAN network is large-scale, there may be more than a dozen or even dozens of AP nodes under one controller. Obtaining network-wide information will consume a lot of CPU resources and memory resources, such as obtaining topology information and network-wide switch information. Wait. When the load of the controller is already heavy, typical values: the CPU utilization rate is greater than 70%, and the memory utilization rate is greater than 65%. At this time, the collection function of the data statistics module will be suppressed, and if the administrator requests large-scale data, it will also be prioritized. Use the existing data, because once the server resources are used too high, some WLAN network burst operations will cause the network performance to decline rapidly and the response time will be too long. Therefore, data statistics can be deferred as a low-priority thread. The data will be stored in the data warehouse. On this basis, data analysis models can be established, such as situation awareness models and data mining models, to predict the state of the network, and through the decision algorithm, control the configuration management module to determine the parameters of the network in the next period of time. .

针对Floodlight缺乏管理用户的缺点,本发明对Floodlight的架构进行改进,提供了用户管理模块,在控制器中添加了实时监控用户数据库的线程,用于周期性地监视用户数据的变化。管理人员可以通过管理平台的WEB UI修改用户信息,用户信息变化通过数据库的触发器实现。触发器是一种特殊的存储过程。一般的存储过程是通过存储过程名直接调用,而触发器主要是通过事件(增、删、改)进行触发而被执行的,其在表中数据发生变化时自动强制执行。因此,如图1中当用户信息表有变动,触发器会在用户数据库里新建一张用户改动项的新表USER_CHANGE,Floodlight的用户管理线程一旦发现USER_CHANGE这个表有新的数据就会更新控制器里的用户信息;每次用户线程查询完USER_CHANGE表后,都会将其清空,表示更新操作已经完成。Aiming at the shortcoming of Floodlight lacking in user management, the present invention improves the structure of Floodlight, provides a user management module, and adds a real-time monitoring user database thread to the controller for periodically monitoring changes in user data. Administrators can modify user information through the WEB UI of the management platform, and user information changes are realized through triggers in the database. A trigger is a special kind of stored procedure. A general stored procedure is directly invoked by the stored procedure name, while a trigger is mainly triggered and executed by an event (addition, deletion, modification), and is automatically enforced when the data in the table changes. Therefore, as shown in Figure 1, when the user information table is changed, the trigger will create a new table USER_CHANGE in the user database, and the Floodlight user management thread will update the controller once it finds new data in the USER_CHANGE table The user information in the table; each time the user thread finishes querying the USER_CHANGE table, it will be cleared, indicating that the update operation has been completed.

同时,某一SDN控制器的数据库的改变将会触发网络中所有相关联数据库的同步操作,需要将控制器之间的用户数据库做同步操作。目前MySQL数据库支持两个数据库之间的互为主从关系。通常称变动的数据库为主数据库(Master),采取同步的数据库为从数据库(Slave)。Slave上面的IO线程会连接上Master,并请求从指定日志文件的指定位置之后的日志内容;然后Master接收到来自Slave的IO线程的请求后,通过负责复制的IO线程根据请求信息读取指定日志指定位置之后的日志信息。之后,Slave的IO线程接收到信息后,将接收到的日志内容依次写入到Slave端的中继日志Relay Log文件的最末端,Slave的SQL线程检测到Relay Log中新增加了内容后,便会做出与Master一致的操作实现数据库的同步。这样就保证了整个WLAN网络中用户信息的一致性。At the same time, the change of the database of a certain SDN controller will trigger the synchronization operation of all associated databases in the network, and the user database between the controllers needs to be synchronized. Currently, the MySQL database supports a mutual master-slave relationship between two databases. Usually the changed database is called the master database (Master), and the synchronized database is called the slave database (Slave). The IO thread on the Slave will connect to the Master and request the log content after the specified location of the specified log file; then the Master will read the specified log according to the request information through the IO thread responsible for copying after receiving the request from the IO thread of the Slave Log information after the specified position. Afterwards, after the IO thread of the Slave receives the information, it writes the received log content to the end of the relay log Relay Log file on the Slave side in turn. After the SQL thread of the Slave detects that the newly added content in the Relay Log, it will Make the operation consistent with the Master to realize the synchronization of the database. In this way, the consistency of user information in the entire WLAN network is guaranteed.

参照图1,管理平台不仅仅直接管理着Floodlight控制器,还在逻辑上直接与AP相连。这主要是为了完善管理平台的无线管理功能,SDN网络的核心在于简化路由转发网络,其本质上是路由管理和流管理,因而Floodlight的无线侧管理近乎没有。但是,基于SDN的WLAN系统所用的AP通常是基于OpenWRT的,OpenWRT具有一定的无线管理功能以支持在胖AP模式下工作。因此本发明提供了AP管理模块,合理利用既有的AP功能以增加WALN网络的管理能力。AP管理模块作为无线AP,侧重于无线AP固有的管理功能,将所有AP的操作指令存储到管理平台上,管理平台通过统一的远程操作,这种操作在SDN网络体系之外,属于带外信令,调用AP特有的管理功能。AP管理模块还作为SDN网络中的数据面交换机,侧重于有线侧的路由转发管理和流管理,它利用floodlight的交换机控制能力,实现流表配置与防火墙设置,作为通用的OpenFlow交换机功能。AP管理模块的这两个功能在逻辑上是两条线路。在WLAN中,AP的IP地址一般不会变化,因此本发明的管理平台采用IP作为AP的标识符,集成OpenWRT提供的LUCI模块用户接口,统一进行AP管理。由于每一个AP都需要独立的登录,并且每一次登录都会产生新的session,因此整个网络在配置时,网络中每一个AP的管理密码需要被所述管理平台获知;在登录之后需要对登录的session信息进行截获,在操作同一个AP时,采用对应的session id与之通信。与REST API类似的,AP的控制命令被封装成URI+参数的形式,AP管理模块采用GET方式,获取AP的数据,更改AP的配置参数。管理平台将这些命令集成到模块中,配合IP地址与截取的session id,拼接成完整的请求URI实现对不同AP的统一管理。AP的路由转发则是由Floodlight控制器的转发模块负责,转发模块根据OpenFlow协议自动下发流表,实现AP的OpenFLow交换机功能,AP的交换机层面管理通过Floodlight控制器提供的流表推入接口实现。Referring to Figure 1, the management platform not only directly manages the Floodlight controller, but also logically connects directly with the AP. This is mainly to improve the wireless management function of the management platform. The core of the SDN network is to simplify the routing and forwarding network, which is essentially routing management and flow management, so Floodlight has almost no wireless side management. However, the AP used in the SDN-based WLAN system is usually based on OpenWRT, and OpenWRT has certain wireless management functions to support working in fat AP mode. Therefore, the present invention provides an AP management module, which reasonably utilizes existing AP functions to increase the management capability of the WALN network. As a wireless AP, the AP management module focuses on the inherent management functions of wireless APs. It stores all AP operation instructions on the management platform, and the management platform uses unified remote operations. command to invoke the specific management functions of the AP. The AP management module is also used as a data plane switch in the SDN network, focusing on routing and forwarding management and flow management on the wired side. It uses the switch control capability of floodlight to implement flow table configuration and firewall settings, as a general OpenFlow switch function. These two functions of the AP management module are logically two lines. In the WLAN, the IP address of the AP generally does not change, so the management platform of the present invention uses IP as the identifier of the AP, integrates the LUCI module user interface provided by OpenWRT, and performs unified AP management. Since each AP requires an independent login, and each login will generate a new session, when the entire network is configured, the management password of each AP in the network needs to be known by the management platform; Session information is intercepted, and when operating the same AP, the corresponding session id is used to communicate with it. Similar to the REST API, the control commands of the AP are encapsulated in the form of URI+parameters, and the AP management module uses the GET method to obtain the data of the AP and change the configuration parameters of the AP. The management platform integrates these commands into the module, cooperates with the IP address and the intercepted session id, and splices them into a complete request URI to realize the unified management of different APs. The forwarding module of the Floodlight controller is responsible for the routing and forwarding of the AP. The forwarding module automatically issues the flow table according to the OpenFlow protocol to realize the function of the OpenFlow switch of the AP. The switch layer management of the AP is realized through the flow table push interface provided by the Floodlight controller. .

图2是本发明提出的管理认证平台在运行时,各模块之间的协作关系示意图,管理平台各模块的协作关系主要分为三个部分:数据采集、分析决策和反馈执行。参考图2的层次结构,最下面的是数据采集层,这一层的功能是收集网络数据,为上次提供分析来源。其主要包括模块有系统管理模块、拓扑管理模块、AP管理模块和用户管理模块,分别对应收集Floodlight控制器与服务器、网络结构描述、无线交换机数据、无线用户信息四个方面。数据采集的方式有两种,一是用户实时请求,二是使用Linux内核的crontab命令周期性获取;采集的数据可以按照时间、用户、占用资源三个维度划分。数据请求完毕后,会存储到数据统计模块的数据仓库中。Fig. 2 is a schematic diagram of the collaborative relationship between modules when the management authentication platform proposed by the present invention is running. The collaborative relationship between the modules of the management platform is mainly divided into three parts: data collection, analysis and decision-making, and feedback execution. Referring to the hierarchical structure in Figure 2, the bottom layer is the data collection layer. The function of this layer is to collect network data and provide analysis sources for the last time. It mainly includes modules including system management module, topology management module, AP management module and user management module, which respectively correspond to four aspects of collecting Floodlight controllers and servers, network structure description, wireless switch data, and wireless user information. There are two methods of data collection, one is real-time user request, and the other is periodic acquisition using the crontab command of the Linux kernel; the collected data can be divided into three dimensions: time, user, and occupied resources. After the data request is completed, it will be stored in the data warehouse of the data statistics module.

图2所示的分析决策层是由数据统计模块组成,它连接了数据采集层和反馈执行层,起到承上启下的作用,数据采集模块利用统计出来的数据进行数学建模分析,最后通过判决算法决定接下来WLAN网络要如何调整参数。需要指出的是,统计的分析结果利用fusion chart工具绘制成图表,可供管理人员直接阅读。The analysis and decision-making layer shown in Figure 2 is composed of a data statistics module, which connects the data acquisition layer and the feedback execution layer, and acts as a link between the preceding and the following. The data acquisition module uses the statistical data for mathematical modeling and analysis, and finally passes the decision algorithm Decide how to adjust the parameters of the WLAN network next. It should be pointed out that the statistical analysis results are drawn into charts using the fusion chart tool, which can be directly read by managers.

图2的顶层中主要是配置管理模块,也包括AP管理模块和用户管理模块、WLAN应用。其中AP管理模块和用户管理模块既属于数据采集层,又属于反馈执行层,因为这两个模块不仅具有从网络底层获取信息的能力,还能够更改这些信息。配置管理模块通过分析决策层制定的网络参数,配置WLAN应用,获得更好的网络性能。例如,当某一个AP的负载较大时,分析决策层就会调整负载均衡应用的参数,使负载较重的AP进行范围收缩,周边的AP范围扩增,将部分用户分流到其他的AP上,从而达到反馈的效果。再例如,当整个网络中的用户十分稀少时,分析决策层就会启用节能应用,查询数据库中每一个用户的附着情况,使没有用户附着的AP节点休眠,以降低网络的整体功耗。此外,配置管理模块还可配置系统管理模块和数据统计模块,在服务器资源利用率不同时决定是否执行数据采集操作。反馈执行层还是管理员之间对网络管理的空间,这一层的功能模块需要向管理员提供友好的操作界面,并能够识别出危险操作,对管理员提出警告。The top layer in Figure 2 mainly includes the configuration management module, and also includes the AP management module, user management module, and WLAN application. Among them, the AP management module and the user management module belong to both the data collection layer and the feedback execution layer, because these two modules not only have the ability to obtain information from the bottom layer of the network, but also can change the information. The configuration management module configures WLAN applications by analyzing the network parameters formulated by the decision-making layer to obtain better network performance. For example, when the load of a certain AP is heavy, the analysis and decision-making layer will adjust the parameters of the load balancing application, so that the range of APs with heavy loads will be reduced, and the range of surrounding APs will be expanded, and some users will be distributed to other APs. , so as to achieve the effect of feedback. For another example, when there are very few users in the entire network, the analysis and decision-making layer will enable energy-saving applications, query the attachment status of each user in the database, and make AP nodes without user attachments sleep to reduce the overall power consumption of the network. In addition, the configuration management module can also configure the system management module and the data statistics module, and decide whether to execute the data collection operation when the resource utilization of the server is different. The feedback execution layer is also a space for administrators to manage the network. The functional modules of this layer need to provide administrators with a friendly operation interface, and be able to identify dangerous operations and warn administrators.

本发明提出的模块化的管理平台增强了管理的灵活性和可扩展性,各模块各司其职有相互协作,使网络具有智能,提升了网络的可管理性和稳定性。分析决策层的引入,解决了人工判别网络情况的复杂性,降低了判决错误带来的负面影响。The modularized management platform proposed by the invention enhances the flexibility and scalability of management, and each module performs its duties and cooperates with each other, making the network intelligent and improving the manageability and stability of the network. The introduction of the analysis and decision-making layer solves the complexity of manually judging the network situation and reduces the negative impact of judgment errors.

图3为本发明提出的基于Floodlight的WLAN用户认证流程,下面说明各个步骤。FIG. 3 is a Floodlight-based WLAN user authentication process proposed by the present invention, and each step will be described below.

步骤301,管理员通过WEB UI在网络中的某一台控制器上添加/修改用户信息。该步骤是用户加入WLAN网络的初始化步骤,需要管理员进行操作,一般用户不具有该步骤的权限。WLAN用户的数据结构包括用户标志、用户属性和用户权限。WEB UI通过PHP(超文本预处理器)接口连接到数据库。In step 301, the administrator adds/modifies user information on a certain controller in the network through the WEB UI. This step is the initialization step for users to join the WLAN network, which needs to be operated by an administrator, and general users do not have the authority for this step. The data structure of WLAN users includes user identifiers, user attributes and user permissions. The WEB UI is connected to the database through the PHP (Hypertext Preprocessor) interface.

步骤302,数据库检验管理员添加/修改的用户信息是否合法,驳回非法修改,更新合理的修改请求。这一步骤是需要管理员操作的权限。Step 302, the database checks whether the user information added/modified by the administrator is legal, rejects the illegal modification, and updates the reasonable modification request. This step requires administrator permissions.

步骤303,分布式数据库之间彼此同步添加/修改的用户信息,保持整个网络的用户信息一致。在同步未完成时,到来的该用户认证请求作为认证失败处理;未被修改的用户不受同步过程的影响。拒绝未同步用户的接入是考虑到用户信息不一致会导致控制器出现异常,如果未同步用户接入了网络,同时用户又更改了自身的属性,则在重新接入其他控制器下属的AP时,过去保存的用户信息会全部丢失,例如计费信息或充值信息等。In step 303, the distributed databases synchronize the added/modified user information with each other to keep the user information consistent across the network. When the synchronization is not completed, the incoming user authentication request is treated as an authentication failure; the unmodified user is not affected by the synchronization process. Rejecting the access of unsynchronized users is to consider that the inconsistency of user information will cause the controller to malfunction. , all user information saved in the past will be lost, such as billing information or recharge information.

步骤304,AP接收到用户认证请求,上传给Floodlight控制器,控制器将用户的认证数据包转化成认证事件,激活用户管理线程。这个功能通过FloodlightProvider核心模块完成,其负责将收到的OF Packet(OpenFlow数据包)转换为一个个事件,而控制器的转发模块、链路学习模块、设备管理模块、统计模块向FloodlightProvider进行注册,注册后成为一个service,然后就可以处理相应的事件。In step 304, the AP receives the user authentication request and uploads it to the Floodlight controller. The controller converts the user authentication data packet into an authentication event and activates a user management thread. This function is completed by the FloodlightProvider core module, which is responsible for converting the received OF Packet (OpenFlow data packet) into events, and the forwarding module, link learning module, device management module, and statistics module of the controller register with the FloodlightProvider, After registration, it becomes a service, and then the corresponding events can be processed.

步骤305,控制器根据认证用户的MAC地址或其他的统一标识符,调用用户数据库中查询用户信息与用户权限,根据用户的不同属性与权限做出不同的应对方案。对于没有用户信息的用户不予接入网络,对于有用户信息,但是用户接入权限异常的用户将继续联结(association)操作,接入后给予访问权限受控,并提示异常信息。In step 305, the controller invokes the user database to query user information and user authority according to the MAC address or other unified identifier of the authenticated user, and makes different countermeasures according to different attributes and authority of the user. Users who do not have user information will not be allowed to access the network. Users who have user information but have abnormal user access rights will continue to associate (association) operations. After access, the access rights will be controlled and abnormal information will be prompted.

步骤305进一步包括一下三个子步骤:Step 305 further includes the following three sub-steps:

步骤305-1,当用户第一次接入WLAN网络时,OpenFlow交换机中没有该用户对应的流表项,OpenFLow交换机会将这个数据包作为packet-in消息上传给Floodlight控制器。Floodlight控制器解析Packet-in数据包的内容,提取用户标志,然后触发用户管理线程到用户数据库中查询用户标识符对应的用户数据,对比用户属性和用户权限。Step 305-1, when a user accesses the WLAN network for the first time, there is no flow entry corresponding to the user in the OpenFlow switch, and the OpenFlow switch will upload the data packet as a packet-in message to the Floodlight controller. The Floodlight controller parses the content of the Packet-in data packet, extracts the user identifier, and then triggers the user management thread to query the user data corresponding to the user identifier in the user database, and compares user attributes and user permissions.

步骤305-2,如果用户不存在,在直接结束认证;如果用户存在,但是用户属性或者用户权限出现异常,整套认证流程依然会继续,AP也允许用户接下来的联结操作。在完整接入后,控制器会根据用户权限,限定用户的访问范围;或是用户属性出现异常,控制器将会以WEB页面的方式推送错误信息。Step 305-2, if the user does not exist, the authentication is terminated directly; if the user exists, but the user attributes or user permissions are abnormal, the entire authentication process will still continue, and the AP also allows the user to continue the connection operation. After full access, the controller will limit the user's access scope according to the user's authority; or if the user's attributes are abnormal, the controller will push an error message in the form of a WEB page.

步骤305-3,如果用户属性与权限都正常,控制器会告知AP继续完成联结操作,完成MAC层的接入,并给AP下发所需流表。此时如果AP直接连在汇聚交换机上,接下来的数据包都不需要Packet-in流程,直接被OpenFlow交换机转发;如果AP到汇聚路由器之间还有多条,同样会触发packet-in流程,但是Floodlight控制器会发现该用户标志为已接入状态,无需再次认证。Step 305-3, if the user attributes and permissions are normal, the controller will inform the AP to continue to complete the connection operation, complete the access of the MAC layer, and deliver the required flow table to the AP. At this time, if the AP is directly connected to the aggregation switch, the subsequent data packets do not need the Packet-in process and are directly forwarded by the OpenFlow switch; if there are multiple packets between the AP and the aggregation router, the packet-in process will also be triggered. However, the Floodlight controller will find that the user is marked as connected and does not need to re-authenticate.

步骤306,在用户状态发生改变之后,由控制器修改对应于本控制器的数据库中的用户信息,同时管理平台的用户管理模块将该用户信息获取。Step 306, after the user status changes, the controller modifies the user information in the database corresponding to the controller, and at the same time the user management module of the management platform acquires the user information.

步骤307,各控制器对应的分布式数据库之间彼此同步用户信息,保持整个网络的用户一致,以保证用户在不同AP/控制器间切换时不会重复认证和断开连接,完成用户认证流程。Step 307, the distributed databases corresponding to the controllers synchronize user information with each other to keep the users in the entire network consistent, so as to ensure that users will not be repeatedly authenticated and disconnected when switching between different APs/controllers, and complete the user authentication process .

本发明提出的用户认证方式是SDN认证接入移动用户的方式,避免了传统SDN控制器读取用户配置文件的操作,使得用户管理更加的灵活,同时提高了用户体验。数据同步的引是整个网络的用户信息一致化,弥补了当前大多数SDN控制器缺乏东西向接口的缺点,防止因用户移动性而导致数据冲突,为基于Floodlight的SDN-WLAN网络实际管理提供了可行的解决方案。The user authentication method proposed by the present invention is a method for SDN authentication to access mobile users, which avoids the operation of traditional SDN controllers to read user configuration files, makes user management more flexible, and improves user experience at the same time. The introduction of data synchronization is the consistency of user information in the entire network, which makes up for the lack of east-west interfaces of most current SDN controllers, prevents data conflicts caused by user mobility, and provides a solid foundation for the actual management of SDN-WLAN networks based on Floodlight. workable solution.

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the present invention.

Claims (4)

1.一种基于Floodlight的SDN无线网络管理平台,在Apache服务器上实现,所应用网络中的SDN控制器为Floodlight;SDN控制器的编程接口包括JAVA接口和REST API接口;其特征在于,所述的管理平台包括系统管理模块、拓扑管理模块、配置管理模块、用户管理模块、AP管理模块和数据统计模块;AP为无线接入点;1. a kind of SDN wireless network management platform based on Floodlight, realize on Apache server, the SDN controller in the applied network is Floodlight; The programming interface of SDN controller comprises JAVA interface and REST API interface; It is characterized in that, described The management platform includes system management module, topology management module, configuration management module, user management module, AP management module and data statistics module; AP is a wireless access point; 所述的系统管理模块获取Apache服务器和Floodlight控制器本身的信息;The system management module obtains the information of the Apache server and the Floodlight controller itself; 所述的拓扑管理模块利用交换机的连接关系和用户的附着关系,绘制网络逻辑拓扑图,根据布置的AP位置,绘制网络的物理拓扑图;The topology management module uses the connection relationship of the switch and the attachment relationship of the user to draw a logical network topology diagram, and draws a physical topology diagram of the network according to the arranged AP positions; 所述的配置管理模块包括两个方面的配置管理,一是SDN的配置管理,包括REST API操作控制器的配置和JAVA接口的应用配置;二是AP的配置管理,利用OpenWRT提供的URI模拟REST流程,以统一的方式管理AP;URI为统一资源标识符;The configuration management module includes two aspects of configuration management, one is the configuration management of SDN, including the configuration of the REST API operation controller and the application configuration of the JAVA interface; the other is the configuration management of the AP, which utilizes the URI provided by OpenWRT to simulate REST Process, manage AP in a unified way; URI is Uniform Resource Identifier; 所述的用户管理模块在控制器中增加用于周期性地监视用户信息变化的线程;用户信息通过管理平台的WEB UI配置,用户信息变化通过数据库的触发器实现;用户信息存储在分布式数据库中,当网络中某一SDN控制器的数据库发生改变时,触发网络中SDN控制器的数据库的同步操作,保持整个网络中用户信息的一致;UI为用户界面;The user management module adds threads for periodically monitoring user information changes in the controller; user information is configured through the WEB UI of the management platform, and user information changes are realized through database triggers; user information is stored in the distributed database Among them, when the database of a certain SDN controller in the network changes, the synchronization operation of the database of the SDN controller in the network is triggered to maintain the consistency of user information in the entire network; UI is the user interface; 所述的AP管理模块用于管理无线交换机数据,实现两方面功能,一是作为无线AP,将所有AP的操作指令存储到管理平台上,管理平台通过统一的远程操作调用AP的管理功能;二是实现流表配置与防火墙设置,实现OpenFlow交换机功能;The AP management module is used to manage the data of the wireless switch, and realizes two functions, one is as a wireless AP, and stores the operation instructions of all APs on the management platform, and the management platform calls the management function of the AP through a unified remote operation; It is to realize flow table configuration and firewall setting, and realize OpenFlow switch function; 所述的数据统计模块周期性地获取用户数量、交换机负载和用户使用情况数据,并进行分别存储,存储在网络中的各SDN控制器上或者集中存储在数据中心里;数据统计模块通过建立的数据分析模型,根据获得的数据预测网络的状态,反馈下一时段中的网络参数给配置管理模块。The data statistics module periodically obtains the number of users, switch load and user usage data, and stores them separately, and stores them on each SDN controller in the network or centrally stores them in the data center; the data statistics module passes through the established The data analysis model predicts the state of the network according to the obtained data, and feeds back the network parameters in the next period to the configuration management module. 2.根据权利要求1所述的一种基于Floodlight的SDN无线网络管理平台,其特征在于,所述的数据统计模块,利用Linux的crontab命令实现数据采集,管理平台根据网络负载情况决定是否执行数据采集,数据统计作为低优先级线程。2. a kind of SDN wireless network management platform based on Floodlight according to claim 1, is characterized in that, described data statistics module, utilizes the crontab order of Linux to realize data collection, and management platform decides whether to execute data according to network load situation Acquisition and data statistics are used as low-priority threads. 3.根据权利要求1所述的一种基于Floodlight的SDN无线网络管理平台,其特征在于,所述的AP管理模块,采用IP作为AP的标识符,集成OpenWRT提供的LUCI模块用户接口,统一进行AP管理;网络在配置时,获知网络中每一个AP的管理密码,在登录后,对AP登录产生的session信息进行截获,在操作同一个AP时,采用对应的session id与该AP通信;AP的控制命令被封装成URI+参数的形式,AP管理模块采用GET方式,获取AP的数据,更改AP的配置参数;AP的路由转发由Floodlight控制器的转发模块负责,转发模块根据OpenFlow协议自动下发流表,实现AP的OpenFLow交换机功能。3. A kind of SDN wireless network management platform based on Floodlight according to claim 1, it is characterized in that, described AP management module adopts IP as the identifier of AP, integrates the LUCI module user interface that OpenWRT provides, and carries out uniformly AP management; when the network is configured, the management password of each AP in the network is known, and after login, the session information generated by AP login is intercepted, and when operating the same AP, the corresponding session id is used to communicate with the AP; AP The control command is encapsulated in the form of URI+parameters, and the AP management module uses the GET method to obtain AP data and change AP configuration parameters; the forwarding module of the Floodlight controller is responsible for the routing and forwarding of the AP, and the forwarding module automatically delivers according to the OpenFlow protocol The flow table implements the OpenFlow switch function of the AP. 4.基于权利要求1所述的管理平台的用户认证方法,其特征在于,实现步骤如下:4. based on the user authentication method of the management platform described in claim 1, it is characterized in that, the realization step is as follows: 步骤1,管理员通过WEB UI在其中某一台控制器上编辑/添加用户信息,WEB UI通过PHP接口连接到数据库;Step 1. The administrator edits/adds user information on one of the controllers through the WEB UI, and the WEB UI connects to the database through the PHP interface; 步骤2,数据库检验管理员修改/添加信息的合理性,驳回非法修改,更新合理的修改请求;Step 2, the database checks the rationality of the administrator's modification/addition of information, rejects the illegal modification, and updates the reasonable modification request; 步骤3,分布式数据库之间彼此同步添加/修改的用户信息,保持整个网络的用户一致,在同步未完成时,到来的该用户认证请求作为认证失败处理;Step 3, the distributed databases synchronize the added/modified user information with each other to keep the users of the entire network consistent. When the synchronization is not completed, the incoming user authentication request is treated as an authentication failure; 步骤4,AP接收到用户认证请求,上传给Floodlight控制器,控制器将用户的认证数据包转化成认证事件,激活用户管理线程;Step 4, the AP receives the user authentication request, uploads it to the Floodlight controller, and the controller converts the user authentication data packet into an authentication event, and activates the user management thread; 步骤5,控制器根据认证用户的MAC地址或统一标识符,在数据库中查询用户信息是否存在,对于没有用户信息的用户不予接入网络;存在用户信息,但是用户属性或者用户权限异常,则将继续联结操作,接入后给予访问权限受控,并提示异常信息;存在用户信息,用户属性与用户权限都正常,继续联结操作,完成MAC层的接入,并给AP下发对应的流表;Step 5, the controller checks whether the user information exists in the database according to the MAC address or the unified identifier of the authenticated user, and does not allow users without user information to access the network; if there is user information, but the user attributes or user rights are abnormal, then The connection operation will continue, and the access rights will be controlled after access, and an abnormal message will be prompted; there is user information, user attributes and user permissions are normal, continue the connection operation, complete the access at the MAC layer, and send the corresponding flow to the AP surface; 步骤6,在用户状态发生改变之后,控制器修改对应数据库中的用户信息,同时用户管理模块获取该用户信息;Step 6, after the user state changes, the controller modifies the user information in the corresponding database, and the user management module acquires the user information; 步骤7,分布式数据库之间彼此同步用户信息,保持整个网络的用户信息一致,完成用户认证流程。Step 7, the distributed databases synchronize user information with each other, keep the user information consistent across the network, and complete the user authentication process.
CN201610457253.0A 2015-11-25 2016-06-22 SDN wireless network management platform and authentication method based on Floodlight Active CN106162639B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510828065 2015-11-25
CN201510828065X 2015-11-25

Publications (2)

Publication Number Publication Date
CN106162639A true CN106162639A (en) 2016-11-23
CN106162639B CN106162639B (en) 2019-04-12

Family

ID=57352987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610457253.0A Active CN106162639B (en) 2015-11-25 2016-06-22 SDN wireless network management platform and authentication method based on Floodlight

Country Status (1)

Country Link
CN (1) CN106162639B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241422A (en) * 2017-06-23 2017-10-10 郑州云海信息技术有限公司 It is a kind of in real time by the method for external user and subscriber group information with stepping Apache Ranger
CN107368363A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of cycle management method and device
CN107919982A (en) * 2017-10-31 2018-04-17 江苏省未来网络创新研究院 A kind of DCI management platforms and its management method
CN108541019A (en) * 2018-03-26 2018-09-14 杨鲲 A kind of the upstream bandwidth control method and system of software definition wireless network
CN109327506A (en) * 2018-09-06 2019-02-12 网宿科技股份有限公司 A kind of resource allocation methods, device and readable storage medium storing program for executing
CN110138622A (en) * 2019-06-04 2019-08-16 江苏创通电子股份有限公司 Wireless local area network management system based on cloud
CN110169019A (en) * 2017-01-17 2019-08-23 华为技术有限公司 The network switch and Database Systems that database function defines
CN111918340A (en) * 2020-07-08 2020-11-10 河北百亚信息科技有限公司 A WiFi wireless network bandwidth allocation method
CN112367389A (en) * 2020-10-30 2021-02-12 杭州安恒信息技术股份有限公司 Agent-based software defined network method and device
US11080274B2 (en) 2017-01-17 2021-08-03 Futurewei Technologies, Inc. Best-efforts database functions

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023335A (en) * 2014-05-28 2014-09-03 北京邮电大学 SDN (Software Defined Network)-based heterogeneous network convergence framework
CN104540144A (en) * 2014-12-24 2015-04-22 西安交通大学 User-centered network architecture based on software definition
CN105025487A (en) * 2015-07-28 2015-11-04 北京邮电大学 An SDN-based carrier-level WLAN system and unified authentication method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023335A (en) * 2014-05-28 2014-09-03 北京邮电大学 SDN (Software Defined Network)-based heterogeneous network convergence framework
CN104540144A (en) * 2014-12-24 2015-04-22 西安交通大学 User-centered network architecture based on software definition
CN105025487A (en) * 2015-07-28 2015-11-04 北京邮电大学 An SDN-based carrier-level WLAN system and unified authentication method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TAO LEI ET AL.: "SWAN: An SDN Based Campus WLAN Framework", 《2014 4TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, VEHICULAR TECHNOLOGY, INFORMATION THEORY AND AEROSPACE & ELECTRONIC SYSTEMS (VITAE)》 *
ZUHRAN KHAN KHATTAK ET AL.: "Performance evaluation of OpenDaylight SDN controller", 《2014 20TH IEEE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS)》 *
张朝昆等: "软件定义网络(SDN)研究进展", 《软件学报》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10805241B2 (en) 2017-01-17 2020-10-13 Futurewei Technologies, Inc. Database functions-defined network switch and database system
US11080274B2 (en) 2017-01-17 2021-08-03 Futurewei Technologies, Inc. Best-efforts database functions
CN110169019B (en) * 2017-01-17 2021-01-12 华为技术有限公司 Network switch and database system with database function definition
CN110169019A (en) * 2017-01-17 2019-08-23 华为技术有限公司 The network switch and Database Systems that database function defines
CN107241422A (en) * 2017-06-23 2017-10-10 郑州云海信息技术有限公司 It is a kind of in real time by the method for external user and subscriber group information with stepping Apache Ranger
CN107241422B (en) * 2017-06-23 2020-08-11 浪潮云信息技术股份公司 Method for synchronizing external user and user group information into Apache Range in real time
CN107368363A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of cycle management method and device
CN107919982A (en) * 2017-10-31 2018-04-17 江苏省未来网络创新研究院 A kind of DCI management platforms and its management method
CN108541019A (en) * 2018-03-26 2018-09-14 杨鲲 A kind of the upstream bandwidth control method and system of software definition wireless network
CN109327506A (en) * 2018-09-06 2019-02-12 网宿科技股份有限公司 A kind of resource allocation methods, device and readable storage medium storing program for executing
CN110138622A (en) * 2019-06-04 2019-08-16 江苏创通电子股份有限公司 Wireless local area network management system based on cloud
CN110138622B (en) * 2019-06-04 2022-05-27 江苏创通电子股份有限公司 Wireless local area network management system based on cloud technology
CN111918340A (en) * 2020-07-08 2020-11-10 河北百亚信息科技有限公司 A WiFi wireless network bandwidth allocation method
CN112367389A (en) * 2020-10-30 2021-02-12 杭州安恒信息技术股份有限公司 Agent-based software defined network method and device

Also Published As

Publication number Publication date
CN106162639B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN106162639A (en) SDN wireless network management platform based on Floodlight and authentication method
CN110890976B (en) Dynamic intention guarantee method and device in computer network and storage medium
US11922162B2 (en) Intent-based, network-aware network device software-upgrade scheduling
US10999410B1 (en) Configuring and managing network devices using program overlay on Yang-based graph database
CN104079436B (en) A kind of Element management system of striding equipment in the EPON networks of agreement
CN114697207B (en) Edge controller with network performance parameter support
CN109743893A (en) Method and apparatus for network slicing
CN110213369A (en) A kind of service function chain autopatch system and its method of combination
US11736410B1 (en) Synchronizing device resources for element management systems
CN104009871A (en) SDN controller implementation method and SDN controller
CN105915419A (en) Wireless access controller deployment method based on SDN (Software Defined Network)
WO2024146464A1 (en) Uniform configuration method for integration of industrial wireless network and time-sensitive network
US11805013B2 (en) Prioritizing policy intent enforcement on network devices
CN102684894B (en) Method and device for realizing northboundbound interface
CN113381875B (en) Method for acquiring configuration data
US11556100B2 (en) Control method, related device, and system
WO2024152610A1 (en) Data communication method, apparatus and device, nonvolatile readable storage medium, and server
Chen et al. A survey of network slicing in 5G
EP4254894A1 (en) Time series data collection for a network management system
CN115065596A (en) Industrial heterogeneous network integrated configuration system and method based on software definition
CN115766834A (en) Full-service 5G end-to-end network slicing framework
CN108650112A (en) A kind of the network virtualization design system and method for data center's total management system

Legal Events

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