🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by yomomma Thu, 04 Apr 2019 09:20
Streaming using multiple connections
#87929
Author: yomomma
Date: Thu, 04 Apr 2019 09:20
17 lines
1327 bytes
When NNTP server is streaming articles to the peer, is it sending
articles to the same connection article was offered 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?

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?

Thank you.


Re: Streaming using multiple connections
#87930
Author: Russ Allbery
Date: Thu, 04 Apr 2019 15:42
18 lines
1575 bytes
"yomomma" <1880invalid@webuse.net> writes:

> When NNTP server is streaming articles to the peer, is it sending
> articles to the same connection article was offered to?

Not necessarily.  There's nothing in the protocol that requires it, so it
will depend on the implementation details of the server.

I don't remember off-hand what innfeed does.  It may just use whatever
connection is idle whenever it wants to send a new protocol command.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: Streaming using multiple connections
#87940
Author: yomomma
Date: Thu, 04 Apr 2019 18:38
9 lines
997 bytes
Russ Allbery <eagle@eyrie.org> wrote:

> Not necessarily.  There's nothing in the protocol that requires it, so it
> will depend on the implementation details of the server.

Thanks. That's what I suspected. 


Re: Streaming using multiple connections
#87935
Author: 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

Re: Streaming using multiple connections
#87936
Author: Richard Kettlewell
Date: Sat, 06 Apr 2019 10:43
15 lines
1621 bytes
Grant Taylor <gtaylor@tnetconsulting.net> writes:
> 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.

They are asking whether the TAKETHIS appears on the same connection as
the CHECK.

-- 
https://www.greenend.org.uk/rjk/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads