Method of realizing pseudo defense model voter through Hash table combination
The invention discloses a method of realizing pseudo defense model voter through Hash table combination. The method comprises the following steps: step (1) storing data packets sent by each server ina buffer block; (2) orderly hashing the data packets in a queue to a Hash table for voting; step (3)...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method of realizing pseudo defense model voter through Hash table combination. The method comprises the following steps: step (1) storing data packets sent by each server ina buffer block; (2) orderly hashing the data packets in a queue to a Hash table for voting; step (3) keeping mapping between the Hash table and a buffer storing the queue data; step (4) when the datapackets arrive from Pi, firstly finding Pi in an identification field of Hash table items, if the entry is found, adding 1 to times of the data packets, and updating a buffer position; otherwise, allocating a new buffer Bk, and inputting an entry Pi->(Bk, n). Once times is more than N/2, the data packet needs to be returned to a user, and voting of this time is completed, the Hash table mapping entry Pi->(Bk, n) is deleted. The method provided by the invention reduces delay, improves efficiency and provides a more efficient solution for the whole system.
本发明公开了种采用Hash表组合实现拟态防御模型表决器的方法。本发明步骤如下:步骤(1)将每个服务器发来的数据包存放到缓冲区块中; |
---|