IP Library Granted Patent US 12665863
Granted Patent B2
US 12665863 · App. 18/317,969 · Granted Jun 23, 2026

Method for forwarding data packet, electronic device, and storage medium for the same

Inventor: Junjie Lin (Fuzhou, CN)
Assignee: Ruijie Networks Co., Ltd.
H04L49/90H04L47/39
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12665863
App. No.
18/317,969
Granted
Jun 23, 2026
Kind
B2
Abstract

The present application provides a method for forwarding a data packet, and an electronic device and a non-volatile computer-readable storage medium therefor. The method includes: receiving a target data packet including first address information; acquiring a storage status of a packet queue corresponding to the target data packet, wherein the packet queue is adapted to store data packets with address information consistent with the first address information; storing, when the storage status is determined as a first state, the target data packet into a first-class block storage space corresponding to a low latency queue, wherein the first state represents a non-congestion state; and forwarding, when a first condition is met, a first data packet stored in the first class block storage space.

Claims (49)

1 . A method for forwarding a data packet, comprising:

receiving a target data packet including first address information corresponding to a packet queue;

acquiring a storage status of the packet queue corresponding to the target data packet, wherein the packet queue is adapted to store data packets with address information consistent with the first address information;

storing, when the storage status of the packet queue is determined as a first state, the target data packet into a first-class block storage space corresponding to a low latency queue, wherein the first state represents a non-congestion state, the non-congestion state indicates a state where a total traffic flow of data packets stored in the packet queue is less than a traffic threshold, and the low latency queue is different from the packet queue; and

forwarding, when a first condition is met, the target data packet stored in the first class block storage space.

2 . The method of claim 1 , wherein the low latency queue is adapted to store data packets having different address information corresponding to different packet queues, wherein the low latency queue is different from the different packet queues.

3 . The method of claim 1 , wherein the first-class block storage space is allocated on an off-chip buffer.

4 . The method of claim 1 , wherein the step of storing, when the storage status is determined as the first state, the target data packet into the first-class block storage space corresponding to the low latency queue, further comprises:

storing a data packet of the packet queue into the first-class block storage space.

5 . The method of claim 1 , wherein the step of acquiring the storage status of the packet queue, comprises:

detecting the storage status of the packet queue; and

updating the storage status of the packet queue.

6 . The method of claim 5 , wherein the step of detecting the storage status of the packet queue, comprises:

monitoring, on schedule, the storage status of the packet queue.

7 . The method of claim 6 , wherein the step of monitoring, on schedule, the storage status of the packet queue, comprises:

calculating a target credit point of the packet queue, wherein the target credit point is related to a forwarding rate of the packet queue; and

determining, based on the target credit point, the storage status of the packet queue.

8 . The method of claim 7 , wherein the step of calculating the target credit point of the packet queue, comprises:

determining a first credit point allocated to the packet queue;

determining, when a data packet in the packet queue is forwarded, a second credit point based on a traffic flow of the forwarded data packet; and

calculating the target credit point based on the first credit point and the second credit point.

9 . The method of claim 6 , wherein the step of monitoring, on schedule, the storage status of the packet queue, comprises:

monitoring a remaining queue length of the packet queue; and

updating, based on the remaining queue length, the storage status of the packet queue corresponding to the target data packet.

10 . The method of claim 1 , wherein the step of forwarding, when the first condition is met, the target data packet stored in the first-class block storage space, comprises:

when the total traffic flow of the data packets stored in the first-class block storage space is equal to or greater than a first threshold, forwarding the target data packet.

11 . The method of claim 1 , wherein the step of forwarding, when the first condition is met, the target data packet stored in the first-class block storage space, comprises:

forwarding, on schedule, the target data packet stored in the first-class block storage space.

12 . The method of claim 1 , wherein the step of forwarding, when the first condition is met, the target data packet stored in the first-class block storage space, comprises:

detecting first buffer description BD information corresponding to the low latency queue; and

when the first BD information is determined as valid, forwarding the target data packet stored in the first-class block storage space.

13 . The method of claim 1 , wherein the method further comprises:

storing, when the storage status is determined as a second state, the target data packet into a second-class block storage space corresponding to the packet queue, wherein the second state represents a congestion state; and

forwarding, when a second condition is met, the target data packet stored in the second-class block storage space.

14 . The method of claim 13 , wherein the step of forwarding, when the second condition is met, the target data packet stored in the second-class block storage space, comprises:

when a total traffic flow of data packets stored in the second-class block storage space is equal to or greater than a second threshold, forwarding the target data packet stored in the second-class block storage space.

15 . The method of claim 13 , wherein the step of forwarding, when the second condition is met, the target data packet stored in the second-class block storage space, comprises:

when the storage status of the packet queue is determined as being switched from the second state to the first state, forwarding the target data packet stored in the second-class block storage space.

16 . The method of claim 13 , wherein the first-class block storage space is not greater than the second-class block storage space.

17 . An electronic device, including a processor and a memory, wherein program code is stored on the memory, and when the program code is executed by the processor, the processor is enabled to perform:

receiving a target data packet including first address information corresponding to a packet queue;

acquiring a storage status of the packet queue corresponding to the target data packet, wherein the packet queue is adapted to store data packets with address information consistent with the first address information;

storing, when the storage status of the packet queue is determined as a first state, the target data packet into a first-class block storage space corresponding to a low latency queue, wherein the first state represents a non-congestion state, the non-congestion state indicates a state where a total traffic flow of data packets stored in the packet queue is less than a traffic threshold, and the low latency queue is different from the packet queue; and

forwarding, when a first condition is met, the target data packet stored in the first class block storage space.

18 . A non-transitory computer-readable storage medium, including program code, wherein when the program code is executed on an electronic device, the program code is configured to enable the electronic device to perform:

receiving a target data packet including first address information corresponding to a packet queue;

acquiring a storage status of the packet queue corresponding to the target data packet, wherein the packet queue is adapted to store data packets with address information consistent with the first address information;

storing, when the storage status of the packet queue is determined as a first state, the target data packet into a first-class block storage space corresponding to a low latency queue, wherein the first state represents a non-congestion state, the non-congestion state indicates a state where a total traffic flow of data packets stored in the packet queue is less than a traffic threshold, and the low latency queue is different from the packet queue; and

forwarding, when a first condition is met, the target data packet stored in the first class block storage space.