|
The function flow chart of DoS attack is shown here.
The process is mainly divided into three stages, Data packet reception, Data packet parsing and Data packet processing.
During Data packet reception, the Receive() Function keeps on listening a UDP socket RTUI to receive configuration packets sent by DCAM panel.
During Data packet parsing, the ProcessMessage() Function first parses the configuration packets to look up the attack type, and then reads the information of the received packets and calls the corresponding functions to deal with the messages.
During Data packet processing, , the ProcessEvent() Function will first judge the attack start time. If the attack start time is greater than the simulation time, the server node will send meaningless packets of a certain size to the client node at the data flow configured by the user. And when the attack flow is higher than ˇ°DoS_Thresholdˇ±, function will set ˇ°DoS_Levelˇ± equal to 1, and close the client node. When the end time comes, function will set ˇ°DoS_Levelˇ± equal to 0, and open the client node.
|