翻译 There are several reasons a network designed on layer-2 protocols is selected over a network designed on layer-3 protocols. In spite of the difficulties of using a bridge to perform the network role of a router, many vendors, customers, and service providers choose to use Ethernet in as many parts of their networks as possible. The benefits of selecting a layer-2 design are: Ethernet frames contain all the essentials for networking. These include, but are not limited to, globally unique source addresses, globally unique destination addresses, and error control. Ethernet frames can carry any kind of packet. Networking at layer-2 is independent of the layer-3 protocol. Adding more layers to the Ethernet frame only slows the networking process down. This is known as nodal processing delay. You can add adjunct networking features, for example class of service (CoS) or multicasting, to Ethernet as readily as IP networks. VLANs are an easy mechanism for isolating networks. Most information starts and ends inside Ethernet frames. Today this applies to data, voice, and video. The concept is that the network will benefit more from the advantages of Ethernet if the transfer of information from a source to a destination is in the form of Ethernet frames. Although it is not a substitute for IP networking, networking at layer-2 can be a powerful adjunct to IP networking. Layer-2 Ethernet usage has additional benefits over layer-3 IP network usage: Speed Reduced overhead of the IP hierarchy. No need to keep track of address configuration as systems move around. Whereas the simplicity of layer-2 protocols might work well in a data center with hundreds of physical machines, cloud data centers have the additional burden of needing to keep track of all virtual machine addresses and networks. In these data centers, it is not uncommon for one physical node to support 30-40 instances.
时间: 2024-04-22 22:26:39 浏览: 217
选择基于第二层协议设计的网络而不是基于第三层协议设计的网络有几个原因。尽管使用桥接器来执行路由器的网络角色存在困难,但许多供应商、客户和服务提供商选择尽可能多地在其网络的各个部分使用以太网。选择第二层设计的好处包括:
以太网帧包含了进行网络通信所需的全部要素,包括但不限于全球唯一的源地址、全球唯一的目标地址和错误控制。
以太网帧可以承载任何类型的数据包。第二层网络与第三层协议无关。
增加以太网帧的层数只会减慢网络处理过程,这被称为节点处理延迟。
你可以像在IP网络中一样容易地为以太网添加附加的网络功能,例如服务类别(CoS)或组播。
虚拟局域网(VLAN)是隔离网络的一种简单机制。
大多数信息都以以太网帧的形式开始和结束。这适用于数据、语音和视频。这个概念是,如果将信息从源传输到目标的方式是以太网帧,网络将从以太网的优势中获益更多。
尽管第二层网络无法替代IP网络,但它可以作为IP网络的一个有力补充。
与第三层IP网络使用相比,第二层以太网使用具有额外的优势:
速度更快。
减少了IP层次结构的开销。
无需跟踪系统移动时的地址配置。
尽管第二层协议的简单性可能在拥有数百台物理机器的数据中心中运作良好,但云数据中心还需要跟踪所有虚拟机的地址和网络,这是一个额外的负担。在这些数据中心中,一个物理节点支持30-40个实例并不罕见。
相关问题
The main limitation of layer-3 networking is that there is no built-in isolation mechanism comparable to the VLANs in layer-2 networks. Furthermore, the hierarchical nature of IP addresses means that an instance is on the same subnet as its physical host, making migration out of the subnet difficult. For these reasons, network virtualization needs to use IP encapsulation and software at the end hosts. This is for isolation and the separation of the addressing in the virtual layer from the addressing in the physical layer. Other potential disadvantages of layer-3 networking include the need to design an IP addressing scheme rather than relying on the switches to keep track of the MAC addresses automatically, and to configure the interior gateway routing protocol in the switches.
第三层网络的主要限制是没有内建的与第二层网络中的VLAN相媲美的隔离机制。此外,IP地址的分层结构意味着实例和其物理主机位于同一个子网中,使得迁移到子网之外变得困难。因此,网络虚拟化需要在终端主机上使用IP封装和软件来实现隔离,并将虚拟层中的寻址与物理层中的寻址分离。第三层网络的其他潜在缺点包括需要设计一个IP寻址方案,而不是依靠交换机自动跟踪MAC地址,并需要在交换机上配置内部网关路由协议。
This error message suggests that you are trying to call a function named getOptions on an object, but that object does not have a function called getOptions. Here are some possible reasons for this error: The getOptions function is not defined on the object that you are calling it on. Double-check that you have defined the function correctly and that it is a method of the object. The object that you are calling the function on is not the correct object. Make sure that you are referencing the correct object and that it has the getOptions function. The getOptions function may be defined on a prototype of the object, rather than on the object itself. In this case, you need to make sure that you are creating new instances of the object correctly, so that they inherit the prototype's functions.翻译
这个错误提示表明你正在尝试在一个对象上调用名为`getOptions`的函数,但该对象没有一个叫做`getOptions`的函数。
以下是可能导致此错误的原因:
1. `getOptions`函数未在你调用它的对象上定义。请仔细检查是否正确定义了该函数,并且它是对象的一个方法。
2. 你调用函数的对象不是正确的对象。请确保你引用了正确的对象,并且该对象具有`getOptions`函数。
3. `getOptions`函数可能定义在对象的原型上,而不是对象本身上。在这种情况下,你需要确保正确地创建了新的对象实例,以便它们继承原型的函数。
如果没有更多的上下文或代码,很难给出更具体的答案。如果你能提供更多关于代码和错误发生位置的信息,我可能能够更好地帮助你。
阅读全文