服务器为什么要比PC更快,更频繁地将数据包运送到iPhone?

发布于 2025-02-10 07:47:18 字数 429 浏览 1 评论 0原文

简要概述: 我正在板上运行Keil的HTTP Web服务器。 HTML页面运行一个JavaScript循环,每50毫秒每50毫秒获取文件dynamic.cgx。

当网络上只有一个单数设备时,该文件每50ms可靠地传递一次,平均得出1-2ms。当另一个设备连接的那一刻,数据包交付放慢了速度,等待超过500毫秒来响应提取请求。

在iPhone上,不会发生此问题。可以看到一些放缓,但几乎没有达到PC的水平。这不是由于iPhone Google浏览器的运行良好,因此这不是由于Safari。

wireshark with with with with with with 1 pc

Brief overview:
I am running Keil's HTTP Web Server on a board. The HTML page runs a JavaScript loop which fetches the file dynamic.cgx every 50 milliseconds.

When only a singular device is on the network, the file is delivered reliably every 50ms, the fetch taking 1-2ms on average. The moment another device connects, packet delivery slows down, waiting more than 500ms to respond to the fetch request.

On an iPhone, this issue does not occur. A bit of slowdown is seen, but not nearly to the level of the PC. This is not due to Safari, as the iPhone Google browser worked equally well.

WireShark with 1 PC

WireShark with PC + Device (PC POV)

I can't packet sniff with a mobile device right now, so those aren't included

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文