Skip to main content
. 2022 Jan 29;22(3):1061. doi: 10.3390/s22031061
Algorithm 2 Mechanism of Anomaly Detection.
  •   1:

    forsjS, do

  •   2:

        Listening Packet-In message from sj

  •   3:

        Extract MAC, IP of source host

  •   4:

        if maci≠ MAC, then

  •   5:

            Report AIM to mitigator module

  •   6:

        if ipi≠ IP, then

  •   7:

            Report AII to detector module

  •   8:

    forhiT, do

  •   9:

        Caculate PGRi=portsi.sizet

  • 10:

        if PGRiδ, then

  • 11:

            Report to detector module

  • 12:

        else

  • 13:

            Remove all port from portsi