forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Interesting Observation

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Oct 23, 2005 2:38 am    Post subject: Interesting Observation Reply with quote

OK this is probably directed at PGWare but interesting to say the least. Im developing a really intense product right now and have been using vdsipp for awhile now in most of my internet based applications. So tonight I decided that I was gonna port some of the applications from vdsipp to vdstcp suite which I just purchased this past week. I left 1 application still use vdsipp and all the other have since been changed due to the nature of what im trying to do. Interesting enough though is that when I open up a bunch of sockets in vdstcp those applications behave but the last application to use vdsipp CPU spikes and it only has 1 socket that it is listening on. I an nmapping the client that this is running on. What appears to be happening but I cant confirm is that nmap opens up all 99 sockets on the last remaining vdsipp application causing the CPU to go through the roof. Now since the product is a security product I cant let this slide so I am gonna change the last remaining application to vdstcp but was wondering if this is normal. If so basically nmapping a host that has ANY vdsipp listening sockets will cause the system to max out on CPU. I confirmed this. If you nmap a host that has vdsipp it basically will max out the CPU and never recover. PGWare can you confirm this maybe? Is there a fix for this. I have 1 application in the suite that I really dont want to have to change BUT if this is happening I dont see much of a choice because it only takes a few minutes before the machines freeze up if they are scanning with NMap...

I know its not supported but I do love the capabilities in vdsipp and if there is a fix I would like to figure out how to prevent this from happening. Very Happy

Thanks.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sun Oct 23, 2005 7:32 pm    Post subject: Reply with quote

Well I'm not sure what an nmap is. But I think you are using TCP or the UDP protocols? If so each one of those uses a timer which constanty checks for incoming messages. Having all 99 sockets open and checking would cause 99 timers also to run which yes would cause a lot of cpu to go.

The thing was in earlier versions of VDSIPP the threshold of the timer to trigger was around 2-3 seconds. The problem with this was messages could be missed, so I had to set the timers around to under half a second. 99 of these are going to really hit at the cpu.

The workaround to this would be to raise the timer in each of the server protocols, but the potential to miss incoming messages would be very high thus making the protocol and server unreliable.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Oct 23, 2005 9:58 pm    Post subject: More Information Reply with quote

Here is a link for information on NMap. You can download a copy and see what I mean if you want.

http://www.insecure.org/nmap/

This happens with just 1 listening socket. It doesnt matter. For instance if I do something like.

INTERNET CREATE,1
INTERNET ACTIVATE,1,2500

so im listening on port 2500 and simply ignore any messages that are received and then scan the system where my application is running it maxes out the CPU with 1 listening socket.

I'm not 100% sure what NMap does to cause it to max out but it does.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group