[Serdev] TCP problems

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Jan 9 19:10:44 UTC 2007


On Jan 09, 2007 at 10:33, Katty Xiong <cyyxiong at yahoo.com> wrote:
> Hi, 
> 
> I am using SER (Ottendorf) and SIPp for some
> performance study and get several errors when using
> TCP protocol. From the packet trace, I notice when TCP
> publicize zero window at SIPp or SER side, SIP message
> will get truncated or several partial or whole SIP
> message get combined in one TCP packet, which leads to
> error. I haven’t checked the code yet, but if somebody
> already knows this off the head, please clarify me of
> the following questions.
> 1) When SER receives a truncated SIP message, how does
> it handle the partial message? 

It waits for the rest of the message (on tcp).

> 2) When SER receives a packet that has one partial SIP
> message combined with another partial SIP message, how
> does it handle the packet?

> 3) When SER receives several SIP messages in one TCP
> packet, how does it handle the packet?
> 4) Does SER care how TCP send one SIP message (in
> several TCP packets, combined with other SIP
> messages)?


No, it doesn't, each message is handled separately. In fact on tcp ser
just reads from the tcp stream until it gets a whole message, then
processes it and then repeats the entire process.


Andrei


More information about the Serdev mailing list