how should I do to simulate the network with 300ms latency and 3mbps bandwidth

2 posts, 0 answers
  1. bean
    bean avatar
    1 posts
    Member since:
    Sep 2014

    Posted 04 Sep 2014 Link to this post

    Hi,

    When I enable "SimulateModem" , set oSession["request-trickle-delay"]="64", and oSession["response-trickle-delay"]="64", I could get the latency about 120ms, but the download speed will be no more than 15KB/s. 

    I want to simulate the network with 300ms latency and 3mbps bandwidth.  How should I do? 

    Thanks
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 04 Sep 2014 Link to this post

    The request-trickle-delay/response-trickle-delay values control the delay between every KB of the transmission; using it gates the effective bandwidth.

    To insert a fixed latency before beginning a send or receive, insert a System.Threading.Thread.Sleep call inside OnBeforeRequest or OnBeforeResponse of the desired latency in milliseconds.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top