Winsock Protocol problem in loadrunner

473 views
Skip to first unread message

pradeep

unread,
Dec 15, 2010, 7:30:22 AM12/15/10
to LoadRunner
Hi,

I want to know indepth about winsock protocol used in loadrunner, i am
facing problem in my project for client-server application for some
receive function in socket not able to receive the data recorded, what
might be the reason? if there is any dynamic data its not possible to
correlate because i am receiving 0 bytes something like this
Action.c(24): lrs_send(socket0, buf4)
Action.c(26): lrs_receive(socket0, buf5)
Action.c(26): Mismatch in buffer's length (expected 51 bytes, 0 bytes
actually received, difference in 51 bytes) and socket aborts the
connection with 10053 error.
one more question how to decrypt the values in data.ws so that i can
understand what exactly is server is trying to send and receive.
please help me its urgent.

Gaz Davidson

unread,
Dec 15, 2010, 10:12:19 AM12/15/10
to LR-Loa...@googlegroups.com
I recommend using Wireshark to record the network traffic. This will allow you to easily compare LoadRunner's playback with your recording in a much better format than LoadRunner's, grant you a few insights and allow you to figure out where you're going wrong.

Reverse engineering proprietary sockets protocols is not often an easy task, it's a lot of fun, just not easy!

James Pulley

unread,
Dec 15, 2010, 11:57:21 AM12/15/10
to lr-loa...@googlegroups.com
Urgent=offer to pay.

Record twice. Examine buffers. Correlate.

Google 10053 winsock

Speak with your developers about buffer decodes

'Pulley

pradeep <pradeep...@gmail.com> wrote:

>--
>You received this message because you are subscribed to the Google "LoadRunner" group.
>To post to this group, send email to LR-Loa...@googlegroups.com
>To unsubscribe from this group, send email to
>LR-LoadRunne...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/LR-LoadRunner?hl=en

prasenjit dutta

unread,
Dec 15, 2010, 12:25:50 PM12/15/10
to lr-loa...@googlegroups.com
difference in received bytes is due to correlation....try to figure the data that has to be correlated.....and do a proper correlation and ur problem will be solved.

thanks,
prasenjit

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Prasenjit

Anuj Sharma

unread,
Dec 15, 2010, 10:53:21 PM12/15/10
to lr-loa...@googlegroups.com
Hi,
If you are able to know the dynamic values in your script, than identify those values and buffer position in DATA.WS file, and correlate same in tree view.

Don't bother about buffer mismatch message, this is warning message.

Thanks,
Anuj.

This error is very much related to wrong data sent to server. You may have not correlated a value or wrong parametrized value sending to server.

pradeep

unread,
Dec 16, 2010, 7:15:15 AM12/16/10
to LoadRunner
Hi,

I compared the data by running two scripts there are hell lot of
difference in both send and receive data
do i need to correlate all?, my application architecture is client
server. server sits in VMware ESX server and client on different
machine or same vmware client and the developers are in different
location so difficult to be in sync

pradeep

On Dec 15, 10:25 pm, prasenjit dutta <prasenjit...@gmail.com> wrote:
> difference in received bytes is due to correlation....try to figure the data
> that has to be correlated.....and do a proper correlation and ur problem
> will be solved.
>
> thanks,
> prasenjit
>
>
>
> On Wed, Dec 15, 2010 at 6:00 PM, pradeep <pradeep2for...@gmail.com> wrote:
> > Hi,
>
> > I want to know indepth about winsock protocol used in loadrunner, i am
> > facing problem in my project for client-server application for some
> > receive function in socket not able to receive the data recorded, what
> > might be the reason? if there is any dynamic data its not possible to
> > correlate because i am receiving 0 bytes something like this
> > Action.c(24): lrs_send(socket0, buf4)
> > Action.c(26): lrs_receive(socket0, buf5)
> > Action.c(26): Mismatch in buffer's length (expected 51 bytes, 0 bytes
> > actually received, difference in 51 bytes) and socket aborts the
> > connection with 10053 error.
> > one more question how to decrypt the values in data.ws so that i can
> > understand what exactly is server is trying to send and receive.
> > please help me its urgent.
>
> > --
> > You received this message because you are subscribed to the Google
> > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>

James Pulley

unread,
Dec 16, 2010, 9:05:50 AM12/16/10
to lr-loa...@googlegroups.com
Yes, if you want to accurately represent the client behavior then you will
need to alter the dynamic components of the send buffers, replacing them
with correlated values or parameterized values where appropriate.

If you have no interest in accurately reproducing the behavior of your
client then no, you do not have to modify these elements.

VKMARE traditionally is not a server process host, it is a virtual machine
host, so your client application is either speaking to a file service, an
application server or a database server. You may want to reexamine your
application architecture diagrams to understand better the difference
between the architectural components for the application and the hosting
model for the underlying OS's for the architectural components. This may
take you down a different path than the one you are on with Windows Sockets.

James Pulley, http://www.loadrunnerbythehour.com/PricingMatrix

Hi,

pradeep

to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@go


oglegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> --
> Prasenjit

--

You received this message because you are subscribed to the Google
"LoadRunner" group.

To post to this group, send email to LR-Loa...@googlegroups.com


To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com

pradeep

unread,
Dec 16, 2010, 7:15:25 AM12/16/10
to LoadRunner
Hi,

I compared the data by running two scripts there are hell lot of
difference in both send and receive data
do i need to correlate all?, my application architecture is client
server. server sits in VMware ESX server and client on different
machine or same vmware client and the developers are in different
location so difficult to be in sync

pradeep

On Dec 15, 9:57 pm, James Pulley <loadrunner-li...@jamespulley.com>
wrote:
> Urgent=offer to pay.
>
> Record twice.  Examine buffers.  Correlate.
>
> Google 10053 winsock
>
> Speak with your developers about buffer decodes
>
> 'Pulley
>
> pradeep <pradeep2for...@gmail.com> wrote:
> >Hi,
>
> >I want to know indepth about winsock protocol used in loadrunner, i am
> >facing problem in my project for client-server application for some
> >receive function in socket not able to receive the data recorded, what
> >might be the reason? if there is any dynamic data its not possible to
> >correlate because i am receiving 0 bytes something like this
> >Action.c(24): lrs_send(socket0, buf4)
> >Action.c(26): lrs_receive(socket0, buf5)
> >Action.c(26): Mismatch in buffer's length (expected 51 bytes, 0 bytes
> >actually received, difference in 51 bytes) and socket aborts the
> >connection with 10053 error.
> >one more question how to decrypt the values in data.ws so that i can
> >understand what exactly is server is trying to send and receive.
> >please help me its urgent.
>
> >--
> >You received this message because you are subscribed to the Google "LoadRunner" group.>To post to this group, send email toLR-Lo...@googlegroups.com

prasenjit dutta

unread,
Dec 17, 2010, 1:48:46 AM12/17/10
to lr-loa...@googlegroups.com
Hi,
 
I don't think u need to correlate the send one.....you have to correlate only the received one.
 
Hope this will help you.
 
Thanks,
Prasenjit

To post to this group, send email to LR-Loa...@googlegroups.com

To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Prasenjit

Anuj Sharma

unread,
Dec 16, 2010, 11:38:48 PM12/16/10
to lr-loa...@googlegroups.com
I would recommend you correlate all dynamic values. Identify values and buffer where they are lying in data.ws file.
It really doesn't matter location of servers, just once contact with developer i discussed discuss the identified values.




To post to this group, send email to LR-Loa...@googlegroups.com

To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Anuj.

James Pulley

unread,
Dec 17, 2010, 9:55:25 AM12/17/10
to lr-loa...@googlegroups.com

You correlate against the receive buffer, the results of which go into a send buffer

 

From: lr-loa...@googlegroups.com [mailto:lr-loa...@googlegroups.com] On Behalf Of prasenjit dutta
Sent: Friday, December 17, 2010 1:49 AM
To: lr-loa...@googlegroups.com
Subject: Re: Winsock Protocol problem in loadrunner

 

Hi,

Anuj Sharma

unread,
Dec 17, 2010, 10:55:12 AM12/17/10
to lr-loa...@googlegroups.com

Definitely you have to correlate data in receive buffer only and parametrize value in send buffers.
This is basic rule.
Anuj.

pradeep

unread,
Dec 20, 2010, 12:30:17 AM12/20/10
to LoadRunner
Hi,

One last doubt, i compared two same scripts the first send buffer
itself is dynamic?

pradeep

On Dec 17, 8:55 pm, Anuj Sharma <anuj11....@gmail.com> wrote:
> Definitely you have to correlate data in receive buffer only and parametrize
> value in send buffers.
> This is basic rule.
>
> On Fri, Dec 17, 2010 at 8:25 PM, James Pulley <
>
>
>
> loadrunner-li...@jamespulley.com> wrote:
> > You correlate against the receive buffer, the results of which go into a
> > send buffer
>
> > *From:*lr-loa...@googlegroups.com[mailto:>lr-loa...@googlegroups.com]*On Behalf Of *prasenjit dutta
> > *Sent:* Friday, December 17, 2010 1:49 AM> *To:*lr-loa...@googlegroups.com
>
> > *Subject:* Re: Winsock Protocol problem in loadrunner
>
> > Hi,
>
> > I don't think u need to correlate the send one.....you have to correlate
> > only the received one.
>
> > Hope this will help you.
>
> > Thanks,
>
> > Prasenjit
>
> > > >To unsubscribe from this group, send email to>>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>
> > > >For more options, visit this group at
> > > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > --
> > Prasenjit
>
> > --
> > You received this message because you are subscribed to the Google
> > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>

John Crunk

unread,
Dec 22, 2010, 1:13:21 PM12/22/10
to lr-loa...@googlegroups.com
Your asking us?

Sent from my iPhone

> To post to this group, send email to LR-Loa...@googlegroups.com


> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com

Gaz Davidson

unread,
Dec 22, 2010, 2:48:02 PM12/22/10
to LoadRunner
How dynamic? If the whole thing is different and looks like random
noise then it's either compressed, encrypted or uses bitstreams. It's
time to talk to the developers, do some reverse engineering and/or
choose a completely different approach.

Do you understand the technologies involved? What DLLs does the app
come with, who made them, what's the app written in? The application
data may be being sent over another protocol which sits on top of TCP/
IP.



On Dec 20, 5:30 am, pradeep <pradeep2for...@gmail.com> wrote:
> Hi,
>
> One last doubt, i compared two same scripts the first send buffer
> itself is dynamic?
>
> pradeep
>
> On Dec 17, 8:55 pm, Anuj Sharma <anuj11....@gmail.com> wrote:
>
>
>
>
>
>
>
> > Definitely you have to correlate data in receive buffer only and parametrize
> > value in send buffers.
> > This is basic rule.
>
> > On Fri, Dec 17, 2010 at 8:25 PM, James Pulley <
>
> > loadrunner-li...@jamespulley.com> wrote:
> > > You correlate against the receive buffer, the results of which go into a
> > > send buffer
>
> > > *From:*lr-loa...@googlegroups.com[mailto:>lr-loa...@googlegroups.co m]*On Behalf Of *prasenjit dutta
> > > > >To unsubscribe from this group, send email to>>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@ googlegroups.com>
> > > > >For more options, visit this group at
> > > > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > --
> > > Prasenjit
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > "LoadRunner" group.> To post to this group, send email toLR-Lo...@googlegroups.com
> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>

pradeep

unread,
Dec 23, 2010, 8:21:02 AM12/23/10
to LoadRunner
Hi,

Below is my 1st send buffer
send buf0 52
"\x12\x01\x00"
"4"
"\x00\x00\x00\x00\x00\x00\x15\x00\x06\x01\x00\x1b\x00\x01\x02\x00\x1c
\x00"
"\f"
"\x03\x00"
"("
"\x00\x04\xff"
"\b"
"\x00\x01"
"U"
"\x00\x00\x00"
"MSSQLServer"
"\x00\xc8\x07\x00\x00"

now when i compare my script apart from other dynamic values the above
string " \xc8\x07" is changing every time i tried correlating this
string using lrs_save_searched_string() function by giving all the
required parameter but when i try to check the stored parameter the
value is different. could you please give me a hint how to capture the
above mentioned dynamic value with example.



On Dec 23, 12:48 am, Gaz Davidson <garethdavid...@gmail.com> wrote:
> How dynamic? If the whole thing is different and looks like random
> noise then it's either compressed, encrypted or uses bitstreams. It's
> time to talk to the developers, do some reverse engineering and/or
> choose a completely different approach.
>
> Do you understand the technologies involved? What DLLs does the app
> come with, who made them, what's the app written in? The application
> data may be being sent over another protocol which sits on top of TCP/
> IP.
>
> On Dec 20, 5:30 am, pradeep <pradeep2for...@gmail.com> wrote:
>
> > Hi,
>
> > One last doubt, i compared two same scripts the first send buffer
> > itself is dynamic?
>
> > pradeep
>
> > On Dec 17, 8:55 pm, Anuj Sharma <anuj11....@gmail.com> wrote:
>
> > > Definitely you have to correlate data in receive buffer only and parametrize
> > > value in send buffers.
> > > This is basic rule.
>
> > > On Fri, Dec 17, 2010 at 8:25 PM, James Pulley <
>
> > > loadrunner-li...@jamespulley.com> wrote:
> > > > You correlate against the receive buffer, the results of which go into a
> > > > send buffer
>
> > > >*From:*lr-loa...@googlegroups.com[mailto:>lr-loadrun...@googlegroups.co m]*On Behalf Of *prasenjit dutta> > > *Sent:* Friday, December 17, 2010 1:49 AM>*To:*lr-loa...@googlegroups.com
> > > > You received this message because you are subscribed to the Google> > > "LoadRunner" group.> To post to this group, send emailtoLR-...@googlegroups.com> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > > --
> > > > Prasenjit
>
> > > > --
> > > > You received this message because you are subscribed to the Google> > > "LoadRunner" group.> To post to this group, send emailtoLR-...@googlegroups.com> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/LR-LoadRunner?hl=en
>
> > > > --
> > > > You received this message because you are subscribed to the Google> > > "LoadRunner" group.> To post to this group, send emailtoLR-...@googlegroups.com> > > To unsubscribe from this group, send email to>LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsubscribe@g ooglegroups.com>

James Pulley

unread,
Dec 23, 2010, 8:39:55 AM12/23/10
to lr-loa...@googlegroups.com
If this is in Buf0, then you have zero opportunity to correlate,. Which
requires context from a prior response. This is something which is
changing in the record submitted by the app. You will need to ask a
developer what this is in order to understand how to change it properly.

-----Original Message-----
From: lr-loa...@googlegroups.com [mailto:lr-loa...@googlegroups.com]

Hi,

To post to this group, send email to LR-Loa...@googlegroups.com


To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages