【OMCI实践】ONT上线过程的omci消息(九)
引言
在前四篇文章中,主要介绍了ONT上线过程的OMCI交互的第一、二、三个阶段omci消息,从第五篇开始介绍第四个阶段,OLT下发配置到ONT。前三个阶段,每个厂商OLT和ONT都遵循相同标准,OMCI的交换过程大同小异。但第四个阶段,下发的OMCI消息跟OLT的型号、ONT的配置强相关,甚至相同ONT配置,相同厂商的OLT不同的GPON板卡,OMCI消息都有可能不同,本系列以Nokia的7360局端为例,介绍OLT会下发那些配置到ONT,仅供大家参考。
MAC bridge port configuration data(create,0x4103)
Message Type = Create
Managed Entity Class: MAC bridge port configuration data (002f)
该受管实体用来组织和记录与桥接端口相关的数据。
Managed Entity Instance: 0x4103
Attribute List
01: Bridge id pointer (0401)
桥标识指针:该属性指示MAC桥控制端口。该属性指向MAC桥业务描述文件的实例。
02: Port num (03)
端口数目:该属性提供了端口数目。在某个特定的桥的所有端口中,该属性必须是唯一的。
03: TP type (03)
TP类型:该属性指示了和桥端口关联的终结点类型。有效值如下:
——1:Physical path termination point Ethernet UNI;
——2:Interworking VCC termination point;
——3:802.1p mapper service profile;
——4:IP host config data;
——5:GEM interworking termination point;
——6:Multicast GEM interworking termination point;
——7:Physical path termination point xDSL UNI part 1;
——8:Physical path termination point VDSL UNI;
——9:Ethernet flow termination point;
——10:Physical path termination point 802.11 UNI。
04: TP pointer (4103)
TP指针:该属性指向和MAC桥端口关联的终结点,TP类型属性指示了终结点类型。该属性包含实例ID(ME ID)。当TP类型是VDSL或xDSL时,最高位2个比特可用于指示承载通道。
05: Port priority (0000)
06: Port path cost (0001)
07: Port spanning tree ind (00)
08: Encapsulation method (00)
09: LAN FCS ind (00)
Trailer
VLAN tagging filter data(create,0x4103)
Message Type = Create
Managed Entity Class: VLAN tagging filter data (0054)
该受管实体组织与VLAN标记相关的数据
Managed Entity Instance: 0x4103
受管实体ID:该属性为受管实体的每个实例提供了唯一编号。通过使用相同的ID,该受管实体隐含链接到MAC bridge port configuration data ME。
Attribute List
01: VLAN filter list (0d0400000000000000000000000000000000000000000000),用户优先级和CFI为0,Vlan ID是3332
VLAN过滤表:该属性列出了用于桥端口的TCI值。TCI值(包括用户优先级,CFI和VID)用2字节表示。该属性共支持12个VLAN表项,前N个有效,N是实际的表项数目。
02: Forward operation (10)
03: Number of entries (01)
Trailer
GEM Port Network CTP(create,0x015d)
Message Type = Create
Managed Entity Class: GEM Port Network CTP (010c)
该受管实体用来表示GEM端口在ONT上的终结。该受管实体汇聚了连接功能(从网络观点来看),告警功能(从网元角度)以及人工操作(从追踪的角度)。
Managed Entity Instance: 0x015d
Attribute List
01: Port id value (015d)
portID值:该属性是与GEM port network CTP ME关联的GEM端口ID。
02: T-CONT pointer (8000)
03: Direction (03)
方向:该属性用于识别GEM 端口是否用于UNI-至-ANI(1),ANI-至-UNI(2),或双向连接(3)。
04: Traffic management pointer for upstream (8001)
上行流量管理指针:如果ONT-G ME的流量管理选项属性值为0(优先级受控)或者属性值为2(优先级和速率受控),则该指针表示为GEM port network CTP ME服务的priority queue-G ME。如果ONT-G ME的流量管理选项属性值为1(速率受控),则该属性冗余指向为GEM port network CTP ME服务的T-CONT ME。
05: Traffic descriptor profile pointer (0000)
07: Priority queue pointer for downstream (0000)
Trailer
GEM interworking Termination Point(create, 0x015d)
Message Type = Create
Managed Entity Class: GEM interworking Termination Point (010a)
该受管实体的实例表示ONT中的一个点,在该点产生业务(如CES、IP)或物理层结构(如,nx64kbit/s/E1/E3/以太网)到GEM层的交互。在该点可将比特流封装成GEM帧(如以太网),或从GEM帧中重新构造比特流。
Managed Entity Instance: 0x015d
Attribute List
01: GEM port network CTP connectivity pointer (015d)
GEM port network CTP连接指针:该属性指向GEM port network CTP的一个实例。
02: Interworking option (05)
交互选项:该属性用于标识交互的非GEM类型的功能,具体选项如下:
——0:非结构化 TDM;
——1:MAC 桥 LAN;
——2:预留;
——3:IP 数据业务;
——4:视频回传通道;
——5:802.1P 映射器;
——6:下行广播。
03: Service profile pointer (4103)
业务描述文件指针:该属性指向一个service profile实例,可指向的service profile类型如下:
——CES service profile-G,如果交互选项=0;
——MAC bridge service profile,如果交互选项=1;
——IP router service profile,如果交互选项=3;
——Video return path service profile,如果交互选项=4;
——802.1p mapper service profile,如果交互选项=5;
空指针,如果交互选项=6。
04: Interworking termination point pointer (0000)
07: GAL profile pointer (0001)
GAL profile指针:该属性指向GAL profile ME实例。交互选项和GAL profile的关系见表19
802.1P Mapper Service Profile(set,0x4103)
Message Type = Set
Managed Entity Class: 802.1P Mapper Service Profile (0082)
该受管实体把802.1p优先级标记帧的优先级关联到特定连接上。该受管实体的操作仅影响上行帧。
Managed Entity Instance: 0x4103
Attribute List
02: Interwork TP pointer for P-bit priority 0 (015d)
03: Interwork TP pointer for P-bit priority 1 (015d)
04: Interwork TP pointer for P-bit priority 2 (015d)
05: Interwork TP pointer for P-bit priority 3 (015d)
06: Interwork TP pointer for P-bit priority 4 (015d)
07: Interwork TP pointer for P-bit priority 5 (015d)
08: Interwork TP pointer for P-bit priority 6 (015d)
09: Interwork TP pointer for P-bit priority 7 (015d)
上列8个属性指向与规定P-bit值关联的GEM interworking termination point ME。空指针0xFFFF表示相关优先级的帧要被丢弃。
Extended VLAN tagging operation configuration data(set,0x0401)
Message Type = Set
Managed Entity Class: Extended VLAN tagging operation configuration data (00ab)
Managed Entity Instance: 0x0401
Attribute List
06: Received frame VLAN tagging operation table (f800000080005000ffffffffffffffff)
06: Received frame VLAN tagging operation table (f800000086825000403f000000086822)
06: Received frame VLAN tagging operation table (f8000000f6825000003f000000006822)
06: Received frame VLAN tagging operation table (f800000080005000403f000000086822)
VLAN tagging filter data(set,0x410b)
Message Type = Set
Managed Entity Class: VLAN tagging filter data (0054)
该受管实体组织与VLAN标记相关的数据。
Managed Entity Instance: 0x410b
Attribute List
01: VLAN filter list (0d030d040000000000000000000000000000000000000000),VLAN 3331,VLAN 3332
VLAN过滤表:该属性列出了用于桥端口的TCI值。TCI值(包括用户优先级,CFI和VID)用2字节表示。该属性共支持12个VLAN表项,前N个有效,N是实际的表项数目。
02: Forward operation (10)
03: Number of entries (02)
Trailer
4、ONT上报告警
OLT通过ONT Data下发Get All Alarms操作,要求ONT上报自身的告警
ONT回复告知4个告警信息要上报
在实例ID 0x0000后的两个字节表示需要上报的告警数目,如下图是0x0004,即有四个告警需要上报
OLT下发Get All Alarm Next,要求ONT上报指定编号的告警
在实例ID 0x0000后的两个字节表示需要上报的告警编号,如下图是0x0000,即第0个告警
ONT上报第0个告警
告警信息由三部分组成受管实体类编号,受管实体实例编号和告警掩码;每个受管实体类可以最多定义224个告警,告警掩码长度是28个字节,即224个bit,第一个bit代表定义的第一个告警,bit等于1表示存在此告警,bit等于0则是不存在。
在OMCI报文中,实例ID 0x0000后,依次是管实体类编号(2个字节,红色),受管实体实例编号(2个字节,橙色),告警掩码(28个字节,蓝色)。
如下图,实例类编号是0x000b表示PPTP Ethernet UNI,实例ID是0x0102(由前文知道,此实例表示第二LAN口),掩码0x8000...表示第一个告警,查询标准文档可知是LAN-LOS,简单点说就是第二个LAN口是down的状态,即没插网线
重新以上操作,OLT下发Get All Alarm Next,要求ONT上报余下的告警
在实例ID 0x0000后的两个字节表示需要上报的告警编号,如下图是0x0001,即第1个告警
同系列文章
【OMCI实践】ONT上线过程的omci消息(一)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(二)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(三)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(四)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(五)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(六)_CSDN博客
【OMCI实践】ONT上线过程的omci消息(七)-CSDN博客
【OMCI实践】ONT上线过程的omci消息(八)-CSDN博客
原创不易,你的支持是我最大的动力,欢迎大家点赞,收藏,关注!