ArthurChiao's Blog

Recent Posts

  • 2018-11-07

    Play With Container Network Interface

    A docker container may need more than one network interfaces (virtual or physical NICs).In this post, we will show how to create OVS internal ports and veth paris,and assign them to containers as vNICs.A preview of the network topology:1 Preliminary KnowledgeFollowin...

  • 2018-10-08

    Monitoring Ceph Object Storage

    Ceph is a widely-used distributed file system which supports object storage, block storage, and distributed file system (Ceph FS).We (Ctrip Cloud) use ceph to provide object storage service in our private cloud, with 10+ clusters (for historical reasons, each cluster...

  • 2017-08-28

    Vim Pickups 001(2017)

    整理点 vim 小技巧。如无特殊说明,本文所列命令都是 VIM 内置的,无需额外插件。 1. VIM 别名 2. VIM 打开文件:高级功能 2.1 以二进制模式打开文件 2.2 + 指定额外命令 打开文件后,跳转到第 N 行 打开文件后,跳转到 {pattern} 第一次出现的位置 其他命令 2.3 以 diff 模式打开多个文件 2.4 一次打开多个文件 3 匹配...

  • 2017-08-14

    [译] 简明 x86 汇编指南(2017)

    译者序Translated from CS216, University of Virginia.一份非常好的 x86 汇编教程,国外 CS 课程所用资料,篇幅简短,逻辑清晰,合适作为入门参考。以原理为主,有两个例子帮助理解。其开始提到使用 MicroSoft MASM 和 VisualStudio,但非必须, 事实上如果你有 Linux 更好。本文根据原文内容意译,而非逐词逐句翻译,如需了解更多,推荐阅读原文. 译者序 1. 参考资料 2. 寄存器 3. 内存和寻址模式 3.1 声明静态数据区 ...

  • 2017-03-08

    OVS Deep Dive 6: Internal Port

    This post makes an exploration into OVS internal port.1. BridgeA bridge is a self-learning L2 forwarding device.IEEE 802.1D describes the bridgedefinition.Bridge maintains a forwarding table, which stores {src_mac, in_port} pairs,and forwards packets (more accurately...

  • 2017-03-08

    OVS Deep Dive 5: Datapath and TX Offloading

    1. TX OffloadingFor performance considerations, instances (VMs, containers, etc) often offloadthe checksum job (TCP, UDP checksums, etc) to physical NICs. You could checkthe offload settings with ethtool:$ ethtool -k eth0Features for eth0:rx-checksumming: ontx-checks...

  • 2017-01-07

    OVS Deep Dive 4: OVS netdev and Patch Port

    This post introduces OVS patch port, and compares it with linux veth pair.1. What is OVS patch portAn OVS patch port is like a physical cable plugged fromone (OVS) switch port to another. It is quite similar to Linux vethpair.Indeed, in some situations, these two cou...

  • 2017-01-01

    OVS Deep Dive 3: Datapath

    1. DatapathDatapath is the forwarding plane of OVS. Initially, it is implemented as akernel module, and kept as small as possible. Apart from the datapath,other components are implemented in userspace, and have little dependences withthe underlying systems. That mean...

  • 2017-01-01

    OVS Deep Dive 2: OVSDB

    In this OVS Deep Dive series,I will walk through the Open vSwtich source code to look into the core designsand implementations of OVS. The code is based on ovs 2.6.1.1. OVSDB Overviewovsdb-server provides RPC interfaces to one or more OpenvSwitch databases (OVSDBs). ...

  • 2016-12-31

    OVS Deep Dive 1: vswitchd

    In this OVS Deep Dive series,I will walk through the Open vSwtich source code to look into the core designsand implementations of OVS. The code is based on ovs 2.6.1.1. vswitchd OverviewFig.1. OVS Architecture (image source NSRC[1])As depicted in Fig.1, ovs-vswitchd ...