Cisco Blogs 01月26日
Comment on Explore network programmability with the DevNet XRd Sandbox by abc123
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

XRd是IOS-XR的容器化版本,允许用户在任何本地或云基础设施上进行平台无关的特性实验和部署。它继承了IOS-XR的所有可编程特性,包括遥测和YANG模型,非常适合开发者和网络工程师。XRd沙箱提供了探索网络可编程性的绝佳机会。XRd分为控制平面和vRouter两种变体,沙箱使用控制平面进行实验。沙箱已预配置了必要的内核设置,并使用docker compose进行部署,基于GitHub上的示例拓扑进行构建。通过修改IP地址和使用macvlan驱动,每个XRd容器都有了自己的IP地址。用户可以通过Cisco沙箱页面启动预订,并按照说明创建和启动拓扑,从而熟悉XRd并探索网络协议和可编程用例。

🚀XRd是IOS-XR的容器化版本,可在任何环境部署,并继承了IOS-XR的所有可编程特性,包括遥测和YANG模型,为开发者和网络工程师提供了便利。

🛠️XRd提供两种变体:控制平面和vRouter。控制平面适用于虚拟路由反射器等计算用例,而vRouter则专注于高效转发流量,沙箱主要使用控制平面进行实验。

🐳XRd沙箱使用Docker Compose进行部署,基于GitHub上的示例拓扑,并通过修改IP地址和使用macvlan驱动,确保每个XRd容器拥有独立的IP地址,解决了网络冲突问题。

💡该沙箱不仅提供了一个学习XRd的平台,还支持用户探索各种网络协议(如ISIS、OSPF、BGP、MPLS、SR)以及使用YANG、NETCONF和GNMI进行可编程用例的开发。

XRd is a containerized version of IOS-XR where you can experiment with platform–independent features and deploy them to any on-premises or cloud infrastructure. providing all the benefits of using containers in network operations.  XRd comes with all the programmability aspects from IOS-XR, including Telemetry and YANG models, which makes it ideal for developers and network engineers.  The XRd sandbox provides an excellent opportunity to get started with XRd and explore network programmability.  XRd variants XRd comes in two variants: XRd Control Plane and XRd vRouter. XRd Control Plane is ideal for compute use cases like Virtual Route Reflectors (vRR) or Path Compute Element (PCE). vRouter is designed to forward traffic efficiently and can also handle control plane computations. The XRd Sandbox uses the XRd Control Plane, which is ideal for exploration and experimentation purposes.  Sandbox LabXRd requires specific kernel settings on the host to work properly. The sandbox is already configured with these settings.  There are several ways to deploy XRd, including using Terraform, Helm or Packer. However, we used docker compose for the sandbox because it is simple and easy to manage.  TopologyFor this sandbox, we based on the sample segment-routing topology from the xrd-tools GitHub repository. We used a custom compose format called XR-YAML, and the entire setup will be deployed in a single virtual machine (VM) using Docker Compose.ModificationsA few changes were needed to make the topology work. First, we updared the IP addressing for the management network to match the available resources in the sandbox. Second, we used the macvlan Docker driver so each XRd container had its own IP address instead of sharing the IP address with the host VM. See the XRd Sandbox GitHub repository for details and to explore the config files used to create the sandbox.    DeployThe lab provides everything you need; you’ll only need to create the compose file that will be used by Docker Compose. This file is created using the xr-compose script from xrd-tools. Next, update the compose file (created by xr-compose) to point to the right container interface that will be created by the macvlan driver. The sandbox instructions include the complete list of necessary commands.Start practicingTo start experimenting, look for the XRd sandbox on the Cisco sandbox page.Launch a reservation and follow the instructions. Use the commands to create and start the topology.Use casesThe XRd sandbox is perfect to get familiar with XRd, how to work with it, and to play with native network protocols (e.g., ISIS, OSPF, BGP, MPLS, SR) or to explore programmable use cases with YANG, NETCONF and GNMI.Lessons learnedWhen developing the sandbox, we ran into a challenge. We suddenly lost the SSH connection to the VM when docker compose was creating the topology.It turned out that the links between XRd containers were created using docker bridge, which picked an IP segment used by the sandbox infrastructure, effectively blackholing the traffic. To fix it, we had to configure a default address pool to use an unused IP segment.After applying this configuration, the issue was resolved.Get started with XRdHere are some resources to help you get started with XRd:Additional labs are available on the directory “~/xrd-tools/samples/xr_compose_topos” in the Sandbox.Want to get more content about XRd? Reach out to me on LinkedIn. I’m happy to hear your ideas. Share:

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

XRd 容器化 网络编程 IOS-XR Docker Compose
相关文章