当前位置:网站首页>Specific help of OSI layered model to work
Specific help of OSI layered model to work
2022-06-23 07:11:00 【Strong learning】
For example, it is necessary to optimize the performance of complex systems , We can think and practice from different perspectives .
- In the application layer, not only two indicators should be considered :TPS( Transactions per second ) and QPS( Query rate per second ), And consider the average size of each message .
- If you want to improve the performance optimization of handshake or symmetric encryption , It is essentially optimized at the presentation layer , need TLS Security layer to discuss performance optimization .
- Yes RTT( Network delay ) When optimizing , In essence, we think from the transport layer , You need to consider the throughput of the network card 、 Of the entire host BPS.
- If you want to TCP When optimizing the performance of reliable transmission , You can think about adding TCP Speed of connection handshake , This is to consider the problem at a very deep optimization level .
- If you want to PPS( Per second packet) When optimizing , In essence, the problem is considered from the network layer . For example, the back-end or operation and maintenance personnel use Intel DPDK, It is essentially optimized at the network layer .
- If the data link layer is optimized , So more attention should be paid to broadcasting and ARP The deception of .
- How to choose load balancing ? Load balancing consists of three layers 、 four layers 、 Seven layer load balancing . Seven layer load balancing is used to resolve various protocols in the application layer . At the fourth floor, it can only be resolved to UDP perhaps TCP. The three-layer load balancing is the network layer load balancing , use NET And other technologies to balance the burden , For example, common LVS.
Case a : Alibaba cloud ECS Storage optimization . In the Alibaba cloud environment , There are many virtual machines running on a physical machine ( Purchased ECS The server , In essence, what you buy is a virtual machine ). If you buy a cloud disk , The cloud disk is automatically attached to the virtual machine . On any virtual machine IO operation , In essence, it will be called through the physical machine TTC The program , Forward it to the remote storage cluster . Before optimization , Storage cluster cache The cache is placed at the remote end . When placed at the far end , How to optimize ?
Standing on the network layer ( Three layers ) When optimizing from the angle of , The transmission path of the network is too long . There is another problem with long transmission paths , For example, the back-end cloud disk ensures reliability , Will make twoorthree copies , This will cause the cost to be too high . If you move the cache forward , Directly on the physical machine will shorten the path .
Case 2 : How to reduce the cost of multi-threaded multiplexing ? For example, a physical computer runs 20 A virtual machine , On average, each virtual machine contains a system disk and a data disk . Add up to 40 A plate .40 Disks use multithreading to solve problems . But multithreading can cause multiplexing , The cost will be higher . So how to reduce the cost of multiplexing ? The original multi-threaded architecture is replaced by a co process , In essence, it is optimized at the transport layer .
Case 2 : Alibaba cloud uses classic networks , Intranet IP yes 10 At the beginning A Class subnet address , What is used today is B Class subnet address , The network is essentially running in VPC perhaps SDN( Software Defined Network ), This network is on the data link layer or between the data link layer and the network layer (2.5 layer ). It's essentially in rp Message and ip tunnel Conceptual writing .
边栏推荐
- Idea automatically generates serialVersionUID
- Endnote20 tutorial sharing (unfinished
- MySQL redo log redo log
- ssm + ftp +ueditor
- C # how to obtain DPI and real resolution (can solve the problem that has been 96)
- 300. longest increasing subsequence
- [shell] tree command
- 【项目实训10】箭头的绘制
- 深度学习系列47:styleGAN总结
- Mongodb record
猜你喜欢

QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse

产品-Axure9(英文版),原型设计 制作下拉二级菜单

XML DTD record

20220621 Three Conjugates of Dual Quaternions

别找了诸位 【十二款超级好用的谷歌插件都在这】(确定不来看看?)

深度学习系列47:styleGAN总结
![[STL] summary of pair usage](/img/ba/72697f0f8bf018f1b5884e9cc2be4e.png)
[STL] summary of pair usage

Open source oauth2 framework for SSO single sign on
![[STL] summary of map usage of associated containers](/img/1d/1b6488ea47face0548500b1e1ec60d.png)
[STL] summary of map usage of associated containers

Regular expression graph and text ultra detailed summary without rote memorization (Part 1)
随机推荐
307. 区域和检索 - 数组可修改
899. 有序队列
云原生落地进入深水区,博云容器云产品族释放四大价值
Detailed explanation of callback function
898. 子数组按位或操作
Vs2013 ffmpeg environment configuration and common error handling
直播回顾 | 传统应用进行容器化改造,如何既快又稳?
Regular expression graph and text ultra detailed summary without rote memorization (Part 1)
Run typescript code directly using TS node
[QT] basic learning notes
301. 删除无效的括号
MySQL重做日志 redo log
深度学习系列47:styleGAN总结
900. RLE iterator
897. 递增顺序搜索树
1161 Merging Linked Lists
901. stock price span
Some difficulties in making web pages
406-双指针(27. 移除元素、977.有序数组的平方、15. 三数之和、18. 四数之和)
在金融行业做数据产品经理是什么体验