Message data forwarding method, switch chip and switch

By dynamically adjusting the number of free characters and segmentation methods of data frames, the problem of data frame overflow in the switch chip is solved, and the stability and efficiency of data transmission are improved.

CN120342978APending Publication Date: 2025-07-18苏州特思恩科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510544177.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

When the message transmission rate of the switch chip is higher than the message reception rate of the data receiving device, the data frame overflows in the cache, resulting in frame loss.

Method used

By dynamically adjusting the number of free characters in the data frame and the data slice segmentation method, ensure that the average number of free characters inserted in each data frame during transmission is less than or equal to 12, reducing the amount of data in the cache and avoiding overflow.

Benefits of technology

It effectively reduces the loss of data frames in the cache and improves the stability and efficiency of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342978A_ABST
    Figure CN120342978A_ABST
Patent Text Reader

Abstract

The invention provides a message data forwarding method, a switch chip and a switch, and relates to the technical field of communication. The data processing module determines the number of idle characters ipgCntn corresponding to the nth data frame according to a preset equation under the condition that the number of the remaining unforwarded effective bytes of the nth data frame is smaller than or equal to the preset number M, and Kn is the number of the remaining unforwarded effective bytes of the nth data frame. The data processing module inserts the idle character number ipgCntn corresponding to the determined nth data frame into the tail of the remaining unforwarded effective byte number to form a second data piece; and the data processing module forwards the second data piece based on the data transmission port. As the curDicn-1 is equal to the curDicn-1 + (cfgIpgCnt-ipgCnt-1), the curDicnlt is greater than or equal to 0 and less than or equal to the curDicnlt; m, 12 > = cfgIpgCntgt; according to the data transmission method and device, the average value of the number of idle characters between the data frames is smaller than or equal to 12 when the data is transmitted, effective bytes of the data frame which firstly enters the cache are not prone to overflowing the cache before being forwarded, and the phenomenon of frame loss is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technologies, and in particular, to a method for forwarding packet data, a switch chip, and a switch. Background Art

[0002] A switch chip is a core component of an Ethernet switch and is responsible for processing and forwarding data packets. The main functions of the switch chip include preprocessing and forwarding of data packets, which directly affect the performance and efficiency of the switch. Currently, when transmitting data frames, a switch chip usually inserts idle characters greater than or equal to 12 at the end of each data frame for data frame forwarding.

[0003] However, there may be a frequency difference between the clock of the data receiving device and the clock of the switch chip forwarding the data. When the clock of the data receiving device is negatively biased relative to the clock of the switch chip forwarding the data, the packet sending rate of the switch chip is higher than the packet receiving rate of the data receiving device. Generally, the valid bytes of the data frame to be sent and idle characters greater than or equal to 12 inserted at the end of each data frame are added to the buffer for first-in-first-out processing. Based on the above, in the case where the length of the inserted idle characters is large and the packet sending rate of the switch chip is higher than the packet receiving rate of the data receiving device, when the number of valid bytes and idle characters of the data frames added to the buffer is large enough, the valid bytes of the data frame that first enters the buffer will "overflow" the buffer before being forwarded, resulting in packet loss. Summary of the Invention

[0004] The present application provides a method for forwarding packet data, a switch chip, and a switch, which are used to improve the problem of packet loss in packet data forwarding when the packet sending rate of the switch chip in the prior art is higher than the packet receiving rate of the data receiving device.

[0005] In a first aspect, a method for forwarding packet data according to the present application is applied to a switch chip. The switch chip includes a data processing module and a data transmission port. The data processing module is configured with an nth dynamic adjustment parameter curDic n and an average idle character number cfgIpgCnt. The data transmission port includes M data transmission channels in a certain order, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M, curDic n-1 is the (n - 1)th dynamic adjustment parameter configured after forwarding the (n - 1)th data frame, and ipgCnt n-1ipgCnt is the number of idle characters corresponding to the (n - 1)-th data frame to be forwarded after power-on. The method provided by this application includes:

[0006] When the data processing module determines that there is an n-th data frame to be forwarded after power-on and the number of remaining unforwarded valid bytes in the n-th data frame is greater than the preset quantity M, it sequentially takes M valid bytes in the n-th data frame as a group of first data slices, and sequentially forwards the first data slices through the data transmission port. Among them, the first data transmission channel in the M data transmission channels is used to transmit the data header of the n-th data frame, and each data transmission channel is used to transmit one valid byte of the first data slice. n is an integer greater than or equal to 2;

[0007] When the data processing module determines that the number of remaining unforwarded valid bytes in the n-th data frame is less than or equal to the preset quantity M, according to the preset arithmetic formula

[0008]

[0009] determine the number of idle characters ipgCnt corresponding to the n-th data frame n , and K n is the number of remaining unforwarded valid bytes in the n-th data frame;

[0010] The data processing module inserts the determined number of idle characters ipgCnt corresponding to the n-th data frame n at the tail of the remaining unforwarded valid bytes to form a second data slice;

[0011] The data processing module forwards the second data slice based on the data transmission port.

[0012] In some embodiments, after the data processing module forwards the second data slice based on the data transmission port, the method provided by this application further includes:

[0013] The data processing module updates the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 , where the (n + 1)-th dynamic adjustment parameter curDic n+1 satisfies: curDic n+1 = curDic n +(cfgIpgCnt - ipgCnt n ).

[0014] In some embodiments, the data processing module updates the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 , including:

[0015] The data processing module determines the (n + 1)-th dynamic adjustment parameter curDic n+1 = curDic n +(cfgIpgCnt - ipgCnt n ), n+1 ;

[0016] The data processing module updates the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 .

[0017] In some embodiments, the data processing module updates the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 , including:

[0018] Search for the (n + 1)-th dynamic adjustment parameter curDic n from a preset mapping relation table according to the n-th dynamic adjustment parameter curDic n , the average idle character count cfgIpgCnt, and the idle character count ipgCnt corresponding to the n-th data frame n+1 ;

[0019] Update the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 .

[0020] In some embodiments, when M = 8 and cfgIpgCnt = 12, the preset arithmetic formula is:

[0021]

[0022] In some embodiments, when M = 8 and cfgIpgCnt = 10, the preset arithmetic formula is:

[0023] In some embodiments, before the data processing module is powered on and receives the first data frame, the data processing module is configured with a first dynamic adjustment parameter curDic1, and the first dynamic adjustment parameter curDic1 = 0.

[0024] In a second aspect, the present application further provides a switch chip, including a data processing module and a data transmission port, and the data processing module is configured with an n-th dynamic adjustment parameter curDic nand the average number of idle characters cfgIpgCnt, the data transmission port includes M data transmission channels in a sequential order, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M, curDic n-1 is the (n - 1)th dynamic adjustment parameter configured after forwarding the (n - 1)th data frame, and ipgCnt n-1 is the number of idle characters corresponding to the (n - 1)th data frame after power-on. The data processing module is used to execute the method provided in the first aspect of this application.

[0025] In a second aspect, the data processing module is a combinational logic processing circuit module or a microprocessor.

[0026] In a third aspect, this application further provides a switch, including a switch chip as provided in the second aspect of the application.

[0027] This application provides a packet data forwarding method, a switch chip, and a switch. When the data processing module determines that the remaining unforwarded valid bytes of the nth data frame are less than or equal to a preset quantity M, according to a preset arithmetic formula

[0028]

[0029] it determines the number of idle characters ipgCnt n corresponding to the nth data frame, and K n is the remaining unforwarded valid bytes of the nth data frame. The data processing module inserts the determined number of idle characters ipgCnt n corresponding to the nth data frame at the tail of the remaining unforwarded valid bytes to form a second data slice; the data processing module forwards the second data slice based on the data transmission port. Since curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M. In this way, when data is transmitted, the average number of idle characters between each data frame can be less than or equal to 12. In this way, the amount of data added to the cache corresponding to each data frame on average is reduced, making it less likely for the valid bytes of the data frame that enters the cache first to "overflow" the cache before being forwarded, and reducing the phenomenon of frame loss. Description of the Drawings

[0030] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0031] Figure 1 It is a connection block diagram of the circuit modules of the switch chip provided by the embodiment of the present application.

[0032] Figure 2 It is one of the flowcharts of the packet data forwarding method provided by the embodiment of the present application;

[0033] Figure 3 It is the second flowchart of the packet data forwarding method provided by the embodiment of the present application. Detailed implementation manners

[0034] Hereinafter, the embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present disclosure. In addition, in the following description, the descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present disclosure.

[0035] Various structural schematic diagrams according to the embodiments of the present disclosure are shown in the accompanying drawings. These figures are not drawn to scale, where for the purpose of clear expression, some details are enlarged and some details may be omitted. The shapes of various regions and layers shown in the figures, as well as their relative sizes and positional relationships, are only exemplary. In practice, there may be deviations due to manufacturing tolerances or technical limitations, and those skilled in the art can design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0036] In the context of the present disclosure, when a layer / component is referred to as being "on" another layer / component, the layer / component can be directly on the other layer / component, or there can be an intermediate layer / component between them. Additionally, if a layer / component is "on" another layer / component in one orientation, then when the orientation is reversed, the layer / component can be "under" the other layer / component.

[0037] Hereinafter, the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0038] An embodiment of the present application provides a packet data forwarding method, which is applied to a switch chip. AsFigure 1 As shown, the switch chip includes a data processing module and data transmission ports. Among them, the data processing module can be a combinational logic processing circuit module; for example, the combinational logic processing circuit module includes modules such as a comparator, a logic gate circuit, an adder, and a subtractor. The data processing module can also be a microprocessor MCU (Microcontroller Unit, MCU), which is not limited herein. The data transmission ports include M data transmission channels with an existing order. Among them, M can be equal to 8, or can be equal to 4, etc., which is not limited herein. The data processing module is configured with the nth dynamic adjustment parameter curDic n and the average idle character count cfgIpgCnt, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M. For example, cfgIpgCnt can be equal to 8, or can be equal to 10, etc., which is not limited herein. In addition, curDic n-1 is the (n - 1)th dynamic adjustment parameter configured after forwarding the (n - 1)th data frame, and ipgCnt n-1 is the number of idle characters corresponding to the (n - 1)th data frame forwarded after power-on. As Figure 2 shown, the method provided by the embodiment of the present application includes:

[0039] S201: When the data processing module determines that there is an nth data frame to be forwarded after power-on and the number of remaining unforwarded valid bytes in the nth data frame is greater than the preset quantity M, the data processing module sequentially takes M valid bytes in the nth data frame as a group of first data slices, and sequentially forwards the first data slices through the data transmission ports.

[0040] Among them, the first data transmission channel among the M data transmission channels is used to transmit the data header of the nth data frame, and each data transmission channel is used to transmit one valid byte of the first data slice. n is an integer greater than or equal to 2.

[0041] It should be noted that before the data processing module is powered on and receives the first data frame, the data processing module is configured with the first dynamic adjustment parameter curDic1, and the first dynamic adjustment parameter curDic1 = 0.

[0042] S202: When the data processing module determines that the number of remaining unforwarded valid bytes in the nth data frame is less than or equal to the preset quantity M, according to the preset arithmetic formula

[0043]

[0044] Determine the number of idle characters ipgCnt corresponding to the nth data frame n , and K n is the number of remaining unforwarded valid bytes of the nth data frame.

[0045] It should be noted that when M = 8 and the data length of the nth data frame is 65B, the number of remaining unforwarded valid bytes of the nth data frame under the above conditions is 65 % 8 = 1; when M = 8 and the data length of the nth data frame is 75B, the number of remaining unforwarded valid bytes of the nth data frame under the above conditions is 75 % 8 = 3.

[0046] Exemplarily, in some embodiments, when M = 8 and cfgIpgCnt = 12, the preset arithmetic formula is:[[]] For example, if the number of remaining unforwarded valid bytes K n = 2, curDic n = 1, then K n + curDic n < 4, so ipgCnt n = 8 - 2 = 6; for another example, if the number of remaining unforwarded valid bytes K n = 6, curDic n = 3, then 4 ≤ K n + curDic n < 12, so ipgCnt n = 16 - 6 = 10; for another example, if the number of remaining unforwarded valid bytes K n = 7, curDic n = 5, then K n + curDic n ≥ 12, so, ipgCnt n = 24 - 7 = 17.

[0047] Exemplarily, when M = 8 and cfgIpgCnt = 12, the values of the number of idle characters ipgCnt corresponding to the respective values of the number of remaining unforwarded valid bytes of the nth data frame and the nth dynamic adjustment parameter curDic n can be as shown in Table 1 below. n The value of ipgCnt

[0048]

[0049] Table 1

[0050] Exemplarily, when M = 8 and cfgIpgCnt = 10, the number of remaining untransmitted valid bytes of the nth data frame and the nth dynamic adjustment parameter curDic n The corresponding number of idle characters ipgCnt for each value of n The value of can be as shown in Table 2 below.

[0051]

[0052] Table 2

[0053] As can be seen from Table 1 and Table 2, the average value of the number of idle characters ipgCnt n is less than or equal to 12, and the preset formula:

[0054]

[0055] Can be derived from the respective data in Table 1 and Table 2 above.

[0056] Exemplarily, in some other embodiments, when M = 8 and cfgIpgCnt = 10, the preset formula is: For example, the number of remaining untransmitted valid bytes K of the nth data frame n = 2, curDic n = 1, then K n + curDic n < 6, so, ipgCnt n = 8 - 2 = 2; Again, for example, the number of remaining untransmitted valid bytes K of the nth data frame n = 7, curDic n = 6, then 6 ≤ K n + curDic n < 14, so, ipgCnt n = 16 - 7 = 9; Again, for example, the number of remaining untransmitted valid bytes K of the nth data frame n = 7, curDic n = 7, then K n + curDic n ≥ 14, so, ipgCnt n = 24 - 7 = 17.

[0057] S203: The data processing module inserts the determined number of idle characters ipgCnt corresponding to the nth data frame n , at the tail of the number of remaining untransmitted valid bytes to form a second data slice.

[0058] S204: The data processing module forwards the second data slice based on the data transmission port.

[0059] In summary, for the packet data forwarding method provided in the embodiment of the present application, when the remaining unforwarded valid bytes of the nth data frame are determined to be less than or equal to the preset quantity M by the data processing module, according to the preset arithmetic formula

[0060]

[0061] the idle character count ipgCnt corresponding to the nth data frame is determined n , and K n is the remaining unforwarded valid bytes of the nth data frame. The data processing module inserts the determined idle character count ipgCnt n corresponding to the nth data frame at the tail of the remaining unforwarded valid bytes to form a second data slice; the data processing module forwards the second data slice based on the data transmission port. Since curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M. In this way, when data is transmitted, the average value of the idle character counts between each data frame can be less than or equal to 12. In this way, the amount of data added to the cache corresponding to each data frame on average is reduced, making it less likely for the valid bytes of the data frame that first enters the cache to "overflow" the cache before being forwarded, reducing the phenomenon of frame loss.

[0062] Further, after S104, the method provided in the embodiment of the present application may further include:

[0063] S205: The data processing module updates the configured nth dynamic adjustment parameter curDic n to the (n + 1)th dynamic adjustment parameter curDic n+1 .

[0064] Wherein, the (n + 1)th dynamic adjustment parameter curDic n+1 satisfies: curDic n+1 = curDic n +(cfgIpgCnt - ipgCnt n ). For example, when cfgIpgCnt = 12, ipgCnt n = 7, curDic n = 0, then curDic n+1 = 0 + (12 - 7) = 5; for another example, when cfgIpgCnt = 12, ipgCnt n = 14, curDic nWhen it is equal to 5, curDic n+1 = 5+(12 - 14)= 3.

[0065] Exemplarily, S105 can be specifically implemented in the following two ways:

[0066] The first way: The data processing module determines the (n + 1)-th dynamic adjustment parameter curDic n+1 = curDic n +(cfgIpgCnt - ipgCnt n ); The data processing module updates the configured n-th dynamic adjustment parameter curDic n+1 to the (n + 1)-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 .

[0067] The second way: Look up the (n + 1)-th dynamic adjustment parameter curDic n from a preset mapping relation table according to the n-th dynamic adjustment parameter curDic n , the average idle character number cfgIpgCnt, and the idle character number ipgCnt n+1 corresponding to the n-th data frame; Update the configured n-th dynamic adjustment parameter curDic n to the (n + 1)-th dynamic adjustment parameter curDic n+1 .

[0068] In addition, as still shown in Figure 1 , an embodiment of the present application further provides a switch chip, including a data processing module and a data transmission port. The data processing module is configured with the n-th dynamic adjustment parameter curDic n and the average idle character number cfgIpgCnt. The data transmission port includes M data transmission channels in an existing order, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M, curDic n-1 is the (n - 1)-th dynamic adjustment parameter configured after forwarding the (n - 1)-th data frame, ipgCnt n-1 is the idle character number corresponding to the (n - 1)-th data frame after power-on. The data processing module is used to execute the method provided in the above embodiment of the present application.

[0069] Among them, the data processing module can be, but is not limited to, a combinational logic processing circuit module or a microprocessor.

[0070] In addition, an embodiment of the present application further provides a switch, which includes a switch chip provided in the above-described embodiment of the application.

[0071] In the above description, no detailed description is made of technical details such as the composition of each layer. However, those skilled in the art should understand that various technical means can be used to form layers, regions, etc. of the required shapes. In addition, in order to form the same structure, those skilled in the art can also design methods that are not exactly the same as the methods described above. In addition, although the above embodiments are described separately, this does not mean that the measures in each embodiment cannot be used advantageously in combination.

[0072] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present application.

[0073] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims

1. A method for forwarding message data, characterized in that, Applied to a switch chip, the switch chip includes a data processing module and a data transmission port, and the data processing module is configured with the nth dynamic adjustment parameter curDic n and the average idle character count cfgIpgCnt. The data transmission port includes M data transmission channels in a present order, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M, curDic n-1 is the (n - 1)th dynamic adjustment parameter configured after forwarding the (n - 1)th data frame, and ipgCnt n-1 is the number of idle characters corresponding to the (n - 1)th data frame forwarded after power-on. The method includes: When it is determined that there is an nth data frame to be forwarded after power-on and the number of remaining valid bytes of the nth data frame that have not been forwarded is greater than a preset quantity M, the data processing module sequentially divides M valid bytes in the nth data frame into a group of first data slices, and sequentially forwards the first data slices through the data transmission port, where the first data transmission channel among M data transmission channels is used to transmit the data header of the nth data frame, and each data transmission channel is used to transmit one valid byte of the first data slice, and n is an integer greater than or equal to 2; When it is determined that the number of remaining valid bytes of the nth data frame that have not been forwarded is less than or equal to the preset quantity M, according to a preset arithmetic formula Determine the number of idle characters ipgCnt corresponding to the nth data frame n , and K n is the number of remaining valid bytes of the nth data frame that have not been forwarded; The data processing module will determine the number of idle characters ipgCnt corresponding to the nth data frame n , and insert it at the tail of the remaining untransmitted valid bytes to form a second data slice; The data processing module forwards the second data slice based on the data transmission port.

2. The method according to claim 1, characterized in that, After the data processing module forwards the second data slice based on the data transmission port, the method further includes: The data processing module updates the configured nth dynamic adjustment parameter curDic n to the (n + 1)th dynamic adjustment parameter curDic n+1 , where the (n + 1)th dynamic adjustment parameter curDic n+1 satisfies: curDic n+1 = curDic n +(cfgIpgCnt - ipgCnt n ).

3. The method according to claim 2, wherein The data processing module updates the configured nth dynamic adjustment parameter curDic n to the (n + 1)th dynamic adjustment parameter curDic n+1 , including: The data processing module determines the (n + 1)-th dynamic adjustment parameter curDic n+1 = curDic n + (cfgIpgCnt - ipgCnt n ), n+1 ; The data processing module updates the configured nth dynamic adjustment parameter curDic n , to the (n + 1)th dynamic adjustment parameter curDic n+1 .

4. The method according to claim 2, wherein The data processing module updates the configured nth dynamic adjustment parameter curDic n to the (n + 1)th dynamic adjustment parameter curDic n+1 , including: from the nth dynamic adjustment parameter curDic n , the average number of idle characters cfgIpgCnt, and the number of idle characters ipgCnt corresponding to the nth data frame n , look up the (n + 1)th dynamic adjustment parameter curDic from a preset mapping relation table n+1 ; Update the configured nth dynamic adjustment parameter curDic n to the (n + 1)th dynamic adjustment parameter curDic n+1 .

5. The method according to claim 1, characterized in that, When M = 8 and cfgIpgCnt = 12, the preset arithmetic formula is as follows:

6. The method according to claim 1, wherein When M = 8 and cfgIpgCnt = 10, the preset arithmetic formula is as follows:

7. The method according to claim 1, characterized in that Before the data processing module receives the first data frame after power-on, the data processing module is configured with a first dynamic adjustment parameter curDic1, and the first dynamic adjustment parameter curDic1 = 0.

8. A switch chip, characterized in that, It includes a data processing module and a data transmission port. The data processing module is configured with the nth dynamic adjustment parameter curDic n and the average idle character count cfgIpgCnt. The data transmission port includes M data transmission channels in a certain order, and curDic n = curDic n-1 +(cfgIpgCnt - ipgCnt n-1 ), where 0 ≤ curDic n < M, 12 ≥ cfgIpgCnt > M, curDic n-1 is the (n - 1)th dynamic adjustment parameter configured after forwarding the (n - 1)th data frame, and ipgCnt n-1 is the number of idle characters corresponding to the (n - 1)th data frame after power-on. The data processing module is used to execute the method according to any one of claims 1-7.

9. The switch chip according to claim 8, wherein, The data processing module is a combinational logic processing circuit module or a microprocessor.

10. A switch, characterized in that, Including the switch chip according to claim 8 or 9.