efficient timing channel protection for on-chip networks

25
Title Efficient Timing Channel Protection for On-Chip Networks Efficient Timing Channel Protection for On-Chip Networks Yao Wang and G. Edward Suh Cornell University

Upload: beata

Post on 23-Feb-2016

38 views

Category:

Documents


2 download

DESCRIPTION

Efficient Timing Channel Protection for On-Chip Networks. Yao Wang and G. Edward Suh Cornell University. On-Chip Networks are Shared Resources. Future large-scale multi-cores will be shared among multiple applications / virtual machines. Virtual Machine A. Virtual Machine B. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Efficient Timing Channel Protection for On-Chip Networks

Yao Wang and G. Edward SuhCornell University

Page 2: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Future large-scale multi-cores will be shared among multiple applications / virtual machines

On-Chip Networks are Shared Resources

NOCS 2012 2/21

Virtual Machine A

Virtual Machine B

Page 3: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Problem: Timing ChannelsShared NoC causes interference

NOCS 2012 3/21

Virtual Machine A

Virtual Machine B

Network interference introduces timing channels• Side channel• Covert channel

High assurance systems requires security guarantee• Example: Corporate virtual machines on the cloud

Page 4: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

RSA ExampleRSA : a public key cryptographic algorithm• Prone to timing channel attacks

NOCS 2012 4/21

Core 0

MC 0

Core 1

MC 1

Core 2

MC 2

Crossbar

RSA Attacker

key: 0110…

Page 5: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

RSA ExampleRSA : a public key cryptographic algorithm• Prone to timing channel attacks

NOCS 2012 5/21

Page 6: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

OutlineObjective: Eliminate timing channels through the

shared on-chip networks• Completely eliminate information leakage• Low performance overhead

Rest of the talk• Potential approaches• Our solution • Evaluation• Related work• Conclusion

6/21

Page 7: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

Use Quality-of-Service? QoS techniques provide performance isolation to different network flows

QoS techniques are not enough for security• A flow can use bandwidth beyond its allocation• Bandwidth utilization reveals the flow demand

7/21

Flow A Demand Flow B

DemandFlow A

BW utilization

100% 100%

100% 0%

1 2A

B

Bandwidth allocation A: 50% B: 50%

50%

100%

Page 8: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Static Partitioning To eliminate timing channels, resource allocation cannot depend on run-

time demands Static partitioning• Spatial Network Partitioning (SNP)• Temporal Network Partitioning (TNP)

Completely eliminate the timing channels• High performance overhead

NOCS 2012 8/21

SNP TNP

Cycle 0Cycle 1…

VM A VM A

VM B VM B

Page 9: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

One-Way Information Leak ProtectionUsually only one-way information protection is needed• Multi-level security (MLS) model

One-way protection is the key for efficient timing channel protection

NOCS 2012 9/21

Personal APP(Music Player)

Business App(Bank Management)

Regular VM

Corporate VM

Low-Security Domain

High-Security Domain

Information flow

PC Cloud Computing In general

Page 10: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

Timing Channel through NoC

10/21

HS demand0 1

1

LS th

roug

hput

HS: High-Security DomainLS: Low-Security Domain

HS ---> LS

Page 11: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Reversed Priority• Assign high priority to low-security domain• The behavior (throughput, latency) of low-security domain is

not affected by high-security domain

Static Limits• Low-security domain could initialize Denial-of-Service (DoS)

attack• Static limit controls the amount of traffic that low-security

domain can send during a certain interval

Reversed Priority with Static Limits (RPSL)

NOCS 2012 11/21

Page 12: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

Implementation: Avoid InterferencePriority-based separable allocator• Input arbiter & Output arbiter

Static virtual channel allocation• Avoid head-of-line blocking

12/21

Router

Virtual Channels

Input link 012

3

Low-security Domain

High-security Domain

Page 13: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

Static limit control mechanism• Counter & Control logic

Apply to both input and output arbiter

Implementation: Avoid DoS

13/21

Priority-based

Arbiter

Counter

Requests

WinningRequest

Static limit Control

Low-security Domain

High-security Domain

Input Arbiter

Page 14: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012

Benefits of One-Way Protection

14/21

Time

BWUtilization

Total BW

HS

LS

Round-robin Allocator

LS

HS

Time

BWUtilization

Total BW

HS

LS

Temporal Network Partitioning

LS

HS

Time

BWUtilization

Total BW

HS

LSLS

HSRPSL

1 2LS

HS

Page 15: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Experimental SetupGoals of experiments• Timing channel protection• DoS protection• Performance overhead

Darsim: cycle-level NoC simulator

Comparison of three schemes• Round-robin allocator (ISLIP)• Temporal Network Partitioning (TNP)• Reversed Priority with Static Limits (RPSL)

NOCS 2012 15/21

Page 16: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Timing Channel: No Protection Simple network

Round-robin allocator

NOCS 2012 16/21

1 2 3 4Low-security Domain

High-security Domain

HS

LS

Page 17: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Timing Channel: Two-way ProtectionSimple network

Temporal Network Partitioning

NOCS 2012 17/21

1 2 3 4Low-security Domain

High-security Domain

HS

LS

0.4/1.0

Page 18: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Timing Channel: One-way ProtectionSimple network

Reversed Priority with Static Limits (Static limit = 0.8)

NOCS 2012 18/21

1 2 3 4Low-security Domain

High-security Domain

HS

LS

1.0/1.0

Page 19: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

PerformanceApplications show bursty traffic

RPSL is efficient for bursty trafficNOCS 2012 19/21

HIGH

LOW

Page 20: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Related Work Side-channel protection• Shared resources are prone to side-channel attacks, e.g. shared

caches, branch prediction• Cannot be applied to NoC

QoS schemes• Allows resource usage beyond allocation• Insufficient to prevent timing channel attacks

Composability• Remove interference between applications for fast integration• Require bi-directional non-interference, incur high performance

overheadNOCS 2012 20/21

Page 21: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

ConclusionShared on-chip networks introduce timing channels• Prevent effective sharing of large-scale NoC in high assurance

systems

One-way timing channel protection is sufficient in many situations

RPSL provides efficient one-way timing channel protection• Incurs low performance overhead

NOCS 2012 21/21

Page 22: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

NOCS 2012 22/22

Extend to Multiple Domains

Page 23: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Denial-of-Service Protection (RPSL)Simple network

NOCS 2012 23

1 2 3 4Low-security Domain

High-security Domain

HS

LS

Static Limit on LS

Static Limit on LS

Page 24: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Synthetic Traffic Patterns6-by-6 mesh networkTwo security domains

Transpose traffic

NOCS 2012 24

Round-robin Temporal Network Partitioning RPSL

HIGH

LOW

LS offered BW LS offered BW LS offered BW

Page 25: Efficient Timing Channel Protection for On-Chip Networks

TitleEfficient Timing Channel Protection for On-Chip Networks

Synthetic Traffic Patterns6-by-6 mesh networkTwo security domains

Hotspot Traffic

NOCS 2012 25

HIGH

LOW

Round-robin Temporal Network Partitioning RPSL