A packet forwarding method and control device supporting cache latency setting

By configuring port parameters and rate monitoring, flexible switching of data packet forwarding methods is achieved, solving the problem of high latency jitter in the network system. This meets the latency controllability and low jitter requirements of applications such as autonomous driving and aerospace, and improves the flexibility and stability of the network switching system.

CN116566932BActive Publication Date: 2026-03-24THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing network systems suffer from high latency and jitter during data exchange, and struggle to meet the switching requirements of ports with different rates. This is especially true in applications such as autonomous driving and aerospace, where the requirements for controllable latency and low jitter are difficult to achieve.

Method used

By configuring port parameters Lmax and L, combined with the rate monitoring unit and forwarding mode control unit, flexible switching between pass-through forwarding, store-and-forwarding, and store-and-pass-through forwarding modes of data packets can be achieved. The appropriate forwarding mode can be selected according to the data packet length and port rate, and the buffer delay can be set.

Benefits of technology

It enables the setting of buffer latency for the data exchange system, reduces latency jitter, improves the stability and flexibility of the network system, and adapts to the data forwarding requirements of ports with different rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566932B_ABST
    Figure CN116566932B_ABST
Patent Text Reader

Abstract

The application discloses a packet forwarding method and control device supporting cache delay setting, and belongs to the technical field of network data exchange. The method comprises the following steps: configuring the maximum length of data packets allowed to pass through a data exchange system and the data length allowed to enter a cache of each port; receiving data to be sent by a port; determining a forwarding mode of the data packet according to the configured parameters and the port rate; and forwarding the data packet according to the determined forwarding mode and a target port. The forwarding mode comprises store-and-forward, straight-through forwarding and store-straight-through forwarding. The method can determine the data cache length of the port of the exchange system according to user setting, realize the setting of the cache delay, and thus more flexibly meet the requirements of the existing data exchange on the delay, jitter and exchange of different rate ports, and can be used in various network exchange devices and systems.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network data exchange, in particular to a packet forwarding method and control device supporting cache delay setting. BACKGROUND

[0002] With the rapid development of network technology, the network scale and bandwidth continue to grow, and high-speed exchange of network data is increasingly important. In the data exchange process, there are mainly two modes of data packet forwarding, namely, store-and-forward and cut-through forwarding. The store-and-forward mode receives and caches all data packets entering the port. After data verification, the destination MAC address in the data packet is read and the corresponding port is forwarded according to the table. The input port of the cut-through forwarding receives data without caching and verification. When the destination MAC address in the packet header is detected, the data packet is immediately forwarded to the corresponding port according to the table.

[0003] As can be seen from the above, the store-and-forward technology often produces high latency because it needs to cache and verify the data packets entering the port. At the same time, due to the fixed length of data packets in the network, the latency of store-and-forward is also fixed, and there may be latency jitter. The cache latency of cut-through forwarding is small, and it is independent of the length of the data packet, so the latency jitter is small. However, due to the lack of entry cache, different input / output ports cannot be directly connected in the cut-through forwarding mode. In order to adapt to complex application scenarios, existing network systems often need multiple different data exchange systems to meet various data forwarding requirements. Some application scenarios, such as autonomous driving, aerospace, digital twin, etc., have strict requirements on controllable latency, low jitter and high reliability of network system data exchange. SUMMARY

[0004] The present application provides a packet forwarding method and control device supporting cache delay setting. The present application can determine the data cache length of the data exchange port according to the user setting, thereby realizing the setting of cache delay, and more flexibly meeting the requirements of latency, jitter and exchange of different rate ports in existing data exchange. It can be used in various data exchange devices and systems.

[0005] In order to achieve the above purpose, the technical scheme adopted by the present application is as follows:

[0006] A packet forwarding method supporting cache delay setting, comprising the following steps:

[0007] (1) Configure port parameters, including the maximum length L of data packets allowed to pass through the data exchange system max and the data length L allowed to enter the cache of the port;

[0008] (2) receiving the data packet entering the port; if the port is an input port, determining the target port to be forwarded according to the destination MAC address and routing information in the data packet;

[0009] (3) if L=0, the port performs a cut-through forwarding mode; if L≥L max , the port performs a store-and-forward mode; if L max >0, the port performs a store-and-cut-through forwarding mode;

[0010] In the cut-through forwarding mode, for an input port, the data packet is immediately forwarded to the corresponding target port and returns to step (2); for an output port, the data packet is immediately forwarded to the next level port and returns to step (2);

[0011] In the store-and-forward mode, for an input port, the data packet is completely stored and then checked, and after the check is correct, the data packet is forwarded to the corresponding target port and returns to step (2); for an output port, the data packet is completely stored and then checked, and after the check is correct, the data packet is transmitted to the next level port and returns to step (2);

[0012] In the store-and-cut-through forwarding mode, first, the data of the first L length of the data packet is stored in the cache; second, for an input port, after the storage is completed, the data packet is immediately forwarded to the corresponding target port and returns to step (2); for an output port, after the storage is completed, the data packet is immediately forwarded to the next level port and returns to step (2).

[0013] A packet forwarding method supporting cache delay setting, comprising the following steps:

[0014] (1) configuring port parameters, including the maximum length L max of the data packet allowed to pass through the data exchange system and the data length L allowed to enter the cache of the port;

[0015] (2) receiving the data packet entering the port; if the port is an input port, determining the target port to be forwarded according to the destination MAC address and routing information in the data packet;

[0016] (3) if L=0 and the port is an input port, continuing to judge whether the input port rate is the same as the target port rate, if yes, the port performs a cut-through forwarding mode, if no, the port performs a store-and-forward mode; if L=0 and the port is an output port, the port performs a cut-through forwarding mode; if L≥L max , the port performs a store-and-forward mode; if L max >0, the port performs a store-and-cut-through forwarding mode;

[0017] In the cut-through mode, for the input port, the data packet is immediately forwarded to the corresponding target port, and the step (2) is returned; for the output port, the data packet is immediately forwarded to the next level port, and the step (2) is returned;

[0018] In the store-and-forward mode, for the input port, the data packet is completely stored and then checked, and after the checking is correct, the data packet is forwarded to the corresponding target port, and the step (2) is returned; for the output port, the data packet is completely stored and then checked, and after the checking is correct, the data packet is transmitted to the next level port, and the step (2) is returned;

[0019] In the store-and-cut-through mode, first, the data packet of the front L length is stored into the cache; second, for the input port, after the storage is completed, the data packet is immediately forwarded to the corresponding target port, and the step (2) is returned; for the output port, after the storage is completed, the data packet is immediately forwarded to the next level port, and the step (2) is returned.

[0020] A packet forwarding method supporting cache delay setting, comprising the following steps:

[0021] (1) configuring port parameters, including the maximum length L of the data packet allowed to pass through the data exchange system and the data length L allowed to enter the cache of the port; max

[0022] (2) receiving the data packet entering the port; if the port is an input port, the target port to be forwarded is determined according to the destination MAC address and the routing information in the data packet;

[0023] (3) if L=0, the port executes the cut-through mode; if L≥L max , the port executes the store-and-forward mode; if L max >0 and the port is an input port, it is further judged whether the input port rate is greater than the target port rate, if yes, the store-and-forward mode is executed, if not, the store-and-cut-through mode is executed; if L max >0 and the port is an output port, the port executes the store-and-cut-through mode;

[0024] In the cut-through mode, for the input port, the data packet is immediately forwarded to the corresponding target port, and the step (2) is returned; for the output port, the data packet is immediately forwarded to the next level port, and the step (2) is returned;

[0025] In the store-and-forward mode, for the input port, the data packet is completely stored and then checked, and after the checking is correct, the data packet is forwarded to the corresponding target port, and the step (2) is returned; for the output port, the data packet is completely stored and then checked, and after the checking is correct, the data packet is transmitted to the next level port, and the step (2) is returned;

[0026] ​In the store-and-forward mode, first, the data of the first L length of the data packet is stored in the buffer; second, for the input port, the data packet is immediately forwarded to the corresponding target port after the storage is completed, and the step (2) is returned; for the output port, the data packet is immediately forwarded to the next level port after the storage is completed, and the step (2) is returned.

[0027] A packet forwarding control device supporting cache delay setting, comprising:

[0028] A parameter configuration unit for storing and configuring port parameters L max and L, L max L is the maximum length of the data packet allowed to pass through the data exchange system, and L is the length of the data allowed to enter the cache by the port;

[0029] A rate monitoring unit applied to the input port, for monitoring the rate of the input port and comparing the rate with the rate of the target port;

[0030] A forwarding mode control unit for executing the corresponding forwarding mode according to the port parameters and the port rate;

[0031] If L=0, the port executes the pass-through forwarding mode; if L≥L max , the port executes the store-and-forward mode; if L max >L>0, the port executes the store-and-forward mode;

[0032] In the pass-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port; for the output port, the data packet is immediately forwarded to the next level port;

[0033] In the store-and-forward mode, for the input port, the data packet is stored and then verified, and after the verification is correct, the data packet is forwarded to the corresponding target port; for the output port, the data packet is stored and then verified, and after the verification is correct, the data packet is transmitted to the next level port;

[0034] In the store-and-forward mode, first, the data of the first L length of the data packet is stored in the buffer; second, for the input port, the data packet is immediately forwarded to the corresponding target port after the storage is completed; for the output port, the data packet is immediately forwarded to the next level port after the storage is completed.

[0035] A packet forwarding control device supporting cache delay setting, comprising:

[0036] A parameter configuration unit for storing and configuring port parameters L max and L, L max L is the maximum length of the data packet allowed to pass through the data exchange system, and L is the length of the data allowed to enter the cache by the port;

[0037] Rate monitoring unit: applied to the input port, for monitoring the rate of the input port, and compared with the rate of the target port;

[0038] Forwarding mode control unit: according to the port parameters and port rate, the corresponding forwarding mode is executed;

[0039] Wherein, if L=0 and the port is an input port, continue to judge whether the input port rate is the same as the target port rate, if yes, the port executes straight-through forwarding mode, if not, the port executes store-and-forward mode; if L=0 and the port is an output port, the port executes straight-through forwarding mode; if L max , the port executes store-and-forward mode; if L max >0, the port executes store-straight-through forwarding mode;

[0040] In the straight-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port; for the output port, the data packet is immediately forwarded to the next level port;

[0041] In the store-and-forward mode, for the input port, the data packet is stored and then verified, and after verification, it is forwarded to the corresponding target port; for the output port, the data packet is stored and then verified, and after verification, it is transmitted to the next level port;

[0042] In the store-straight-through forwarding mode, first, the data of the first L length of the data packet is stored in the cache; second, for the input port, after the storage is completed, the data packet is immediately forwarded to the corresponding target port; for the output port, after the storage is completed, the data packet is immediately forwarded to the next level port.

[0043] A packet forwarding control device supporting cache delay setting, comprising:

[0044] Parameter configuration unit: for storing and configuring port parameters L max and L, L max is the maximum length of the data packet allowed to pass through the data exchange system, and L is the length of the data allowed to enter the cache by the port;

[0045] Rate monitoring unit: applied to the input port, for monitoring the rate of the input port, and compared with the rate of the target port;

[0046] Forwarding mode control unit: according to the port parameters and port rate, the corresponding forwarding mode is executed;

[0047] Wherein, if L=0, the port executes straight-through forwarding mode; if L max , the port executes store-and-forward mode; if L maxIf L>0 and the port is an input port, then continue to determine if the input port speed is greater than the target port speed. If yes, then execute the store-and-forward method; otherwise, execute the store-and-pass forward method. max If L>0 and the port is an output port, then the port will execute the store-and-forward mode;

[0048] In the pass-through forwarding mode, for input ports, data packets are immediately forwarded to the corresponding destination port; for output ports, data packets are immediately forwarded to the next-level port.

[0049] In store-and-forward mode, for input ports, all data packets are stored and verified. If the verification is successful, the packets are forwarded to the corresponding target port. For output ports, all data packets are stored and verified. If the verification is successful, the packets are transmitted to the next-level port.

[0050] In the store-and-forward mode, the first L-length of the data packet is stored in the buffer. Then, for the input port, the data packet is immediately forwarded to the corresponding destination port after storage. For the output port, the data packet is immediately forwarded to the next level port after storage.

[0051] Compared with the prior art, the present invention has the following advantages:

[0052] (1) This invention provides a configurable buffer latency for data exchange systems and devices by setting the length of data allowed to enter the buffer at a port. This advantage can be used in, but is not limited to, large-scale multi-hop network systems to ensure the latency stability of the entire network system and reduce latency jitter.

[0053] (2) The store-through forwarding method proposed in this invention can be used to forward data from low-speed ports to high-speed ports, providing a forwarding method with better latency performance than store-through forwarding and significantly reducing cache latency.

[0054] (3) The present invention has strong flexibility. The parameters can be configured independently according to the data type, data packet length and business requirements, and can also be adjusted in real time through software program control. Attached Figure Description

[0055] Figure 1 This is an example block diagram of data packet forwarding in an embodiment of the present invention.

[0056] Figure 2 This is a block diagram illustrating the implementation of the control device in an embodiment of the present invention.

[0057] Figure 3 This is a flowchart of a packet forwarding method that supports buffer latency setting for an input port, as described in an embodiment of the present invention.

[0058] Figure 4This is a flowchart of a packet forwarding method that supports buffer latency setting for the output port in an embodiment of the present invention. Detailed Implementation

[0059] A packet forwarding method supporting buffer latency setting, applied in data exchange devices and systems, includes the following steps:

[0060] (1) Configure port parameters, including the maximum length L of data packets allowed through the data exchange system. max The length L of data allowed to enter the cache at the port;

[0061] (2) Receive data packets entering the port; if the port is an input port, determine the target port to be forwarded based on the destination MAC address and routing information in the data packet;

[0062] (3) If L = 0, the port executes pass-through forwarding mode; if L ≥ L max If L max If L>0, the port will use store-and-forward mode;

[0063] In the pass-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port and the process returns to step (2).

[0064] In the store-and-forward mode, for the input port, all data packets are stored and then verified. If the verification is correct, the data packets are forwarded to the corresponding target port and the process returns to step (2). For the output port, all data packets are stored and then verified. If the verification is correct, the data packets are transmitted to the next level port and the process returns to step (2).

[0065] In the store-and-forward method, the first L-length data of the data packet is stored in the buffer; secondly, for the input port, the data packet is immediately forwarded to the corresponding target port after storage and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port after storage and the process returns to step (2).

[0066] In addition, in step (3), when L=0, if the port is an input port, continue to determine whether the input port rate is the same as the target port rate; if yes, then execute the pass-through forwarding mode; if no, then execute the store-and-forward mode.

[0067] L max When L>0, if the port is an input port, continue to determine if the input port speed is greater than the target port speed; if yes, execute store-and-forward; otherwise, execute store-and-pass forward. If the input port speed is less than the target port speed, the minimum value of L needs to be determined based on L... maxThe input port rate and the target port rate are jointly determined.

[0068] A packet forwarding control device that supports setting buffer latency, applied to the port of a network data exchange system and device, comprising:

[0069] Parameter configuration unit: Used to store and configure the parameters L applied to this port. max and L;

[0070] Rate monitoring unit: If this port is an input port, it is used to monitor and compare the current input port rate with the target port rate; if this port is an output port, this unit is not enabled.

[0071] Forwarding mode control unit: Selects and switches forwarding modes based on current parameters and transmission rate.

[0072] Here are some more specific examples:

[0073] like Figure 1 As shown, after a data packet enters the input port, the destination MAC address is extracted from the header of the data packet to be forwarded, and the target port is determined based on the routing information. Based on the parameters configured in the control device and the monitored rate information, the forwarding method and the data length entering the ingress buffer of the data packet are determined. The switching structure schedules the data packet to the output port according to the routing information. Based on the parameters configured in the control device, the forwarding method of the output port and the data length entering the egress buffer are determined. The output port then transmits the data packet to the next-level port.

[0074] like Figure 2 The diagram shown is a block diagram of the control device in this embodiment. Based on parameter configuration and rate monitoring information, the control unit selects and switches the forwarding mode. Parameters L and L... max All are non-negative integers, with a default minimum value of 0. If the configuration parameters L and L... max If the value is negative, it will be automatically set to 0. If the configuration parameters L and L... max If the value is a fraction, it will be automatically rounded up. For input ports, the minimum value of L is L when the input port rate is less than the target port rate. min It needs to be based on L max The input port rate and the target port rate are jointly determined. If L <L min Then L will be automatically set to L. min Determine L min The methods vary depending on the actual needs.

[0075] In this embodiment, L min Determine according to formula (1).

[0076]

[0077] Where L min V is the minimum data length allowed to enter the buffer at a port. o For the target port rate, V i This refers to the input port speed.

[0078] like Figure 3 and Figure 4 The flowchart shown is for the packet forwarding method that supports setting the cache latency in this embodiment. The process is as follows:

[0079] (1) Configure port parameter L max and L;

[0080] (2) Check if any data packets are entering the port; if so, proceed to step (3); otherwise, continue checking.

[0081] (3) Receive data packets entering the port; if the port is an input port, determine the target port to be forwarded based on the destination MAC address and routing information in the data packet;

[0082] (4) If L = 0, proceed to step (5); if L is not 0, proceed to step (6);

[0083] (5) Determine whether the input port rate and the target port rate are the same; if they are the same, proceed to step (7); if they are different, proceed to step (8).

[0084] (6) If L≥L max Execute step (8); if L max If L>0, proceed to step (9);

[0085] (7) If the port is an input port, the data packet is immediately forwarded to the corresponding target port according to the destination address, and the process returns to step (2); if the port is an output port, the data packet is immediately forwarded to the next level port, and the process returns to step (2).

[0086] (8) If the port is an input port, store all data packets and perform verification. If the verification is correct, forward the data packets to the corresponding target port according to the destination address and return to step (2); if the port is an output port, store all data packets and perform verification. If the verification is correct, forward the data packets to the next level port and return to step (2).

[0087] (9) Determine whether the input port rate is greater than the target port rate; if yes, proceed to step (8); if no, proceed to step (10).

[0088] (10) Store the first L length of the data packet into the buffer; if the port is an input port, after storage, forward the data packet to the corresponding port immediately according to the destination address and return to step (2); if the port is an output port, after storage, forward the data packet to the next level port immediately and return to step (2).

[0089] This embodiment only describes the packet forwarding process for a single-input, single-output port. In actual network systems, the number of ports can be increased as needed. This method allows for setting the buffer latency for each port in the network switching system, increasing the flexibility of packet forwarding and effectively controlling latency and jitter in the network switching system.

[0090] In summary, this invention can determine the data buffer length of the switching system port according to user settings and realize the setting of buffer latency, thereby more flexibly meeting the needs of existing data switching for latency, jitter and different rate port switching, and can be used in various network switching devices and systems.

[0091] The above description, in conjunction with embodiments, illustrates a packet forwarding method that supports cache latency settings. The specific details described in the embodiments are not intended to limit the invention. Various modifications, substitutions, and improvements within the spirit and principle of this invention should be included within the scope of the claims.

Claims

1. A packet forwarding method supporting cache latency setting, characterized in that, Includes the following steps: (1) Configure port parameters, including the maximum length L of data packets allowed through the data exchange system. max The length L of data allowed to enter the cache at the port; (2) Receive data packets entering the port; if the port is an input port, determine the target port to be forwarded based on the destination MAC address and routing information in the data packet; (3) If L = 0, the port executes pass-through forwarding mode; if L ≥ L max If L max If L>0, the port will use store-and-forward mode; In the pass-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port and the process returns to step (2). In the store-and-forward mode, for the input port, all data packets are stored and then verified. If the verification is correct, the data packets are forwarded to the corresponding target port and the process returns to step (2). For the output port, all data packets are stored and then verified. If the verification is correct, the data packets are transmitted to the next level port and the process returns to step (2). In the store-and-forward method, the first L-length data of the data packet is stored in the buffer; secondly, for the input port, the data packet is immediately forwarded to the corresponding target port after storage and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port after storage and the process returns to step (2).

2. A packet forwarding method supporting cache latency setting, characterized in that, Includes the following steps: (1) Configure port parameters, including the maximum length L of data packets allowed through the data exchange system. max The length L of data allowed to enter the cache at the port; (2) Receive data packets entering the port; if the port is an input port, determine the target port to be forwarded based on the destination MAC address and routing information in the data packet; (3) If L = 0 and the port is an input port, then continue to determine whether the input port speed is the same as the target port speed. If yes, the port executes the pass-through forwarding mode; if no, the port executes the store-and-forward mode. If L = 0 and the port is an output port, then the port executes the pass-through forwarding mode. If L ≥ L max If L max If L>0, the port will use store-and-forward mode; In the pass-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port and the process returns to step (2). In the store-and-forward mode, for the input port, all data packets are stored and then verified. If the verification is correct, the data packets are forwarded to the corresponding target port and the process returns to step (2). For the output port, all data packets are stored and then verified. If the verification is correct, the data packets are transmitted to the next level port and the process returns to step (2). In the store-and-forward method, the first L-length data of the data packet is stored in the buffer; secondly, for the input port, the data packet is immediately forwarded to the corresponding target port after storage and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port after storage and the process returns to step (2).

3. A packet forwarding method supporting cache latency setting, characterized in that, Includes the following steps: (1) Configure port parameters, including the maximum length L of data packets allowed through the data exchange system. max The length L of data allowed to enter the cache at the port; (2) Receive data packets entering the port; if the port is an input port, determine the target port to be forwarded based on the destination MAC address and routing information in the data packet; (3) If L = 0, the port executes pass-through forwarding mode; if L ≥ L max If L max If L>0 and the port is an input port, then continue to determine if the input port speed is greater than the target port speed. If yes, then execute the store-and-forward method; otherwise, execute the store-and-pass forward method. max If L>0 and the port is an output port, then the port will execute the store-and-forward mode; In the pass-through forwarding mode, for the input port, the data packet is immediately forwarded to the corresponding target port and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port and the process returns to step (2). In the store-and-forward mode, for the input port, all data packets are stored and then verified. If the verification is correct, the data packets are forwarded to the corresponding target port and the process returns to step (2). For the output port, all data packets are stored and then verified. If the verification is correct, the data packets are transmitted to the next level port and the process returns to step (2). In the store-and-forward method, the first L-length data of the data packet is stored in the buffer; secondly, for the input port, the data packet is immediately forwarded to the corresponding target port after storage and the process returns to step (2); for the output port, the data packet is immediately forwarded to the next level port after storage and the process returns to step (2).

4. A packet forwarding control device that supports setting buffer latency, characterized in that, include: Parameter configuration unit: used to store and configure port parameters L max and L, L max L represents the maximum length of data packets allowed to pass through the data exchange system, and L is the length of data allowed to enter the buffer at the port. Rate monitoring unit: Applied to the input port, it is used to monitor the rate of the input port and compare it with the rate of the target port; Forwarding mode control unit: Executes the corresponding forwarding mode based on port parameters and port speed; Where L = 0, the port executes pass-through forwarding mode; if L ≥ L max If L max If L>0, the port will use store-and-forward mode; In the pass-through forwarding mode, for input ports, data packets are immediately forwarded to the corresponding destination port; for output ports, data packets are immediately forwarded to the next-level port. In store-and-forward mode, for input ports, all data packets are stored and verified. If the verification is successful, the packets are forwarded to the corresponding target port. For output ports, all data packets are stored and verified. If the verification is successful, the packets are transmitted to the next-level port. In the store-and-forward mode, the first L-length of the data packet is stored in the buffer. Then, for the input port, the data packet is immediately forwarded to the corresponding destination port after storage. For the output port, the data packet is immediately forwarded to the next level port after storage.

5. A packet forwarding control device that supports setting buffer latency, characterized in that, include: Parameter configuration unit: used to store and configure port parameters L max and L, L max L represents the maximum length of data packets allowed to pass through the data exchange system, and L is the length of data allowed to enter the buffer at the port. Rate monitoring unit: Applied to the input port, it is used to monitor the rate of the input port and compare it with the rate of the target port; Forwarding mode control unit: Executes the corresponding forwarding mode based on port parameters and port speed; If L = 0 and the port is an input port, then it continues to determine whether the input port speed is the same as the target port speed. If yes, the port executes pass-through forwarding mode; if no, the port executes store-and-forward mode. If L = 0 and the port is an output port, the port executes pass-through forwarding mode. If L ≥ L... max If L max If L>0, the port will use store-and-forward mode; In the pass-through forwarding mode, for input ports, data packets are immediately forwarded to the corresponding destination port; for output ports, data packets are immediately forwarded to the next-level port. In store-and-forward mode, for input ports, all data packets are stored and verified. If the verification is successful, the packets are forwarded to the corresponding target port. For output ports, all data packets are stored and verified. If the verification is successful, the packets are transmitted to the next-level port. In the store-and-forward mode, the first L-length of the data packet is stored in the buffer. Then, for the input port, the data packet is immediately forwarded to the corresponding destination port after storage. For the output port, the data packet is immediately forwarded to the next level port after storage.

6. A packet forwarding control device that supports setting buffer latency, characterized in that, include: Parameter configuration unit: used to store and configure port parameters L max and L, L max L represents the maximum length of data packets allowed to pass through the data exchange system, and L is the length of data allowed to enter the buffer at the port. Rate monitoring unit: Applied to the input port, it is used to monitor the rate of the input port and compare it with the rate of the target port; Forwarding mode control unit: Executes the corresponding forwarding mode based on port parameters and port speed; Where L = 0, the port executes pass-through forwarding mode; if L ≥ L max If L max If L>0 and the port is an input port, then continue to determine if the input port speed is greater than the target port speed. If yes, then execute the store-and-forward method; otherwise, execute the store-and-pass forward method. max If L>0 and the port is an output port, then the port will execute the store-and-forward mode; In the pass-through forwarding mode, for input ports, data packets are immediately forwarded to the corresponding destination port; for output ports, data packets are immediately forwarded to the next-level port. In store-and-forward mode, for input ports, all data packets are stored and verified. If the verification is successful, the packets are forwarded to the corresponding target port. For output ports, all data packets are stored and verified. If the verification is successful, the packets are transmitted to the next-level port. In the store-and-forward mode, the first L-length of the data packet is stored in the buffer. Then, for the input port, the data packet is immediately forwarded to the corresponding destination port after storage. For the output port, the data packet is immediately forwarded to the next level port after storage.

Citation Information

Patent Citations

  • Modular switch and network architecture

    CN111641568A

  • Switch and data accessing method thereof

    US20170331768A1