Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Eric on May 04, 2004, 04:47 PM

Title: The Nagel Algorithm and Battle.net
Post by: Eric on May 04, 2004, 04:47 PM
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?
Title: Re:The Nagel Algorithm and Battle.net
Post by: iago on May 04, 2004, 05:30 PM
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.
Title: Re:The Nagel Algorithm and Battle.net
Post by: MyndFyre on May 04, 2004, 05:50 PM
yeah, I got a basic understanding of it when I did a google search.  Thanks though :)
Title: Re:The Nagel Algorithm and Battle.net
Post by: Adron on May 04, 2004, 07:11 PM
Try looking at packet captures, see if the server ever sends another b.net packet in the same tcp packet?
Title: Re:The Nagel Algorithm and Battle.net
Post by: Tuberload on May 04, 2004, 07:32 PM
I have recieved 0x25 clumped with other packets.
Title: Re:The Nagel Algorithm and Battle.net
Post by: Zakath on May 04, 2004, 08:44 PM
Battle.net clumps packets all the time...
Title: Re:The Nagel Algorithm and Battle.net
Post by: Adron on May 05, 2004, 05:38 AM
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.
Title: Re:The Nagel Algorithm and Battle.net
Post by: tA-Kane on May 05, 2004, 06:00 AM
I only know that the Nagel algorithm is evil for Battle.net bots. This thread's ID proves it!

</dumb joke>