Re: Performance related queries for SSL based client server model

2014-09-09 Thread Alok Sharma
Hi,    Thanks all for your update. But functionality wise it is working fine. I can remove the inner loop but that will require packet size to be of 1K. I tried with that also but did not find any improvement in performance. In my setup there are 8 routers between source destination. Can anyone

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Alok Sharma
Hi, I am trying with simple client server model where it is reading datat from a file and calling SSL_write and similar thing is happening on other end i.e. reading from SSL using SSL_read and writing to file. Itis taking 40 mins of time to copy file of size 600 MB and if I run a non-ssl

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 11:16:46PM +0530, Alok Sharma wrote: while ( (n = read(fd, recvBuff, sizeof(recvBuff)-1)) 0) { recvBuff[n] = 0; mode=n; i=0; while(mode0) { len=SSL_write(ssl, recvBuff, mode);

Re: Performance related queries for SSL based client server model

2014-09-08 Thread Iñaki Baz Castillo
2014-09-08 19:46 GMT+02:00 Alok Sharma alokonm...@gmail.com: One thing I observerd by looking into scp code that it does not use SSL provided APIs (i.e.SSL_Read or SSL_Write) but they use it differenly i.e. might be directly calling encryption APIs and writing data to sockets. But I don't have

RE: Performance related queries for SSL based client server model

2014-09-07 Thread Dave Thompson
This is not a –dev question, and there’s no need to send three times. scp uses the SSH protocol. OpenSSL does not implement SSH. OpenSSH, which is a different product from a different source, implements SSH, although in their design the scp program doesn’t do any comms at all, it just

Re: Performance related queries for SSL based client server model

2014-09-07 Thread Viktor Dukhovni
On Sun, Sep 07, 2014 at 01:00:17PM +0530, Alok Sharma wrote: I am writing one sample ssl based client server model which uses SSL_Read SSL_Write API provided by openssl. If you transfering each block of data as an RPC, with a round-trip acknowledgement before sending the next block, and