###### tags: `HPCAI` [TOC] # High Performance Communications ## Networt Metrics ### Terminology #### Channel properties (between two points) - Latency(delay)延遲:一個封包從來源端送出後,到目的端接收到這個封包,中間所花的時間 ![](https://i.imgur.com/Nn8ipqI.png) - Round trip time(RTT):封包往返時間 ![](https://www.researchgate.net/publication/323353729/figure/fig1/AS:597014421176321@1519350738343/Measuring-round-trip-time-RTT-in-a-three-way-handshake-of-the-Transmission-Control.png) - Bandwidth(BW)頻寬 - the rate of passing messages - volume per time ,or frequency (byte per second) ![](https://i.imgur.com/9Epz5k9.png) >BW is the width of a road (cars/sec) >Latency is the length (in hours to drive) - Loss/drop rate - the rate at which a message is sent but not received - 傳出去但沒收到 - Jitter - At the sending side, packets are sent in a continuous stream with the packets spaced evenly apart. - Jitter is when there is a time delay in the sending of these data packets over your network connection. ![](https://miro.medium.com/max/1120/0*83UeXnnyMWz5muV9.jpg) - [Reference](https://www.cisco.com/c/en/us/support/docs/voice/voice-quality/18902-jitter-packet-voice.html) #### Topological properties - Network topology網路拓撲 - shape of network connection (weighted graph of entities) - 指構成網路的成員間特定的排列方式 > Network is a city > The topology is the road map [Reference](https://www.dnsstuff.com/what-is-network-topology) ![](https://assets-global.website-files.com/5debb9b4f88fbc3f702d579e/5f1086baa37c842a30184650_network-topology-types-diagram.png) - [Bisection Bandwidth](https://www.youtube.com/watch?v=SsRcAJfa7J4) - the minimal bandwidth between two halves of the network ![](https://i.imgur.com/WfSwW5e.png) ![](https://i.imgur.com/yvABcU7.png) - Routing protocol dynamics - The way messages are routed across the network - ***Dynamic routing*** is a process where a router forward data via a different routeor given destination within system |路由|動態|靜態| | :------: | ------ | ----------- | |手動輸入|不需要|需要| |缺點|速度慢|如果網路拓撲改變,須更新資料到路由器設備中| |優點|一旦網路架構有任何的改變,不須要做太多事情來管理|速度快、不須經過學習| |適合|有變動的網路拓撲|不會有變動的網路拓撲| :::info **Router路由器** 決定封包從來源端到目的端所經過的路徑(host 到host之間的傳輸路徑) A packet is typically forwarded from one router to another router through the networks ::: #### Application properties - [Traffic composition](https://cloud.google.com/apigee/docs/api-platform/analytics/traffic-composition-dashboard?hl=nb-no#trafficcomposition) ![](https://i.imgur.com/z6hi3Wx.png) - Traffic pattern ![](https://cdn.educba.com/academy/wp-content/uploads/2019/12/communication-network.png.webp) ### Motivation: Hardware improvements ![](https://i.imgur.com/raFejGO.png) ### Throughout - The rate of successful message delivery over a communication channel - Throughput depends on the packet size, jitter and other network properties ![](https://i.imgur.com/emUOMMI.png) ![](https://i.imgur.com/QqGFhE7.png) ![](https://i.imgur.com/1kS2Tsw.png) ![](https://i.imgur.com/bvZ5mtD.png) ![](https://i.imgur.com/f8bTvfv.png) ![](https://i.imgur.com/OV3cCa9.png) ### Point-to-point (p2p) measurements #### ping ![](https://i.imgur.com/rDeNklO.png) #### iperf ![](https://i.imgur.com/uuSVjpf.png) -s : 啟動 Server 模式,如iperf3 -s -c : 啟動 Client 模式,如iperf3 -c xxx.xxx.xxx.xxx(或機器名稱) -t : 監視測量時間,如-t 90設定監測是為90秒 -w : 測試傳輪檔案大小,如 -w20M -i : 指定輸出數據的間隔時間,如-i 3 -p : iPerf3預設會使用的5201連接埠,例如-p 12345來更改 #### [My home Wifi](https://beta.speedtest.net/) ![](https://i.imgur.com/9YpIhnR.png)