码迷,mamicode.com
首页 > 其他好文 > 详细

How to install Bekeley Extension Software Switch(BESS)?

时间:2017-11-28 19:44:40      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:orm   community   eth   systems   roc   host   依赖   lan   comm   

参考:

Github BESS

How to install Bekeley Extension Software Switch(BESS)?

Introduction

BESS is a modular framework for software switches. BESS itself is not a virtual switch; it is neither pre-configured nor hardcoded to provide particular functionality, such as Ethernet bridging or OpenFlow-driven switching. Instead, you (or an external controller) can configure your own packet processing datapath by composing small "modules". While the basic concept is similar to Click, BESS does not sacrifice performance for programmability.

BESS是一个用于软件交换机的模块化框架, 本身并不是一个虚拟交换机; 它既不用预先配置也不用使用写死的方法来提供特殊功能, 比如以太网桥或OpenFlow驱动的交换. 相反, 你(或者一台额外的控制器)能够通过将小型模块进行组合来配置你自己的数据报处理datapath. BESS的思想类似于Click, 但它不需要为可编程性消耗性能.

Installation

官方的文档给出了安装BESS的方法, 然而会遇到许多问题.

1.Clone BESS:

$ git clone https://github.com/NetSys/bess.git
$ cd bess/

2.安装依赖:

$ sudo apt-get install -y software-properties-common
$ sudo apt-add-repository -y ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install -y ansible
$ ansible-playbook -K -t package -i localhost, -c local env/bess.yml
$ sudo reboot

这一步容易出现ansible安装clang-5.0的错误, 一种解决方法是讲package.yml中安装clang-5.0的语句注释掉, 并人为安装clang-5.0. 详情见: issues#734.

3.设置大页:

# For single-node systems
$ sudo sysctl vm.nr_hugepages=1024

# For multi-node (NUMA) systems
$ echo 1024 | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
$ echo 1024 | sudo tee /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages

4.安装BESS:

$ cd bess/
$ ./build.py

此步会出现DPDK驱动的问题, 原因是BESS是基于老版本的DPDK的, 因此需要安装MLNX_OFED驱动, 方法见: HowTo Install MLNX_OFED Driver. 问题详情见: issues#735.

How to install Bekeley Extension Software Switch(BESS)?

标签:orm   community   eth   systems   roc   host   依赖   lan   comm   

原文地址:http://www.cnblogs.com/qq952693358/p/7911446.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!