Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] SIP Invite IP fragmentation issue


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
saurabh_aggarwal at ho...
Guest





PostPosted: Tue Nov 18, 2008 2:35 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

I am having an *odd* issue, which i am not sure freeswitch is to be blamed for.

Sometimes, the SIP invites are bigger than 1500 bytes causing IP fragmentation, but when I look at the TCP dump (on the same machine as freeswitch), I see that only the first packet of the fragment is captured. Is freeswitch trying to do its own IP fragmentation or is it relying on underlying linux (kernel 2.6.1Cool?

I created a small program to send UDP packets of 2000 bytes, and also tried with ping -s 2000, and both were successful, so am leaning towards blaming Freeswitch.

Any suggestions?

-Saurabh


Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here
Back to top
saurabh_aggarwal at ho...
Guest





PostPosted: Tue Nov 18, 2008 5:23 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

Ok, my bad. Ethereal for some reason was showing only the first fragment (ethereal bug?).

But, now it seems I have hit another problem - it seems that the SIP invites (which are fragmented) are being dropped by the firewall in between us and the SIP provider. Is it possible to shrink the size of the SIP invite so that it fits in a single packet? Any optional stuff in the SIP invite that is sent, that can be thrown away?

-Saurabh


From: saurabh_aggarwal@hotmail.com
To: freeswitch-users@lists.freeswitch.org
Date: Tue, 18 Nov 2008 07:34:11 +0000
Subject: [Freeswitch-users] SIP Invite IP fragmentation issue

.ExternalClass .EC_hmmessage P {padding:0px;} .ExternalClass body.EC_hmmessage {font-size:10pt;font-family:Verdana;} I am having an *odd* issue, which i am not sure freeswitch is to be blamed for.

Sometimes, the SIP invites are bigger than 1500 bytes causing IP fragmentation, but when I look at the TCP dump (on the same machine as freeswitch), I see that only the first packet of the fragment is captured. Is freeswitch trying to do its own IP fragmentation or is it relying on underlying linux (kernel 2.6.1Cool?

I created a small program to send UDP packets of 2000 bytes, and also tried with ping -s 2000, and both were successful, so am leaning towards blaming Freeswitch.

Any suggestions?

-Saurabh





Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here
Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here
Back to top
ibc at aliax.net
Guest





PostPosted: Tue Nov 18, 2008 5:31 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

2008/11/18 Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>:
Quote:
Ok, my bad. Ethereal for some reason was showing only the first fragment
(ethereal bug?).

But, now it seems I have hit another problem - it seems that the SIP invites
(which are fragmented) are being dropped by the firewall in between us and
the SIP provider. Is it possible to shrink the size of the SIP invite so
that it fits in a single packet? Any optional stuff in the SIP invite that
is sent, that can be thrown away?

Welcome to the reason for which IETF is moving to SIP TCP/SCTP ;)

--
Iñaki Baz Castillo
<ibc@aliax.net>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
krice at suspicious.org
Guest





PostPosted: Tue Nov 18, 2008 5:33 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

Its not really possible other then enabling compact headers or by getting rid of codecs that you don’t actually want to use... Another thing you could do is get your broken ISP to fix their firewall... It is not correct to just drop fragmented packets just because they are fragmented.. This is something that will happen on a regular basis on the internet as not everything has an MTU of 1500


From: Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Tue, 18 Nov 2008 10:19:55 +0000
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] SIP Invite IP fragmentation issue

Ok, my bad. Ethereal for some reason was showing only the first fragment (ethereal bug?).

But, now it seems I have hit another problem - it seems that the SIP invites (which are fragmented) are being dropped by the firewall in between us and the SIP provider. Is it possible to shrink the size of the SIP invite so that it fits in a single packet? Any optional stuff in the SIP invite that is sent, that can be thrown away?

-Saurabh


From: saurabh_aggarwal@hotmail.com
To: freeswitch-users@lists.freeswitch.org
Date: Tue, 18 Nov 2008 07:34:11 +0000
Subject: [Freeswitch-users] SIP Invite IP fragmentation issue

I am having an *odd* issue, which i am not sure freeswitch is to be blamed for.

Sometimes, the SIP invites are bigger than 1500 bytes causing IP fragmentation, but when I look at the TCP dump (on the same machine as freeswitch), I see that only the first packet of the fragment is captured. Is freeswitch trying to do its own IP fragmentation or is it relying on underlying linux (kernel 2.6.1Cool?

I created a small program to send UDP packets of 2000 bytes, and also tried with ping -s 2000, and both were successful, so am leaning towards blaming Freeswitch.

Any suggestions?

-Saurabh





Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/>

Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
saurabh_aggarwal at ho...
Guest





PostPosted: Tue Nov 18, 2008 5:45 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

enabling compact headers - what is that?

-Saurabh



Date: Tue, 18 Nov 2008 04:29:28 -0600
From: krice@suspicious.org
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] SIP Invite IP fragmentation issue

Its not really possible other then enabling compact headers or by getting rid of codecs that you don’t actually want to use... Another thing you could do is get your broken ISP to fix their firewall... It is not correct to just drop fragmented packets just because they are fragmented.. This is something that will happen on a regular basis on the internet as not everything has an MTU of 1500




From: Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Tue, 18 Nov 2008 10:19:55 +0000
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] SIP Invite IP fragmentation issue

Ok, my bad. Ethereal for some reason was showing only the first fragment (ethereal bug?).

But, now it seems I have hit another problem - it seems that the SIP invites (which are fragmented) are being dropped by the firewall in between us and the SIP provider. Is it possible to shrink the size of the SIP invite so that it fits in a single packet? Any optional stuff in the SIP invite that is sent, that can be thrown away?

-Saurabh




From: saurabh_aggarwal@hotmail.com
To: freeswitch-users@lists.freeswitch.org
Date: Tue, 18 Nov 2008 07:34:11 +0000
Subject: [Freeswitch-users] SIP Invite IP fragmentation issue

I am having an *odd* issue, which i am not sure freeswitch is to be blamed for.

Sometimes, the SIP invites are bigger than 1500 bytes causing IP fragmentation, but when I look at the TCP dump (on the same machine as freeswitch), I see that only the first packet of the fragment is captured. Is freeswitch trying to do its own IP fragmentation or is it relying on underlying linux (kernel 2.6.1Cool?

I created a small program to send UDP packets of 2000 bytes, and also tried with ping -s 2000, and both were successful, so am leaning towards blaming Freeswitch.

Any suggestions?

-Saurabh







Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/>



Stay up to date on your PC, the Web, and your mobile phone with Windows Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/>


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Get more done, have more fun, and stay more connected with Windows Mobile®. See how.
Back to top
ibc at aliax.net
Guest





PostPosted: Tue Nov 18, 2008 6:00 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

2008/11/18 Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>:
Quote:
enabling compact headers - what is that?

SIP allows compact headers names for a few heades:

From = f
To = t
Via = v
...


--
Iñaki Baz Castillo
<ibc@aliax.net>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Tue Nov 18, 2008 6:16 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

The rfc also describes why:

SIP provides a mechanism to represent common header field names in an
abbreviated form. This may be useful when messages would otherwise
become too large to be carried on the transport available to it
(exceeding the maximum transmission unit (MTU) when using UDP, for
example). These compact forms are defined in Section 20. A compact
form MAY be substituted for the longer form of a header field name at
any time without changing the semantics of the message. A header
field name MAY appear in both long and short forms within the same
message. Implementations MUST accept both the long and short forms
of each header name.


On Tue, Nov 18, 2008 at 11:52 AM, Iñaki Baz Castillo <ibc@aliax.net (ibc@aliax.net)> wrote:
Quote:
2008/11/18 Saurabh Aggarwal <saurabh_aggarwal@hotmail.com (saurabh_aggarwal@hotmail.com)>:
Quote:
enabling compact headers - what is that?

SIP allows compact headers names for a few heades:

From = f
To = t
Via = v
...


--
Iñaki Baz Castillo
<ibc@aliax.net (ibc@aliax.net)>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
saurabh_aggarwal at ho...
Guest





PostPosted: Tue Nov 18, 2008 6:54 am    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

Thanks, how do I "enable" this in freeswitch? Can this be done through the SIP configuration file?

-Saurabh



Date: Tue, 18 Nov 2008 12:05:18 +0100
From: jonas.gauffin@gmail.com
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] SIP Invite IP fragmentation issue

The rfc also describes why:

SIP provides a mechanism to represent common header field names in an
abbreviated form. This may be useful when messages would otherwise
become too large to be carried on the transport available to it
(exceeding the maximum transmission unit (MTU) when using UDP, for
example). These compact forms are defined in Section 20. A compact
form MAY be substituted for the longer form of a header field name at
any time without changing the semantics of the message. A header
field name MAY appear in both long and short forms within the same
message. Implementations MUST accept both the long and short forms
of each header name.



On Tue, Nov 18, 2008 at 11:52 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
Quote:
2008/11/18 Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>:
Quote:
enabling compact headers - what is that?

SIP allows compact headers names for a few heades:

From = f
To = t
Via = v
...


--
Iñaki Baz Castillo
<ibc@aliax.net>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Get more done, have more fun, and stay more connected with Windows Mobile®. See how.
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Nov 18, 2008 12:05 pm    Post subject: [Freeswitch-users] SIP Invite IP fragmentation issue Reply with quote

the only reliable answer is use TCP.

The RFC is daft in this matter.
They say when it's bigger than mtu to automatically use TCP instead.
And timeout for 10 seconds then fall back to UDP.

Its mandatory in SIP to support both TCP and UDP up to 64k per packet.
As you can see, since barely anything will do this right, your best bet is to only use TCP when you have this kind of traffic.


On Tue, Nov 18, 2008 at 5:52 AM, Saurabh Aggarwal <saurabh_aggarwal@hotmail.com (saurabh_aggarwal@hotmail.com)> wrote:
Quote:
Thanks, how do I "enable" this in freeswitch? Can this be done through the SIP configuration file?

-Saurabh



Date: Tue, 18 Nov 2008 12:05:18 +0100
From: jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Subject: Re: [Freeswitch-users] SIP Invite IP fragmentation issue



The rfc also describes why:

SIP provides a mechanism to represent common header field names in an
abbreviated form. This may be useful when messages would otherwise
become too large to be carried on the transport available to it
(exceeding the maximum transmission unit (MTU) when using UDP, for
example). These compact forms are defined in Section 20. A compact
form MAY be substituted for the longer form of a header field name at
any time without changing the semantics of the message. A header
field name MAY appear in both long and short forms within the same
message. Implementations MUST accept both the long and short forms
of each header name.



On Tue, Nov 18, 2008 at 11:52 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
Quote:
2008/11/18 Saurabh Aggarwal <saurabh_aggarwal@hotmail.com>:
Quote:
enabling compact headers - what is that?

SIP allows compact headers names for a few heades:

From = f
To = t
Via = v
...


--
Iñaki Baz Castillo
<ibc@aliax.net>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





Get more done, have more fun, and stay more connected with Windows Mobile®. See how.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services