From 8c7837e92e254928792779b0ae5625bdb50ec30b Mon Sep 17 00:00:00 2001 From: Jian Tang Date: Mon, 11 Aug 2025 11:05:34 +0800 Subject: [PATCH] Update file an-xpon-deterministic-control.yang --- .../an-xpon-deterministic-control.yang | 200 ++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 PON Management/Deterministic Network/an-xpon-deterministic-control.yang diff --git a/PON Management/Deterministic Network/an-xpon-deterministic-control.yang b/PON Management/Deterministic Network/an-xpon-deterministic-control.yang new file mode 100644 index 0000000..6d697db --- /dev/null +++ b/PON Management/Deterministic Network/an-xpon-deterministic-control.yang @@ -0,0 +1,200 @@ +module an-xpon-deterministic-control { + yang-version 1.1; + namespace "urn:an:yang:an-xpon-deterministic-control"; + prefix an-xpon-deterministic-ctrl; + + import ietf-interfaces { + prefix if; + } + import bbf-xpon { + prefix bbf-xpon; + } + import bbf-xpongemtcont { + prefix bbf-xpongemtcont; + } + import bbf-xponani { + prefix bbf-xponani; + } + import ietf-yang-types { + prefix yang; + } + + organization + "ETSI"; + contact + "Editor: Liang Zhenming, China Telecom + + + Editor: Yang Ziyao, China Telecom + + + Editor: Tang Jian, China Telecom + + + Editor: Liang Fan, CICT + + + Editor: Li Rui, CICT + + + Editor: Wan Shaoyun, Huawei + + + Editor: Zhang Jianping, Huawei + + + Editor: Xie Yu, ZTE + + + Editor: Zhang Hongxi, ZTE + + + Leader: Zhang Dezhi, China Telecom + "; + + revision 2025-08-11; + + feature deterministic-control { + description + "This feature indicates that the device supports the + deterministic latency control function of PON system."; + } + + typedef dba-cycle-value { + type int8; + description + "DBA cycle, based on 125μs granularity, is 2^n times of 125μs. + Parameter n is the value of this leaf."; + } + + typedef dba-cycle { + type union { + type dba-cycle-value; + type enumeration { + enum autonomous { + description + "The DBA cycle is determined by the device itself."; + } + } + } + } + + typedef quiet-window-mode { + type enumeration { + enum standard { + description + "OLT CT opens a quiet window to temporarily suppress + upstream transmission by the in-service ONUs during + serial number acquisition or ranging. + The offset and size of the quiet window are in compliance + with ITU-T xpon standards."; + } + enum time-sensitive { + description + "Scheduling of time sensitive tconts is prior to ONU + discovery. + If there is not enough idle timeslot for a quiet window, + OLT CT must cancel the serial number acquisition or + ranging operation."; + } + enum best-effort { + description + "ONU discovery is prior to scheduling of time sensitive + tconts. + If there is not enough idle timeslot for a quiet window, + time sensitive tconts will be affected."; + } + } + } + + augment "/if:interfaces/if:interface/bbf-xpon:channel-partition" { + if-feature "deterministic-control"; + leaf accurate-maximum-differential-distance { + type union { + type uint16; + type enumeration { + enum standard; + } + } + units "m"; + default "standard"; + description + "For accurate setting of the maximum differential distance."; + } + } + + augment "/if:interfaces/if:interface/bbf-xpon:channel-termination" { + if-feature "deterministic-control"; + leaf onu-discovery-switch { + type boolean; + default "true"; + description + "Enable / disable the onu discovery function of this OLT PON port. + Disable indicates that OLT cannot automatically + discover the newly launched ONU."; + } + leaf quiet-window-mode { + type quiet-window-mode; + default "standard"; + description + "Quiet window mode."; + } + leaf dba-calculation-cycle { + type dba-cycle; + default "autonomous"; + description + "For each DBA calculation cycle."; + } + leaf timeslot-reserve-switch { + type boolean; + default "false"; + description + "Enable/Disable reserved offline ONU timeslot function."; + } + } + + augment "/bbf-xpongemtcont:xpongemtcont/bbf-xpongemtcont:tconts" + + "/bbf-xpongemtcont:tcont" { + if-feature "deterministic-control"; + leaf time-sensitive { + type boolean; + default "false"; + description + "Whether time sensitive or not. + OLT CT schedules time-sensitive tconts according to + quiet-window-mode."; + } + } + + augment "/bbf-xpongemtcont:xpongemtcont/bbf-xpongemtcont:traffic-descriptor-profiles" + + "/bbf-xpongemtcont:traffic-descriptor-profile" { + if-feature "deterministic-control"; + leaf dba-distribution-cycle { + type dba-cycle; + default "autonomous"; + description + "The device specifies the timeslot of each ONU burst + in the uplink frame through the BWmap in the + corresponding downlink frame."; + } + } + + augment "/if:interfaces-state/if:interface/bbf-xponani:ani" { + if-feature "deterministic-control"; + leaf onu-distance { + type uint16; + units "m"; + description + "One-way ONU distance obtained by ranging function."; + } + } + + augment "/if:interfaces-state/if:interface/bbf-xpon:channel-termination" { + if-feature "deterministic-control"; + leaf last-quiet-window-failed { + type yang:date-and-time; + description + "The last time the OLT CT failed to open a quiet window."; + } + } +} -- GitLab