Method and related apparatus for transmitting congestion status
By storing and comparing the flow control function status of the receiving module in memory units, the problem that the media access controller cannot obtain the congestion status after the receiving module restarts is solved, and the flow control function status update without atomic operations is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUZHOU CENTEC COMM CO LTD
- Filing Date
- 2024-02-01
- Publication Date
- 2026-05-26
AI Technical Summary
In the prior art, after the receiving module restarts and the flow control function is enabled, the media access controller cannot obtain the congestion status, which requires the central processing unit to modify the congestion status table, potentially causing atomic operation problems.
The memory unit stores the current flow control function status and the pending flow control function status of the receiving module. When the receiving module restarts, it compares these two statuses and sends the corresponding congestion status to the media access controller. The central processing unit only needs to modify the pending flow control function status and does not need to modify the congestion status table.
This avoids atomic operation issues, ensures the normal operation of flow control function after the receiving module restarts, and simplifies the processor's operation process.
Smart Images

Figure CN117914791B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a method and related apparatus for transmitting congestion status. Background Technology
[0002] In the prior art, when implementing flow control functions, a congestion state table is often maintained to store the congestion state of the receiving module. Based on this, the memory unit can determine whether the receiving module is congested through the congestion state table, and send the current congestion state to the media access controller when the congestion state changes.
[0003] However, after the receiving module restarts and enables flow control, the media access controller often cannot obtain the current congestion status of the receiving module because the congestion state has not changed. To solve this problem, existing technologies often use the central processing unit to actively modify the congestion state table, thereby triggering the memory unit to send the current congestion status to the media access controller. However, since this method requires the central processing unit to perform read and write operations on the congestion state table, there may be atomic operation problems. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a congestion state transmission method and related apparatus to solve the atomic operation problem existing in the prior art.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:
[0006] In a first aspect, the present invention provides a congestion state transmission method applied to a memory unit, the memory unit being connected to a media access controller and a central processing unit, respectively. The memory unit stores the current flow control function state and the pending flow control function state corresponding to each receiving module, and at the initial running time, both the current flow control function state and the pending flow control function state are in a closed state; the method includes:
[0007] Obtain the status detection trigger event for the target receiving module;
[0008] If the current flow control function state corresponding to the target receiving module is different from the target pending flow control function state corresponding to the target receiving module, then a first congestion state is sent to the media access controller according to the target pending flow control function state, and the current flow control function state is updated according to the target pending flow control function state.
[0009] The first congestion state is used to characterize the congestion state of the target receiving module, and the target pending flow control function state is set by the central processing unit according to the flow control function setting instruction sent by the user.
[0010] In an optional implementation, sending a first congestion status to the media access controller based on the target pending flow control function status includes:
[0011] If the target pending flow control function is in the enabled state, the current congestion state of the target receiving module is determined according to the current congestion count corresponding to the target receiving module and the preset congestion waterline, and the current congestion state is sent to the media access controller as the first congestion state.
[0012] The step of updating the current flow control function status of the target based on the target pending flow control function status includes:
[0013] Modify the current flow control function status of the target to the enabled state.
[0014] In an optional implementation, the method further includes:
[0015] If both the current flow control function state corresponding to the target receiving module and the target pending flow control function state corresponding to the target receiving module are enabled, then the current congestion state of the target receiving module is determined based on the current congestion count corresponding to the target receiving module and the preset congestion waterline.
[0016] Based on the current congestion state and the second congestion state corresponding to the target receiving module, determine whether to update the second congestion state; wherein, the second congestion state is the congestion state corresponding to the target receiving module stored in the memory unit;
[0017] If it is determined that the second congestion state needs to be updated, the second congestion state is updated to the current congestion state.
[0018] In an optional implementation, determining whether to update the second congestion state based on the current congestion state and the second congestion state corresponding to the target receiving module includes:
[0019] If the current congestion state is different from the second congestion state, then it is determined that the second congestion state should be updated.
[0020] In an optional implementation, the method further includes:
[0021] The current congestion status is sent to the media access controller at preset intervals.
[0022] In an optional implementation, sending a first congestion status to the media access controller based on the target pending flow control function status includes:
[0023] If the target flow control function is in a closed state, the unobstructed state is sent to the media access controller as the first congestion state.
[0024] The step of updating the current flow control function status of the target based on the target pending flow control function status includes:
[0025] Change the current flow control function status of the target to the off state.
[0026] Secondly, the present invention provides a congestion state transmission device applied to a memory unit, the memory unit being connected to a media access controller and a central processing unit, respectively. The memory unit stores the current flow control function state and the pending flow control function state corresponding to each receiving module, and at the initial operating moment, both the current flow control function state and the pending flow control function state are in a closed state; the device includes:
[0027] The acquisition module is used to acquire status detection trigger events for the target receiving module;
[0028] The sending module is configured to send a first congestion status to the media access controller according to the target pending flow control function status if the target current flow control function status corresponding to the target receiving module is different from the target pending flow control function status corresponding to the target receiving module, and update the target current flow control function status according to the target pending flow control function status.
[0029] The first congestion state is used to characterize the congestion state of the target receiving module, and the target pending flow control function state is set by the central processing unit according to the flow control function setting instruction sent by the user.
[0030] Thirdly, the present invention provides a memory unit including a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the method described in any of the foregoing embodiments.
[0031] Fourthly, the present invention provides an electronic device, including a media access controller, a central processing unit, and a memory unit as described in the foregoing embodiments.
[0032] Fifthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the congestion state transmission method as described in any of the foregoing embodiments.
[0033] The congestion state sending method and related apparatus provided in this invention include a memory unit storing the current flow control function state and the pending flow control function state corresponding to each receiving module. In the initial operating state, both the current flow control function state and the pending flow control function state are in a disabled state. The pending flow control function state can be set by the central processing unit (CPU) according to a flow control function setting instruction sent by the user. When the memory unit receives a state detection trigger event for a target receiving module, it can determine whether the target current flow control function state corresponding to the target receiving module is the same as the target pending flow control function state. If they are different, a first congestion state is sent to the media access controller based on the target pending flow control function state. With this method, after the receiving module restarts and enables flow control, the CPU only needs to modify the pending flow control function state before the memory unit can send the first congestion state to the media access controller. Therefore, the CPU does not need to modify the congestion state table, thus ensuring that atomic operation problems do not occur.
[0034] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0035] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 A block diagram of an electronic device provided in an embodiment of the present invention is shown;
[0037] Figure 2 A block diagram of a memory unit provided in an embodiment of the present invention is shown;
[0038] Figure 3 This invention provides a schematic flowchart of a congestion state transmission method according to an embodiment of the present invention.
[0039] Figure 4 A functional block diagram of a congestion status transmission device provided in an embodiment of the present invention is shown.
[0040] Icons: 10-Electronic device; 100-Memory unit; 101-Memory; 102-Processor; 103-Communication module; 110-Media access controller; 120-Central processing unit; 200-Acquisition module; 210-Transmission module. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0042] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0043] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0044] first, Figure 1 This is a block diagram of the electronic device 10 provided in an embodiment of this application. Please refer to... Figure 1 The electronic device 10 includes a memory unit 100, a media access controller 110, and a central processing unit 120, and the memory unit 100 is connected to the media access controller 110 and the central processing unit 120 respectively.
[0045] Optionally, the memory unit stores the current flow control function status and the pending flow control function status corresponding to each receiving module, and at the initial running time, both the current flow control function status and the pending flow control function status are in the off state.
[0046] Optionally, the receiving module may include a receiving port and a receiving queue.
[0047] Optionally, the current flow control function state and the pending flow control function state can be stored in a memory unit in the form of a state table.
[0048] Furthermore, in Figure 1 On this basis, Figure 2Please refer to the block diagram of the memory unit 100 provided in the embodiment of this application. Figure 2 The memory unit 100 includes a memory 101, a processor 102, and a communication module 103. The memory 101, processor 102, and communication module 103 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0049] The memory 101 is used to store computer programs or data that can be executed by the processor. The memory 101 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0050] The processor 102 is used to read / write data or computer programs stored in the memory, and to implement the congestion state transmission method provided in the embodiments of this application by executing the computer program.
[0051] The communication module 103 is used to establish a communication connection between the server and other communication terminals via the network, and to send and receive data via the network.
[0052] It should be understood that, Figure 1 , Figure 2 The structure shown is only a schematic diagram of the electronic device and memory unit; the electronic device and memory unit may also include more than [other components]. Figure 1 , Figure 2 The more or fewer components shown, or having the same Figure 1 , Figure 2 The different configurations shown. Figure 1 , Figure 2 The components shown can be implemented using hardware, software, or a combination thereof.
[0053] The following is based on the above. Figure 1 The memory unit 100 in the diagram serves as the execution entity. The congestion state transmission method provided in this application embodiment will be described exemplarily with reference to the flowchart. Specifically, Figure 3 For a flowchart illustrating the congestion state transmission method provided in this application embodiment, please refer to [link / reference]. Figure 3The method includes:
[0054] Step S20: Obtain the status detection trigger event for the target receiving module.
[0055] Optionally, the status detection triggering event includes message triggering and timer scan triggering.
[0056] Step S21: If the current flow control function state of the target corresponding to the target receiving module is different from the target pending flow control function state of the target receiving module, then send the first congestion state to the media access controller according to the target pending flow control function state, and update the current flow control function state of the target according to the target pending flow control function state.
[0057] The first congestion state is used to characterize the congestion state of the target receiving module, and the target pending flow control function state is set by the central processing unit according to the flow control function setting instruction sent by the user.
[0058] Optionally, the flow control function setting instructions may include enable instructions and disable instructions.
[0059] In this embodiment, the user can send an enable or disable command for the flow control function of the target receiving module. The central processing unit (CPU) can then modify the state of the target's pending flow control function according to the enable or disable command. In this embodiment, since both the target's current flow control function and the target's pending flow control function are disabled in the initial operating state, if the user enables the flow control function for the target receiving module, the CPU can modify the state of the target's pending flow control function to be enabled.
[0060] Optionally, if the memory unit obtains a status detection trigger event for the target receiving module at this time, it can determine that the target's current flow control function and the target's pending flow control function are different. Based on this, the memory unit can send the first congestion status to the media access controller.
[0061] Understandably, in the prior art, after the receiving module restarts and the flow control function is enabled, the central processing unit needs to modify the congestion state table before it can trigger the memory unit to send the current congestion state to the media access controller. However, since the state detection trigger event may also require modification of the congestion state table, there will be certain atomic operation problems. However, the congestion state sending method provided in this application embodiment does not require the central processing unit to modify the congestion state table, and the memory unit can successfully send the first congestion state to the media access controller, thus ensuring that there will be no atomic operation problems.
[0062] The congestion state sending method provided in this application embodiment stores the current flow control function state and the pending flow control function state corresponding to each receiving module in the memory unit. In the initial running state, both the current flow control function state and the pending flow control function state are in a closed state. The pending flow control function state can be set by the central processing unit (CPU) according to the flow control function setting instruction sent by the user. When the memory unit obtains a state detection trigger event for the target receiving module, it can determine whether the target current flow control function state corresponding to the target receiving module is the same as the target pending flow control function state corresponding to the target receiving module. If they are different, a first congestion state is sent to the media access controller based on the target pending flow control function state. With this method, after the receiving module restarts and enables flow control, the CPU only needs to modify the pending flow control function state before the memory unit can send the first congestion state to the media access controller. Therefore, the CPU does not need to modify the congestion state table, thus ensuring that atomic operation problems do not occur. Optionally, the difference between the target current flow control function state and the target pending flow control function state corresponding to the target receiving module may include the following two situations.
[0063] Firstly, at the initial running moment, both the target's current flow control function status and the target's pending flow control function status are in the off state. However, when the user enables the flow control function for the target receiving module, the central processing unit modifies the target's pending flow control function status to the on state.
[0064] Secondly, during normal operation, both the current flow control function status and the target pending flow control function status are enabled. However, if the user disables the flow control function for the target receiving module, the central processing unit will change the target pending flow control function status to disabled.
[0065] Understandably, since different target pending flow control function states indicate whether the flow control function still needs to operate normally, the memory unit needs to send the corresponding first congestion state according to different target pending flow control function states.
[0066] In one possible implementation, if the target's current flow control function is in a disabled state and the target's pending flow control function is in an enabled state, it means that the flow control function needs to be enabled later. Therefore, the memory unit can send the target receiving module's current actual congestion status to the media access controller.
[0067] Specifically, if the target flow control function is enabled, the memory unit can determine the current congestion state of the target receiving module based on the current congestion count and the preset congestion waterline, and send the current congestion state as the first congestion state to the media access controller.
[0068] Optionally, the current congestion count can be data such as the percentage of buffer usage, and the congestion watermark can be congestion threshold data, etc.
[0069] In one example, if the current congestion count exceeds the congestion threshold, the current congestion state of the target receiving module can be determined as congested, and this congested state can be sent to the media access controller as the first congestion state.
[0070] In another example, if the current congestion count does not exceed the congestion threshold data, the current congestion state of the target receiving module can be determined to be a smooth state, and this smooth state is sent to the media access controller as the first congestion state.
[0071] In this embodiment, the memory unit also needs to update the current flow control function state of the target according to the target's pending flow control function state, that is, modify the target's current flow control function state to the enabled state.
[0072] In another possible implementation, if the target's current flow control function is enabled, while the target's pending flow control function is disabled, it means that the flow control function needs to be disabled later. In this case, the media access controller needs to release the flow control from the peer device. Therefore, the memory unit can ignore the actual congestion status of the target receiving module and directly assume that the target receiving module is in a smooth state.
[0073] Specifically, if the target flow control function is in the off state, the memory unit sends the unobstructed state as the first congestion state to the media access controller.
[0074] In this embodiment, the memory unit also needs to update the current flow control function state of the target according to the target's pending flow control function state, that is, modify the target's current flow control function state to the off state.
[0075] Optionally, since the memory unit updates the current flow control function state of the target based on the state of the target pending flow control function after sending the first congestion state, the current flow control function state of the target receiving module and the state of the target pending flow control function of the target receiving module may be the same after the memory unit obtains the state detection trigger event for the target receiving module, that is, both are in the open state or both are in the closed state.
[0076] Understandably, if both the current flow control function status and the target pending flow control function status are closed, it means that the flow control function is always closed and no other operation is required; if both the current flow control function status and the target pending flow control function status are open, it means that the flow control function is open, so it is necessary to detect the current congestion status.
[0077] Optionally, if both the current flow control function state corresponding to the target receiving module and the pending flow control function state corresponding to the target receiving module are enabled, the memory unit can determine the current congestion state of the target receiving module based on the current congestion count corresponding to the target receiving module and the preset congestion waterline.
[0078] Optionally, the memory unit may store a congestion state table to store the second congestion state corresponding to each receiving module.
[0079] Based on this, the memory unit can determine whether to update the second congestion state according to the current congestion state and the second congestion state corresponding to the target receiving module, and if it is determined that the second congestion state should be updated, the second congestion state is updated to the current congestion state.
[0080] In one possible implementation, if the current congestion state is different from the second congestion state, it indicates that the congestion state of the target receiving module has changed, and therefore it can be determined to update the second congestion state.
[0081] Optionally, the memory unit may also send the current congestion status to the media access controller every preset time interval when both the current flow control function status corresponding to the target receiving module and the pending flow control function status corresponding to the target receiving module are enabled.
[0082] Optionally, a timer can be set in the memory unit to record the time interval for sending the current congestion status. Based on this, the memory unit can periodically send the current congestion status to the media access controller when the time interval between the current moment and the moment when the current congestion status was last sent reaches the preset duration.
[0083] In this embodiment, the preset duration can be set according to the actual application situation, and this application does not make specific limitations on it.
[0084] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of a congestion state transmission device is given below. Further, please refer to... Figure 4 , Figure 4 This is a functional block diagram of a congestion status sending device provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the congestion status sending device provided in this embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The congestion status sending device includes: an acquisition module 200 and a sending module 210.
[0085] The acquisition module 200 is used to acquire the status detection trigger event for the target receiving module.
[0086] Understandably, the acquisition module 200 can be used to perform the above step S20.
[0087] The sending module 210 is configured to send a first congestion status to the media access controller according to the target pending flow control function status if the target current flow control function status corresponding to the target receiving module is different from the target pending flow control function status corresponding to the target receiving module, and update the target current flow control function status according to the target pending flow control function status; wherein, the first congestion status is used to characterize the congestion status of the target receiving module, and the target pending flow control function status is set by the central processing unit according to the flow control function setting instruction sent by the user.
[0088] Understandably, the sending module 210 can be used to perform the above step S21.
[0089] Optionally, the sending module 210 is further configured to, if the target flow control function status is enabled, determine the current congestion status of the target receiving module based on the current congestion count corresponding to the target receiving module and the preset congestion waterline, and send the current congestion status as the first congestion status to the media access controller; and modify the target current flow control function status to enabled.
[0090] Optionally, the sending module 210 is further configured to: if both the current flow control function state corresponding to the target receiving module and the pending flow control function state corresponding to the target receiving module are enabled, determine the current congestion state of the target receiving module based on the current congestion count and a preset congestion waterline; determine whether to update the second congestion state based on the current congestion state and the second congestion state corresponding to the target receiving module; wherein the second congestion state is the congestion state corresponding to the target receiving module stored in the memory unit; if it is determined that the second congestion state should be updated, update the second congestion state to the current congestion state.
[0091] Optionally, the sending module 210 is further configured to determine to update the second congestion state if the current congestion state is different from the second congestion state.
[0092] Optionally, the sending module 210 is further configured to send the current congestion state to the media access controller if it is determined that the second congestion state needs to be updated.
[0093] Optionally, the sending module 210 is further configured to send the unobstructed state as the first congestion state to the media access controller if the target flow control function state to be set is closed; and to modify the target current flow control function state to closed.
[0094] Optionally, the above modules can be stored in the form of software or firmware. Figure 2 The memory shown is contained in or embedded in the operating system (OS) of the memory unit, and can be... Figure 2 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.
[0095] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, can implement the congestion state transmission method provided in this application.
[0096] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0097] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0098] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0099] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for sending congestion status, characterized in that, The method is applied to a memory unit, which is connected to a media access controller and a central processing unit. The memory unit stores the current flow control function state and the pending flow control function state for each receiving module. Initially, both the current flow control function state and the pending flow control function state are in a disabled state. Obtain the status detection trigger event for the target receiving module; If the current flow control function state corresponding to the target receiving module is different from the target pending flow control function state corresponding to the target receiving module, then a first congestion state is sent to the media access controller according to the target pending flow control function state, and the current flow control function state is updated according to the target pending flow control function state. The first congestion state is used to characterize the congestion state of the target receiving module, and the target pending flow control function state is set by the central processing unit according to the flow control function setting instruction sent by the user.
2. The method according to claim 1, characterized in that, Sending a first congestion status to the media access controller based on the target pending flow control function status includes: If the target pending flow control function is in the enabled state, the current congestion state of the target receiving module is determined according to the current congestion count corresponding to the target receiving module and the preset congestion waterline, and the current congestion state is sent to the media access controller as the first congestion state. The step of updating the current flow control function status of the target based on the target pending flow control function status includes: Modify the current flow control function status of the target to the enabled state.
3. The method according to claim 1, characterized in that, The method further includes: If both the current flow control function state corresponding to the target receiving module and the target pending flow control function state corresponding to the target receiving module are enabled, then the current congestion state of the target receiving module is determined based on the current congestion count corresponding to the target receiving module and the preset congestion waterline. Based on the current congestion state and the second congestion state corresponding to the target receiving module, determine whether to update the second congestion state; wherein, the second congestion state is the congestion state corresponding to the target receiving module stored in the memory unit; If it is determined that the second congestion state needs to be updated, the second congestion state is updated to the current congestion state.
4. The method according to claim 3, characterized in that, The step of determining whether to update the second congestion state based on the current congestion state and the second congestion state corresponding to the target receiving module includes: If the current congestion state is different from the second congestion state, then it is determined that the second congestion state should be updated.
5. The method according to claim 3, characterized in that, The method further includes: The current congestion status is sent to the media access controller at preset intervals.
6. The method according to claim 1, characterized in that, Sending a first congestion status to the media access controller based on the target pending flow control function status includes: If the target flow control function is in a closed state, the unobstructed state is sent to the media access controller as the first congestion state. The step of updating the current flow control function status of the target based on the target pending flow control function status includes: Change the current flow control function status of the target to the off state.
7. A congestion status transmission device, characterized in that, An application is made to a memory unit, which is connected to a media access controller and a central processing unit. The memory unit stores the current flow control function state and the pending flow control function state for each receiving module, and both the current flow control function state and the pending flow control function state are initially disabled. The device includes: The acquisition module is used to acquire status detection trigger events for the target receiving module; The sending module is configured to send a first congestion status to the media access controller according to the target pending flow control function status if the target current flow control function status corresponding to the target receiving module is different from the target pending flow control function status corresponding to the target receiving module, and update the target current flow control function status according to the target pending flow control function status. The first congestion state is used to characterize the congestion state of the target receiving module, and the target pending flow control function state is set by the central processing unit according to the flow control function setting instruction sent by the user.
8. A memory unit, characterized in that, It includes a processor and a memory, the memory storing a computer program executable by the processor, the processor being able to execute the computer program to implement the method of any one of claims 1-6.
9. An electronic device, characterized in that, It includes a media access controller, a central processing unit, and the memory unit as described in claim 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the congestion state transmission method as described in any one of claims 1-6.