[dev] Error when simulate DoS attack on IoTivity server

2017-03-25 Thread Binh Dang Thien
Yes, I am using *simpleclient* but I modified the code to infinite loop
instead of just getting 10 notifications. What I mean is when I run the
sample without DoS, it runs well (even for an hour). But when I start DoS
attack on the *simpleserver *(they are still running)*, *the *simpleserver*
continues run about 10 or 15 notifications more before the error happened
as I mentioned in the previous email.

*DANG Thien Binh*
Networking Laboratory, 26317
Electronic and Electrical Engineering Department
School of Information and Communication Engineering
Sungkyunkwan University (SKKU)
Suwon 440-746, KOREA
+82-31-290-4226(LAB)
+82-31-299-4134(FAX)
email: dtbinh at skku.edu, binh01t2 at gmail.com


On Sat, Mar 25, 2017 at 1:18 AM, Shetty, Mandeep 
wrote:

> Are you also using the simpleclient present in resource/examples/?
>
> Since you mentioned ?10 notifications?, the simpleclient IS written to
> send the cancelObserve() request after the 10th notification.
> This might be a trivial thing to verify.
>
>
>
> *From:* iotivity-dev-bounces at lists.iotivity.org [mailto:
> iotivity-dev-bounces at lists.iotivity.org] *On Behalf Of *Binh Dang Thien
> *Sent:* Thursday, March 23, 2017 8:44 PM
> *To:* iotivity-dev 
> *Subject:* [dev] Error when simulate DoS attack on IoTivity server
>
>
>
> Dear everyone,
>
>
>
> I setup IoTivity on Raspberry Pi and modify the *simpleserver *example
> (in /resource/examples folder) that reads temperature of DHT11 sensors
> (attached on Raspberry Pi board) and notify to the *simpleclient *(installed
> on a PC running Ubuntu). I test 2 cases:
>
> 1. No DoS attack on Raspberry Pi: everything works fine
>
> 2. Launch DoS attack on Raspberry Pi from another PC: it still works fine
> with around 10 notifications. However, it then returns
> OC_STACK_NO_OBSERVERS from the function call *notifyListOfObservers.*
>
> Could you explain why this happens? And how to fix this?
>
>
>
> Thanks and best regards,
>
> *DANG Thien Binh*
>
> Networking Laboratory, 26317
>
> Electronic and Electrical Engineering Department
>
> School of Information and Communication Engineering
> Sungkyunkwan University (SKKU)
> Suwon 440-746, KOREA
>
> +82-31-290-4226(LAB)
>
> +82-31-299-4134(FAX)
>
> email: dtbinh at skku.edu, binh01t2 at gmail.com
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170325/74ec9344/attachment.html>


[dev] Error when simulate DoS attack on IoTivity server

2017-03-24 Thread Shetty, Mandeep
Are you also using the simpleclient present in resource/examples/?

Since you mentioned ?10 notifications?, the simpleclient IS written to send the 
cancelObserve() request after the 10th notification.
This might be a trivial thing to verify.

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Binh Dang Thien
Sent: Thursday, March 23, 2017 8:44 PM
To: iotivity-dev 
Subject: [dev] Error when simulate DoS attack on IoTivity server

Dear everyone,

I setup IoTivity on Raspberry Pi and modify the simpleserver example (in 
/resource/examples folder) that reads temperature of DHT11 sensors (attached on 
Raspberry Pi board) and notify to the simpleclient (installed on a PC running 
Ubuntu). I test 2 cases:
1. No DoS attack on Raspberry Pi: everything works fine
2. Launch DoS attack on Raspberry Pi from another PC: it still works fine with 
around 10 notifications. However, it then returns OC_STACK_NO_OBSERVERS from 
the function call notifyListOfObservers.
Could you explain why this happens? And how to fix this?

Thanks and best regards,

DANG Thien Binh
Networking Laboratory, 26317
Electronic and Electrical Engineering Department
School of Information and Communication Engineering
Sungkyunkwan University (SKKU)
Suwon 440-746, KOREA
+82-31-290-4226<tel:%2B82-31-290-4226>(LAB)
+82-31-299-4134<tel:%2B82-31-299-4134>(FAX)
email: dtbinh at skku.edu<mailto:dtbinh at skku.edu>, binh01t2 at 
gmail.com<mailto:binh01t2 at gmail.com>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170324/4264df68/attachment.html>


[dev] Error when simulate DoS attack on IoTivity server

2017-03-24 Thread Binh Dang Thien
Dear everyone,

I setup IoTivity on Raspberry Pi and modify the *simpleserver *example (in
/resource/examples folder) that reads temperature of DHT11 sensors
(attached on Raspberry Pi board) and notify to the *simpleclient *(installed
on a PC running Ubuntu). I test 2 cases:
1. No DoS attack on Raspberry Pi: everything works fine
2. Launch DoS attack on Raspberry Pi from another PC: it still works fine
with around 10 notifications. However, it then returns
OC_STACK_NO_OBSERVERS from the function call *notifyListOfObservers.*
Could you explain why this happens? And how to fix this?

Thanks and best regards,

*DANG Thien Binh*
Networking Laboratory, 26317
Electronic and Electrical Engineering Department
School of Information and Communication Engineering
Sungkyunkwan University (SKKU)
Suwon 440-746, KOREA
+82-31-290-4226(LAB)
+82-31-299-4134(FAX)
email: dtbinh at skku.edu, binh01t2 at gmail.com
-- next part --
An HTML attachment was scrubbed...
URL: