Is net.ipv4.tcp_reordering set the number of duplicated ACK packets to trigger tcp fast retransmit on Linux?
Assistant
No, net.ipv4.tcp_reordering does not set the number of duplicated ACK packets to trigger TCP fast retransmit on Linux. Instead, net.ipv4.tcp_reordering is a sysctl parameter that specifies the maximum number of out-of-order segments that TCP should tolerate before it decides to retransmit a packet, assuming that a packet has been lost or is delayed somewhere in the network.
The TCP fast retransmit mechanism is triggered by the receipt of a certain number of duplicate ACKs. This threshold is not directly configurable via a sysctl parameter, but it does correspond to the TCP DupACK threshold, which is typically set to 3. This means when a sender receives three duplicate acknowledgments for the same packet (indicating that subsequent packets have been received), it infers that the packet has been lost and performs a retransmission without waiting for a retransmission timer to expire.
User
Is net.ipv4.tcp_reordering for sender? Why to set it if fast retransmit is enabled by default? Can you show the example of how it works?
Assistant
The net.ipv4.tcp_reordering sysctl parameter is indeed for the TCP sender. It specifies the degree of out-of-order packets that the sender allows before it decides that a packet in the sequence has been lost and takes retransmission action.
User
Does it coexist with SACK? answer shortly
Assistant
Yes, net.ipv4.tcp_reordering coexists with Selective Acknowledgment (SACK). SACK is used to indicate precisely which packets have been received successfully, allowing for more efficient loss recovery, while tcp_reordering determines the sender's tolerance for packet reordering before assuming a loss and initiating retransmission. SACK enhances the ability to deal with multiple packet losses and reordering within the same window of data.
User
Does net.ipv4.tcp_reordering change the fast retransmit "3" behavior? As you have shown the example, it looks like yes, but before you said that the option is different.
Assistant
Apologies for any confusion. The net.ipv4.tcp_reordering parameter does not change the fundamental "3 duplicate ACKs" behavior of the TCP fast retransmit mechanism. That behavior is a hardcoded aspect of TCP and is not directly configurable.
What net.ipv4.tcp_reordering does change is the sender's internal understanding of how many out-of-order packets should be considered normal before assuming a segment has been lost. It affects the sender's view on when to trigger a retransmission based on perceived packet reordering—but it does not alter the trigger point for fast retransmit in response to duplicate ACKs.
So to clarify:
The receipt of 3 duplicate ACKs will still prompt a fast retransmit of the presumed lost packet as per standard TCP behavior.
The tcp_reordering parameter allows the sender to delay retransmission of not-yet-SACKed packets when packets are arriving out of order, based on the assumption that increased out-of-order delivery is due to network conditions, not packet loss.
Therefore, while tcp_reordering does not change the “3 duplicate ACKs” behavior for fast retransmit, it does affect the sender's decision-making process when considering whether packets are lost or just reordered, which can result in modified retransmission patterns in cases of packet reordering.
User
If fast retransmit hardcoded parameter is 3, but I set net.ipv4.tcp_reordering as 4, will fast retransmit be triggered after 3 duplicated ACKs?
Assistant
Yes, even if you set net.ipv4.tcp_reordering to a value higher than the default such as 4 (or any other number for that matter), the fast retransmit mechanism will still be triggered after the receipt of 3 duplicate ACKs. These two settings address different concerns:
Fast retransmit is triggered by the classic "3 duplicate ACKs" rule, which is hard-coded into the TCP stack and is not modified by the net.ipv4.tcp_reordering setting.
net.ipv4.tcp_reordering specifies the number of out-of-order packets that the sender tolerates before deciding to perform a retransmission outside of the fast retransmit condition. This setting is used by the sender when making decisions about potentially lost packets in absence of duplicate ACKs or when considering delays in ACK receipt for new data.
So, essentially, fast retransmit works independently from the tcp_reordering setting. The reordering setting is about retransmission behavior outside of the fast retransmit scenario, such as when an ACK is delayed because of network reordering but not necessarily signaling that three subsequent segments have been received (which would result in duplicate ACKs).
User
How the sender can know that it can retransmit a packet based on tcp_reordering parameter? Can you show me an example that looks different from fast retransmit mechanism?
Assistant
User
Does tcp_reordering rely on ACKs like fast retransmit mechanism? If so and tcp_reordering is 4, is it possible that the fast retransmit mechanism will not be triggered but tcp_reordering mechanism will be triggered?
Assistant
Yes, tcp_reordering relies on ACKs to infer the state of the packets in the network, similar to the fast retransmit mechanism. However, tcp_reordering primarily influences the sender's behavior in cases where there is not enough duplicate ACK evidence to suggest that a fast retransmission should occur.
User
In the case of tcp_reordering, does the mechanism understand that ACK is missed after RTT timeout is passed?
Assistant
The tcp_reordering does not directly respond to missed ACKs based on the RTT timeout alone. Instead, it affects the sender's decision on when to retransmit a packet when there is a lack of ACKs for new data sent.
The TCP stack of the sender keeps track of when it expects ACKs for the data it has sent, which is influenced by the estimated round-trip time (RTT) to the receiver. If ACKs arrive in a timely manner but out of order, this can be attributed to network reordering, and tcp_reordering influences how the sender reacts to this situation.
In case ACKs are not received at all for a given segment, the sender relies on its retransmission timer, which is based on the measured RTT and its variance (often referred to as RTO, Retransmission Timeout). If the RTO expires and no acknowledgment has been received, the sender will presume the packet is lost and initiate a retransmission.
To summarize, tcp_reordering allows the sender to wait for a certain amount of out-of-order packets before deciding if a packet loss has actually occurred and a retransmission should take place. It does not specifically use RTT to determine a missed ACK but rather how out-of-order the stream of received ACKs may be. In cases where ACKs are not being received at all rather than just being reordered, the retransmission timer (based on RTT) will still control when the sender decides to retransmit the unacknowledged packet.
User
Is the mechanism that is based on tcp_reordering has a name? Answer shortly
Assistant
No, the mechanism based on tcp_reordering does not have a specific name; it is simply part of TCP's standard behavior for adaptively handling packet reordering in the network.
User
Will a packet retransmission be performed after RTT timeout of a single ACK that was not received regardless of tcp_reordering parameter?
Assistant
Yes, a packet retransmission will be performed after the Retransmission Timeout (RTO) expires for an expected acknowledgment that was not received, regardless of the tcp_reordering parameter. The RTO is based on the estimated Round-Trip Time (RTT) and its variability and is not directly influenced by the tcp_reordering setting.
The RTO mechanism is a fundamental part of the TCP protocol's reliability—ensuring that data is retransmitted if an acknowledgment has not been received within a calculated amount of time, suggesting a possible packet loss. This behavior is necessary to ensure data delivery even in the presence of packet loss or delays that exceed typical reordering.
User
Can I turn a fast retransmit mechanism off on Linux? Answer shortly
Assistant
No, you cannot turn off the fast retransmit mechanism in TCP on Linux as it is an integral part of the TCP congestion control algorithms implemented in the kernel. It is designed to quickly recover from packet losses without waiting for a timeout, and there's no standard toggle to disable this behavior.
User
If tcp_reordering coexist with fast retransmit, can these mechanisms resend packets in double number because they may by triggered independently but based on the same case?
Assistant
No, tcp_reordering and fast retransmit will not independently cause packets to be retransmitted twice for the same case of suspected packet loss. While they both aim to enhance TCP's ability to handle packet loss and reordering, they influence the protocol's behavior in a coordinated manner.
Fast retransmit responds to clear indications of packet loss (i.e., the reception of three duplicate ACKs), leading to the retransmission of the missing segment without waiting for the RTO to expire.
The tcp_reordering setting comes into play when there isn't a clear indication of loss from duplicate ACKs; instead, it governs the sender's tolerance for out-of-order packets that could be caused by network reordering and not loss.
Both mechanisms modify the sender's loss detection and recovery strategy. Fast retransmit has precedence; if it is triggered, there is no need for tcp_reordering to trigger a retransmission for the same event. Moreover, if tcp_reordering determines a need for retransmission due to excessive reordering, TCP's internal mechanisms ensure that each segment is retransmitted only once unless new evidence suggests it was lost again after the retransmission.
User
Is it safe and efficient to set tcp_reordering to a very high number that is unlikely to be reached? I don't see any reason of tcp_reordering mechanism to work if SACK is enabled, fast retransmit is by default and any single packet loss is retransmitted after its ack delay in RTT.
Assistant
Setting tcp_reordering to a very high value can be risky and counterproductive. While it may seem that with mechanisms like Selective Acknowledgments (SACK) and fast retransmit, tcp_reordering becomes less relevant, this setting still plays an important role in certain network conditions.
A very high tcp_reordering would mean the sender allows for a large number of packets to be received out of order before suspecting a packet loss. This could lead to the following issues:
User
Are you sure that you are correct?
Assistant
My previous explanations reflect general TCP behavior in terms of congestion control mechanisms like fast retransmit and the role of the tcp_reordering setting. However, the intricacies and interactions of these mechanisms can be quite complex, and their implementations may vary slightly across different operating systems and kernel versions.
As of my knowledge cutoff in 2023, in Linux TCP:
Fast Retransmit is indeed triggered by the receipt of three duplicate ACKs.
SACK (Selective Acknowledgment) works in conjunction with Fast Retransmit to improve the recovery process where multiple packets have been lost.
The tcp_reordering setting plays a role in how aggressively the TCP stack will retransmit another packet (outside of Fast Retransmit), which it believes might have been lost due to reordering issues.
User
Show a good concise example when tcp_reordering that's 3 play a role independent of fast retransmit.
Assistant
The tcp_reordering setting, when set to its typical default value of 3, affects how the sender interprets missing ACKs and determines when to retransmit a segment not related to fast retransmit, which is triggered by duplicate ACKs. Here's a concise example scenario independent of fast retransmit:
Sender transmits packets with the sequence numbers: Packet1, Packet2, Packet3, Packet4, Packet5, Packet6...
User
Good example and explanation. Show a good concise example when tcp_reordering that’s 4 play a role independent of fast retransmit.
Assistant
Consider a network with occasional reordering where tcp_reordering is set to 4, meaning the sender will allow for 4 segments to be out of order before suspecting a segment is lost. Here is how tcp_reordering might play a role, independent of fast retransmit:
The sender sends segments with sequence numbers: Seg1, Seg2, Seg3, Seg4, Seg5, Seg6, Seg7, ...
The receiver receives segments in the following order: , , , , , . It sends ACKs for , and then generates duplicate ACKs for upon receipt of and .
User
If Seg6 and Seg7 will not arrive by the time but Seg8 will arrive in the same case, will Seg6 and Seg7 be retransmied both due to the setting of tcp_reordering?
Assistant
In the scenario where tcp_reordering is set to 4 and Seg6 and Seg7 do not arrive by the expected time, but Seg8 does, the sender will evaluate the situation based on the sequence of received ACKs:
The sender has sent Seg1 through Seg8.
The receiver receives , , , , , in that order, missing and .
User
I meant that ACKs of Seg6 and Seg7 will not arrive to the sender before Seg8 will arrive in the case you show before. Will Seg6 and Seg7 be retransmied both due to the setting of tcp_reordering?
Assistant
In the case I described before, if the ACKs for Seg6 and Seg7 do not arrive before Seg8 does, then TCP behavior depends on how ACKs for (and potentially further segments) are sent by the receiver and received by the sender.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
The net.ipv4.tcp_reordering parameter, on the other hand, affects how aggressively TCP will retransmit when it believes packets are merely reordered rather than lost. A higher value for tcp_reordering allows TCP to be more tolerant of packet reordering, which can be beneficial in networks where reordering is common and does not necessarily indicate congestion or packet loss.
For example, to change this parameter, you could use the sysctl command like this:
sysctl -w net.ipv4.tcp_reordering=<new-value>
Please note that you should be careful when tuning these parameters, as they can affect the performance and reliability of TCP connections. The default settings are often good for most typical network scenarios.
Even though fast retransmit is enabled by default in TCP implementations, the tcp_reordering parameter is still relevant. Fast retransmit works on the principle of detecting packet loss early by using duplicate acknowledgments (ACKs) as a hint. However, net.ipv4.tcp_reordering caters for a different issue: it's about tolerating packet reordering in the network, which does not necessarily imply loss.
In some networks, packets might arrive out of order for a variety of reasons, such as route fluctuations or differential treatment of packets due to varying service levels. When this reordering is mild, it's beneficial not to retransmit too soon so as not to contribute unnecessary load to the network, which can actually exacerbate congestion if present.
Here's a simplified example of how tcp_reordering works:
Imagine TCP has sent packets 1, 2, 3, and 4.
Now suppose packet 2 takes a bit longer to travel, and the receiver first gets packets 1, 3, and 4. It cannot acknowledge packet 3 and 4 because packet 2 has not been received, so it sends duplicate ACKs for packet 1.
If the sender receives three duplicate ACKs for packet 1, it indicates that at least three packets have been received after packet 1 — that would normally trigger a fast retransmit for packet 2.
However, if the sender's net.ipv4.tcp_reordering is set to a value higher than 3, it can wait for more out-of-order packets before deciding that packet 2 is lost and retransmitting it. It does this under the assumption that packet 2 is delayed rather than lost.
By setting a tcp_reordering value that reflects the level of reordering present in the network, the sender can avoid unnecessary retransmissions, which would waste bandwidth and processing resources. But setting it too high could result in longer delays in packet recovery when actual loss occurs. The default value in most Linux distributions is 3, reflecting the DupACK threshold for fast retransmit, and is generally a reasonable default for a wide range of network conditions.
Do note that changes to TCP settings should be tested and evaluated in a controlled manner, as they can have broad effects on network performance and reliability.
To summarize, even if you set net.ipv4.tcp_reordering higher than 3, the fast retransmit mechanism will still kick in after 3 duplicate ACKs, which is meant to quickly recover from what is presumed to be a single lost segment.
The net.ipv4.tcp_reordering parameter informs the TCP congestion control algorithm about how many out-of-order packets to expect as a result of network conditions rather than actual packet loss. When the number of out-of-order packets exceeds the tcp_reordering threshold, the sender may determine that a packet has likely been lost and initiate a retransmission even without the three duplicate ACKs required by the fast retransmit mechanism.
Here's an example to help illustrate:
Let's consider a situation where a sender is transmitting packets and net.ipv4.tcp_reordering is set to 4:
The sender transmits packets with sequence numbers 1, 2, 3, 4, 5, and 6.
Due to network reordering, the receiver gets packets in the following order: 1, 3, 4, 2, 5, 6.
The receiver sends an ACK for packet 1, because packets are expected to be processed in order.
For packets 3 and 4, it cannot acknowledge them because packet 2 is missing, so it sends duplicate ACKs for packet 1.
Finally, packet 2 arrives out of order. The receiver now sends ACK for packet 4 because it can reassemble up to packet 4 in the correct order.
Now, let's say the network has a high reordering rate, and packet 5 is delayed much longer than expected. The sender sees ACKs for packets 1 through 4 and no additional ACKs for subsequent packets, despite having sent packets 5 and 6.
With the net.ipv4.tcp_reordering parameter set to 4, the sender's TCP stack will be willing to wait a little longer and not instantly assume that packet 5 is lost after a single ACK for packet 4, because it is set to anticipate the possibility that up to 4 packets might be reordered. If packet 5's ACK doesn't arrive by the time 4 additional packets (beyond the last sequentially acknowledged packet) should have been acknowledged by now, the sender will consider packet 5 as lost and initiate a retransmission even without seeing three duplicate ACKs.
In absence of the net.ipv4.tcp_reordering setting, a sender might retransmit packet 5 earlier, not taking into account the network's reordering characteristics, and this could lead to unnecessary retransmissions. So in this case, tcp_reordering helps to adapt the sender's behavior to better suit the observed network behavior and potentially avoid unnecessary retransmissions.
In summary, rather than acting on instant feedback like the fast retransmit mechanism, the tcp_reordering parameter lets the sender be more tolerant of delays in the network, allowing for better efficiency when packet reordering, rather than loss, is common.
When tcp_reordering is set to 4, it means the sender will wait for evidence that 4 or more packets beyond an expected acknowledgment point have been received before assuming a packet in the stream has been dropped due to reordering.
As for your second question, the tcp_reordering mechanism affects the retransmission decision differently from the fast retransmit mechanism; they are distinct aspects of TCP's error recovery functions.
Typically, the scenario you described—where fast retransmit is not triggered but the tcp_reordering based mechanism is triggered—is unlikely. Fast retransmit will usually trigger first because it requires three duplicate ACKs, which indicates that subsequent packets have arrived while the expected one has not. This is an immediate and strong indication of packet loss.
In contrast, tcp_reordering modifies the sender's response to a lack of any ACKs, rather than duplicate ACKs. If ACKs stop arriving entirely, or if ACKs for only earlier packets continue to arrive, a higher tcp_reordering setting allows TCP to wait longer before deciding a packet has been lost, based on the assumption that out-of-order delivery is due to network reordering.
If the network delivers packets in order, and without any loss, neither mechanism should trigger. However, if there is loss, typically fast retransmit will trigger before the sender must rely on the tcp_reordering setting to decide to retransmit. The tcp_reordering setting becomes relevant in situations where there isn't enough information from ACKs for the fast retransmit mechanism to act, such as when ACKs are sporadically delayed or packets are reordered to a degree.
In practice, these settings complement each other to handle different network behaviors — fast retransmit handles the case of clear packet loss indicated by duplicate ACKs, while tcp_reordering tailors retransmission behavior to networks with varying degrees of reordering.
TCP's congestion control and loss recovery algorithms are designed to be self-consistent, avoiding duplicate retransmissions for the same packet loss event. The kernel's TCP stack manages this coordination to ensure efficient and reliable data transmission.
Delayed Retransmissions: It could significantly delay retransmissions in the case of actual packet loss, leading to increased latency in data delivery.
Resource Wastage: If a packet is lost, the sender might continue to send a stream of new packets (up to the window limit) that cannot be fully utilized by the receiver until the lost packet is retransmitted and received.
Inefficient Recovery: Other mechanisms like SACK and fast retransmit rely on the principle of early detection and recovery of lost packets. A very high tcp_reordering value can diminish their effectiveness, as it delays the early detection of a lost packet.
The tcp_reordering mechanism works alongside SACK and fast retransmit by providing a tolerance level for packet reordering. Although SACK helps to efficiently recover from multiple losses in a single window of data, and fast retransmit helps quickly retransmit lost packets, neither of these mechanisms negates the possibility of legitimate packet reordering in the network, which is what tcp_reordering addresses.
For efficient network performance, tcp_reordering should be set to a value that reflects the amount of reordering expected in the network but not so high that it undermines the effectiveness of loss detection and recovery. The default value is typically well-tuned for most network conditions and should be altered with caution and under careful monitoring to ensure it does not degrade TCP performance. It's recommended to only adjust this value if you have clear evidence that your network conditions are causing packet reordering that negatively impacts performance.
The tcp_reordering setting should generally be left at its default value unless you have a specific reason to adjust it and possess a deep understanding of the TCP stack's operation. A very high tcp_reordering threshold could indeed lead to inefficiencies in loss detection and unnecessary delays in the recovery of lost packets, making it not advisable in most circumstances.
If technologies and algorithms have been updated since my knowledge cutoff, or if there are nuances in specific implementations that diverge from standard TCP operation, then there might be details that would need further clarification in light of such changes. It’s also possible that Linux kernel developers have made changes to these algorithms to adapt to modern network conditions or to introduce new features. Therefore, it's always a good practice to consult the latest Linux kernel documentation or source code for the most accurate and up-to-date information.
The receiver receives Packet1, Packet3, Packet4, Packet2, Packet5, Packet6 in that order due to packet reordering in the network. The receiver sends ACKs accordingly.
After sending Packet1, the sender receives an ACK for Packet1, and then subsequently receives out-of-order ACKs: first for Packet3, then Packet4. This is the point at which fast retransmit is not yet triggered, as there haven't been 3 duplicate ACKs for the same packet.
Before receiving three duplicate ACKs indicative of a lost packet, the sender receives an ACK for Packet2, resolving the out-of-order situation. If tcp_reordering were lower than 3, the sender might have unnecessarily retransmitted Packet2 by now.
In this example, the role of tcp_reordering is to prevent premature retransmissions when ACKs are merely out of order and not indicative of packet loss. It allows the sender to wait for a small amount of out-of-order ACKs without immediately initiating a retransmission, thereby adapting to networks where slight reordering is common. This helps avoid unnecessary retransmissions which can hurt performance, especially in cases where the reordering is brief and self-resolving, as seen in the journey of Packet2.
So tcp_reordering addresses a scenario independent of fast retransmit where it influences the sender's behavior in response to ACKs that do not indicate loss via the duplicate ACK mechanism but may reflect network reordering instead.
Seg1
Seg3
Seg4
Seg6
Seg2
Seg5
Seg1
Seg1
Seg3
Seg4
Sender receives the ACK for Seg1 and then the two duplicate ACKs for Seg1. Fast retransmit is not triggered yet since it requires three duplicate ACKs for the same segment.
Before a third duplicate ACK arrives, the sender receives an ACK for Seg2. Now the sender knows that segments up to Seg2 have been received. Although there are gaps (Seg5 and Seg6), the sender tolerates the reordering because it hasn't exceeded the tcp_reordering threshold.
Further ACKs arrive for Seg5 and subsequent segments before any timer expires. The sender then knows that Seg5 has been received; no fast retransmit is necessary.
In this case, the sender uses the tcp_reordering setting to allow for more tolerance in the order of received ACKs, operating under the assumption that, given the network conditions, up to 4 segments might arrive out of order. If an ACK for Seg5 had not arrived by the time an ACK was due for Seg7, the sender would have considered Seg5 lost due to exceeding the tcp_reordering limit and would retransmit without necessarily having seen three duplicate ACKs. This threshold helps to differentiate between usual network reordering and actual segment losses, aiming to prevent premature or unnecessary segment retransmissions.
Seg1
Seg3
Seg4
Seg2
Seg5
Seg8
Seg6
Seg7
The receiver sends ACKs for Seg1, then duplicate ACKs upon receiving Seg3 and Seg4, and eventually an ACK for Seg5 once Seg2 is received.
When Seg8 is received, the receiver will send an ACK for Seg5 (assuming cumulative ACKs), since it cannot acknowledge Seg6 and Seg7 which it has not yet received.
At this point, the sender has a gap for the unacknowledged Seg6 and Seg7. The tcp_reordering setting tells the sender to wait until it has evidence that a certain number of segments after the missing ones have been received before it should consider retransmission due to reordering expectations.
With tcp_reordering set to 4, once the receiver acknowledges Seg8 (4 segments after Seg5, the last in-sequence segment ACKed), the sender decides that Seg6 and Seg7 are likely lost due to their absence in the ACK sequence, assuming that some out-of-order delivery is expected but not to the extent that legitimate ACKs for 4 subsequent segments do not arrive.
As a result, the sender concludes that Seg6 and Seg7 are lost and triggers retransmission for both. This retransmission decision would be made without fast retransmit, since that mechanism strictly depends on duplicate ACKs, which might not occur if later segments are not being received or if SACK is effectively preventing duplicate ACKs by acknowledging non-contiguous blocks of data.
The coordination of the retransmission mechanism ensures that, in this scenario, Seg6 and Seg7 would only be retransmitted if their respective ACKs are not received shortly after the ACK for Seg8, thereby confirming a true gap that the sender interprets as lost segments rather than simple reordering.
Seg8
Here’s what would happen based on standard TCP behavior:
The sender transmits Seg1 through Seg8.
The receiver receives Seg1, Seg3, Seg4, Seg2, Seg5, and then Seg8, missing Seg6 and Seg7.
The receiver sends an ACK for Seg5 because Seg5 is the highest in-sequence segment it has received. It won’t send ACKs for Seg6, Seg7, or Seg8 since Seg6 and Seg7 are missing.
The sender receives an ACK for Seg5 and no further ACKs for Seg6 or Seg7.
At this point, here’s the key consideration:
Since selective acknowledgments (SACK) are in use, the receiver would use SACK blocks to indicate that Seg8 (and any subsequent segments) has been received, despite the gaps Seg6 and Seg7.
If the receiver is using cumulative ACKs and does not support SACK, it cannot acknowledge Seg8 without first acknowledging Seg6 and Seg7.
Under the assumption that SACK is enabled and the receiver indeed sends a SACK for Seg8, the sender knows that Seg8 has arrived but Seg6 and Seg7 have not. If the sender's retransmission timer for Seg6 (and potentially Seg7) expires without any corresponding ACK or SACK, then the missing segments are considered lost and will be retransmitted.
With a tcp_reordering of 4, the sender will be even more patient before retransmitting. The logic is similar - the sender is expecting a certain level of reordering and will wait to see if more ACKs or SACKs come in to clarify the situation before triggering a retransmission. However, the lack of ACK for Seg6 and Seg7 and the arrival of SACK for Seg8 indicate loss, so the segments are likely to be retransmitted due to expiry of the retransmission timers for those segments, not because of tcp_reordering.
So in this scenario, if Seg8 is acknowledged (either through a higher cumulative ACK or a SACK), tcp_reordering does not play a part in the decision to retransmit Seg6 and Seg7; rather, the retransmission timers for those segments would. If anything, a higher tcp_reordering value would delay the retransmissions if the timers are adjusted based on that setting.