Protocols/Test

From NINA Wiki
Jump to navigation Jump to search
SNAC(01,0A)  OSERVICE__RATE_PARAM_CHANGE 


Server send this snac when you goes over rate limit or when rate parameters changing. You can read detailed information about rate limites <a href="rate_limits.html">here</a>. See also <a href="snac_01_07.html"> SNAC(01,07)</a> for more info. Snac content is described by "message code". Here is the known code list:

  0x0001   Rate limits parameters changed
  0x0002   Rate limits warning (current level < alert level)
  0x0003   Rate limit hit (current level < limit level)
  0x0004   Rate limit clear (current level become > clear level)


 00 01   word   SNAC family
 00 07   word   SNAC subtype
 00 00   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 xx xx   word   Message code (see above)
 xx xx   word   Rate class ID
 xx xx xx xx   dword   Window size
 xx xx xx xx   dword   Clear level
 xx xx xx xx   dword   Alert level
 xx xx xx xx   dword   Limit level
 xx xx xx xx   dword   Disconnect level
 xx xx xx xx   dword   Current level
 xx xx xx xx   dword   Max level
 xx xx xx xx   dword   Last time; not present in protocol version 2
 xx   byte   Current state; not present in protocol version 2


Example SNAC dump with flap header:


  2A 02 39 00 00 37 00 01 00 0A 80 00 85 1B 57 65 *.9..7........We
  00 06 00 01 00 02 00 03 00 02 00 03 00 00 00 14 ................
  00 00 13 EC 00 00 13 88 00 00 0F A0 00 00 0B B8 ................
  00 00 13 17 00 00 17 70 00 00 00 00 00          .......p.....