majing seal

Michael Marking


Start Here

Bionic Buffalo
Buffalo Bull

  Public Keys
  Social Media
  Web Site

What's New home > software > sugar



sugar is a program to manage connections to ISPs, on one side, and to clients, on the other. It is modular, and can be built in various forms.

The most basic configuration does bandwidth management and some filtering. It throttles the traffic to and from the ISP, to prevent exceeding the bandwidth cap imposed by some ISPs. Rather than causing a sudden halt to traffic when the ISP limit is approached, it applies varying rate limits so that available bandwidth is spread over time. In other words, it dynamically determines the maximum connection speed which can be used so as not to overshoot the limit. If traffic has been light, then the unused bandwidth is made available by increasing allowable connection speed. Optionally, the algorithm can be tuned by forcing higher allocations during periods when they are more critical. The system can learn from experience. If, for instance, historical demand is greatest in early evening and light in the early morning, then the system will allow greater usage during the times when it has typically been heavier, "knowing" that there will be less demand at other times.

The basic configuration can be enhanced by the addition of various "modules". These include:

  • load balancing: this module does load balancing among downstream clients. This prevents heavy users from unfairly affecting users with more modest demand. The load balancing algorithm can be tuned or adjusted manually, so that some users have higher priorities than others, or so that certain kinds of traffic are given precedence over other kinds of traffic.
  • user management: the basic identification of users is enhanced to include use tracking, quotas, limits, enhanced security, hooks for accounting and billing applications, hooks for e-mail and web server applications, and other features defined on a user-by-user basis. These features facilitate the resale of bandwidth, when sugar is used by tributary ISPs, internet cafés, neighbourhood wireless network providers, and other commercial operators. They also provide a way for each user to track his own usage, and to compare it against his quota or other limit.
  • local services: provide simple services for users, such as basic web pages, message drops, limited personal web pages for each customer, and mechanisms to feed external application content to customers. These functions allow (with possible additional software) sending bills or other messages to customers on-line, allowing customers to send messages to you, and providing simple information such as event calendars, directories, news, and other content to users.

We are designing another module to allow sugar to act as a basic web server to the outside world.


  • full sugar - complete, full-featured application
  • simple sugar - free, open source version for desktops and laptops
  • phone sugar - application for smartphones, to avoid exceeding your cellphone carrier's data transfer limit


More information...

Applications and Environments

More information...

Security Considerations

More information...


More information...

Copyright 2018 Michael Marking. All Rights Reserved. last modified Thursday, 26-Jul-2012 21:39:28 GMT
Accessed Friday, 19-Oct-2018 05:50:44 GMT from
Tatanka, Bionic Buffalo, sysjinn, and sysjinni are trademarks of Michael Marking.