Flow control method and device for transmission system
By using flow control fields and strategies in the data transmission system, the problems of data accumulation and link blocking caused by excessive data volume on individual nodes are solved, and data processing efficiency and system security are improved.
Patent Information
- Application Number
- CN202410877519.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-13
AI Technical Summary
The existing data transmission system can easily lead to data accumulation and link congestion when the amount of data on individual nodes is too large, affecting data transmission efficiency and possibly bringing danger to application scenarios.
By introducing the flow control field in the transmission system and determining the flow control strategy based on the identification value of the cache congestion indicator bit, the master node issues data packets to adjust the data processing mode of the child nodes to avoid data accumulation and blocking.
It effectively avoids data accumulation and link blocking, improves data processing efficiency, ensures timely response and processing of important data, and ensures the security of the data transmission system.
Smart Images

Figure CN118646706A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data transmission, and in particular to a flow control method and device for a transmission system. Background Art
[0002] Existing data transmission systems can be various links such as ring topology, linear topology (for example, daisy chain topology), etc. Since each node on the link transmits serially, once the amount of data generated by an individual node is too large, resulting in emergencies such as data accumulation, it will affect the transmission of data to the next node, resulting in link blocking and other phenomena. Not only is the pressure on node data processing very high, but other important data cannot be responded to and processed in time, which may bring danger to the application scenario of the data transmission system. In response to the above problems, existing data transmission systems usually adopt the method of increasing node memory to prevent data accumulation. However, the method of increasing memory not only adds additional hardware costs, but also does not change the data transmission efficiency, and the timely response and processing of important data cannot be guaranteed. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure provide a flow control method and device for a transmission system, which can solve the phenomenon of link blocking caused by sudden conditions such as data accumulation caused by excessive data volume in individual nodes of the existing transmission system. Not only is the pressure on node data processing very high, but other important data cannot be responded to and processed in time, which may bring dangerous problems to the application scenarios of the data transmission system.
[0004] To achieve the above object, according to one aspect of the present disclosure, a flow control method of a transmission system is provided, wherein the transmission system includes a master node and a sub-node, and the method is applied to the master node, including:
[0005] receiving a first data packet including a flow control field;
[0006] Determining a flow control strategy of the transmission system according to an identification value of a buffer congestion indication bit in the flow control field;
[0007] The second data packet is sent according to the flow control strategy, so that the target child node executes the flow control strategy.
[0008] According to another aspect of the present disclosure, a flow control method of a transmission system is provided, the transmission system comprising a master node and a sub-node, the method being applied to the sub-node, comprising:
[0009] According to the heartbeat data of the register, determine whether the cache state is a congestion state;
[0010] When the cache state is a congestion state, the identification value of the cache congestion indication bit in the flow control field of the first data packet is modified, and the modified first data packet is transmitted to the master node.
[0011] According to another aspect of the present disclosure, a flow control device of a transmission system is provided, the transmission system comprising a master node and a sub-node, the device is applied to the master node, and comprises:
[0012] A receiving module, configured to receive a first data packet including a flow control field;
[0013] A strategy module, used to determine the flow control strategy of the transmission system according to the identification value of the cache congestion indication bit in the flow control field;
[0014] The modification module is used to send the second data packet according to the flow control strategy so that the target sub-node executes the flow control strategy.
[0015] According to another aspect of an embodiment of the present disclosure, a flow control device of a transmission system is provided, wherein the transmission system includes a master node and a sub-node, and the device is applied to the sub-node, including:
[0016] A judgment module, used for determining whether the cache state is a congestion state according to the heartbeat data of the register;
[0017] The modification module is used to modify the identification value of the cache congestion indication bit in the flow control field of the first data packet when the cache state is a congestion state, and transmit the modified first data packet to the master node.
[0018] According to another aspect of an embodiment of the present disclosure, a transmission system is provided, including a main node and a sub-node, wherein the main node is used to execute the flow control method of the transmission system of one aspect of the present disclosure, and the sub-node is used to execute the flow control method of the transmission system of another aspect of the present disclosure.
[0019] According to another aspect of the present disclosure, a chip is provided, including:
[0020] Processor; and
[0021] Memory for storing programs,
[0022] The program includes instructions, which, when executed by the processor, cause the processor to execute the flow control method of the transmission system.
[0023] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the flow control method of the transmission system.
[0024] One or more technical solutions provided in the embodiments of the present application modify the cache congestion indication bit through the child node and report the congestion information; after the main node receives the congestion information, it selects different flow control strategies according to the congestion status, and generates and sends new data packets according to the flow control strategies. This can avoid data accumulation caused by excessive data volume and prevent blockage of the transmission system, thereby improving data processing efficiency, enabling important data to be responded to and processed in a timely manner, and ensuring the security of the data transmission system application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 A flow chart showing a flow control method of a transmission system according to an exemplary embodiment of the present disclosure is shown;
[0027] FIG2( a ) shows a schematic diagram of a ring topology for clockwise transmission according to an exemplary embodiment of the present disclosure;
[0028] FIG2( b ) shows a schematic diagram of a ring topology for counterclockwise transmission according to an exemplary embodiment of the present disclosure;
[0029] FIG2( c ) shows a schematic diagram of data packet transmission according to an exemplary embodiment of the present disclosure;
[0030] FIG2( d ) shows a schematic diagram of the structure of a data packet according to an exemplary embodiment of the present disclosure;
[0031] FIG2( e) shows a schematic diagram of the structure of a data sub-block according to an exemplary embodiment of the present disclosure;
[0032] FIG2( f) shows a schematic diagram of a data packet returned to a master node according to an exemplary embodiment of the present disclosure;
[0033] FIG2( g) shows a schematic diagram of a child node uploading data according to an exemplary embodiment of the present disclosure;
[0034] FIG3( a ) shows a schematic diagram of a linear topology of downlink transmission according to an exemplary embodiment of the present disclosure;
[0035] FIG3( b ) shows a schematic diagram of a linear topology of uplink transmission according to an exemplary embodiment of the present disclosure;
[0036] Figure 4 A schematic diagram showing an external device to which a sub-node is connected according to an exemplary embodiment of the present disclosure;
[0037] Figure 5A transmission schematic diagram of a transmission system at different times according to an exemplary embodiment of the present disclosure is shown;
[0038] Figure 6 A schematic diagram showing a common header of a data packet according to an exemplary embodiment of the present disclosure;
[0039] Figure 7 A schematic diagram of a flow control field according to an exemplary embodiment of the present disclosure is shown;
[0040] Figure 8 A flow chart showing a method for generating a flow control strategy according to an exemplary embodiment of the present disclosure is shown;
[0041] Fig. 9 A schematic diagram showing a bidirectional data flow according to an exemplary embodiment of the present disclosure is shown;
[0042] Fig.10 A flowchart showing a method for generating a second data packet according to the first exemplary embodiment of the present disclosure is shown;
[0043] Fig.11 A schematic diagram showing a second data packet according to an exemplary embodiment of the present disclosure is shown;
[0044] Fig.12 A flowchart showing a method for generating a second data packet according to a second exemplary embodiment of the present disclosure is shown;
[0045] FIG. 13( a ) shows a flow chart of a method for generating a second data packet according to a third exemplary embodiment of the present disclosure;
[0046] FIG13( b) shows a schematic diagram of a data packet including a common field according to another exemplary embodiment of the present disclosure;
[0047] Fig.14 A flowchart showing a method for generating a second data packet according to a fourth exemplary embodiment of the present disclosure is shown;
[0048] Fig.15 A flowchart showing a method for generating a second data packet according to a fifth exemplary embodiment of the present disclosure is shown;
[0049] Fig.16 A flowchart showing a method for generating a second data packet according to a sixth exemplary embodiment of the present disclosure is shown;
[0050] Fig.17 A flow chart showing a flow control method of a transmission system according to another exemplary embodiment of the present disclosure is shown;
[0051] Fig.18 A schematic block diagram of a flow control device of a transmission system according to an exemplary embodiment of the present disclosure is shown;
[0052] Fig.19 A schematic block diagram of a flow control device of a transmission system according to another exemplary embodiment of the present disclosure is shown;
[0053] Fig. 20 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0054] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0055] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0056] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "in the embodiment of the present disclosure" means "at least one embodiment"; the term "another exemplary embodiment" means "at least one other embodiment". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0057] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0058] The terms "vehicle", "vehicle-mounted" or "in-vehicle" or other similar terms used in this document generally include various private or commercial vehicles such as sedans, sport utility vehicles, buses, trucks, etc., as well as various boats, ships, aircraft, etc., and include hybrid vehicles, electric vehicles, plug-in hybrid electric vehicles, hydrogen-powered vehicles and other alternative fuel vehicles, etc.
[0059] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0060] Aspects of the present disclosure are described below with reference to the accompanying drawings.
[0061] Figure 1 A flow chart of a method for controlling a flow rate of a transmission system according to an exemplary embodiment of the present disclosure is shown. Figure 1 As shown, the flow control method of the transmission system disclosed in the present invention includes the following steps:
[0062] In the embodiment of the present disclosure, the transmission system includes a main node and multiple sub-nodes. The number of sub-nodes can be selectively set as needed. For example, the transmission system includes 7 sub-nodes. Figure 2(a) and 2(b) As shown, the main node, subnode 1, subnode 2, subnode 3, subnode 4, subnode 5, subnode 6, and subnode 7 are connected in sequence to form a ring topology. In the ring topology, as shown in FIG2(c), data packets are continuously transmitted node by node along the ring topology. The transmission direction can be clockwise as shown in FIG2(a), and / or counterclockwise as shown in FIG2(b). The main node or any subnode can send data through a data packet (i.e., write data into a data packet) or read data from a data packet.
[0063] As shown in Figure 2(d), each data packet includes a common header and multiple data sub-blocks; optionally, in order to ensure the accuracy of data transmission, the data packet may also include an ACK field; optionally, the sub-block lengths of each data sub-block may be the same or different. As shown in Figure 2(e), each data sub-block includes a data sub-block header and a data sub-block body. The data sub-block body is used to load the data that the sub-node needs to obtain or the data generated by the sub-node. The data sub-block header is used to load the attribute information of the data in the corresponding data sub-block body. The attribute information may be an idle flag, a node flag of the destination node, a node flag of the source node, a permission flag, a data type, a data length, a priority, etc. The idle flag (represented by "i") is used to indicate whether the corresponding data sub-block body is idle, that is, whether the data sub-block body can be loaded with data; the node flag of the destination node is used to indicate the destination node for loading data; the node flag of the source node is used to indicate the sending node for loading data; the permission flag The limit identifier is used to indicate the node identifier that has the access right to load data. Optionally, the identifier value of the permission identifier can be the node identifier of each child node, "h", "non-h", "all" or "random". The node identifier of the child node indicates that only the child node specified by the node identifier can read and write, "h" indicates that only hot nodes can read and write, "non-h" indicates that only non-hot nodes can read and write, "all" indicates that any node can read and write, and "random" indicates that each node can read and write randomly; the data type is used to indicate the data type of the loaded data; the data length is used to indicate the data length of the loaded data; the priority is used to indicate the data priority of the loaded data. During data transmission, each child node can write data to an idle data sub-block, or read data from a data sub-block whose node identifier of the destination node is equal to its own node identifier. For example, a child node writes data to an idle data sub-block. Optionally, child node 1 writes heartbeat data to data sub-block 1 (heartbeat data is used to characterize the proportion of cached data in the node's register to the total cache capacity), child node 5 writes SPI device data to data sub-block 2, and child node 7 writes CAN device data to data sub-block 3. Accordingly, the data packet returned to the master node is shown in Figure 2(f). As shown; for another example, the child node reads data from the data sub-block where the node identifier of the destination node is equal to its own node identifier. Optionally, the external device connected to the child node 3 is a right rearview mirror. The main node writes the node identifier of the child node 3 to the data sub-block header of a data sub-block of the data packet, and writes the turning angle data of the right rearview mirror to the corresponding data sub-block. As shown in Figure 2(g), when the data packet is transmitted to the child node 3, the child node 3 determines after comparison that the node identifier of the destination node in the data sub-block header is equal to its own node identifier, and therefore reads the turning angle data of the right rearview mirror from the corresponding data sub-block.
[0064] It should be noted that after each node reads the data in the data sub-block body, it sets the corresponding data sub-block header as an idle flag, and accordingly, the data sub-block becomes an idle sub-block, and other nodes can write data to it. Among them, the number of data sub-blocks included in each data packet, the data length of each data sub-block, etc. can be flexibly configured by the master node according to actual transmission requirements.
[0065] In a ring topology, when a data packet is transmitted in a clockwise direction, as shown in FIG2(a), the data packet sent by the master node returns to the master node via child nodes 1, 2, 3, 4, 5, 6, and 7. During the transmission process, each child node can write the generated data sub-packets (the data generated by the child node can be regarded as data sub-packets and written into each data sub-block of the data packet transmitted in the link. At the same time, the data sent by the master node can also be regarded as data sub-packets and sent to the link for transmission after being packaged into a data packet. Therefore, for the sake of convenience of description, the data generated by the child node and the data contained in the data packet transmitted in the link sent by the master node are called data sub-packets) into the data packet circulating in the ring topology, or read its own data sub-packets from the data packet circulating in the ring topology and process them, or only forward them to the next node. After receiving the data packet returned by the ring topology, the master node processes the data in the data packet. When the data packet is transmitted in the counterclockwise direction, as shown in Figure 2(b), the data packet generated by the main node returns to the main node via child node 7, child node 6, child node 5, child node 4, child node 3, child node 2, and child node 1. Similarly, each child node can write the generated data sub-packet into the data packet circulating in the ring topology, or read its own data sub-packet from the data packet circulating in the ring topology and process it, or only forward it to the next node. After receiving the returned data packet, the main node processes the data in the data packet.
[0066] Alternatively, the topology of the transmission system may also be a linear topology. For example, a transmission system including four sub-nodes. Figure 3(a) and 3(b)As shown in FIG. 3 , the master node, subnode 1, subnode 2, subnode 3, and subnode 4 are connected in sequence to form a linear topology. In the linear topology, the data packet can be transmitted node by node along the downlink direction shown in FIG. 3 (a) or the uplink direction shown in FIG. 3 (b). In the downlink, the data packet sent by the master node reaches the subnode 4 via subnode 1, subnode 2, and subnode 3. During the transmission process, subnode 1, subnode 2, and subnode 3 can write the generated data subpacket into the data packet, or read the data subpacket from the data packet and process it, or only play the role of forwarding. As the end node, subnode 4 can receive the data packet and process the data in the data packet. In the uplink, contrary to the downlink, subnode 4 acts as the master node and the master node becomes the end node. The data packet generated by subnode 4 is uploaded to the master node via subnode 3, subnode 2, and subnode 1. Similarly, subnode 3, subnode 2, and subnode 1 can write the generated data subpacket into the data packet, or read the data subpacket from the data packet and process it, or only play the role of forwarding. The master node can receive the data packet and process the data in the data packet.
[0067] Furthermore, the main node and the multiple sub-nodes are connected via a physical transmission medium, and the physical transmission medium can be selectively set as needed, for example, the physical transmission medium is a shielded twisted pair, an unshielded twisted pair, a coaxial cable, etc.
[0068] Furthermore, the master node can be connected to a host (MCU or CPU and other controllers) to serve as a regional central processing unit, and each sub-node can be connected to external devices, such as Figure 4As shown, the external device can be a local interconnect network (LIN) bus external device, a pulse width modulation (PWM) drive device, an integrated circuit bus (Inter Integrated Circuit (I2C) external devices, Serial Peripherallninterface (SPI) bus external devices, General purpose input / output port (GPIO) external devices, Ethernet external devices, Quad Serial Peripheral Interface (QSPI) bus external devices, Media Independent Interface (MII) and various extensions and derivative versions of Media Independent Interface external devices, Universal Asynchronous Receiver / Transmitter (UART) external devices, Single Edge Nibble Transmission (SENT) bus external devices, Peripheral Sensor Interface 5 (PSI5) protocol external devices, Integrated Circuit built-in audio bus (InterIC Sound, I2S) external devices, Time Division Multiplexing (Time Division Multiplexing, TDM) external devices, analog microphone (Analog Microphone, AMIC) external devices, digital microphone (Digital Microphone, DMIC) external devices, analog to digital converter (Analog to digital converter, ADC) external devices and controller area network bus (Controller Area Network, CAN) external devices and other external devices. This application does not limit the type of external devices. During transmission, the master node can send peripheral data to the external devices connected to each sub-node by transmitting data packets in the link, and the external devices execute or process them. The sub-node can write the peripheral data generated by each external device connected to it into the data packet. For example, when the transmission system is applied in a vehicle-mounted scenario, the peripheral data is audio data, and the master node sends audio data, which is played by the I2S or TDM external device (for example, a speaker) connected to the sub-node; for another example, the peripheral data is pressure data, and the sub-node obtains the tire pressure data collected by the CAN external device (for example, a tire pressure sensor) connected to it and transmits it to the master node.
[0069] In the embodiment of the present disclosure, the flow control method of the transmission system of the present disclosure is executed by a master node of the transmission system.
[0070] Step 101: Receive a first data packet including a flow control field.
[0071] In the embodiment of the present disclosure, for ease of description, the data packet received by the master node is called the first data packet, and the data packet re-issued after receiving the first data packet is called the second data packet. The second data packet can be the first data packet issued after the first data packet, or it can be the Nth data packet issued after the first data packet.
[0072] Furthermore, the transmission diagram of the transmission system at different times is shown in FIG. Figure 5 As shown, at the first moment, the amount of data that subnodes 3, 4, and 5 need to process is balanced, all of which are 64 data sub-packets, and the transmission system transmits normally; at the second moment, the amount of data of subnode 4 is 96 data sub-packets, and the amount of data of subnodes 3 and 5 is 32 data sub-packets, and the transmission system transmits normally; at the third moment, the amount of data of subnode 4 suddenly increases to 128 data sub-packets, which makes the data processing pressure of subnode 4 increase suddenly, not only needing to occupy more data sub-blocks, but also the processing time is longer, therefore, because subnode 4 keeps writing and occupying the loading space of the data packet, it will make the subsequent subnodes 5 to 7 have no The data cannot be written or read in time, resulting in transmission system congestion and transmission anomalies. On the one hand, the transmission system anomalies may cause high-priority data (for example, high-priority data in vehicle-mounted scenarios include brake speed sensor data, door pinch infrared sensor data, tire pressure sensor data of tire blowout, etc.) to be unable to be transmitted to the main node for processing in time, which brings danger to the application scenario of the data transmission system; on the other hand, the transmission system anomalies may cause the peripherals connected to each sub-node to be unable to receive control instructions and respond in time, which will also bring danger to driving safety. Therefore, in order to prevent transmission anomalies caused by congestion and ensure timely response and processing of data, such as Figure 6 As shown, the transmission system of the present invention adds a flow control field in the common header of the data packet to identify the congestion situation of the transmission system, so that the master node can control the transmission status of the transmission system at any time, so as to take reasonable measures to adjust the transmission flow of the transmission system and ensure the stable transmission and response of the system data.
[0073] Step 102: Determine the flow control strategy of the transmission system according to the identification value of the buffer congestion indication bit in the flow control field.
[0074] In the embodiment of the present invention, Figure 7As shown, the flow control field includes a cache congestion indication bit, which is used to indicate the congestion of the transmission system. According to the different unit sizes occupied by the cache congestion indication bit, the identification value of the cache congestion indication bit can be of different types, which are modified by each child node according to its own cache status. Optionally, the cache congestion indication bit occupies 1 bit, 2 bits or 3 bits, which are respectively the congestion representation methods under different embodiments. Specifically:
[0075] When the cache congestion indication bit occupies 1 bit, the identification value of the cache congestion indication bit is a first type value, indicating whether there is a hot node. The first type value includes a first default value "0" and a first non-default value "1". The first default value "0" indicates that there is no hot node, and the first non-default value "1" indicates that there is a hot node. The default setting is the first default value.
[0076] When the cache congestion indication bit occupies 2 bits, the identification value of the cache congestion indication bit is a second type value, indicating the accumulation degree of hot nodes in the transmission system. The second type value includes a second default value and a second non-default value. The second default value is "00", indicating that there are no hot nodes in the transmission system. The second non-default value can be selectively set according to the actual networking complexity. For example, taking the transmission system with 7 sub-nodes shown in Figures 2(a) and 2(b) as an example, the second non-default value includes "01", "10" and "11". "01" indicates that there are a small number of hot nodes in the transmission system, "10" indicates that there are more hot nodes in the transmission system, and "11" indicates that there are a lot of hot nodes in the transmission system. The default setting is the second default value.
[0077] When the cache congestion indication bit occupies 3 bits, the identification value of the cache congestion indication bit is a third type value, indicating the number of hot nodes in the transmission system. The third type value includes a third default value and a third non-default value. The third default value is "000", indicating that there are 0 hot nodes in the transmission system; the third non-default value can be selectively set according to the actual networking complexity. For example, taking the transmission system with 7 sub-nodes shown in Figures 2(a) and 2(b) as an example, the third non-default value includes "001", "010", "011", "100", "101", "110" and "111". "001" indicates that there is 1 hot node in the transmission system, "010" indicates that there are 2 hot nodes in the transmission system, "011" indicates that there are 3 hot nodes in the transmission system, "100" indicates that there are 4 hot nodes in the transmission system, "101" indicates that there are 5 hot nodes in the transmission system, "110" indicates that there are 6 hot nodes in the transmission system, and "111" indicates that there are 7 hot nodes in the transmission system. The default setting is the third default value.
[0078] Optionally, the flow control field may also include the number of abnormal reserved sub-blocks, which represents the number of data sub-blocks specially reserved for sub-nodes with cache congestion (hereinafter referred to as hot nodes), and may be selectively set by the master node according to the identification value of the cache congestion indication bit. For example, the number of sub-blocks may be 0, 2, 4, 8, 12, 16, 32, 64, etc.
[0079] Optionally, the flow control field also includes the number of first packet formats, the length of the first data sub-block, the number of second packet formats, and the length of the second data sub-block. The number of first packet formats and the number of second packet formats refer to the number of data sub-packets of the first specification and the second specification that can be loaded in the data packet transmitted by the transmission system, respectively. The length of the first data sub-block and the length of the second data sub-block refer to the data length of the data sub-block of the first specification and the second specification in the data packet transmitted by the transmission system, respectively. The first data sub-block is used to load the data sub-packet of the first specification, and the second data sub-block is used to load the data sub-packet of the second specification. Among them, the number of packet formats and the length of data sub-blocks can be selectively set and flexibly adjusted by the master node according to the identification value of the cache congestion indicator bit. For example, optionally, the number of first packet formats is 0, 2, 4, 8, 12, 16, 32, 64, etc., the number of second packet formats is 1, 2, 4, 8, 12, 16, 32, 64, etc., the maximum length of the first data sub-block is 128Byte, and the maximum length of the second data sub-block is 2048Byte. It should be noted that the number of the second packet format is not 0, that is, the data packet transmitted by the transmission system must include at least one second data sub-block for loading a data sub-packet of the second specification. Optionally, the data volume of the data sub-packet of the first specification is less than the data volume of the data sub-packet of the second specification.
[0080] Optionally, the flow control field occupies 28 bits, 29 bits or 30 bits in total, of which the number of abnormal reserved sub-blocks, the number of first packet formats, the length of the first data sub-block, the number of second packet formats, and the length of the second data sub-block occupy 3 bits, 3 bits, 7 bits, 3 bits, and 11 bits respectively. The embodiment of the present application does not limit the data length occupied by each parameter in the flow control field.
[0081] Furthermore, the master node determines the flow control strategy of the transmission system according to the identification value of the cache congestion indication bit, such as Figure 8 As shown, the method for generating a flow control strategy disclosed in the present invention includes the following steps:
[0082] Step 801, determine whether the identification value is a non-default value, if yes, go to step 802; if no, go to step 803.
[0083] In an embodiment of the present disclosure, after receiving the first data packet, the master node reads the identification value of the cache congestion indication bit to determine whether it is the first non-default value of the first type value, the second non-default value of the second type value, or the third non-default value of the third type value, and then determines whether flow control of the transmission system is required.
[0084] Step 802: Generate the flow control strategy.
[0085] In the embodiment of the present disclosure, the master node generates a corresponding flow control strategy according to the identification value of the cache congestion indication bit.
[0086] Further, when the identification value is a first non-default value of a first type value, it indicates that there is a hot node in the transmission system, so the master node generates a flow control strategy to control the data flow of the transmission system.
[0087] Alternatively, when the identification value is a second non-default value of the second type value, it indicates that there are a small number, a large number, or a very large number of hot nodes in the transmission system, so the master node generates a flow control strategy to control the data flow of the transmission system.
[0088] Alternatively, when the identification value is a third non-default value of the third type, it indicates that there are one, two, ..., or n hot nodes in the transmission system, so the master node generates a flow control strategy to control the data flow of the transmission system.
[0089] In the disclosed embodiment, the flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block. Since the reading and writing of data sub-blocks are usually performed in sequence, the common header, data sub-block, and ACK field are divided into time slices in time. The earlier the time slice, the higher the priority of the node in transmission or processing. Therefore, among multiple data sub-blocks, the earlier data sub-blocks will be processed first, and the processing order of the later data sub-blocks will be later. Therefore, the earlier data sub-blocks can be allocated to the hot node, so that when the data packet is transmitted to the hot node, the hot node can quickly perform read and write processing, that is, by allocating exclusive read and write permissions to the hot node, limiting the read and write permissions of the non-hot node to the exclusive hot node data sub-block, and allocating the hot node to the sub-block space that can be operated faster, so as to improve the data processing efficiency of the hot node, alleviate the congestion state of the hot node, and ensure the normal operation of the transmission system;
[0090] Alternatively, the flow control strategy is to adjust the transmission direction of the transmission system. Fig. 9For the ring topology shown in FIG. 1 , under normal circumstances, the ring topology will continuously send packets in both directions to achieve bidirectional transmission of data streams, and each sub-node can freely choose the transmission direction to read and write data. However, since the congestion of the hot node will affect the transmission of the entire link data, in order to improve the data processing efficiency of the system, the data transmission direction is adjusted from different perspectives of the sub-node and the main node to alleviate the system congestion and ensure the normal operation of the transmission system. Among them, (1) for the hot node, the transmission direction of the hot node is changed to the reverse direction, that is, when there is a hot node in the clockwise transmission, the transmission direction of the hot node is changed to the counterclockwise direction, so that the hot node preferentially reads and writes the data packet transmitted in the counterclockwise direction, thereby alleviating the congestion of the ring topology transmitted in the clockwise direction; when there is a hot node in the counterclockwise transmission, the transmission direction of the hot node is changed to the clockwise direction, so that the hot node preferentially reads and writes the data packet transmitted in the clockwise direction, thereby alleviating the congestion of the ring topology transmitted in the counterclockwise direction. Secondly, (2) for the master node, when sending the second data packet, for the sub-packets to be sent that contain the downstream nodes whose destination node is the hot node, the sub-packets to be sent are placed in the second data packet in the opposite direction, so that the sub-packets to be sent of the downstream nodes whose destination node is the hot node are no longer transmitted along the congestion direction of the hot node, but are transmitted in the opposite direction of the congestion direction. As a result, the downstream nodes of the hot node become the upstream nodes of the hot node, and do not need to wait for the hot node to complete the processing, but can process their own data sub-packets before the hot node, thereby freeing up space for the hot node to alleviate the congestion of the hot node. For example, Fig. 9 As shown, before the modification, the data subpacket sent by the master node to the child node 6 is placed in the first data packet with a clockwise transmission direction, and the child node 6 is the downstream node of the child node 4. Due to the congestion of the child node 4, the data subpacket in the first data packet cannot be read by the child node 6 in time; the flow control strategy of adjusting the transmission direction of the transmission system is adopted, and the data subpacket sent to the child node 6 is placed in the second data packet with a counterclockwise transmission direction, and the child node 6 is turned into the upstream node of the child node 4. Thus, the second data packet reaches the child node 6 first, and the data subpacket can be quickly read by the child node 6. After reading, the free sub-blocks vacated can be used by the child node 4 (hot node), thereby alleviating the congestion of the child node 4; on the other hand, since the first data packet before the modification no longer needs to serve the downstream node of the hot node, it can also vacate space for the hot node to write, that is, it can vacate free sub-blocks for the hot node to write, thereby alleviating the congestion of the hot node. Similarly, for example, Fig. 9 As shown, the first data packet is in the clockwise direction. Since it no longer needs to carry the data sub-packets sent to the child node 6, there are more sufficient idle sub-blocks for the child node 4 (hot node) to use, so as to alleviate the congestion of the child node 4.
[0091] Alternatively, the flow control strategy is to adjust the read and write permissions of the target sub-node to the public field of the second data packet. Optionally, the data packet may further include a public field, which is used to transmit public data that can be obtained by each node, such as audio data, broadcast data, etc. In order to improve the data processing efficiency of the system, the public field is set to be occupiable, so that the target sub-node can read and write data to the public field, thereby allocating more sub-block space that can be operated faster, alleviating system congestion, and ensuring the normal operation of the transmission system;
[0092] Alternatively, the flow control strategy is to adjust the write parameters when the target sub-node writes to the second data packet, and the write parameters include one or more of the write permission, the write frequency, and the write number threshold. In order to improve the data processing efficiency of the system, by limiting the write permission, the write frequency, and the write number threshold of the target sub-node, the flow efficiency of the entire transmission system can be accelerated to alleviate the congestion state of the hot node, thereby ensuring the normal operation of the transmission system;
[0093] Alternatively, the flow control strategy is to adjust the processing mode of each of the target sub-nodes for sub-packets to be written with different priorities. In order to improve the data processing efficiency of the system, as a fallback strategy, when the transmission system still cannot solve the congestion problem by adopting the aforementioned measures, it can choose to discard the sub-packets to be written with low priority, so as to accelerate the flow of the entire transmission system and ensure the timely transmission of high-priority data;
[0094] Alternatively, the flow control strategy is to adjust one or more of the first packet format number, the first data sub-block length, the second packet format number and the second data sub-block length of the second data packet. In order to alleviate the congestion of the transmission system, the identification values of the first packet format number, the first data sub-block length, the second packet format number and the second data sub-block length of the flow control field can also be modified, so that in the subsequent process of sending the second data packet, the master node allocates the data sub-blocks of the second data packet according to the modified packet format number and data sub-block length, so as to further improve the data transmission efficiency, accelerate the flow of the entire transmission system, alleviate the congestion, and ensure the normal operation of the transmission system.
[0095] Step 803, continue monitoring.
[0096] In an embodiment of the present disclosure, when the first default value of the first type value, the second default value of the second type value, or the third default value of the third type value, it indicates that there is no hot node in the transmission system, so the master node continues to receive data packets and monitor the transmission status of the transmission system.
[0097] In an embodiment of the present disclosure, through the method for generating a flow control strategy of the present disclosure, the master node determines whether to generate a flow control strategy based on the identification value of the cache congestion indication bit in the first data packet, that is, the master node determines whether to perform flow control on the transmission system based on the congestion status of the transmission system to generate a corresponding flow control strategy, thereby avoiding link blockage caused by sudden conditions such as node data accumulation, ensuring data response and processing speed, improving data processing efficiency of the transmission system, and ensuring the security of application scenarios of the data transmission system.
[0098] Step 103: Send the second data packet according to the flow control strategy, so that the target child node executes the flow control strategy.
[0099] In the disclosed embodiment, after the master node determines the flow control strategy, when sending the second data packet, the flow control field, common field, etc. of the common header are modified according to the flow control strategy, or the flow control instruction is written to the data sub-block. Thus, the second data packet sent by the master node is the data packet after flow control. Accordingly, when processing the second data packet, each child node can execute the corresponding flow control strategy to realize the flow control of the transmission system, alleviate the congestion of the transmission system, improve the data processing efficiency of each node, and thereby improve the transmission efficiency of the transmission system.
[0100] Furthermore, if Fig.10 As shown, the method for generating the second data packet of the first embodiment of the present disclosure includes the following steps:
[0101] In the embodiment of the present disclosure, the method for generating the second data packet of the first embodiment of the present disclosure corresponds to "the flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block".
[0102] Step 1001, modify the value of the number of abnormal reserved sub-blocks.
[0103] In the embodiment of the present disclosure, when the master node adjusts the read and write permissions of the target sub-node to each data sub-block, it first modifies the value of the number of abnormal reserved sub-blocks in the flow control field of the second data packet. For example, optionally, the value of the number of abnormal reserved sub-blocks defaults to 0. During the first adjustment, the value of the number of abnormal reserved sub-blocks is modified to 2; if the congestion of the transmission system is not significantly improved after the first adjustment, a second adjustment is performed to modify the value of the number of abnormal reserved sub-blocks to 4, and so on, gradually increasing; or, optionally, the second adjustment can directly modify the value of the number of abnormal reserved sub-blocks to 32, etc., that is, the master node can flexibly modify the value of the number of abnormal reserved sub-blocks according to the actual congestion status to meet the actual transmission needs.
[0104] Furthermore, the master node may modify the value of the number of abnormal reserved sub-blocks in the flow control field of the second data packet in real time according to the congestion status of the transmission system to alleviate the congestion status of the hot node.
[0105] Furthermore, since there are multiple possibilities for the second non-default value and the third non-default value, respectively, which can represent different accumulation degrees or different numbers of hot nodes, the numerical value of the number of abnormal reserved sub-blocks can be modified to different numerical values for different second non-default values or different third non-default values, and the larger the second non-default value, the larger the numerical value of the number of abnormal reserved sub-blocks in the flow control field in the corresponding second data packet; the larger the third non-default value, the larger the numerical value of the number of abnormal reserved sub-blocks in the flow control field in the corresponding second data packet. For example, optionally, the numerical value of the number of abnormal reserved sub-blocks corresponding to the second non-default value "01" is 2, the numerical value of the number of abnormal reserved sub-blocks corresponding to the second non-default value "10" is 4, and the numerical value of the number of abnormal reserved sub-blocks corresponding to the second non-default value "11" is 8.
[0106] Step 1002, select a target data sub-block, set the write permission of the target data sub-block to the target sub-node, and obtain the second data packet; wherein the number of the target data sub-blocks is equal to the numerical value of the number of abnormal reserved sub-blocks.
[0107] In the disclosed embodiment, after modifying the value of the number of abnormal reserved sub-blocks, the master node selects the same number of target data sub-blocks as the modified value of the number of abnormal reserved sub-blocks from the second data packet, and sets the write permission of the target data sub-block to the target sub-node, and the target sub-node under the "flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block" is a hot node in the transmission system. Therefore, after sending the second data packet, each sub-node will write data sub-packets to the target data sub-block only when it determines that the cache state is a congested state (that is, it determines that it is a hot node) based on its own heartbeat data when processing the second data packet, otherwise it does not have the write permission of the target data sub-block.
[0108] Optionally, the heartbeat data is the cache ratio or cache number of data sub-packets of each child node. When the heartbeat data is the cache ratio of the data sub-packets of each child node, for example, the maximum number of data sub-packets that the child node can cache is 100, and 50 have been cached, then the heartbeat data is a cache ratio of 50%; when the heartbeat data is the cache number of data sub-packets of each child node, for example, the maximum number of data sub-packets that the child node can cache is 100, and 50 have been cached, then the heartbeat data is 50 cached and the maximum cache is 100.
[0109] Further, when selecting the target data sub-block, the master node preferentially selects the front data sub-block as the target data sub-block. For example, optionally, the modified value of the number of abnormal reserved sub-blocks is 4, and the master node confirms that the target data sub-block is the first 4 data sub-blocks after the public header, such as Fig.11 shown.
[0110] Furthermore, under the "flow control strategy is to adjust the read and write permissions of the child nodes to each data sub-block", the setting of the write permission of the target data sub-block can be achieved by changing the permission identifier of the data sub-block header of the target data sub-block to "h". It should be noted that the setting of the permission identifier does not take effect on the end node, because when the data packet is transmitted to the end node, if the end node is a non-hot node, and there is still space for the target data sub-block dedicated to the hot node, based on the principle of maximizing the utilization of the data packet, the end node can write data to the target data sub-block; among them, there is no end node in the ring topology, so the end node here can be understood as the last child node in the transmission direction.
[0111] In the embodiment of the present disclosure, through the method for generating the second data packet of the first embodiment of the present disclosure, the front data sub-blocks can be allocated to the hot nodes, so that the hot nodes can perform read and write operations preferentially and faster, so as to improve the data processing efficiency of the hot nodes and alleviate the congestion of the hot nodes, thereby ensuring the normal operation of the transmission system.
[0112] Furthermore, under the "flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block", the value of the number of abnormal reserved sub-blocks can also be accurately modified according to the heartbeat data of each sub-node. For example, the master node determines the number of reserved target data sub-blocks according to the cache ratio or cache number of each sub-node, and then accurately modifies the value of the number of abnormal reserved sub-blocks. Among them, the more sub-nodes with a high cache ratio or a large number of caches, the larger the value of the number of abnormal reserved sub-blocks.
[0113] Furthermore, it also includes:
[0114] Read the heartbeat data of each child node from the first data packet;
[0115] The value of the number of abnormal reserved sub-blocks is modified according to the heartbeat data.
[0116] like Fig.12 As shown, the method for generating the second data packet of the second embodiment of the present disclosure includes the following steps:
[0117] In the embodiment of the present disclosure, the method for generating the second data packet of the second embodiment of the present disclosure corresponds to “the flow control strategy is to adjust the transmission direction of the transmission system”, and includes step 1201 and / or step 1202.
[0118] Step 1201, write the node identifier of the target sub-node into the data sub-block header, and write the flow control instruction for adjusting the transmission direction of the sub-packet to be written into the corresponding data sub-block, to obtain the second data packet.
[0119] In the disclosed embodiment, step 1201 corresponds to "the flow control strategy is to adjust the transmission direction of the transmission system", and changes the transmission direction of the data sub-packets from the perspective of the hot node to alleviate system congestion and ensure the normal operation of the transmission system.
[0120] Furthermore, if Figure 6 As shown, the common header also includes a chain identification field for characterizing the transmission direction of the transmission system. Optionally, the chain identification field occupies 2 bits, and the identification value can be 00, 01, 10, 11, 00 indicates that the transmission direction is a downstream daisy chain, 01 indicates that the transmission direction is an upstream daisy chain, 10 indicates that the transmission direction is a clockwise ring, and 11 indicates that the transmission direction is a counterclockwise ring.
[0121] Furthermore, the target sub-node corresponding to step 1201 is a hot node. The master node sends a second data packet with the destination node as the target sub-node and the flow control instruction as the second data packet to change the transmission direction of the sub-packet to be written, so as to make the hot node change the transmission direction of the sub-packet to be written, so as to alleviate the congestion of the hot node. After the hot node reads the flow control instruction in the second data packet, it writes the changed transmission direction of the sub-packet to be written into the local register. From then on, each time the sub-packet to be written is sent, the hot node will write the generated sub-packet to be written into the second data packet of the transmission direction indicated by the register according to the transmission direction indicated by the register, so as to realize the change of the transmission direction of the hot node. For example, if the transmission direction indicated by the register is 10, the hot node will write the generated sub-packet to be written into the second data packet transmitted in the clockwise direction.
[0122] Specifically, the master node can determine the target child node according to the modified node identifier of the cache congestion indication bit; or the master node can also determine the target child node according to the heartbeat data of each child node, for example, when the cache ratio of the child node exceeds the cache ratio threshold, the child node is determined to be a hot node, that is, the child node is determined to be the target child node. The cache ratio threshold can be selectively set as needed, for example, the cache ratio threshold is 75%.
[0123] When generating the second data packet, the master node writes the node identifier of the target sub-node into the data sub-block header of the second data packet, and writes the flow control instruction for adjusting the transmission direction of the sub-packet to be written into the corresponding data sub-block body, so as to change the transmission direction of the sub-node. Wherein, in the case where the hot node transmits to a transmission system in a clockwise direction, the flow control instruction may be to modify the transmission direction of the sub-packet to be written of the target sub-node to a counterclockwise direction; or, in the case where the hot node transmits to a transmission system in a counterclockwise direction, the flow control instruction may be to modify the transmission direction of the sub-packet to be written of the target sub-node to a clockwise direction.
[0124] Step 1202, changing the sending direction of the to-be-sent sub-packet whose destination node is the target sub-node.
[0125] In the embodiment of the present disclosure, step 1202 corresponds to "the flow control strategy is to adjust the transmission direction of the transmission system", and from the perspective of the master node, the sending direction of the to-be-sent sub-packet whose destination node is the target sub-node is changed to alleviate system congestion and ensure the normal operation of the transmission system, specifically:
[0126] Determine whether the target child node is a downstream node of the hot node;
[0127] When the target subnode is a downstream node of a hot node, the subpacket to be sent is written into a second data packet whose sending direction is a target direction; wherein the target direction is a direction that makes the target subnode an upstream node of the hot node.
[0128] Furthermore, the target subnode corresponding to step 1201 is the downstream node of the hot node. From the perspective of the main node, when sending down, the subpacket to be sent of the target subnode is no longer written into the second data packet with a transmission direction of "the target subnode is the downstream node of the hot node", but the subpacket to be sent of the target subnode is written into the second data packet with a transmission direction of "the target subnode is the upstream node of the hot node".
[0129] In the embodiment of the present disclosure, through the method for generating the second data packet of the second embodiment of the present disclosure, it is possible to change the transmission direction of the sub-node or the downward direction of the main node, the hot node can read and write in reverse, or the upstream node of the hot node can read and write quickly to free up idle sub-blocks for the hot node, thereby alleviating the congestion of the hot node, thereby improving the data processing efficiency of the system, alleviating system congestion, and ensuring the normal operation of the transmission system.
[0130] As shown in FIG. 13( a ), the method for generating the second data packet of the third embodiment of the present disclosure includes the following steps:
[0131] In the embodiment of the present disclosure, the method for generating the second data packet of the third embodiment of the present disclosure corresponds to "the flow control strategy is to adjust the read and write permissions of the target sub-node to the public field of the second data packet".
[0132] Step 1301: modify the identification value of the common field of the second data packet.
[0133] In the embodiment of the present disclosure, as shown in FIG. 13( b), the data packet may further include a common field, and the master node may adjust the read and write permissions of the target sub-node to the common field of the second data packet, and realize the occupation of the common field by modifying the identification value of the common field of the second data packet. Optionally, the identification value of the occupation indication of the common field is "0" by default, indicating that the common field cannot be occupied, and the master node modifies the identification value of the occupation indication of the common field of the second data packet to "1", so that the common field can be occupied, that is, each target sub-node can write to the common field, thereby alleviating the congestion state of the transmission system.
[0134] Furthermore, in order to maximize data transmission efficiency and alleviate congestion of hot nodes, preferably, the target child node is a hot node, and the master node sets the read and write permissions of the public field to "h" to enable the hot node to use the public field.
[0135] In the embodiment of the present disclosure, through the method for generating the second data packet of the third embodiment of the present disclosure, the common field is set to be readable and writable. On the one hand, the common field is a front time slice, which can be used for hot nodes to quickly alleviate the congestion state of the hot nodes, thereby alleviating system congestion and improving data processing efficiency; on the other hand, the space of the common field is larger and can accommodate a larger amount of data, thereby improving the data flow efficiency and ensuring the normal operation of the transmission system.
[0136] like Fig.14 As shown, the method for generating the second data packet of the fourth embodiment of the present disclosure includes the following steps:
[0137] In the embodiments of the present disclosure, the method for generating the second data packet of the fourth embodiment of the present disclosure corresponds to "the flow control strategy is to adjust the write parameters when the target sub-node writes to the second data packet, and the write parameters include one or more of the write permission, write frequency, and write number threshold."
[0138] Step 1401, adjust the write parameters of the target child node, including adjusting the write permission to deny write, adjusting the write frequency to low frequency, adjusting the write number threshold to a preset number threshold, or more, and generate a flow control instruction for the adjusted write parameters.
[0139] In the disclosed embodiment, the master node can set the write permission of the target subnode to deny writing, that is, the target subnode is prohibited from sending packets; or, the master node can set the write frequency of the target subnode to a preset frequency, that is, reduce the write frequency of the target subnode; or, the master node can set the write count threshold of the target subnode to a preset count threshold, that is, reduce the write count of the target subnode, thereby alleviating the congestion state of the hot node. Among them, the target subnode can be any subnode, and the master node sets the read and write permission of the public field to "all" or "random" to adjust the write parameters of the target subnode; the preset frequency and preset count threshold can be selectively set as needed.
[0140] Furthermore, the master node generates flow control instructions using the adjusted write permission, write frequency, and write count threshold of the target child node. Since there are multiple possibilities for the second non-default value and the third non-default value, different second non-default values and different third non-default values may correspond to different numbers of target child nodes, respectively. For example, the larger the second non-default value, the more target child nodes there are, and the lower the write frequency of the target child nodes, and the smaller the write count threshold; the larger the third non-default value, the more target child nodes there are, and the lower the write frequency of the target child nodes, and the smaller the write count threshold.
[0141] Furthermore, in order to alleviate the congestion state of the hot node to the greatest extent, preferably, the target child node is any child node other than the hot node, and the master node sets the read and write permissions of the public field to "non-h" to adjust the write parameters of any child node other than the hot node, thereby improving the data processing efficiency of the hot node by suppressing other child nodes.
[0142] Step 1402, write the adjusted flow control instruction of the write parameter into the second data packet.
[0143] In the disclosed embodiment, the master node writes the flow control instruction of the write parameter adjusted by the target sub-node into the data sub-block of the second data packet, thereby, the target sub-node can read the corresponding write parameter from the second data packet and execute it.
[0144] Furthermore, the master node writes the node identifier of the target sub-node into the data sub-block header and writes the flow control instruction of the adjusted write parameter into the corresponding data sub-block body to obtain a second data packet.
[0145] Furthermore, the master node writes the flow control instruction of the adjusted write parameter into the front data sub-block in the second data packet, so that each target sub-node reads and executes it first.
[0146] In the embodiment of the present disclosure, through the method for generating the second data packet of the fourth embodiment of the present disclosure, the write permission, write frequency, and write number threshold of the target sub-node are limited, which can accelerate the circulation efficiency of the entire transmission system to alleviate the congestion state of the hot node, thereby ensuring the normal operation of the transmission system.
[0147] Further, under the condition that “the flow control strategy is to adjust the write parameters when the target child node writes to the second data packet, and the write parameters include one or more of the write permission, the write frequency, and the write number threshold”, the target child node can also be accurately selected according to the heartbeat data of each child node to adjust the write permission, the write frequency, and the write number threshold of each target child node. Accordingly, the method for generating the second data packet of the fourth embodiment of the present disclosure can also be:
[0148] Read the heartbeat data of each of the child nodes from the data packet;
[0149] Select the target subnode according to the heartbeat data, adjust the write parameters of the target subnode, including adjusting the write permission to deny write, adjusting the write frequency to low frequency, and adjusting the write number threshold to a preset number threshold, and generate a flow control instruction of the adjusted write parameters;
[0150] The node identifier of the target sub-node is written into the data sub-block header, and the flow control instruction of the adjusted write parameter is written into the corresponding data sub-block body, so as to obtain the second data packet.
[0151] like Fig.15 As shown, the method for generating the second data packet of the fifth embodiment of the present disclosure includes the following steps:
[0152] In the embodiments of the present disclosure, the method for generating the second data packet of the fifth embodiment of the present disclosure corresponds to "the flow control strategy is to adjust the processing method of each of the target sub-nodes for sub-packets to be written with different priorities".
[0153] Step 1501, write into the second data packet a flow control instruction for discarding sub-packets to be written whose priority level is less than or equal to a preset priority level.
[0154] In the disclosed embodiment, the master node generates a flow control instruction for discarding sub-packets to be written that are less than or equal to a preset priority level, and writes it into the data sub-block of the second data packet, so that each target sub-node can discard the sub-packets to be written with a low priority, thereby alleviating the congestion state of the transmission system. Among them, the preset priority level can be selectively set from the priority levels according to the actual congestion level of the transmission system. For example, optionally, the priority levels include the highest, high, medium, and low. If the preset priority level is medium, the sub-packets to be written at the medium and low levels are discarded.
[0155] Furthermore, since the discard instruction can be executed by any child node, the target child node of the discard instruction can be any child node. Accordingly, when writing the data sub-block of a new data packet, the main node writes "all" or "random" into the data sub-block header of the second data packet, and writes the flow control instruction of discarding the sub-packets to be written that are less than or equal to the preset priority level into the corresponding data sub-block.
[0156] It should be noted that when reading and writing data, each sub-node will be processed in order from high to low priority. The priority of each type of data is pre-determined by the main node. Regardless of whether the data type of the communication data generated by the various external devices connected to each sub-node is the same, it can be transmitted in the topological network in the form of data sub-packets. Therefore, the data packets transmitted by the topological network disclosed in the present invention can realize mixed transmission of multiple types of data. Compared with traditional subsystems that require different types of buses for multiple types of data, it can greatly simplify the network design, reduce the weight of the wiring harness, and streamline the communication standards, thereby improving the bandwidth utilization and transmission efficiency of the transmission system, saving transmission costs, facilitating the assembly and maintenance of the transmission system, and reducing supporting costs.
[0157] In the embodiment of the present disclosure, the method for generating the second data packet of the fifth embodiment of the present disclosure is used as a fallback strategy. When the transmission system still cannot solve the congestion problem by adopting the aforementioned measures, the sub-packets to be written below the preset priority level are discarded, thereby accelerating the flow of the entire transmission system to ensure the timely sending of high-priority data.
[0158] Further, under the condition that “the flow control strategy is to adjust the processing mode of each of the target sub-nodes for sub-packets to be written of different priorities”, the target sub-node can also be selected according to the heartbeat data of each sub-node to accurately adjust the processing mode of the target sub-node for data of different priorities, so as to accurately control the system flow, alleviate the system congestion state, and ensure the normal operation of the system. Accordingly, the method for generating the second data packet of the fifth embodiment can also be:
[0159] Read the heartbeat data of each of the child nodes from the first data packet;
[0160] The target sub-node is selected according to the heartbeat data, the node identifier of the target sub-node is written into the data sub-block header, and the flow control instructions of the sub-packets to be written that are discarded and have a priority level less than or equal to the preset priority level are written into the corresponding data sub-block to obtain the second data packet.
[0161] like Fig.16 As shown, the method for generating the second data packet of the sixth embodiment of the present disclosure includes the following steps:
[0162] In the embodiments of the present disclosure, the method for generating the second data packet of the sixth embodiment of the present disclosure corresponds to "the flow control strategy is to adjust one or more of the first packet format number, the first data sub-block length, the second packet format number and the second data sub-block length of the second data packet".
[0163] Step 1601, modify one or more of the value of the first packet format number, the length value of the first data sub-block length, the value of the second packet format number and the length value of the second data sub-block length to obtain the second data packet.
[0164] In the disclosed embodiment, when assembling the second data packet, the master node realizes the modification of the number of packet formats and data sub-block lengths of different specifications by modifying one or more of the value of the first packet format number, the length value of the first data sub-block length, the value of the second packet format number and the length value of the second data sub-block length in the flow control field of the second data packet. As a result, the master node can flexibly set or adjust the length of each data sub-block of the second data packet to improve data processing efficiency and alleviate the congestion of hot nodes.
[0165] In the embodiment of the present disclosure, through the method for generating the second data packet of the sixth embodiment of the present disclosure, by modifying the number of sub-packets of different specifications and the corresponding data sub-block lengths to adapt to the actual transmission data, the data transmission efficiency is improved and the system congestion is alleviated.
[0166] In the embodiments of the present disclosure, Fig.17 As shown, a flow control method of a transmission system according to another embodiment of the present disclosure includes the following steps:
[0167] In an embodiment of the present disclosure, a flow control method of a transmission system in another embodiment of the present disclosure is executed by a sub-node of the transmission system.
[0168] Step 1701: Determine whether the cache state is a congestion state according to the heartbeat data of the register.
[0169] In the disclosed embodiment, each child node can determine whether its own cache state is a congested state based on the heartbeat data of the register. For example, the child node compares the cache ratio of the register with a preset cache ratio threshold, and when the cache ratio of the register is greater than the cache ratio threshold, it determines that its own cache state is a congested state, that is, it determines that it is a hot node.
[0170] Step 1702, modify the identification value of the cache congestion indication bit in the flow control field of the first data packet, and transmit the modified first data packet to the master node.
[0171] In an embodiment of the present disclosure, when the child node determines that its own cache state is a congested state, it modifies the identification value of the cache congestion indication bit in the flow control field of the common header of the first data packet, and transmits the modified first data packet to the main node. Thus, the main node can generate a flow control strategy based on the identification value of the cache congestion indication bit.
[0172] Furthermore, when the cache congestion indication bit occupies 1 bit, the identification value of the cache congestion indication bit is a first type value. During the transmission process, when the child node determines that its own cache state is a congested state, it modifies the identification value of the cache congestion indication bit in the first data packet to a first non-default value.
[0173] When the cache congestion indication bit occupies 2 bits, the identification value of the cache congestion indication bit is a second type value. During the transmission process, when the child node determines that its own cache state is a congested state, it progressively modifies the identification value and modifies the identification value of the cache congestion indication bit in the flow control field of the first data packet to the progressive identification value. That is, when the identification value is the second default value, the child node progressively modifies the second default value to a second non-default value. Since the second non-default value includes multiple values, when modifying, each child node can modify the identification value of the cache congestion indication bit in the flow control field of the first data packet in sequence according to the order of the multiple values of the second non-default value. For example, as shown in FIG2(a), nodes 1, 3, and 7 in the ring topology are hot nodes. During the transmission of the first data packet, node 1 will first modify the second default value "00" to "01", node 3 will then modify the second default value "01" to "10", and node 7 will finally modify the second default value "10" to "11".
[0174] When the cache congestion indication bit occupies 3 bits, the identification value of the cache congestion indication bit is a third type value. During the transmission process, when the child node determines that its own cache state is a congested state, it progressively modifies the identification value and modifies the identification value of the cache congestion indication bit in the flow control field of the first data packet to the progressive identification value. That is, when the identification value is the third default value, the child node progressively modifies the third default value to a third non-default value. Since the third non-default value includes multiple values, when modifying, each child node can modify the identification value of the cache congestion indication bit in the flow control field of the first data packet in sequence according to the order of the multiple values of the third non-default value. For example, the ring topology includes 100 nodes, node 3, node 50, node 61, node 62, node 73, node 89, and node 90 are hot nodes. During the transmission of the first data packet, node 3 will first modify the third default value "000" to "001", node 50 will modify "001" to "010", node 61 will modify "010" to "011", node 61 will modify "011" to "100", node 73 will modify "100" to "101", node 89 will modify "101" to "110", and node 90 will modify "110" to "111".
[0175] In an embodiment of the present disclosure, through the flow control method of the transmission system of another embodiment of the present disclosure, the child node modifies the cache congestion indication bit and reports the congestion information; after the main node receives the congestion information, it selects different flow control strategies according to the congestion status, and generates and sends a second data packet according to the flow control strategy. In this way, the flow control of the transmission system can be achieved, data accumulation caused by excessive data volume can be avoided, and blocking of the transmission system can be prevented, thereby improving data processing efficiency, allowing important data to be responded to in a timely manner, and ensuring security.
[0176] In the embodiment of the present disclosure, after receiving the second data packet, each sub-node executes the flow control strategy corresponding to the second data packet, specifically:
[0177] When the flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block, the hot nodes except the end node read the permission identifier of the data sub-block header of the target data sub-block, and after determining that the identifier value of the permission identifier is "h", write operations are performed on the target data sub-block; the end node does not judge the permission identifier of the target data sub-block, and as long as the data sub-block header of the data sub-block is an idle identifier, the data sub-block is written.
[0178] When the flow control strategy is to adjust the transmission direction of the transmission system, the hot node writes the sub-packet to be written into the second data packet in the reverse direction according to the transmission direction of the flow control instruction; or, the main node writes the sub-packet to be sent whose target sub-node is the downstream node of the hot node into the second data packet in the target direction, and the target direction is the direction that makes the target sub-node the upstream node of the hot node.
[0179] When the flow control strategy is to adjust the read and write permissions of the target sub-node to the public field of the second data packet, the target sub-node reads the public header of the second data packet, and performs a write operation on the public field when the identification value of the occupancy indication of the public field is "1"; wherein, the target sub-node can be any sub-node, preferably a hot node.
[0180] When the flow control strategy is the write parameters when the target sub-node writes to the second data packet, and the write parameters include one or more of write permission, write frequency, and write number threshold, each target sub-node reads the flow control instructions of the write permission, write frequency, and write number threshold from the second data packet, writes the flow control instructions into the register, and executes the write permission, write frequency, and write number threshold of the flow control instructions; wherein, the target sub-node can be any sub-node, or, the target sub-node can be any sub-node except the hot node.
[0181] When the flow control strategy is to adjust the processing method of each target sub-node for sub-packets to be written with different priorities, each target sub-node reads the flow control instruction for discarding sub-packets to be written with a priority level less than or equal to a preset level from the common header of the second data packet, writes the flow control instruction into a register, and executes the discard operation of the flow control instruction; wherein, the target sub-node can be any sub-node.
[0182] When the flow control strategy is to adjust one or more of the first packet format number, the first data sub-block length, the second packet format number and the second data sub-block length of the second data packet, each child node performs read and write operations on the data sub-packets according to the first data packet format, the first data sub-block length, the second data packet format and the second data sub-block length.
[0183] Fig.18 is a schematic diagram of the main modules of the flow control device of the transmission system according to the embodiment of the present disclosure. The transmission system includes a master node and a sub-node, such as Fig.18 As shown, the flow control device 1800 of the transmission system of the present disclosure is applied to the master node, and the flow control device 1800 of the transmission system includes:
[0184] The receiving module 1801 is used to receive a first data packet including a flow control field.
[0185] The policy module 1802 is used to determine the flow control policy of the transmission system according to the identification value of the buffer congestion indication bit in the flow control field.
[0186] The modification module 1803 is used to send the second data packet according to the flow control strategy so that the target sub-node executes the flow control strategy.
[0187] Fig.19 is a schematic diagram of main modules of a flow control device of a transmission system according to another embodiment of the present disclosure, wherein the transmission system includes a master node and a sub-node, such as Fig.19 As shown, the flow control device 1900 of the transmission system of the present disclosure is applied to a subnode, and the flow control device 1900 of the transmission system includes:
[0188] The judgment module 1901 is used to determine whether the cache state is a congestion state according to the heartbeat data of the register.
[0189] The modification module 1902 is used to modify the identification value of the cache congestion indication bit in the flow control field of the first data packet when the cache state is a congestion state, and transmit the modified first data packet to the master node.
[0190] It should be noted that the present disclosure does not limit the application fields of the flow control methods and devices of the transmission systems of the various embodiments. The flow control methods and devices of the transmission systems of the various embodiments of the present disclosure can be applicable to any scenario that adopts a link-type transmission system, such as vehicle-mounted systems, industrial control, smart homes, communication networks, etc., as long as there are networking systems with master nodes and sub-nodes. Accordingly, in the vehicle-mounted system scenario, driving safety can be guaranteed.
[0191] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0192] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.
[0193] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.
[0194] refer to Fig. 20, a block diagram of an electronic device 2000 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0195] like Fig. 20 As shown, electronic device 2000 includes a computing unit 2001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 2002 or a computer program loaded from a storage unit 2008 into a random access memory (RAM) 2003. In RAM 2003, various programs and data required for the operation of device 2000 can also be stored. Computing unit 2001, ROM 2002 and RAM 2003 are connected to each other via a bus 2004. An input / output (I / O) interface 2005 is also connected to bus 2004.
[0196] A plurality of components in the electronic device 2000 are connected to the I / O interface 2005, including: an input unit 2006, an output unit 2007, a storage unit 2008, and a communication unit 2009. The input unit 2006 may be any type of device capable of inputting information to the electronic device 2000, and the input unit 2006 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 2007 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 2008 may include, but is not limited to, a disk, an optical disk. The communication unit 2009 allows the electronic device 2000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0197] The computing unit 2001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 2001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 2001 performs the various methods and processes described above. For example, in some embodiments, Figure 1 , Figure 8 , Fig.10 , Fig.12 Figure 13(a) Figures 14 to 17 The method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 2008. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 2000 via the ROM 2002 and / or the communication unit 2009. In some embodiments, the computing unit 2001 can be configured to execute the computer program by any other suitable means (for example, by means of firmware). Figure 1 , Figure 8 , Fig.10 , Fig.12 Figure 13(a) Figures 14 to 17 method.
[0198] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0199] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0200] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0201] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0202] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0203] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
Claims
1. A flow control method for a transmission system, characterized in that: The transmission system includes a master node and a sub-node. The method is applied to the master node and includes: receiving a first data packet including a flow control field; Determining a flow control strategy of the transmission system according to an identification value of a buffer congestion indication bit in the flow control field; The second data packet is sent according to the flow control strategy, so that the target child node executes the flow control strategy.
2. The flow control method according to claim 1, characterized in that: The identification value includes a default value and a non-default value; and determining the flow control strategy of the transmission system according to the identification value of the cache congestion indication bit in the flow control field includes: Determine whether the identification value is a non-default value; When the identification value is the non-default value, the flow control policy is generated.
3. The flow control method according to claim 2, characterized in that: The flow control strategy is to adjust the read and write permissions of the target sub-node to each data sub-block.
4. The flow control method according to claim 2, characterized in that: The flow control strategy is to adjust the transmission direction of the transmission system.
5. The flow control method according to claim 2, characterized in that: The flow control strategy is to adjust the read and write permissions of the target sub-node to the public field of the second data packet.
6. The flow control method according to claim 2, characterized in that: The flow control strategy is to adjust the write parameters of the target child node when writing to the second data packet, and the write parameters include one or more of write permission, write frequency, and write number threshold.
7. The flow control method according to claim 2, characterized in that: The flow control strategy is to adjust the processing method of each target sub-node for sub-packets to be written with different priorities.
8. The flow control method according to claim 2, characterized in that: The flow control field also includes the number of first packet formats, the length of first data sub-blocks, the number of second packet formats and the length of second data sub-blocks, and the flow control strategy is to adjust one or more of the number of first packet formats, the length of first data sub-blocks, the number of second packet formats and the length of second data sub-blocks.
9. The flow control method according to claim 3, characterized in that: The flow control field also includes the number of abnormal reserved sub-blocks; and sending the second data packet according to the flow control strategy includes: Modify the value of the number of abnormal reserved sub-blocks; A target data sub-block is selected, and the write permission of the target data sub-block is set to the target sub-node to obtain the second data packet; wherein the number of the target data sub-blocks is equal to the numerical value of the number of the abnormal reserved sub-blocks.
10. The flow control method according to claim 9, characterized in that: The modifying the value of the number of abnormal reserved sub-blocks includes: Read the heartbeat data of each child node from the first data packet; The value of the number of abnormal reserved sub-blocks is modified according to the heartbeat data.
11. The flow control method according to claim 4, characterized in that: The sending the second data packet according to the flow control strategy includes: The node identifier of the target sub-node is written into the data sub-block header, and the flow control instruction for adjusting the transmission direction of the sub-packet to be written is written into the corresponding data sub-block body, so as to obtain the second data packet.
12. The flow control method according to claim 4, characterized in that: The sending the second data packet according to the flow control strategy includes: The sending direction of the to-be-sent sub-packet whose destination node is the target sub-node is changed.
13. The flow control method according to claim 12, characterized in that: The changing the sending direction of the to-be-sent sub-packet whose destination node is the target sub-node includes: Determine whether the target child node is a downstream node of the hot node; When the target subnode is a downstream node of a hot node, the subpacket to be sent is written into a second data packet whose sending direction is a target direction; wherein the target direction is a direction that makes the target subnode an upstream node of the hot node.
14. The flow control method according to claim 5, characterized in that: The sending the second data packet according to the flow control strategy includes: Modify the identification value of the common field of the second data packet.
15. The flow control method according to claim 6, characterized in that: The sending the second data packet according to the flow control strategy includes: Adjusting the write parameters of the target child node, including adjusting the write permission to deny write, adjusting the write frequency to low frequency, and adjusting the write number threshold to a preset number threshold, and generating a flow control instruction of the adjusted write parameters; Write the adjusted flow control instruction of the write parameter into the second data packet.
16. The flow control method according to claim 6, characterized in that: The sending the second data packet according to the flow control strategy includes: Read the heartbeat data of each of the child nodes from the first data packet; Select the target subnode according to the heartbeat data, adjust the write parameters of the target subnode, including adjusting the write permission to deny write, adjusting the write frequency to low frequency, and adjusting the write number threshold to a preset number threshold, and generate a flow control instruction of the adjusted write parameters; The node identifier of the target sub-node is written into the data sub-block header, and the flow control instruction of the adjusted write parameter is written into the corresponding data sub-block body, so as to obtain the second data packet.
17. The flow control method according to claim 7, characterized in that: The sending the second data packet according to the flow control strategy includes: A flow control instruction for discarding sub-packets to be written whose priority level is less than or equal to a preset priority level is written into the second data packet.
18. The flow control method according to claim 7, characterized in that: The sending the second data packet according to the flow control strategy includes: Read the heartbeat data of each of the child nodes from the first data packet; The target sub-node is selected according to the heartbeat data, the node identifier of the target sub-node is written into the data sub-block header, and the flow control instruction for discarding the sub-packets to be written that are less than or equal to the preset priority level is written into the corresponding data sub-block body to obtain the second data packet.
19. The flow control method according to claim 8, characterized in that: The sending the second data packet according to the flow control strategy includes: Modify one or more of the value of the first packet format number, the length value of the first data sub-block length, the value of the second packet format number and the length value of the second data sub-block length to obtain the second data packet.
20. A flow control method for a transmission system, characterized in that: The transmission system includes a master node and a sub-node, and the method is applied to the sub-node, including: According to the heartbeat data of the register, determine whether the cache state is a congestion state; When the cache state is a congestion state, the identification value of the cache congestion indication bit in the flow control field of the first data packet is modified, and the modified first data packet is transmitted to the master node.
21. The flow control method according to claim 20, characterized in that: The identification value includes a default value and a non-default value; the modification of the identification value of the cache congestion indication bit in the flow control field of the first data packet includes: The identification value of the cache congestion indication bit is modified to a non-default value.
22. The flow control method according to claim 20, characterized in that: The modifying the identification value of the buffer congestion indication bit in the flow control field of the first data packet includes: The identification value is processed progressively, and the identification value of the cache congestion indication bit in the flow control field of the first data packet is modified to the progressive identification value.
23. The flow control method according to claim 20, characterized in that: Also includes: receiving a second data packet; Execute the flow control policy in the second data packet.
24. The flow control method according to claim 23, characterized in that: The executing the flow control strategy in the second data packet includes: The flow control instruction in the second data packet is read and written into the register.
25. A flow control device for a transmission system, characterized in that: The transmission system includes a master node and a sub-node, and the device is applied to the master node, including: A receiving module, configured to receive a first data packet including a flow control field; A strategy module, used to determine the flow control strategy of the transmission system according to the identification value of the cache congestion indication bit in the flow control field; The modification module is used to send the second data packet according to the flow control strategy so that the target sub-node executes the flow control strategy.
26. A flow control device for a transmission system, characterized in that: The transmission system includes a master node and a sub-node, and the device is applied to the sub-node, including: A judgment module, used for determining whether the cache state is a congestion state according to the heartbeat data of the register; The modification module is used to modify the identification value of the cache congestion indication bit in the flow control field of the first data packet when the cache state is a congestion state, and transmit the modified first data packet to the master node.
27. A transmission system, characterized in that: The transmission system includes a master node and a sub-node, the master node is used to execute the flow control method of the transmission system according to any one of claims 1-19, and the sub-node is used to execute the flow control method of the transmission system according to any one of claims 20-24.
28. A chip, comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to execute the flow control method of the transmission system according to any one of claims 1-24.
29. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the flow control method of the transmission system according to any one of claims 1-24.
