Osamu Sayama's Weblog
sunray bandwidth limit
SunRay2 で WAN 接続で使っていたりすると、YouTube などの動画画面にアクセスすると描画が急に重くなったりします。これはサーバーから動画の UDP パケットが大量に投げられるが処理しきれずに Lost パケットになってしまう。特にこの大量のパケットによってマウスやキーボード、音声のパケットまでもがうまく受け付けられなくなってしまって不便です。utcapture で見てみると Lost packet が数十パーセントとかになっているのがわかります。この現象はサーバー側のネットワークがクライアントのネットワークに比べて速いときにおきるようで、基本的にはサーバー側でパケットの量を調整しているらしいのですが、ヘビーパケット用には最適になっていないようです。こんなときに 4.0 の GUI firmware メニューに Advanced -> Bandwidth Limit というのがあります。これは Bandwidth を bps 単位で指定します (ThinGuy の bandwidth が参考になります) 。たとえば 1Mbps でしたら 1024000 と指定する。私の環境はケーブルで使っていて vpn 接続だとだいたい平均 10Mbps ぐらいなので、これ以下にすればだいぶ lost packet がへります。8Mbps 以下にすると描画の compression が on になるようで、確かに 8Mbps 以下にしたほうが動画がスムーズです。当初 7Mbps ぐらいに設定 して使っていましたが音声のノイズが少し気になりいまは 4Mbps (4096000) に設定して使ってます。あまり下げすぎると今度は全体のパフォーマンスが下がるので、4-8 Mbps あたりで調整して使えばよいかと思います。動画はそこそこの動きですが、キーボードやマウスもスムーズに使え音声 (動画を隠して音声だけにして計ると平均帯域は約 0.8Mbps) もしっかり聞こえてなかなかよいです。
1280x1024 の解像度で firefox で Sun Ray Presentation にアクセスして、ethereal で計測したグラフを以下に示します。上が何も設定しないときで、peak で 2000000bytes/s (16Mbps) を越えていますが、設定後は 400000bytes/s (3.2Mbps) ぐらいに収まっています。
Posted at 08:50午後 6 23, 2008 by sayama in Desktop | 投稿されたコメント[2]
I'd love to see an English version of this.
Posted by Jim Laurent on 6月月 23日, 2008年 at 10:49 午後 JST #
Hi, here is the English translation.
===
When using SunRay2 on low bandwidth like WAN, a drawing becomes suddenly heavy if you access the animation screen such as YouTube. This is because a large amount of UDP packets are thrown out by the server and some of packets become a lost packet. Especially if mouse, keyboard or sound packets are lost, we feel that it is inconvenient. When seeing with utcapture command, we can look many lost packets. This problem often occurs if SunRay server is using Gigabit Ethernet. For such a case, there is Bandwidth Limit setting menu in 4.0 GUI firmware (Advanced. -> Bandwidth Limit). For instance, if it is 1Mbps, it should be specified by 1024000. My home environment is used with the cable network and average of transfer speed is about 10Mbps. So if I set it to under 10Mbps, a lost package could be reduced. Further, it looks that animation is more smooth if it is set to under 8Mbps because the compression of packet is turned on. So first I set it to 7Mbps however now I'm using 4Mbps (4096000) because I felt some of noise. Decreasing bandwidth causes poor drawing performance , so I recommend that it should be set between 4 - 8 Mbps as possible.
The following two graphs are measured by ethereal program and the resolution of 1280x1024 with firefox. The first graph is before setting bandwidth. It shows a peak bandwidth is over 2000000bytes/s (16Mbps). The second graph is after setting to 4Mbps. This shows a peak bandwidth becomes under 400000bytes/s (3.2Mbps).
Posted by sayama on 6月月 25日, 2008年 at 09:15 午後 JST #