Re: [asterisk-users] Rasterisk freeze on 4G link [SOLVED]

2016-03-04 Thread Olivier
Thank you all for pointing me in the right direction.

Now I learned I have to care about MTU.

Best regards

2016-03-03 21:27 GMT+01:00 Toufic Khreish (Gmail) 
:

> Hello,
>
>
>
>
>
> You need to determine the correct MTU value by doing the following:
>
>
>
> ping www.google.com -f -l 1400 and you go up or down
>
>
>
> An example:
> 1440 Max packet size from Ping Test
> + 28 IP and ICMP headers
> 1468 is your optimum MTU Setting
>
>
>
> Reference : http://www.tp-link.fr/FAQ-190.html
>
>
>
> Once you determine the correct MTU you just set it on the VPN server, it
> will not break any connection the worst will be slow connection that is all.
>
>
>
> From my experience the MTU value for 3G was 1400.
>
>
>
> Best regards
>
> Toufic
>
>
>
>
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *Duncan
> *Sent:* Thursday, March 03, 2016 9:02 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject:* Re: [asterisk-users] Rasterisk freeze on 4G link
>
>
>
> > With this new link, whenever I launch a vim, a nano or a rasterisk
> session, my terminal freezes (rasterisk) or remains empty (nano, vim).
>
> >
> > When a session is frozon, I can open a new one at the same so it
> excludes a basic connectivity loss.
> >
> Usually incorrect MTU gives you this effect. Use ping with MTU size set to
> test and find what works.
>
> I think its value: it's 1272, which amazes me.
>
>
> You will probably also break it with any large text dump eg cat
> /var/log/syslog will also do it
>
>
>
> Yes  "cat /var/log/syslog" also broke my console.
>
> Why would my console break because of inadequate MTU and other PC on the
> same location, seem unaffected ?
>
> Because, they most probably mostly use SMTP and HTTP ?
>
> Is possible to simulate a given MTU on a LAN to reproduce such freezes ?
>
> (the remote location is at the other side of the country and I would like
> to prepare things as much as possible).
>
>
>
>
>
> I think you need to go through a router or some device that can constrain
> the MTU. But live changing your server MTU should be straight forward as
> openvpn should try and reconnect, and you can change the server back. I
> haven't lost connectivity before with this
>
> Also the session is probably timed out rather than gone, in 10-15 mins
> maybe less it will come back (or does for me)
>
> Cheers Duncan
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Toufic Khreish (Gmail)
Hello,

 

 

You need to determine the correct MTU value by doing the following:

 

ping www.google.com -f -l 1400 and you go up or down

 

An example: 
1440 Max packet size from Ping Test
+ 28 IP and ICMP headers
1468 is your optimum MTU Setting

 

Reference : http://www.tp-link.fr/FAQ-190.html

 

Once you determine the correct MTU you just set it on the VPN server, it
will not break any connection the worst will be slow connection that is all.

 

>From my experience the MTU value for 3G was 1400.

 

Best regards

Toufic

 

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Duncan
Sent: Thursday, March 03, 2016 9:02 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion

Subject: Re: [asterisk-users] Rasterisk freeze on 4G link

 

> With this new link, whenever I launch a vim, a nano or a rasterisk
session, my terminal freezes (rasterisk) or remains empty (nano, vim).



>
> When a session is frozon, I can open a new one at the same so it excludes
a basic connectivity loss.
>
Usually incorrect MTU gives you this effect. Use ping with MTU size set to
test and find what works.

I think its value: it's 1272, which amazes me. 


You will probably also break it with any large text dump eg cat
/var/log/syslog will also do it

 

Yes  "cat /var/log/syslog" also broke my console.

Why would my console break because of inadequate MTU and other PC on the
same location, seem unaffected ?

Because, they most probably mostly use SMTP and HTTP ?

Is possible to simulate a given MTU on a LAN to reproduce such freezes ?

(the remote location is at the other side of the country and I would like to
prepare things as much as possible).

 

 

I think you need to go through a router or some device that can constrain
the MTU. But live changing your server MTU should be straight forward as
openvpn should try and reconnect, and you can change the server back. I
haven't lost connectivity before with this

Also the session is probably timed out rather than gone, in 10-15 mins maybe
less it will come back (or does for me) 

Cheers Duncan

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Duncan
> With this new link, whenever I launch a vim, a nano or a rasterisk 
session, my terminal freezes (rasterisk) or remains empty (nano, vim).


>
> When a session is frozon, I can open a new one at the same so it
excludes a basic connectivity loss.
>
Usually incorrect MTU gives you this effect. Use ping with MTU
size set to test and find what works.

I think its value: it's 1272, which amazes me.


You will probably also break it with any large text dump eg cat
/var/log/syslog will also do it


Yes  "cat /var/log/syslog" also broke my console.

Why would my console break because of inadequate MTU and other PC on 
the same location, seem unaffected ?

Because, they most probably mostly use SMTP and HTTP ?

Is possible to simulate a given MTU on a LAN to reproduce such freezes ?
(the remote location is at the other side of the country and I would 
like to prepare things as much as possible).



I think you need to go through a router or some device that can 
constrain the MTU. But live changing your server MTU should be straight 
forward as openvpn should try and reconnect, and you can change the 
server back. I haven't lost connectivity before with this


Also the session is probably timed out rather than gone, in 10-15 mins 
maybe less it will come back (or does for me)


Cheers Duncan
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Pete Mundy

These are not Asterisk related questions. It is a common problem. Google is 
your friend. Try something like 'console stalls with big packets'.

To answer your question "why", it's simple. "Because the big packets are being 
dropped".

Pete


> On 4/03/2016, at 7:15 am, Olivier  wrote:
> 
> Yes  "cat /var/log/syslog" also broke my console.
> 
> Why would my console break because of inadequate MTU and other PC on the same 
> location, seem unaffected ?
> Because, they most probably mostly use SMTP and HTTP ?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Olivier
2016-03-03 18:08 GMT+01:00 Duncan Turnbull :

>
> > On 4/03/2016, at 5:31 AM, Olivier  wrote:
> >
> > Hello,
> >
> > I'm remotely managing an asterisk setup using an OpenVPN client on this
> Asterisk box, connecting to an OpenVPN server of mine).
> >
> > This box is mainly connected to PSTN.
> > It is also connected to the Internet, only for remote management.
> >
> > The former ADSL link has recently been replaced by a new 4G link (UMTS).
> >
> > I'm connecting to this box from a Debian Jessie/Gnome Terminal combo.
> >
> > With this new link, whenever I launch a vim, a nano or a rasterisk
> session, my terminal freezes (rasterisk) or remains empty (nano, vim).
> >
> > When a session is frozon, I can open a new one at the same so it
> excludes a basic connectivity loss.
> >
> Usually incorrect MTU gives you this effect. Use ping with MTU size set to
> test and find what works.
>
I think its value: it's 1272, which amazes me.

>
> You will probably also break it with any large text dump eg cat
> /var/log/syslog will also do it
>

Yes  "cat /var/log/syslog" also broke my console.

Why would my console break because of inadequate MTU and other PC on the
same location, seem unaffected ?
Because, they most probably mostly use SMTP and HTTP ?

Is possible to simulate a given MTU on a LAN to reproduce such freezes ?
(the remote location is at the other side of the country and I would like
to prepare things as much as possible).


> > What would you suggest ?
> >
> > Best regards
> >
> >
> > PS: I was about to determine best MTU value but I always thought a
> punishment for a bad MTU value would be a lower throughput, not a screen
> freeze. Is it correct ?
> > --
> > _
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > New to Asterisk? Join us for a live introductory webinar every Thurs:
> >   http://www.asterisk.org/hello
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Pete Mundy
Oliver,

Not correct!

Duncan and Toufic are spot-on with their answers.

Pete

> On 4/03/2016, at 5:40 am, Toufic Gmail  wrote:
> 
>> 
>> PS: I was about to determine best MTU value but I always thought a 
>> punishment for a bad MTU value would be a lower throughput, not a screen 
>> freeze. Is it correct ?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Duncan Turnbull

> On 4/03/2016, at 5:31 AM, Olivier  wrote:
> 
> Hello,
> 
> I'm remotely managing an asterisk setup using an OpenVPN client on this 
> Asterisk box, connecting to an OpenVPN server of mine).
> 
> This box is mainly connected to PSTN.
> It is also connected to the Internet, only for remote management.
> 
> The former ADSL link has recently been replaced by a new 4G link (UMTS).
> 
> I'm connecting to this box from a Debian Jessie/Gnome Terminal combo.
> 
> With this new link, whenever I launch a vim, a nano or a rasterisk session, 
> my terminal freezes (rasterisk) or remains empty (nano, vim).
> 
> When a session is frozon, I can open a new one at the same so it excludes a 
> basic connectivity loss.
> 
Usually incorrect MTU gives you this effect. Use ping with MTU size set to test 
and find what works.

You will probably also break it with any large text dump eg cat /var/log/syslog 
will also do it

> What would you suggest ?
> 
> Best regards
> 
> 
> PS: I was about to determine best MTU value but I always thought a punishment 
> for a bad MTU value would be a lower throughput, not a screen freeze. Is it 
> correct ?
> -- 
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Rasterisk freeze on 4G link

2016-03-03 Thread Toufic Gmail
Please set correct MTU at server side, it is definitely an MTU issue.  

Sent from my iPhone

> On Mar 3, 2016, at 5:31 PM, Olivier  wrote:
> 
> Hello,
> 
> I'm remotely managing an asterisk setup using an OpenVPN client on this 
> Asterisk box, connecting to an OpenVPN server of mine).
> 
> This box is mainly connected to PSTN.
> It is also connected to the Internet, only for remote management.
> 
> The former ADSL link has recently been replaced by a new 4G link (UMTS).
> 
> I'm connecting to this box from a Debian Jessie/Gnome Terminal combo.
> 
> With this new link, whenever I launch a vim, a nano or a rasterisk session, 
> my terminal freezes (rasterisk) or remains empty (nano, vim).
> 
> When a session is frozon, I can open a new one at the same so it excludes a 
> basic connectivity loss.
> 
> What would you suggest ?
> 
> Best regards
> 
> 
> PS: I was about to determine best MTU value but I always thought a punishment 
> for a bad MTU value would be a lower throughput, not a screen freeze. Is it 
> correct ?
> -- 
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users