Skip to main content
. 2023 May 14;23(10):4745. doi: 10.3390/s23104745
Algorithm 1 Traffic feature information extraction.

Require: Network traffic data flow_t

Ensure: Feature set Q

 1: for  (Srcip,Desip,Pt,Ct)flow_t  do

 2:        for each time interval t do

 3:              if Srcip then

 4:                     (Srcip,count)count+1

 5:              else

 6:                     (Srcip,count)1

 7:              end if

 8:              if Desip then

 9:                     (Desip,count)count+1

 10:              else

 11:                     (Desip,count)1

 12:              end if

 13:              Pt+1PtPtDPTR

 14:              Ct+1CtCtDCCR

 15:              (Srcip,count)USIP

 16:              (Desip,count)PtNUDIP

 17:        end for

 18: end for