23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

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

LonWorks 41-5<br />

in LonWorks. In p-persistent CSMA, the bus is checked for activity before the frame is transmitted.<br />

As it becomes idle, the sender can start to transmit its frames. To avoid collisions, there are n time slots,<br />

from which each sender chooses one with a probability of p = 1/n. In LonTalk, the default value of n is<br />

16. Each sender will start to transmit its frame in its chosen time slot as long as the bus is idle. Thus, the<br />

sender who takes the earliest time slot will transmit its frame and all others have to wait for the next idle<br />

phase. Collisions can only occur when two or more senders have chosen the same time slot. To lower the<br />

probability of collisions, the number of time slots n is predictively increased in intervals of 16 according<br />

to the estimated channel backlog, which is the estimated number of return messages.<br />

Optionally, the first time slots can be reserved for priority messages. The number of priority time slots<br />

is specified in each node and should be the same for all nodes on a channel to prevent collisions with nonpriority<br />

slots. Each node, which wants to send priority messages, gets its dedicated priority slot, whose<br />

number is configured in the node. So when n p priority slots are reserved, n p nodes can send priority<br />

messages. The remaining time slots are used for non-priority frames as mentioned above. So, priority messages<br />

always suppress the other messages, which can theoretically result in starvation of the non-priority<br />

frames. But this would require permanently high network traffic, which is atypical for a well-configured<br />

network. To prioritize the complete message transaction, priority messages are sent with a set priority bit<br />

in the frame. This signals routers to forward messages and receivers to send the responses prioritized, too.<br />

Optionally, the Neuron Chip supports the processing of collision detections, which results in canceling<br />

and retransmitting of the frame. But the transceiver has to detect the collision and signal it to the<br />

Neuron Chip, which is not supported by all transceivers.<br />

The link layer has to ensure that frames are transmitted correctly. Therefore, a 16 bit cyclic redundancy<br />

check (CRC) sum is appended. Additionally, the frame contains the preamble, the priority bit,<br />

the change of the backlog, and the alternate path bit. A set alternate path bit is an indicator for the transceiver<br />

to send the frame via an alternate channel. This increases the reliability on unreliable media, such<br />

as power line and radio frequency. By default, the bit is cleared, but based on the node configuration,<br />

the bit can be set automatically for the last two transmission attempts. For example, using a power line<br />

transceiver, a set alternate path bit implicates that the modulation method will be changed and the data<br />

transfer rate will be decreased to increase the signal quality.<br />

41.3.3 Network Layer<br />

The network layer offers connectionless, unacknowledged transmissions of packets within a domain.<br />

Following services are supported:<br />

• Unicast<br />

The destination of the packet is one single node. It can be addressed by the unique Neuron ID or<br />

by the logical address consisting of domain, subnet, and node ID.<br />

• Multicast<br />

The destinations of the packet are a group of nodes defined by its group ID.<br />

• Broadcast<br />

The destinations of the packet can be all nodes belonging to a specific domain or all nodes belonging<br />

to a specific subnet.<br />

41.3.4 transport and Session Layer<br />

The network layer does not handle the repeated transmission of lost packets or the detection of packet duplicates.<br />

This is done by the transport layer and the session layer. The transport layer offers the following services:<br />

• Unacknowledged service<br />

The packet is sent exactly one time. Since there are no acknowledgments, a loss of the message<br />

cannot be recognized. This service is usually used for broadcasts but can be used for unicast and<br />

multicast packets as well.<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

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

Saved successfully!

Ooh no, something went wrong!