openvswitch

云架构师进阶攻略

独自空忆成欢 提交于 2020-02-16 07:56:15
https://mp.weixin.qq.com/s/tHRl5OQHY2mNXqKwACCVWw?utm_source=tuicool&utm_medium=referral 一、架构的三个维度和六个层面 1.1、三大架构 在互联网时代,要做好一个合格的云架构师,需要熟悉三大架构。 第一个是IT架构,其实就是计算,网络,存储。这是云架构师的基本功,也是最传统的云架构师应该首先掌握的部分,良好设计的IT架构,可以降低CAPEX和OPEX,减轻运维的负担。数据中心,虚拟化,云平台,容器平台都属于IT架构的范畴。 第二个是应用架构,随着应用从传统应用向互联网应用转型,仅仅搞定资源层面的弹性还不够,常常会出现创建了大批机器,仍然撑不住高并发流量。因而基于微服务的互联网架构,越来越成为云架构师所必需的技能。良好设计的应用架构,可以实现快速迭代和高并发。数据库,缓存,消息队列等PaaS,以及基于SpringCloud和Dubbo的微服务框架,都属于应用架构的范畴。 第三个是数据架构,数据成为人工智能时代的核心资产,在做互联网化转型的同时,往往进行的也是数字化转型,并有战略的进行数据收集,这就需要云架构师同时又大数据思维。有意识的建设统一的数据平台,并给予数据进行数字化运营。搜索引擎,Hadoop,Spark,人工智能都属于数据架构的范畴。 1.2、六个层面 上面的三个维度是从人的角度出发的

鲲鹏920上安装ovs

浪尽此生 提交于 2020-02-12 16:22:05
1、 安装依赖包 yum install -y python-six selinux-policy-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool 2、 wget https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz 3、 cp openvswitch-2.12.0.tar.gz ~/rpmbuild/SOURCES/ 4、 rpmbuild -bb --without check openvswitch-2.12.0/rhel/openvswitch.spec 5、 yum install -y python-sphinx unbound-devel 6、 rpmbuild -bb --without check openvswitch-2.12.0/rhel/openvswitch.spec 7、 yum localinstall -y ~/rpmbuild/RPMS/aarch64/openvswitch-2.12.0-1.aarch64.rpm 8、 systemctl start

(原创)FEDORA 17安装KVM虚拟机

老子叫甜甜 提交于 2020-01-05 08:43:09
1 软件安装 1.1测试环境和网络拓朴 大部分朋友估计也没有一个真实环境来完全整个的测试,所以我也是使用了在一台PC机上使用Vmware Workstation的方式来进行实验。总体结构是在PC机上安装vmware,vmware上安装fedora_17 64bit,然后在fedora上安装kvm以及openvswitch.在KVM里面安装了centos6.4,并且是最小化安装。我的拓朴图是在完全环境下,其实可以每个fedora17上只起一台或者两台KVM虚拟机,并不需要这么多。 网络交换机,是在单独一台VMWARE虚拟机上安装web-iou的cisco模拟器,因为web-iou支持带lacp的链路聚合,可以和openvswitch进行带lacp的bonding的实验。 这是实验环境,在实际操作中,我还会给每台vmware虚拟机多加一块eth虚拟网卡,并且每个网卡都桥接到真实网络环境,这样子就可以远程securtcrt和vnc进行实验操作了。我这个拓朴是完整的,包括bond也算在内,只是一般测试的话只需要安装一个eth的web-iou和一个eth的fedora 17就可以完全测试。 系统为fedora-17 64位,版本为3.3.4-5.fc17.x86_64 网络拓朴如下: 完整测试环境: 单台测试环境: 1.2需要安装的软件包 软件包版本要求: Gcc : 4.1 or 4.2

Docker container connected by OVS+DPDK, `Ping` work but `iperf` NOT

末鹿安然 提交于 2019-12-12 18:41:20
问题 I am trying to build a platform using Docker , OVS+DPDK . 1. Set up DPDK + OVS I set up DPDK+OVS using dpdk-2.2.0 with openvswitch-2.5.1 . First, I compile the code of DPDK , set up hugepages. I do NOT bind NIC, because I don't get traffic from outside. Then, I compile the code of openvswitch , set with-dpdk . Start up OVS with the following script: #!/bin/sh sudo rm /var/log/openvswitch/my-ovs-vswitchd.log* export PATH=$PATH:/usr/local/share/openvswitch/scripts export DB_SOCK=/usr/local/var

problem with testpmd on dpdk and ovs in ubuntu 18.04

感情迁移 提交于 2019-12-12 13:01:01
问题 i have a X520-SR2 10G Network Card, i gonna use that to create 2 virtual interfaces with OpenvSwitch that compiled with dpdk (installed from repository of ubuntu 18.04) and test this virtual interfaces with testpmd, i do following jobs : Create Bridge $ ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev bind dpdk ports $ ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk options:dpdk-devargs=0000:01:00.0 ofport_request=1 $ ovs-vsctl add-port br0 dpdk1 -- set Interface

OpenFlow Rule Metadata

依然范特西╮ 提交于 2019-12-11 19:14:21
问题 I would like to understand how the Metadata are calculated in an Open Flow rule. cookie=0x6900000, duration=228925.519s, table=17, n_packets=384, n_bytes=35436, priority=10,metadata=0xf30000000000/0xffffff0000000000 actions=write_metadata:0xc000f30000000000/0xfffffffffffffffe,goto_table:211 Example: I have a flow very similar to this. How are exactly the Metadata are Calculated. And how to Intrepret the Metadata Values and Mask Some says new_metadata = old_metadata & ~mask | value & Mask

Automatic add flow to ovs switch that connected to docker hosts

若如初见. 提交于 2019-12-10 11:42:27
问题 I'm working on creating SDN topology with OVS and docker containers as a host. my sample topology is: one ovs switch and 2 hosts(docker container) connected to it. HOST1 (container1) <----> OVS <----> HOST2 (container2) first i start my opendaylight controller and connect my ovs switch to it by " ovs-vsctl set-controller s1 tcp:ip:port " after that i run 2 docker container with " docker run -dit --net=none --name host1 ubuntu:16.04 /bin/bash " and then i used " ovs-docker " command to connect

LXC with Open vSwitch

亡梦爱人 提交于 2019-12-06 03:48:31
问题 I want to try OVS (software Linux switch) http://openvswitch.org/ with my LXC container with Ubuntu as host and guest. So I have installed it: # apt-get install openvswitch-switch Configured according this doc https://infologs.wordpress.com/2015/06/19/how-to-attach-lxc-container-to-ovs-openvswitch/ Created test container: # lxc-create -t ubuntu -n veth03-ovs -- -r trusty Created ovs bridge and assigned IP to it: # ovs-vsctl add-br switch0 # ip add add 192.168.100.1/24 dev switch0 Let it be

SDN实验---使用git安装Mininet

断了今生、忘了曾经 提交于 2019-12-05 04:15:12
一:前提 已经正常安装了SDN环境(mininet和openswitch2.11.0和Ryu) 使用前面教程安装环境 SDN实验---使用git安装Mininet (一)测试ovs是否正常使用 1.ryu启动 2.mn启动测试 二:原始信息 三:实验开始 (一)修改源码:在vport.c和.h中添加代码 1.vport.h文件 //custom function to log info void send_msg(const char* filename,const char* info); //file operation function struct file *file_open(const char *path, int flags, int rights); void file_close(struct file *file); int file_read(struct file *file, unsigned long long offset, unsigned char *data, unsigned int size); int file_write(struct file *file, unsigned long long offset, unsigned char *data, unsigned int size); 2.vport.c文件 //custom

LXC with Open vSwitch

两盒软妹~` 提交于 2019-12-04 07:28:06
I want to try OVS (software Linux switch) http://openvswitch.org/ with my LXC container with Ubuntu as host and guest. So I have installed it: # apt-get install openvswitch-switch Configured according this doc https://infologs.wordpress.com/2015/06/19/how-to-attach-lxc-container-to-ovs-openvswitch/ Created test container: # lxc-create -t ubuntu -n veth03-ovs -- -r trusty Created ovs bridge and assigned IP to it: # ovs-vsctl add-br switch0 # ip add add 192.168.100.1/24 dev switch0 Let it be new network 192.168.100.0/24 and switch0 (according to my understanding) will be first address (gateway)