[asterisk-bugs] [Asterisk 0017255]: [patch] UDP ports not freed/ports leaking

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 9 19:25:11 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17255 
====================================================================== 
Reported By:                kvveltho
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17255
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.2.7-rc2 
JIRA:                       SWP-1410 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-04-28 06:23 CDT
Last Modified:              2011-02-09 19:25 CST
====================================================================== 
Summary:                    [patch] UDP ports not freed/ports leaking
Description: 
The following is not fixed:

These release candidates resolve an issue with UDP ports not being freed,
per
issue https://issues.asterisk.org/view.php?id=16774
(https://issues.asterisk.org/view.php?id=16774)

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016774 [patch] [regression] 1.6.1.13 and 1.6.1...
related to          0018121 Early bind of UDPTL ports can create a ...
====================================================================== 

---------------------------------------------------------------------- 
 (0131766) loloski (reporter) - 2011-02-09 19:25
 https://issues.asterisk.org/view.php?id=17255#c131766 
---------------------------------------------------------------------- 
rgagnon,

As per the management they decided to simmer your patch using sipp first
with satisfying results.

root at pbx:~# sipp -sn uac -d 20000 -s 9999 192.168.0.101 -l 100 -r 25
Resolving remote host '192.168.0.101'... Done.
------------------------------ Scenario Screen -------- [1-9]: Change
Screen --
  Call-rate(length)   Port   Total-time  Total-calls  Remote-host
25.0(20000 ms)/1.000s   5061   30356.76 s       104108 
192.168.0.101:5060(UDP)

  0 new calls during 28.603 s period     1 ms scheduler resolution
  100 calls (limit 100)                  Peak was 100 calls, after 4 s
  0 Running, 0 Paused, 0 Woken up
  313 dead call msg (discarded)          98 out-of-call msg (discarded)   
   
  3 open sockets                        

                                 Messages  Retrans   Timeout  
Unexpected-Msg
      INVITE ---------->         104108    397575    79498              
         100 <----------         24427     0         0         178      
         180 <----------         24287     0         0         0        
         183 <----------         24306     0         0         30       
         200 <----------  E-RTD1 24400     0         0         0        
         ACK ---------->         24400     0                            
       Pause [    20.0s]         24400                         3        
         BYE ---------->         24299     1616      100                
         200 <----------         24199     0         0         0        

------------------------------ Test Terminated
--------------------------------


----------------------------- Statistics Screen ------- [1-9]: Change
Screen --
  Start Time             | 2011-02-09	23:01:22:871	1297263682.871822      
     
  Last Reset Time        | 2011-02-10	07:26:51:058	1297294011.058730      
     
  Current Time           | 2011-02-10	07:27:19:663	1297294039.663554      
     
-------------------------+---------------------------+--------------------------
  Counter Name           | Periodic value            | Cumulative value
-------------------------+---------------------------+--------------------------
  Elapsed Time           | 00:00:28:604              | 08:25:56:791       
     
  Call Rate              |    0.000 cps              |    3.429 cps       
     
-------------------------+---------------------------+--------------------------
  Incoming call created  |        0                  |        0           
     
  OutGoing call created  |        0                  |   104108           
     
  Total Call created     |                           |   104108           
     
  Current Call           |      100                  |                    
     
-------------------------+---------------------------+--------------------------
  Successful call        |        0                  |    24199           
     
  Failed call            |        0                  |    79809           
     
-------------------------+---------------------------+--------------------------

On a non patch Asterisk

root at pbx:/usr/src/asterisk# sipp -sn uac -d 20000 -s 9999 192.168.0.101 -l
100 -r 25 
Resolving remote host '192.168.0.101'... Done.
------------------------------ Scenario Screen -------- [1-9]: Change
Screen --
  Call-rate(length)   Port   Total-time  Total-calls  Remote-host
25.0(20000 ms)/1.000s   5061     216.34 s          700 
192.168.0.101:5060(UDP)

  0 new calls during 44.480 s period     1 ms scheduler resolution
  100 calls (limit 100)                  Peak was 100 calls, after 4 s
  0 Running, 0 Paused, 0 Woken up
  0 dead call msg (discarded)            0 out-of-call msg (discarded)    
   
  3 open sockets                        

                                 Messages  Retrans   Timeout  
Unexpected-Msg
      INVITE ---------->         700       400       0                  
         100 <----------         600       0         0         0        
         180 <----------         600       0         0         0        
         183 <----------         600       0         0         0        
         200 <----------  E-RTD1 600       62        0         0        
         ACK ---------->         600       62                           
       Pause [    20.0s]         600                           0        
         BYE ---------->         600       900       100                
         200 <----------         500       0         0         0        

------------------------------ Test Terminated
--------------------------------


----------------------------- Statistics Screen ------- [1-9]: Change
Screen --
  Start Time             | 2011-02-10	08:32:00:107	1297297920.107316      
     
  Last Reset Time        | 2011-02-10	08:34:52:004	1297298092.004321      
     
  Current Time           | 2011-02-10	08:35:36:485	1297298136.485391      
     
-------------------------+---------------------------+--------------------------
  Counter Name           | Periodic value            | Cumulative value
-------------------------+---------------------------+--------------------------
  Elapsed Time           | 00:00:44:481              | 00:03:36:378       
     
  Call Rate              |    0.000 cps              |    3.235 cps       
     
-------------------------+---------------------------+--------------------------
  Incoming call created  |        0                  |        0           
     
  OutGoing call created  |        0                  |      700           
     
  Total Call created     |                           |      700           
     
  Current Call           |      100                  |                    
     
-------------------------+---------------------------+--------------------------
  Successful call        |        0                  |      500           
     
  Failed call            |        0                  |      100           
     
-------------------------+---------------------------+--------------------------
  Response Time 1        | 00:00:00:000              | 00:00:01:506       
     
  Call Length            | 00:00:09:904              | 00:00:24:357       
     
------------------------------ Test Terminated
--------------------------------

2011-02-10	08:34:52:696	1297298092.696356: Aborted call with Call-ID
'700-11506 at 127.0.1.1'.
sipp: There were more errors, enable -trace_err to log them.

Therefore, we decided to apply your patch on our 4 major boxes. will let
you know how is it going. Thank you!!!!!!


Regards,

Ronald 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-09 19:25 loloski        Note Added: 0131766                          
======================================================================




More information about the asterisk-bugs mailing list