使用C#管理带宽 [英] Managing Bandwidth with C#

查看:87
本文介绍了使用C#管理带宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个带宽很强的应用程序。


我的可用带宽是1.5Mbps(有线调制解调器)我知道

我可以达到大约1.4Mbps,如果不是更多的话。


我正在编写的应用程序现在只需连接到

新闻组并下载标题。之后它没有再进行特定的编程。但是,应用程序将使用最多100kbps带宽的
。我希望它可以比这更快地运行
并达到接近1.

4Mbps的最大值。


我有什么方法可以使用C#来增加这个带宽除了多线程和多次连接到新闻服务器之外,还有
?我希望如此...我欢迎任何意见。


谢谢。

解决方案

Chibi,


如果有这样的选项,那么你可能需要设置

个别套接字属性(但是,我不知道任何副手,

否则,我会提供它。)


另外,你也受限于另一端的带宽。你知道另一端的NNTP服务器能否支持吞吐量?


希望这会有所帮助。

-

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam .guard.caspershouse.com


" Chibi" <一个******* @ discussions.microsoft.com>在留言中写道

news:07 **************************** @ phx.gbl ... < blockquote class =post_quotes>我正在编写一个带宽很强的应用程序。

我的可用带宽是1.5Mbps(有线调制解调器)我知道
我可以到达1.4Mbps,如果不是更多。

我正在编写的应用程序现在只需连接到
新闻组并下载标题。之后它再也没有做过具体的编程。但是,该应用程序最多将使用100kbps带宽。我希望它可以比它更快地运行并达到接近1.
最大4Mbps的地方。

我有什么方法可以使用C#来增加这个带宽除了多线程和多次连接到新闻服务器之外呢?我希望如此...我欢迎任何意见。

谢谢。



Nicholas,

感谢您的回复。


至于另一端,使用新闻阅读器,我可以不断地将b $ b达到1.4Mbps。我测试了两个应用程序(一个我是
写作和我正在使用的那个)并且

当前的新闻阅读器从来没有任何速度问题。

当然,我不同时同时运行。


我现在必须查看套接字属性。至少

你让我思考了一下。


我感谢你的帮助,希望你或其他任何人阅读

这个可以帮我找到一个好的解决方案。


谢谢!

-----原帖-----
Chibi,

如果有这样的选项,那么你可能需要
来设置个别套接字属性(但是,我不知道
任何否则,我会提供它。

此外,你也受限于其他
结束时的带宽。你知道另一端的NNTP服务器可以支持
那个吞吐量吗?
希望这会有所帮助。

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

赤壁 ; <一个******* @ discussions.microsoft.com>写在
messagenews:07 **************************** @ phx.gbl ...

我正在编写一个带宽很强的应用程序。

我的可用带宽是1.5Mbps(有线调制解调器),而我想知道我可以达到1.4Mbps左右,如果不是更多。

我正在编写的应用程序现在只需将
连接到新闻组并下载标题。之后它没有做任何
更具体的编程。但是,该应用程序最多将使用100kbps带宽。我希望
能比这快得多,并达到接近
1. 4Mbps最大值的地方。

我有什么方法可以用C#来增加这个带宽除了多线程并将多个
次连接到新闻服务器之外?我希望如此...我欢迎任何意见。

谢谢。




Hi Chibi,


IIRC一个TCP连接速度取决于几个因素,一般来说

它和带宽一样快,创造更多的连接将无济于事第一的速度,至少当然你有一些带宽

控制系统到位。

我也很好奇你如何计算

申请的带宽。


干杯,


-

Ignacio Machin,

ignacio.machin AT dot.state.fl.us

佛罗里达州运输部


" Chibi" <一个******* @ discussions.microsoft.com>在留言中写道

news:07 **************************** @ phx.gbl ... < blockquote class =post_quotes>我正在编写一个带宽很强的应用程序。

我的可用带宽是1.5Mbps(有线调制解调器)我知道
我可以到达1.4Mbps,如果不是更多。

我正在编写的应用程序现在只需连接到
新闻组并下载标题。之后它再也没有做过具体的编程。但是,该应用程序最多将使用100kbps带宽。我希望它可以比它更快地运行并达到接近1.
最大4Mbps的地方。

我有什么方法可以使用C#来增加这个带宽除了多线程和多次连接到新闻服务器之外呢?我希望如此...我欢迎任何意见。

谢谢。



I''m writing an application that''s bandwidth intense.

My available bandwidth is 1.5Mbps (cable modem) and I know
I can reach around 1.4Mbps, if not more.

The application I am writing right now simply connects to a
newsgroup and downloads the headers. It doesn''t do any more
specific programmming after that. However, the app will
use, at most, 100kbps bandwidth. I''m hoping that it can run
much faster than that and reach somewhere close to the 1.
4Mbps maximum.

Is there any way I can use C# to increase this bandwidth
aside from multi-threading and connecting multiple times to
the news server? I hope so... I welcome any input.

Thank you.

解决方案

Chibi,

If there is such an option, then you will probably have to set the
individual socket properties (however, I don''t know of any offhand,
otherwise, I would have offered it).

Also, you are limited by the bandwidth on the other end as well. Do you
know that the NNTP server on the other end can support that throughput?

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

"Chibi" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...

I''m writing an application that''s bandwidth intense.

My available bandwidth is 1.5Mbps (cable modem) and I know
I can reach around 1.4Mbps, if not more.

The application I am writing right now simply connects to a
newsgroup and downloads the headers. It doesn''t do any more
specific programmming after that. However, the app will
use, at most, 100kbps bandwidth. I''m hoping that it can run
much faster than that and reach somewhere close to the 1.
4Mbps maximum.

Is there any way I can use C# to increase this bandwidth
aside from multi-threading and connecting multiple times to
the news server? I hope so... I welcome any input.

Thank you.



Nicholas,

Thanks for your reply.

As for the other end, using a newsreader, I can constantly
reach 1.4Mbps. I tested both applications (the one I''m
writing and the one I''m currently using) side by side and
the current newsreader never has any speed issues. Of
course, I''m not running both simultaneously.

I will have to look into socket properties now. At least
you got me thinking a bit.

I appreciate your help and hope you or anyone else reading
this can help me find a good solution.

Thank you!

-----Original Message-----
Chibi,

If there is such an option, then you will probably have to set theindividual socket properties (however, I don''t know of any offhand,otherwise, I would have offered it).

Also, you are limited by the bandwidth on the other end as well. Do youknow that the NNTP server on the other end can support that throughput?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Chibi" <an*******@discussions.microsoft.com> wrote in messagenews:07****************************@phx.gbl...

I''m writing an application that''s bandwidth intense.

My available bandwidth is 1.5Mbps (cable modem) and I know I can reach around 1.4Mbps, if not more.

The application I am writing right now simply connects to a newsgroup and downloads the headers. It doesn''t do any more specific programmming after that. However, the app will
use, at most, 100kbps bandwidth. I''m hoping that it can run much faster than that and reach somewhere close to the 1. 4Mbps maximum.

Is there any way I can use C# to increase this bandwidth
aside from multi-threading and connecting multiple times to the news server? I hope so... I welcome any input.

Thank you.


.



Hi Chibi,

IIRC a TCP connection speed is dependand of several factors, in general
it''s as fast as the bandwith allow, creating more connection will not help
the speed of the first, al least of course that you have some bandwidth
control system in place.

I''m also curious of how you calculate the bandwidth of both the
applications.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Chibi" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...

I''m writing an application that''s bandwidth intense.

My available bandwidth is 1.5Mbps (cable modem) and I know
I can reach around 1.4Mbps, if not more.

The application I am writing right now simply connects to a
newsgroup and downloads the headers. It doesn''t do any more
specific programmming after that. However, the app will
use, at most, 100kbps bandwidth. I''m hoping that it can run
much faster than that and reach somewhere close to the 1.
4Mbps maximum.

Is there any way I can use C# to increase this bandwidth
aside from multi-threading and connecting multiple times to
the news server? I hope so... I welcome any input.

Thank you.



这篇关于使用C#管理带宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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