Handling of character set
Ordinary protocol stacks use the technique of scanning special characters in protocol analysis, namely, characters such as spaces, semicolons, commas and the like are used as separators of protocol field during the first scanning; the detailed decoding of each string field is completed in the second scanning. In this way Protocol decoding needs repeated scanning. However, Juphoon’s protocol stack adopts a unique character set that can analyze stacks by scanning once, which effectively increases the speed of stack analysis.
Location of syntax error
Applying Dump Stack to theABNF Parser, enables protocol syntax errors to be located as precisely as the character, and provides stacks for the process of protocol analysis. Thus in the example of the sip message, the error is missing “forward value”, Dump Stack can clearly point out the syntax error in the message. Besides, Dump Stack, as an independent module, can be applied to other modules such as dbuf, fsm, etc.