Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Community service -- do not pass Go ...

126 views
Skip to first unread message

woodb...@gmail.com

unread,
Sep 27, 2019, 12:00:52 PM9/27/19
to
Shalom

Can you give me ideas on how to improve my code generation service
<https://github.com/Ebenezer-group/onwards>
? FreeBSD's motto is "the power to serve." The back tier of my service
runs on FreeBSD. The middle tier is a UDP server, and my front tier is
a small, highly portable program. The service is free so I don't think
that can be improved on, but if you want to get into the code, that's
good. Maybe you have a suggestion about how to organize things
differently, etc. Thank you in advance.



Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net

woodb...@gmail.com

unread,
Sep 30, 2019, 11:21:47 PM9/30/19
to
On Friday, September 27, 2019 at 11:00:52 AM UTC-5, woodb...@gmail.com wrote:
> Shalom
>
> Can you give me ideas on how to improve my code generation service
> <https://github.com/Ebenezer-group/onwards>
> ? FreeBSD's motto is "the power to serve." The back tier of my service
> runs on FreeBSD. The middle tier is a UDP server, and my front tier is
> a small, highly portable program. The service is free so I don't think
> that can be improved on, but if you want to get into the code, that's
> good. Maybe you have a suggestion about how to organize things
> differently, etc. Thank you in advance.
>
>

Currently my code generator is a TCP server. I've been
looking into some alternatives to that. I'd like to use
Wireguard for encryption so something like Quic might not
work for me. I've never used SCTP or DCCP. Would those
work with Wireguard? I need it to work on Posix including
FreeBSD and Linux. Any advice for choosing between SCTP
and DCCP?


Brian
Ebenezer Enterprises
http://webEbenezer.net

woodb...@gmail.com

unread,
Sep 30, 2019, 11:34:15 PM9/30/19
to
I guess DCCP doesn't provide reliable in-order delivery so
that's not an option. I'll try SCTP for now.

woodb...@gmail.com

unread,
Oct 6, 2019, 7:39:26 PM10/6/19
to
On Monday, September 30, 2019 at 10:34:15 PM UTC-5, woodb...@gmail.com wrote:
>
> I guess DCCP doesn't provide reliable in-order delivery so
> that's not an option. I'll try SCTP for now.

I've made a little progress with using SCTP:
https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc

. One thing that has eluded me though is figuring out how
to increase the heartbeat interval. From what I can tell
the interval is 30 seconds on both FreeBSD and openSUSE.
I've guessed that you can adjust it via setsockopt and have
searched for sctp and setsockopt, but so far haven't figured
it out. I even tried using something other than Duckduckgo
to search, but that didn't help.

woodb...@gmail.com

unread,
Apr 24, 2020, 1:02:14 AM4/24/20
to
On Sunday, October 6, 2019 at 6:39:26 PM UTC-5, woodb...@gmail.com wrote:
>
> I've made a little progress with using SCTP:
> https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc
>
> . One thing that has eluded me though is figuring out how
> to increase the heartbeat interval. From what I can tell
> the interval is 30 seconds on both FreeBSD and openSUSE.
> I've guessed that you can adjust it via setsockopt and have
> searched for sctp and setsockopt, but so far haven't figured
> it out. I even tried using something other than Duckduckgo
> to search, but that didn't help.
>
>
> Brian
> Ebenezer Enterprises
> http://webEbenezer.net


With more people needing quality, free services,
I'm looking for a router that has support for SCTP
in terms of port forwarding. I read on Stackoverflow
that the percentage of routers with SCTP support was
very low as of 2013. Thanks in advance for advice
on this.


Brian
Ebenezer Enterprises - In G-d we trust.
https://github.com/Ebenezer-group/onwards

David Brown

unread,
Apr 24, 2020, 3:21:23 AM4/24/20
to
SCTP is like IPv6 - it has many clear advantages over its predecessors,
and has been predicted to replace them for nearly 10 years, but is still
seen almost nowhere. Just as IPv6 is only found either on specialised
or highly technical local networks, or tunnelled over IPv4 for wider
networking, SCTP is only found on similar local networks or tunnelled
over UDP.

There are almost no off-the-shelf routers that handle SCTP explicitly
and are sold at a sane price tag. (Of course trunk routers just pass on
the IP traffic without concerning themselves with the protocol inside.)
Windows has no native SCTP support. Thus there are virtually no
applications that support it. Thus there is no incentive for MS to
support it in Windows, and no incentive for makers of small routers to
support it. Rinse and repeat, going around the circles as much as you
want. Chickens and eggs.

The trouble is, while SCTP has many clear advantages over TCP/IP and
UDP, and could replace both of them, in almost all use-cases you can
make either TCP/IP or UDP work well enough. Patching, encapsulating,
workarounds are all lower cost and fewer changes than switching over to
something better.

So while you are right to think that SCTP is a superior technological
choice, you can expect that none of your customers will have any
interest or ability to use it.

Having said that, if you still want a router that is SCTP aware, I think
the best bet is to put one together yourself. My primary suggestions
here are pfSense running on an x86 box (since you like BSD), or OpenWRT
running on practically anything from a cheapo home wireless router to a
powerful rack server. They are both straightforward to install in most
cases.


Jorgen Grahn

unread,
Apr 24, 2020, 6:52:08 AM4/24/20
to
On Fri, 2020-04-24, David Brown wrote:
> On 24/04/2020 07:02, woodb...@gmail.com wrote:
...
>> With more people needing quality, free services,
>> I'm looking for a router that has support for SCTP
>> in terms of port forwarding. I read on Stackoverflow
>> that the percentage of routers with SCTP support was
>> very low as of 2013. Thanks in advance for advice
>> on this.
>>
>
> SCTP is like IPv6

IPv6 is much more obviously a good idea IMO. We probably shouldn't
start a debate about it here though, and I agree with your point that
relying on either is a bad idea.

> - it has many clear advantages over its predecessors,
> and has been predicted to replace them for nearly 10 years, but is still
> seen almost nowhere. Just as IPv6 is only found either on specialised
> or highly technical local networks, or tunnelled over IPv4 for wider
> networking,

Lots of organizations, from Google and Facebook to Debian, are
available over IPv6; the problem is with the ISPs. (The end result
is the same, though -- no IPv6 for most people.)

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Melzzzzz

unread,
Apr 24, 2020, 6:54:02 AM4/24/20
to
On 2020-04-24, Jorgen Grahn <grahn...@snipabacken.se> wrote:
> On Fri, 2020-04-24, David Brown wrote:
>> On 24/04/2020 07:02, woodb...@gmail.com wrote:
> ...
>>> With more people needing quality, free services,
>>> I'm looking for a router that has support for SCTP
>>> in terms of port forwarding. I read on Stackoverflow
>>> that the percentage of routers with SCTP support was
>>> very low as of 2013. Thanks in advance for advice
>>> on this.
>>>
>>
>> SCTP is like IPv6
>
> IPv6 is much more obviously a good idea IMO. We probably shouldn't
> start a debate about it here though, and I agree with your point that
> relying on either is a bad idea.

SCTP is also ok. IPv6 much more usefull though...

>
>> - it has many clear advantages over its predecessors,
>> and has been predicted to replace them for nearly 10 years, but is still
>> seen almost nowhere. Just as IPv6 is only found either on specialised
>> or highly technical local networks, or tunnelled over IPv4 for wider
>> networking,
>
> Lots of organizations, from Google and Facebook to Debian, are
> available over IPv6; the problem is with the ISPs. (The end result
> is the same, though -- no IPv6 for most people.)

Yep, I think this is because they charge premium price for ipv4
addresses...

>
> /Jorgen
>


--
current job title: senior software engineer
skills: c++,c,rust,go,nim,haskell...

press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Svi smo svedoci - oko 3 godine intenzivne propagande je dovoljno da jedan narod poludi -- Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala

woodb...@gmail.com

unread,
Apr 24, 2020, 12:30:58 PM4/24/20
to
I'm not sure what you mean about unable to use it. Linux
and FreeBSD support SCTP. I don't need Windows support.


woodb...@gmail.com

unread,
Apr 24, 2020, 12:47:07 PM4/24/20
to
On Friday, April 24, 2020 at 5:52:08 AM UTC-5, Jorgen Grahn wrote:
> On Fri, 2020-04-24, David Brown wrote:
> > On 24/04/2020 07:02, woodb...@gmail.com wrote:
> ...
> >> With more people needing quality, free services,
> >> I'm looking for a router that has support for SCTP
> >> in terms of port forwarding. I read on Stackoverflow
> >> that the percentage of routers with SCTP support was
> >> very low as of 2013. Thanks in advance for advice
> >> on this.
> >>
> >
> > SCTP is like IPv6
>
> IPv6 is much more obviously a good idea IMO. We probably shouldn't
> start a debate about it here though, and I agree with your point that
> relying on either is a bad idea.
>

I look forward to your posts here but can't
agree this time. SCTP good. IPv6 bad.

David Brown

unread,
Apr 24, 2020, 2:01:13 PM4/24/20
to
None of them will be able to connect to your system using SCTP, because
the protocol will not be tracked through the NAT routers that they
(almost invariably) will be using.

If you find I am wrong in this, great. I know a good deal about
networking, but not everything, and I haven't had cause to try SCTP.
You would probably get better more useful help from a newsgroup aimed at
Linux or BSD networking (like comp.os.linux.networking), rather than a
C++ group where the post is off-topic.

woodb...@gmail.com

unread,
Apr 24, 2020, 2:34:28 PM4/24/20
to
Thanks for the clarification. This article

https://www.networkworld.com/article/2222277/what-about-stream-control-transmission-protocol--sctp--.html

Says:
"Operating systems, applications, and network equipment
all needed to be upgraded to support IPv6 to enable it to
work. SCTP only requires applications and operating system
support, but that is still a daunting task."

I'm hoping the part about "SCTP only requires applications
and operating system support" is true, but am not sure.

Ian Collins

unread,
Apr 24, 2020, 8:54:42 PM4/24/20
to
On 24/04/2020 19:21, David Brown wrote:
>
> SCTP is like IPv6 - it has many clear advantages over its predecessors,
> and has been predicted to replace them for nearly 10 years, but is still
> seen almost nowhere. Just as IPv6 is only found either on specialised
> or highly technical local networks, ...

Or in India and Japan!

--
Ian.

Tim Rentsch

unread,
Apr 25, 2020, 3:28:02 AM4/25/20
to
woodb...@gmail.com writes:

> On Sunday, October 6, 2019 at 6:39:26 PM UTC-5, woodb...@gmail.com wrote:
>
>> I've made a little progress with using SCTP:
>>
>> . One thing that has eluded me though is figuring out how
>> to increase the heartbeat interval. From what I can tell
>> the interval is 30 seconds on both FreeBSD and openSUSE.
>> I've guessed that you can adjust it via setsockopt and have
>> searched for sctp and setsockopt, but so far haven't figured
>> it out. I even tried using something other than Duckduckgo
>> to search, but that didn't help.
>
> With more people needing quality, free services,
> I'm looking for a router that has support for SCTP
> in terms of port forwarding. I read on Stackoverflow
> that the percentage of routers with SCTP support was
> very low as of 2013. Thanks in advance for advice
> on this.

Using linux makes a great router.

SCTP is available for Linux.

Raspberry Pi runs Linux.

Some models of Raspberry Pi have WiFi built in
(admittedly with limited range, but should be enough
for a wireless repeater if you need that).

If you need a real network center, couple the Raspberry Pi
with a multilayer managed switch. Cisco SG350-10 is
available on Amazon for $144.

Mr Flibble

unread,
Apr 25, 2020, 9:17:59 AM4/25/20
to
On 24/04/2020 06:02, woodb...@gmail.com wrote:
> Brian
> Ebenezer Enterprises - In G-d we trust.
> https://github.com/Ebenezer-group/onwards

Your fucking god doesn't fucking exist. Stop pushing that snake oil here; you are just as egregious as Trump.

/Flibble

--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin

“You won’t burn in hell. But be nice anyway.” – Ricky Gervais

“I see Atheists are fighting and killing each other again, over who doesn’t believe in any God the most. Oh, no..wait.. that never happens.” – Ricky Gervais

"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say."

woodb...@gmail.com

unread,
Apr 25, 2020, 2:31:29 PM4/25/20
to
On Saturday, April 25, 2020 at 2:28:02 AM UTC-5, Tim Rentsch wrote:
> woodb...@gmail.com writes:
>
> >
> > With more people needing quality, free services,
> > I'm looking for a router that has support for SCTP
> > in terms of port forwarding. I read on Stackoverflow
> > that the percentage of routers with SCTP support was
> > very low as of 2013. Thanks in advance for advice
> > on this.
>
> Using linux makes a great router.
>
> SCTP is available for Linux.
>
> Raspberry Pi runs Linux.
>
> Some models of Raspberry Pi have WiFi built in
> (admittedly with limited range, but should be enough
> for a wireless repeater if you need that).
>
> If you need a real network center, couple the Raspberry Pi
> with a multilayer managed switch. Cisco SG350-10 is
> available on Amazon for $144.

Thanks for your comments. I would probably use FreeBSD
rather than Linux for that.

I'm trying to avoid Amazon. One alternative I've found is https://www.bhphotovideo.com

. Their prices are often better than Amazon's if you have
their card. I should add them to my recommended sites page.

woodb...@gmail.com

unread,
Apr 25, 2020, 2:50:47 PM4/25/20
to
On Saturday, April 25, 2020 at 8:17:59 AM UTC-5, Mr Flibble wrote:

Don't swear here, please.

I didn't vote for Clinton, Bush, Obama, Hillary or Trump.
I've been voting for the Constitution Party candidates.

red floyd

unread,
Apr 25, 2020, 4:37:12 PM4/25/20
to
Fuck off trying to impose your morals on everyone else.


Tim Rentsch

unread,
Apr 28, 2020, 9:44:44 AM4/28/20
to
woodb...@gmail.com writes:

> On Saturday, April 25, 2020 at 2:28:02 AM UTC-5, Tim Rentsch wrote:
>
>> woodb...@gmail.com writes:
>>
>>> With more people needing quality, free services,
>>> I'm looking for a router that has support for SCTP
>>> in terms of port forwarding. I read on Stackoverflow
>>> that the percentage of routers with SCTP support was
>>> very low as of 2013. Thanks in advance for advice
>>> on this.
>>
>> Using linux makes a great router.
>>
>> SCTP is available for Linux.
>>
>> Raspberry Pi runs Linux.
>>
>> Some models of Raspberry Pi have WiFi built in
>> (admittedly with limited range, but should be enough
>> for a wireless repeater if you need that).
>>
>> If you need a real network center, couple the Raspberry Pi
>> with a multilayer managed switch. Cisco SG350-10 is
>> available on Amazon for $144.
>
> Thanks for your comments. I would probably use FreeBSD
> rather than Linux for that.

You're welcome. I didn't mean to suggest that Linux is the only
viable choice. I have a fair amount of experience using Linux
(and also other systems) to do routing/networking, and am happy to
recommend it, but FreeBSD (where I have very little experience)
may also be fine.

> I'm trying to avoid Amazon.

I wasn't recommending Amazon, just providing a convenient point of
reference and one that is a known quantity.

> One alternative I've found is https://www.bhphotovideo.com

Great, I will try to take a look.
0 new messages