A fiber optic network communication control method with a feedback mechanism
By introducing priority, bandwidth statistics and credit value feedback mechanisms in the optical fiber network, dynamically adjusting the transmission order and bandwidth allocation of frames, the problem of low traffic management efficiency in the prior art is solved, and efficient bandwidth utilization and communication delay reduction is achieved.
Patent Information
- Application Number
- CN202211605530.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-12-14
AI Technical Summary
The existing fiber network traffic management strategy cannot adjust the transmission traffic in time based on the actual transmission bandwidth and congestion state, resulting in low information transmission efficiency and cannot meet the needs of large data volume and high-speed communication.
Through feedback mechanisms based on priority, bandwidth statistics and credit values, the transmission mechanism of the optical fiber network is dynamically adjusted, including determining the frame type, load priority, application priority and link congestion judgment, and controlling the transmission order and bandwidth allocation of frames.
It improves network bandwidth utilization, reduces network communication delay, ensures communication smoothness and efficiency, and is suitable for various fiber transmission scenarios.
Smart Images

Figure CN118200235B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer communication, and particularly relates to a fiber optic network communication control method with a feedback mechanism. Background Art
[0002] The traffic management of a fiber optic network is based on credit values, mainly used to avoid network congestion without losing data. The credit value refers to the number of data frames that a port can receive, which represents the number of buffers to a certain extent. When the source node sends enough frames to exhaust the credit value, additional data frames will not be sent until the destination node notifies that the frames from the source node have been processed, and then data frames can be sent continuously. Thus, it can be seen that the traffic management strategy greatly affects the communication efficiency and bandwidth between nodes.
[0003] The highly integrated information of sensors at all levels of new generation launch vehicles and weapons has led to a substantial increase in the amount of information transmission. The types, sizes, and processing urgency degrees of information are all different, and the requirements for network bandwidth, latency, and link utilization rate are constantly increasing, which also puts forward higher requirements for the traffic management of fiber optic networks. The existing traffic management strategies cannot well adjust the sending traffic according to the actual transmission bandwidth and congestion status in practical applications, cannot transmit different types of information in a timely manner according to the requirements of importance and urgency, and cannot meet the urgent needs of large amounts of data and high-speed communication. Summary of the Invention
[0004] In view of the above analysis, the present invention aims to provide a fiber optic network communication control method with a feedback mechanism, which adjusts the sending mechanism based on priority, bandwidth statistics, and credit value according to the actual congestion situation of the link, reduces network communication latency, and increases network bandwidth utilization.
[0005] The present invention provides a fiber optic network communication control method with a feedback mechanism, specifically including the following steps:
[0006] Determine the frame type of the frames to be sent by the source node this time based on the historical bandwidth ratio;
[0007] Determine the load priority of the frames to be sent based on the load size; determine the application priority of the frames to be sent based on the priority specified by the application layer;
[0008] Authorize the frames to be sent based on the number of levels of the load priority of the frames to be sent, the level of the load priority, and the level of the application priority;
[0009] Judge the congestion situation of the link based on the average value of the time interval of the local receive primitive R_RDY and the upper limit value of the reply R_RDY time;
[0010] Control link communication based on link congestion and local credit value feedback, and determine whether to send the authorized frames to be sent.
[0011] Further, the frame types of the frames to be sent by the source node this time determined based on the historical bandwidth ratio include:
[0012] Perform dynamic bandwidth allocation based on the historical bandwidth ratios of local frames and forwarded frames;
[0013] When the bandwidth occupancy rate of the forwarded frame does not reach the bandwidth allocated by the user and the forwarded frame has not been sent more than m times since the last send, then authorize the send this time to the forwarded frame, that is, determine the frame type of the frame to be sent this time as the forwarded frame; otherwise, authorize it to the local frame, that is, determine the frame type of the frame to be sent this time as the local frame; where m is a preset value.
[0014] Further, the determination of the load priority of the frame based on the load size includes: the load priority is negatively correlated with the number of load bytes, and the smaller the number of load bytes, the higher the load priority.
[0015] Further, it is characterized in that the determination of the load priority of the frame based on the load size includes:
[0016] Determine that the priority of the frame with the load byte number less than or equal to l1 bytes is the first load priority; where l1 is a preset value, 1 < l1 < 32;
[0017] Determine that the priority of the frame with the load byte number greater than l1 bytes and less than or equal to l2 bytes is the second load priority, where l2 is a preset value, 480 < l2 < 1024;
[0018] Determine that the priority of the frame with the load byte number greater than l2 bytes is the third load priority.
[0019] Further, the determination of the application priority of the frame based on the priority specified by the application layer includes: preset different application priorities for different frames according to the actual application situation.
[0020] Further, the authorization of the frames to be sent based on the number of levels of the load priority of the frames to be sent, the level of the load priority, and the level of the application priority includes:
[0021] When there is only a request to send the first load priority frame, authorize the first load priority frame;
[0022] When there are requests to send frames with more than 2 levels of load priority, determine the level of the load priority of the frame authorized for this send based on the historical send times and the current local credit value, and authorize the frame to be sent at this level.
[0023] Further, determining the level of the load priority for authorizing the current transmission frame based on the historical transmission times and the current local credit value and authorizing the frames to be transmitted at this level includes:
[0024] Principle 1: When the local credit value is greater than or equal to w1% of the threshold value of the local credit value, only authorize the transmission of the first load priority frame; if there is no first load priority frame, do not authorize the frames to be transmitted; where w1 is a preset value;
[0025] Principle 2: When the local credit value is greater than or equal to w2% of the threshold value and less than w1% of the threshold value, if the first load priority frame has not been continuously transmitted in the most recent i times before this transmission, then the first load priority frame to be transmitted is still authorized this time, otherwise authorize the second load priority frame to be transmitted; generally, do not authorize the third load priority frame to be transmitted; where i and w2 are preset values, and w2 < w1;
[0026] Principle 3: When the local credit value is greater than or equal to w3% of the threshold value and less than w2% of the threshold value, if the historical transmission times of the first load priority frame is less than or equal to j and the first load priority frame has not been continuously transmitted in the most recent i times before this transmission, then authorize the first load priority frame to be transmitted this time, otherwise authorize the second load priority frame to be transmitted or the third load priority frame to be transmitted; where, if and only if there is a third load priority frame waiting to be authorized and the historical transmission times is 0, authorize the third load priority frame to be transmitted, otherwise authorize the second load priority frame to be transmitted; where the historical transmission times refers to the total number of times this load priority frame has been transmitted within a period of time, and the period of time refers to the sum of the transmission processing times of the k transmission frames before the current time; where w3, j, and k are preset values, and w3 < w2 < w1;
[0027] Principle 4: When the local credit value is less than w3% of the threshold value, on the basis of authorizing according to the load priority level, when the following conditions are met, make the frames of each load priority level be transmitted alternately: the first load priority frame cannot be continuously transmitted more than j times, the second load priority frame cannot be continuously transmitted more than t times, and the historical transmission times of the third load priority frame shall not be less than s times; where t is a preset value.
[0028] Further, determining the level of the load priority for authorizing the current transmission frame based on the historical transmission times and the current local credit value further includes: when authorizing each level of load priority frame, further sort and authorize based on its application priority; where the order of application priority from high to low is: high application priority, medium application priority, low application priority, no application priority.
[0029] Further, judging the link congestion situation based on the average value of the time intervals of the local receive primitive R_RDY and the upper limit value of the reply R_RDY time includes:
[0030] Calculate the interval time of the most recent reception of the primitive R_RDY currently;
[0031] Judge the link congestion situation: If the latest interval time is less than a times the average value, it is considered that there is no congestion in the current link and the communication is normal; where a is a preset value; if it is greater than or equal to a times the average value and less than the upper limit value, it is considered that the link is congested and determined to be congestion level 1; if it is greater than or equal to the upper limit value, it is extremely congested and determined to be congestion level 2.
[0032] Furthermore, the controlling the link communication based on the link congestion degree and the local credit value and determining whether to send the authorized frames to be sent includes:
[0033] When the local credit value and the link congestion degree do not support frame sending and credit usage, skip the current sending and retain this state for the next sending decision; where the situations that do not support frame sending and credit usage include: the local credit value is full; the local credit value occupancy is not full but greater than or equal to x1% of the threshold, and the link is congested at level 1 or level 2; the local credit value occupancy is between greater than or equal to x2% of the threshold and less than x1% of the threshold, and is congested at level 2; where x1 and x2 are preset values, 70 < x1 ≤ 99, 50 < x2 ≤ 70;
[0034] When the local credit value is greater than or equal to x3% of the threshold: If there are frames with the first load priority that have been authorized, determine to always send the authorized frames with the first load priority until the local credit value is full; if there are no frames with the first load priority that have been authorized, skip the current sending and retain this state for the next sending decision; where x3 is a preset value; where 70 < x3 ≤ 99;
[0035] When the local credit value is less than x3% of the threshold: Allow the sending of authorized frames of each level.
[0036] The present invention can at least achieve one of the following beneficial effects:
[0037] By feeding back the congestion situation of the link based on the time of the local reception primitive R_RDY and performing traffic management based on the credit value, the controllability of the network state is increased, network congestion is avoided, the bandwidth utilization rate is effectively increased while ensuring smooth communication, and the communication efficiency is greatly improved.
[0038] By performing dynamic bandwidth allocation through statistics of the historical bandwidth occupancy ratios of different frame types, determining the sending priority of frames based on the load size of the frames and the priority specified by the application layer, and adjusting the sending order of frames according to the bandwidth allocation and priority, the real-time performance of the transmission and the efficient operation of the entire network are guaranteed.
[0039] The solution of the present invention is based on the basic functions of the switching network, can be used in various different optical fiber transmission scenarios, has strong portability and high flexibility in use, and can be applied to different application scenarios with switching functions.
[0040] Other features and advantages of the present invention will be described in the following specification, and some advantages can be made obvious from the specification, or understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained from the content specifically pointed out in the specification, claims and drawings. Description of the Drawings
[0041] The drawings are only for the purpose of showing specific embodiments, and are not considered as a limitation of the present invention. Throughout the drawings, the same reference signs denote the same components.
[0042] Figure 1 It is a flowchart of the optical fiber network communication control method of the present invention. Detailed Embodiments
[0043] The following will specifically describe the preferred embodiments of the present invention in conjunction with the drawings, where the drawings form a part of this application and are used together with the embodiments of the present invention to explain the principle of the present invention, and are not used to limit the scope of the present invention.
[0044] Embodiment 1
[0045] A specific embodiment of the present invention discloses an optical fiber network communication control method with a feedback mechanism, which specifically includes the following steps:
[0046] Step S01: Determine the frame type of the frame to be sent by the source node this time based on the historical bandwidth occupancy ratio.
[0047] Specifically, the frame types of the frames to be sent by the source node include local frames and forwarding frames.
[0048] Among them, the local frame is a frame to be sent generated locally; the forwarding frame is a frame to be forwarded received.
[0049] Generally, the forwarding frames need to pass quickly. The frames to be sent generated locally have different sending requirements according to actual applications. Generally, the sending priority of the forwarding frames is higher than that of the local frames, but it is also necessary to ensure that the forwarding frames and the local frames are sent alternately to prevent one side from being blocked all the time.
[0050] Preferably, provide an expected bandwidth allocation ratio for the forwarding frames and the local frames in the register, which can include multiple ratio schemes, and gradually increase the allocation ratio of the local frames:
[0051] Exemplarily, the forwarded frames occupy u% of the transmission bandwidth, and the local frames occupy (100 - u)% of the transmission bandwidth; the forwarded frames occupy v% of the transmission bandwidth, and the local frames occupy (100 - v)% of the transmission bandwidth; where 90 < u < 100 and 80 < v ≤ 90.
[0052] Optionally, for the transmission of these two types of frames, according to the historically statistical bandwidth occupancy information in real time, one setting in the register is selected for dynamic bandwidth allocation; where the historical bandwidth occupancy refers to the percentage of the total transmission bandwidth occupied by the forwarded frames and the local frames within a period of time; exemplarily, the period of time can be taken as n seconds, where n is an integer and n > 0; optionally, the register is used to store the value of n and can be modified according to requirements; optionally, a list is used to record the historical bandwidth occupancy in real time.
[0053] Since the expected bandwidth allocation ratio usually allocates a larger proportion of the bandwidth to the forwarded frames, the transmission opportunity of the forwarded frames is much greater than that of the local frames.
[0054] Preferably, the judgment condition for ensuring the interleaved transmission of the forwarded frames and the local frames to prevent one party from being blocked all the time is: when the bandwidth occupancy rate of the forwarded frames does not reach the bandwidth allocated by the user and the forwarded frames have not been transmitted for more than m times since the last transmission, then the transmission is authorized to the forwarded frames this time, that is, the frame type of the frame to be transmitted this time is determined as the forwarded frame, otherwise it is authorized to the local frame, that is, the frame type of the frame to be transmitted this time is determined as the local frame; where m is a preset value, 1 < m < 10; optionally, the register is used to store the value of m and can be modified according to requirements.
[0055] Step S02: Determine the load priority of the frame based on the load size; determine the application priority of the frame based on the priority specified by the application layer.
[0056] Specifically, determining the application priority of the frame based on the priority specified by the application layer includes: the priority specified by the application layer refers to setting different application priorities for different frames in advance according to the actual application situation; optionally, it can be set to high, medium, low, and no application priority.
[0057] Specifically, determining the load priority of the frame based on the load size includes: the load priority is negatively correlated with the load byte count, and the smaller the load byte count, the higher the load priority.
[0058] Specifically, the short frames with small loads have the highest priority, which is the first load priority. Preferably, the priority of the frames with a load byte count less than or equal to l1 bytes is the first load priority; where l1 is a preset value, 1 < l1 < 32, optionally, the register is used to store the value of l1 and can be modified according to requirements; preferably, l1 = 16. Such frames are general instruction frames in the aerospace system, and the processing response time is fast, which can be processed quickly to reduce the bandwidth and cache occupancy.
[0059] Frames with medium load have the second-highest priority. Frames with a load byte count greater than l1 bytes and less than or equal to l2 bytes have the second load priority; where l2 is a preset value, 480 < l2 < 1024; optionally, the l2 value is stored in a register; optionally, l2 = 1024;
[0060] Frames with high load have the lowest priority. Optionally, frames with a load byte count greater than l2 bytes have the third load priority.
[0061] Step S03: Authorize the frame to be sent based on the number of load priority levels of the frame to be sent, the level of load priority, and the level of application priority.
[0062] Specifically, when there is only a request to send a frame with the first load priority, authorize the frame with the first load priority to be sent;
[0063] When there are requests to send frames with more than two load priority levels, determine the level of load priority for authorizing the frame to be sent this time based on the historical number of transmissions and the current local credit value, and authorize the frame to be sent, including:
[0064] Principle 1: When the local credit value is greater than or equal to w1% of the threshold of the local credit value, only authorize the transmission of frames with the first load priority; if there are no frames with the first load priority, do not authorize the frame to be sent; where w1 is a preset value, 70 < w1 ≤ 90; optionally, the w1 value is stored in a register and modified according to requirements;
[0065] Principle 2: When the local credit value is greater than or equal to w2% of the threshold and less than w1% of the threshold, if the first load priority frame has not been continuously sent in the most recent i times before this transmission, then authorize the frame with the first load priority to be sent this time, otherwise authorize the frame with the second load priority to be sent; generally, do not authorize the frame with the third load priority to be sent; where i is a preset value, 1 < m < 20; optionally, the i value is stored in a register and modified according to requirements; where w2 is a preset value, 60 < w2 ≤ 70; optionally, the w1 value is stored in a register and modified according to requirements;
[0066] Principle 3: When the local credit value is greater than or equal to w3% of the threshold and less than w2% of the threshold, when the historical transmission times of the first load priority frame are less than or equal to j and the first load priority frame has not been continuously transmitted in the most recent i times before this transmission, then authorize the transmission of the first load priority frame to be transmitted this time; otherwise, authorize the second load priority frame to be transmitted or the third load priority frame to be transmitted. Among them, when and only when there is a third load priority frame to be transmitted waiting for authorization and the historical transmission times are 0, authorize the third load priority frame to be transmitted; otherwise, authorize the second load priority frame to be transmitted. Among them, the historical transmission times refer to the total number of times the load priority frame has been transmitted within a period of time, and the period of time refers to the sum of the transmission processing times of the k transmission frames before the current time. Among them, j and k are preset values, 1 < j, k < 30. Optionally, use registers to store the values of j and k and modify them according to requirements. w3 is a preset value, 30 < w3 ≤ 60. Optionally, use registers to store the value of w3 and modify it according to requirements.
[0067] Principle 4: When the local credit value is less than w3% of the threshold, on the basis of authorizing according to the load priority from high to low, make the load priority frames of each level interleave and transmit when the following conditions are met: The first load priority frame cannot be continuously transmitted more than j times, the second load priority frame cannot be continuously transmitted more than t times, and the historical transmission times of the third load priority frame shall not be less than s times. Among them, t and s are preset values, 1 < t, s < 15. Optionally, use registers to store the values of t and s and modify them according to requirements.
[0068] Specifically, in the above allocation principle, when authorizing each level of load priority frame, further sort and authorize based on its application priority. Among them, the order of application priority from high to low is: high application priority, medium application priority, low application priority, no application priority.
[0069] Optionally, the threshold of the above local credit value is a preset constant value. Optionally, use registers to store the threshold of the local credit value and modify it according to requirements.
[0070] Step S04: Judge the link congestion situation based on the average value of the time intervals of the local receive primitive R_RDY and the upper limit value of the reply R_RDY time.
[0071] Specifically, R_RDY is a common primitive signal transmitted at the link layer, belonging to the signals specified by the FC protocol, and is used for flow control at the transport layer. According to the FC_AE protocol, when a local primitive R_RDY is received, a local credit is restored. Therefore, the time interval of receiving the primitive can intuitively reflect the current congestion situation of the link.
[0072] Specifically, a local timer is used to calculate the time when the receive primitive R_RDY is received; a local list is set up, adopting a first-in-first-out queue structure, to record the moments when the primitive R_RDY of the reply to each frame sent in the most recent h times is received and the time interval between this moment and the previous primitive reception moment; based on all h time intervals, the average value is calculated after removing the maximum and minimum values; where h is a preset value, 1 < h < 20; optionally, a register is used to store the h value and it can be modified according to requirements.
[0073] Specifically, the time for the network to normally reply R_RDY should not exceed the upper limit value of the R_RDY reply time.
[0074] Specifically, the upper limit value of the R_RDY reply time is a preset constant value; optionally, a register is used to store the upper limit value of the R_RDY reply time and it can be modified according to requirements.
[0075] Specifically, judging the link congestion situation based on the average value of the local receive primitive R_RDY time interval and the upper limit value of the R_RDY reply time includes:
[0076] 1. Calculate the time interval of the most recent receive primitive R_RDY.
[0077] 2. Judge the link congestion situation:
[0078] If the latest time interval is less than a times the average value, it is considered that there is no congestion in the current link and the communication is normal; where a is a preset value, 1 < a < 5; optionally, a register is used to store the a value and it can be modified according to requirements.
[0079] If it is greater than or equal to a times the average value and less than the upper limit value, it is considered that the link is congested and determined as congestion level 1.
[0080] If it is greater than or equal to the upper limit value, it is extremely congested and determined as congestion level 2.
[0081] Step S05. Based on the link congestion degree situation and the local credit value, feedback to control the link communication and decide whether to send the authorized frames to be sent.
[0082] Specifically, it includes:
[0083] When the local credit value and link congestion degree do not support frame transmission and credit usage, skip the current transmission and retain this state for the next transmission decision; among them, the situations where frame transmission and credit usage are not supported are: the local credit value is full; the local credit value occupancy is not full but greater than or equal to x1% of the threshold, and the link congestion is level 1 or level 2; the local credit value occupancy is between greater than or equal to x2% and less than x1% of the threshold, and the congestion is level 2; where x1 and x2 are preset values, 70 < x1 ≤ 99, 50 < x2 ≤ 70; optionally, use registers to store the values of x1 and x2 and modify them according to requirements;
[0084] When the local credit value is greater than or equal to x3% of the threshold: If there are frames with the first load priority that have been authorized, the frames with the first load priority that have been authorized can always be transmitted until the local credit value is full; If there are no frames with the first load priority that have been authorized, skip the current transmission and retain this state for the next transmission decision; where x3 is a preset value, 70 < x3 ≤ 99; optionally, use registers to store the value of x3 and modify it according to requirements;
[0085] When the local credit value is less than x3% of the threshold: Allow the transmission of frames with various authorized levels.
[0086] A fiber optic network communication control method with a feedback mechanism disclosed in this embodiment conducts communication control based on the feedback of link congestion degree and local credit value, increases the controllability of the network state, avoids network congestion, effectively increases the bandwidth utilization rate while ensuring smooth communication, and greatly improves the communication efficiency. Through dynamic bandwidth allocation by statistically counting the historical bandwidth occupancy ratios of different frame types, determines the transmission priority of frames based on the load size of the frames and the priority specified by the application layer, and adjusts the transmission order of frames according to bandwidth allocation and priority, ensuring the real-time nature of the transmission and the efficient operation of the entire network. This embodiment is based on the basic functions of the switching network, can be used in various different fiber optic transmission scenarios, has strong portability and high flexibility in use, and can be applied to different application scenarios with switching functions.
[0087] As described above, it is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A fiber optic network communication control method with a feedback mechanism, characterized in that, It includes the following steps: Determine the frame type of the frame to be sent by the source node this time based on the historical bandwidth ratio; Determine the load priority of the frame to be sent based on the load size; determine the application priority of the frame to be sent based on the priority specified by the application layer; Authorize the frame to be sent based on the number of levels of the load priority of the frame to be sent, the level of the load priority, and the level of the application priority, including: when there is only a request to send a first load priority frame, authorize the first load priority frame; when there are requests to send frames of more than 2 levels of load priority, determine the level of the load priority of the frame to be sent this time based on the historical number of transmissions and the current local credit value and authorize the frame to be sent at this level; among them, when the local credit value is greater than or equal to w1% of the threshold of the local credit value, only authorize the transmission of the first load priority frame; if there is no first load priority frame, do not authorize the frame to be sent; w1 is a preset value; when the local credit value is greater than or equal to w2% of the threshold and less than w1% of the threshold, if the first load priority frame has not been continuously sent in the most recent i times before this transmission, then this time still authorize the first load priority frame to be sent, otherwise authorize the second load priority frame to be sent; i, w2 are preset values, and w2 < w1; when the local credit value is greater than or equal to w3% of the threshold and less than w2% of the threshold, when the historical number of transmissions of the first load priority frame is less than or equal to j and the first load priority frame has not been continuously sent in the most recent i times before this transmission, then this time authorize the first load priority frame to be sent, otherwise authorize the second load priority frame to be sent or the third load priority frame to be sent; among them, when and only when there is a third load priority frame to be sent waiting for authorization and the historical number of transmissions is 0, authorize the third load priority frame to be sent, otherwise authorize the second load priority frame to be sent; w3, j, k are preset values, and w3 < w2 < w1; when the local credit value is less than w3% of the threshold, on the basis of authorizing according to the level of the load priority, make the frames of each load priority be sent alternately when the following conditions are met: the first load priority frame cannot be continuously sent more than j times, the second load priority frame cannot be continuously sent more than t times, and the historical number of transmissions of the third load priority frame shall not be less than s times; where t is a preset value; Judge the link congestion situation based on the average value of the time interval of the local receive primitive R_RDY and the upper limit value of the time to reply R_RDY; Based on the link congestion degree and the local credit value, feedback to control the link communication and determine whether to send the authorized frame to be sent.
2. The optical fiber network communication control method according to claim 1, wherein The determining the frame type of the frame to be sent by the source node this time based on the historical bandwidth ratio includes: Perform dynamic bandwidth allocation based on the historical bandwidth ratios of the local frame and the forwarded frame; When the bandwidth occupancy rate of the forwarded frame does not reach the bandwidth allocated by the user and the forwarded frame has not been sent for more than m times since the last transmission, then this time authorize the transmission to the forwarded frame, that is, determine the frame type of the frame to be sent this time as the forwarded frame, otherwise authorize it to the local frame, that is, determine the frame type of the frame to be sent this time as the local frame; where m is a preset value.
3. The optical fiber network communication control method according to claim 1, wherein, The determination of the load priority of a frame based on the load size includes: the load priority is negatively correlated with the number of load bytes, and the smaller the number of load bytes, the higher the load priority.
4. The optical fiber network communication control method according to claim 3, characterized in that, The determination of the load priority of a frame based on the load size includes: Determining that the priority of a frame with a load byte count less than or equal to l1 bytes is the first load priority; where l1 is a preset value, 1 < l1 < 32; Determining that the priority of a frame with a load byte count greater than l1 bytes and less than or equal to l2 bytes is the second load priority, where l2 is a preset value, 480 < l2 < 1024; Determining that the priority of a frame with a load byte count greater than l2 bytes is the third load priority.
5. The optical fiber network communication control method according to claim 3, characterized in that The determination of the application priority of a frame based on the priority specified by the application layer includes: setting different application priorities for different frames in advance according to the actual application situation.
6. The optical fiber network communication control method according to claim 5, wherein, The determination of the level of the load priority for authorizing the transmission of the frame based on the historical transmission times and the current local credit value further includes: when authorizing frames with each level of load priority, further sorting and authorizing based on their application priorities; where the order of application priority sorting from high to low is: high application priority, medium application priority, low application priority, no application priority.
7. The optical fiber network communication control method according to any one of claims 1-6, characterized in that The determination of the link congestion situation based on the average value of the time interval of the local receive primitive R_RDY and the upper limit value of the reply R_RDY time includes: Calculating the time interval of the current latest receive primitive R_RDY; Judging the link congestion situation: if the latest interval time is less than a times the average value, it is considered that there is no congestion in the current link and the communication is normal; where a is a preset value; if it is greater than or equal to a times the average value and less than the upper limit value, it is considered that the link is congested and determined as congestion level 1; if it is greater than or equal to the upper limit value, it is extremely congested and determined as congestion level 2.
8. The fiber optic network communication control method according to claim 7, characterized in that, The feedback control of the link communication based on the link congestion degree and the local credit value to determine whether to send the authorized frame to be sent includes: When the local credit value and the link congestion degree do not support frame sending and credit usage, skip this transmission and retain this state for the next transmission decision; where the situations that do not support frame sending and credit usage include: the local credit value is full; the local credit value occupancy is not full but greater than or equal to x1% of the threshold, and the link is congested at level 1 or level 2; the local credit value occupancy is between greater than or equal to x2% and less than x1% of the threshold, and is congested at level 2; where x1 and x2 are preset values, 70 < x1 ≤ 99, 50 < x2 ≤ 70; When the local credit value is greater than or equal to x3% of the threshold: if there is a frame with the first load priority that has been authorized, determine to keep sending the authorized frame with the first load priority until the local credit value is full; if there is no frame with the first load priority that has been authorized, skip this transmission and retain this state for the next transmission decision; where x3 is a preset value; where, 70 < x3 ≤ 99 When the local credit value is less than x3% of the threshold: allow the transmission of authorized frames at each level.
Citation Information
Patent Citations
Flow control method and system of heterogeneous FC network
CN107864099A
FC switch scheduling method and device, electronic equipment and storage medium
CN112311702A