ArthurChiao's Blog

Recent Posts

  • 2019-11-25

    [译] 标准错误 stderr 的诞生(2013)

    译者序本文翻译自 2013 年的一篇英文博客 The Birth of Standard Error。从这则故事可以看出,即使是对这些极富传奇色彩的大佬,“需求是第一生产力” 也是成立的。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。今天早些时候,Stephen Johnson 在 The Unix Heritage Society(Unix 遗产学会)的 mailing list 中描述了标准错误(stderr)概念是如何诞生的,其思想是:应该通过一个独立于正常输出(normal output...

  • 2019-11-23

    [译] C 不是一门低层(low-level)语言(acmqueue, 2018)

    译者序本文翻译自 C Is Not a Low-LevelLanguage,acmqueue Volume 16,issue 2(2018.04.30),原文副标题为 Your computer is not a fast PDP-11。作者David Chisnall。本文观点非常独特,甚至招来了老牌黑客 Eric S. Raymond(开源运动发起者之一,开源领袖,代表作《大教堂和大集市》等)写了一篇长文作为回帖:Embrace theSICK。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。...

  • 2019-11-09

    [译] 编程语言中的 6 种内存模型(2016)

    译者序本文翻译自一篇英文博客 The memory models that underlie programminglanguages,截至本文翻译时,原文最后一次更新是在 2016 年。作者似乎是计算机和编程领域的老兵,除了高屋建瓴地分析这 6 种横跨半个多世纪的内存模型之外,还举重若轻地点评了如下几十种语言、库或系统(大部分都是编程语言):Forth、morden Lisps、Haskell、ML、Python、Ruby、PHP5、Lua、JavaScript、Erlang、Smalltalk、Java、C#、Assembl...

  • 2019-10-27

    Host Disconnect Caused by Istio Sidecar Injection

    1 Problem 1.1 Phenomemon 1.2 Environment Info 2 Minimum reproducing scheme 3 Trouble Shooting 3.1 Check ingress/egress traffic interrupt 3.2 Check iptables rules 3.3 Check drops 3.4 Capture all host traffic 3.5 Fur...

  • 2019-10-26

    Cilium Network Topology and Traffic Path on AWS

    This post explores the network topology and traffic path between twocross-host Pods in a Cilium powered K8S cluster on AWS. We will use general Linuxcommands to fulfill this task. At the end of this post, we will get a picturelike this:Besides, we’ll also look into t...

  • 2019-10-16

    [译] 400 行 C 代码实现一个虚拟机(2018)

    译者序本文翻译自 2018 年的一篇英文博客 Write your Own Virtual Machine。文章介绍如何用 400 行左右的 C 代码实现一个虚拟机,该虚拟机能够运行标准的 LC-3 汇编程序。不过要注意,本文所说的“虚拟机”是指 JVM 或者 Erlang Beam 那种虚拟机(解释器),并不是 VirtualBox 或 VMWare 启动的那种有完整操作系统的虚拟机。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。 译者序 1. 引言 什么是虚拟机? ...

  • 2019-10-13

    OVS Unknown Unicast Flooding Under Distributed L2 Gateway

    TL; DRIn a distributed L2 gateway environment (e.g. Spine-Leaf), misconfigurations ofARP aging time may cause OVS unicast flooding. And, the behaviors ofdistributed L2 gateway products vary among different vendors.1 Problem DescriptionAn internal user reported that t...

  • 2019-10-13

    OVS balance-slb bond Forwards Unknown Unicast

    TL; DRIn some cases, OVS 2.5.6 bond with mode balance-slb will forward the unknownunicast[4] traffic it received from one physical NIC back into the physical networkthrough another NIC, which will result in a L2 loop with physical network,this in turn will cause the ...

  • 2019-10-11

    Beneath the TCP Handshakes in Modern Networking Infrastructures

    TCP 3-way Handshake 1. Scenario 1 1.1 Phenomenon: SYN -> SYN+ACK -> RST 1.2 Capture 1.3 Analysis 1.4 Root Cause 1.4.1 The Short Answer 1.4.2 The Long Answer 2. Scenario 2 2.1 Phe...

  • 2019-10-09

    [译] Cilium:BPF 和 XDP 参考指南(2019)

    本文部分内容已过时,最新版见:Cilium:BPF 和 XDP 参考指南(2021)。译者序本文翻译自 Cilium 1.6 的官方文档:BPF and XDP Reference Guide。本文对排版做了一些调整,以更适合网页阅读。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。 本文的目标读者是 “希望在技术层面对 BPF 和 XDP 有更深入理解的开发者和用户”。虽然阅读本文有助于拓宽读者对 Cilium 的认识,但这并不是使用 Cilium 的前提条件。BPF 是 Linux 内核中一...