Intel® Business Client Software Development
Support for Intel® vPro™ software development and the technologies associated with Intel vPro platforms.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
1355 Discussions

AMT Discovery, 10 Connection Limit for Windows XP

sohaib2y
Beginner
163 Views
Hi Ylian,

In DTK's code you discovered AMT machines by using asynchronous operation for connecting socket, is there any particular reason for doing this, can't we use regular socket connect (C++, not C#) operation for connecting, infact I am using connect() (C++) for sockets, and in another thread, monitoring the socket, if does't connect in 500ms I do a closesocket on it. Shouldn't this work, it works to some extent but after 10 openings it stops for some time (around 20 sec) and then moves on.

Thanks
Sohaib
0 Kudos
4 Replies
john_prothro
Beginner
163 Views

There is a Discovery sample in the SDK also... it is not written in C# and might provide a clue in some fashion as to your delima. Perhaps a quick code walk thru that example may be helpful... perhaps not... just a thought. BTW, what does it mean when you say "it then moves on"? Does it move on to discover more systems? Are all of the systems on the same network resolvable by the same DNS, etc...?

sohaib2y
Beginner
163 Views
Hello,

Where is Discovery Sample in SDK ... ?

By "it then moves on" means that processing moves on.

Actually when I do a closesocket in the monitor thread for a socket (lets say s1), the connect( for s1 ) blocking call returns immediately but, after 10 sockets it takes around 22 secs and doesn't return immediately.

I patched windows xp and increased this 10-connection limitation to 50, then it returns immediately after 10 sockets, but I dont want to patch XP.
The URL of patch http://www.lvllord.de/download.php?url=en/EvID4226Patch223d-en.zip

Sohaib
Jia-Shing_W_Intel
Moderator
163 Views
The sample is under WindowsIntel AMT SDKSamplesDiscovery directory. If you are doing discovery from a WinXP box with SP2, you should limit the number of discovery threads to 10, which is done in DiscoverySample.h. Ever since SP2, there can only be up to 10 half open TCP connections per second. For any pending connections beyond that, they will be queued and slowly picked up.
Ylian_S_Intel
Employee
163 Views
Hi Sohaib,

Yes, in the Intel AMT DTK I have a class called "AMTDiscovery.cs" that does discovery and I just used async-sockets instead of lots of threads. Both are good options. John is right that ever since Windows XP SP2, there is a limit on the number of bad connections an application can make and so, it is not possible to make discovery faster by making more TCP connections.

If you are searching for computers in the same subnet, you could ARP the computer first and only try TCP connections on computers that respond to ARP. This is much faster, but it only works within the same subnet.

Ylian (Intel AMT Blog)
Reply