BESS【1】BESS Overview

BESS is a software switch designed to be extensible and high performance. BESS is the first software switch designed specifically to support Network Functions Virtualization, in addition to traditional virtual networking tasks. You can check out this longer slide-deck for a talk given by BESS's creator Sangjin Han.

To get started with BESS, you should know about four key components of BESS:

bess_arch.jpeg
  • bessd: the "BESS daemon" is the core software switch. The daemon itself carries packets between ports and modules.
  • ports: ports are places that packets may enter or exit bessd. A port can connect to a network interface, to a virtual machine, to a containerized app, or a normal process running in user space.
  • modules: modules are chunks of code that allow bessd to inspect or modify packets. Modules receive and release packets via input and output gates. Some built-in modules include:
    • A round-robin module, which receives packets on one input gate and releases packets in a round-robin fashion over multiple output gates.
    • An ACL module, which receives packets on one input gate, and checks whether the packet header matches a blacklisted firewall rule. Packets which match a blacklisted rule are released on one gate, packets which do not match any blacklisted rule are released on another gate.
  • bessctl: this is the controller for bessd. bessctl offers a command-line interface allowing an administrator to configure which ports are connected to which modules, inspect where traffic is flowing within bessd, and a variety of other useful administrative commands.

In the BESS repository, the code for bessd can be found in core/, the code for ports can be found in core/drivers/, the code for modules can be found in core/modules/ and the code for bessctl can be found in bessctl/. If this is your first time using BESS, don't worry about the code so much -- we'll focus on getting BESS built and running and how to use it first.

Bonus Round: Does BESS Run in the Kernel?

No! BESS is entirely in userspace and binds directly to network interfaces (bypassing the kernel) using DPDK. Avoiding the overhead of the kernel networking stack is part of what makes BESS ultra-fast. Here is the same figure as above, but now with the kernel/user space division in view.


bess_arch_kernel.jpeg
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末车吹,一起剝皮案震驚了整個(gè)濱河市官地,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌臂港,老刑警劉巖仲智,帶你破解...
    沈念sama閱讀 222,104評(píng)論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件娘汞,死亡現(xiàn)場(chǎng)離奇詭異烈钞,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,816評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來水援,“玉大人蒲祈,你說我怎么就攤上這事棚愤。” “怎么了?”我有些...
    開封第一講書人閱讀 168,697評(píng)論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)没隘。 經(jīng)常有香客問我,道長(zhǎng)禁荸,這世上最難降的妖魔是什么右蒲? 我笑而不...
    開封第一講書人閱讀 59,836評(píng)論 1 298
  • 正文 為了忘掉前任,我火速辦了婚禮赶熟,結(jié)果婚禮上品嚣,老公的妹妹穿的比我還像新娘。我一直安慰自己钧大,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,851評(píng)論 6 397
  • 文/花漫 我一把揭開白布罩旋。 她就那樣靜靜地躺著啊央,像睡著了一般眶诈。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上瓜饥,一...
    開封第一講書人閱讀 52,441評(píng)論 1 310
  • 那天逝撬,我揣著相機(jī)與錄音,去河邊找鬼乓土。 笑死宪潮,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的趣苏。 我是一名探鬼主播狡相,決...
    沈念sama閱讀 40,992評(píng)論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼食磕!你這毒婦竟也來了尽棕?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,899評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤彬伦,失蹤者是張志新(化名)和其女友劉穎滔悉,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體单绑,經(jīng)...
    沈念sama閱讀 46,457評(píng)論 1 318
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡回官,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,529評(píng)論 3 341
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了搂橙。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片歉提。...
    茶點(diǎn)故事閱讀 40,664評(píng)論 1 352
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖份氧,靈堂內(nèi)的尸體忽然破棺而出唯袄,到底是詐尸還是另有隱情,我是刑警寧澤蜗帜,帶...
    沈念sama閱讀 36,346評(píng)論 5 350
  • 正文 年R本政府宣布恋拷,位于F島的核電站,受9級(jí)特大地震影響厅缺,放射性物質(zhì)發(fā)生泄漏蔬顾。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,025評(píng)論 3 334
  • 文/蒙蒙 一湘捎、第九天 我趴在偏房一處隱蔽的房頂上張望诀豁。 院中可真熱鬧,春花似錦窥妇、人聲如沸舷胜。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,511評(píng)論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽烹骨。三九已至翻伺,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間沮焕,已是汗流浹背吨岭。 一陣腳步聲響...
    開封第一講書人閱讀 33,611評(píng)論 1 272
  • 我被黑心中介騙來泰國(guó)打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留峦树,地道東北人辣辫。 一個(gè)月前我還...
    沈念sama閱讀 49,081評(píng)論 3 377
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像魁巩,于是被迫代替她去往敵國(guó)和親急灭。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,675評(píng)論 2 359