(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <font size=5> Document migrated. An updated [http://wanos.co/docs/docs/wanos-admin-guide/configuration/packet-loss-recovery/ Packet Loss Recovery] can be found in the [http://wanos.co/docs Wanos Documentation site]. </font> | ||
+ | <font color=#dddddd> | ||
+ | |||
http://wanos.co/wan-optimization/wp-content/uploads/2015/03/packet-loss-recovery-performance-plr.png | http://wanos.co/wan-optimization/wp-content/uploads/2015/03/packet-loss-recovery-performance-plr.png | ||
= Packet Loss Recovery = | = Packet Loss Recovery = | ||
− | Modern TCP stacks have become more efficient at dealing with latency by adding TCP Window Scaling and Selective Acknowledgements. However TCP is still vulnerable to packet loss and this has a drastic impact on network performance. | + | Modern TCP stacks have become more efficient at dealing with latency by adding TCP Window Scaling and Selective Acknowledgements. However TCP is still vulnerable to packet loss and this has a drastic impact on network performance. Where WAN performance is limited by the negative effects of packet loss and retransmissions, Packet Loss Recovery can be configured. |
+ | |||
== Why is Packet Loss important? == | == Why is Packet Loss important? == | ||
Line 14: | Line 18: | ||
== Packet Loss Recovery == | == Packet Loss Recovery == | ||
− | To counter the negative effects of loss on TCP throughput, Wanos can be configured to provide packet loss recovery to assist in TCP Acceleration. Below are CIFS copy speed stats over various loss and delay profiles. The first control test indicates the standard TCP throughput under these conditions. The second test is with Wanos Packet Loss Recovery enabled and compression and deduplication disabled. | + | To counter the negative effects of loss on TCP throughput, Wanos can be configured to provide packet loss recovery to assist in '''TCP Acceleration'''. Below are CIFS copy speed stats over various loss and delay profiles. The first control test indicates the standard TCP throughput under these conditions. The second test is with Wanos Packet Loss Recovery enabled and compression and deduplication disabled. |
http://wanos.co/wan-optimization/wp-content/uploads/2015/03/packet-loss-recovery-performance-plr.png | http://wanos.co/wan-optimization/wp-content/uploads/2015/03/packet-loss-recovery-performance-plr.png | ||
Line 27: | Line 31: | ||
[https://www.youtube.com/watch?v=SfSUgvngZjc&feature=youtu.be Wanos Wan Accelerator - TCP Acceleration] | [https://www.youtube.com/watch?v=SfSUgvngZjc&feature=youtu.be Wanos Wan Accelerator - TCP Acceleration] | ||
+ | |||
+ | |||
+ | == How to enable Packet Loss Recovery == | ||
+ | |||
+ | Assuming the IP addressing scheme is setup similar to this Hyper-V guide, http://wanos.co/misc/wiki/documents/hyper-v/wanos_howto_hyper-v.html, the following steps can be used: | ||
+ | |||
+ | '''For Wanos-HQ''' <br /> | ||
+ | <li>Login to https://192.168.1.200 | ||
+ | <li>Go to Configure > Multisite and create a new rule: | ||
+ | <li>Remote Site Subnet: 192.168.1.0/24 | ||
+ | <li>Peer IP: 192.168.1.201 | ||
+ | <li>Description: Wanos-Branch | ||
+ | |||
+ | <br /> | ||
+ | http://wanos.co/misc/wiki/assets/plrwiki/multisite_hq1.png <br /> | ||
+ | http://wanos.co/misc/wiki/assets/plrwiki/plr_on_hqsite1.png <br /> | ||
+ | Screenshot | ||
+ | |||
+ | <br /><br /> | ||
+ | |||
+ | '''For Wanos-Branch''' <br /><br /> | ||
+ | <li>Login to https://192.168.1.201 | ||
+ | <li>Go to Configure > Multisite and create a new rule: | ||
+ | <li>Remote Site Subnet: 192.168.1.0/24 | ||
+ | <li>Peer IP: 192.168.1.200 | ||
+ | <li>Description: Wanos-HQ | ||
+ | |||
+ | <br /> | ||
+ | http://wanos.co/misc/wiki/assets/plrwiki/multisite_branch1.png <br /> | ||
+ | http://wanos.co/misc/wiki/assets/plrwiki/plr_on_branchsite1.png <br /> | ||
+ | |||
+ | |||
+ | <br /> | ||
+ | |||
+ | == Caveat == | ||
+ | |||
+ | |||
+ | The IP address of the remote Wanos devices needs to be in the same MultiSite site group. To ensure this is the case, the remote ip can be added under MultiSite. | ||
+ | http://wanos.co/wan-optimization/wp-content/uploads/2015/10/multisite-remote-ip.png | ||
+ | |||
+ | |||
+ | |||
+ | == Troubleshooting == | ||
+ | |||
+ | '''Very specific traffic policies''' are required on each end for the remote site. Bypass any subnets not being optimized e.g. un-optimized remote sites and WAN devices. Wanos will automatically disable PLR per peer if it detects that packets cannot be recovered e.g. when a packet is destined to a WAN router, it never makes it to the remote Wanos device. Hence its best to have specific source-destination policies. | ||
+ | |||
+ | The default '''gateway needs to be on the wan0 side''', else false positive peer detected on lan0 messages could be logged. | ||
+ | |||
+ | Expected Log sequence:<br /> | ||
+ | rsp_peer0 - State set to CLOSED<br /> | ||
+ | rsp_peer0 - State set to SYN_SENT<br /> | ||
+ | rsp_peer0 - State set to SYN_RCVD<br /> | ||
+ | rsp_peer0 - State set to OPEN<br /> | ||
+ | |||
+ | </font> |
Latest revision as of 18:45, 10 February 2017
Document migrated. An updated Packet Loss Recovery can be found in the Wanos Documentation site.
Contents
Packet Loss Recovery
Modern TCP stacks have become more efficient at dealing with latency by adding TCP Window Scaling and Selective Acknowledgements. However TCP is still vulnerable to packet loss and this has a drastic impact on network performance. Where WAN performance is limited by the negative effects of packet loss and retransmissions, Packet Loss Recovery can be configured.
Why is Packet Loss important?
- Loss has a severe impact on TCP performance: For example TCP throughput over a 100 Mbps link is limited to 1 Mbps at 80 ms and 2% loss.
- More businesses are connecting their offices via low cost VPN links. These typically have 1% loss rate, which is 10 times higher than MPLS links.
- SLA’s provide a false sense of security. A 3+% loss for an hour a day means providers can still meet a very low monthly average loss rate SLA.
- Packet Loss is higher in emerging and developing countries. On average 2% or more.
Packet Loss Recovery
To counter the negative effects of loss on TCP throughput, Wanos can be configured to provide packet loss recovery to assist in TCP Acceleration. Below are CIFS copy speed stats over various loss and delay profiles. The first control test indicates the standard TCP throughput under these conditions. The second test is with Wanos Packet Loss Recovery enabled and compression and deduplication disabled.
Packet Loss Recovery Performance
Packet Loss Recovery Demo
In the illustration below compression and deduplication has been disabled. The link has a 50ms latency and 5% packet loss rate. TCP throughput on this link is below 1 Mbps. When Packet Loss Recovery is enabled, TCP Acceleration improves throughput up to 10x.
Wanos Wan Accelerator - TCP Acceleration
How to enable Packet Loss Recovery
Assuming the IP addressing scheme is setup similar to this Hyper-V guide, http://wanos.co/misc/wiki/documents/hyper-v/wanos_howto_hyper-v.html, the following steps can be used:
For Wanos-HQ
Screenshot
For Wanos-Branch
Caveat
The IP address of the remote Wanos devices needs to be in the same MultiSite site group. To ensure this is the case, the remote ip can be added under MultiSite.
Troubleshooting
Very specific traffic policies are required on each end for the remote site. Bypass any subnets not being optimized e.g. un-optimized remote sites and WAN devices. Wanos will automatically disable PLR per peer if it detects that packets cannot be recovered e.g. when a packet is destined to a WAN router, it never makes it to the remote Wanos device. Hence its best to have specific source-destination policies.
The default gateway needs to be on the wan0 side, else false positive peer detected on lan0 messages could be logged.
Expected Log sequence:
rsp_peer0 - State set to CLOSED
rsp_peer0 - State set to SYN_SENT
rsp_peer0 - State set to SYN_RCVD
rsp_peer0 - State set to OPEN