Chinaunix首页 | 论坛 | 博客
  • 博客访问: 397467
  • 博文数量: 99
  • 博客积分: 5134
  • 博客等级: 大校
  • 技术积分: 1607
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 09:31
文章分类

全部博文(99)

文章存档

2011年(48)

2010年(40)

2009年(10)

2008年(1)

分类:

2008-12-15 18:01:42

Support

The ERX system supports VLANs (IEEE 802.1q) on Fast Ethernet and Gigabit Ethernet interfaces. IEEE 802.1q describes two key Ethernet fields that have been added to the Ethernet frame. to identify and prioritize traffic: VLAN ID (virtual LAN identifier) and user priority values (802.1p).


Figure 4-14 Ethernet frame. with 802.1q fields (VLAN)

Ethernet frames using this standard can be tagged and viewed in the same way that ATM VCs (VPI/VCI) are represented on an ATM circuit. When an Ethernet frame. is sent over a shared medium (for example, a GE line), it is logically defined as belonging to a specific virtual LAN and provisioned in the same way as a PVC on an ATM circuit. The Tag Protocol Identifier (TPID) in the Ethernet header indicates that this Ethernet frame. contains 802.1q data. The VLAN ID indicates the virtual LAN (virtual circuit) to which this frame. belongs. The three bits in the 802.1p field can be used to determine the priority of this frame.

On a given physical link, Ethernet frames may be tagged or untagged. The VLAN ID in the 802.1q tag explicitly identifies the VLAN for tagged frames; the ID may be 0. Untagged frames are implicitly in VLAN 0, which is considered to be the default VLAN. This implementation is different from ATM, where all frames are required to have an explicit VPI/VCI.

The VLAN ID field is 12 bits, allowing 4096 VLAN IDs. Tagged frames are identified by the value 0x8100 in the Ethernet protocol type field; the actual protocol type of the frame. then follows the tag. Some attached devices may not accept 802.1q-tagged frames, and therefore can reside only in VLAN 0.

Conversely, some devices may accept only tagged frames, requiring that even frames in VLAN 0 be tagged. Ports that have been explicitly added to VLAN 0 will tag frames unless the untagged option is specified. Ports that do not have VLANs configured will not tag frames.

On ingress to a VLAN port, the Ethernet protocol type field of a frame. is examined to determine if it is tagged. If so, the VLAN ID is extracted from the tag, and the actual protocol type field following the tag is used to identify the protocol. If not, the frame. is in the default VLAN, and the type field is used to identify the protocol.

On egress, a frame. destined for the default VLAN may be sent untagged or tagged (depending on whether the untagged option was specified). A frame. destined for any other VLAN is sent tagged.

S-VLAN

As specified in IEEE Standard 802.1q, the twelve-bit VLAN identifier's tagged frames enables the construction of a maximum of 4,096 distinct VLANs in an Ethernet B-RAS application environment; however, this VLAN limit is inadequate. A stacked VLAN (S-VLAN) provides a two-level VLAN tag structure, which extends the VLAN ID space to over 16 million VLANs.

Creating an S-VLAN requires the use of a second encapsulation tag. The ERX system performs decapsulation twice, once to get the S-VLAN tag and once to get the VLAN tag. Using this "double tagging" approach allows for over 16 million address possibilities, which more than satisfies the scaling requirement for Ethernet B-RAS applications.

VLAN and S-VLAN subinterfaces can coexist over the same VLAN major interface. S-VLANs and VLANs are configured similarly.

Interface Modes

Ethernet interfaces are configured to operate in one of the following modes, depending on the combination of protocol and VLAN usage:

  • Single protocol non-VLAN (that is, IP only)

The Ethernet interface supports only one upper-layer protocol interface (without VLANs). Such support is backward compatible with the initial implementation of Ethernet interfaces.

  • Single protocol VLAN (that is, VLANs and IP)

The Ethernet interface supports a single upper-layer protocol on each of one or more VLANs.

  • Multiprotocol VLAN (that is, VLANs, PPPoE, and IP)

The Ethernet interface supports multiple upper-layer protocols, one upper-layer interface per protocol, on each of one or more VLANs.

The first upper-layer interface configured on an Ethernet interface determines the mode. Switching to a different mode requires first removing the entire stack above the Ethernet interface. The supported upper-layer protocols are IP and PPPoE.shows the interface stacks for the different modes.

 
 
 
原文地址:
阅读(2351) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:JVM调优总结 -Xms -Xmx -Xmn -Xss

给主人留下些什么吧!~~