Research Article
Cyber-Internet Security Framework to Conquer Energy-Related Attacks on the Internet of Things with Machine Learning Techniques
Algorithm 1
Configuration of Nfirst and Nnew.
| Set configured ß false; Set wait_timer ß 0.0; Set iprep_timer ß0.0; | | do while (configured = false) | | { | | broadcast IPREQ message; start wait_timer; | | if timeout(wait_timer) | | { | | IP_COMPUTE (self MAC address) | | //Refer IP_COMPUTE function Set IP Address; | | Set Configured ß true; Exit; | | } | | else if MSNREQ message is received | | { | | Stop wait_timer; | | Read Manufacturer Serial Number(MSN); Send MSNREP message; | | Start iprep_timer; | | } | | If IPREP message is received | | { | | Stop iprep_timer; | | Set IP Address; | | Set configured ß true; Exit; | | } | | Else if timeout(iprep_timer) | | { | | Set configured ßfalse; | | } | | } |
|