Top Banner
REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING Presented by Sina Gholamian, [email protected] 1 09/11/2011
34

Real-Time Communication Analysis for NoCs with Wormhole Switching

Feb 23, 2016

Download

Documents

terry

Real-Time Communication Analysis for NoCs with Wormhole Switching. 09/11/2011. Presented by Sina Gholamian , [email protected]. Paper Overview. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

1

REAL-TIME COMMUNICATION ANALYSIS FOR NOCS WITH WORMHOLE SWITCHING

Presented by Sina Gholamian, [email protected]/11/2011

Page 2: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

2

Paper Overview Zheng Shi and Alan Burns. 2008. Real-Time

Communication Analysis for On-Chip Networks with Wormhole Switching. In Proceedings of the Second ACM/IEEE International Symposium on Networks-on-Chip (NOCS '08). IEEE Computer Society, Washington, DC, USA, 161-170

Zheng Shi and Alan Burns. 2010. Schedulability analysis and task mapping for real-time on-chip communication. Real-Time Syst. 46, 3 (December 2010), 360-385. DOI=10.1007/s11241-010-9108-3 http://dx.doi.org/10.1007/s11241-010-9108-3

Real-Time Research Group, University of York, UK

Page 3: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

3

Outline

Introduction and Motivation QoS in NoC Priority based wormhole switching Worst case network latency analysis Mapping Algorithm Conclusions

Page 4: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

4

Motivation Networks on Chip(NoC) is an emerging

architecture Solving the issue of communication in SoCs Scalability

Traditional bus system is not good at scalability High level of parallelism could be achieved

All links could operate simultaneously on different data packets

Page 5: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

5

Why RT-NoC ? Today trend for designing multiprocessor

system is NoC-based NoC is a promising solution to design multi-

core system Real-time applications have a great

share in today computer systems So, We need a real-time NoC architecture

to support the real-time application requirements for multi-core systems

Page 6: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

6

Networks on Chip (NoC) On-chip Communication:

Point-to-Point Bus

NoC: packet-switched, shared, optimized for communications Resource efficiency High scalability IP reusability High performance

Page 7: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

7

NoC needs QoS Differentiated Service Requirement

Best Effort Guaranteed Service

Performance parameters: latency, bandwidth, bounded jitter and loss probability,

in-order data, etc. Real-Time Service:

The correctness relies on not only the communication result but also the completion time bound (deadline).

For hard real-time service, it is necessary that all the packets must be delivered before their deadlines even under worst case scenario.

Page 8: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

8

Several Solutions Contradiction: The network gives more efficiency and

flexibility However, introduces the unpredictable delay due to the

contention Real-time service, requires the timing to be predictable

even under the worst case situation Contention avoidable

Circuit Switching : aSoC TDM : AEtheral, Nostrum

Inefficient use of network resources Higher worst-case communication time

Contention acceptable Priority based Wormhole Switching

Page 9: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

9

Wormhole Switching

Advantages (with Virtual Channels) Small Buffer Size High Throughput Low Average Latency

Page 10: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

10

Priority Router Structure There are sufficient

VCs at each router Each VC is assigned

distinct global priority Each flow also has a

distinct priority Flow only requests

the VC with the same priority

At any time, only the flit with highest priority can access the output link

Flit-level priority preemption between different VCs

Page 11: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

11

System Model Characterize traffic-flow

A traffic-flow is packet stream which traverses the same route from source to destination and requires the same grade of service.

Attribute P : Priority C : Basic network latency T : Period for periodic flow or minimal interval for

sporadic flow D : Deadline JR: Release Jitter

Page 12: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

12

Interrelationship Direct competing: direct interference set:

Indirect competing:

indirect interference

( ) ( )i jpath path

{ | ( ) ( ) , }Di j i j j iS path path p p

( ) ( ) , ( ) ( ) ,

( ) ( )i j j k

i k

path path path path

path path

{ | ( ) ( ) , ( ) ( ) ,

( ) ( ) , }

Ii k i j j k

i k k j i

S path path path path

path path p p p

Page 13: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

13

Wormhole Switching- A Case

Priority ordering:

1 2 3P P P

1 1

2 1 2

3 2 3 1

,

{ },

{ }, { }

D I

D I

D I

S S

S S

S S

Page 14: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

14

Characterize Network Latency

Worst case network latency R: The maximum length of time the packet

could take to travel from source to destination

The flow is schedulable if R<=D Basic network latency C:

the network latency happens when there is no traffic-flow contention.

max . / .addsize link

size

L LC f B Hop Sf

Page 15: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

15

Model and Assumption The physical communication links are treated as

shared competition resource At any time, only one traffic-flow is permitted to

access the shared path The packet moves ahead when gets highest

priority along the path The arrivals of higher priority flows are

considered as preemption interference The allowable service time for a flow is all the

time interval at which no higher priority flow competes for the same physical link

Page 16: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

16

Network Latency Evaluation(1)

Worst Case Network Latency: Ri = Ci + Ii

Ri: worst case latency: Ii: maximum interference the packets is

supposed with maximum length and released at maximum rate

Di

Ri j

i jj S j

R JI C

T

Page 17: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

17

Network Latency Evaluation(2)

Worst case network latency equation

The equation is solved using iterative technique

Di

Ri j

i i jj S j

R JR C C

T

1

Di

n Ri jn

i i jj S j

R JR C C

T

Iterative starts with and terminates when Or which denotes the deadline miss for this flow

0iR 1n n

i iR R 1n

iR D

Page 18: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

18

Consider Indirect Interference (1)

Minimal interval between subsequent preemption is less than period

This could happen only when indirect interference is considered.

Page 19: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

19

Consider Indirect Interference (2)

Preemption interference upper bound

Worst case latency:

Di

Ri j j j

i i jj S j

R J R CR C C

T

Di

Ri j j j

i jj S j

R J R CI C

T

Page 20: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

20

Case Example (1)Flow

C P T D

2 1 6 6

3 2 7 7

3 3 13 133

21

For : there is no higher priority than , so

For : shares the physical link with higher priority flow

and

2 2

2 1 2{ },D IS S 1

11 1 1 2R C

02

12

22

333 2 5653 2 56

R

R

R

Page 21: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

21

Case Example (2) suffers both direct and indirect

interference with The interference jitter of referred to

equals so

Which stops at Just analysis, no experimentation

3 2 3 1{ }, { }D IS S 3

2 3

2 2 5 3 2R C

3 2 23 3 2

2

R R CR C CT

3 9R

Page 22: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

22

Pessimistic Analysis Considers the flow level interference

The higher level priority flow: blocks the lower level time for whole

communication time No routing scheme has been provided

By help of communication upper bounds: Routing paths should be chosen to meet all the

dead lines

Page 23: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

23

Tighter Analysis Link level analysis Instead of blocking the low level priority

flow Block it if the exact routing link is common

Result: a set of comunication with the deadline set D Shi's model: (D) Not Schedulable Refined model: (D) Schedulable

Assume

Page 24: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

24

NoC Design Generally, NoC design starts with an

application specification which can be expressed as a set of communicating tasks

The second step is to partition and map these tasks onto the IPs of a NoC

With a mapping, the communications between the applications are done through the on-chip network

Page 25: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

25

Mapping For a given network topology and traffic

pattern: find a solution which maps a set of tasks

onto an on-chip network, and assigns priority to each traffic-flow,

The timing bounds can be met with the minimal resource cost

The mapping/assignment problem is a kind of constraint based global optimization problem which is NP-hard

Page 26: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

26

Mapping Algorithm The cost function is:

w1 and w2 weights for f1 and f2 f1: schedulability, f2: priority and virtual

channel overhead

1 1 2 2cos t w f w f

Page 27: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

27

Schedulability

if all flows meet the deadline, f1 = 0

i i

i i

1 R >D( )

0 R Diu

1 ( )i

if u

Page 28: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

28

Algorithm(1)1) The algorithm begins with an initial

solution of a set of task mappings and traffic flow priority assignments

2) Randomly selects a single task or a traffic-flow

3) Reduce the cost by changing the location of the task or the priority of the traffic-flow

4) Repeat this process for all the tasks and flows

Page 29: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

29

Algorithm(2)

Page 30: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

30

Algorithm(3)

Page 31: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

31

Algorithm(4) The algorithm stops when no single

change (either tasks mapping or flow priority) can reduce the cost further.

The solution obtained is not guaranteed to be optimal because it is possible that a better solution may be

obtained by simultaneously changing a task mapping and a flow priority

The algorithm does not consider the computation at source and destination

Page 32: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

32

Conclusions Real time communication service can be

supported by priority based wormhole switching technique

The schedulable test is derived by worst case network latency analysis

Both direct and indirect interferences are taken into account

Mapping algorithm finds a mapping to make the flow set schedulable

Page 33: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

33

References Zheng Shi and Alan Burns. 2008. Real-Time

Communication Analysis for On-Chip Networks with Wormhole Switching. In Proceedings of the Second ACM/IEEE International Symposium on Networks-on-Chip (NOCS '08). IEEE Computer Society, Washington, DC, USA, 161-170

Zheng Shi and Alan Burns. 2010. Schedulability analysis and task mapping for real-time on-chip communication. Real-Time Syst. 46, 3 (December 2010), 360-385. DOI=10.1007/s11241-010-9108-3 http://dx.doi.org/10.1007/s11241-010-9108-3

Page 34: Real-Time Communication Analysis for  NoCs  with Wormhole Switching

34

Questions?