Ethernet OAM Junos
09.02 2024 | by massimilianoEthernet OAM (Operation, Administration and Maintanance) è un meccanismo di controllo della operatività per un link IEEE 802.3ah LFM di […]
Ethernet OAM (Operation, Administration and Maintanance) è un meccanismo di controllo della operatività per un link IEEE 802.3ah LFM di tipo P2P ethernet e lavora attaverso:
Discovery and link monitoring:
- Active Mode: le interfacce dei peer scoprono e monitorano i link di collegamento dei peer se essi supportano entrambi la funzionalità OAM 802.3ah
- Passive Mode: un peer inizia il processo di discovery ed appena in funzione entrambi i peer partecipano al processo stesso; lo switch performa il link monitoring inviando specifiche OAMPDU.
remote failure detection
remote loopback control
ed utilizza frame conosciute come OAMPDU standardizzate in IEEE 802.3ah clause 57
Per link monitoring si intende la trasmissione di OAMPDU in modo periodico e trasportano informazioni relative a capability ed event notification. Dying gasp si riferisce al remote failure indication e le OAMPDU sono trasmesse in caso di down di un nodo; dedicate codifiche sono create in relazioni al tipo di evento (admin shutdown, power loss, reboot).
Il peer neighbor che riceve queste OAMPDU reagisce secondo l’azione configurata.
SNMP trap
Syslog message
Interface disable
Active interworking mechanism
Remote loopback è utile per differenti use-case in particolare per operazioni di troubleshooting; quando una interfaccia riceve una frame non OAM-PDU (pause frame), il peer la trasmette indietro (back) sulla stessa interfaccia da cui l’ha ricevuta e questo significa uno stato active del link. E’ possibile utilizzarla per testare delay, jitter ed anche il throughput di un link.
IEEE 802.3ah: provvede ad un link-local keepalive scambiato tra due peer con adianceza L2-capable (ethernet)
IEEE802.3ag: provvede sempre ad un gerarchico end-to-end keepalive ma tra peer remote che non necessariamente sono direttamente collegati tra loro.
E’ possibile creare dei profili specifici assegnando ad esse eventi e relative azioni:
ESEMPIO:
Profile | Evento | Azione |
OAM BASIC | LINK-ADJACENCY-LOSS | SYSLOG |
OAM EVENTS | LINK-EVENT-RATE: FRAME ERROR 4 LINK-EVENT-RATE: SYMBOL PERIOD 4 | SYSLOG |
OAM BACK-ADJ | LINK-ADJACENCY-LOSS | SYSLOG |
OAM BACK FRAMEPERIOD | LINK-EVENT-RATE: FRAME ERROR 1 | SYSLOG |
OAM BACK SYMBOL | LINK-EVENT-RATE: SYMBOL PERIOD 1 | SYSLOG |
Esempio Configuration
set protocols oam ethernet link-fault-management traceoptions file traceoam
set protocols oam ethernet link-fault-management traceoptions file size 4m
set protocols oam ethernet link-fault-management traceoptions flag protocol
!
set protocols oam ethernet link-fault-management action-profile oam_basic event link-adjacency-loss
set protocols oam ethernet link-fault-management action-profile oam_basic action syslog
!
set protocols oam ethernet link-fault-management action-profile oam_events event link-event-rate symbol-period 4
set protocols oam ethernet link-fault-management action-profile oam_events event link-event-rate frame-error 4
set protocols oam ethernet link-fault-management action-profile oam_events action syslog
!
set protocols oam ethernet link-fault-management action-profile oam_back-adj event link-adjacency-loss
set protocols oam ethernet link-fault-management action-profile oam_back-adj action syslog
!
set protocols oam ethernet link-fault-management action-profile oam_back-frame period event link-event-rate frame-period 1
set protocols oam ethernet link-fault-management action-profile oam_back-frame period action syslog
!
set protocols oam ethernet link-fault-management action-profile oam_back-symbol event link-event-rate symbol-period 1
set protocols oam ethernet link-fault-management action-profile oam_back-symbol action syslog
!
I suddetti profili poi debbono essere applicate alle interfacce (La logica applicate è quella di assegnare alle interface 10G gli ultimi tre profili indicati nella tabella e settare un link-discovery active, mentre per le interface 1G sono stati assegnati I primi due profili e settare un link-discovery passive.
ESEMPIO:
set protocols oam ethernet link-fault-management interface xe-2/0/2 apply-action-profile oam_back-symbol
set protocols oam ethernet link-fault-management interface xe-2/0/2 apply-action-profile oam_back-frame period
set protocols oam ethernet link-fault-management interface xe-2/0/2 apply-action-profile oam_back-adj
set protocols oam ethernet link-fault-management interface xe-2/0/2 pdu-interval 500
set protocols oam ethernet link-fault-management interface xe-2/0/2 link-discovery active
set protocols oam ethernet link-fault-management interface xe-2/0/2 pdu-threshold 3
set protocols oam ethernet link-fault-management interface xe-2/0/2 event-thresholds symbol-period 1
set protocols oam ethernet link-fault-management interface xe-2/0/2 event-thresholds frame-error 1
!
set protocols oam ethernet link-fault-management interface ge-0/0/0 apply-action-profile oam_events
set protocols oam ethernet link-fault-management interface ge-0/0/0 apply-action-profile oam_basic
set protocols oam ethernet link-fault-management interface ge-0/0/0 pdu-interval 1000
set protocols oam ethernet link-fault-management interface ge-0/0/0 link-discovery passive
set protocols oam ethernet link-fault-management interface ge-0/0/0 pdu-threshold 5
set protocols oam ethernet link-fault-management interface ge-0/0/0 event-thresholds symbol-period 4
set protocols oam ethernet link-fault-management interface ge-0/0/0 event-thresholds frame-error 4
