一个有趣的wifi http服务器之谜...请帮忙 [英] an intriguing wifi http server mystery...please help

查看:57
本文介绍了一个有趣的wifi http服务器之谜...请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我希望这个帖子对这个群体没问题。


这是我的交易:


我家里的LAN上有两台电脑。

一台桌面。一台笔记本电脑。

两台计算机都是无线启用的(并且也启用了有线)。


我运行了一个相当简单的HTTP服务器(用python编写),我

可以在任何一台计算机上运行。

当计算机连线时,一切都很酷,无论哪台计算机都是服务器。

但是当计算机是无线的时,服务器上的哪台计算机确实很重要。

如果笔记本电脑是服务器,那么服务器速度很慢在服务页面。

如果桌面是服务器,那么一切都很好(即快速)。


以下是我测试服务器的条件$

1)

笔记本有线,客户端

桌面有线,服务器

太棒了!

网页在2秒内送达


2)

笔记本有线,服务器

Deskop有线,客户

太棒了!

网页在2秒内送达


3)

笔记本无线,clien t $ / $
桌面无线,服务器

太棒了!

网页在2秒内送达


4)

笔记本电脑无线,服务器

桌面无线,客户端

CRAP!

网页服务时间90秒

到底发生了什么?

什么可能导致只有一个方向的减速?

具体来说,为什么服务器在笔记本电脑是如此之慢无线,

但不是桌面无线时吗?

和电脑速度无关紧要,对,因为,在有线

条件下,两台计算机都表现相同。

服务器几乎完全基于以下服务器:
http://aspn.activestate.com/ASPN/Coo.../Recipe/259148


如果有人有线索,请告诉。

谢谢,

荷荷巴

解决方案

jo****@gmail.com 写道:

1)
笔记本电脑有线,客户端
桌面有线,服务器
伟大!
网页服务2秒钟

2)
笔记本有线,服务器
Deskop有线,客户
GREAT!
网页服务2秒钟

3)
笔记本电脑无线,客户端
桌面无线,服务器
太棒了!<网页服务2秒钟

4)
笔记本电脑无线,服务器
桌面无线,客户端
CRAP!
网页服务90秒

到底发生了什么?




请发布您的路由表,如果您要引用您的服务器机器

按名称,您的名称服务器地址(Linux上的/etc/resolv.conf)。

-

Paul McNett
http://paulmcnett.com
HTTP:/ /dabodev.com


Paul McNett写道:

jo **** @ gmail .com写道:

1)
笔记本有线,客户端
桌面有线,服务器
好!
网页服务在2秒内

2)
笔记本有线,服务器
台式有线,客户端
伟大!
网页服务2秒钟

3)
笔记本电脑无线,客户端
桌面无线,服务器
GREAT!
网页服务2秒钟

4)
笔记本电脑无线,服务器
桌面无线,客户端
CRAP!
网页服务90秒

到底发生了什么?



请发布您的路由表,如果您按名称引用您的服务器机器,那么您的名称服务器地址(Linux上的/etc/resolv.conf)。



我倾向于同意,你的客户和服务器可能会花费很多

不同的路线到达每个o然后是90ms


你好了,


请原谅这里的无知。

我我很乐意向你展示你的要求,但我不确定

你要求的是什么(新手在这里)。


所有这些联系(即客户端 - 服务器连接)在我的

局域网内。


我有一个简单的linksys 802.11b路由器。

我的服务器设置为说,192.168.1.100,端口9999,

,我的客户端设置为192.168.1.101


我加载服务器,然后转到客户端计算机webbrowser和

输入http://192.168.1.100:9999


你伙计们可能已经知道了这一点,所以让我知道我是否需要更具体的



再次感谢您的快速回复!

荷荷巴


Hi,
I hope this post is ok for this group.

Here''s my deal:

I have two computers on my LAN at home.
One desktop. One laptop.
Both computers are wireless enabled (and wired enabled too).

I have running a fairly simple HTTP server (written in python) that i
can run on either computer.
When the computers are wired, everything is cool, no matter which
computer is the server.
But when the computers are wireless, it does matter which computer is
the server.
If the laptop is the server, the server is super slow at serving pages.
If the desktop is the server, then everything''s fine (i.e. fast).

Here are the conditions i tested the server under.

1)
Laptop wired, client
Desktop wired, server
GREAT!
webpage served in 2 seconds

2)
Laptop wired, server
Deskop wired, client
GREAT!
webpage served in 2 seconds

3)
Laptop wireless, client
Desktop wireless, server
GREAT!
webpage served in 2 seconds

4)
Laptop wireless, server
Desktop wireless, client
CRAP!
webpage served in 90 seconds
What the heck is happening?
What could be causing the slowdown in only one direction?
Specifically, why is the server so slow when the laptop is wireless,
but not when the desktop is wireless?
And computer speed cannot matter here, right, since, in the wired
conditions, both computers performed equally.
The server is almost entirely based on the server found at:
http://aspn.activestate.com/ASPN/Coo.../Recipe/259148

If anyone has a clue, please tell.
Thanks,
jojoba

解决方案

jo****@gmail.com wrote:

1)
Laptop wired, client
Desktop wired, server
GREAT!
webpage served in 2 seconds

2)
Laptop wired, server
Deskop wired, client
GREAT!
webpage served in 2 seconds

3)
Laptop wireless, client
Desktop wireless, server
GREAT!
webpage served in 2 seconds

4)
Laptop wireless, server
Desktop wireless, client
CRAP!
webpage served in 90 seconds
What the heck is happening?



Please post your routing tables and, if you are referencing your server machine
by name, your name server addresses (/etc/resolv.conf on Linux).
--
Paul McNett
http://paulmcnett.com
http://dabodev.com


Paul McNett wrote:

jo****@gmail.com wrote:

1)
Laptop wired, client
Desktop wired, server
GREAT!
webpage served in 2 seconds

2)
Laptop wired, server
Deskop wired, client
GREAT!
webpage served in 2 seconds

3)
Laptop wireless, client
Desktop wireless, server
GREAT!
webpage served in 2 seconds

4)
Laptop wireless, server
Desktop wireless, client
CRAP!
webpage served in 90 seconds
What the heck is happening?



Please post your routing tables and, if you are referencing your server machine
by name, your name server addresses (/etc/resolv.conf on Linux).


i''m inclined to agree, your client and server might be taking totally
different routes to get to each other and hence the 90ms


Hi again,

Please excuse any ignorance here.
I would love to show you what you are asking for, but I am not sure
what you are asking for (newbie here).

All these connections (i.e. client-server connections) are within my
local area network.

I have a simple linksys 802.11b router.
My server is set to say, "192.168.1.100", port 9999,
and my client is set to say, "192.168.1.101"

I load up the server, then go to the client computer webbrowser and
enter "http://192.168.1.100:9999"

You guys probably already know this, so let me know if i need to be
more specific.
Thanks again for the rapid response!
jojoba


这篇关于一个有趣的wifi http服务器之谜...请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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