Method and system for detecting abnormality of network processor
AssigneeZte Corporation
InventorsYin Zhu, Yirong Wu
Life of this patent
Estimating the term…
Loading patent…
AssigneeZte Corporation
InventorsYin Zhu, Yirong Wu
Estimating the term…
The disclosure discloses a method and a system for detecting an abnormality of a network processor. The method comprises the following steps: an abnormality detection operation code is added into an execution flow of each thread in a network processor, and the network processor sets a flag bit corresponding to a current thread in an abnormality protection flag data area in a shared memory to a first flag when executing the abnormality detection operation code in the current thread; and when a period of a timer is expire, a coprocessor detects all the flag bits in the abnormality protection flag data area in the shared memory, determines that a thread corresponding to a flag bit which is not the first flag is abnormal when detecting that not all the flag bits are the first flag, and sets all the flag bits to a second flag when detecting that all the flag bits are the first flag. Through the disclosure, the abnormality of a thread can be detected timely and efficiently, so that the failure detection capability of the network device using the network processor as a core unit at run time is improved without influencing the forwarding performance and service processing flow of the network processor.
A method for detecting an abnormality of a network processor, comprising:
A system for detecting an abnormality of a network processor, comprising a network processor, a coprocessor and a shared memory, wherein:
Dependencies are inferred from the claim text.