1. 程式人生 > >week5、study the protocol of 802.1ag and config the topology of olt agg and bng

week5、study the protocol of 802.1ag and config the topology of olt agg and bng

Ethernet OAM,CCM, LTM, LTR, LBM, LBR, MEP, MIP.

Ethernet OAM是應用在乙太網中的OAM機制。主要通過EFMEthernet in the First Mile最後一英里乙太網)和CFMConnectivityFault Management,連線性故障管理)分別工作在乙太網鏈路層和乙太網業務層,對網路進行操作管理維護功能

EFM針對乙太網中的點到點或者虛擬點到點鏈路進行監控和故障管理,相當於是乙太網中的交警

CFM可以實現業務層的端到端OAM監控和管理功能,就像檢察院一樣,能夠在運用上、提供商和使用者的橋網路中進行任意的檢查、隔離和連線性故障報告。

802.11ag 是IEEE提出的一個用於Ethernet網路中進行錯誤管理的一個標準即CFM。

CFM (connectivity faultmanagement) : l連線故障管理

路徑發現、故障檢測、故障確認和定位、故障通知、故障恢復(和STP一起)

802.1ag的核心是對MD所提供的每一個服務所涉及到的部分或全部節點進行維護監控,從而發現故障以及定位出故障的網路段。

MD(maintenance domain):維護域

MP(maintenance point):維護點  --參與維護監控的節點  (具體到port)包括MEP、MIP

MEP(maintenance association endpoint):維護端點    

MIP(maintenance domain intermediatepoint):維護中間點

每一個service都有兩個以上MEP,這些組合稱為MA(maintenance association)維護關聯

每個MA對應一個服務例項(serviceinstance),802.1ag就是對每個MA進行管理維護,檢測MA中的故障,即檢測service instance中的故障。

MA中每個MEP之間點到店的連線稱為維護實體,是CFM作用的最小單位。

DoSAP(Domain Service AccessPoint):維護域服務接入點 – 為慰藉提供訪問本MD的介面

理論上,一個MEP就是一個維護域服務接入點

在Ethernet裡,serviceinstance通常由vlanId來表示

MEP分為兩種:Up MEP andDown MEP

MIP不能配置在DoSAP上,而只能是ISAP(internal service access point)

MIP是雙向的,沒有UP/DOWN之分

路徑發現:LTM(link trace message):連結追蹤報文

故障檢測:CCM(connectivity checkmessage):連線檢查報文:專門用來故障檢測

故障確認:LBM(loopback message):環回報文

故障定位:可以使用LBM,也可以使用LTM,LTM更有效

LTR(link trace reply):連結追蹤回覆

LTM和LTR在CFM中的作用是路徑發現和故障定位,逐跳檢查

LBR(loopback reply):環回回復

LBM和LBR在CFM中的作用是故障確認和故障定位

802.1ag詳解參考資料:

http://wenku.baidu.com/link?url=FYhMcznWCRO1FkS0fJCGFXvcf8YI9BCYF872RZQHikkruUkv3yDXufHs7HFgUdPgPM9pxGpuAcIhI4XzBAOpWeeOwJWGh1mnWdg19EWMZ6i

配置拓撲結構:


用SecreCR遠端連線裝置

OLT:

EOAM-M>create vlan 314 tlan enabled

success: Create VLAN 314.

EOAM-M>create meg auto_meg1 vlan 314level 3 meg-id-format 8021ag-maid ccm-interval 1sec

success: Create maintenance entity group"auto_meg1".

EOAM-M>add mep interface 1/2/g1 to-megauto_meg1 id 3140 direction down continuity-check enabled admin-state enabled

critical ALARM for maintenance endpoint3140 in "auto_meg1" at 2016/12/14 17:12:29.10:

   "CCM loss of continuity"

   (affects service)

success: Create maintenance endpoint 3140in "auto_meg1".

EOAM-M>enable eth-port 1/2/g1

success: Enable Ethernet port"1/2/g1".

EOAM-M>show meg

maintenance entity group"auto_meg1":

VLAN                   : 314

Level                  : 3

MEG ID format          : 802.1ag MAID

CCM interval           : 1 sec

Auto-discovery         : enabled

Auto-discovery timeout : 10.0 seconds

Minimum CC defect      : remote CCM

Alarm time             : 2.500 seconds

Alarm reset period     : 10.000 seconds

Admin status           : enabled

1 maintenance entity group found.

EOAM-M>enable eth-port 1/2/g1

EOAM-M>show remote-mep discovered

ID  MAC Address       State             Discovered On

---- ----------------- -------------------------------------------------------

3141 c0:7b:bc:60:a8:9a  mep: Ok          auto_meg1/3140

                       port: Up          (Intf 1/2/g1)

                                        @2017/07/23 10:41:22

1 remote maintenance endpoint found.

EOAM-M>test link-trace meg auto_meg1 mepid 3140 to-remote-mep 3141

success: Test Link Trace trans-id formaintenance endpoint 3140 in "auto_meg1" is 1.

EOAM-M>show link-trace meg auto_meg1 mepid 3140 trans-id 1

Link trace started at 2016/12/14 17:24:50:

TTL MAC Address       LTM Forwarded Remote MEP Reached

--- ----------------- -------------------------------

15 c0:7b:bc:60:a8:9a no           yes

1 hop in link trace.

EOAM-M>test link-trace meg auto_meg1 mepid 3140 to-remote-mep 3141

success: Test Link Trace trans-id formaintenance endpoint 3140 in "auto_meg1" is 2.

EOAM-M>show link-trace meg auto_meg1 mepid 3140 trans-id 2

Link trace started at 2016/12/14 17:30:51:

TTL MAC Address       LTM Forwarded Remote MEP Reached

--- ----------------- -------------------------------

15 c0:7b:bc:60:a8:9a no           yes

1 hop in link trace.

EOAM-M>test link-trace meg auto_meg1 mepid 3140 to-remote-mep 3141

success: Test Link Trace trans-id formaintenance endpoint 3140 in "auto_meg1" is 3.

EOAM-M>show link-trace meg auto_meg1 mepid 3140 trans-id 3

Link trace started at 2016/12/14 17:32:31:

TTL MAC Address       LTM Forwarded Remote MEP Reached

--- ----------------- -------------------------------

14 c0:7b:bc:60:a8:9a no           yes

15 00:02:5d:d8:20:41 yes           no

2 hops in link trace.

恢復:

EOAM-M>remove mep interface 1/2/g1from-meg auto_meg1

Alarm CLEARED for maintenance endpoint 3140in "auto_meg1" at 2016/12/16 12:47:47.44:

   "CCM loss of continuity"

success: Delete maintenance endpoint 3140in "auto_meg1".

EOAM-M>delete meg auto_meg1

success: Delete maintenance entity group"auto_meg1".

EOAM-M>delete vlan 314

success: Delete VLAN 314.


AGG

EOAM-Standalone>create vlan 314 tlanenabled

success: Create VLAN 314.

EOAM-Standalone>create meg auto_meg1vlan 314 level 3 meg-id-format 8021ag-maid ccm-interval 1sec

success: Create maintenance entity group"auto_meg1".

EOAM-Standalone>enable eth-port 1/g1

success: Enable Ethernet port"1/g1".

EOAM-Standalone>enable eth-port 2/g1

success: Enable Ethernet port"2/g1".

EOAM-Standalone>add interface 1/g1to-vlan 314

success: Add VLAN 314 member -- interface"1/g1".

EOAM-Standalone>add interface 2/g1to-vlan 314

success: Add VLAN 314 member -- interface"2/g1".

EOAM-Standalone>show vlan 314 members

VLAN Member                    Type           Associated Via

---- --------------------------------------- ------------------------------

314 1/g1                      Ethernet       membership

314 2/g1                     Ethernet       membership

EOAM-Standalone>show eth-port

* = pluggable module is present

Port       Current State                Interface            Status

----------- ------------------------------------------------- ----------------

 1/x3      down                         ethernet             systemdisabled

 1/x4      down                         ethernet             user disabled

*1/g1      down                         ethernet             user disabled

*1/g2      down                         ethernet             user disabled

*2/x3      up 1g full-duplex RX-TX      ethernet             enabled

 2/x4      down                         ethernet             user disabled

*2/g1      down                         ethernet             user disabled

*2/g2      down                         ethernet             user disabled

8 Ethernet ports found.

EOAM-Standalone>add mip interface 2/g1to-meg auto_meg1 admin-state enabled

success: Create maintenance intermediatepoint 1 in "auto_meg1".

EOAM-Standalone>show mgmt-cfg

IP address          : 0.0.0.0

Netmask             : 0.0.0.0

MAC Address         : 00:02:5d:d8:20:41

VLAN                : none

Admin status        : disabled

Operational status  : user disabled

恢復:

EOAM-Standalone>remove mip interface2/g1 from-meg auto_meg1

success: Delete maintenance intermediatepoint 1 in "auto_meg1".

EOAM-Standalone>remove interface 2/g1from-vlan 314

success: Remove VLAN 314 member --interface "2/g1".

EOAM-Standalone>remove interface 1/g1from-vlan 314

success: Remove VLAN 314 member --interface "1/g1".

EOAM-Standalone>delete meg auto_meg1

success: Delete maintenance entity group"auto_meg1".

EOAM-Standalone>delete vlan 314

success: Delete VLAN 314.


BNG

C7-SIT-EOAM#configure terminal

Enter configuration commands, one perline.  End with CNTL/Z.

C7-SIT-EOAM(config)#vlan 314

C7-SIT-EOAM(config-vlan)#exit

C7-SIT-EOAM(config)#ethernet cfm domainauto_meg1 level 3

C7-SIT-EOAM(config-ecfm)#id null

C7-SIT-EOAM(config-ecfm)#service auto_meg1vlan 314 direction down

C7-SIT-EOAM(config-ecfm)#continuity-check

C7-SIT-EOAM(config-ecfm-srv)#continuity-checkinterval 1s

C7-SIT-EOAM(config-ecfm-srv)#exit

C7-SIT-EOAM(config)#interface fastEthernet0/24

C7-SIT-EOAM(config-if)#no shutdown

C7-SIT-EOAM(config-if)#switchport trunkallowed vlan add 314

C7-SIT-EOAM(config-if)#switchport modetrunk

C7-SIT-EOAM(config-if)#ethernet cfm mepdomain auto_meg1 mpid 3141 service auto_meg1

C7-SIT-EOAM(config-if-ecfm-mep)#exit    (ctrl c)

C7-SIT-EOAM(config-if) #exit

C7-SIT-EOAM(config)# exit

C7-SIT-EOAM#

C7-SIT-EOAM#show interfaces fastEthernet0/24

FastEthernet0/24 is up, line protocol is up(connected)

恢復:

[‎2016/‎12/‎1614:40] Calvin Zhang:

configure terminal

interface fastEthernet 0/24

no ethernet cfm mep domain auto_meg1mpid 3141 service auto_meg1

end

configure terminal

interface fastEthernet 0/24

switchport trunk allowed vlan remove314

end

configure terminal

no ethernet cfm domain auto_meg1 level3

end

configure terminal

no vlan 314

end