简体   繁体   English

GCP 中的 ARP 协议,用于两个虚拟机直接通信

[英]ARP protocol in GCP for two VMs to communicate directly

I have two machines within GCP.我在 GCP 中有两台机器。 Both machines are on the same subnet.两台机器都在同一个子网上。

The way I understood, GCP is build on SDN and so there is not traditional switching.据我了解,GCP 建立在 SDN 之上,因此没有传统的交换。 In other words, there is no ARP recognition for my two machines to communicate directly to each other omiting default gateway.换句话说,我的两台机器没有 ARP 识别,可以直接相互通信,省略默认网关。

Am I right?我对吗? can you please shed some light onto it?你能解释一下吗?

I am not sure what you mean by:我不确定你的意思是:

In other words, there is no ARP recognition for my two machines to communicate directly to each other omiting default gateway.换句话说,我的两台机器没有 ARP 识别,可以直接相互通信,省略默认网关。

ARP and RARP are supported.支持 ARP 和 RARP。 ARP lookups are handled in kernel software. ARP 查找在 kernel 软件中处理。

Once two systems have communicated together, the operating systems know about each other and the IP to MAC mapping.一旦两个系统一起通信,操作系统就知道彼此以及 IP 到 MAC 的映射。 If the systems have not communicated previously, then MAC lookup takes place which is managed by the VPC network.如果系统之前没有进行过通信,则会进行由 VPC 网络管理的 MAC 查找。

VPC networks use Linux's VIRTIO network module to model Ethernet card and router functionality, but higher levels of the networking stack, such as ARP lookups, are handled using standard networking software. VPC 网络使用 Linux 的 VIRTIO 网络模块到 model 以太网卡和路由器功能,但更高级别的网络堆栈,例如 ARP 查找,是使用标准网络软件处理的。

ARP lookup ARP 查找

The instance kernel issues ARP requests and the VPC network issues ARP replies.实例 kernel 发出 ARP 请求,VPC 网络发出 ARP 回复。 The mapping between MAC addresses and IP addresses is handled by the instance kernel. MAC 地址和 IP 地址之间的映射由实例 kernel 处理。

MAC lookup table, IP lookup table, active connection table MAC查找表,IP查找表,活动连接表

These tables are hosted on the underlying VPC network and cannot be inspected or configured.这些表托管在底层 VPC 网络上,无法检查或配置。

Advanced VPC concepts高级 VPC 概念

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM