官术网_书友最值得收藏!

Data modeling for infrastructure as code

According to Wikipedia,

" A data model is an abstract model that organizes elements of data and standardizes how they relate to one another and to properties of the real-world entities. For instance, a data model may specify that the data element representing a car be composed of a number of other elements which, in turn, represent the color and size of the car and define its owner."

The data modeling process can be illustrated in the following graph:

Data Modeling Process (source: https://en.wikipedia.org/wiki/Data_model)

When applied to networking, we can apply this concept as an abstract model that describes our network, be it datacenter, campus, or global Wide Area Network. If we take a closer look at a physical datacenter, a layer 2 Ethernet switch can be thought of as a device containing a table of Mac addresses mapped to each ports. Our switch data model describes how the Mac address should be kept in a table, which includes the keys, additional characteristics (think of VLAN and private VLAN), and more. Similarly, we can move beyond devices and map the datacenter in a model. We can start with the number of devices in each of the access, distribution, core layer, how they are connected, and how they should behave in a production environment. For example, if we have a Fat-Tree network, how many links should each of the spine routers have, how many routes they should contain, and how many next-hops should each of the prefixes have. These characteristics can be mapped out in a format that can be referenced against the ideal state that we should always check against.

One of the relatively new network data modeling language that is gaining traction is YANG. Yet Another Next Generation (YANG) (despite common belief, some of the IETF work group do have a sense of humor). It was first published in RFC 6020 in 2010, and has since gained traction among vendors and operators. At the time of writing this book, the support for YANG varied greatly from vendors to platforms. The adaptation rate in production is therefore relatively low. However, it is a technology worth keeping an eye out for.

主站蜘蛛池模板: 西贡区| 美姑县| 泽普县| 绥芬河市| 公安县| 建阳市| 确山县| 盐边县| 安乡县| 禹城市| 沅陵县| 重庆市| 红原县| 泗水县| 崇仁县| 招远市| 富阳市| 阳曲县| 尖扎县| 岑巩县| 阿巴嘎旗| 尼木县| 中方县| 九台市| 娱乐| 噶尔县| 渑池县| 耿马| 平阴县| 包头市| 兴宁市| 吉木乃县| 梁平县| 阳高县| 十堰市| 台山市| 玉田县| 乐安县| 桂平市| 伽师县| 新晃|