|
On Shaky Ground - A Study of Security Vulnerabilities in Control Protocols
V. CONFORMANCE TESTING MODBUS/TCP
The blackPeer framework is well-suited to conformance testing. Given a protocol's specification, one
can easily construct a grammar defining the correct operation of an implementation to this specification. An excerpt of the grammar written for the MODBUS/TCP protocol is shown in Example I. In conjunction with the creation of a grammar comes the definition of the variability found across implementations. An example of one such variability is the number of holding registers present on the DUT. Such variability's are defined in a separate variable initialization file and are passed as input to the test case generator, see Figure 1. An Excerpt of the variable file for the MODBUS/TCP grammar is shown in
Example II.
EXAMPLE I. Excerpt from MODBUS grammar file
EXAMPLE II. Excerpt from variable init file
« Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Next »
|
|