Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

May 27, 2010 09:59 AM

Database Availability Group Compression & Encryption

Windows IT Pro
InstantDoc ID #125321
Rating: (7)

Microsoft Exchange Server 2010's database availability groups (DAGs) support encryption and compression of the email data they pass around as part of the seeding and replication process. How do these capabilities work?

The short answer is, "It's a Windows thing." Windows has long included a set of base classes for encryption and authentication. (If you're old enough, you might remember that the full-strength version of Windows encryption couldn't be exported to some countries.) Rather than re-invent the wheel, Exchange uses the encryption and signing methods provided by Windows whenever possible. In the case of SSL/TLS, Exchange can do much of its own certificate management—including generating self-signed certificates—but all of the actual crypto is done by Windows.

Exchange also uses Windows' authentication methods. Windows authentication services are provided by modules known as Security Support Providers (SSP). These SSPs provide interfaces that let clients encrypt, decrypt, sign, and verify data by using a particular set of security protocols. There are SSPs for Kerberos and NTLM. For DAG encryption, Exchange uses the Kerberos SSP. After two applications or endpoints have completed a handshake process to let them come up with a shared encryption key, they can both make calls to the SSPs on their local machines to process the data blocks.

Exchange always tries to pick the strongest possible encryption algorithm from the list of those supported by the host OS. For Windows Server 2008 and Server 2008 R2, that means the 256-bit version of the US Federal Advanced Encryption Standard (AES), ideally with Secure Hash Algorithm-1 (SHA-1) used as a Hashed Message Authentication Code (HMAC). On the compression front, DAGs use the familiar LZ77 algorithm, which is used to compress GIF files and in tons of other places. Microsoft calls its implementation "XPRESS," for some reason that I haven't been able to figure out; Microsoft uses this implementation in a few other products besides Exchange.

Outlook uses many of these same mechanisms; for example, MAPI RPC compression between Exchange and Outlook uses XPRESS, and MAPI RPC encryption can use the Kerberos SSP (or the NTLM SSP, which isn't available for DAGs.) That's no big surprise, given that these capabilities are built into Windows. Why reinvent the wheel?

To control these options in a live DAG, Set-DatabaseAvailabilityGroup is your friend. By default, newly created DAGs use encryption only when replicating across different subnets, with no encryption used during seeding operations. You can change this setting with the -NetworkEncryption switch; just set it to Enabled instead of InterSubnetOnly. In like manner, compression is normally enabled only for cross-subnet replication, but the -NetworkCompression switch lets you fix that right up.

Note that these properties are associated with the DAG itself, not the underlying DAG network. For that reason, you can set these properties only when the DAG (and its underlying physical nodes) are up—the settings are node-level properties.

Alert readers will note that I haven't made any mention of using IPsec, one of my favorite technologies, to encrypt communications between DAG members. What about using IPsec with DAGs? That's a topic for another UPDATE!

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.