Research Article
An SDN-Based Connectivity Control System for Wi-Fi Devices
Algorithm 1
Pseudo-code of handling association frame from associated station.
1 Function handleAssociationRequest (STA); | Input: Station Information, STA | Output: Handle association request frame | 2 if APConnectionExists then | 3stagetSTA(currentRequest); | 4bssidgetBSSID(STA); | 5lvapgetLVAP(STA, BSSID); | 6if lvap exists then | 7physicalAPgetPhysicalAP(lvap); | 8switchAPgetOFSwitch(physicalAP); | 9if STA exists in allowedList then | 10sendAssoResponse(STA); | 11addOpenFlowRule(switchAP, match, action); | 12else | 13if STA exists in rejectedList then | 14addOpenFlowRule(switchAP,match,action: drop); | 15else | 16//Send Authentication Request to Remote Server; | 17sendNotificationToRemoteService(STA); | 18end | 19end | 20//Updating allowed/rejected list with results returned from remote services. | 21end | 22 end |
|