加速網路與 Azure 虛擬機器災害復原Accelerated Networking with Azure virtual machine disaster recovery

加速網路可以對 VM 啟用單一根目錄 I/O 虛擬化 (SR-IOV),大幅提升其網路效能。Accelerated Networking enables single root I/O virtualization (SR-IOV) to a VM, greatly improving its networking performance. 這個高效能路徑會略過資料路徑的主機,進而減少延遲、抖動和 CPU 使用率,供支援的 VM 類型中最嚴苛的網路工作負載使用。This high-performance path bypasses the host from the datapath, reducing latency, jitter, and CPU utilization, for use with the most demanding network workloads on supported VM types. 下圖顯示兩部 VM 之間的通訊,一部具備加速網路而另一步沒有︰The following picture shows communication between two VMs with and without accelerated networking:

比較

Azure Site Recovery 可讓您針對容錯移轉至不同 Azure 區域的 Azure 虛擬機器,利用加速網路的優點。Azure Site Recovery enables you to utilize the benefits of Accelerated Networking, for Azure virtual machines that are failed over to a different Azure region. 本文說明如何針對使用 Azure Site Recovery 所複寫的 Azure 虛擬機器,啟用加速網路。This article describes how you can enable Accelerated Networking for Azure virtual machines replicated with Azure Site Recovery.

必要條件Prerequisites

開始之前,請確定您了解:Before you begin, ensure that you understand:

使用 Windows VM 的加速網路Accelerated Networking with Windows VMs

Azure Site Recovery 只有在來源虛擬機器已啟用加速網路時,才支援針對已複寫虛擬機器啟用加速網路。Azure Site Recovery supports enabling Accelerated Networking for replicated virtual machines only if the source virtual machine has Accelerated Networking enabled. 如果您的來源虛擬機器未啟用加速網路,您可以在這裡深入了解如何針對 Windows 虛擬機器啟用加速網路。If your source virtual machine does not have Accelerated Networking enabled, you can learn how to enable Accelerated Networking for Windows virtual machines here.

支援的作業系統Supported operating systems

您可以從 Azure 資源庫直接使用下列發行版本:The following distributions are supported out of the box from the Azure Gallery:

  • Windows Server 2016 DatacenterWindows Server 2016 Datacenter
  • Windows Server 2012 R2 DatacenterWindows Server 2012 R2 Datacenter

支援的 VM 執行個體Supported VM instances

大多數一般用途和具有 2 個以上 vCPU 的計算最佳化執行個體大小,皆支援加速網路。Accelerated Networking is supported on most general purpose and compute-optimized instance sizes with 2 or more vCPUs. 這些支援的系列為:D/DSv2 和 F/FsThese supported series are: D/DSv2 and F/Fs

在支援超執行緒的執行個體中,加速網路可在具有 4 個以上 vCPU 的 VM 執行個體上進行支援作業。On instances that support hyperthreading, Accelerated Networking is supported on VM instances with 4 or more vCPUs. 支援的系列為:D/DSv3、E/ESv3、Fsv2 和 Ms/MmsSupported series are: D/DSv3, E/ESv3, Fsv2, and Ms/Mms

如需 VM 執行個體的詳細資訊,請參閱 Windows VM 大小For more information on VM instances, see Windows VM sizes.

使用 Linux VM 的加速網路Accelerated Networking with Linux VMs

Azure Site Recovery 只有在來源虛擬機器已啟用加速網路時,才支援針對已複寫虛擬機器啟用加速網路。Azure Site Recovery supports enabling Accelerated Networking for replicated virtual machines only if the source virtual machine has Accelerated Networking enabled. 如果您的來源虛擬機器未啟用加速網路,您可以在這裡深入了解如何針對 Linux 虛擬機器啟用加速網路。If your source virtual machine does not have Accelerated Networking enabled, you can learn how to enable Accelerated Networking for Linux virtual machines here.

支援的作業系統Supported operating systems

您可以從 Azure 資源庫直接使用下列發行版本:The following distributions are supported out of the box from the Azure Gallery:

  • Ubuntu 16.04Ubuntu 16.04
  • SLES 12 SP3SLES 12 SP3
  • RHEL 7.4RHEL 7.4
  • CentOS 7.4CentOS 7.4
  • CoreOS LinuxCoreOS Linux
  • 具有反向移植核心的 Debian "Stretch"Debian "Stretch" with backports kernel
  • Oracle Linux 7.4Oracle Linux 7.4

支援的 VM 執行個體Supported VM instances

大多數一般用途和具有 2 個以上 vCPU 的計算最佳化執行個體大小,皆支援加速網路。Accelerated Networking is supported on most general purpose and compute-optimized instance sizes with 2 or more vCPUs. 這些支援的系列為:D/DSv2 和 F/FsThese supported series are: D/DSv2 and F/Fs

在支援超執行緒的執行個體中,加速網路可在具有 4 個以上 vCPU 的 VM 執行個體上進行支援作業。On instances that support hyperthreading, Accelerated Networking is supported on VM instances with 4 or more vCPUs. 支援的系列為:D/DSv3、E/ESv3、Fsv2 和 Ms/Mms。Supported series are: D/DSv3, E/ESv3, Fsv2, and Ms/Mms.

如需 VM 執行個體的詳細資訊,請參閱 Linux VM 大小For more information on VM instances, see Linux VM sizes.

針對已複寫 VM 啟用加速網路Enabling Accelerated Networking for replicated VMs

當您針對 Azure 虛擬機器啟用複寫時,Site Recovery 會自動偵測虛擬機器網路介面是否已啟用加速網路。When you enable replication for Azure virtual machines, Site Recovery will automatically detect whether the virtual machine network interfaces have Accelerated Networking enabled. 如果已啟用加速網路,Site Recovery 會自動在已複寫虛擬機器網路介面上設定加速網路。If Accelerated Networking is already enabled, Site Recovery will automatically configure Accelerated Networking on the network interfaces of the replicated virtual machine.

加速網路的狀態,可以在已複寫虛擬機器 [計算與網路] 設定的 [網路介面] 區段底下確認。The status of Accelerated Networking can be verified under the Network interfaces section of the Compute and Network settings for the replicated virtual machine.

加速網路設定

如果您在啟用複寫之後,在來源虛擬機器上啟用加速網路,可以藉由下列程序,針對已複寫虛擬機器網路介面啟用加速網路:If you have enabled Accelerated Networking on the source virtual machine after enabling replication, you can enable Accelerated Networking for the replicated virtual machine's network interfaces by the following process:

  1. 開啟已複寫虛擬機器的 [計算與網路] 設定Open Compute and Network settings for the replicated virtual machine
  2. 在 [網路介面] 區段底下,按一下網路介面的名稱Click on the name of the network interface under the Network interfaces section
  3. 從 [目標] 資料行底下的加速網路下拉式清單,選取 [已啟用]Select Enabled from the dropdown for Accelerated Networking under the Target column

啟用加速網路

現有已複寫虛擬機器 (Site Recovery 先前未自動啟用加速網路) 也應該遵循上述程序。The above process should also be followed for existing replicated virtual machines, that did not previously have Accelerated Networking enabled automatically by Site Recovery.

下一步Next steps