You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (Jira)" <ji...@apache.org> on 2020/09/22 19:43:00 UTC

[jira] [Commented] (DISPATCH-1777) inter-router transfer of streaming message representing tcp connection is not delivered

    [ https://issues.apache.org/jira/browse/DISPATCH-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200334#comment-17200334 ] 

Gordon Sim commented on DISPATCH-1777:
--------------------------------------

To reproduce, setup a pair of routers, one with a tcp listener, one with a tcp connector. Have some service running that the tcp connector is configured to connect to. Then try and use that service via the port the tcp listener is listening on.

E.g. router 1 config:
{noformat}
router {
    id: router-a
    mode: interior
}

listener {
    host: 0.0.0.0
    port: amqp
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
}

listener {
    host: 0.0.0.0
    port: 55672
    role: inter-router
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
}

tcpConnector {
    host: 127.0.0.1
    port: 9090
    address: foo
    siteId: bar
}

log {
    module: TCP_ADAPTOR
    enable: trace+
}
{noformat}

router 2 config:
{noformat}
router {
    id: router-b
    mode: interior
}

listener {
    host: 0.0.0.0
    port: 5673
    authenticatePeer: no
    saslMechanisms: ANONYMOUS
}

connector {
    host: 0.0.0.0
    port: 55672
    role: inter-router
}

tcpListener {
    host: 0.0.0.0
    port: 9191
    address: foo
    siteId: bar
}

log {
    module: TCP_ADAPTOR
    enable: trace+
}
{noformat}

For a service I used simple echo service, e.g. {{podman run -it -p9090:9090 quay.io/skupper/tcp-echo}} (or docker if you don't use podman), then  {{telnet localhost 9191}} and type data to be echoed.

> inter-router transfer of streaming message representing tcp connection is not delivered
> ---------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-1777
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1777
>             Project: Qpid Dispatch
>          Issue Type: Sub-task
>            Reporter: Gordon Sim
>            Priority: Major
>
> The message for a tcp connections gets correctly router to an inter-router link, but that link seems not to be able to transfer it. It remains in the undelivered state.
> {noformat}
> $ qdstat -l -r router-b
> 2020-09-18 09:56:27.754348 UTC
> router-b
> Router Links
>   type            dir  conn id  id  peer  class   addr                  phs  cap  pri  undel  unsett  deliv  presett  psdrop  acc  rej  rel  mod  delay  rate  stuck  cred  blkd
>   ================================================================================================================================================================================
>   router-control  in   1        1                                            250  0    0      0       746    746      0       0    0    0    0    0      1     0      250   -
>   router-control  out  1        2         local   qdhello                    250  0    0      0       744    744      0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        3                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        4                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        5                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        6                                            250  1    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        7                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        8                                            250  2    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        9                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        10                                           250  3    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        11                                           250  0    0      0       5      0        0       5    0    0    0    0      0     0      250   -
>   inter-router    out  1        12                                           250  4    0      0       4      4        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        13                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        14                                           250  5    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        15                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        16                                           250  6    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        17                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        18                                           250  7    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        19                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        20                                           250  8    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        21                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        22                                           250  9    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   endpoint        out  2        23        local   temp.dXw6fBQSSfhCbmZ       250  0    0      0       0      0        0       0    0    0    0    0      0     0      10    -
>   endpoint        in   2        24        mobile  foo                   0    250  0    0      1       1      0        0       0    0    0    0    0      0     1      10    -
>   inter-router    out  1        25                                           250  0    1      0       0      0        0       0    0    0    0    0      0     1      250   -
> {noformat}
> {noformat}
> $ qdstat -l -r router-a
> 2020-09-18 09:56:29.009348 UTC
> router-a
> Router Links
>   type            dir  conn id  id  peer  class   addr                  phs  cap  pri  undel  unsett  deliv  presett  psdrop  acc  rej  rel  mod  delay  rate  stuck  cred  blkd
>   ================================================================================================================================================================================
>   endpoint        out  1        1         mobile  foo                   0    250  0    0      0       0      0        0       0    0    0    0    0      0     0      10    -
>   router-control  out  2        2         local   qdhello                    250  0    0      0       747    747      0       0    0    0    0    0      0     0      250   -
>   router-control  in   2        3                                            250  0    0      0       745    745      0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        4                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        5                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        6                                            250  1    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        7                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        8                                            250  2    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        9                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        10                                           250  3    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        11                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        12                                           250  4    0      0       6      0        0       6    0    0    0    0      0     0      250   -
>   inter-router    in   2        13                                           250  0    0      0       6      6        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        14                                           250  5    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        15                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        16                                           250  6    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        17                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        18                                           250  7    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        19                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        20                                           250  8    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        21                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  2        22                                           250  9    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        23                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   2        24                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   endpoint        in   8        35        local   $management                250  0    0      0       2      0        0       2    0    0    0    0      0     0      250   -
>   endpoint        out  8        36        local   temp.vQF_IuYhM+weaUf       250  0    0      0       1      1        0       0    0    0    0    0      0     0      1     -
> {noformat}
> If a new connection is started, a new inter-router link is created for the message, but again it seems to remain undelivered:
> {noformat}
> $ qdstat -l -r router-b
> 2020-09-18 09:59:28.104091 UTC
> router-b
> Router Links
>   type            dir  conn id  id  peer  class   addr                  phs  cap  pri  undel  unsett  deliv  presett  psdrop  acc  rej  rel  mod  delay  rate  stuck  cred  blkd
>   ================================================================================================================================================================================
>   router-control  in   1        1                                            250  0    0      0       932    932      0       0    0    0    0    0      1     0      250   -
>   router-control  out  1        2         local   qdhello                    250  0    0      0       930    930      0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        3                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        4                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        5                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        6                                            250  1    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        7                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        8                                            250  2    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        9                                            250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        10                                           250  3    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        11                                           250  0    0      0       8      0        0       8    0    0    0    0      0     0      250   -
>   inter-router    out  1        12                                           250  4    0      0       7      7        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        13                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        14                                           250  5    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        15                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        16                                           250  6    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        17                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        18                                           250  7    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        19                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        20                                           250  8    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    in   1        21                                           250  0    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   inter-router    out  1        22                                           250  9    0      0       0      0        0       0    0    0    0    0      0     0      250   -
>   endpoint        out  2        23        local   temp.dXw6fBQSSfhCbmZ       250  0    0      0       0      0        0       0    0    0    0    0      0     0      10    -
>   endpoint        in   2        24        mobile  foo                   0    250  0    0      1       1      0        0       0    0    0    0    0      0     1      10    -
>   inter-router    out  1        25                                           250  0    1      0       0      0        0       0    0    0    0    0      0     1      250   -
>   endpoint        out  3        26        local   temp.BS9_PeimC+lM_f1       250  0    0      0       0      0        0       0    0    0    0    0      0     0      10    -
>   endpoint        in   3        27        mobile  foo                   0    250  0    0      1       1      0        0       0    0    0    0    0      0     0      10    -
>   inter-router    out  1        28                                           250  0    1      0       0      0        0       0    0    0    0    0      0     0      250   -
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org