• Welcome to Valhalla Legends Archive.
 

The Nagel Algorithm and Battle.net

Started by Eric, May 04, 2004, 04:47 PM

Previous topic - Next topic

Eric

Correct me if I'm wrong, but I'm pretty sure most Blizzard clients disable the Nagel Alg. while sending 0x25 and then re-enable it's sent.

My question is, while 0x25 is being sent back and forth, does the server follow the same procedure as the client? Or is the Nagel Algorithm always enabled/disabled server-side?

iago

I would imagine it is, it would be rather silly if it wasn't.  

For anybody who doesn't know, Nagel Algorithm, it is what causes packets to get stacked.  Disabling it (TCP_NODELAY) ensures packets are instantly sent out.

I couldn't find any references at wikipedia or mathworld, otherwise I would give those.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


MyndFyre

yeah, I got a basic understanding of it when I did a google search.  Thanks though :)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Adron

Try looking at packet captures, see if the server ever sends another b.net packet in the same tcp packet?

Tuberload

I have recieved 0x25 clumped with other packets.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

Zakath

Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Adron

You've checked this in a real packet capture? You may receive them in the same recv even if b.net didn't send them together... Also, it's only about receiving 0x25 followed by another packet, not another packet followed by 0x25.

tA-Kane

I only know that the Nagel algorithm is evil for Battle.net bots. This thread's ID proves it!

</dumb joke>
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com