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

    Shaping upload bandwidth with hfsc

    Scheduled Pinned Locked Moved Traffic Shaping
    2 Posts 1 Posters 3.2k 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.
    • D
      denizv
      last edited by

      Hi

      I'm trying to shape my upload bandwidth, I'm using pfsense for months now. I had successfully shaped my download bandwidth with hfsc. Now I setup a torrent box, without limiting( shaping) uploads for torrents, uplink kills the downlink.

      I have a 8/1 Mb connection. What I did is this to test whether it is working or not: I reset all queues both for wan and lan. I created a qUpload on WAN and qDownload on LAN. Then i limited their maximum allowed bandwith to see if they are being used or not.
      After that, I assign these queues (to the queues not ackqueues)  to my main computer's ip to test them. In my main computer, I performed speed tests,
      I encountered these situations
      1. If i just use qDownload, it only limits the download
      2. If i just use qUpload, it only limits the upload
      3. It is impossible to use both of them, when i try, pfsense only use first in line.

      I also tried using floating rules with direction settings (in out). I played with source-destination settings. I spent couple of hours trying all combinations. I eventually failed. So is it possible to shape both upload and download simultaneously. I'm not talking about limiting them, limiter works perfectly fine. I'm talking about giving priorities to both up and down link.

      Thank you

      1 Reply Last reply Reply Quote 0
      • D
        denizv
        last edited by

        I partially solved my problem. So I answer my own question  :D

        I was messing with traffic shaper wizard, I found out that, if I create same queue name on both WAN and LAN, lets say qP2P, and if I set a floating rule for P2P traffic and set its queue name qP2P ( without ackqueue, its important). Download traffic goes to LAN's qP2P and upload traffic goes to WAN's qP2P, ack packets also goes to these queues. So I solved my own problem.

        But I couldn't solve my latency problem entirely,
        If I fully saturate upload (WAN traffic) my latencies dont get affected that much. I have read that WAN traffic is the one that we can control, the traffic that we can actually control by prioritizing packets or dropping, it is the the traffic that we create. On the other hand, download traffic is the one that we cannot control directly, someone could send us packets and we cannot stop it until it reaches our pfsense router.
        So my problem starts here, when i fully saturate my download traffic, latencies start to go high, not high as 600ms or 900ms but 200-250 ms.
        I'm testing latencies with ping command, i gave it highest priority, i tested different schedulers, for both LAN and WAN, I couldn't solve this problem.
        Traffic shaper solves my bandwith problem, I can enjoy smooth web browsing, every queue can get its fair share of bandwith, but latencies are too high for gaming when download queues are saturated

        So experienced users can give me an advice, is it normal to have high latencies like mine, can it be solved?

        Thank you in advance

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