Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches...

20
Lucia Lo Bello, Giuliana Alderisi, Gaetano Patti, Department of Electrical, Electronic and Computer Engineering University of Catania, Italy [email protected]

Transcript of Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches...

Page 1: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Lucia Lo Bello,

Giuliana Alderisi, Gaetano Patti,

Department of Electrical, Electronic and Computer Engineering University of Catania, Italy

[email protected]

Page 2: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

The IEEE Audio Video Bridging standard

Motivation for this work

Scheduled Traffic Class (ST Class)

Performance Evaluation

Conclusions and on-going work

Page 3: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

The IEEE 802.1 Audio Video Bridging (AVB) standard consists of four separate documents:

The IEEE 802.1AS Time Synchronization, which provides precise time synchronization of distributed local clocks with a reference that has an accuracy of better than 1 μs.

The IEEE 802.1Qat Stream Reservation, which allows for the resource reservation within switches (buffers, queues) along the path between sender and receiver.

The IEEE 802.1Qav Queuing and Forwarding for AV Bridges, which splits time-critical and non-time critical traffic into different traffic classes, extending methods described in the IEEE 802.1Q standard, and applies traffic shaping at the output ports of switches and end nodes to avoid traffic bursts.

IEEE 802.1BA Audio Video Bridging systems, which defines the AVB profiles.

In the literature, AVB has a success story for A/V streaming, and is nowadays indicated as one of the possible candidates for automotive communications.

The suitability of AVB for supporting the traffic flows of both Advanced Driver Assistance Systems (ADASs) and multimedia/infotainment systems was proven in many recent works.

AVB has a potential to be used not only as a common networking technology within a single functional domain, but also as an in-car backbone network for interdomain communication.

Page 4: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

The IEEE 802.1 AVB protocol specifications provide for time-synchronized low-latency streaming services through IEEE 802 networks.

The AVB standard provides the two Stream Reservation classes (SR Class A and B) with a fixed upper bound for latency for seven hops within the network, as follows:

A maximum latency of 2ms for SR Class A;

A maximum latency of 50ms for SR Class B.

Although AVB allows for determining the worst case latency

for all real-time message classes, further improvements

are still needed for use in industrial automation.

In fact, as the Credit Based Fair Queuing (CBFQ) used

in AVB for traffic shaping adopts non-preemptive

scheduling, in the worst case a real-time frame might be

delayed in every bridge by the ongoing transmission of

a maximum-sized frame not belonging to the real-time

class.

Page 5: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Within the IEEE 802.1 Working Group, Time-Aware Blocking Shapers (TABSs) are proposed for isolating Class A streams from the interference due to other traffic types:

TABSs are smart shapers that let frames out based on their size. They block any lower priority transmission (i.e., from SR Class B or best-effort traffic) that would interfere with the upcoming transmission of SR Class A traffic.

If a given non-SR Class A queue has a frame ready, but the transmission of such a frame would delay the start time of the next transmission of SR Class A traffic, such a transmission is not allowed.

The approaches currently proposed within the IEEE 802.1Q Working Group map all the time-sensitive flows on the same class (Class A) irrespective of their heterogeneous sizes and time constraints.

Such a choice is not beneficial to low-latency, small-size traffic, which should not be handled in the same queue as large A/V frames.

Page 6: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

What we propose here is instead:

To add a separate class on top of the AVB Stream Reservation Classes A and B to introduce support for scheduled traffic

Scheduled Traffic Class (ST Class)

While maintaining the other traffic classes provided by the AVB standard.

Page 7: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

ST flows are:

Periodic.

Their characteristics (period, frame size) are fixed and a priori known.

Tagged with the highest priority TAG according to the IEEE 802.1Q standard. SR Classes A and B take the second and the third highest priority, respectively.

The transmission sequence for ST messages is off-line planned by a scheduler Offset scheduling techniques are adopted in the planning phase to make sure, by design, that conflicts between transmissions of ST messages will not occur in the entire network (i.e., either in end stations or bridges).

TABSs are adopted to avoid any interference on ST messages from other traffic classes.

The support of the ST Class according to our approach requires a reliable synchronization of the network nodes, such that every node knows when it is the right time to transmit its ST messages.

We relay on 802.1AS protocol.

ST traffic is handled in a separate queue and does not undergo traffic shaping. On the contrary, SR Classes are handled by Credit Based Fair Queuing.

Page 8: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

TABSs are used to provide temporal isolation between the ST traffic and all the other traffic types:

Any non-ST message that is enqueued, ready for transmission, has to wait not only for the duration of an ST message transmission, but also for an additional time if the time needed for its transmission is longer than the difference between the send time of the next ST message and the current time.

This time difference, called a minimal distance, is enforced to avoid the transmission of non-ST traffic that would delay the next ST message.

The messages in the queues associated to the SR Classes undergo both the TABS and credit shaping, while best effort messages go through the TABS only, as no shaping is foreseen for best effort traffic in the AVB standard.

In our design, shaping for SR Classes is performed after the TABS, so that credits are consumed only when the frame transmission is allowed by the TABS.

Page 9: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

The computation of the reception instant for any ST message has to take into account:

the synchronization error between the nodes

the drift of each station This drift is expressed in parts per million (ppm) and represents the clock speed

On each receiving side for each ST message, a time window within which the message has to be received, called ST_Window, is defined.

Our approach avoids any interference on ST messages from other messages belonging either to the same class or to any other traffic class,

the receiving time of any ST message can be calculated.

Page 10: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

We ran proof-of-concept simulations using the OMNeT++ simulation tool

Three configurations were assessed: AVB_ST

Plain AVB

Time-Triggered Ethernet

The network topology is shown in the picture. Our simulation scenario consists of 6 nodes and 4 bridges

Our performance metrics are:

Latency: the one-way end-to-end frame delay, i.e., the time from the source sending a packet to the destination receiving it;

Absolute Jitter: the difference between the maximum and the minimum latency value for a given flow.

All metrics are measured at the MAC level.

Page 11: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Typ

e)

Payload (byte)

Service rate (μs)

Traffic Classes

(AVB_ST)

Traffic Classes (AVB)

Traffic Classes (TTE)

Node1,NST 256 250 SR A (prio 6) SR A (prio 7) RC (prio2)

Node2,NST 256 250 SR A (prio 6) SR A (prio 7) RC (prio2)

Node3,NST 256 300 SR A (prio 6) SR A (prio 7) RC (prio2)

Node3,ST 128 500 ST (prio 7) SR A (prio 7) TT(prio1)

Node4,NST 256 500 SR A (prio 6) SR A (prio 7) RC (prio2)

Node4,ST 128 500 ST (prio 7) SR A (prio 7) TT (prio1)

Node5,NST 256 500 SR B (prio 5) SR B (prio 6) RC (prio3)

All the flows generated are time-sensitive in the particular case of Node3 and Node4 , one is a Scheduled Traffic (ST) flow and the other is a Non Scheduled Traffic (NST) flow.

The flows generated by nodek, with k=1..4, are assumed to be more time-critical than the flow generated by node5.

The switch processing time is assumed equal to 10 μs.

Page 12: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

AVB simulation:

The simulation refers to plain AVB. Here, the time-sensitive traffic is mapped on the Stream Reservation classes (SR Classes) A and B, that are given priority 7 and 6, respectively.

All the SR traffic is handled by Credit Based Fair Queuing

TTE simulation:

Time-Triggered Ethernet supports three different traffic types: time-triggered (TT), rate constrained (RC) and best effort (BE).

In our simulation:

Scheduled traffic was mapped on the TT class and was given the highest priority, i.e. level 1.

The other flows were mapped on the RC class with level 2 and 3, respectively.

Strict Priority scheduling is used between the switch queues, FIFO within the same queue.

Page 13: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Type)

Latency(μs) Absolute Jitter(μs)

AVB_ST AVB TTE AVB_ST AVB TTE

Mean Max Mean Max Mean Max

Node1 NST 55 55 55 55 51 53 0 0 6

Node2 NST 121 121 132 145 110 115 0 24 10

Node3 NST 154 187 159 174 154 157 32 14 8

Node3 ST 103 103 141 165 122 122 0 30 0

Node4 NST 145 145 121 121 143 150 0 0 10

Node4 ST 89 89 149 149 100 100 0 0 0

Node5 NST 90 95 94 94 97 100 7 0 6

ST traffic flows with AVB_ST experience a lower latency than with standard AVB

The mean and maximum latency with our approach are equal, thus the jitter is zero. The reason for this is that ST traffic:

does not experience queuing delays, thanks to offset scheduling and TABS,

is provided with preferential service while crossing the network

does not undergo shaping, so latency is low and predictable.

Page 14: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Type)

Latency(μs) Absolute Jitter(μs)

AVB_ST AVB TTE AVB_ST AVB TTE

Mean Max Mean Max Mean Max

Node1 NST 55 55 55 55 51 53 0 0 6

Node2 NST 121 121 132 145 110 115 0 24 10

Node3 NST 154 187 159 174 154 157 32 14 8

Node3 ST 103 103 141 165 122 122 0 30 0

Node4 NST 145 145 121 121 143 150 0 0 10

Node4 ST 89 89 149 149 100 100 0 0 0

Node5 NST 90 95 94 94 97 100 7 0 6

With standard AVB, the ST flow originated from Node3 experiences higher and non- constant latency.

This is due to the interference from other traffic flows in the Class A, (i.e., those originating from the same node, from node2 and node4) and to the additional delay due to CBFQ.

Page 15: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Type)

Latency(μs) Absolute Jitter(μs)

AVB_ST AVB TTE AVB_ST AVB TTE

Mean Max Mean Max Mean Max

Node1 NST 55 55 55 55 51 53 0 0 6

Node2 NST 121 121 132 145 110 115 0 24 10

Node3 NST 154 187 159 174 154 157 32 14 8

Node3 ST 103 103 141 165 122 122 0 30 0

Node4 NST 145 145 121 121 143 150 0 0 10

Node4 ST 89 89 149 149 100 100 0 0 0

Node5 NST 90 95 94 94 97 100 7 0 6

The AVB_ST results are comparable with TTE results for both the ST flows from node3 and node4, and in both cases a null jitter is found.

The ST flow from node4 shows a lower latency than the node3 ST flow: node3 ST flow has one more bridge to cross to reach the destination.

Page 16: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Type)

Latency(μs) Absolute Jitter(μs)

AVB_ST AVB TTE AVB_ST AVB TTE

Mean Max Mean Max Mean Max

Node1 NST 55 55 55 55 51 53 0 0 6

Node2 NST 121 121 132 145 110 115 0 24 10

Node3 NST 154 187 159 174 154 157 32 14 8

Node3 ST 103 103 141 165 122 122 0 30 0

Node4 NST 145 145 121 121 143 150 0 0 10

Node4 ST 89 89 149 149 100 100 0 0 0

Node5 NST 90 95 94 94 97 100 7 0 6

The non-ST flow from node3 is the one that experiences the highest latency with AVB_ST,

The reason is that this flow not only suffers from the interference due to the ST traffic class and the TABS mechanism, but is also affected by all the other SR-Class A flows, as this flow has to cross five hops (and so, all the bridges) to reach the listener.

Page 17: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Flow (Talker,Type)

Latency(μs) Absolute Jitter(μs)

AVB_ST AVB TTE AVB_ST AVB TTE

Mean Max Mean Max Mean Max

Node1 NST 55 55 55 55 51 53 0 0 6

Node2 NST 121 121 132 145 110 115 0 24 10

Node3 NST 154 187 159 174 154 157 32 14 8

Node3 ST 103 103 141 165 122 122 0 30 0

Node4 NST 145 145 121 121 143 150 0 0 10

Node4 ST 89 89 149 149 100 100 0 0 0

Node5 NST 90 95 94 94 97 100 7 0 6

The maximum latency for the non-ST flow generated by nodes sometimes is lower with standard AVB than with AVB_ST.

AVB_ST downgrades the flow, while standard AVB serves it in the highest priority class, i.e. SR Class A. However, the latency increase, for this non-ST flow, in AVB_ST is not dramatic.

The three protocols offer comparable values as far as the mean latency is concerned.

Page 18: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

As AVB bridges are already time-aware thanks to the IEEE 802.1AS standard, the changes required to implement TABSs are mechanisms able to prevent/allow transmissions in a time interval and to configure the shapers via a management information base.

Page 19: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

CONCLUSIONS

The AVB_ST approach proposed in this paper proved to be very beneficial to support scheduled traffic in AVB networks.

ST traffic obtained low and predictable latency values, without significantly affecting SR traffic and without the need for preemption.

Thanks to the offset-based scheduling, the temporal isolation provided to the ST traffic class through the TABS mechanism, and strict priority handling.

FUTURE WORK

The AVB_ST performance will be investigated through a comprehensive evaluation in different automation scenarios and under varying workloads.

Performance assessing of AVB_ST in a realistic automotive scenario.

Page 20: Lucia Lo Bello, - University of Waterloosfischme/rate/LuciaLoBelloRATE2013... · within switches (buffers, queues) along the path between sender and receiver. The IEEE 802.1Qav Queuing

Alderisi, G., Patti, G., Lo Bello, L., "Introducing Support for Scheduled traffic over IEEE Audio Video Bridging Networks", IEEE 18th International Conference on Emerging Technologies & Factory Automation (ETFA), Cagliari, Italy, 09/2013.