Author Topic: Meaning of RELIABLE_SEQUENCED.  (Read 2351 times)

knox

  • Guest
Meaning of RELIABLE_SEQUENCED.
« on: April 02, 2006, 07:00:17 AM »
Hi,

In the online-manual, it says the following:

Lets say you send data 1,2,3,4,5,6. Here's the order and substance of what you might get back:

UNRELIABLE - 5, 1, 6
UNRELIABLE_SEQUENCED - 5
RELIABLE - 5, 1, 4, 6, 2, 3
RELIABLE_ORDERED - 1, 2, 3, 4, 5, 6
RELIABLE_SEQUENCED - 5, 6

Shouldn't the RELIABLE_SEQUENCED also result  the same as RELIABLE_ORDERED?


Let's say I send the following data (all at once): (Format: calling order. payload -> prority -> ordering channel -> reliability_type)
1. "1" -> High priority -> 0 -> RELIABLE_ORDERED
2. "2" -> High priority -> 0 -> RELIABLE_ORDERED
3. "3" -> Low priority -> 0 -> RELIABLE_ORDERED
4. "4" -> Low priority -> 1 -> RELIABLE_ORDERED
5. "5" -> Med priority -> 0 -> RELIABLE_ORDERED
6. "6" -> High priority -> 0 -> RELIABLE_ORDERED
7. "7" -> High priority -> 1 -> RELIABLE_ORDERED
8. "8" -> High priority -> 1 -> RELIABLE_ORDERED
9. "9" -> Med priority -> 1 -> RELIABLE_ORDERED
10. "10" -> Low priority -> 2 -> RELIABLE_SEQUENCED
11. "11" -> Low priority -> 2 -> RELIABLE_SEQUENCED
12. "12" -> High priority -> 2 -> RELIABLE_SEQUENCED
13. "13" -> Med priority -> 2 -> RELIABLE_SEQUENCED
14. "14" -> Low priority -> 2 -> RELIABLE_SEQUENCED

If my understanding is right, the receiver would get the data like this: (only the payload)
Ordering channel 0: 1 2 3 5 6
Ordering channel 1: 4 7 8 9 
sequenced messages: 12 13 10 11 14 (higher-priority messages arrive earlier than lower priority ones)

Is the arrival of messages in a particular ordered stream dependent on priority?
Does it mean that messages in a particular ordered stream is further re-organized under each priority?

Regards
Knox.













Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: Meaning of RELIABLE_SEQUENCED.
« Reply #1 on: April 02, 2006, 10:55:33 AM »
Every channel is independent of every other channel.
Higher priority messages are sent before lower priority ones, assuming the lower priority ones didn't already get sent out because you sent them first.
In your example, if 12 arrived but 10 and 11 did not, it wouldn't give you 12 until it got 10 and 11.