Research Article

Attention-Based LSTM Model for IFA Detection in Named Data Networking

Algorithm 2

LSTM with attention mechanism-based detection.
Input:
▷ The time slice size
▷ The sliding window size
▷ Detection threshold
Output:
Detection result
(1)Compute the metrics during time slice
(2)for the consecutive time step with length do
(3)fed the sequence to the detection model
(4)
(5)ifthen
(6)return legitimate
(7)else
(8)return malicious
(9)end if
(10)end for