Research Article

FACSC: Fine-Grained Access Control Based on Smart Contract for Terminals in Software-Defined Network

Algorithm 2

Authentication phase.
(1)Terminal sends packets with Identification to P4FD
(2)if Option field is none then
(3) discards the packets
(4)end if
(5)Forwarding the packets to the controller
(6)Controller sends a request to Access Contract
(7)Access Contract verifies the and return a
(8)ifthen
(9) Controller sends flow rules to OFS
(10)else
(11)return Authentication failed
(12)end if