Hi,
Suppose I have an application on the network that always sending data to
others. How can I know the speed of the sending?
Thanks a lot!
Best,
Tony
|
|
0
|
|
|
|
Reply
|
zyzhang (10)
|
4/10/2008 8:50:08 AM |
|
Tony, Zhang wrote:
> Hi,
>
> Suppose I have an application on the network that always sending data to
> others. How can I know the speed of the sending?
>
Measure it?
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
ian-news (9882)
|
4/10/2008 9:12:40 AM
|
|
Thanks. But how to measure?
Ian Collins wrote:
> Tony, Zhang wrote:
>> Hi,
>>
>> Suppose I have an application on the network that always sending data to
>> others. How can I know the speed of the sending?
>>
> Measure it?
>
|
|
0
|
|
|
|
Reply
|
zyzhang (10)
|
4/10/2008 1:14:19 PM
|
|
Tony, Zhang wrote:
[please don't top-post]
> Ian Collins wrote:
>> Tony, Zhang wrote:
>>> Hi,
>>>
>>> Suppose I have an application on the network that always sending data to
>>> others. How can I know the speed of the sending?
>>>
>> Measure it?
>>
> Thanks. But how to measure?
>
Well you know how much data you have sent, just keep track of the start
time and work from there.
--
Ian Collins.
|
|
0
|
|
|
|
Reply
|
ian-news (9882)
|
4/10/2008 7:47:46 PM
|
|
"Tony, Zhang" <zyzhang@cuhk.edu.hk> writes:
> Thanks. But how to measure?
It can be difficult, and it's often application-dependent.
One way to do it is to get the current time (using a high-resolution
timer) before sending the data, and then get the time again after some
significant event, and then subtract the two. That significant event
might be after some known amount of data has been sent, or when the
peer responds, or perhaps using the well-known shutdown(fd, 1);
read(fd, buffer, 1); close(fd) trick to detect and wait for peer
socket close.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
|
|
0
|
|
|
|
Reply
|
james.d.carlson (85)
|
4/10/2008 9:33:36 PM
|
|
James Carlson <james.d.carlson@sun.com> writes:
> "Tony, Zhang" <zyzhang@cuhk.edu.hk> writes:
>> Thanks. But how to measure?
>
> It can be difficult, and it's often application-dependent.
>
> One way to do it is to get the current time (using a high-resolution
> timer) before sending the data, and then get the time again after some
> significant event, and then subtract the two. That significant event
> might be after some known amount of data has been sent, or when the
> peer responds, or perhaps using the well-known shutdown(fd, 1);
> read(fd, buffer, 1); close(fd) trick to detect and wait for peer
> socket close.
Another (and IMO easier) way I have used for various application would
be to maintain a sum of all octets which have been transmitted and use
a periodic timer to calculate the (average) transmission speed during
the last timer interval, resetting the sum to zero afterwards. If the
intent is to do some 'statisical postprocessing' of the data, it may
make more sense to print the raw octet count per interval and
postprocess the resulting output file.
|
|
0
|
|
|
|
Reply
|
rweikusat (2680)
|
4/11/2008 9:16:22 AM
|
|
Tony, Zhang wrote:
> Suppose I have an application on the network that always sending data to
> others. How can I know the speed of the sending?
First step: define "speed". Are you talking about latency (elapsed time
to send one message), or are you talking about bandwidth (how many bits
per second)? And once you know that, are you talking about the maximum,
the average, the minimum that can be expected given some failure rate,
or some other quantity?
- Logan
|
|
0
|
|
|
|
Reply
|
lshaw-usenet (926)
|
4/12/2008 8:15:11 PM
|
|
|
6 Replies
40 Views
(page loaded in 0.092 seconds)
Similiar Articles: How to get envelope from AM signal without phase shift - comp.dsp ...Hi Glen, I am simply trying to measure the group speed of a dispersive system by transmitting an AM signal (50MHz modulation, 500MHz carrier) and comparing the ... Slow network performance on HP-UX 10.20 - comp.sys.hp.hpux ...IIRC the HSC 100BT NICs and their drivers back then tried to set the NIC FIFO transmit ... neck is the hard disk and the CPU's (which are running at a pathetically slow speed ... Reversing bit order in delphi ? - comp.lang.asm.x86Of course a great deal depends on whether you want to optimzed for speed speed ... When transmitting bits and bytes intels reads from right to left. So intel starts ... Calculation of Bit Error Rate - comp.soft-sys.matlabThe apparatus is setup such that I can transmit and receive data on my computer using two different serial ports via this link. My transmission speed is 921600 baud. WordStar or CP/M patches for VT100 terminal - comp.os.cpm ...... as I remember, sending an XOFF to the terminal means > that it will stop transmitting ... Scroll down - .8 lines per second (whole page refresh) There is minor speed ... setup VLAN trunking between 2924 switch and 2611 router - comp ...... is experiencing errors >> >>sh controller ethernet f0/22 command gives: >> >>Transmit ... Excessive collisions > >>0 Late collisions > >>I've checked duplex and speed config ... FIFO Depth Calculation - comp.arch.fpgaWhen the "transmit clock" is faster this is indeed feasible, but what does one do ... > > > Thanks > > Vips You could have the read side running at 87% of light speed. NIOS-II+LAN91C111 - comp.arch.fpga... also It can work properly if I do'nt use dma to send and receive data,but the speed ... s91_dma_tx_done, (void *)smsc)) < 0) { printf ("Failed to post transmit ... ntpd, boot time, and hot plugging - comp.protocols.time.ntp ...There's been some discussion on the Fedora-devel list about ways to speed up ... 10.1.1.6 10.1.1.17 de.pool.ntp.org fr.pool.ntp.org [snip] transmit(10.1.1.6) transmit ... problem with synchronizing two comps to each other - comp ...The uncertainty in transmitting time via NTP from one machine to another is one half ... same potential hardware issues, and they could still have similar clock speed ... Transmission (mechanics) - Wikipedia, the free encyclopediaEVTs are capable of continuously modulating output/input speed ratios like ... Hydrostatic transmissions transmit all power hydraulically, using the components of ... Data transmission - Wikipedia, the free encyclopediaDigital communications is quickly edging out analog communication because of the vast demand to transmit computer data and the ability of digital communications to do so. 7/14/2012 10:47:15 AM
|