SCR Replication Slow
Hi, I have 1 Exchange Server 2007 SP2 R4 running on Windows 2003 R2 SP2 + patches on the USA West Coast, and the same server in the East Coast. My two sites are connected with a 2xT1s. I've implemented SCR, everything works but the replication is extremely slow. I have read a post where another IT guys had a problem of bandwidth, is replication was using 100% of its bandwidth (I would love to have this issue).My SNMP monitoring shows plenty of available bandwidth on my 2 sites, but the replication is not using it. What protocol is used for Exchange replication ? Any clue ? it seems to be a network issue, but I do not know where to start. Thank you
June 7th, 2010 11:15pm

Optimizing Windows 2003 Networking for SCR (http://technet.microsoft.com/en-us/library/cc164368(EXCHG.80).aspx) When using SCR on Windows Server 2003, we recommend that you optimize your Windows Server TCP/IP settings for your specific network link's speed and latency. Specifically, you may need to adjust the Transmission Control Protocol (TCP) receive window size and Request for Comments (RFC) 1323 window scaling options on an SCR source computer and its SCR target computers. In addition, you may find it beneficial to configure address resolution protocol (ARP) cache expiration settings and to disable the advanced TCP/IP options for the Windows Server 2003 Scalable Networking Pack (SNP) in the Windows registry. In addition to these recommendations, if your environment includes the use of the IP Security (IPsec) protocol, we recommend that you configure IPsec consistently throughout your SCR environment. Either the SCR source and all of its SCR targets should use IPsec, or neither the SCR source or any of its targets should use IPSec. If only one node is configured to use IPsec, the IPsec Security Association process can cause packet delay or packet loss. TCP Receive Windows and RFC 1323 Scaling Options The TCP receive window size is the maximum amount of data (in bytes) that can be received at one time on a connection. The sending computer can send only that maximum amount of data before waiting for an acknowledgment and a TCP window update from the receiving computer. It may be beneficial to tune this setting to increase throughput during log shipping. To optimize the TCP throughput, the sending computer should transmit enough packets to fill the pipe between the sender and receiver. The capacity of the network pipe is based on the pipe’s bandwidth and its latency (round-trip time). The higher the latency, the greater capacity you have, because there is more time to send data between acknowledgements. By increasing the TCP window size, the system can take advantage of the time between acknowledgements by sending more data. The TCP/IP standard allows for a receive window up to 65,535 octets in size, which is the maximum value that can be specified in the 16-bit TCP window size field. To improve performance on high-bandwidth, high-delay networks, Windows Server TCP/IP supports the ability to advertise receive window sizes larger than 65,535 octets, by using scalable windows as described in RFC 1323, TCP Extensions for High Performance. When using window scaling, hosts in a conversation can negotiate a window size that allows multiple large packets, such as those often used in file transfer protocols, to be pending in the receiver's buffers. RFC 1323 details a method for supporting larger receive window sizes by allowing TCP to negotiate a scaling factor for the window size at connection establishment. You can optimize the TCP receive window size and RFC 1323 window scaling options on a computer running Windows Server 2003 by modifying two registry entries: TCPWindowSize and TCP1323Opts. For more information about these features, see Microsoft Knowledge Base article 224829, Description of Windows 2000 and Windows Server 2003 TCP Features. We recommend that you use version 13 or later of the Exchange 2007 Mailbox Server Role Storage Requirements Calculator to determine the optimal settings for these registry entries based on your network link and network latency. To download the calculator, see Exchange 2007 Mailbox Server Role Storage Requirements Calculator from the Exchange Team Blog. The Storage Calculator also includes step-by-step instructions for entering the registry values on your servers. Note: The content of each blog and its URL are subject to change without notice. The content within each blog is provided "AS IS" with no warranties, and confers no rights. Use of included script samples or code is subject to the terms specified in the Microsoft Terms of Use. ARP Cache Expiration The ARP cache is an in-memory table that maps IP addresses to media access control (MAC) addresses. Entries in the ARP cache are referenced each time that an outbound packet is sent to the IP address in the entry. By default, Windows Server 2003 adjusts the size of the ARP cache automatically to meet the needs of the system. If an entry is not used by any outgoing datagram for two minutes, the entry is removed from the ARP cache. Entries that are being referenced are removed from the ARP cache after ten minutes. Entries added manually are not removed from the cache automatically. Internal testing by the Microsoft internal IT department showed that the default ARP cache expiration settings resulted in packet loss in CCR and SCR environments. When packet loss occurs, the sending server must transmit the lost data again. In a continuous replication environment, it is important for log files to be copied to the passive node as quickly as possible, and transmitting data again due to lost packets can adversely affect log shipping throughput. You can modify the ArpCacheMinReferencedLife TCP/IP parameter in the Windows registry to control ARP cache expiration. This parameter determines how long referenced entries must remain in the ARP cache table before they can be deleted. Internally, Microsoft found that the optimal setting for the ArpCacheMinReferencedLife registry value was to use the same value being used for ARP cache expiration by the routers on the network, which was 4 hours. Before modifying the value for ArpCacheMinReferencedLife in your own environment, we recommend using Microsoft Network Monitor or a similar capture tool to collect and analyze the network traffic on the network interface being used to copy logs from the active node to the passive node. For detailed steps to modify the ArpCacheMinReferencedLife registry value, see Appendix A: TCP/IP Configuration Parameters. Scalable Networking Pack Advanced TCP/IP Features The Windows Server 2003 Scalable Networking Pack (SNP) is a separate update for Windows Server 2003 that contains stateful and stateless offloads to accelerate the Windows network stack. The update includes TCP Chimney offload, Receive Side Scaling (RSS), and Network Direct Memory Access (NetDMA). TCP Chimney is a stateful offload. TCP Chimney offload enables TCP/IP processing to be offloaded to network adapters that can handle the TCP/IP processing in hardware. RSS and NetDMA are stateless offloads. Where multiple CPUs reside in a single computer, the Windows networking stack limits "receive" protocol processing to a single CPU. RSS resolves this issue by enabling the packets that are received from a network adapter to be balanced across multiple CPUs. NetDMA allows for a Direct Memory Access (DMA) engine on the Peripheral Component Interconnect (PCI) bus. The TCP/IP stack can use the DMA engine to copy data instead of interrupting the CPU to handle the copy operation. A related component, TCPA, is another offload function where a hardware DMA engine on the PCI bus can be used to assist receive processing. While these features can provide network performance benefits in some environments, there are some scenarios in which they cannot be used because of the use of other technologies. For example, TCP Chimney offload and NetDMA cannot be used if any of the following technologies are used: Windows Firewall Internet Protocol security (IPsec) Internet Protocol Network Address Translation (IPNAT) Third-party firewalls NDIS 5.1 intermediate drivers In addition, there are known issues in some environments, including environments with Microsoft Exchange, in which network performance can decrease when using these features. For details on some of these issues, see the Exchange Team blog post, Windows 2003 Scalable Networking pack and its possible effects on Exchange. Note: The content of each blog and its URL are subject to change without notice. The content within each blog is provided "AS IS" with no warranties, and confers no rights. Use of included script samples or code is subject to the terms specified in the Microsoft Terms of Use. We recommend that you disable all of the features in SCR environments that run on the Windows Server 2003 operating system for both the operating system and each network interface card (NIC) in the system. You can disable these features as follows: To disable the TCP Chimney offload feature, open a command prompt and run the following command: Netsh int ip set chimney DISABLED To disable the other SNP features, you can set the values for the EnableRSS and EnableTCPA TCP/IP registry parameters to 0 in the Windows registry. For detailed steps to do this, see Knowledge Base article 936594, You may experience network-related problems after you install Windows Server 2003 SP2 or the Scalable Networking Pack on a Windows Server 2003-based computer. To disable these features on the NIC(s) in the system, refer to the instructions that came with the NIC or consult with your hardware vendor. For more information about the SNP, see Knowledge Base article 912222, The Microsoft Windows Server 2003 Scalable Networking Pack release, and the Scalable Networking Web site.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 3:44am

Definitely an interesting post, I'll give it a try Anyway, should I modify these TCP settings on my source or destination, or both ?
June 8th, 2010 6:36am

Both
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2010 9:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics