网卡对HTTP请求的速度有多大影响 [英] How much does the network card impact speed of HTTP requests

查看:109
本文介绍了网卡对HTTP请求的速度有多大影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我对HTTP请求有一般性问题。让我们假设我们会做很多HTTP请求,其中我们以速度


10/100 Mb(PCI)

来最大化网卡

现在我想知道我是否更换网卡以加快速度。这会有所不同(我确实拥有最快的互联网可用电缆,因此不是瓶颈)


10/100/1000 Mbps(PCIe)


我的问题是,上述案例中的网卡速度对HTTP请求的影响有多大。例如,它可能是5,10,15秒内的100个请求。


HTTP请求各约为50 KB 。


谢谢!

解决方案

< blockquote>

进行一些计算:如果您收到100个50 KB的请求,这意味着您必须提供5 MB的数据。如果每5秒收到一次这些请求,平均最多返回5秒就会返回5MB,这意味着每秒1 MB,
或大约每秒10兆比特(通过传输时计算一些开销)网络)。


这将最大化一个10 mbps的网卡,如果使用这种卡,你会发现响应迟缓。但是100 mbps的卡几乎不会注意到负载。无需升级到1000 mbps。


请记住,网络的其余部分必须完成任务。如果您通过慢速路由器或与发送请求的客户端连接速度较慢,那么拥有一块非常快的网卡对您没有任何帮助。


Hello!

I have a general question about HTTP requests. Let us assume that we will do alot of HTTP requests where we Max out a network card with the speed

10/100 Mb (PCI)

Now I wonder if I change network card to speed the below speed. Will this make a difference(I do have the fastest internet avaliable cable wise in the house so that is not a bottle neck)

10/100/1000 Mbps (PCIe)

My question is, how much does the network card speed in above case impact alot of HTTP requests. It could be 100 requests in a 5,10,15 seconds for example.

The HTTP requests are about 50 KB each.

Thank you!

解决方案

Do some calculations: If you receive 100 requests for 50 KB, this means that you have to serve 5 MB of data. If these requests are received every 5 seconds, you have a maximum of 5 seconds on average to return the 5MB, which translates into 1 MB per second, or around 10 megabits per second (counting for some overhead when transmitting over the network).

This would max-out a 10 mbps network card, and you would notice a sluggish response if using such a card. But a 100 mbps card will barely notice the load. No need to upgrade to 1000 mbps.

Remember that the rest of the network has to be up to the task. It won't do you any good to have a very fast network card if you then go through a slow router or have a slow connection to the clients that are sending the requests.


这篇关于网卡对HTTP请求的速度有多大影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆