Andy,
We will try to recreate the scenario on our end and report back.  Please 
confirm whether this is on the master branch?
Regards,
--Vijay
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of ???
Sent: Tuesday, March 24, 2015 4:06 AM
To: "Lankswert,Patrick<patrick.lankswert"@intel.com
Cc: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Cannot handle fast notification in ClientSever Mode


Hi Pat



I'm andy and I had been envolved Group Manager task last year.

Currently we are testing IoTivity to handle several things simultaneously.
In our scenario, one IoTivity client exist to get some data that generated by 
another IoTivity server and we are now using observe mechanism to get the data 
from IoTivity server.

We supposed that frequent log generation by IoTivity server can be happen in 
everywhere so we've tested NotifyObserve function with the period 1 sec. to 
test that scenario.

When the mode of that IoTivity client is 'Client', it seems to be okay.
However the mode of IoTivity client is 'ClientServer', we've seen many 
notification had been lost.



Mr. Kwon, my colleque reported this a week before but there are no reactions 
about it.
Since IoTivity/OIC is to support local connectivity in IoT domain, I think 
collection of data from things is very important feature.



As the chair/maintainer of Discovery & Connectivity TG, please review this 
problem and let me know what kind of situation is this.



Is this...
- intentional situation? then why?
- known problem? then when this can be resolved?
- from some mistake of our side? (means isn't this reproducible?)
- the sitaution that needs more testing?



Regards
Andy Minho Lee



------- Original Message -------

Sender : ???<daeken.kwon at samsung.com<mailto:daeken.kwon at samsung.com>> 
S5(??)/??/IoT Solution Lab(S/W??)/????

Date : 2015-03-16 11:41 (GMT+09:00)

Title : [dev] Cannot handle fast notification in ClientSever Mode



Dear All



Hi, All

While I'm testing between simple client and simple clieintserver, I found one 
issue about handling notificatoin.

Client with Clientserver mode might have issue when server send notification 
fast.

If there are many servers which sends notification, this situation become worse.



1) Test Scenario

- Source code :  occlient.cpp, ocserver.cpp (13th March)

- Host mode of operation of occlient is OC_CLIENT_SERVER.

- ChangeLightRepresentation()  : change sleep time to 1 sec for sending 
NotifyOfObserve every 1sec



2) Test Result

- Simple server send notification every 1 sec but simple client (ServerClient 
Mode) can't handle this notification in time.

ex)

// simple server : sending 50 notification messages

234 9:v:1 t:1 tkl:8 c:64 id:47423 o: [ 6:'\x00\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x0990\x0A\x09}\x0A}]}\x00

...

  2137 9:v:1 t:0 tkl:8 c:64 id:55693 o: [ 6:',\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09290\x0A\x09}\x0A}]}\x00

  2139 9:v:1 t:0 tkl:8 c:64 id:55689 o: [ 6:'(\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09270\x0A\x09}\x0A}]}\x00

  2141 9:v:1 t:0 tkl:8 c:64 id:55702 o: [ 6:'5\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09335\x0A\x09}\x0A}]}\x00

  2143 9:v:1 t:0 tkl:8 c:64 id:55703 o: [ 6:'6\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09340\x0A\x09}\x0A}]}\x00

  2144 9:v:1 t:2 tkl:0 c:0 id:55673

  2146 9:v:1 t:2 tkl:0 c:0 id:55669

...

// simple clientserver : handle 28 notifiaction messages

v:1 t:1 tkl:8 c:64 id:47423 o: [ 6:'\x00\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x0990\x0A\x09}\x0A}]}\x00

...

v:1 t:1 tkl:8 c:64 id:55683 o: [ 6:'"\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09240\x0A\x09}\x0A}]}\x00

v:1 t:1 tkl:8 c:64 id:55684 o: [ 6:'#\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09245\x0A\x09}\x0A}]}\x00

v:1 t:0 tkl:8 c:64 id:55685 o: [ 6:'$\x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09250\x0A\x09}\x0A}]}\x00

v:1 t:0 tkl:8 c:64 id:55681 o: [ 6:' \x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09230\x0A\x09}\x0A}]}\x00

v:1 t:0 tkl:8 c:64 id:55681 o: [ 6:' \x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09230\x0A\x09}\x0A}]}\x00

v:1 t:0 tkl:8 c:64 id:55681 o: [ 6:' \x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09230\x0A\x09}\x0A}]}\x00

v:1 t:0 tkl:8 c:64 id:55681 o: [ 6:' \x00\x00\x00', 12:'\x32', 
14:'\xFF\xFF\x02\x00' ] 
d:{"oc":[{\x0A\x09"href":\x09"/a/light_L",\x0A\x09"rep":\x09{\x0A\x09\x09"state":\x09"off",\x0A\x09\x09"power":\x09230\x0A\x09}\x0A}]}\x00

Please find attched test source code 
(\resource\csdk\stack\samples\linux\SimpleClientServer\) and logs.



Thanks.

DK Kwon



------------------------------------------------

Kwon, Dae-Ken

Senior Engineer

IoT Solution Lab

Web & Convergence Team, Software Center

SAMSUNG ELECTRONICS CO.,LTD

Mobile : +82-10-7260-4385

E-mail : daeken.kwon at samsung.com<mailto:daeken.kwon at samsung.com>

------------------------------------------------





Regards,

Andy Minho Lee




--------



Lee Min Ho
Principal Engineer

IoT Solution Lab.
Web & Convergence Team
Software Center
SAMSUNG ELECTRONICS CO.,LTD

TEL . 82-31-279-7888
FAX . 82-31-279-0523
Mobile . 82-10-6228-8340
E-Mail . minho03.lee at samsung.com<mailto:minho03.lee at samsung.com>







[cid:image001.gif at 01D065E8.CD166780]

[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=a89e2f31c590267a45c25d38f187fe3bb5fc9be732af79302829e26d6950518d4e60fcf6aeb61df594c3b6ddffd7613bcb238d00164b0be48eeb9bec5ad9c75d326bbdfb2ea96a2fcf878f9a26ce15a0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150324/8635cca8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: image001.gif
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150324/8635cca8/attachment.gif>

Reply via email to