Results 1 to 7 of 7

Thread: Question about Glacier2.Client.SleepTime

  1. #1
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189

    Question about Glacier2.Client.SleepTime

    "Glacier2.Client.SleepTime = num" is used to protecting router and back-end servers against denial-of-service attacks from malicious clients.

    As Ice manual says:
    Code:
    If num is set to a value larger than zero, the Glacier2 router sleeps for the specified number of milliseconds after forwarding all queued requests from a client. This prevents the client from flooding the router with requests. This property is only relevant when Glacier2.Client.Buffered=1. ...
    That is, the router just buffers the requests from malicious clients instead of discarding them. So can it really protecting back-end servers against denial-of-service attacks ?
    For example, we set Glacier2.Client.SleepTime=500 (0.5 second), then just several malicious clients can flood the back-end server by denial-of-service attacks.

    Maybe in my view, it would be better that another config item such as Glacier2.Client.NumOfBufferedRequests can be added. That is, during the Glacier2 router's sleeping time, only Glacier2.Client.NumOfBufferedRequests requests can be buffered, other requests would be discarded.
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  2. #2
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Are there any comments ? Thx!
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  3. #3
    beagles's Avatar
    beagles is offline Registered User
    Name: Brent Eagles
    Organization: Eagles Technologies Inc
    Project: Asterisk SCF
    Join Date
    Feb 2003
    Location
    Newfoundland
    Posts
    111
    Sorry, the documentation is a little misleading. Glacier2.Client.SleepTime is not intended as a security feature. The 'sleep' in request processing is to provide opportunity for batching and overrides (see the Glacier2 section of the Ice documents for further details).

    A anti-flooding security feature would probably do something like throttling the rate at which Glacier2 reads requests from the network. If the server is being "flooded", the network buffers would eventually fill up and TCP/IP flow control would slow down the incoming traffic.

    We'll fix the Glacier2.Client.SleepTime documentation for the next release. Thanks for pointing this out!
    Last edited by beagles; 11-16-2006 at 08:49 AM.
    Brent Eagles
    Digium/Eagles Technologies Inc
    St. John's, NL

    Project(s): Asterisk SCF

  4. #4
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Thanks, beagles. Do you mean that currently there is no way for Glaicer2 to protect against flooding attack ?

    As you say:
    Quote Originally Posted by beagles
    A anti-flooding security feature would probably do something like throttling the rate at which Glacier2 reads requests from the network. If the server is being "flooded", the network buffers would eventually fill up and TCP/IP flow control would slow down the incoming traffic.
    If we can control the number of buffered request(<=Glacier2.Client.NumOfBufferedRequests) and do not read any more the network (suppose this control is per client based), maybe this problem can be solved. Do you think so ?
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  5. #5
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    I have read again newsletter: Advanced Use of Glacier2
    ( http://www.zeroc.com/newsletter/issue2.pdf )

    Page 9 - "Denial of Service" has talked about this issue. However, it seems that it is not corrent.
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  6. #6
    beagles's Avatar
    beagles is offline Registered User
    Name: Brent Eagles
    Organization: Eagles Technologies Inc
    Project: Asterisk SCF
    Join Date
    Feb 2003
    Location
    Newfoundland
    Posts
    111
    My colleagues will correct me if I am wrong, but Glacier2 currently doesn't provide a mechanism that specifically controls the number of requests that are queued or processed in a given period.

    Adding anti-flooding security is on our TODO list.
    Brent Eagles
    Digium/Eagles Technologies Inc
    St. John's, NL

    Project(s): Asterisk SCF

  7. #7
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Quote Originally Posted by rc_hz
    If we can control the number of buffered request(<=Glacier2.Client.NumOfBufferedRequests) and do not read any more the network (suppose this control is per client based), maybe this problem can be solved.
    After a sleep, I think that this solution can not work if the client provides a callback object(that is, the connection between client and glacier2 is bidirectional).
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. client glacier2 issues
    By cloudwafancy in forum Help Center
    Replies: 1
    Last Post: 03-17-2010, 07:19 AM
  2. Get the client's IP from behind Glacier2
    By Pompei2 in forum Help Center
    Replies: 4
    Last Post: 08-24-2009, 05:11 AM
  3. Question about Glacier2
    By shoulder in forum Help Center
    Replies: 5
    Last Post: 07-03-2008, 08:09 AM
  4. Question about Glacier2
    By davidcr1983 in forum Help Center
    Replies: 2
    Last Post: 08-10-2006, 04:13 PM
  5. Client with several Glacier2 routers
    By GJ Giezeman in forum Help Center
    Replies: 1
    Last Post: 04-01-2005, 07:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •