Skip to content

Ports configured for QUIC should not listen for TCP #4410

Closed

Description

@maskit

QUIC uses only UDP but this configuration below also opens sockets for TCP:

4433:quic 4433:quic:ipv6
$ netstat -an | grep 4433
tcp        0      0 0.0.0.0:4433            0.0.0.0:*               LISTEN     
tcp6       0      0 :::4433                 :::*                    LISTEN     
udp        0      0 0.0.0.0:4433            0.0.0.0:*                          
udp6       0      0 :::4433                 :::*

It happens only if I run traffic_server with trafficserver start.

Activity

  1. added this to the QUIC milestone on Oct 15, 2018
  2. SolidWallOfCode commented on Oct 16, 2018

    @SolidWallOfCode
    Member

    It doesn't happen if you run traffic_server directly? The port opening logic should be literally the same code.

  3. maskit commented on Oct 19, 2018

    @maskit
    MemberAuthor

    I just double checked. This does not happen if I run traffic_server directly.

  4. maskit commented on Oct 19, 2018

    @maskit
    MemberAuthor

    $ trafficserver start

    $ lsof -i:4433 -P
    COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    traffic_m 1763 masakazu   14u  IPv4  27408      0t0  TCP *:4433 (LISTEN)
    traffic_m 1763 masakazu   15u  IPv6  27409      0t0  TCP *:4433 (LISTEN)
    [TS_MAIN] 1769 masakazu   14u  IPv4  27408      0t0  TCP *:4433 (LISTEN)
    [TS_MAIN] 1769 masakazu   15u  IPv6  27409      0t0  TCP *:4433 (LISTEN)
    [TS_MAIN] 1769 masakazu   52u  IPv4  30286      0t0  UDP *:4433 
    [TS_MAIN] 1769 masakazu   53u  IPv6  30287      0t0  UDP *:4433 
    

    $ traffic_server

    $ lsof -i:4433 -P
    COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    [TS_MAIN] 1902 masakazu   42u  IPv4  36361      0t0  UDP *:4433 
    [TS_MAIN] 1902 masakazu   43u  IPv6  36362      0t0  UDP *:4433
    
  5. bryancall commented on May 30, 2019

    @bryancall
    Contributor

    @maskit Should we even fix this since traffic_manager is going away in ATS 10?

    We should fix it if we have a fully functional IETF QUIC release in ATS 9.x

  6. zwoop commented on May 30, 2019

    @zwoop
    Contributor

    So what should this look like?

    80 80:ipv6 443:ssl:quic 443:ipv6:ssl:quic
    

    or

    80 80:ipv6 443:ssl 443:ipv6:ssl 443:quic 443:ipv6:quic
    

    if we like the former, then just this should not bind TCP port 443, which seems a little confusing:

    80 80:ipv6 443:quic 443:ipv6:quic
    
  7. maskit commented on May 31, 2019

    @maskit
    MemberAuthor

    Should we even fix this since traffic_manager is going away in ATS 10?

    It depends on how it will be removed. If we just don't use traffic_manager anymore in terms of listening ports and traffic_server don't do similar things, then there will be nothing to do.

    So what should this look like?

    I've been using the latter style because I use a different port at the moment (most implementers use 4433 for interop). I'm fine with either styles, but making ssl and quic exclusive would be easy to understand. We can think like:

    Format:

    port[:network-layer-protocol][:transport-layer-protocol]
    

    Network layer protocol (exclusive):

    • ipv4 (default): IPv4
    • ipv6: IPv6

    Transport layer protocol (exclusive):

    • tcp(default): TCP
    • ssl: TLS (TCP+TLS)
    • quic: QUIC (UDP+TLS)
  8. maskit commented on Mar 9, 2020

    @maskit
    MemberAuthor

    I had to fix this because traffic_manager still exists, and I found a bug that well-known ports are not available for QUIC.

  9. moved this to Done in QUICon Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions