A cleared definition can be found in the linkload.hh file:

/** Get link load ratio.
 * @param dpid datapath id of switch
 * @param port port number
 * @param tx transmit load
 * @return ratio of link bandwidth used (-1 if invalid result)
 */
float get_link_load_ratio(datapathid dpid, uint16_t port, bool tx=true);

>From that I infer that the method returns the fraction of the link
capacity that is used.

2011/8/10 Min-Hyup KANG <kang-min-h...@hanmail.net>
>
> Hi all,
>
> I am trying to get  bandwidth using get_link_load_ratio method in linkload.cc
>
> 1.Return-value of get_link_load_ratio is ratio of particular port, right ?
>
> 2.and speed is total bandwidth of particular port(Mbps), right ?
>
> 3. ratio * speed = using bandwidth(Mbps) of particular port, right ?
>
> please explain get_link_load_ratio method more easily.
>
>
> Best Regards,
> Min-Hyup KANG
>
>
> _______________________________________________
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to