This is an expanded version of my talk at NginxConf 2017 on September 6, 2017. As an SRE on the Dropbox Traffic Team, Iâm responsible for our Edge network: its reliability, performance, and efficiency. The Dropbox edge network is an nginx-based proxy tier designed to handle both latency-sensitive metadata transactions and high-throughput data transfers. In a system that is handling tens of gigabit
Good morning! In a recent blog post we explained how to tweak a simple UDP application to maximize throughput. This time we are going to optimize our UDP application for latency. Fighting with latency is a great excuse to discuss modern features of multiqueue NICs. Some of the techniques covered here are also discussed in the scaling.txt kernel document. CC BY-SA 2.0 image by Xiaojun Deng Our expe
#ã¯ããã« Linux Advent Calendar 10 æ¥ç®ã®è¨äºã§ãã éç¨ãç 究éçºã®ç¾å ´ã§ã¯ãã½ããã¦ã§ã¢ã®å®é¨ãã¾ãã¯æ©å¨ã®ãã¹ããé¸å®ãªã©ã®ããã«ããã³ããã¼ã¯ãã¼ã«ãèªåã®ã¢ããªã±ã¼ã·ã§ã³ã§ã³ã³ãã¥ã¼ã¿éã®éä¿¡é度ãè¨æ¸¬ããæ©ä¼ãå¤ã ããã¨æãã¾ããä¸æ¹ã§10Gbpsã40Gbpsã¨ãã£ãæ¨ä»ã®é«éãããã¯ã¼ã¯ã«ããã¦ã¯ããããã®è¨æ¸¬çµæã¯ã¢ããªã±ã¼ã·ã§ã³ã®éä¿¡APIé¨åã®å®è£ ãã«ã¼ãã«ãã©ã¡ã¼ã¿ã¾ãã¯ã³ã³ãã¤ã«ãªãã·ã§ã³ã«ãã£ã¦å¤§ããå¤ãã£ã¦ãã¾ããããæ£ç¢ºãªè¨æ¸¬ãè¡ãããã«ã¯ããããæ£ããè¨å®/ç解ããå¿ è¦ãããã¾ãããã®è¨äºã§ã¯ããããã¯ã¼ã¯å¨ãã®ã«ã¼ãã«ã¨ã¢ããªã±ã¼ã·ã§ã³ã®åä½ã®æ¦è¦ã¨ããã®ä¸ã®éè¦ãªãã¤ã³ããç解ãããã¨ãç®çã«ãã¾ãã #ãããã¯ã¼ã¯ããã°ã©ãã³ã°ã®ãããã ã¾ãæåã«ãTCPã使ãä»æã®ãµã¼ãããã°ã©ã ãã©ã®ããã«ã§ãã¦ãããç°¡åã«ããããã
1. Linux Networking Explained LinuxCon 2016, Toronto Thomas Graf (@tgraf__) Kernel, Cilium & Open vSwitch Team Noiro Networks (Cisco) 2. Did you catch part I? â Part II: LinuxCon, Toronto, 2016 Linux Networking Explained Network devices, Namespaces, Rou"ng, Veth, VLAN, IPVLAN, MACVLAN, MACVTAP, Bonding, Team, OVS, Bridge, BPF, IPSec â Part I: LinuxCon, Sea,le, 2015 Kernel Networking Walkthrough Th
As for any firewall, iptables is able to do network statistics reporting. the -v (âverbose) option along with the list switch (-L) show packets and bytes counters. Network stats are available on a per rule basis. Here is an example on the INPUT chain: [stats@linux_server]$ sudo iptables -nvL INPUT Chain INPUT (policy DROP 74941 packets, 7900K bytes) pkts bytes target prot opt in out source destina
Network monitoring on Linux This post mentions some linux command line tools that can be used to monitor the network usage. These tools monitor the traffic flowing through network interfaces and measure the speed at which data is currently being transferred. Incoming and outgoing traffic is shown separately. Some of the commands, show the bandwidth used by individual processes. This makes it easy
Linux Network Namespace ã使ã㨠1 ã¤ã® Linux ãã¹ãã®ä¸ã«ä»®æ³çãªãããã¯ã¼ã¯ç°å¢ãè¤æ°ä½ãããä»åã¯ãµã¼ããã²ã¼ãã¦ã§ã¤ãã¯ã©ã¤ã¢ã³ãã® 3 ã¤ã®ãã¼ã ã¹ãã¼ã¹ãä½ã£ã¦éä¿¡ããã¦ã¿ãããã®æ©è½ã使ãã«ã¯æ°ããã® Linux ã«ã¼ãã«ã¨ãã¼ã«ç¾¤ãå¿ è¦ã¿ãããªã®ã§ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«ã¯ Ubuntu 13.04 ã使ã£ãã
1 Gbit/s network cards have been available for some time now and 10Gbit/s cards have recently become available. However achieving rates of the order of Gigabits per second is not straightforward. It requires careful tuning of several components in the end systems. This document aims to provide information of how to configure end systems to achieve Gbit/s data transfers. Before you begin with the c
ãã¾ã«ã¯Linuxãã¿ãã Listenããã¯ãã°ã¯ãä¼çµ±çãªUNIXã®å®è£ ã ã¨ãSYN_RCVDã¨ESTABLISHEDã®ä¸¡æ¹ã®ã½ã±ããæ°ãæ°ãã¾ãããLinuxã®ããã¯ESTABLISHEDãªç¶æ ã®æ°ã ããæ°ããããã«ãªã£ã¦ãã¾ã(manãè¦ã)ã ããã¯ä½ã§ãã¨ããã¨ãããããSYN Floodingæ»æã¸ã®å¯¾å¿ã¨ãã¦ãLinuxã¯syncookieãå®è£ ãããã¨ã®å¯ä½ç¨ãªã®ã ã¨æãã¾ããsyncookieãå®è£ ãã¦ããã¨ãSYNã«å¯¾ãã¦SYN_ACK(COOKIE)ãè¿ãã³ã¹ããã»ã¼ã¼ãï¼ã¡ã¢ãªã³ã¹ãã¨ãã¦ã¯ï¼ã«ãªãã®ã§ãæ¥ãSYNã«ãã¹ã¦SYN+ACKãè¿ããã¨ãå¯è½ã§ãã ãããã£ã¦ãSYN_RCVDã®æ°ã¯æ°ãã¦ãæå³ããªããªã£ãã®ã§ãããã¯Listenããã¯ãã°ã®æ°ã¨ãã¦ã«ã¦ã³ãããªãããã«ãããã¨ãããã¨ã®ããã§ãï¼å³å¯ã«è¨ãã¨ãtcp_max_syn_backlogåã¾ã§
In my article detailing the command line utilities available for configuring and troubleshooting network properties on Windows and Linux, I mentioned some Linux tools that, while still included and functional in many Linux distributions, are actually considered deprecated and therefore should be phased out in favor of more modern replacements. Specifically, the deprecated Linux networking commands
ã¯ã©ã¹ã¿æ§æã®ãµã¼ãã§ã¯ãé害çºçå¾ã«ã¯ã©ã¤ã¢ã³ããããã«å¾©æ§ããªãå ´åãããã¾ãããµã¼ãå´ããã§ã¤ã«ãªã¼ãããå¾ã«ã¯ã©ã¤ã¢ã³ãå´ãåæ¥ç¶ããã¾ã§ã®æéãçãããæ¹æ³ãç´¹ä»ãã¾ãã ã¯ã©ã¤ã¢ã³ããããµã¼ãã«æ¥ç¶ããã¨ã½ã±ããã¯ESTABLISHEDã«ãªãã¾ããããESTABLISHEDã«ãªã£ãã½ã±ããã§æ£ãããã±ãããéä¿¡ãããªãã£ãå ´åãOSã¯åéã試ã¿ã¾ããåéã«å¤±æãã¦ã½ã±ãããã¯ãã¼ãºããã¾ã§ã®æéã¯OSã®è¨å®ã«ããã¾ãã OSãTCPæ¥ç¶ã®ç°å¸¸ãæ¤ç¥ãã¦ããã¯ãã¼ãºããã¾ã§ã®æéãçãããã«ã¯3ã¤ã®æ¹æ³ãããã¾ãã ãã±ããã®åéåæ°ãå°ãªãããã TCPã¬ã¤ã¤ã§Keep Aliveãã±ãããéä¿¡ããããã®æ¹æ³ã¯TCP Keep Aliveã«å¯¾å¿ãã¦ããã¢ããªã®ã¿å¯è½ã ã¢ããªã±ã¼ã·ã§ã³ã¬ã¤ã¤ã§Keep Aliveãã±ãããéä¿¡ããããã®æ¹æ³ã¯Nullãã±ãããæããçã«å¯¾å¿ãã¦
Much of today's Internet traffic takes the form of short TCP data flows that consist of just a few round trips exchanging data segments before the connection is terminated. The prototypical example of this kind of short TCP conversation is the transfer of web pages over the Hypertext Transfer Protocol (HTTP). The speed of TCP data flows is dependent on two factors: transmission delay (the width of
The document discusses techniques for improving network and I/O performance between the network interface card (NIC) and CPU. It describes technologies like TCP offloading, receive side scaling, and Intel I/O acceleration features that distribute processing load away from the CPU to improve throughput and reduce latency. Optimization goals include more efficiently handling interrupts and direct me
以å(2010å¹´)ã«ãã¢ããªã±ã¼ã·ã§ã³ããã«ãã¹ã¬ããã§ããã«ãã³ã¢CPUãæ´»ãããªã件ãã¨ããã¨ã³ããªã«ã¦CPUã®ã³ã¢ãå¢ãã¦ãå²ãè¾¼ã¿å¦çãåæ£ãããªãã®ã§ã¹ã±ã¼ã«ãããªãã¨æ¸ãããã©ããã®å¾Linux Kernelã«RPS/RFSãªãæ©è½ã追å ãããå²ãè¾¼ã¿å¦çãåæ£ã§ããããã«ãªããCentOS 6.2 ã§ã使ãããããã®ã§è©¦ãã¦ã¿ã¾ããã RPS/RFSã«ã¤ãã¦ã®ç´¹ä»ã¯ VIOPS06ã§ãRPSã»RFSçææ°Linux Kerneläºä¾ãã¨é¡ãã¦ã話ãã¦ãã¾ãã http://d.hatena.ne.jp/syuu1228/20110722/1311322653 Linuxå æ ¸ RPS/RFSåè½è¯¦ç»æµè¯åæ http://www.igigo.net/archives/204 ã詳ããã2çªç®ã®ã¯ã»ã¼èªããªããã©ãæ§è½æ¯è¼ã®ã°ã©ããåãããããã ä»å試ãããµã¼ãã¯ã OS: C
ã¯ããã« ã¨ããç°å¢ã®è©±ãinternalã®Linuxãµã¼ãã§bonding(ãã³ãã£ã³ã°)ãçµãã§ãã¾ãããmodeã¯4ã802.3ad(LACP)æºæ ã®ãªã³ã¯ã¢ã°ãªã±ã¼ã·ã§ã³ãªã¢ã¼ãã§ãã ã¡ãªã¿ã«ãbondingã¨ã¯ã»ã»ã» ã¡ãªã¿ã«ã"bonding"ã¨ã¯ããããã¯ã¼ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ãåé·å(ã¾ãã¯è² è·åæ£)ããæ¹æ³ã§ãè¤æ°ã®NICãæãã¦1æ¬ã«è¦ãããã¨ãã§ãã¾ãããã¼ãã³ã°(teaming)ã¨å¼ã°ãããããã¾ããã ã§ãLinuxã§ã¯bondingã«ãããã¤ãã¢ã¼ãããã£ã¦ãè¤æ°ã®ããªã·ã¼ã®ä¸ããé¸æãããã¨ãã§ãã¾ãã balance-rr å㯠0 - èé害æ§ã¨ãã¼ããã©ã³ã·ã³ã°ã®ããã©ã¦ã³ãããã³ããªã·ã¼ãè¨å®ãã¾ããå©ç¨å¯è½ãªç¬¬ 1 ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ããããããã®ãã³ãã£ã³ã°ãããã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§éåä¿¡ãé 次è¡ããã¾ãã active-backup åã¯
This page contains a quick reference guide for Linux tuning for Data Transfer hosts connected at speeds of 1Gbps or higher. Note that most of the tuning settings described here will actually decrease performance of hosts connected at rates less than 1Gbps, such as most home users. Note that the settings on this page are not attempting to achieve full 10G with a single flow. These settings assume y
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}