Archive

‘Programmer’ 分类存档

Telemetry Receiver by UDP+KV-GPB

In the article, only show as follow (because easy to show how to work):

Protocol: UDP; Port: 5234

Encoding: KV-GPB

For more detailed information, you can reference my colleague’s GitHub, which includes more examples, e.g GRPC.

AlexFengCisco / Telemetry_Receiver

GRPC Update Info:

If use GRPC not TCP/UDP, that will have standard function, you will not need to write “DECODE_FN_MAP…”, function will auto generate, direct to use. Simple list steps:

  1. Get GRPC protobuf (e.g “mdt_grpc_dialout”) from cisco / bigmuddy-network-telemetry-proto
  2. Install/use compile tools, suggest install python virtual env, you can reference 在MacOS中部署Python虚拟开发环境
(telemetry-protocol) [root@telemetry telemetry-protocol]# python -V
Python 3.6.8
(telemetry-protocol) [root@telemetry telemetry-protocol]# easy_install pip
(telemetry-protocol) [root@telemetry telemetry-protocol]# pip install grpcio
(telemetry-protocol) [root@telemetry telemetry-protocol]# pip install protobuf
(telemetry-protocol) [root@telemetry telemetry-protocol]# pip install grpcio_tools
(telemetry-protocol) [root@telemetry telemetry-protocol]# python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. cisco_grpc_dialout.proto
(telemetry-protocol) [root@telemetry telemetry-protocol]# ls -l|grep cisco
-rw-r--r--.  1 root    root       2695 Aug 10 16:16 cisco_grpc_dialout_pb2_grpc.py   #generated
-rw-r--r--.  1 root    root       3805 Aug 10 16:16 cisco_grpc_dialout_pb2.py   #generated
-rw-r--r--.  1 root    root        485 Aug 10 16:15 cisco_grpc_dialout.proto   #proto file  
Follow all file if you need grpc protocol:
[root@telemetry grpc-dailout]# ls -l
total 36
-rw-r--r--. 1 root root  2695 Aug 10 16:16 cisco_grpc_dialout_pb2_grpc.py #Contains the server Stub class and the client Stub class, as well as the service RPC interface to be implemented.
-rw-r--r--. 1 root root  3805 Aug 10 16:16 cisco_grpc_dialout_pb2.py #message serialization classes
-rw-r--r--. 1 root root   484 Aug 10 15:36 mdt_grpc_dialout.proto 
-rw-r--r--. 1 root root  3722 Aug 10 16:11 service_grpc_dialout_no_tls.py #service python
-rw-r--r--. 1 root root 19220 Aug 10 15:58 telemetry_pb2.py  #decode gpb-kv messages, generate as below
grpc-dailout.zip

Install Protobuf of python version

完整阅读

Compile SRv6 uSID and VPP on ubuntu 20.04

PS: Compile Server base on “focal-server-cloudimg-amd64.vmdk”, 20200706 update.

General Config on ubuntu

Config port by new “ip” cmd, and DNS

root@server-test:/opt# ip addr add 10.75.37.59/24 dev ens4
# config addr for one port 
root@server-test:/opt# ip addr del 172.16.1.163/24 dev ens3
# delet addr for one port
root@server-test:/opt# ip addr
# equal with ifconfig
root@server-test:/opt# ip link set ens4 up
# up one port 
root@server-test:/opt# ip -s link ls ens4
# cool cmd, check RX/TX packets, errors, dropped, overrun, mcast
root@server-test:/opt# ip route add default via 10.75.37.1 
# config default route
root@server-test:/opt# ip route
# check v4 route table
root@server-test:/opt# ip -6 route
# check v6 route table
root@server-test:/opt# echo 'nameserver 64.104.123.144' > /etc/resolv.conf

完整阅读

Cisco 网络自动化展示

PS:视频在油管上,需要搭梯子……

Summary intros session, and there are two separate demo sessions to deep dive, as follow:

完整阅读

NSO For NFVO – 01

VNF

VNF(Virtual Network Function):是NFV(Network Function Virtualization)的一个组件,通过VNF,可以屏蔽硬件需求;可以通过VMs使用VNFs部署各种功能

VNFD(VNF Descriptor):描述VNF,在其中VDU(Virtual Decice Unit)将会被定义,等同于单个的VM;简单的VNFD会包含单个VDU,复杂的VNFD会包含多个VDUs;VDU包含vCPU,memory,storage,image,flavor,NIC ID mapping和NED type等;NVFD在ETSI SOL001(YAML)和SOL006(Yang)标准中定义

VNF-info:真实网络连接信息,租户信息,凭据,启动和恢复时间,day0配置,ESC设备名称等

下面是上面几种信息的关系:

完整阅读

New install NSO and Connect with XR by CLI/Netconf NED

Not update any NSO article to my blog, I will put more NSO info to here, wish that will help more guys. The article will include more hands-on experiences, help beginner fast connect xr devices with nso by cli or netconf ned. For netcong NED, build by Pioneer at former, that need to manual exclude the Yang file that no support. In the article, will build netconf ned by native tool of NSO 5.2.0.

Platform Info

[root@nso opt]# ncs --version
5.2.0.1
[root@nso opt]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
RP/0/RP0/CPU0:frank#show ins ac sum
Wed Aug  7 01:53:03.286 UTC
    Active Packages: 1
        xrv9k-xr-6.6.3.14I version=6.6.3.14I [Boot image]

完整阅读

blonde teen swallows load.xxx videos