Abstract:
Provided is an Address Resolution Protocol (ARP) learning method, which includes: determining, by a forwarding chip, an IP address of a target device; when an MAC address corresponding to the IP address of the target device is not stored in an ARP forwarding table, generating and broadcasting, by the forwarding chip, an ARP request message, wherein the ARP request message includes the IP address of the target device; receiving, by the forwarding chip, an ARP response message fed back by the target device, wherein the ARP response message includes an MAC address of the target device; and writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into the ARP forwarding table. The present disclosure also provides a node device and a computer-readable medium.
Abstract:
Provided are a message interaction processing method and device. The method includes: a first buffer with a preset size is applied for to a Central Processing Unit (CPU) and/or a chip; and message interaction is performed between the CPU and the chip through the first buffer, wherein the first buffer is used for storing at least two messages. By the disclosure, the problem that frequent switching between states may cause high resource overhead and low message transmission efficiency under the condition of large message interaction between the CPU and the chip is solved, and the effect of remarkably improving message sending and receiving efficiency and performance of network equipment is further achieved.
Abstract:
Disclosed is a data processing method and system, an encapsulation node, and a deencapsulation node. The data processing method comprises: obtaining at least two sets of data to be sent, wherein the data comprises prefix data and suffix data; obtaining public prefix data from the prefix data; obtaining a local index based on the public prefix data, and writing the local index and the public prefix data into a preset prefix table; writing the suffix data and the local index into a preset suffix table; and writing the data in the prefix table and the data in the suffix table into a preset data encapsulation table, and sending the data encapsulation table.
Abstract:
Provided are a method for implementing counting control of a counter in a network chip, and a network chip. The method includes: periodically generating a counting value scanning message; reading a counting value of a corresponding counter item according to the generated counting value scanning message; analyzing and judging whether the read counting value is less than a preset overflow threshold; and informing the processor to handle counting abnormality of the counter when the read counting value is not less than the preset overflow threshold. The system can realize the periodic diagnosis on the counting state of the counter in the network chip by using a packet generator and a message processing engine, so as to prevent the processor from constantly sampling the counter to check the state of the counter, and ensure the calculation performance of the processor.
Abstract:
The disclosure provides an RAM, a network processing system and a table lookup method for the RAM. The RAM is divided into at least two virtual memory libraries, a same service table is stored in the at least two virtual memory libraries, and a proper virtual memory library is determined through the computation of a network memory to be accessed, so that the table lookup speed of the RAM is improved, the access traffic pressure is effectively reduced for the RAM, and the network forwarding performance is improved. Moreover, a same service table can be stored in the virtual memory libraries of the RAM, the table lookup speed of the RAM is increased maximally, and the network processor can compute the virtual memory library address information through hash computation.