changing network engine produces different behaviours

131 views
Skip to first unread message

Julio Carlos Barrera Juez

unread,
Sep 30, 2015, 7:00:40 AM9/30/15
to TURN Server (Open-Source project)
Environment:

OS: Debian 8 Jessie, up-to-date
Kernel: 3.2.68-1+deb7u3 x86_64
Version: Coturn-4.4.5.4

If I try to launch coturn with default network engine I get:

0: Trying to bind fd 21 to <10.1.6.189:3478>: errno=98
0: Cannot bind TLS/TCP listener socket to addr 10.1.6.189:3478
...
...
...
0: Fatal final failure: cannot bind TLS/TCP listener socket to addr 10.1.6.189:3478

But, If configure the network engine option in the configuration file to:

ne=1

or

ne=2

I stop getting errors and everything seems to work.

With:

ne=3

Same errors are produced. I suppose this is the default value, it is not documented.

I have read documentation and source code to figure out what is happening. I find "net_engine_version" parameter and its management in src/apps/relay/mainrelay.c file, but I don't understand very well why I'm getting these errors.

Can someone guide me or shed light on the topic?

thank you.

Oleg Moskalenko

unread,
Sep 30, 2015, 1:04:04 PM9/30/15
to Julio Carlos Barrera Juez, TURN Server (Open-Source project)
Of course changing the network engine must produce different behavior.

The short story is that you have coturn compiled on a modern Linux
system, but you are trying to run it with old Linux kernel. The
compilation system and the runtime system, ideally, must match.

There are several things:

1) The default network engine is determined on the compilation stage.
2) The default networks engines are:
- 3 - for modern Linux kernels;
- 2- for older Linux kernels;
- 1 - for all other systems (like FreeBSD);
3) The kernel on your Debian system is old. Current Debian Jessie is
3.16. How did you get 3.2 ?
4) The latest Debian Jessie coturn package is 4.2.1.2. Later versions
are going to Sid and to Ubuntu. How did you get 4.4.5.4 on Jessie ?

What is the story of that system and that setup ?

Oleg
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
> For more options, visit https://groups.google.com/d/optout.

Julio Carlos Barrera Juez

unread,
Oct 1, 2015, 3:29:44 AM10/1/15
to TURN Server (Open-Source project)
Hi.

Yes, the system is a mess, unfortunately not controlled by me. I compiled coturn manually, not took form official repos. That's why I got these results. I will try to request a kernel upgrade, but I think I could not achieve this goal.

Finally, with my current setup, which network engine do you recommend? I suppose that if I got the upgrade, I should use the default network engine (3 in this case). Correct me if I'm wrong.

Thank you.
> To post to this group, send email to

Oleg Moskalenko

unread,
Oct 1, 2015, 3:42:05 AM10/1/15
to Julio Carlos Barrera Juez, TURN Server (Open-Source project)
On Thu, Oct 1, 2015 at 12:29 AM, Julio Carlos Barrera Juez
<juliocarl...@i2cat.net> wrote:
> Hi.
>
> Yes, the system is a mess, unfortunately not controlled by me. I compiled
> coturn manually, not took form official repos. That's why I got these
> results. I will try to request a kernel upgrade, but I think I could not
> achieve this goal.
>
> Finally, with my current setup, which network engine do you recommend? I

2

> suppose that if I got the upgrade, I should use the default network engine
> (3 in this case). Correct me if I'm wrong.

Usually, if you have a clean nice setup, you must not set the network
engine manually - just use the default.
>> > turn-server-project-rfc57...@googlegroups.com.
>> > To post to this group, send email to
>> > turn-server-project...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.

Julio Carlos Barrera Juez

unread,
Oct 1, 2015, 3:53:32 AM10/1/15
to Oleg Moskalenko, TURN Server (Open-Source project)
Thank you Oleg ;)

Julio C. Barrera Juez  View my profile on LinkedIn
Room: 1st floor, 107
Office phone: (+34) 93 357 99 27
Software Engineering Group (SEG)
i2CAT Foundation
Gran Capità 2-4, Nexus I building, 08034 Barcelona
Reply all
Reply to author
Forward
0 new messages