2022數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范_第1頁
2022數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范_第2頁
2022數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范_第3頁
2022數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范_第4頁
2022數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范_第5頁
已閱讀5頁,還剩158頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范2022I數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022目錄版權(quán)聲明 I編制說明 II一、數(shù)字孿生網(wǎng)絡(luò)概述 1二、網(wǎng)絡(luò)建模設(shè)計概述 1三、網(wǎng)絡(luò)設(shè)備建模應(yīng)用場景概述 2(一)設(shè)備選型場景 2(二)網(wǎng)絡(luò)架構(gòu)設(shè)計 3(三)網(wǎng)絡(luò)建設(shè)資源規(guī)劃 4(四)設(shè)備替換選型 4(五)網(wǎng)絡(luò)巡檢 5(六)網(wǎng)絡(luò)變更和運維 5(七)設(shè)備軟件版本升級 6四、網(wǎng)絡(luò)設(shè)備模型設(shè)計方法 6(一)建模思路 6(二)設(shè)計原則 6五、網(wǎng)絡(luò)設(shè)備模型 6(一)通用庫 7基礎(chǔ)類型定義 7通用屬性定義 12(二)硬件模型定義 17電源模型 18風(fēng)扇模型 20III數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022轉(zhuǎn)發(fā)卡模型 22業(yè)務(wù)卡模型 24網(wǎng)絡(luò)設(shè)備模型 27(三)固件模型 32(四)軟件模型 35接口能力模型 35二層能力模型 41ACL能力模型 55BGP能力模型 70Telemetry能力模型 93設(shè)備軟件能力模型 99六、模型實例 101(一)華為設(shè)備模型 1011.6865-48S8CQ-EI硬件模型 1012.6865-48S8CQ-EI軟件模型 108(二)6.2、銳捷設(shè)備模型 1291.N18006-X硬件模型 1292.S6510-X軟件能力模型 134(三)6.3、新華三設(shè)備模型 153S12508X-AF硬件能力模型 154IV數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022一、數(shù)字孿生網(wǎng)絡(luò)概述在《數(shù)字孿生應(yīng)用白皮書(2021)數(shù)字化的理念和技術(shù),這種理念和技術(shù)是以數(shù)據(jù)與模型的集成融合為基礎(chǔ)與核心的。通過在數(shù)字空間實時構(gòu)建物理對象的精準(zhǔn)數(shù)字化映射,基于數(shù)據(jù)整合與分析預(yù)測來模擬、驗證、預(yù)測、控制物理實體全生命周期過程,最終形成智能決策的優(yōu)化閉環(huán)。數(shù)字孿生技術(shù)具有以下幾個特點:1.仿真,它是完全還原了物理實體的;2.實時,它可以實時與其物理實體之間完成數(shù)據(jù)、感知等各種層面的交互動作;3.共生,它的生命周期與其物理實體之間完全一致;4.閉環(huán)優(yōu)化,它能夠在數(shù)字空間中采集、分析、模擬與預(yù)測其物理實體未來的動作,并對其物理實體的未來動作進(jìn)行決策優(yōu)化。數(shù)字孿生網(wǎng)絡(luò)是數(shù)字孿生技術(shù)的一種具體應(yīng)用場景,是以數(shù)字化方式創(chuàng)建網(wǎng)絡(luò)實體的虛擬孿生體,且與物理實體之間實時交互的網(wǎng)絡(luò)系統(tǒng),其核心要素為:數(shù)據(jù)、模型、交互、映射。通過建立數(shù)字孿生網(wǎng)絡(luò),可以對網(wǎng)絡(luò)及其狀態(tài)進(jìn)行數(shù)字化映射反映網(wǎng)絡(luò)的真實運行狀態(tài),理解網(wǎng)絡(luò)各種運行狀態(tài)的映射和內(nèi)部關(guān)聯(lián)依賴,通過分析這種關(guān)聯(lián)依賴的變化提前預(yù)測網(wǎng)絡(luò)的故障狀態(tài)。二、網(wǎng)絡(luò)建模設(shè)計概述如何提高大規(guī)模網(wǎng)絡(luò)的穩(wěn)定性、提高運維同學(xué)的人率不但是運維團(tuán)隊的主要工作,也是網(wǎng)絡(luò)平臺需要解決的問題,數(shù)字孿生技術(shù)是解決這些問題的關(guān)鍵技術(shù),數(shù)字孿生是網(wǎng)絡(luò)監(jiān)控和自動化平臺進(jìn)構(gòu)建智能化能力的基礎(chǔ)能力。一方面模型和運行狀態(tài)數(shù)據(jù)反映了網(wǎng)絡(luò)真實狀態(tài),監(jiān)控平臺可以基于數(shù)字孿生網(wǎng)絡(luò)進(jìn)行多維度的分析和告警預(yù)測;另一方面,自動化平臺可以基于數(shù)字孿生網(wǎng)絡(luò)進(jìn)行操作驗證和仿真,通過提前發(fā)現(xiàn)不符合預(yù)期的網(wǎng)絡(luò)操作防止網(wǎng)絡(luò)故障,也能夠?qū)W(wǎng)絡(luò)操作中的行為和當(dāng)前的狀態(tài)進(jìn)行比較分析,及時發(fā)現(xiàn)問題并進(jìn)行回滾止損,避免更大的網(wǎng)絡(luò)故障發(fā)生。OpenYang1數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022型和軟件模型提出最佳方案。由于國內(nèi)外互聯(lián)網(wǎng)公司和數(shù)據(jù)中心的發(fā)展速度不同以及設(shè)備廠商的認(rèn)知不同,當(dāng)前不具備統(tǒng)一的規(guī)范化方案。OpenYang的網(wǎng)絡(luò)設(shè)備配置的差異進(jìn)行屏蔽,統(tǒng)一了操作語言,提供統(tǒng)一的方法接口給用模型可以直接使用。三、網(wǎng)絡(luò)設(shè)備建模應(yīng)用場景概述網(wǎng)絡(luò)設(shè)備建模是對網(wǎng)絡(luò)設(shè)備進(jìn)行數(shù)字化描述,通過模型規(guī)范將網(wǎng)絡(luò)設(shè)備的能力和規(guī)格參數(shù)展示出來。傳統(tǒng)的規(guī)格書是以文字描述的形式對網(wǎng)絡(luò)設(shè)備的規(guī)格能力進(jìn)行描述,這種規(guī)格書更適合人去閱讀,不適合機器算法識別和理解。網(wǎng)絡(luò)設(shè)備建模是面向機器的設(shè)備規(guī)范,這種格式化的格式適合機器識別和理解處理。同時,設(shè)備建模也屏蔽不同廠商設(shè)備間的差異,在網(wǎng)絡(luò)架構(gòu)設(shè)計、網(wǎng)絡(luò)建設(shè)部用場景有:設(shè)備采購選型、網(wǎng)絡(luò)架構(gòu)設(shè)計、網(wǎng)絡(luò)建設(shè)部署、網(wǎng)絡(luò)變更和智能運維、設(shè)備替換、網(wǎng)絡(luò)巡檢、軟件升級等。(一)設(shè)備選型場景2數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022傳統(tǒng)的設(shè)備采購選型需要人工對照硬件規(guī)格和軟件規(guī)格書,由于數(shù)據(jù)中心網(wǎng)絡(luò)的迭代速度快,一些性能和功能需求沒有體現(xiàn)在規(guī)格說明書中,因此需要分別和多個廠商溝通一些性能和功能需求。當(dāng)引入新設(shè)備的時候會涉及多個廠商的設(shè)備,從網(wǎng)絡(luò)標(biāo)準(zhǔn)化需求的方面希望不同廠商的設(shè)備在一些能力上保持一致。運營團(tuán)隊同學(xué)將網(wǎng)絡(luò)建設(shè)關(guān)注的設(shè)備屬性和能力規(guī)范在平臺上定義,將廠商提供新設(shè)備設(shè)備模型定義導(dǎo)入到平臺后,平臺根據(jù)設(shè)備模型定義執(zhí)行判斷設(shè)備是否滿足網(wǎng)絡(luò)建設(shè)和運維的需求并輸出設(shè)備符合度評估表,運營團(tuán)隊同學(xué)使用評估表內(nèi)容和廠商進(jìn)行溝通確認(rèn)。(二)網(wǎng)絡(luò)架構(gòu)設(shè)計網(wǎng)絡(luò)架構(gòu)依賴設(shè)備的能力,設(shè)備的能力通過模型定義。網(wǎng)絡(luò)架構(gòu)中會定義T1、T2、T3色的規(guī)范會不盡相同,需要多個廠商設(shè)備都支持這些角色的建設(shè)。架構(gòu)師設(shè)計架構(gòu)過程中會對設(shè)備角色進(jìn)行規(guī)范定義,根據(jù)設(shè)備規(guī)范通過平臺去查詢滿足這些角色的設(shè)備廠商和設(shè)備型號。如果現(xiàn)有設(shè)備不能滿足角色規(guī)范要求,或滿足的設(shè)備類型過少,架構(gòu)師需要重新對架構(gòu)進(jìn)行設(shè)計。3數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022(三)網(wǎng)絡(luò)建設(shè)資源規(guī)劃網(wǎng)絡(luò)工程師在確定規(guī)模、網(wǎng)絡(luò)版本、服務(wù)器接入速率、業(yè)務(wù)屬性等信息后,根據(jù)架構(gòu)模型生成拓?fù)淠P?,結(jié)合設(shè)備模型生成適合的網(wǎng)絡(luò)設(shè)備和部件列表,采購和供應(yīng)鏈根據(jù)網(wǎng)絡(luò)設(shè)備和部件列表,結(jié)合價格、供應(yīng)周期等信息形成采購策略。另外,在資源規(guī)劃的時候也要考慮功耗、設(shè)備占用的機架空間、板卡的排列方式等,在設(shè)備選擇以后也會根據(jù)這些信息生成機架規(guī)劃和布線規(guī)劃,進(jìn)行規(guī)劃驗證和環(huán)境仿真。(四)設(shè)備替換選型4數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022網(wǎng)絡(luò)設(shè)備需要替換的時候,如果庫存中有相同型號的設(shè)備會優(yōu)先使用,如果沒有相同型號的設(shè)備,會根據(jù)架構(gòu)版本中定義的設(shè)備角色規(guī)范、庫存中的設(shè)備模型、設(shè)備模型庫進(jìn)行查詢,找到可以替換的設(shè)備列表。(五)網(wǎng)絡(luò)巡檢根據(jù)設(shè)備模型定義對設(shè)備進(jìn)行健康檢查,從模型庫中可以獲得該型號包含的外設(shè)的數(shù)目、固件和軟件版本信息,通過比較巡檢獲得的數(shù)字診斷信息和模型中的診斷方法進(jìn)行異常定位。(六)網(wǎng)絡(luò)變更和運維網(wǎng)絡(luò)是大規(guī)模的分布式系統(tǒng),每次網(wǎng)絡(luò)變更都屬于一次風(fēng)險操作,盡量從更多的方面對變更操作產(chǎn)生的風(fēng)險進(jìn)行分析。網(wǎng)絡(luò)模型已經(jīng)對設(shè)備的硬件、固件和軟件能力進(jìn)行了描述,當(dāng)進(jìn)行更換版本、版本升級和配置變更的時候,可5數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022以根據(jù)設(shè)備模型進(jìn)行一次風(fēng)險評估,如進(jìn)行背板更換的時候,平臺通過硬件模型分析會判斷更換背板是否會影響設(shè)備的整體轉(zhuǎn)發(fā)能力;進(jìn)行軟件升級的時候,更加軟件模型可以判斷是否是無損升級。(七)設(shè)備軟件版本升級設(shè)備軟件版本和功能相關(guān),當(dāng)廠商推出新的版本以后,根據(jù)軟件模型和適配的硬件匹配,再結(jié)合網(wǎng)絡(luò)版本模型、CMDB就可以找出需要升級的網(wǎng)絡(luò)設(shè)備。四、網(wǎng)絡(luò)設(shè)備模型設(shè)計方法(一)建模思路型定位分為硬件模型、軟件模型、固件模型。硬件模型包括主機硬件、部件硬FPGA、CPLD(二)設(shè)計原則在網(wǎng)絡(luò)建模中遵循的設(shè)計原則有:模型中只包括系統(tǒng)中需要使用的字段;異常進(jìn)行快速感知;成本,修改互聯(lián)關(guān)系不用在兩個設(shè)備間進(jìn)行同步。五、網(wǎng)絡(luò)設(shè)備模型6數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022(一)通用庫通用庫包括基礎(chǔ)類型定義、設(shè)備通用屬性定義兩個部分?;A(chǔ)類型定義modulenet-device-types{yang-version"1.1";namespace"/yang/net-device/types/yang";prefix"net-dev-type";description"commontypesdefinitions";identitySTORAGE_TYPE{description"storagetype";}identityNOR_FLASH{base}identityNAND_FLASH{identityRJ45{baseCAGE_TYPE;}identitySFP{baseCAGE_TYPE;}identitySFP28{baseCAGE_TYPE;}identityDSFP{baseCAGE_TYPE;}identityQSFP28{baseCAGE_TYPE;}7數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022baseSTORAGE_TYPE;}identityEMMC_FLASH{base}identityHDD{baseSTORAGE_TYPE;}identitySSD{baseSTORAGE_TYPE;}identityCAGE_TYPE{description"cagetype";}identityQSFP56{baseCAGE_TYPE;}identityQSFPDD{baseCAGE_TYPE;}identityQSFPDD112baseCAGE_TYPE;}identityCPU_ARCH{description"cpuarchitecture";}identityMIPS32{base}identityMIPS64{base}8數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范identityARM32{baseCPU_ARCH;

2022}identityARM64{base}identityX86_64{base}identityX86_32{base}identityPPC32{base}identityPPC64{base}identityFIRMWARE_TYPE{description"firmwarebasetype";}identityBIOS{baseFIRMWARE_TYPE;}identityBOOTLOADER{baseFIRMWARE_TYPE;}identityPCB{baseFIRMWARE_TYPE;}identityCPLD{baseFIRMWARE_TYPE;}9數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范identityFPGA{baseFIRMWARE_TYPE;

2022}typedefdate{typestring{pattern'\d{4}-\d{2}-\d{2}';}description"YYYY-MM-DD";}typedeffloat{typedecimal64{fraction-digits2;}}typedefasic-vendor{description"ASICVendortype";typeenumeration{enumBROADCOM{value1;description"broadcom";}enumMELLANOX{value2;description"mellanox";}}}typedefposition{typeenumeration{enum"FRONT_PANEL"{value1;}enum"BACK_PANEL"{value2;}}}typedefport-speed{10數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范typeenumeration{enum"100M"{value1;

2022}enum"1G"value2;}enum"10G"value3;}enum"25G"value4;}enum"40G"value5;}enum"50G"value6;}enum"100G"value7;}enum"200G"value8;}enum"400G"value9;}}}typedefcpu-arch{typeenumeration{enum"x86-64"value1;}enum"arm64"value2;}}}typedefairflow-direction{11數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022typeenumeration{enum"DIRECT_FRONT_TO_REAR"{value1;}enum"DIRECT_REAR_TO_FRONT"{value2;}}}typedefstatus{typeenumerationenum"normal"value1;}enum"abnormal"value2;}}}}通用屬性定義modulenet-device-common{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-common";prefix"device-common";//importsomebasictypesimportnet-device-types{prefixdevice-type;}//metaorganization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworkdevicecommondefine.";12數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022revision"2022-02-11"{description"Initialrevision";}groupingslot-range-top{containerslot-range{leafmin-slot-idtypeuint16;}leafmax-slot-idtypeuint16;}description"0meansapizzabox";}}groupingsubsystem{description"subsystemdesciption";containerinfos{listcpu-infokeydescription"CPUleafcpu-id{typeuint32;}leafvendor{typestring;description"CPUvendor";}leafcpu-arch{typedevice-type:cpu-arch;}leafcpu-model{13數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022typestring;description"CPUmodelname";}leafcore-num{typeuint16;description"numberofcores";}leaffrequency{typeuint32;units"MHZ";description"CPUdominantfrequency";}}containermem-info{description"DRAMmemoryinformation";leafvendor{typestring;description"vendorname";}leaftype{description"DRAMtype";typeenumerationenumDDR3;enumDDR4;enumDDR5;}}leaftotal-sizetypeuint32;units"MB";description14數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022"TotalMemory,unitisMB";}}containerstorage-infos{description"storageinformation";liststorage-info{keyindex;leafindex{typeuint16;}leafvendor{typestring;description"flashvendorname";}leaftype{typeidentityref{basedevice-type:STORAGE_TYPE;}}leafstorage-capacitytypeuint32;unitsdescription"flashstoragesize";}}}}}groupingdevice-performance{leafpacket-fwd-rate{typedevice-type:float;units"Mpps";description"maximumMppsrate";}15數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范leafdevice-capacity{typedevice-type:float;units"Tbps";description"devicecapacity";

2022}}groupingdevice-asics{description"flashstorageinformation";leafnumber{typeuint16;description"totalnumberofchips";}listdevice-asic{description"singleswitchingchip";key"unit-id";leafunit-id{typeuint16;description"chipunitnumber";}leafvendor{typedevice-type:asic-vendor;description"vendorname";}leafmodel{typestring;description"chipmodel";}leafbuffer-size{typeuint32;units"MB";description"switchingchipbuffersize";}usesdevice-performance;16數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}}groupingpower-consumption{leaftypical-power-consumptiontypeuint32;units"W";description"typicalpowerconsumption";}leafmax-power-consumptiontypeuint32;units"W";description"Maximumpowerconsumption";}}groupingtemperature-limit{leafupper-limit{typeunits"C";description"maximumoperatingtemperature";}leaflower-limittypeint16;units"C";description"minimumoperatingtemperature";}}//datadefinitionsatements//augmentstatements}(二)硬件模型定義17數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022硬件模型包括業(yè)務(wù)卡、背板轉(zhuǎn)發(fā)卡、電源、風(fēng)扇、設(shè)備主機定義幾個部分。1.電源模型modulenet-device-psu{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-psu";prefix"device-psu";//importsomebasictypesimportnet-device-types{prefixdevice-type;}//metaorganization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworkdevicepower-supply-unit.";revision"2022-02-11"{description"Initialrevision";}groupingpsu-supply-info{leafmin-input-voltagedescription"minimuminputtypedevice-type:float;units"V";}leafmax-output-power{description"maximumoutputpower";typedevice-type:float;units"W";}18數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022containerrated-input-voltage-range{description"ratedinputvoltagerange";leafmin-voltage{typedevice-type:float;units"V";}leafmax-voltage{typedevice-type:float;units"V";}}leafrated-output-voltage{description"ratedoutputtypedevice-type:float;units"V";}leafrated-input-current{typedevice-type:float;description"ratedinputcurrent";units"A";}leafrated-output-current{typedevice-type:float;description"ratedoutputcurrent";units"A";}leafrated-output-power{description"ratedoutputpower";typedevice-type:float;units"W";}}groupingpsu-top{containerpsudescription"powersupplyunit";leafpsu-count{19數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022typeuint16;description"maximumnumberofpsu";}leafmin-number{typeuint16;description"minimumnumberofpsu";}leafpluggable{type}leafpsu-modeltypedescription"psumodel";}containerpsu-supply-DCdescription"DC";usespsu-supply-info;}containerpsu-supply-ACdescription"AC";usespsu-supply-info;}}}}風(fēng)扇模型modulenet-device-fan{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-fan";prefix"device-fan";//importsomebasictypesimportnet-device-types{prefixdevice-type;}20數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022//metaorganization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworkdevicefan.";revision"2022-02-11"{description"Initialrevision";}groupingfan-top{containerfan{leafmax-number{typeuint16;description"maximumnumberoffans";}leafmin-number{typeuint16;description"minimumnumberoffans";}leafpluggable{typeboolean;}leafairflow-direction{typedevice-type:airflow-direction;}leaffan-model{typestring;description"fanmodel";}21數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022leafmax-speed{typeuint32;units"rpm";description"maximumrpm";}leaftypical-noise-level{description"typicaltypedevice-type:float;units"dBA";}leaffullspeed-noise-level{description"maximumtypedevice-type:float;units"dBA";}}}//datadefinitionstatements//augmentstatements}轉(zhuǎn)發(fā)卡模型modulenet-device-fabric-card{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-fabric-card";prefix"device-fabric-card";//importsomebasictypesimportnet-device-common{prefixdevice-common;}importnet-device-types{prefixdevice-type;}//metaorganization"OpenDataCenterCommittee";contact22數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfordevicefabriccards.";revision"2022-02-11"description"Initialrevision";}groupingfabric-cards-topcontainerfabric-cardleafmax-number{typeuint16;description"Numberofsupportedfabriccards";}leafmin-number{typeuint16;description"Minimumnumberoffabriccards";}usesdevice-common:slot-range-top;leafweight{typedevice-type:float;units"kg";description"grossweightofallfabriccards";}leafdev-model{typestring;description"FE-cardmodelname";}containerfe-subsystem{description"FE-cardcpusubsystem";usesdevice-common:subsystem;}23數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022containerfe-asics{description"asicchipsofFE-card";usesdevice-common:device-asics;}containerfe-power-consumption{description"fe-cardpowerconsumption";usesdevice-common:power-consumption;}}}}業(yè)務(wù)卡模型modulenet-device-linecard{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-lc";prefix"device-lc";//importsomebasictypesimportnet-device-types{prefixdevice-type;}importnet-device-common{prefixdevice-common;}//metaorganization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfordevicelinecards.";revision"2022-02-11"{description"Initialrevision";}groupinglinecards-top{containerlinecards{24數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022device";

description"linecardcompoment,logicalcompomentforboxleafnumber{typeuint16;description"numberoflinecards";}leafweight{typedevice-type:float;units"kg";description"weightofacard";}leafdev-modeltypedescription"linecardmodelname";}listlinecard{key"slot-id";leafslot-idtypeuint16;description"linecardslotid";}containerlinecard-subsystem{description"linecardcpusubsystem";usesdevice-common:subsystem;}containerlc-asics{description"switchingchipsoflinecard";usesdevice-common:device-asics;}25數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022containerlc-power-consumption{description"powerconsumptionoflinecard";usesdevice-common:power-consumption;}containerports{description"portcompoment";leafcount{typeuint16;description"portcount";}listport{key"speed";leafport-id-range{typestring;description"multiplerangesareseparatedbycommma,thestartandendportareseparatedby'-',suchas1-48,50-52";}leafspeed{typedevice-type:port-speed;}leafcage-type{typeidentityref{basedevice-type:CAGE_TYPE;}description"intefacecagetype";}}}}26數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}}//datadefinitionstatements//augmentstatements}網(wǎng)絡(luò)設(shè)備模型modulenet-deviceyang-version"1.1";//namespacenamespace"urn:device:params:xml:ns:yang:net-device";prefix"net-device";//importsomebasictypesimportnet-device-types{prefixdevice-type;}importnet-device-common{prefixdevice-common;}importnet-device-fabric-card{prefixdevice-fabric-card;importnet-device-fan{prefixdevice-fan;}importnet-device-linecard{prefixdevice-linecard;importnet-device-psu{prefixdevice-psu;}//metaorganization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworkdevice.";revision"2022-02-11"{description"Initialrevision";}containernet-device{27數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022containerproduct-info{leafvendor{typestring;description"manufactor'sname";}leafdev-model{typestring;description"devicemodel";}containerfirmwares{leaf-listfirmwaretypeidentityref{basedevice-type:FIRMWARE_TYPE;}}}leafpurchase-date{typedevice-type:date;description"purchasedate";}leafdev-type{typeenumeration{enumCHASSIS;enumBOX;}description"devicetype";}}containerdimension{description"devicedimension";leaflength{typeuint16;units"mm";28數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022description"devicelength,unitismm";}leafwidth{typeuint16;units"mm";description"devicewidth,unitismm";}leafheight{typeuint16;units"mm";description"deviceheight,unitismm";}}leafweight{typedevice-type:float;units"kg";description"totalweightofthedeivce,excludinglinecardsandfabriccardsifdeviceisachassis";}containerpower-consumption{description"totalpowerconsumptionofdevice,excludinglinecardsifdeviceisachassis";usesdevice-common:power-consumption;}containerwork-temperature{description"workingtemperature";usesdevice-common:temperature-limit;}containerstorage-temperature{description"storagetemperature";usesdevice-common:temperature-limit;}containeraltitude{description"workingaltitude";29數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022leafupper-limit{typeint16;units"m";description"themaximumofworkingaltitude,unitsismeter";}leaflower-limit{typeint16;units"m";description"theminimumofworkingaltitude,unitsismeter";}}containerhumidity{description"relativehumidityofworkingenvironment";leafupper-limit{typeuint16;units"RH";description"themaximumofrelativehumidity";}leaflower-limit{typeuint16;units"RH";description"theminimumofrelativehumidity";}}containerdevice-performance{description"deviceperormance";usesdevice-common:device-performance;}containercontrol-engine{leafnumber{30數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022typeuint16;description"thenumberofcontrolengine";}usesdevice-common:slot-range-top;containermgmt-port{leafname{typestring;}leafmax-speed{typedevice-type:port-speed;}leafposition{typedevice-type:position;}}containerusb-port{leafusb-number{typeuint16;description"numberofusbport";}leafusb-version{typeenumerationenumUSB_2_0;enumUSB_3_0;}description"maximumversionofUSB";}}containerconsole{leafdefault-baudratetypeuint32;}leafposition{typedevice-type:position;}}leafdev-model{31數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022typestring;description"devicemodel";}containerengine-subsystem{description"enginesubsystem";usesdevice-common:subsystem;}containerbmc-subsystem{description"BMCsubsystem";usesdevice-common:subsystem;}card";

containerce-power-consumption{description"powerconsumptionofcontrolengineusesdevice-common:power-consumption;}}usesdevice-fabric-card:fabric-cards-top;usesdevice-linecard:linecards-top;usesdevice-fan:fan-top;usesdevice-psu:psu-top;}}(三)固件模型modulenet-device-firmware{//namespacenamespace"urn:device:params:xml:ns:yang:net-device-firmware";prefix"device-dev-firmware";//importsomebasictypes//metaorganization"OpenDataCenterCommittee";32數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworkdevicefan.";revision"2022-02-11"{description"Initialrevision";}groupingfirmware-top{containerfirmwares{leafserial-number{typestring;description"deviceSerialNumber";}listmac-address{key"name";leafname{typestring{pattern'[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}';}description"deviceMACaddress";}}listfirmwarekeyleaf name{typestring;description"firmwarename";}leaftype{typeenumeration{enumCPLD;33數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022enumBIOS;}description"firmwaretype";}leafversion{typestring;description"firmwareversion";}}listsensor{keynumber;leaftypeint16;description"sensornumber";}leafname{typestring;description"sensorname";}leafupper-limit{typeint16;units"C";description"themaximumofworkingtemperature";}leaflower-limit{typeint16;units"C";description"theminimumofworkingtemperature";}leaftemp-state{typeint16;units"C";34數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022description"currenttemperature";}}}}//datadefinitionstatementsusesfirmware-top;//augmentstatements}(四)軟件模型在設(shè)備軟件能力模型當(dāng)前包括接口能力模型、二層能力模型、ACLTelemetry力集合,根據(jù)需求可以不斷添加新的能力模型。接口能力模型(1)net-software-if-types.yangmodulenet-software-if-types{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-if-types";

prefix"net-software-if-types";organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworksoftwareinterfacecommontypes.";revision"2022-03-29"{description"Initialrevision";}identityINTERFACE_TYPE{description"Baseidentityfromwhichinterfacetypesarederived";35數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}identityIF_ETHERNET{baseINTERFACE_TYPE;description"EthernetinterfacesbasedonIEEE802.3standards,aswellasFlexEthernet";reference"IEEE802.3-2015-IEEEStandardforEthernetOIFFlexEthernetImplementationAgreement1.0";}identityIF_BAGG{baseINTERFACE_TYPE;description"二層聚合口";}identityIF_RAGG{baseINTERFACE_TYPE;description"三層聚合口";for

}identityIF_LOOPBACK{baseINTERFACE_TYPE;description"Avirtualinterfacedesignatedasaloopbackusedvariousmanagementandoperationstasks.";}up.";

identityIF_NULL{baseINTERFACE_TYPE;description"Asoftware-basedlogicalinterface,whichisalways}VLAN.

identityIF_VLAN{baseINTERFACE_TYPE;description"AlogicalinterfaceusedforroutingservicesonaSuchinterfacesarealsoknownasswitchvirtualinterfaces(IRBs).";

(SVI)orintegratedroutingandbridginginterfaces36數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}identityIF_SONET{baseINTERFACE_TYPE;description"SONET/SDHinterface";}identityIF_TUNNEL_GRE4{baseINTERFACE_TYPE;description"AGREtunneloverIPv4transport.";}identityIF_TUNNEL_GRE6{baseINTERFACE_TYPE;description"AGREtunneloverIPv6transport.";}}(2)net-software-if-phy.yangmodulenet-software-if-phy{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-if-phy";prefix"software-if-phy";importnet-software-if-common{prefixsoftware-if-common;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworksoftwarephysicalportfeature.";revision"2022-03-29"{description"Initialrevision";}groupingif-phy-top{description"Top-levelgroupingforphysicalinterfacefeature";containerif-phy{listphysical-interface{keyif-type;37數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022usessoftware-if-common:if-common-top;leafsupport-fec{typeboolean;description"supportfec";}leaf-listsupport-breakout-speed{typeenumeration{enumIF_SPEED_40G;enumIF_SPEED_100G;}description"thesupportedspeedlistthebreakoutfunctionissupported";}leafsupport-l2-l3-switchtypeboolean;description"whethertosupportL2andL3portswitching";}}/*TODO:expandsub-features*/}}}(3)net-software-if-common.yangmodulenet-software-if-common{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-if-common";prefix"software-if-common";importnet-software-if-types{prefixsoftware-if-types;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworksoftwareinterfacecommonstructure.";revision"2022-04-22"{description"Initialrevision";}38數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022groupingif-common-top{description"Top-levelgroupingforcommoninterfacestruture";

leafif-type{typeidentityref{basesoftware-if-types:INTERFACE_TYPE;}description"interfacetypeswhichcanbesupported";}leafsupport-description{typeboolean;description"Issupportconfiguredescription";}leafsupport-sub-if{typeboolean;description"sub-interfacetypewhichcanbesupported";}leafsupport-admin-shutdown{typeboolean;description"supportshutdowncommand";}leafsupport-jumbo-frame{when"../if-type='software-if-types:IF_ETHERNET'or../if-type='software-if-types:IF_BAGG'or../if-type='software-if-types:IF_RAGG'"description"OnlyL2/L3Ethernet&BAGG&RAGGsupportjumboframe";}typeboolean;description"Issupportjumboframe";}}}(4)net-software-if-logic.yangmodulenet-software-if-logic{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-if-logic";

prefix"software-if-logic";importnet-software-common{prefixsoftware-common;}39數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022importnet-software-if-common{prefixsoftware-if-common;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionfornetworksoftwarelogicinterfacefeature.";revision"2022-03-29"{description"Initialrevision";}groupingif-logic-top{description"Top-levelgroupingforinterfacefeature";containerif-logic{listlogic-interfacekeyif-type;usessoftware-if-common:if-common-top;usessoftware-common:spec-description;}}}}(5)net-software-if-interface.yangmodulenet-software-interface{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-interface";prefix"software-interface";importnet-software-if-logic{prefixsoftware-if-logic;}importnet-software-if-phy{prefixsoftware-if-phy;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description40數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022"ThismodulecontainstheYANGdefinitionfornetworksoftwareinterfacefeature.";revision"2022-03-29"{description"Initialrevision";}groupinginterface-top{description"Top-levelgroupingforinterfacecontainerinterface{usessoftware-if-logic:if-logic-top;usessoftware-if-phy:if-phy-top;}}}二層能力模型net-software-if-vlan.yangmodulenet-software-vlan{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-vlan";prefix"software-vlan";importnet-software-common{prefixsoftware-common;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionforsoftwareVLANfeature.";revision"2022-03-23"description"Initialrevision";}groupingvlan-description{leafsupport-description{typeboolean;description"descriptionability";}41數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}groupingport-vlan-description{containerport-vlan{leaf-listsupport-link-types{typeenumeration{enumTRUNK;enumACCESS;enumHYBIRD;enumDOT1Q_TUNNEL;}}}}groupingvlan-top{description"Top-levelgroupingforVLANfeature";containervlan{containerstand-specs{description"standardprotocol";containerbasic-vlan{usessoftware-common:spec-description;usesvlan-description;leafsupport-configure-name{typeboolean;description"configurenameablity";}leafsupport-transparent-vlan{typeboolean;}containerreserved-vlan{description"reservedvlanspecification";usessoftware-common:spec-description;leafsupport-modify{typeboolean;description"modifyreservedvlanability";}leafreboot-after-modify{42數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范vlan";

2022when"../support-modify='true'";typeboolean;description"rebootaftermodifyreserved}}}containerqinq{leafsupport-basic-qinq{typeboolean;description"basicQinQablity";}leafsupport-selective-qinq{typeboolean;description"selectiveQinQablity";}leafsupport-configure-tpid{typeboolean;description"modifyTPIDability";}}}containerapplications{leaf-listapplicationtypeenumeration{enumMAC_VLAN;enumVOICE_VLAN;enumSUPER_VLAN;enumPROTO_VLAN;enumPORT_VLAN;enumMUX_VLAN;}description"scenarioslist";}containerdescription{/*scenariosdescription*/usesport-vlan-description;}43數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022/*TODO:expandsub-features*/}}}}net-software-if-stp.yangmodulenet-software-stp{yang-version1.1;namespace"urn:device:params:xml:ns:yang:net-software-stp";prefix"software-stp";importnet-software-if-types{prefixsoftware-if-types;}organization"OpenDataCenterCommittee";contact"Tel-mail:odcc@";description"ThismodulecontainstheYANGdefinitionforsoftwareSTPfeature.";revision"2022-04-13"description"Initialrevision";}identitySTP_TYPE{description"STP}identitySTP{base}identityRSTP{basedescription"802.1D";44數(shù)字孿生網(wǎng)絡(luò)模型規(guī)范 2022}identityMSTP{baseSTP_TYPE;description"802.1Q";}groupingstp-top{description"Top-levelgroupingforSTPfeature";containerstp{leaf-liststp-type{typeidentityrefbaseSTP_TYPE;}}leaf-listprotect-typetypeenumeration{enumPROTECT_BPDU;enumPROTECT_ROOT;enumPROTECT_LOOP;enumPROTECT_TC;}description"supported

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論