the constrained application protocol (co ap) implementation-part5
TRANSCRIPT
![Page 1: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/1.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/2.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/3.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/4.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/5.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/6.jpg)
Message format
6
Fig.3. Server-Client reliable message
![Page 7: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/7.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/8.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/9.jpg)
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](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/10.jpg)
Out Test mechanism message flows
10
Fig. 4. Out Test mechanism message primitive simplification
![Page 11: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/11.jpg)
Implementation Out testing mechanism
11
1. Server part ready to connection client
![Page 12: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/12.jpg)
Implementation Out testing mechanism
(2)
12
2. Client part send to server data
![Page 13: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/13.jpg)
13
Implementation Out testing mechanism
(3)
![Page 14: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/14.jpg)
Californium in java
14
![Page 15: The constrained application protocol (co ap) implementation-part5](https://reader031.vdocument.in/reader031/viewer/2022030317/5a66bc797f8b9ab87e8b48a7/html5/thumbnails/15.jpg)
Thank you very much
15