🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87935

Re: Streaming using multiple connections

#87935
From: Grant Taylor
Date: Fri, 05 Apr 2019 15:45
54 lines
3371 bytes
My comments below come from a place of ignorance that is my (limited) 
understanding of things.  So any or all of it may be wrong.

On 4/4/19 3:20 AM, yomomma wrote:
> When NNTP server is streaming articles to the peer, is it sending articles 
> to the same connection article was offered to?

I would be somewhat surprised if a news server offered the articles to 
the server that it received them from.  Not the least of which is the 
fact that newsfeeds file entries tend to exclude the name of the 
receiving site from the site's feed entry.  Thus INN should not send 
articles to a site that came from said site.

I would also be somewhat surprised if it's the same (TCP) connection. 
It's my understanding that innfeed uses one connection from an ephemeral 
port to (nominally) the NNTP port (TCP 119).  Which means that incoming 
and outgoing connections are on different local ports.  Thus, not "the 
same connection an article was offered (for receiving) to".

> For example, there are 4 open connections, and 1000 articles to 
> send. Will server offer 250 articles on each connection? Or it will 
> offer 1000 articles on connection 1, and then send the articles using 
> other three connections?

I've not thought about multiple outgoing connections before.  But I 
suspect they would be subject to the same port logic as above.

I don't know how it would multiplex articles across connections.  I sort 
of expect that metadata and the associated data are on the same 
connection.  At least I think trying to coordinate across multiple 
connections would be unduly complex for low return of effort.

> Or, perhaps, my question would be easier to understand if we'll look at 
> the receiving side. If article was offered using connection 1, should 
> the article itself be expected on connection 1, or it also have to be 
> expected on connections 2, 3, and 4?

I don't think that the article would travel across multiple connections 
between servers.  That seems like unnecessary complexity, redundancy, 
and possibly wasted bandwidth and CPU.

> Thank you.

You're welcome.

Please reply if your understanding / logic differs.



-- 
Grant. . . .
unix || die

Technical Details
Message-ID: <q87tfg$6lr$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <201904040920101880@webuse.net>

Show Full Headers
Complete Article Headers
Message-ID: <q87tfg$6lr$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: Streaming using multiple connections
Date: Fri, 5 Apr 2019 09:45:39 -0600
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <201904040920101880@webuse.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TNet Consulting
Lines: 52
NNTP-Posting-Host: alpha.home.tnetconsulting.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: tncsrv09.home.tnetconsulting.net 1554479408 6843 198.18.18.251 (5 Apr 2019 15:50:08 GMT)
X-Complaints-To: newsmaster@tnetconsulting.net
NNTP-Posting-Date: Fri, 5 Apr 2019 15:50:08 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.3
In-Reply-To: <201904040920101880@webuse.net>
Content-Language: en-US
X-Received-Bytes: 3283
X-Received-Body-CRC: 918531148