Method and system for counting data packets
AssigneeZte Corporation
InventorJinmei Yang
Life of this patent
Estimating the term…
Abstract
The disclosure provides a method for counting data packets, which includes the following steps: counting packet pulse signals when a low bit counter is in a count state, and sending a carry signal when the low bit counter is full; and acquiring data from an address of a Random Access Memory (RAM) corresponding to the low bit counter which sends the carry signal, adding 1 to the acquired data and then writing the added data into the address. The disclosure also provides a system for counting data packets. According to the technical scheme of the disclosure, the occupancy rate of logical resources is reduced while the counting of the data packets in a network is finished at a high speed.
Claims20
A method for counting data packets, comprising:
- counting packet pulse signals when a low bit counter is in a count state, and sending a carry signal when the low bit counter is full;
- and
- acquiring data from an address of a Random Access Memory (RAM) corresponding to the low bit counter which sends the carry signal, adding 1 to the acquired data and then writing the added data into the address.
A system for counting data packets, comprising:
- a low bit counter, a state machine and a Random Access Memory (RAM), wherein
- the low bit counter is configured to count packet pulse signals when the low bit counter itself is in a count state and to send a carry signal when the low bit counter itself is full;
- the state machine is configured to acquire data from an address of the RAM corresponding to the low bit counter which sends the carry signal, to add 1 to the acquired data and then to write the added data into the address;
- and
- the RAM is configured to provide the data of itself to the state machine and to store the data written by the state machine.
Dependencies are inferred from the claim text.