Method for implementing counting control of counter, and network chip
    1.
    发明授权
    Method for implementing counting control of counter, and network chip 有权
    实现计数器和网络芯片计数控制的方法

    公开(公告)号:US09594616B2

    公开(公告)日:2017-03-14

    申请号:US14781835

    申请日:2014-03-25

    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 translation: 提供一种用于实现网络芯片中的计数器的计数控制的方法和网络芯片。 该方法包括:周期性地产生计数值扫描消息; 根据生成的计数值扫描消息读取相应计数器项的计数值; 分析和判断读取计数值是否小于预设的溢出阈值; 并且当读取计数值不小于预设溢出阈值时,通知处理器处理计数器的计数异常。 该系统可以通过使用分组生成器和消息处理引擎来实现对网络计数器的计数状态的定期诊断,以防止处理器对计数器进行不断采样以检查计数器的状态,并确保 处理器的计算性能。

Patent Agency Ranking