Hi Juan-Carlos,
Thank you so much for your reply.
I downloaded the source code and place them into inet.src.util. I
didn't use package.ned, but I change the first line of
MyThroughputMeteringChannel.ned to
"package inet.util;
import ned.DatarateChannel;"
Then I run example from /omnetpp/INET/examples/ethernet/lans, just add
"import inet.util.MyThroughputMeteringChannel;" into Network.ned, also
modify last 4 lines as
"switch.ethg[0] <--> MyThroughputMeteringChannel { delay =
100us;format = "b B"; } <--> hostA.ethg;
switch.ethg[1] <--> MyThroughputMeteringChannel { delay =
100us;format = "b B"; } <--> hostB.ethg;
switch.ethg[2] <--> MyThroughputMeteringChannel { delay =
100us;format = "b B"; } <--> hostC.ethg;
switch.ethg[3] <--> MyThroughputMeteringChannel { delay =
100us;format = "b B"; } <--> hostD.ethg; "
It should be able to monitor the link between any channels, i.e host-
host, switch-host, router-host etc.? However I couldn't see the
channel output by this way? Am I doing it wrong?
Thanks again for your help!
On Aug 11, 10:57 pm,
Juan-Carlos.Maureira_Br...@sophia.inria.fr wrote:
>
http://github.com/jmaureir/Channels
>
> Example:
>
> import channels.MyThroughputMeteringChannel;
> ...
>
> external_host.ethg++ <--> MyThroughputMeteringChannel { delay = 100us;
> format = "b B"; } <--> router.ethg++;
>
> voila!
>
>
>
> tina wrote:
> > Hello,
>
> > Is there anyone know how to getThruputMeteringChannelwork?
>
> > TheThruputMeteringChannelis placed within INET/src/util. However
> > this function is disabled. It says values get displayed on the link,
> > using the connection's "t=" display string tag. But even enable the
> > function and use this as the channelClass within ChannelInstaller.
>
> > No labels show up and the channel is not working at all.
>
> > Thanks for the help!- Hide quoted text -
>
> - Show quoted text -