is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ? Thanks
Sir, I am not really sure what you are trying to accomplish. How do you want to avoid fragmentation by setting a minimum packet size ? You can't really avoid fragmentation. If a SIP packet is larger than 1500, than it is larger. If you want to avoid fragmentation, you will need to suppress unnecessary SIP headers, or eventually you may try to enable short headers but that's not quite supported by all vendors. Supressing unnecessary headers is quite easy with a B2BUA like FreeSWITCH, as most headers should already not be forwarded. SIP INVITEs over 1500 is generally a problem when you proxy, adding Route information, etc... David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 31/01/2011 à 18:29, Madovsky a écrit :
is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ?
Thanks _______________________________________________ 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
I talk about rtp media packet in UDP.. actually what is the minimum rtp packet size sent by FS ? thanks ----- Original Message ----- From: David Ponzone To: FreeSWITCH Users Help Sent: Monday, January 31, 2011 12:46 PM Subject: Re: [Freeswitch-users] minimum UDP packet size Sir, I am not really sure what you are trying to accomplish. How do you want to avoid fragmentation by setting a minimum packet size ? You can't really avoid fragmentation. If a SIP packet is larger than 1500, than it is larger. If you want to avoid fragmentation, you will need to suppress unnecessary SIP headers, or eventually you may try to enable short headers but that's not quite supported by all vendors. Supressing unnecessary headers is quite easy with a B2BUA like FreeSWITCH, as most headers should already not be forwarded. SIP INVITEs over 1500 is generally a problem when you proxy, adding Route information, etc... David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 31/01/2011 à 18:29, Madovsky a écrit : is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ? Thanks _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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
Well, if you do voice and your RTP packets are bigger than 1500 bytes, you have an issue. You would need to use a large ptime (awful quality), even with g711, to send such packets. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 31/01/2011 à 19:06, Madovsky a écrit :
I talk about rtp media packet in UDP.. actually what is the minimum rtp packet size sent by FS ?
thanks ----- Original Message ----- From: David Ponzone To: FreeSWITCH Users Help Sent: Monday, January 31, 2011 12:46 PM Subject: Re: [Freeswitch-users] minimum UDP packet size
Sir,
I am not really sure what you are trying to accomplish. How do you want to avoid fragmentation by setting a minimum packet size ? You can't really avoid fragmentation. If a SIP packet is larger than 1500, than it is larger. If you want to avoid fragmentation, you will need to suppress unnecessary SIP headers, or eventually you may try to enable short headers but that's not quite supported by all vendors. Supressing unnecessary headers is quite easy with a B2BUA like FreeSWITCH, as most headers should already not be forwarded. SIP INVITEs over 1500 is generally a problem when you proxy, adding Route information, etc...
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.
Le 31/01/2011 à 18:29, Madovsky a écrit :
is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ?
Thanks _______________________________________________ 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
_______________________________________________ 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 _______________________________________________ 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
You probably mean a MAXimum size. If you set a minimum size it would always fragment. As far as I know it itsn't possible to set a maximum size of a UDP packet. If the UDP packets are getting too large you really should trim down SIP headers / Remove codecs from the SDP. There are some articles on the internet concerning MTU and SIP. Erik Van: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Namens Madovsky Verzonden: maandag 31 januari 2011 18:29 Aan: freeswitch-users@lists.freeswitch.org Onderwerp: [Freeswitch-users] minimum UDP packet size is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ? Thanks
No my question is minimum udp. usually the max udp packet is around 65000kB, David was talking about MTU which is different (Max Transmit Unit which is usually 1500 over the net, but ins some internal network (as my cluster) I use jumbo frames (9000) with 1GB network cards. by default linux kernel UDP min packet is set to 4096. I made some tests, from 1024 to 65000 and the server behavior looks like more cool when packet is big, but I'm almost sure that it creates also more latency in case of audio data. I'm finally happy to use exactly the same rate as MTU, performance seems to be better in multitask. ----- Original Message ----- From: Erik Dekkers To: 'FreeSWITCH Users Help' Sent: Tuesday, February 01, 2011 4:28 AM Subject: Re: [Freeswitch-users] minimum UDP packet size You probably mean a MAXimum size. If you set a minimum size it would always fragment. As far as I know it itsn't possible to set a maximum size of a UDP packet. If the UDP packets are getting too large you really should trim down SIP headers / Remove codecs from the SDP. There are some articles on the internet concerning MTU and SIP. Erik Van: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Namens Madovsky Verzonden: maandag 31 januari 2011 18:29 Aan: freeswitch-users@lists.freeswitch.org Onderwerp: [Freeswitch-users] minimum UDP packet size is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ? Thanks ------------------------------------------------------------------------------ _______________________________________________ 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
While performance will be better with larger packets you're failing to realize that 1440 byte RTP packet would be 180ms of audio. We only support up to 120ms per packet. If you start to exceed the MTU most consumer routers will not pass any packets on UDP that exceed the MTU so your testing gains you nothing. /b On Feb 1, 2011, at 9:27 AM, Madovsky wrote:
No my question is minimum udp. usually the max udp packet is around 65000kB, David was talking about MTU which is different (Max Transmit Unit which is usually 1500 over the net, but ins some internal network (as my cluster) I use jumbo frames (9000) with 1GB network cards. by default linux kernel UDP min packet is set to 4096. I made some tests, from 1024 to 65000 and the server behavior looks like more cool when packet is big, but I'm almost sure that it creates also more latency in case of audio data. I'm finally happy to use exactly the same rate as MTU, performance seems to be better in multitask.
but UDP packet is independent of MTU. even if you put your UDP packet higher than MTU it will be fragment as MTU size... ----- Original Message ----- From: Brian West To: FreeSWITCH Users Help Sent: Tuesday, February 01, 2011 10:35 AM Subject: Re: [Freeswitch-users] minimum UDP packet size While performance will be better with larger packets you're failing to realize that 1440 byte RTP packet would be 180ms of audio. We only support up to 120ms per packet. If you start to exceed the MTU most consumer routers will not pass any packets on UDP that exceed the MTU so your testing gains you nothing. /b On Feb 1, 2011, at 9:27 AM, Madovsky wrote: No my question is minimum udp. usually the max udp packet is around 65000kB, David was talking about MTU which is different (Max Transmit Unit which is usually 1500 over the net, but ins some internal network (as my cluster) I use jumbo frames (9000) with 1GB network cards. by default linux kernel UDP min packet is set to 4096. I made some tests, from 1024 to 65000 and the server behavior looks like more cool when packet is big, but I'm almost sure that it creates also more latency in case of audio data. I'm finally happy to use exactly the same rate as MTU, performance seems to be better in multitask. ------------------------------------------------------------------------------ _______________________________________________ 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
65MB ? David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 01/02/2011 à 16:27, Madovsky a écrit :
No my question is minimum udp. usually the max udp packet is around 65000kB, David was talking about MTU which is different (Max Transmit Unit which is usually 1500 over the net, but ins some internal network (as my cluster) I use jumbo frames (9000) with 1GB network cards. by default linux kernel UDP min packet is set to 4096. I made some tests, from 1024 to 65000 and the server behavior looks like more cool when packet is big, but I'm almost sure that it creates also more latency in case of audio data. I'm finally happy to use exactly the same rate as MTU, performance seems to be better in multitask. ----- Original Message ----- From: Erik Dekkers To: 'FreeSWITCH Users Help' Sent: Tuesday, February 01, 2011 4:28 AM Subject: Re: [Freeswitch-users] minimum UDP packet size
You probably mean a MAXimum size. If you set a minimum size it would always fragment. As far as I know it itsn’t possible to set a maximum size of a UDP packet. If the UDP packets are getting too large you really should trim down SIP headers / Remove codecs from the SDP.
There are some articles on the internet concerning MTU and SIP.
Erik
Van: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]Namens Madovsky Verzonden: maandag 31 januari 2011 18:29 Aan: freeswitch-users@lists.freeswitch.org Onderwerp: [Freeswitch-users] minimum UDP packet size
is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ?
Thanks
_______________________________________________ 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 _______________________________________________ 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
:) no 65000 bytes ----- Original Message ----- From: David Ponzone To: FreeSWITCH Users Help Sent: Tuesday, February 01, 2011 10:44 AM Subject: Re: [Freeswitch-users] minimum UDP packet size 65MB ? David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 01/02/2011 à 16:27, Madovsky a écrit : No my question is minimum udp. usually the max udp packet is around 65000kB, David was talking about MTU which is different (Max Transmit Unit which is usually 1500 over the net, but ins some internal network (as my cluster) I use jumbo frames (9000) with 1GB network cards. by default linux kernel UDP min packet is set to 4096. I made some tests, from 1024 to 65000 and the server behavior looks like more cool when packet is big, but I'm almost sure that it creates also more latency in case of audio data. I'm finally happy to use exactly the same rate as MTU, performance seems to be better in multitask. ----- Original Message ----- From: Erik Dekkers To: 'FreeSWITCH Users Help' Sent: Tuesday, February 01, 2011 4:28 AM Subject: Re: [Freeswitch-users] minimum UDP packet size You probably mean a MAXimum size. If you set a minimum size it would always fragment. As far as I know it itsn’t possible to set a maximum size of a UDP packet. If the UDP packets are getting too large you really should trim down SIP headers / Remove codecs from the SDP. There are some articles on the internet concerning MTU and SIP. Erik Van: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]Namens Madovsky Verzonden: maandag 31 januari 2011 18:29 Aan: freeswitch-users@lists.freeswitch.org Onderwerp: [Freeswitch-users] minimum UDP packet size is it useful to set minimum UDP pakcet to the MTU rate like 1500 and avoid any fragmentation ? Thanks -------------------------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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
participants (4)
-
Brian West
-
David Ponzone
-
Erik Dekkers
-
Madovsky