How to throttle bandwidth effectively












0















I have a requirement to test various resilient file transfer methods that need to work across an extremely slow and intermittently unreliable network. I have a server and a client available to test the transfer from/to but I need a way to throttle the bandwidth on the client machine to simulate the poor network. I have seen there are various tools to throttle bandwidth in Chrome dev tools, for example, but I want to do it globally for the whole of the client machine's connection so I can be assured that the various transfer methods can cope gracefully with a slow network.



Has anyone got any suggestions/methodologies I can use to achieve this?










share|improve this question



























    0















    I have a requirement to test various resilient file transfer methods that need to work across an extremely slow and intermittently unreliable network. I have a server and a client available to test the transfer from/to but I need a way to throttle the bandwidth on the client machine to simulate the poor network. I have seen there are various tools to throttle bandwidth in Chrome dev tools, for example, but I want to do it globally for the whole of the client machine's connection so I can be assured that the various transfer methods can cope gracefully with a slow network.



    Has anyone got any suggestions/methodologies I can use to achieve this?










    share|improve this question

























      0












      0








      0








      I have a requirement to test various resilient file transfer methods that need to work across an extremely slow and intermittently unreliable network. I have a server and a client available to test the transfer from/to but I need a way to throttle the bandwidth on the client machine to simulate the poor network. I have seen there are various tools to throttle bandwidth in Chrome dev tools, for example, but I want to do it globally for the whole of the client machine's connection so I can be assured that the various transfer methods can cope gracefully with a slow network.



      Has anyone got any suggestions/methodologies I can use to achieve this?










      share|improve this question














      I have a requirement to test various resilient file transfer methods that need to work across an extremely slow and intermittently unreliable network. I have a server and a client available to test the transfer from/to but I need a way to throttle the bandwidth on the client machine to simulate the poor network. I have seen there are various tools to throttle bandwidth in Chrome dev tools, for example, but I want to do it globally for the whole of the client machine's connection so I can be assured that the various transfer methods can cope gracefully with a slow network.



      Has anyone got any suggestions/methodologies I can use to achieve this?







      networking bandwidth






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 15 at 14:27









      filbertfilbert

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          BEST SOLUTION:
          Use wondershaper (linux):



          wondershaper [interface] [down] [up],
          that in your case it's going to be:



          wondershaper eth0 256 128 -- that equals to 256kbps in down and 128kbps in up.





          You could set the NIC on your client to work at 10 mbit/s



          Windows:



          Device Manager > Right-Click NIC > Advanced >
          > Speed & Duplex > Set "10 Mbps Full Duplex" or "10 Mbps Half Duplex"


          Linux:



          apt-get install ethtool
          ethtool -s eth0 speed 10 duplex half (or duplex full, your choice) autoneg off
          ip set dev eth0 down && ip set dev eth0 up --OR-- ifconfig eth0 up && ifconfig eth0 up


          You could just hog the bandwidth with random file transfer between the server and client and while they're running run the desired test.






          share|improve this answer


























          • It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

            – filbert
            Jan 15 at 15:01











          • You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

            – Jes7err
            Jan 15 at 15:06











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394536%2fhow-to-throttle-bandwidth-effectively%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          BEST SOLUTION:
          Use wondershaper (linux):



          wondershaper [interface] [down] [up],
          that in your case it's going to be:



          wondershaper eth0 256 128 -- that equals to 256kbps in down and 128kbps in up.





          You could set the NIC on your client to work at 10 mbit/s



          Windows:



          Device Manager > Right-Click NIC > Advanced >
          > Speed & Duplex > Set "10 Mbps Full Duplex" or "10 Mbps Half Duplex"


          Linux:



          apt-get install ethtool
          ethtool -s eth0 speed 10 duplex half (or duplex full, your choice) autoneg off
          ip set dev eth0 down && ip set dev eth0 up --OR-- ifconfig eth0 up && ifconfig eth0 up


          You could just hog the bandwidth with random file transfer between the server and client and while they're running run the desired test.






          share|improve this answer


























          • It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

            – filbert
            Jan 15 at 15:01











          • You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

            – Jes7err
            Jan 15 at 15:06
















          0














          BEST SOLUTION:
          Use wondershaper (linux):



          wondershaper [interface] [down] [up],
          that in your case it's going to be:



          wondershaper eth0 256 128 -- that equals to 256kbps in down and 128kbps in up.





          You could set the NIC on your client to work at 10 mbit/s



          Windows:



          Device Manager > Right-Click NIC > Advanced >
          > Speed & Duplex > Set "10 Mbps Full Duplex" or "10 Mbps Half Duplex"


          Linux:



          apt-get install ethtool
          ethtool -s eth0 speed 10 duplex half (or duplex full, your choice) autoneg off
          ip set dev eth0 down && ip set dev eth0 up --OR-- ifconfig eth0 up && ifconfig eth0 up


          You could just hog the bandwidth with random file transfer between the server and client and while they're running run the desired test.






          share|improve this answer


























          • It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

            – filbert
            Jan 15 at 15:01











          • You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

            – Jes7err
            Jan 15 at 15:06














          0












          0








          0







          BEST SOLUTION:
          Use wondershaper (linux):



          wondershaper [interface] [down] [up],
          that in your case it's going to be:



          wondershaper eth0 256 128 -- that equals to 256kbps in down and 128kbps in up.





          You could set the NIC on your client to work at 10 mbit/s



          Windows:



          Device Manager > Right-Click NIC > Advanced >
          > Speed & Duplex > Set "10 Mbps Full Duplex" or "10 Mbps Half Duplex"


          Linux:



          apt-get install ethtool
          ethtool -s eth0 speed 10 duplex half (or duplex full, your choice) autoneg off
          ip set dev eth0 down && ip set dev eth0 up --OR-- ifconfig eth0 up && ifconfig eth0 up


          You could just hog the bandwidth with random file transfer between the server and client and while they're running run the desired test.






          share|improve this answer















          BEST SOLUTION:
          Use wondershaper (linux):



          wondershaper [interface] [down] [up],
          that in your case it's going to be:



          wondershaper eth0 256 128 -- that equals to 256kbps in down and 128kbps in up.





          You could set the NIC on your client to work at 10 mbit/s



          Windows:



          Device Manager > Right-Click NIC > Advanced >
          > Speed & Duplex > Set "10 Mbps Full Duplex" or "10 Mbps Half Duplex"


          Linux:



          apt-get install ethtool
          ethtool -s eth0 speed 10 duplex half (or duplex full, your choice) autoneg off
          ip set dev eth0 down && ip set dev eth0 up --OR-- ifconfig eth0 up && ifconfig eth0 up


          You could just hog the bandwidth with random file transfer between the server and client and while they're running run the desired test.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 15 at 16:08

























          answered Jan 15 at 14:53









          Jes7errJes7err

          62




          62













          • It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

            – filbert
            Jan 15 at 15:01











          • You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

            – Jes7err
            Jan 15 at 15:06



















          • It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

            – filbert
            Jan 15 at 15:01











          • You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

            – Jes7err
            Jan 15 at 15:06

















          It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

          – filbert
          Jan 15 at 15:01





          It's a good idea, thanks. But I need it to go even slower than that - we are talking dial-up speeds really - it's a very poor connection that needs to be simulated. I guess I can flood the connection with noise, as you say, and hog the bandwidth that way but I need something that is consistent, reliable and repeatable as I need to test several different file transfer methods against one another. I was hoping I could just globally limit the network connection to 1mbit/s and have done with it.

          – filbert
          Jan 15 at 15:01













          You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

          – Jes7err
          Jan 15 at 15:06





          You can use wondershaper in that case: wondershaper [interface] [down] [up], in your case it would be: "wondershaper eth0 256 128" -- that equals to 256kbps in down and 128 in up

          – Jes7err
          Jan 15 at 15:06


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394536%2fhow-to-throttle-bandwidth-effectively%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Сан-Квентин

          8-я гвардейская общевойсковая армия

          Алькесар