The constrained application protocol (co ap) implementation-part5

15
Khamdamboy Urunov, a Ph.D. student. Special Communication Research Center., Graduate School of Financial Information Security., Kookmin University Seoul, South Korea Specification of Out Testing mechanism for Underwater Internet of Things (UIoT) 1

Transcript of The constrained application protocol (co ap) implementation-part5

Page 1: The constrained application protocol (co ap) implementation-part5

Khamdamboy Urunov, a Ph.D. student.

Special Communication Research

Center.,

Graduate School of Financial

Information Security., Kookmin

University

Seoul, South Korea

Specification of Out Testing mechanism for

Underwater Internet of Things (UIoT)

1

Page 2: The constrained application protocol (co ap) implementation-part5

Contents

1. Specification of Out Testing mechanism for Underwater Internet of

Things (Specification document)

2. Implementation Out testing mechanism

a. Server –Client (Socket Programming to for Server Socket technology) in Java

b. IQ Out Test mechanism possibility

2

Page 3: The constrained application protocol (co ap) implementation-part5

Out Test mechanism

3

Testing procedure: Out test is using checking process of communication possibility.

Fig.1. Out Test mechanism

Page 4: The constrained application protocol (co ap) implementation-part5

Out Test mechanism

4

Environment Resource directory Node(s)

Development environment

Operation System (OS) Windows 7; Windows 8.1; ~ Ubuntu 12.4 (Linux)

Run environment Java 7 GCC

Tool Eclipse GEdit

Language Java C

Table-1 The Implementation environment Out Test mechanism based on CoAP/U_CoAP protocol.

Page 5: The constrained application protocol (co ap) implementation-part5

CoAP protocol

5

It can be fulfilling the requirements of constrained RESTful environments, which goes beyond a mere

compression of HTTP.

CoAP protocol using method is GET, POST, PUT, and DELETE.

Out Test mechanism can implement using GET method based on Java and packet of Californium.

Fig.2. CoAP protocol layer

Page 6: The constrained application protocol (co ap) implementation-part5

Message format

6

Fig.3. Server-Client reliable message

Page 7: The constrained application protocol (co ap) implementation-part5

Message format (2)

7

Data type Data transmission type (server) Receiving data type (client )

CON [MID=****], GET, /status, Token[TID=****]

MID-Message ID – TID - Token ID

Message Request Response

Formal CON [MID=1234], GET, /status,

Token=0x25

ACK [MID=1234], 2.05 Content,

Token=0x25

Source Code (Java) getRequestOptions() client.get().getResponseText();

Table-1. Reliable message transmission

Page 8: The constrained application protocol (co ap) implementation-part5

A GET composed of CON message to Request with a

Separate Response

8

Fig.4: A GET composed of CON message to Request with a Separate Response

Page 9: The constrained application protocol (co ap) implementation-part5

A GET composed of CON message

to Request with a Separate Response

9

Data type

Data transmission type (server) Receiving data type (client )

CON [MID=****], GET, /status, Token[TID=****]

MID-Message ID – TID - Token ID – status – temperature

Message Request Response

Formal CON [MID=0x256], GET, /status, Token=0x25 ACK [MID=0x256]

[TIMEOUT]

Retransmit ACK [MID=0x256], Content, 22.9 C, Token=0x29 CON [MID=0x256], GET, /status, Token=0x29

Source Code (Java) getRequestOptions() client.get().getResponseText();

Table-4. CON request message is lost, and resent

Page 10: The constrained application protocol (co ap) implementation-part5

Out Test mechanism message flows

10

Fig. 4. Out Test mechanism message primitive simplification

Page 11: The constrained application protocol (co ap) implementation-part5

Implementation Out testing mechanism

11

1. Server part ready to connection client

Page 12: The constrained application protocol (co ap) implementation-part5

Implementation Out testing mechanism

(2)

12

2. Client part send to server data

Page 13: The constrained application protocol (co ap) implementation-part5

13

Implementation Out testing mechanism

(3)

Page 14: The constrained application protocol (co ap) implementation-part5

Californium in java

14

Page 15: The constrained application protocol (co ap) implementation-part5

Thank you very much

15