gs1/oliot ons/ds and next

37
Jun. 25, 2014 Auto-ID Labs, KAIST Dept. of Computer Science, KAIST GS1/Oliot Object Name Service & Discovery Service Kiwoong Kwon [email protected], http://oliot.org, http://autoidlab.kaist.ac.kr, http://resl.kaist.ac.kr http://autoidlabs.org http://gs1.org

Upload: daeyoung-kim

Post on 10-May-2015

342 views

Category:

Software


0 download

TRANSCRIPT

Page 1: GS1/Oliot ONS/DS and Next

Jun. 25, 2014

Auto-ID Labs, KAIST

Dept. of Computer Science, KAIST

GS1/Oliot Object Name Service &

Discovery Service

Kiwoong Kwon

[email protected], http://oliot.org, http://autoidlab.kaist.ac.kr, http://resl.kaist.ac.kr http://autoidlabs.org http://gs1.org

Page 2: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 2

Object Name Service (ONS)

– Motivation

– Architecture for ONS

– Formal specification

– Federated ONS

– Future ONS for IoT

Discovery Service (DS)

– Motivation

– Architecture for DS

– Oliot DS

– Architecture for Oliot DS

– Future DS for IoT

Contents

Page 3: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 3

Motivation for ONS (1)

Most medical devices in US should include an unique device

identifier (UDI) ..

Page 4: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 4

Motivation for ONS (2)

Company?

Model No?

Googling?

Contact?

Current situation ..

I want to find

instruction sheets for

my medical devices.

Page 5: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 5

Motivation for ONS (3)

I can get information

of medical devices

using reader !!

If a reader reads ID tags attached to medical devices ..

But, I cannot

understand what

does it mean .. An ID tag

cannot contain

large data ..

01010011

00010101

01010010

Page 6: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 6

Motivation for ONS (4)

Is there any service to

find where the instruction

sheets for medical

devices are?

So, how can I find the instruction sheets for medical devices?

That is

Object Name Service

(ONS)

Page 7: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 7

Concept of ONS (1)

Manual Service

Object Name Service

(ONS)

manual

html

epcis

Page 8: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 8

Concept of ONS (2)

Manual Service

Object Name Service

(ONS)

If all things can get GS1 ID ..

Page 9: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 9

Passive Tags

(e.g., passive

tags, barcode)

Sensor & Actuator Networks(e.g., ZigBee, 6LoWPAN, Mobile phone, BLE,

AllJoyn, lwM2M etc.)

Active Tags (e.g.,

Wireless ID and Sensor

Networks)

RFID Middleware

LLRP LLRP Sensor & actuator protocols Sensor & actuator protocols

Domain-specific capturing application

Domain-specific accessing applications

Sensor Interface

Sensor interface

EPC Information Service

(static and dynamic information)

ALE

Actuation Interface

Sensor & Actuator Middleware

Object

Name

Service

Discovery

Service

ZigBee6LoWPAN/

CoAPMQTT

Web

service-*REST

Other

Comm.

RFID stream processing

Logical RFID

reader

Reader

Management

Sensor stream

processing

Sensor & actuator

Management

ID-Sensor stream

processing

Object Name Service (ONS)

– Service to lookup static information about the given GS1 Identification keys using the

Internet’s existing Domain Name System (DNS) protocol

ONS in Oliot

ONS lookup for static

information of things

(e.g., product info

services)

Page 10: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 10

ONS Application ONS Client

EPCIS Server

ONS Peer Roots

(1)(2)

(3)

(6) (7)

Local caching nameserver

(5)

(8)

(4)

ONS Architecture

Federated ONS Infrastructure

GS1 ID AUS FQDN

NAPTR records

Page 11: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 11

Extract the desired GS1 ID Key type and GS1 ID Key from the sequence of data

– (00)306141417782246356(02)50614141322607(37)20

Type: GTIN (02)

Key: 50614141322607

AUS format

– language code | country code | type | key

AUS conversion example

– GDTI 0614141665815 with serial 999888777, English service in Canada

AUS: en|ca|gdti|0614141665815

ONS Application

GS1 ID AUS

Conversion to Application Unique String (AUS)

Page 12: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 12

Conversion from AUS into FQDN

Conversion to Fully Qualified Domain Name (FQDN)

AUS

FQDN

||gtin|00614141322602 0 0614141 32260 2

indicator company prefix itemref check

00614141322602 Strip checksum

0.061414132260 Hold indicator

0.062231414160 Revers all remaining characters

0.0.6.2.2.3.1.4.1.4.1.6.0. Append a ‘.’

0.0.6.2.2.3.1.4.1.4.1.6.0.gtin Append ID key type

0.0.6.2.2.3.1.4.1.4.1.6.0.gtin.gs1.id

0.0.6.2.2.3.1.4.1.4.1.6.0.gtin.gs1.id.onsepc.com

Append ‘.gs1.id.’

Append peer root

ONS Application ONS Client

AUS FQDN

Page 13: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 13

ONS Query

– Query for ONS Query Responses for the Fully Qualified Domain Name (FQDN)

ONS Query Response

– A set of Naming Authority PoinTeR (NAPTR) Records

ONS Formal Specification - ONS Query Responses

ONS Query

ONS Query response

ONS Client

Local caching nameserver

ONS Peer Roots

0.0.6.2.2.3.1.4.1.4.1.6.0.gtin.gs1.id.onsepc.com

Page 14: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 14

Nameserver (NS) delegation

– Desired name servers exists below current ONS Peer Root

Delegation name (DNAME) delegation

– Desired name servers exists in another ONS Peer Root, not current ONS Peer Root

– Using the GS1 prefix (last three digits), identify where the query is destined.

Federated ONS - Delegation

GS1 Prefix Domain Country

1.6.0 onsepc.com America

0.8.8 onsepc.kr Korea

0.0.3 onsepc.fr France

Korean

ONS Peer Root

American

ONS Peer Root

French

ONS Peer Root

ONS Server

In Korea

ONS Server

In America

ONS Server

In France

NS

Delegation

DNAME

Delegation

~.1.4.1.4.X.X.X.gtin.gs1.id.onsepc.XXX

Page 15: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 15

ONS peer Roots

Local system

ONS Application

ONS Client

EPCIS Server

ONS Query

ONSResponse

Korean Rootonsepc.kr

ONS Server in Korea

American Rootonsepc.com

Local caching nameserver

ONS Server in America

Federated ONS - NS Delegation

1

2

3

4

5 6

GS1 Prefix Domain Country

1.6.0 onsepc.com America

0.8.8 onsepc.kr Korea

~.0.8.8.~.onsepc.kr.

Resolution

Success

Page 16: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 16

ONS peer Roots

Local system

ONS Application

ONS Client

EPCIS Server

ONS Query

ONSResponse

Korean Rootonsepc.kr

ONS Server in Korea

American Rootonsepc.com

Local caching nameserver

ONS Server in America

Federated ONS - DNAME Delegation

1

2 3

4

5

6 7

~.1.6.0.~.onsepc.kr.

Resolution

Success

GS1 Prefix Domain Country

1.6.0 onsepc.com America

0.8.8 onsepc.kr Korea

Page 17: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 17

Globally Federated ONS Peer Roots

Deployment Plan for Federated ONS

Korea

Japan China

Taiwan

Australia

USA

Brazil

Switzerland

England

Sunchon

Univ.

GS1 Korea

Samsung

KAIST

Local ONS Name Servers

Page 18: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 18

Future ONS with GS1 for IoT

Desired Service

ONS

Page 19: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 19

Motivation for Discovery Service (1)

Object Name Service

(ONS)

Is ONS enough to

find dynamic

information for my

things?

Page 20: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 20

Motivation for Discovery Service (2)

Manufacturer EPCIS EPCIS B (Store) ONS EPCIS A

Retailer

I found faults for all

same typed

products

I don’t know!

Give me list of

EPCISs related

to given GS1 ID?

Page 21: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 21

Concept of Discovery Service

Manufacturer EPCIS EPCIS B (Store) ONS EPCIS A

Retailer

Discovery Service

I know it ! Give me list of

EPCISs related

to given GS1 ID?

Page 22: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 22

Passive Tags

(e.g., passive

tags, barcode)

Sensor & Actuator Networks(e.g., ZigBee, 6LoWPAN, Mobile phone, BLE,

AllJoyn, lwM2M etc.)

Active Tags (e.g.,

Wireless ID and Sensor

Networks)

RFID Middleware

LLRP LLRP Sensor & actuator protocols Sensor & actuator protocols

Domain-specific capturing application

Domain-specific accessing applications

Sensor Interface

Sensor interface

EPC Information Service

(static and dynamic information)

ALE

Actuation Interface

Sensor & Actuator Middleware

Object

Name

Service

Discovery

Service

ZigBee6LoWPAN/

CoAPMQTT

Web

service-*REST

Other

Comm.

RFID stream processing

Logical RFID

reader

Reader

Management

Sensor stream

processing

Sensor & actuator

Management

ID-Sensor stream

processing

• Discovery Service (DS)

– The service to lookup dynamic information about the given GS1

Identification keys and provide dynamic information to DS client

Discovery Service in Oliot

DS lookup for dynamic

information of each

individual thing (e.g.,

historic locations of

things)

Page 23: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 23

Discovery Service

Manufacturer EPCISONS EPCIS A

Client

EPCIS B

(1)(2) (3)

(5)

(4)

Discovery Service Architecture

Event Registration

GS1 ID

Service lists

DS Query

DS Response

Page 24: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 24

Event Registration

– Contents

Who? GS1 ID

When? Timestamp

Where? EPCIS Address

Event Registration

Discovery Service

Manufacturer EPCIS EPCIS A EPCIS B

Event Registration

Page 25: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 25

DS Query

– Contents

GS1 ID

Time period

– Beginning of the time period

– End of the time period

Discovery Service Access

Discovery ServiceClient

DS Response

– Contents

GS1 ID

A set of EPCIS address records

DS

Query/Response

Page 26: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 26

Current DS is tailored to a supply chain in B2B application

– B2C should be considered in IoT.

How to satisfy client’s demand using DS?

– Client may want to know the real locations of the stores selling the desired

products near his current location

Discovery Service from an aspect of B2C

Client

I want to buy more.

Where can I buy them?

Page 27: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 27

Oliot Discovery Service

1km

Oliot Discovery Service

– Find the real physical locations of the desired GS1 products inner distance

radius circle from current location

Page 28: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 28

Oliot Discovery Service Architecture

Discovery Service

Manufacturer EPCISONS EPCIS A

Client

EPCIS B

(1)(2) (3)

(5)

(4)

Page 29: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 29

Message formats for Oliot Discovery Service

• JSON documentation is object type for Elasticsearch

• Event Registration

{“ID":“urn:epc:id:sgtin:0057000.123780.7788",

"EPCIS":“http://[2002:8ff8:3853::8ff8:3853]/epcis-repository-0.4.3/query",

"timestamp":"20140509003200",

"location":{"lat":36.321512,"lon":127.246547}}

• Geo-location Search

{"query":{"match":{

“ID":{"query":"urn:epc:id:sgtin:0057000.123780.7788","type":"phrase"}}},

"filter":{"and":{"filters":[{"geo_distance":{

"geo.location":{"lat":36.350412,"lon":127.38454700000001},

"distance":30,"unit":"km"}},

{"range":{"timestamp":{

"from":"20130910000000",

"to":"20141030165000",

"include_lower":true,"include_upper":true}}}]}}}

Current location

Size of the

distance radius

circle

Page 30: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 30

Current UI for Oliot Discovery Service

Page 31: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 31

Globally

Distributed DS

Future DS with GS1 for IoT

EPCISes

EP

IS

L

ist

Page 32: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 32

IoT Scenario with ONS and DS

KAIST

Discovery Service

ONS

Client

My lost thing

A

dd

re

ss o

f D

S

Page 33: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 33

Q & A

Page 34: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 34

EPCglobal Object Name Service (ONS) 1.0.1

– http://www.gs1.org/gsmp/kc/epcglobal/ons/ons_1_0_1-standard-

20080529.pdf

GS1 Object Name Service (ONS) Version 2.0.1

– http://www.gs1.org/gsmp/kc/epcglobal/ons/ons_1_0_1-standard-

20080529.pdf

Federated ONS Architecture for the Internet of Things - A

Functional Evaluation

– http://www.caad.arch.ethz.ch/noolab/files/external/conferences/IoT2010_pr

oceedings/pdf/Demo/D4.pdf

Discovery Services in the EPC Network

– http://cdn.intechopen.com/pdfs-wm/18103.pdf

GS1 Discovery Service Standard

– http://www.gs1.org/gsmp/kc/epcglobal/discovery

References

Page 35: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 35

Appendix

Page 36: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 36

ONS peer Roots

Local system

ONS Application

ONS Client

EPCIS Server

ONS Query

ONSResponse

Korean Rootonsepc.kr

ONS Server in Korea

American Rootonsepc.com

ONS server in French

French Rootonsep.fr

Local caching nameserver

ONS Server in America

1

2

3

~.0.0.3.~.onsepc.kr.

Resolution

Failure

GS1 Prefix Domain Country

1.6.0 onsepc.com America

0.8.8 onsepc.kr Korea

Federated ONS - GS1 Prefix Updated Case : Not Synchronized

Page 37: GS1/Oliot ONS/DS and Next

© Auto-ID Lab Korea / KAIST

Slide 37

ONS peer Roots

Local system

ONS Application

ONS Client

EPCIS Server

ONS Query

ONSResponse

Korean Rootonsepc.kr

ONS Server in Korea

American Rootonsepc.com

ONS server in French

French Rootonsep.fr

Local caching nameserver

ONS Server in America

1

2

3

5

6 7

4

GS1 Prefix Domain Country

1.6.0 onsepc.com America

0.8.8 onsepc.kr Korea

0.0.3 onsepc.fr France

~.0.0.3.~.onsepc.kr.

Resolution

Success

Federated ONS - GS1 Prefix Updated Case : Synchronized