多个IP [英] Multiple IPs

查看:47
本文介绍了多个IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的服务器有8个IP,默认为121.232.21.1(示例)。

我写了一个从网上下载播客(mp3)的Windows服务。

但是每次运行此服务时,它都会阻塞整个服务器,即使它不是带宽密集的,也可能是b $ b。 (100Mbps线路上30kps)

处理资源最多20%

我想知道是否有人知道导致此问题的原因。什么
$ c $ b命令在c#中可以用来为服务分配一个不同的IP来下载,即

121.232.21.5可能会有助于解决这个问题。


Fred

Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download ie
121.232.21.5 maybe that would help with the problem.

Fred

推荐答案

Fred,


听起来很奇怪你将拥有8张具有相同IP

地址的NIC卡。这肯定会导致一些问题。为什么你这么多?b $ b很多?添加额外的NIC卡不会给你从网上下载

的任何优势,因为瓶颈是实际的网络管道。


至于改变使用不同的IP下载的服务(并且它听起来好像你没有下载,而是提供mp3),那就是

取决于服务本身。它可能不提供命令行方式来改变它所使用的IP地址。


-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Fred" < fr ******* @ yahoo.com写信息

新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
Fred,

It sounds strange that you would have eight NIC cards with the same IP
address. That''s certainly going to cause some problems. Why do you have so
many? Adding extra NIC cards is not going to give you any edge in
downloading from the web, as the bottleneck is the actual network pipe.

As for changing the service to use a different IP to download (and it
sounds like you aren''t downloading, but rather, serving up the mp3s), that''s
dependent on the service itself. It might not offer a command line way to
change whatever IP address it''s using.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fred" <fr*******@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

我们的服务器有8个IP,默认为121.232.21.1(例子)。

我写了一个下载播客的Windows服务(mp3s)关闭网络。

但是每次这项服务运行时它都会堵塞整个服务器,即使它不是带宽密集的,也可能是b $ b。 (100Mbps线路上30kps)

处理资源最多20%

我想知道是否有人知道导致此问题的原因。什么
$ c $ b命令在c#中我可以用来为服务分配不同的IP来下载

即121.232.21.5也许这有助于解决这个问题。


Fred
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server, even
though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download
ie 121.232.21.5 maybe that would help with the problem.

Fred



2007年7月18日星期三22:17:38 -0700,Fred< fr ** *****@yahoo.comwrote:
On Wed, 18 Jul 2007 22:17:38 -0700, Fred <fr*******@yahoo.comwrote:

我们的服务器有8个IP,默认为121.232.21.1(例子)。

I写了一个从网上下载播客(mp3)的Windows服务。

但是每次运行这个服务都会堵塞整个服务器,即使它不是带宽密集的,也是b $ b 。 (100Mbps线路上30kps)
Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server,
even though its not that bandwidth intensive. (30kps on a 100Mbps line)



为什么你认为下载速度只有30kbps?你是否实现了代码

专门用于限制你的下载?


如果是这样,你应该发布你认为没有做你想做的代码

它要做。没有代码就很难回答这个问题。


当然,如果你真的有一个100Mbps的互联网连接,那么就不会有b $ b _single_文件下载以使您的带宽饱和,因为

另一端(托管服务器向您发送数据)极不可能

能够快速提供数据。但是a)一个100Mbps的互联网

连接是非常不寻常的(所以你似乎不太可能是b
)b)如果你试图下载许多文件一次,

实际上甚至可以使100Mbps连接饱和。


Pete

Why do you think that the download is only 30kbps? Did you implement code
specifically to throttle your downloads?

If so, you should post the code that you think is not doing what you want
it to do. It''s hard to answer the question without the code.

Of course, if you really have a 100Mbps Internet connection, one would not
expect a _single_ file download to saturate your bandwidth, since the
other end (the hosting server sending you the data) is highly unlikely to
be able to serve up the data that fast. But a) a 100Mbps Internet
connection is extremely unusual (so it seems unlikely that''s what you
really have) and b) if you were to try to download many files at once,
that could in fact saturate even a 100Mbps connection.

Pete


对不起,如果我在第一篇文章中不够清楚。服务器只有1个网卡

但是分配了8个IP地址。

实际上它不是使用默认IP的服务它就是一切。如果我

使用ie并转到它使用121.232.21.1的网页。

如何让我的应用程序知道多个IP并指定哪一个

使用?
sorry if i wasn''t clear enough in the first post. the server has only 1 NIC
but has 8 ip addresses assigned to it.
actually it''s not the service that uses the default ip it''s everything. if i
use ie and go to a web page it uses 121.232.21.1.
How can I make my app aware of the multiple IPs and specify which one to
use?

至于更改服务以使用不同的IP下载(并且它

听起来像你不是下载,而是提供mp3s,

,这取决于服务本身。它可能不提供命令行

方式来改变它正在使用的任何IP地址。
As for changing the service to use a different IP to download (and it
sounds like you aren''t downloading, but rather, serving up the mp3s),
that''s dependent on the service itself. It might not offer a command line
way to change whatever IP address it''s using.



我自己写了这个服务,所以我可以访问源代码。只需要

就知道要使用的正确c#语句。


Fred


Nicholas Paldino [。 NET / C#MVP]" < mv*@spam.guard.caspershouse.com写在

消息新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl .. 。

I wrote the service myself so I have access to the source code. just need to
know the correct c# statement to use.

Fred

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP03.phx.gbl...


弗雷德,


听起来很奇怪,你将拥有8块具有相同IP的NIC卡

地址。这肯定会导致一些问题。你为什么这么多?
这么多?添加额外的NIC卡不会给你从网上下载任何优势,因为瓶颈是实际的网络管道。
Fred,

It sounds strange that you would have eight NIC cards with the same IP
address. That''s certainly going to cause some problems. Why do you have
so many? Adding extra NIC cards is not going to give you any edge in
downloading from the web, as the bottleneck is the actual network pipe.


>

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Fred" < fr ******* @ yahoo.com写信息

新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
>
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fred" <fr*******@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

>我们的服务器有8个IP,默认为121.232.21.1(例子)。
我写了一个下载播客的windows服务(mp3s)关闭网络。
然而,每次这项服务运行时,它都会堵塞整个服务器,即使它不是带宽密集的。 (100Mbps线路上30kps)
最大20%的处理资源
我想知道是否有人知道导致此问题的原因。我可以使用c#中的命令为服务分配不同的IP来下载
即121.232.21.5可能会有助于解决问题。

Fred
>Our server has 8 IPs with 121.232.21.1 as default (example).
I wrote a windows service that downloads podcasts (mp3s) off the net.
However every time this service runs it clogs down the entire server,
even though its not that bandwidth intensive. (30kps on a 100Mbps line)
Process resource at 20% max.
I would like to know if anyone knows what is causing this problem. What
command in c# can I use to assign the service a different IP to download
ie 121.232.21.5 maybe that would help with the problem.

Fred



这篇关于多个IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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