Skip navigation
Currently Being Moderated

Object Replication - Bandwidth management

May 3, 2012 2:09 PM

Hello,

 

I'm writing an application using object replication only because data is available on demand.

I use multiple groups and i want to manage bandwith priority among them. I face a difficulty for managing the download bandwidth (for upload i just use denyRequestedObject).

 

At runtime, as i want to get data at the maximum possible speed, i call addWantObject for all the netgroups so i'm sure to download as fast as possible. But some netgroups data are more important and i want to favorise the download of pieces of these netgroups while still downloading from others if bandwidth is available.

 

At the beginning i was thinking of catching NetGroup.Replication.Fetch.SendNotify and if the bandwith used by the considered group already was sufficient i would prevent flash to send the demand for the object. But unfortunately it is not possible since the event isn't cancelable so i can't use preventDefault() on it ...

 

Do you have any idea on how to handle this problem ???

 

Thank you

 
Replies
  • Currently Being Moderated
    May 4, 2012 12:02 AM   in reply to Bl0tCh

    there is no provision to control transmission priority from the receiver.

     

    to limit upload bandwidth, rather than using denyRequestedObject(), i recommend delaying the writeObject() call for a time to achieve a desired average upload rate. by calling denyRequestedObject(), the wanting peer will immediately ask someone else. if there is nobody else to ask, it'll ask you again immediately. so you still might end up using a lot of bandwidth just for the request/deny messages even though no useful work is happening.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points