802.1ad Provider Bridges 学习笔记

 http://blog.csdn.net/fw0124/article/details/5831061

 

相关协议
1) 802.1Q Virtual Bridged Local Area Networks
2) 802.1ad Provider Bridges

 

A Bridge can be logically subdivided into the following components:
• S-VLAN component
• C-VLAN component

Bridges are classified into VLAN Bridge:
CB: Customer Bridge or C-VLAN Bridge
PEB: Provider Edge Bridg
PCB: Provider Core Bridge or S-VLAN Bridge

Provider Core Bridge integrates only one S-VLAN component. It is capable of providing single service on a port.
Provider Edge Bridge integrates one S-VLAN component with zero or many C-VLAN components as well as integrates each C-VLAN (up to 4094 C-VLANs) individually with a different S-VLAN (up to 4094 S-VLANs).

================================
Bridge-Port-Type        CB PEB PCB
--------------------------------------------------------
Customer Bridge Port (CBP)   YES NO NO
Customer Edge Port (CEP)    NO YES NO
Customer Network Port (CNP)  NO YES YES
Provider Network Port (PNP)   NO YES YES
================================

An aid to remember the functions of the Bridge Port Types:
• Customer ports (CEPs, CNPs) face the customer network and connect to a single customer.
• Provider ports (PNPs) face the provider network.
• Edge port (CEPs) are on C-VLAN components and recognize C-tags.
• Network ports (CNPs, PNPs) are on S-VLAN components and recognize S-tags.


 

 

Customer service Interface
A service provider can offer a customer one or more types of service interfaces, each providing different capabilities for service selection, priority selection, and service access protection. Some service interfaces are provided by the service provider operating systems that include C-VLAN components, or by customer operating systems that include S-VLAN components.
Access to a given service instance can be provided through different types of customer service interface.

1) CNP-Port Based (Port-based service interface)

CNP-PortBased

Traffic on this port is considered to be a single service and is assumed to have no S-tags. The port-based CNP applies a single S-tag for all customer traffic at ingress. The port-based CNP strips out the S-tag on egress to the Customer Bridge.

2) CNP-STAG(S-tagged service interface)

CNP-STAG

The S-tagged service interface is provided by a Provider Bridge to allow the attached customer to select between, and to identify service instances using the S-VID associated with the transmitted and received frames. The traffic on this port may have S-tags used by customer equipment to differentiate services.
The customer-controlled provider edge bridge can provide C-Tagged service interfaces within the customer's own network. These customer-controlled Provider Bridges are connected to the provider-controlled bridges via CNP S-Tagged interfaces. The communication between the customer-controlled Provider Bridge and the connecting Provider Bridge is through SVLAN tag.

3) CEP(C-tagged service interface)

CEP

Configuring a port as Customer Edge Port results in creating a C-VLAN component. The C-VLAN component can be uniquely identified by the port number of the Customer Edge Port. A C-VLAN component in a Provider Edge Bridge integrates a single Customer Edge Port and many Provider Edge Ports.
Service instance selection is provided for C-tagged service interfaces by a C-VLAN component internal to a Provider Edge Bridge. The C-VLAN component uses the C-VID to direct frames to an internal Provider Edge Port supporting a specific service instance.

C-VID Registration Table
The CVID Registration table provides mapping between a Customer VLAN and Service VLAN. Many Customer VLANs can be mapped to a single service instance (Service VLAN). Mapping first a Customer VLAN to a Service VLAN results in creating a Provider Edge Port (PEP). Provider Edge Ports are logical ports that are used to connect the C-VLAN component to the S-VLAN component. Provider Edge Ports are uniquely identified by a Customer Edge Port and a Service VLAN ID.

This table provides the equivalent functionality of
1) Configuring the PVID of the internal Customer Network Port on the S-VLAN component;
2) Adding the corresponding Provider Edge Port on the C-VLAN component to the member set of the C-VLAN;
3) Adding the Provider Edge Port and/or Customer Edge Port to the untagged set of the C-VLAN (if it is desired that frames forwarded to that port are transmitted untagged for this C-VLAN).

举例:
CEP端口(5/2)加入到S-VID=6,7的S-VLAN。
从Customer侧过来的报文C-VID=1001,1002,2001,2002。
C-VID=1001,1002映射到S-VID=6;
C-VID=2001,2002映射到S-VID=7.
具体如下表:

=====================================
S-VLAN Port C-VLAN Untagged-PEP Untagged-CEP
-----------------------------------------------------------
6 Gi5/2 1001 False False
6 Gi5/2 1002 False False
7 Gi5/2 2001 False False
7 Gi5/2 2002 False False
=====================================

应当如下配置C-VID Registration Table。
输入:CEP端口号(5/2),C-VID(1001, 1002, 2001, 2002)
1) 配置S-VLAN Component上的CNP-Port Based的PVID;
CEP(5/2)内部生成2个PEP和2个CNP-Port Based。
2个CNP-Port Based的PVID分别设成6和7。

2) 把PEP加入到上述C-VLAN中;
Service VLAN-ID =6的PEP加入到C-VLAN=1001和1002的Member Set中。
Service VLAN-ID =7的PEP加入到C-VLAN=2001和2002的Member Set中。
结果如下:
----------------------------------------------------
Provider Edge Port configuration:
Port Gi5/2
   Service VLAN-ID : 6
   Port VLAN-ID : 1001
Port Gi5/2
   Service VLAN-ID : 7
   Port VLAN-ID : 2001
----------------------------------------------------
3) 设置PEP/CEP的端口Untagged属性 (true/false);


 

 

端口配置(Port Configuration)
a) PVID
Configuration of a PVID for each Port, to associate a VID with untagged and priority-tagged received frames

b) Default User Priority
An integer range 0-7 to be used for untagged frames received at the port;

c) Acceptable Frame Types
The Acceptable Frame for frames received at the port.
The permissible values for the parameter are as follows:
1) Admit only VLAN-Tagged frames;
2) Admit only Untagged and Priority-Tagged frames;
3) Admit all frames: all frames are accepted on the port;
CNP-Port Based只能配置为2)Admit only Untagged and Priority-Tagged

d) Ingress Filtering
The permissible values for the parameter are as follows:
1) Enabled: the port only accepts frames with VLAN IDs of which the port is already a member;
2) Disabled: the port accepts frames with any VLAN ID.

e) Priority Regeneration
输入:端口号,VID(说明每个VLAN需要1个设置)
输出:接受到的Priority (0-7)和转发的Priority的Mapping (0-7)。
• For CBP and CEP types, Ingress C-tag Priority is regenerated to the C-tag.
• For CNP and PNP types, Ingress S-tag Priority is regenerated to the Service VLAN Tag.(CNP-Port Based可以接受Priority-Tagged的SVLAN Frame.)
可以对每个PEP端口进行设置。

f) VID Translation Table
1) S-VID Translation Table is used for interconnecting two different provider networks, which provides a one-to-one bidirectional mapping between a local S-VID (used in data and protocol frames transmitted and received through this Customer Network Port or Provider Network Port) and a relay S-VID (used by the filtering and forwarding processes of the S-VLAN component in a Provider Bridge).
S-VLAN Translation Table is only applicable for PNP and CNP-STAG.

2) The Double Tag Swap feature is designed to enable the NE to swap (translate) the CVID and SVID of the traffic flowing in a Provider Bridge. Double tag VLAN ID translation can be enabled/disabled on PNP and CNP-STAGNP.

3) Customer VLAN Translation can be enabled/disabled on CEP and CBP.
CBP上要求Relay C-VLAN必须存在。(不存在则无法转发)

CNP-Port Based 上不支持VID Translation Table.(没有C-VLAN Component,但是接收到的frame里面只有CVID)

g) Priority Code Point Encoding Table
If the VLAN tag is a Service VLAN tag, then Table 6-3 and Table 6-4 shall be supported.
If the VLAN tag is a Customer VLAN tag, then the 8P0D row of each table shall be supported, and the remaining rows may be supported.

PCP Encoding/Decoding

提供了一种利用3Bit的PCP来进行Priority和Drop Eligibility的设定。这样可以提供一种对CTAG和STAG都适用的设定方法。(CTAG不支持DEI,STAG支持DEI)
参照方法:
8P0D: Drop Eligibility不能Encoding在PCP中。(但是STAG可以利用DEI位进行设定)
7P1D: 支持7种Priority和1种Priority进行Drop Eligibility设定。
6P2D和5P3D以此类推。
举例:
4表示Priority=4,Drop Eligibility=false,4DE表示Priority=4,Drop Eligibility=true;
做Encoding的时候,{6P2D:P=4,D=false}的情况下,PCP设置为5;
{6P2D:P=4,D=true}的情况下,PCP设置为4。
做Decoding的时候,{6P2D ,PCP=5}的情况下,表示{P=4,D=false};
{6P2D ,PCP=4}的情况下,表示{P=4,D=true}。

h) Use_DEI
If the VLAN tag is a Service VLAN tag (S-TAG), the drop_eligible parameter may also be encoded in and decoded from the Drop Eligible Indicator (DEI) in the S-TAG. (Use_DEI can be set to only False on CEP ports.)
If the Use_DEI is True for the Port, the drop_eligible parameter is encoded in the DEI of transmitted frames, and the drop_eligible parameter shall be True for a received frame if the DEI is set in the S-TAG or the Priority Code Point Decoding Table indicates drop_eligible True for the received PCP value.
If the Use_DEI parameter is False, the DEI shall be transmitted as zero and ignored on receipt.
The default value of the Use_DEI parameter is False.

i) Member Port/Untagged Port
Static VLAN entries can be configured with the required number of member ports, untagged ports and forbidden ports.
• Member ports are permanently assigned to the egress list. Member ports represent the set of ports permanently assigned to the VLAN egress list. Frames belonging to the specified VLAN are forwarded on the ports in the egress list.
• Untagged ports transmit untagged frames. If the port type is not explicitly specified as untagged, then all ports are configured to be of tagged port type allowing transmission of frames with the specified VLAN tag. The untagged setting allows the port to transmit frames without a VLAN tag. This setting is used to configure a port connected to an end user device.
• Forbidden ports are not allowed for the VLAN. Alternatively, the forbidden setting prevents the port from participating in the specified VLAN activity and ensures that any dynamic requests for the port to join the VLAN are ignored.

 

 

所谓的Untagged Port和tagged Port不是讲述物理端口的状态,而是将是物理端口所拥有的某一个VID的状态,所以一个物理端口可以在某一个VID上是Untagged Port,在另一个VID上是tagged Port。
加入VLAN的时候,CEP和CNP-Port只能配置为Untagged(或者Forbidden)。(因为CEP和CNP-Port发出的报文不带STAG)

 


 

帧格式
VLAN Tag Format

*Tag Control Information (TCI)

 

1) CTAG(802.1Q)
IEEE 802.1Q协议规定在目的MAC地址DA和源MAC地址SA之后,报文所属协议类型Type之前,封装4个字节的VLAN Tag,用以标识VLAN的相关信息。
VLAN Tag包含四个字段,分别是TPID(Tag Protocol Identifier,标签协议标识符)、PCP(Priority Code Point)、CFI(Canonical Format Indicator,标准格式指示位)和VLAN ID。
TPID用来判断本数据帧是否带有VLAN Tag,长度为16bit,缺省取值为0x8100。
Priority表示报文的优先级,长度为3bit。
CFI字段标识MAC地址在不同的传输介质中是否以标准格式进行封装,长度为1bit,取值为0表示MAC地址以标准格式进行封装,为1表示以非标准格式封装,缺省取值为0。
VLAN ID标识该报文所属VLAN的编号,长度为12bit,取值范围为0~4095。由于0和4095为协议保留取值,所以VLAN ID的取值范围为1~4094。

2) STAG(802.1ad)
The semantics and structure of the S-TAG is identical to that of the C-TAG, with the exception that bit 5 in octet 1, the Drop Eligible Indicator (DEI) bit, does not convey a CFI.
另外,STAG的TPID=0x88A8

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 您好!802.1qav是一个网络标准,也称为时间感知网络(Time-Sensitive Networking,TSN)。它定义了在以太网上实现实时和高可靠性通信的方法。 802.1qav的pdf(Portable Document Format)文件可能是关于这个标准的文档或规范。这样的文件通常包含了关于802.1qav的技术细节、协议要求、通信参数等信息。 802.1qav的主要目标是提供对时间敏感应用的支持,如音视频传输和工业自动化控制。通过引入时间同步、流控制和优先级队列等机制,它可以保证实时通信的低延迟、低抖动和高可靠性。 在pdf文件中,您可能会找到关于802.1qav的介绍、功能描述、协议栈结构、帧格式和通信机制等内容。此外,还可能包含配置指南、性能测试方法和实施建议等实用信息。 阅读802.1qav的pdf文件可以帮助人们了解该标准的实施细节和相关技术,从而更好地理解如何在网络中实现实时通信,并设计和部署适合时间敏感应用的网络环境。 希望对您有帮助!如有任何其他问题,请随时提问。 ### 回答2: 802.1qav是IEEE标准化的一种网络传输技术,它定义了一种用于实时数据传输的QoS(服务质量)机制。该标准的全称是IEEE 802.1q-2018 Standard for Local and Metropolitan Area Networks - Bridges and Bridged Networks - Amendment 29: Time-Sensitive Streams Enhancements to IEEE Std 802.1Q。 802.1qav旨在提高网络中对实时流的传输效率,使得音频和视频等实时数据能够在网络中得到有效处理和传输。该标准引入了一种称为时间敏感流(TSN)的概念,用于处理实时数据在网络中的传输和排队问题。 通过802.1qav,网络设备可以对实时流进行优先级和带宽的配置,以确保这些数据能够按时传输和达到所需的延迟要求。该标准规定了一种时间感知调度算法,使得网络设备能够为实时流提供更可靠的传输。此外,802.1qav还规定了一种优先级机制,使得实时流可以在网络中得到优先处理。 使用802.1qav,网络中的传输设备可以根据实时流的特点进行合理的调度和资源分配,以满足各种实时应用的要求。通过提供极低的传输延迟和保证数据的有序传输,该标准确保了实时数据的可靠性和一致性。 总之,802.1qav是一项用于实时数据传输的网络技术标准,通过定义QoS机制和时间感知调度算法,提高了网络对实时流的处理和传输效率,保证了实时数据的传输质量和可靠性。 ### 回答3: 802.1qav是一个标准的PDF文档,它是用来描述以太网上的音视频传输的一种技术。该标准是由IEEE组织制定并发布的。它的全称是"IEEE Standard for Local and metropolitan area networks--Bridges and Bridged Networks--Amendment 29: Media Access Control Parameters, Link Aggregation Group (LAG), and Virtual Bridged Local Area Networks",即"局域网和都市区域网的桥接和桥接网络的IEEE标准--修正案29:媒体接入控制参数、链路聚合组(LAC)和虚拟桥接局域网"。 在802.1qav标准中,定义了一种用来提供实时音视频数据传输的机制,它可以确保流畅的音视频从源端到目的端的传输,并提供一定的服务质量保障。该标准中包含了一些关键的技术和概念,如时间感知调度(Time-Sensitive Scheduling, TSS)、时间感知队列(Time-Sensitive Queuing, TSQ)和流控制(Flow Control)等。 通过使用802.1qav标准,可以实现对音视频流的分类、调度和传输控制,以确保在以太网上实时音视频数据的传输和同步。这对于需要高质量的音视频应用来说是非常重要的,如视频会议、流媒体和实时监控等。 总而言之,802.1qav是一个规范性的文档,它定义了一套标准和机制,用于实现以太网上的实时音视频传输。它的出现使得在以太网上传输音视频数据更加可靠、稳定和高效,满足了现代通信技术的需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值