Koozali.org: home of the SME Server

Upload speed

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Upload speed
« on: November 07, 2016, 04:20:04 PM »
Hi friends is there any aspects to check in the sme server 9 regarding the upload speed or other settings.
Because it takes so long to send an email from behind the server. (we are using register.it webmail and sme server is not configured as mail server)
And we cannot make a skype call, the receiver can see the video with broken seqeunces of video.
is there any thing to check in the server, please suggest. thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Upload speed
« Reply #1 on: November 07, 2016, 04:25:36 PM »
smnirosh, please remember, each time you ask for help, to describe how your lan/environment is structured..

Is SME in server and gateway mode?
how do you connect to WAN? I guess an ADSL.. please be aware that the upload bandwidth is lower than the download one.. for example, you can have a 20Mbit download but a 8Mbit download (and, often, less than 8Mbit).. 8Mbit is 1MB/s..

is there anything else on your SME/lan which is accessed from remote places? if you've got a website or other people connected via VPN, the bandwidth is shared between all the services..

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Upload speed
« Reply #2 on: November 07, 2016, 04:48:43 PM »
sorry for the lack of information.
The sme server is Server gateway. Connected to a WAN using ADSL telecom italia.
Yes we are using openvpn. No website are hosted.
I will make another skype call when no one is connected via openvpn.
is there are any package to check the server allocated bandwith for opened sessions?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Upload speed
« Reply #3 on: November 07, 2016, 04:53:07 PM »
from a shell (either via ssh or from the server itself)

Code: [Select]
iptraf

and choose your wan interface (eth1)

you'll see all the traffic incoming and outgoing  in/from your server

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Upload speed
« Reply #4 on: November 07, 2016, 04:54:20 PM »
iftop (not installed by default, but available from EPEL) is another real time trafic monitoring tool I really appreciate to find who is using the bandwidth
C'est la fin du monde !!! :lol:

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Upload speed
« Reply #5 on: November 07, 2016, 08:37:18 PM »
smnirosh

You need to implement bandwidth usage controls. Look at the Howtos & Contribs sections of wiki, links at top of Forums eg QoS & Wondershaper etc.
« Last Edit: November 08, 2016, 08:04:43 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Upload speed
« Reply #6 on: November 08, 2016, 12:26:25 PM »
how to install iftop with epel repo

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Upload speed
« Reply #7 on: November 08, 2016, 12:28:07 PM »
well.. you've been here enough to know you'd search before asking :-)

wiki -> epel -> https://wiki.contribs.org/Epel#tab=For_SME_9_x

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Upload speed
« Reply #8 on: November 08, 2016, 12:33:34 PM »
oh my god. I found this link and thought "status disabled" is wrong

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Upload speed
« Reply #9 on: November 08, 2016, 12:35:44 PM »
no, it's not..

external repo must be set to "disabled" and then enabled only when needed with the --enablerepo directive

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Upload speed
« Reply #10 on: November 08, 2016, 08:20:09 PM »
smnirosh

status disabled prevents many unwanted or undesired packages (that are in the epel or whichever external repo)  from being updated when you run a standard system update using the command
yum update
ie where typically you only want to update packages from the standard repos that have status enabled,
refer wiki articles in FAQ

https://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Which_repositories_should_be_enabled

 https://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Adding.2C_removing_or_disabling_repositories

All other repos you configure on sme server should have status disabled.
You install or update packages from those non standard or external repos as follows:
yum update --enablerepo=epel iftop
yum update --enablerepo=smecontribs smeserver-wbl
signal-event post-upgrade
signal-event reboot
etc etc




« Last Edit: November 08, 2016, 08:30:13 PM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Upload speed
« Reply #11 on: November 09, 2016, 08:13:08 AM »
Ok jenet, thanks i installed. meanwhile i tried skype with openvpn completely disconnected. It's ok. The problem is openvpn takes the bandwith. But when sending an email with 120kb attachment, it takes 48secs to send to the receiver. Is there any monitoring technic to follow to find this tragedy. Thanks

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Upload speed
« Reply #12 on: November 09, 2016, 08:37:55 AM »
smnirosh

You need to read the full header information of the received email message.
In there it will list all the mail servers etc that the message passed through to get to the recipient, & you should see time of day details etc.
From that you can determine which leg or legs of the journey are slow.

I should add typically (in my experience) VPN is slow, so if you are sending email messages via a VPN connection then that is the most likely cause of slowness.

The next bottleneck(s) to consider is your ISP ie how quickly they process your email messages (could be queued) & then whatever external mail service or mail recipient server you send to, they also could be queueing thousands of emails for a few seconds each.

You should also test your upload & download speeds for your ADSL connectuon, google for a local & reliable speed test site, maybe your ISP has one.
« Last Edit: November 09, 2016, 08:46:40 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: Upload speed
« Reply #13 on: November 09, 2016, 10:45:40 AM »
as per your request to take a look at message delivery delays, I pasted following information.
(following message contains 1mb of attachement)

elivered-To: smnirosh@gmail.com
Received: by 10.37.163.166 with SMTP id e35ccp89806ybi;
        Wed, 9 Nov 2016 01:16:41 -0800 (PST)
X-Received: by 10.194.115.135 with SMTP id jo7mr14148650wjc.21.1478683000204;
        Wed, 09 Nov 2016 01:16:40 -0800 (PST)
Return-Path: <cnirosh@mechdesign.it>
Received: from authsmtp.register.it (authsmtp03.register.it. [81.88.xxx.xxx])
        by mx.google.com with ESMTPS id r2si40173655wjf.60.2016.11.09.01.16.38
        for <smnirosh@gmail.com>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Wed, 09 Nov 2016 01:16:40 -0800 (PST)
Received-SPF: neutral (google.com: 81.88.xxx.xxx is neither permitted nor denied by best guess record for domain of cnirosh@mechdesign.it) client-ip=81.88.xxx.xxx;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 81.88.xxx.xxx is neither permitted nor denied by best guess record for domain of cnirosh@mechdesign.it) smtp.mailfrom=cnirosh@mechdesign.it
Message-ID: <5822e978.2218c20a.d9be1.177eSMTPIN_ADDED_BROKEN@mx.google.com>
X-Google-Original-Message-ID: <000e01d26a69$df4e6680$9deb3380$@cnirosh@mechdesign.it>
Received: from PCNIROSH ([our static public ip]) by paganini32 with id 5lFx1u00l4rJPbj01lFyp4; Wed, 09 Nov 2016 10:16:38 +0100
X-Rid: smtp@mechdesign.it@our public ip address
From: Nirosh <cnirosh@mechdesign.it>
To: <smnirosh@gmail.com>
Subject:
Date: Wed, 9 Nov 2016 10:15:52 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_000F_01D23A72.4112CE80"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdI6ad4dgW98vMIdxxTrG30E4nFW+Q6g==
Content-Language: it
X-Antivirus: avast! (VPS 161108-5, 08/11/2016), Outbound message
X-Antivirus-Status: Clean

this measurement is VPN disconnected.
I test with iptraf command the upload speed of same attachement to gmail account. it attaches so quickly with a upload of approximately 1000kbits per second. Meanwhile register.it advise us to use default port settings on outlook. Thus we use 143 to incomming and 25 to outgoing.
what about if we check email ports used by outlook on sme server are fully configured with full bandwidth? .... my suggetion - but you will have a best one  :-)
thanks.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Upload speed
« Reply #14 on: November 09, 2016, 10:49:23 AM »
I should add typically (in my experience) VPN is slow
VPN are not slow. They add a small overhead (usually around 3-5%), but without this small overhead, they are just as fast as the underlying connection
C'est la fin du monde !!! :lol: