Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Playing around with congestion settings
08-17-2012, 06:21 PM (This post was last modified: 08-17-2012 06:23 PM by accident.)
Post: #1
Playing around with congestion settings
When I was playing around with the youtube app on the 200 series, I tried to see if there might be other network stack options that would help users with poor playback work. I didn't really find too much but there was 1 setting that really improved my personal usage of the 200 series. I posted it for the beta team to play around with and i've tried it on both 200 and 300 series and overall, I like the change.

ECN (Explicit Congestion Notification):

This is the novice description of what it does. It may not be 100% technically accurate but it should help you understand what it's doing.

ECN alters the way packets are handled when there is congestion (not enough room for the packet to be sent). Normally the packet is just dropped and eventually the receiver says I didn't get it and it's resent as multiple smaller packets. ECN sometimes allows the packet to still be sent with information added that there is congestion along the path. This allows data to flow a little smoother and faster action can be taken to reduce the size of each packet which can impact how fluid you receive things..

For ECN to work:

- The pch needs to have it enabled.

The setting below tells the pch to inform every device it's connecting to that it can and wants to use ECN. It also enables it to tell devices connecting to it that it wants to use ECN.

- the device your connecting too also must be enabled to use it.

The below has some beta team help looking into options:

Windows Desktop versions appear to have it disabled. You can enable it
and it's pretty simple to do so if you want to experiment. I don't recommend you enable it unless you are storing your media files on a windows desktop version.

windows 8: I have not installed the just finished w8 to see what it's settings are.

WHS 2003 (original): There is a hotfix to update the tcp/ip stack in server 2003 to add in congestion control including ECN. There are no settings and this cannot be uninstalled. I have been testing it and not sure it helped and may have hurt performance. I don't recommend it unless you are willing to need to uninstall it. The patch is not for WHS but for Server 2003 if you go looking for it. WHS original is server 2003 with a new gui.

WHS 2008 and Windows Server 2008: Unknown, I don't not have a test install of this version to see what the setting is.

Linux: My unbuntu server and my nas's appear to have it setup to use ECN if asked but will not announce it can do it. This setting will make it work. You can also adjust linux installs for ECN. The exact same command (add sudo in front of it) will temporarily enable it.

OSX: Unsure what their stack is set too.

- It only helps new connections:

A new connection means a connection that was made AFTER the command was in. If your drive was already mounted, it would not use the setting until it remounted for example.

ECN Works best when:

- The network devices between the 2 end points also support ecn.

You really have no control over this. Packets can be dropped by any router or switch inbetween your pch and the server/device your communicating with. With some luck, it will make a difference when talking to internet servers. As described above, it may still drop the packet instead of adding that there is congestion along the path.

There should be no interference from your local network for local devices like a pch and nas or pch and computer acting like a nas.

What I discovered in my tests:
- my yamj/eversion jukebox stored on my nas via a SMB or NFS-TCP share got really fast.
- a test nmj setup also appeared to speed up. (database stored on nas via smb share)
- ff, rw and starting of playback appears to have less of a delay.
- internet steams from youtube, revision3, etc seemed to start faster and play smoother.
- I staged a torrent+playback test where I maxed out a c200 with a torrent. Then I played from my nas. I found the video to stutter without the setting and play back well with the settings.

2 ways to add it to the pch:

1: Telnet in and type the command. It will be lost on reboot but it's a good way to try it to see if it improves your experience.

2: Add it to your start_app csi script. Unlike other instructions for adding things to this file, you want it near the start (second line). It only impacts new connections so any mounts you have wouldn't not use it if the command is added after the mounting of drives. reboot the pch after adding it to make sure it kicks in.

The command:
Code:
echo 1 > /proc/sys/net/ipv4/tcp_ecn

It might be worth playing with if you want. Just wanted to pass on my findings and improvement in performance with NAS playback.
Find all posts by this user
Add Thank You Quote this message in a reply
08-17-2012, 10:04 PM
Post: #2
RE: Playing around with congestion settings
So if anyone tries it, I'd like to know how it worked out for you.. I didn't really notice the impact until I removed the setting and wanted it back.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [A-110] Port forwarding - Internet settings beckyboo 1 938 04-06-2013 08:37 AM
Last Post: beckyboo
  NFS Settings for A400 rickboy62 6 2,307 01-03-2013 10:51 PM
Last Post: 0xJay
  ISO files not Playing (a-300) styopa 0 751 08-12-2012 01:13 PM
Last Post: styopa
  Q: Optimal Filezilla FTP Settings with the A300 ? Rambler 2 2,044 04-15-2012 04:39 PM
Last Post: db-nmt
  PCH A-300 not playing Symbolic links setup on D212+ Davy Geerts 3 2,188 04-07-2012 03:52 AM
Last Post: accident
  Network card power management settings dvuber 0 1,674 02-27-2012 07:42 PM
Last Post: dvuber
  Problem playing MKV from PCH C-200 (Internal HD) on Samsung D8000 fdamata 1 1,917 11-30-2011 01:32 PM
Last Post: lcjulu
  Playing Movie Over Lan minnewildsota 1 1,127 10-26-2011 03:54 AM
Last Post: chris57
  playing local network streams using A210 giladmichael 0 1,075 09-16-2011 09:19 AM
Last Post: giladmichael
  Playing files located on PCH across network? dougwt 3 1,874 04-26-2011 04:25 PM
Last Post: hetfield

Forum Jump: