The constrained application protocol (co ap) implementation-part5
-
Upload
hamdamboy-urunov -
Category
Education
-
view
15 -
download
3
Transcript of 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
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
Out Test mechanism
3
Testing procedure: Out test is using checking process of communication possibility.
Fig.1. Out Test mechanism
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.
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
Message format
6
Fig.3. Server-Client reliable message
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
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
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
Out Test mechanism message flows
10
Fig. 4. Out Test mechanism message primitive simplification
Implementation Out testing mechanism
11
1. Server part ready to connection client
Implementation Out testing mechanism
(2)
12
2. Client part send to server data
13
Implementation Out testing mechanism
(3)
Californium in java
14
Thank you very much
15