Traffic shaping: Which is the best solution?

Hi! I'm running 3 computers on 1 d-link router, 2 of them has an archlinux installed. Wondershaper mostly works for me when the other computers has cfosspeed running on windows, but when both computers run archlinux and wshaper and p2p applications, ping is over 1000ms instead of 10-20ms.
Which is the best solution of traffic shaping on linux, and is there a howto for them (can be even a gentoo wiki page or similar)?
Edit: shorewall is not being built from yaourt (x86_64), can't find a usable manual for trickle and niceshaper, (even ubuntu forums has unreplied "threads" about it) and can't start them coz missing config files, it seems, noone cares about ACK priority and ping in the Linux world
Last edited by Vegita (2010-02-24 19:58:07)

This config file is being used on 2 computers, and not working, my speed is 8m/1m. Any ideas? I don't want to limit anything, I just want ACK's priority to set to the highest, and same with http, and get p2p apps (opn this computer ktorrent and valknut, on the other ktorrent) priority on lowest. valknut's port is 1412, ktorrents' one is 6881 on this and 24748 on the other computer. Any ideas what to modify for small ping?
# shaping config script for pyshaper             
# for more information about pyshaper configuration, refer to the
# file 'pyshaper.conf.readme', and the examples therein
# set the connection-scanning period to 15 seconds (which is very
# aggressive). IF you're more concerned about longer-running
# connections, set this to a longer value (say, 60-300 seconds).
period 30
# declare one network interface, and set its inbound
# and outbound bandwidth in kbits/sec
eth0.ip 192.168.0.180
eth0.in 8096
eth0.out 1024
# This is a test scenario - we're throttling all replies
# from our webserver to max 16kbits/sec, but only if
# the remote client is shell.sourceforge.net
# note - the identifiers 'out', 'pri', 'rate', 'ceil' 'http' and 'test'
# have special meaning (see pyshaper.conf.readme).
# the identifier 'http' is not significant - you can replace
# it with anything, as long as your setup is consistent
# we're setting up a basic 'class' called 'http'
eth0.http.pri 1
eth0.http.out.rate 968
eth0.http.out.ceil 1024
eth0.http.test raddr=='66.35.250.208' and lport == 80
eth0.p2p.test (cmd == '/usr/bin/valknut')
eth0.p2p.test (cmd == '/usr/bin/ktorrent')
eth0.p2p.pri 3
# default traffic gets good bandwidth
eth0.default.out.rate 932
eth0.default.out.ceil 968

Similar Messages

  • TA24002 My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know which erase option would be the best solution for this problem.

    My 500 GB can't verify nor repair. I have photoshop work that I need to recover. I would like to know what option would be the best solution for this problem?

    You appear to have two issues: 1) a hard drive that is not working properly and 2) files you wish to recover.
    Re 1) you need to answer Kappy's questions.
    Re 2) does the drive load and can you see your photo files? If so can you copy them to another drive?
    Do you not have a backup of the photo files?

  • The best solution? Hub-and-spoke, Peer-to-peer, Multi-cast?

    By the best solution, I mean in terms of price and quality (latency, minimum lag, etc)
    App type: Video conferencing
    Platforms: PC, Mobile (Android, iOS) [If mobile support would reduce performance or increase costs, I am willing to scrap it]
    Users: There will be 5 - 30 users logged into the service in the same room at a time. And a maximum of  5 - 7 users in that room will have their webcam's on at any given time.
    My main concern is performance, Since I might make it a paid service in the future, I don't think users would pay for something that has a lot of lag or trailing effects.
    So I was hoping to get some advice on how I should set it up and pros and cons in respect to LCCS

    Hi Sam,
    Let me add my two cents here, when speaking about MAN deployments the name of the game is MPLS, so I guess you are using the same on your Cat 6500s and connecting your customers on 3550s using Vlans.
    Regarding your questions:
    a) Upgrading Ethernet to L3 for traffic shaping: This is basically done at 3550, so I suppose that's what you intend to do, plus you will be letting Spokes talk to only Hub site, so inter Vlan, atleast between Hub and each spoke will be required, hence inter valn routing. Other way is to configure P2P circuits between Hub site with Vlan mapping (per spoke) and Spoke sites with Port mapping, in this scenario Inter Vlan routing is not a necessity.
    b) Security: This depends on what exact architecure you have deployed, in my case I have simply installed a Gateway router with BGP peering with PEs, a separate VRF alongwith redistribution does the trick.
    Hope I addresses the query correctly, let me know if that helped..
    Cheers
    ~sultan

  • SQL Server 2012 - Wat Is The Best Solution For Creating a Read Only Replicated/AlwaysOn Database

    Hi there I was wondering if someone may have a best recommendation for the following requirement I have with regards setting up a third database server for reporting?
    Current Setup
    SQL Server 2012 Enterprise setup at two sites (Site A & Site B).
    Configured to use AlwaysOn Availability groups for HA and DR.
    Installed on Windows 2012 Servers.
    This is all working and failover works fine and no issues. So…
    Requirement
    A third server needs to be added for the purpose of reporting, to be located on another site (Site C) possibly in another domain. This server needs to have a replicated read only copy of the live database from site A or Site B, whichever is in use. The Site
    C reporting database should be as up-to-date to the Site A or Site B database as possible – preferably within a few seconds anyway….
    Solution - What I believe are available to me
    I believe I can use AlwaysOn and create a ReadOnly replica for the Site C. If so do I assume Site C needs to have the Enterprise version of SQL server i.e. to match Site A & Site B?
    Using log shipping which if I am correct means the Site C does not need to be an Enterprise version.
    Any help on the best solution for this would be greatly appreciated.
    Thanks, Steve

    for always on - all nodes should be part of one windows cluster..if there site C is on different domain - I do not think it works.
    Logshipping works --as long as the sql on site C is is same or higher version(sql 2012 or above).  you can only do read only.
    IMHo, if you can make site C in the same domain then, Always is better solution else log shipping
    also, if your database has enterprise level features such as - partitonin, data compression -- you cannot restore the database on lower editions- so you need to have enterprise edition.
    Hope it Helps!!

  • What is the best solution to this problem?

    I have so many solutions in mind right now but i am looking for the best solution if possible. i have the following query
    SELECT one_query.date_required as Month_id,
               nvl(one_query.amount_used, 0) as overalluserhours_A,
                  nvl(second_query.amount_used_b, 0) as overalluserhours_B,
                  nvl((trunc(((second_query.amount_used_b/one_query.amount_used) * 100), 2)), 0) as p_change
    from
                 (select to_char(b1.needed_date,'YYYY-MM') as date_required,
                    SUM(b1.amount_used) as amount_used,
                      b1.type_id as type_id
                        from table_one b1
                         where b1.zone_type like 'NEWYORK%'
                         and b1.type_id = 'CARS'
                        and trunc(b1.needed_date) between to_date('2009-01-01', 'YYYY-MM-DD') and to_date('2009-12-31', 'YYYY-MM-DD')
                              group by to_char(b1.needed_date,'YYYY-MM'), b1.type_id) one_query,
                (select to_char(b2.needed_date, 'YYYY-MM') as date_required,
                                SUM(b2.amount_used) as amount_used_b,
                                       b2.type_id as type_id
                                    from table_one b2
                                       where b2.zone_type like
                                       'CHICAGO%'
                                  and b2.type_id = 'BIKES'
                                   and trunc(b2.needed_date) between to_date('2009-01-01', 'YYYY-MM-DD') and to_date('2009-12-31', 'YYYY-MM-DD')
                                 group by to_char(b2.needed_date, 'YYYY-MM'), b2.type_id)second_query
    where one_query.date_required = second_query.date_required(+);the above query is being used on table_one. The current problem I am having is based on the fact that table_one might sometimes contain data for only chicago and not for newyork. in this case, table_one would look like this
    identification_id         needed_date                   zone_type             type_id                  
    2                             3/22/2006 12:00:00          CHICAGO                BIKES
    3                              2/12/2006 12:00:00         CHICAGO                BIKEShowever though, in other case, it could be the other way around. in this case, table_one will look like this
    identification_id         needed_date                   zone_type             type_id                  
    4                            4/21/2007 12:00:00          NEWYORK                CARS
    5                             1/12/2007 12:00:00         NEWYORK                CARS
    and finally table_one could contain information for both cases. hence, we could have the following situation
    identification_id         needed_date                   zone_type             type_id                  
    6                            6/21/2008 12:00:00          NEWYORK             BIKES
    7                            8/12/2008 12:00:00         CHICAGO               CARSKindly note, my above query is currently being used inside a function. I know I can write so many if statement to handle but the main issue is regarding the fact, i am also using that query in another query which performs so many union all.

    I'm not sure how you're going to parameterize it, how those filters change from call to call, but an idea would be something like this:
    select date_required month_id,
           max(amt_used_chicago_bikes) overalluserhours_A,
           max(amt_used_newyork_cars) overalluserhours_B,
           (max(amt_used_chicago_bikes) / max(amt_used_newyork_cars)) * 100 p_change
      from (select zone_type,
                   to_char(b1.needed_date, 'YYYY-MM') as date_required,
                   b1.type_id as type_id,
                   SUM(case when zone_type like 'CHICAGO%' and type_id = 'BIKES'
                                 then b1.amount_used end) as amt_used_chicago_bikes,
                   SUM(case when zone_type like 'NEWYORK%' and type_id = 'CARS'
                                 then b1.amount_used end) as amt_used_newyork_cars
              from table_one b1
             where trunc(b1.needed_date) between
                   to_date('2009-01-01', 'YYYY-MM-DD') and
                   to_date('2009-12-31', 'YYYY-MM-DD')
             group by b1.zone_type,
                      to_char(b1.needed_date, 'YYYY-MM'),
                      b1.type_id)
    where amt_used_chicago_bikes is not null or amt_used_newyork_cars is not null
    group by date_required;Again, this is not the biggest concern regarding performance and certainly not the best way of doing it. Cracking those 250 lines of SQL and making it optimized would probably be the best way to approach the issue here.

  • [Sales/Shipment report] - What's the best solution?

    Hello everybody.
    I have to develop a report with some sales data, delivery service data and shipment costs data.
    I have the cubes: 0SD_C03, 0SD_C04, 0LES_C02.. and I thought to do a multicube, but I don't no how to link these cubes...
    I don't have, for example, Sales Document/Item and/or Delivery Document/Item in all os these cubes...
    What is the best solution to this sittuation?
    I thought in some solutions like...
    1 - Extend extractor of 0LES_C02 to include Sales Doc/Item, but I don't know if all delivery doc is related to a sales doc.
    2 - I know I have all the fields that I want in the tables VBAP and LIPS...so I thought in create an generic extractor with a view of these two tables, and than creat a Z cube, to receive these datas...
    I really don't know whats the best solution, or if there is abother solution to this....
    I'll apreciate ideas, or a solution from someone that already face with this and developed a solution.
    Best Regards,
    Thiago

    Hi,
    Its better for you to add sales order,item in the cubes also from the source where your cube gets data ie from DSO as they are only point through which you can combine sales,delivery and billing data.
    Thanks,
    Arun

  • I have a lot of movies on my computer and need to free up memory.  What is the best solution, if I think I may need these movies in the future?

    I'm an elementary music teacher and my students perform regularly so I have a lot of their performances on my computer.  Now I need to free up memory so am wondering what the best solution would be, given that I may need access to these movies again in the future.
    I do have an external hard drive, but have never been able to figure out if you can store movies on it, instead of on the computer hard drive.
    Thanks so much!

    Good evening,
    I see you have another post about deleting movies and iDVD projects.  Wanting the video to be available in the future is a significant criteria because video files are very large and are very compressed to fit on a DVD.   If you want the video to be available in the future for additional editing (eg, highlights of the year), ideally you'd want to save the video in a format which will easily allow this.   To me, this suggests you delete the iDVD projects but keep the iMovie files for future editing.  This accomplishes the easy editing objective but keeps a lot of large files on your hard drive (each iMovie/iDVD project will be about 20% smaller -- assuming a 4 to 1 compression).
    If you are willing to accept some additional work in the future and are okay with some reduction in video quality, you can pull sections from an existing DVD and use iMovie to combine them.  The extra work is required to decompress the DVD, and this is also the reason for loss of some sharpness.  This strategy reduces the file size of your combined projects by about 80% if you save disc images (virtual DVDs), or if you save the physical  DVDs, you save 100% of the space.
    I'd decide about the tradeoffs before jumping into action.
    John

  • IE8 and prior not showing Edge Websites. Whats the best solution?

    Hi All...
    Whats the best solution to have Edge websites appear on IE8 and Prior internet Explorer versions.?
    Is it too weird to Design the whole website in Adobe Edge? should I just use this sofware to create partial animations for webpages?
    I see lots of arguments around SEO too. Very confused if I should trust Edge to replace the HTML5-JavaScript-CSS3 handcoded websites.

    Hi, Departure-
    There are a couple of options for displaying to users of IE8 and below: you can display the down-level stage (which, by definition, displays to browsers that do not support Animate content), or you can turn on the Google Chrome Frame, which is available in the Web section in the Publish Settings dialog.
    Hope this helps.
    -Elaine

  • Which is the best free Java Obfuscator?

    Hello,
    I am planning to deploy my application using Java Webstart and to protect my code from reverse engineering wondered - which is the best free Java Obfuscator?
    thanks,
    Anil

    Herko,
    Thanks for your insight. With your explanation, I have more respect for your approach. I am a (struggling) one-man startup trying to get this thing off the ground. Yes, my idea can be learned by seeing it in action. That is why, advisors have told me to yank the demo from the web site (http://juwo.com)
    I would hate to see someone else steal what I have done with a lot of trouble and even worse, use my own source code to do so. In short, I dont want to be a fool.
    thanks,
    Anil
    I know the Proguard product, as well as several other
    obfuscation tools. I know obfuscated stacktraces can
    be reversed (as long as you go through the extra
    trouble of maintaining the obfuscation mappings for
    each version of the software you release). That was
    not my point.
    I work for (and am part owner of) a small software
    development company. We have invested 9 years into
    writing enterprise-quality software that is provided
    to customers all over the world. We used to think we
    needed to obfuscate our software too. However, we
    have found that the source code is by far the
    least important aspect of what we do as far as
    most of the outside world is concerned. Which
    is why we have been developing a major part of our
    software as Open Source since 1999. Which is why we
    have switched completely to an Open Source strategy
    earlier this year. That's right: all of our code is
    (or soon will be) freely available to anyone,
    anywhere.
    We have learned over the years that the most
    important aspect of our work is not the code, but the
    idea behind it. Obviously, this idea can not be
    obfuscated without defeating the entire purpose of
    the software. This means others are able to learn
    about the idea just by seeing the software in action.
    That alone enables them to implement that same idea.
    The fact that they might use our source code to do it
    is largely irrelevant.
    Going one step further, the most important aspect of
    our work is actually the way we - the people who
    made the software - use that idea solve the real
    problems of our customers. It is that knowledge our
    customers ultimately pay for, not the code.
    With very, very few exceptions the basic idea of your
    code will not be unique on a global market like the
    Internet: sooner or later (and from our experience,
    it's always sooner) someone will have the same idea.
    Their implementation of that idea might be better
    than yours, or it might be worse. What ultimately
    matters, though, is wether or not you are able to
    convince customers that the idea itself is sound.
    Customers buy solutions, not code.

  • Socket Or RMI for the best solution

    Do me a favor guys...help me to figure this out, which the best solution of this, i create some networks, what i plan is like this..
    if client send their request to appServer which using web browser, the request will arrive to the appServer,right? and then i create some network application to forward the request to another computer to be process, and response the client... the problem are :
    1. which is more efficient, faster,reliabe and secure ,create socket and i put the socket on My RMI or only using socket?
    2. if i combine both RMI and Socket, is that good or not? why?
    Thank u so much for answer....

    Is that much more easier to implement using RMI? why? if i only use Socket,how about the connection,is that slower than RMI or not? and how about the security problem?
    will have problem with RMI if u client behind Firewall or proxy.is that true? how to handle this? how can this could be happen?

  • The BEST solution for gmail on the iPhone

    OK, so after much poking around, I finally figured out the best solution for using gmail on the iPhone: IMAP support.
    While I think Google is still rolling this out to all users, once you get it, USE IT! It basically keeps your mail app synced with gmail, and even supports the use of folders/labels.
    To see if your gmail account is ready for IMAP, go to the settings option in gmail and see if one of the tabs says "Forwarding and POP/IMAP." If you don't have IMAP available on your account yet, it won't say IMAP.
    Here's some links to get you started:
    setting up IMAP for gmail on your iPhone:
    https://mail.google.com/support/bin/answer.py?answer=77702
    how actions in your mail app sync to gmail:
    https://mail.google.com/support/bin/answer.py?answer=77657
    I hope this helps out everyone as much as it's helped me. I was a little frustrated before using POP, but gotta love IMAP! I'm not too sure the impact that this has on your battery life, but so far it's working well for me. Enjoy!

    Gmail and IMAP have totally change my tune about the iPhone's email abilities. I was getting frustrated with the inability to reliably get mail (Message has not been downloaded...), sync (have to delete mail from both iPhone and desktop Mac), etc., but now I have all my POP email accounts automatically forward to my Gmail account, and I only check Gmail with the iPhone and MacPro. So far, it's a whole new iPhone experience! No more errors - ALL mail comes through perfectly - and no need to manually sync!
    Note that, when setting up the Gmail/IMAP accounts, do NOT simply update your old POP Gmail settings on your Mac or iPhone! Start with a FRESH new account. I couldn't get either the iPhone or Mac to work until I started with a fresh account.
    Also, I was unable to send mail from the iPhone using the smtp.gmail address, so I had changed the outgoing mail setting to use my regular ISP's smtp address. But, at some point (a few minutes later or a few hours, I don't know) when I checked the Gmail settings on the iPhone, it had magically changed itself to smtp.gmail, with the port number, and it has been working perfectly ever since! Maybe IMAP can atomatically correct this info? Not sure.
    One more thing. Once you have Gmail IMAP working, then you MUST go here:
    http://5thirtyone.com/archives/862
    Follow these directions exactly. This is a necessary set of steps in order to make your iPhone and Mac sync correctly, so that trashed mail on the iPhone will go in the trash on your desktop Mac, etc. It's pretty freaky to check email on the iPhone, and then go to your Mac Mail a few minutes later, and see all the newly trashed (or saved/read) emails perfectly synched up!
    A final note. Once this is all working and synching, remember that if you delete an email on your iPhone, it gets deleted on the desktop Mac Mail as well (and vice-versa)... which is exactly what you want to happen, but I find that I have to remember to keep the mail that I want to save on the iPhone's inbox until I get back to my desktop Mac. Otherwise, I have to manually remove it from the trash to save it!

  • What is the best solution for running windows based programs

    I have one program that I need windows for.  What is the best solution for doing this without painfully slowing down my mac.

    Depends on your needs.
    BootCamp requires reboot and uses all physical resources of the system.  Only OSX *or* Windows can run.  Better for gaming or memory intensive tasks.  BootCampAssistant must set up the boot sector to make it work.  Also BCA required to remove it.
    VM (virtual machine) like Parallels which "hosts" Windows while still running OSX.  You split RAM between the two environments.  VM is just another program so no special boot sector changes needed, but not good for graphics or RAM intensive programs.
    Other recommended alternates to Parallels (paid) are VM Fusion (paid) and VirtualBox (free download from Oracle.com).

  • I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    I have iphone 5, after upgrading it to iOS7, front is working find unfortunately rear camera became blurred, what is the best way to fix this? Looking forward to the best solution of this problem.

    WORKAROUND FOUND ! Download and install "Awesome Camera" app and take a picture with that app. After 1-2 seconds of standby, it will work. Then you can go back to default Camera app which would work again.Please let me know

  • Sometimes my computer takes too long to connect to new website. I am running a pretty powerful work program at same time, what is the best solution? Upgrading speed from cable network, is it a hard drive issue? do I need to "clean out" the computer?

    Many times my computer takes too long to connect to new website. I have wireless internet (time capsule) and I am running a pretty powerful real time financial work program at same time, what is the best solution? Upgrading speed from cable network? is it a hard drive issue? do I only need to "clean out" the computer? Or all of the above...not to computer saavy.  It is a Macbook Pro  osx 10.6.8 (late 2010).

    Almost certainly none of the above!  Try each of the following in this order:
    Select 'Reset Safari' from the Safari menu.
    Close down Safari;  move <home>/Library/Caches/com.apple.Safari/Cache.db to the trash; restart Safari.
    Change the DNS servers in your network settings to use the OpenDNS servers: 208.67.222.222 and 208.67.220.220
    Turn off DNS pre-fetching by entering the following command in Terminal and restarting Safari:
              defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false

  • I have a external Hard drive of 1TB. I want to transfer HD movies to it from my MAC but it can only take 4 gb at a time, now i have to format it which is the best format in this situation NTFS or exFAT, as i use windows part ion as well??

    I have a external Hard drive of 1TB. I want to transfer HD movies to it from my MAC but it can only take 4 gb at a time, now i have to format it which is the best format in this situation NTFS or exFAT, as i use windows part ion as well?? plzz help
    Merry Christmas

    Repartition and format the drive for a Mac:
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

Maybe you are looking for

  • Unable To Install iTunes on Windows 7

    I had iTunes on this computer right up until an hour ago when I was told there was an update available for it. I tried to update it, the update failed. In the process it corrupted the iTunes program that was already there and working just fine. So I

  • How Can I Fix Address Book in Mail?

    After downloading 10.9 Address Book in Mail no longer works for groups.  I can enter individual names from Address book to email, but not names in groups.  How can I fix it?  Thanks.

  • PSE 6 How do I reconnet deleted pics

    I made a HUGE mistake and deleted all the pictures from the "My Pictures" folder on my hard drive. I did not know that they were connect to PSE program. After having someone come over and retrieve all my photos, the ones I were really wanting were no

  • Itunes does not recognize iphone4

    I reinstall the system,and use itunes 10.6.1.7.But itunes does not recognize iphone4.

  • WD Free-Fall Sensor in MBP

    I'm considering putting the 320GB WD Scorpio Black 2.5", SATA II, 7200 rpm, 16 MB cache WD3200BJKT into a friend's current model MBP 15,4". A while ago I read somewhere that the drive's built-in free-fall sensor conflicts with the one in the MBP itse