23
Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems Open Benchmark for Java Card Technology J-M. Douin, P. Paradinas & C. Pradel Cnam/Cedric Mobile and Embedded Systems Group

Open Benchmark for Java Card Technology

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Open Benchmark for Java Card Technology

J-M. Douin, P. Paradinas & C. PradelCnam/Cedric

Mobile and Embedded Systems Group

Page 2: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Motivations• There is no benchmark to day in smart card

industry,• What means “no” :

• It is not public,• It is not accepted,• It is not opened.

• Benchmarks exist in :• R&D department of smart card

manufacturer,• Some smart cards users organization.

Page 3: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Benchmark in others areas• CPU

– SPEC CPU2004 (http://www.spec.org/)• Data base

– The Open Source Database Benchmark (http://osdb.sourceforge.net/)

Page 4: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Benchmark in others area (cont’d)

• Transaction Processing– http://www.tpc.org/,– Top Ten TPC-C Results by Performance or

Top Ten TPC-C Results by Price/Performance.

• Evolution from transactional to web services ...

Page 5: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

What we may learn from IT• Maturity of technology,• Interoperable systems,• Complexity of systems,

• =>> Require elements of measure.

• We will not replace the technology choice by a simple ranking.

Page 6: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

What is necessary to benchmark

• In Java Card Technology :• Performance,• Compatibility in term of interoperability.•

• Our goals and project is to provide open benchmark on these points.

Page 7: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Our approach in the project• Inventory of measurable performances,• Applet reference design and development,• Performance evaluation in term of time, memory

consumption and power,• Comparison with existing in house benchmark,• Benchmark tools packaging as an open software,• Publishing on the web.

Page 8: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Our approach in the project• Inventory of measurable performances,• Applet reference design and development,• Performance evaluation in term of time, memory

consumption and power (in progress 1st step of card collection),

• Comparison with existing in house benchmark :– Volunteers ?

• Benchmark tools packaging as an open software,• Publishing on the web.

Page 9: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Not an easy task• Hardware configuration :

– EEPROM/FLASH/FeRAM.• OS, memory model and VM

implementation.• Garbage collector.

• But this is the challenge.

Page 10: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Others points• We collect Java Card from different

source :– 1st step with small number of card,– 2d step with large number of card from

large manufacturer but also now with Java Technology provider.

Page 11: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

What we will not perform...• Java Card Technology specification

conformance testing,• Security evaluation,• Measure and publication on product

results.

Page 12: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Smart Card Cnam BenchmarkSCCB

SCDevice SCSystem

PhysicalCharacteristics

TechnicalCharacteristics

JC211

Java CardGlobalPlatfor

m

Test_Instruction

JC211

Test_JCRE211

Test_JCAPI211

Test_JCVM211

OP201 OP211

File: E:\work in Progress\Memoire\SCCB_diagram.mdl 17:24:37 lundi 5 juillet 2004 Class Diagram: Logical View / Main Page 1

Page 13: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

SCCB• SCDevice checks hardware function

like : memories, stack size and physical features,

• SCSystem evaluates performance of JC and OP :– Each packages performances are

measured,– Others instructions (for, while,...) are also

implemented.

Page 14: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Evaluation context• Based on Windows platform and XP :• Windows XP used with action :

– To reduce and avoid constraints due to the Windows OS latency, PCs are not connected (autonomous),

• Variance on commands (command are repeated and an average calculated),

• Different PC platforms and readers will be used.

Page 15: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

SCCB references : proposal

C . . . . .

* Σ (α.metrics) / nbcards = 100* A card will be ranked after a complete test of Applet/Metrics compare to base 100.

Applet/Metrics

Page 16: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

0

20

40

60

80

100

120

140

160

180

200m

ean

time

std

devi

atio

n

max

tim

e

min

tim

e

ops

mea

n tim

e

std

devi

atio

n

max

tim

e

min

tim

e

ops

mea

n tim

e

std

devi

atio

n

max

tim

e

min

tim

e

ops

GetShareableMetric RunSIO_functionMetric

ShareableMetric

SC-CNAM-2043ASC-CNAM-2046ASC-CNAM62046A

LookUpAIDMetric

Page 17: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

0

50

100

150

200

250

mea

n tim

est

d de

viat

ion

max

tim

em

in ti

me

ops

mea

n tim

est

d de

viat

ion

max

tim

em

in ti

me

ops

mea

n tim

est

d de

viat

ion

max

tim

em

in ti

me

ops

mea

n tim

est

d de

viat

ion

max

tim

em

in ti

me

ops

mea

n tim

est

d de

viat

ion

max

tim

em

in ti

me

ops

ArrayCopyMetric SM_ArrayCopyMetric NA_ArrayCopyMetric ArrayFillMetric

UtilMetric

SC-CNAM-2043ASC-CNAM-2046ASC-CNAM-2046A

ArrayCompMetric

Page 18: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Page 19: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Page 20: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Benchmark value added• Generation differentiation,• Plan improvement on new

implementation,• Provide a user point of view.

Page 21: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Benchmark value added• Product performances comparison and

evaluation,• May help on QoS,• May help on consumption with a better

understanding of performance (local and global),

• Open question is how “security may be measured and ranked”.

Page 22: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Conclusion• Open Benchmark (SCCB) for Java

Technology is launched,• We will collect a new collection of card :

– From volunteers,– and from direct purchasing.

• We will present more results directly to card providers or users organization and complete SCCB in e-smart 2005.

Page 23: Open Benchmark for Java Card Technology

Pierre Paradinas/CNAM/CEDRIC - Mobile and Embedded Systems

Thank you.