Packet Accounting

From Second Life Wiki
Jump to navigation Jump to search

Circuits

Packet Sequences

The packet sequence number is a 32 bit number created at the connection of any circuit. This number is stored in the packet header (specified in the Packet Layout portion of the wiki), and incremented whenever a packet is sent from one end of the circuit to the other.

Packet Acknowledgment

When NodeA sends a message that the "Reliable" parameter, the LL_RELIABLE_FLAG is set in the header of the Packet Layout, and the packet sequence number is stored into a set on NodeA's end. When NodeB receives the reliable packet, it attaches the packet number of the end of the next packet it sends, and sets the LL_ACK_FLAG bit of the returning packet to show acknowledgment of transfer to NodeA. Assuming NodeA receives the acknowledgment, it removes the acknowledged packet number from the reliable acknowledgment set. Otherwise, if the acknowledgment is not received in a predetermined amount of time (A minimum of 1 second, or a maximum determined by the average ping delay of the circuit), the packet is resent. If the packet is not acknowledged after 3 resends (default value), it is dropped.

Packet Throttling

Client Side

Server Side