Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Congestion control choose (BBR2, QUICK, RACK, CDG) for music streaming

    Scheduled Pinned Locked Moved General pfSense Questions
    congestionquicbbr2bbrtcp-ip
    3 Posts 2 Posters 610 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sergei_ShablovskyS
      Sergei_Shablovsky
      last edited by Sergei_Shablovsky

      What congestion control (BBR2, QUICK, RACK, CDG (http://caia.swin.edu.au/urp/newtcp/tools/cc_cdg-0.1.readme) better to using in music streaming where 95-97% of clients are app on a mobile devices (smartphones and tablets) ?

      And which tunables are suitable (see example):

      ###NET################################################################## 
      net.inet6.ip6.temppltime=7200            # 86400 ,  Maximum preferred lifetime for temporary addresses 
      net.inet6.ip6.tempvltime=14400           # 604800 , Maximum valid lifetime for temporary addresses 
      net.inet.tcp.cc.algorithm=cubic          #newreno #Congestion control newreno,CDG,CHD,CUBIC,DCTCP,HD,H-TCP,VEGAS 
      # 
      net.inet6.ip6.redirect=0                 #1 
      net.inet6.icmp6.rediraccept=0            #1        
      net.inet.ip.redirect=0                   #1 
      net.inet.icmp.drop_redirect=1            #0 
      # 
      net.inet.ip.maxfragpackets=0             #15762 
      net.inet.ip.maxfragsperpacket=0          #16 
      # 
      net.inet.tcp.blackhole=2                 #0 
      net.inet.udp.blackhole=1                 #0 
      # 
      net.inet.tcp.always_keepalive=0          #1           
      net.inet.tcp.nolocaltimewait=1           #0            
      net.inet.tcp.icmp_may_rst=0              #1 
      net.inet.ip.check_interface=1            #0                   
      net.inet.ip.process_options=0            #1                   
      net.inet.ip.random_id=1                  #0                           
      net.inet.icmp.icmplim=50                 #200 
      #aslr 
      kern.elf64.aslr.enable=1                 #0 
      #aslrpie 
      kern.elf64.aslr.pie_enable=1             #0 
      # 
      net.inet6.ip6.accept_rtadv=1             #0 Default value of per-interface flag for accepting ICMPv6 RA messages 
      # 
      kern.metadelay=4                         #28 
      kern.dirdelay=5                          #29 
      kern.filedelay=7                         #30 
      # 
      security.bsd.unprivileged_idprio=1       #0 
      kern.sched.preempt_thresh=120            #80
      

      P.S.
      Please take a deep look on this threads:
      Using BBR2, QUIC, RACK Congestion Control (CC) protocols in pfSense
      https://forum.netgate.com/topic/167599/using-bbr2-quic-rack-congestion-control-cc-protocols-in-pfsense

      —
      CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
      Help Ukraine to resist, save civilians people’s lives !
      (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Unless you're streaming music from or on pfSense itself (which you shouldn't be!) then it makes no difference what pfSense is using for those.

        The only exceptions to that might be if you're proxying the traffic in pfSense or perhaps routing the stream over a TCP VPN.

        Additionally most streaming is UDP anyway.

        Steve

        Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
        • Sergei_ShablovskyS
          Sergei_Shablovsky @stephenw10
          last edited by Sergei_Shablovsky

          @stephenw10 said in Congestion control choose (BBR2, QUICK, RACK, CDG) for music streaming:

          Unless you're streaming music from or on pfSense itself (which you shouldn't be!) then it makes no difference what pfSense is using for those.

          Of course, streaming are from separate servers set.

          The only exceptions to that might be if you're proxying the traffic in pfSense or perhaps routing the stream over a TCP VPN.

          In this moment - stream traffic not proxying.

          Additionally most streaming is UDP anyway.

          Let me correct You: more and more services nowadays using TCP and QUICK.

          But:
          ——
          For instance, Netflix and Amazon Prime use TCP as transport layer protocol, while YouTube has adopted both UDP and TCP protocols.
          ——

          —
          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
          Help Ukraine to resist, save civilians people’s lives !
          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.