aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-04-25Fixed the transmission of throttles from root agent to childMic Bowman2-16/+26
agents. Child throttles are based on the number of child agents known to the root and at least 1/4 of the throttle given to the root.
2011-04-25Cleaned up various configuration options. Removed the category throttleMic Bowman3-78/+34
limits because the only ones used now are the defaults (which are overwritten by the client throttles anyway). Updated the default rates to correspond to about 350kbps. Also added a configuration to disable adaptive throttle. The default is the previous behavior (no adaptation).
2011-04-22Set the initial rate for the adaptive throttle to 160KpbsMic Bowman1-4/+6
or about 15 packets per second.
2011-04-22Various clean ups. Removed some debugging code. Added a new "show pqueues"Mic Bowman2-23/+6
command to look at the entity update priority queue. Added a "name" parameter to show queues, show pqueues and show throttles to look at data for a specific user.
2011-04-21Add some locking on the child list for the token bucketMic Bowman1-15/+22
hiearchy. A few other cosmetic changes.
2011-04-21Refactor UnackedPacketCollection so ProcessQueues will handle Adds, Acks, ↵Dan Lake2-26/+34
and Removes in that order.
2011-04-21Added ability to remove unacked packet from UnackedPacketCollection without ↵Dan Lake2-2/+38
an acknowledgement from the network. This prevents RTT and throttles from being updated as they would when an ACK is actually received. Also fixed stats logging for unacked bytes and resent packets in this case.
2011-04-20bug fix. Now when an unacked update packet is handled through ↵Dan Lake3-16/+25
ResendPrimUpdates, it is removed from the UnackedPacketCollection.
2011-04-20Added an "immediate" queue to the priority queue. This isMic Bowman1-245/+0
per Melanie's very good suggestion. The immediate queue is serviced completely before all others, making it a very good place to put avatar updates & attachments. Moved the priority queue out of the LLUDP directory and into the framework. It is now a fairly general utility.
2011-04-20Adds the first pass at an adaptive throttle to slow start newMic Bowman4-18/+95
clients. If the sent packets are ack'ed successfully the throttle will open quickly up to the maximum specified by the client and/or the sims client throttle. This still needs a lot of adjustment to get the rates correct.
2011-04-19Converted the property request queue to use the same retransmissionMic Bowman1-23/+52
mechanism as the entity update queues.
2011-04-19Requeue unacknowledged entity updates rather than resend then "as is".Dan Lake3-54/+112
Often, by the time the UDPServer realizes that an entity update packet has not been acknowledged, there is a newer update for the same entity already queued up or there is a higher priority update that should be sent first. This patch eliminates 1:1 packet resends for unacked entity update packets. Insteawd, unacked update packets are decomposed into the original entity updates and those updates are placed back into the priority queues based on their new priority but the original update timestamp. This will generally place them at the head of the line to be put back on the wire as a new outgoing packet but prevents the resend queue from filling up with multiple stale updates for the same entity. This new approach takes advantage of the UDP nature of the Linden protocol in that the intent of a reliable update packet is that if it goes unacknowledge, SOMETHING has to happen to get the update to the client. We are simply making sure that we are resending current object state rather than stale object state. Additionally, this patch includes a generalized callback mechanism so that any caller can specify their own method to call when a packet expires without being acknowledged. We use this mechanism to requeue update packets and otherwise use the UDPServer default method of just putting expired packets in the resend queue.
2011-04-18Requeue unacknowledged entity updates rather than resend then "as is".Dan Lake3-54/+112
Often, by the time the UDPServer realizes that an entity update packet has not been acknowledged, there is a newer update for the same entity already queued up or there is a higher priority update that should be sent first. This patch eliminates 1:1 packet resends for unacked entity update packets. Insteawd, unacked update packets are decomposed into the original entity updates and those updates are placed back into the priority queues based on their new priority but the original update timestamp. This will generally place them at the head of the line to be put back on the wire as a new outgoing packet but prevents the resend queue from filling up with multiple stale updates for the same entity. This new approach takes advantage of the UDP nature of the Linden protocol in that the intent of a reliable update packet is that if it goes unacknowledge, SOMETHING has to happen to get the update to the client. We are simply making sure that we are resending current object state rather than stale object state. Additionally, this patch includes a generalized callback mechanism so that any caller can specify their own method to call when a packet expires without being acknowledged. We use this mechanism to requeue update packets and otherwise use the UDPServer default method of just putting expired packets in the resend queue.
2011-04-15Remove the call to remove tokens from the parent. Under heavy loadMic Bowman2-5/+14
this appears to cause problems with the system timer resolution. This caused a problem with tokens going into the root throttle as bursts leading to some starvation. Also changed EnqueueOutgoing to always queue a packet if there are already packets in the queue. Ensures consistent ordering of packet sends.
2011-04-13remove packet monitoring debugging codeMic Bowman1-116/+2
2011-04-13Fixed the update of items in the priority queue to enable bothMic Bowman2-7/+16
types of property updates to be specified. Not sure if one form of property update should supercede another. But for now the old OpenSim behavior is preserved by sending both.
2011-04-13fixed a couple bugs with the property queuesMic Bowman1-1/+37
2011-04-13First pass at moving object property requests into a queue similarMic Bowman2-143/+220
to the entity update queue. The number of property packets can become significant when selecting/deselecting large numbers of objects. This is experimental code.
2011-04-13New tokenbucket algorithm. This one provides fair sharing of the queuesMic Bowman4-145/+259
when client and simulator throttles are set. This algorithm also uses pre-defined burst rate of 150% of the sustained rate for each of the throttles. Removed the "state" queue. The state queue is not a Linden queue and appeared to be used just to get kill packets sent.
2011-04-13Add a regression test for rezzing a single object into a scene from user ↵Justin Clark-Casey (justincc)1-1/+8
inventory
2011-04-12remove packet monitoring debugging codeMic Bowman1-116/+2
2011-04-12Fixed the update of items in the priority queue to enable bothMic Bowman2-7/+16
types of property updates to be specified. Not sure if one form of property update should supercede another. But for now the old OpenSim behavior is preserved by sending both.
2011-04-12fixed a couple bugs with the property queuesMic Bowman1-1/+37
2011-04-12First pass at moving object property requests into a queue similarMic Bowman2-143/+220
to the entity update queue. The number of property packets can become significant when selecting/deselecting large numbers of objects. This is experimental code.
2011-04-12New tokenbucket algorithm. This one provides fair sharing of the queuesMic Bowman4-145/+259
when client and simulator throttles are set. This algorithm also uses pre-defined burst rate of 150% of the sustained rate for each of the throttles. Removed the "state" queue. The state queue is not a Linden queue and appeared to be used just to get kill packets sent.
2011-04-12remove packet monitoring debugging codeMic Bowman1-116/+2
2011-04-12Fixed the update of items in the priority queue to enable bothMic Bowman2-7/+16
types of property updates to be specified. Not sure if one form of property update should supercede another. But for now the old OpenSim behavior is preserved by sending both.
2011-04-12fixed a couple bugs with the property queuesMic Bowman1-1/+37
2011-04-12First pass at moving object property requests into a queue similarMic Bowman2-143/+220
to the entity update queue. The number of property packets can become significant when selecting/deselecting large numbers of objects. This is experimental code.
2011-04-11New tokenbucket algorithm. This one provides fair sharing of the queuesMic Bowman4-145/+259
when client and simulator throttles are set. This algorithm also uses pre-defined burst rate of 150% of the sustained rate for each of the throttles. Removed the "state" queue. The state queue is not a Linden queue and appeared to be used just to get kill packets sent.
2011-04-11Removed some priority queue debugging codeMic Bowman1-80/+0
2011-04-10Split the priority queue class into a seperate file. LLClientViewMic Bowman2-205/+245
is big enough.
2011-04-10Fix a bug in the computation of the RTO. Basically... the RTO (theMic Bowman1-2/+2
time to wait to retransmit packets) always maxed out (no retransmissions for 24 or 48 seconds. Note that this is going to cause faster (and more) retransmissions. Fix for dynamic throttling needs to go with this.
2011-04-10Implements adaptive queue management and fair queueing forMic Bowman1-118/+235
improved networking performance. Reprioritization algorithms need to be ported still. One is in place.
2011-04-05Handle the client's parcel info requests asynchronously rather than ↵Justin Clark-Casey (justincc)1-1/+1
synchronously. Handling these synchronously kills the inbound packet loop if many requests are made for remote land and those requests are handled slowly or timeout (timeout is 10s) This can happen if a user searches for "land for sale" and then clicks many of the parcels in the list (or just presses down arrow to move through every entry).
2011-04-05Make the "All Estates" option work from the client (this makes chosen ↵Justin Clark-Casey (justincc)1-4/+20
changes to all the estates that the user owns). This applies to adding/removing estate users, groups, managers and bans. This is the application of the AllEstates_0.5.patch from http://opensimulator.org/mantis/view.php?id=5420 Thanks very much, Snoopy!
2011-04-04Fix a bug in the computation of the RTO. Basically... the RTO (theMic Bowman1-2/+2
time to wait to retransmit packets) always maxed out (no retransmissions for 24 or 48 seconds. Note that this is going to cause faster (and more) retransmissions. Fix for dynamic throttling needs to go with this.
2011-04-04Implements adaptive queue management and fair queueing forMic Bowman1-118/+235
improved networking performance. Reprioritization algorithms need to be ported still. One is in place.
2011-04-01Log which address and port the UDP listener is configured for. This will ↵Justin Clark-Casey (justincc)1-0/+4
match that given for InternalAddress in the config (e.g. 0.0.0.0) Can't obtain actually bound address until the UDP socket is used for the first time.
2011-03-30(re)implement selected prim count.Justin Clark-Casey (justincc)1-23/+23
This does not currently count objects that are sat upon (which the viewer ui implies should be included in this count)
2011-03-29disable prim count debug logging temporarilyJustin Clark-Casey (justincc)1-1/+1
2011-03-28Implements adaptive queue management and fair queueing forMic Bowman1-118/+235
improved networking performance. Reprioritization algorithms need to be ported still. One is in place.
2011-03-26add save of LLClientView I forgot from last commitJustin Clark-Casey (justincc)1-4/+2
2011-03-26Add test for PCM taint. This currently fails due to unexpected behaviour of ↵Justin Clark-Casey (justincc)1-0/+2
SceneGraph.ForEachSOG(). This will be corrected soon. Also adds lots of temproarily debug logging
2011-03-25Start using IPrimCounts populated by PrimCountModule instead of LandData ↵Justin Clark-Casey (justincc)1-13/+22
counts populated by LandManagementModule. In order to pass ILandObject into IClientAPI.SendLandProperties(), had to push ILandObject and IPrimCounts into OpenSim.Framework from OpenSim.Region.Framework.Interfaces, in order to avoid ci Counts are showing odd behaviour at the moment, this will be addressed shortly.
2011-02-18minor: remove mono compiler warningJustin Clark-Casey (justincc)1-1/+1
2011-02-10Reinstated a couple of null checks related to the previous revert.Diva Canto1-11/+15
2011-02-10Revert "Hunting down mantis #5365"Diva Canto1-30/+15
This reverts commit ebeef02fef1a04b5b4cfe13dad588bcce7f9ba21.
2011-02-09Put the Ack of UseCircuitCode back to where it used to be. Some ppl are ↵Diva Canto1-6/+5
reporting login issues.
2011-02-09Comment instrumentation out. Not needed anymore. Left in comments, in case ↵Diva Canto1-4/+7
it is needed again. Mantis #5365