02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3.6 Full-duplex procedures<br />

Fundamentals of distributed network protocol 83<br />

Direct link<br />

No collision can occur as both master <strong>and</strong> slave have their own channel to each other.<br />

Multidrop link<br />

Time delays are used as for half-duplex multidrop, except that the fixed time delay may be<br />

reduced, as it is not necessary to provide this for the master. In the full-duplex multidrop<br />

environment, the master has its own channel to all receivers.<br />

5.4 Data link layer<br />

5.4.1 Description of data link layer<br />

The purpose of the data link layer is to establish <strong>and</strong> maintain reliable communication of<br />

data over the physical link.<br />

Link establishment involves setting up the logical communications link between sender<br />

<strong>and</strong> receiver. DNP3 is capable of supporting either connection oriented or connection-less<br />

operation. Thus, if a channel operates over a PSTN line <strong>and</strong> requires connection by dialling<br />

before communication can commence, the data link layer manages this without any<br />

direction from higher levels.<br />

As seen previously, the data unit at the link layer level may be called the frame.<br />

The frame has a maximum size of 292 bytes including CRC codes, <strong>and</strong> carries a total of<br />

250 bytes of information from the higher levels. The frame includes 16-bit source<br />

<strong>and</strong> destination addresses in its header. These provide for 65 536 different addresses. The<br />

address range FFF0–FFFF is reserved for broadcast messages, which are intended to be<br />

processed by all receivers. Note that addresses are logical in the sense that it is possible<br />

for one physical device to have more than one logical address. In such a case the different<br />

addresses would appear as separate devices to the master station.<br />

The frame header also contains a function code. The functions supported by this are<br />

those required to initialize <strong>and</strong> test the operation of each logical link between sender <strong>and</strong><br />

receiver. As an additional security feature every frame transmitted can request a confirmation<br />

of receipt. This is termed link layer confirmation.<br />

These services <strong>and</strong> functions are exp<strong>and</strong>ed upon in the following sections.<br />

5.4.2 Services provided<br />

The following services are all provided by the data link layer. Underst<strong>and</strong>ing how these<br />

are provided begins with examining the frame format. The frame format includes necessary<br />

control bits for controlling message flow, functions, error detection <strong>and</strong> correction.<br />

Services provided by the data link layer:<br />

• Establish <strong>and</strong> maintain the communication channel<br />

• Report on link status to higher layers<br />

• Detect <strong>and</strong> correct errors that may occur during transmission<br />

• Conversion of data between LSDUs <strong>and</strong> LPDUs<br />

• Error notification to higher levels<br />

• Sequencing <strong>and</strong> prioritized delivery of LSDUs

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!