The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    tcp/udp sessions.

    Discussion in 'Networking and Wireless' started by EricaL, May 26, 2011.

  1. EricaL

    EricaL Notebook Consultant

    Reputations:
    750
    Messages:
    266
    Likes Received:
    2
    Trophy Points:
    31
    hi all.

    we have quite a few systems/phones/gaming consoles connected to the router in our house, and it was being clogged a few minutes ago. we went into the router page, and saw that one IP address had '300' under "UDP Sessions".

    we blocked that IP from accessing the internet via "MAC Filtering", and now everything is working fine. can you tell us what this actually means, because we'd like to be sure? thank you.

    [​IMG]
     
  2. Lithus

    Lithus NBR Janitor

    Reputations:
    5,504
    Messages:
    9,788
    Likes Received:
    0
    Trophy Points:
    205
    A session is a link between two points. For example, if I hit up Google, my browser instantiates a TCP session so I can communicate with Google. Sometimes a single site will open multiple sessions and programs that connect to the internet can open both TCP and UDP sessions simultaneously.
     
  3. EricaL

    EricaL Notebook Consultant

    Reputations:
    750
    Messages:
    266
    Likes Received:
    2
    Trophy Points:
    31
    hi lithus, thanks for the reply. so "300" would mean that that ip was hogging it, right?
     
  4. Lithus

    Lithus NBR Janitor

    Reputations:
    5,504
    Messages:
    9,788
    Likes Received:
    0
    Trophy Points:
    205
    You should secure your wireless connection instead of just leaving it open. It's very easy to change a MAC address to get around MAC filters.
     
  5. EricaL

    EricaL Notebook Consultant

    Reputations:
    750
    Messages:
    266
    Likes Received:
    2
    Trophy Points:
    31
    it's not open, we have it secured (TKIP/AES). it was a house-mate who downloads loads of stuff all the time. like 10 torrents at a time. we have a 100 mbps connection, so most of the time it's not a problem, but sometimes it's not, and kicking him off does the trick.
     
  6. Shyster1

    Shyster1 Notebook Nobel Laureate

    Reputations:
    6,926
    Messages:
    8,178
    Likes Received:
    0
    Trophy Points:
    205
    You might suggest to your roomie that he do something to limit the number of torrents connections he has going at any one time (don't know if that's possible with torrents, but there it is); otherwise your only solution will be, as you've been doing, to kick him off when the network gets slow.

    You could also check your router's configuration page to see if you can set a customized QoS setting that would give lower priority to UDP traffic, at least from his computer, than to other traffic. That would have the effect of making the router the traffic cop and having it throttle his access rate down when things get too congested.

    The basic reason he's become a bandwidth hog is that a lot of torrents clients now use the UDP transport protocol instead of the TCP transport protocol, and UDP - unlike TCP - does not have built-in congestion control. The effect of the congestion controls in TCP is to slow down transmission rates when the network gets too congested, resulting in too many lost/dropped packets; that way, a completed TCP transmission gets finished in a shorter period of time even though it's transmitting at a slower rate because fewer of the transmitted packets are getting lost/dropped.

    UDP - largely because it is a one-way protocol rather than a two-way protocol (i.e., the target doesn't call you back and tell you it's received all your packets) - doesn't have that sort of congestion control built-in and it will merrily keep firing off packets as fast as it can, regardless of how many are getting lost/dropped.

    Basically, UDP acts like the really oblivious driver on the highway who just bulls on ahead, flashing his lights, blowing his horn, and expecting everyone else to get out of his way, while TCP acts more like the driver who conscientously slows down to match her speed to the overall flow of traffic on the highway.

    So, to cut off my meandering narrative before you get too sleepy, it is your roomie's torrents traffic that is monopolizing too much of the available bandwidth, and if your router won't let you set a low QoS priority setting for his UDP traffic, then kicking him off when the network gets too slow is probably the most effective solution. [​IMG]
     
  7. downloads

    downloads No, Dee Dee, no! Super Moderator

    Reputations:
    7,729
    Messages:
    8,722
    Likes Received:
    2,248
    Trophy Points:
    331
    Number of connections (hence the number of TCP & UDP sessions) can be limited in any torrent client so that's a solution no 1- as suggested by Shyster1.

    It's also possible that the house-mate is not to blame at all. Some routers track lost sessions for far too long- another words when someone disconnects (which happens all the time with P2P) router remembers this connection and keeps it open for far too long. Linksys used to have this value set to 3600 seconds while it should be 20-30.seconds for P2P user.

    Default D-Link software doesn't allow this value to be changed but DD-WRT does and DIR-615 is supported. Just an option- I understand you don't want to play with these settings as it's not your problem but your house-mate may be interested in a setup that allows you all to use internet comfortably.
     
  8. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    If it's bittorrent, it could be DHT clogging up the connection table in your router. The longer the torrent client is open the more connections and bandwidth DHT will take up. You can simply ask them to restart their torrent client application every day at least.

    As downloads said the timeout for connections on the router can often be way too long (up to 3 days as the default!).

    More details here at the bottom: RTorrentUsingDHT ? The libTorrent and rTorrent Project
     
  9. EricaL

    EricaL Notebook Consultant

    Reputations:
    750
    Messages:
    266
    Likes Received:
    2
    Trophy Points:
    31
    thanks guys.

    a friend has installed 'dd-wrt' on our router and put keywords in there in 'access restrictions'.

    only question is how to block torrents? does anyone know?

    thank you.
     
  10. newsposter

    newsposter Notebook Virtuoso

    Reputations:
    801
    Messages:
    3,881
    Likes Received:
    0
    Trophy Points:
    105
    Remember that when an application closes, the OS doesn't necessarily close out the tcp/udp connections right away. Nor will the router. Things persist for a while, sometimes quite a while.

    And to complicate things even more, just because a socket is open DOES NOT mean that traffic is flowing nor it it an indication as to how much traffic might have been flowing in the past.

    There is a lot more to analyzing network loads than just looking at open sockets.