Networking Forums

Networking Forums > Computer Networking > Linux Networking > Connection counter Libnids (¥Max number of TCP streams reached´)

Reply
Thread Tools Display Modes

Connection counter Libnids (¥Max number of TCP streams reached´)

 
 
mr-timtaler
Guest
Posts: n/a

 
      09-13-2006, 01:57 PM
Hello experts,

I have problems with the libnids library (Linux) and hop that one of you
can help me. I've implemented a small tool to sniffs the network traffic
especially on port 25 using the library libnids v. 1.21 with libpcap v.
0.9. When the programs runs approximately 24 hours the message "Max number
of TCP-Streams reached" is sent to syslog. The libnids docs (PERFORMANCE)
mentions this error message. The author describes the reason as caused
possible by low CPU performance when having much trafic. But the CPU is
70% idle.

I added a new parameter to the struct nids_params called num_tcp_con.
This parameter contains the number of concurrent TCP-sessions handled by
the libnids library (value from variable called tcp_num in tcp.c of
libnids). The value of tcp_num is allways compared with the given maximum
number of concurrent sessions (nids_params.n_tcp_streams, e.g. 1040). The
traffic is not very high (2-5 sessions / sec.) and everything is working
fine. A session is established and the counter increments. After the end
of the session the connection counter decrements. But during the day I
notice that the counter becomes bigger and bigger. It looks like that some
TCP sessions are not processed by the libnids library. When I disconnect
from the internet some connections are closed (tcp_num counter decrements)
but the counter still shows many active connections. I tested my small
programm in a "clean" network with exclusively smtp traffic and
everything is working fine. :-(

Does anybody have the same problem and an idea for the solution?
I appreciate any hint. Thanks in advance.

kind regards,
Tim

PS: If you think this content should be placed in another newsgroupe,
please give me a hint.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS6 + NLB - the network location cannot be reached fabio Windows Networking 5 09-14-2007 08:28 PM
Traffic counter Trevor Broadband 3 11-14-2006 08:07 PM
The network location cannot be reached Mezlo Windows Networking 0 11-16-2005 11:00 PM
Connection Number is uo to 8 Mike L. Wireless Networks 0 09-24-2005 04:55 PM
BT Broadband download limit reached!!! fLiPMoD£ Broadband 9 05-08-2005 05:15 PM



1 2 3 4 5 6 7 8 9 10 11