The invention relates to the technical field of
cloud computing, in particular to a method and a
system for realizing ARP (
Address Resolution Protocol)
attack prevention of a credential
operating system without occupying CPU (
Central Processing Unit) resources, which comprises the following steps of: directly taking over an RX direction data packet of a network card by utilizing an XDP (Extensible
Data Processing) technology of an
operating system kernel so as to filter the
network data packet before a network
protocol stack of the
operating system kernel; a control interface is added, is used for controlling opening and closing of an ARP protection function and is responsible for issuing and deleting rules, and meanwhile, a
time parameter T and the maximum message number Max within T time are configured; compared with the traditional ARP anti-
attack technology, the method and the
system for realizing the ARP anti-
attack of the credential operation
system without occupying the CPU resource have the beneficial effects that the ARP message is directly filtered at a network card drive inlet, so that the
impact of the ARP attack message on the CPU is reduced; the operating system has an ARP anti-attack function, does not depend on a third-party application, and is safe and reliable; the self-adaptive ARP filtering technology can intelligently adjust an ARP
blacklist, and when an attack source returns to normal, ARP learning can be automatically recovered.