sbernard31 / benchmark-clients

Command line tool base on https://www.eclipse.org/leshan/ to simulate a fleet of clients
16 stars 7 forks source link

Increase data send by device #2

Closed cferssy closed 3 years ago

cferssy commented 4 years ago

Hello Bernard! How are you? Thank you for sharing your project! I am conducting some controlled tests using your project. In these tests, I need to increase the data rate that each device registered on the leshan server. Currently, the number of bytes is fixed at 98 record bytes, 26 bytes of device information and 22 bytes of server response (data captured in tcpdump). Would it be possible to have an option that I can increase the amount of data that the device sends to the server? What is the maximum number of devices that can register with the server? If you are unable to make the change, could you please guide me where I can move to increase this amount of data? In this way, when carrying out the tests, it is possible to control the data rate that only one device can send to the server. Thankful!

sbernard31 commented 4 years ago

Hi,

Not sure to get your point.

This project aims to launch several LWM2M clients. Clients start by doing a REGISTER or a BOOSTRAP then it sends periodic UPDATE to maintain its registration alive.

It does not really make so much sense to increase the REGISTER/BOOTSTRAP/UPDATE request payload as contains of this requests is defined by the specification.

You can eventually make it larger by adding "additional attributes" but it sounds a bit strange to me.

But if you want to increase the data rate you can either reduce the communication_period or configure your server in a way it send requests (READ/WRITE) to the clients on REGISTER or UPDATE (I don't know if you can do that with your server)

What is the maximum number of devices that can register with the server?

Depends on the machine used to launch the simulated devices and depends on server too. I already do some tests with 1000 or 2000 devices simulated. (the current limitation is about thread usage : https://github.com/eclipse/californium/issues/1203)

cferssy commented 4 years ago

Hello Simon! thanks a lot for your answer!

Not sure to get your point. I' ll try explain better.

This project aims to launch several LWM2M clients.Clients start by doing a REGISTER or a BOOSTRAP then it sends periodic UPDATE to maintain its registration alive. Perfect!

It does not really make so much sense to increase the REGISTER/BOOTSTRAP/UPDATE the request payload is defined by the specification.You can eventually make it larger by adding "additional attributes" but it sounds a bit strange to me. Ok! I need devices to send more data after registering with the server. Example: 1000 devices generating a rate of 4MB/s. It's enough to me.

But if you want to increase traffic the data rate you can either reduce the communication_period or configure your server in a way it send request to the client on REGISTER or UPDATE (I don't know if you can do that with your server) I'm running this way: java -jar benchmark-clients-.jar -u coap://10.0.0.1 http://10.0.0.1 -c 0 -s 1 -n 500. I would like to increase the device answers.*

What is the maximum number of devices that can register with the server? I can use about 5000 devices

Depends of the machine which launch the simulated device and depends on server.I already do some tests with 1000 or 2000 devices simulated. Depending the rate generated It's enough to me.

I'm using these experiences for my master's. Thanks a lot for your help.

Regards,

Em ter., 23 de jun. de 2020 às 10:15, Simon notifications@github.com escreveu:

Hi,

Not sure to get your point.

This project aims to launch several LWM2M clients. Clients start by doing a REGISTER or a BOOSTRAP then it sends periodic UPDATE to maintain its registration alive.

It does not really make so much sense to increase the REGISTER/BOOTSTRAP/UPDATE the request payload is defined by the specification.

You can eventually make it larger by adding "additional attributes" but it sounds a bit strange to me.

But if you want to increase traffic the data rate you can either reduce the communication_period or configure your server in a way it send request to the client on REGISTER or UPDATE (I don't know if you can do that with your server)

What is the maximum number of devices that can register with the server?

Depends of the machine which launch the simulated device and depends on server. I already do some tests with 1000 or 2000 devices simulated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sbernard31/benchmark-clients/issues/2#issuecomment-648138641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJOZEDURVIKPOILKKG7FPDRYCTF3ANCNFSM4OFSVQYQ .

-- Celso Ferreira Eng. de Desenvolvimento (12) 97693002 Skype: ferssy