cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
363
Views
6
Helpful
14
Replies

Jitter and delay in cisco packet tracer

alen2345
Community Member

I need to simulate some VoIP traffic, FTP traffic, and HTTP traffic at the same time in Cisco Packet Tracer, and I want to monitor the delay and jitter for these three types of communication. Is it possible to do this in Cisco Packet Tracer in any way?

14 Replies 14

M02@rt37
VIP
VIP

Hello @alen2345 

Unfortunately, metrics like jiter or delay will not be realistic or measurable via Cisco PT.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

@alen2345 I believe M02@rt37 is correct.  What are you hoping to "see", or why do you want such stats?

BTW, on real equipment, you often need a packet capture for obtaining such stats, especially at high timing resolution, which is usually needed for jitter analysis.

Of the three app traffic kinds, VoIP usually has defined service needs.  FTP and HTTP can often function over much (bandwidth) oversubscribed networks.

alen2345
Community Member

Is there any alternative way to measure delay and jitter in Cisco PT?
For example, is it possible to manually create some fixed delay and then measure it, or to calculate delay manually in Simulation Mode by comparing the packet arrival timestamps, even if the values are not fully realistic?

@alen2345 

Paket Tracer is not reliable for real delay/jitter measurements...

The simulation mode only shows logical event timing, not real network delay, so the timestamps it displays don't reflect queueing, serialization, congestion or jitter buffers.

“Time” values are educational markers rather than actual performance indicators... So you cannot get reliable delay/jitter numbers as you want ; you can only observe packet order and flow, not real latency metrics.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

alen2345
Community Member

I need to do a project in which I will analyze the quality of VoIP communication while HTTP and FTP traffic are running at the same time, both with QoS and without QoS.

Ah, laugh, I was considering whether to ask QoS if might be a consideration.

When it comes to QoS, I'm a legend in my own mind (another laugh), but, truly, it's a niche aspect of networking that I'm probably more familiar with then most.

I'm very much a huge proponent of QoS usage, even when most don't consider it.  I've also a good bit of real world experience using QoS, effectively (or so I believe).

So regarding doing a project of analysis of VoIP communication, concurrently, with HTTP and FTP, for the reasons already noted by M02@rt37 , don't believe anything useful might be accomplished using PT.

Even in the "real world", there are a lot of variables that go into how well QoS helps, or not, in a particular usage case, and its impact can vary much on a millisecond to millisecond basis.  QoS impact also much depends on how it is configured.

I.e. without knowing a whole lot about QoS and flow behavior, you can easily obtain actual stats which are, more-or-less, misrepresentative, and correspondingly, possibly pretty much useless for actual real world usage.

You could obtain results that show the same results with or without QoS, which could be due solely to behavior of concurrent flows, at the time of analysis, and/or due to a inadequate QoS configuration.

To put in another way, there's a really good chance that the results you obtain from such a project will misinform you to the value of using QoS and/or how it should be configured to obtain certain results.

That said, if you want a simple project, that can, at least, demonstrate the "power" of QoS, run concurrently with one flow of VoIP, FTP or HTTP, side-by-side with one flow of a UDP data stream that 110% of available end-to-end bandwidth.  With the often configuration of using single egress FIFO queue, any one of the VoIP, FTP or HTTP will, likely, become totally useless.  However, even with a simple configuration of using two egress FIFO queues, each egress flow directed to its own queue and equally sharing egress bandwidth, will, likely, work just fine, although the FTP overall transfer rate should be about half of what it might obtain running by itself.

If you want to go deeper than that, QoS requires a whole lot of knowledge. Such knowledge isn't very complex, but there's a lot to know.

Martin L
VIP
VIP

Use GNS3, CML, Eve-ng for those delay/jitter measurements

Use GNS3, CML, Eve-ng for those delay/jitter measurements

Even with emulation software that's running actual device binary code, actual timing will be different from real hardware and even relative timing will very likely be different.  Different enough that stat analysis can be misleading from this alone.

Have you ever studied PC benchmark stats?  Two different platforms, even with the same overall cumulative score may have very different individual benchmark test results.  I.e. testing one specific app's performance on such equally overall scored PCs may have noticable different performance for a specific app.  (Which is why various app tests are measured.)

So, how any one specific test case behaves, under an emulator, can be very different from actual hardware.

Actually, real processing time, for a performance test can vary much between different actual real network devices too. Although, usually not enough to impact real world service needs.

So, to summarize, an emulator should allow you to run whatever tests you want, but the actual results may not be truly representative.

BTW, so why am I "fussing" so?  For two reasons.

First, I don't know exactly what the goals of the project are, but mention of jitter possibly implies need for highly accurate results.

Second, as I mentioned in a prior reply there are lots of variables involved with QoS and lots of information is often needed.

Possible example, a real world case when I first started working with QoS.

A couple of decades ago I was trying to improve perceived network performance to WAN connected branches.  This was when a high speed WAN circuit was a full DS1 1.5Mbps (while users usually had 100Mbps).

So, I implemented a QoS policy, I thought would improve perceived performance. 

There appeared to be little improvement, QoS showed its policy active.

I was quite befuddled that there was so little improvement.  The QoS impact was barely noticable.  So much so, it might be argued QoS was worthless.

However, I stumbled across a Cisco tech note explaining possible poor performance of VoIP (which at that time we weren't doing) on an ATM (also at that time we weren't using) due to the interface's physical FIFO queue.  Basically, the QoS queues only applied to packets that overflowed the interface's physical queue.  It was suggested to configure the physical queue depth, smaller, using the tx-ring parameters.

I did that, and now my QoS had the positive impact I had sought!

This particular configuration option, often, isn't much mentioned in much Cisco QoS documentation.  But I found it could make a huge impact to the effectiveness of QoS.

So, without having a broad knowledge of QoS, it can be quite easy to obtain less than optimal results possibly leading to misappreciation of QoS effectiveness.

Laugh, the WAN lead engineer thought QoS was just worthless "voodoo" until the day he came in one morning, and as he described it, his phone was lit like a Xmas tree of branch sites asking what's wrong with the network?  He found one of the two HQ WAN routers had dropped its QoS config.  He reapplied it, and the phone calls stopped.  He later remarked to me, that QoS, apparently, wasn't voodoo.

agree, emulation software is not as good as real gear but it is next-best-thing; plus, cheaper and convenient for home labbing! 


@Martin L wrote:

agree, emulation software is not as good as real gear but it is next-best-thing; plus, cheaper and convenient for home labbing! 


Laugh, IMO, in some ways it's even better than real gear.  Lot less noisy for one thing.  ; )

Seriously, I don't want to imply there's anything "bad" about using emulation software, you just need to appreciate, something like performance stats can be wildly different.  Further, if you find, say, that a virtual platform runs, oh, 1,000x, on average, slower than the real platform, you'll often find the 1,000 value may not be applicable to every physical function.

Heck, I've seen performance of same features, on same physical platform dramatically change with an IOS update, like some feature moving from the slow/process path to the fast/interrupt path.  Ditto on some related but "different" platforms, like the 7200 series NPEs vs. their NS-1 or the 7304  (the latter having PXF).  I've seen original WFQ pretty much eat a router's CPU, if you tried to use it on more than an E1, yet WFQ/FQ within CBWFQ, doesn't eat the CPU the same way.

Again, I'm fussing on this because bad stats might lead to latter bad decision making of where QoS is beneficial and where it's not.  (As much as I recommend QoS, it's, most definitely, not a cure all for all performance issues.)

Use GNS3, CML, Eve-ng for those delay/jitter measurements

CML comes with traffic generator device (I think still does); similarly, long time ago I used 2600 IOS router with traffic generator inside of GNS3. Not sure what happen to IOS image that could generate packets

U can find online traffic generator device based on Linux and add it to Eve or GNS; I forgot its name ....

Regards, ML
**Have fun labbing!!!***
***Please Rate All Helpful Responses ***

 

Hello @Martin L 

NETem ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

trafgen(8) - Linux manual page

TRex is an open source, low cost, stateful and stateless traffic generator fuelled by DPDK. It generates L3-7 traffic and provides in one tool capabilities.

from google search

 

 


@Martin L wrote:

CML comes with traffic generator device (I think still does);


My copy has a couple.

Description notes lists Alpine with iperf, TRex as a traffic generator container, and there's also a Wan Emulator.


@Martin L wrote:

similarly, long time ago I used 2600 IOS router with traffic generator inside of GNS3. Not sure what happen to IOS image that could generate packets

Possibly TTCP?  I recall it was only found on some feature images, like the service provider feature set.

Again, not saying you cannot run traffic generators and get test results, but the stats might be misleading.

For example, I'm working with my copy of CML as the moment, and have 5 routers running, effectively doing much of nothing.  Pinging a local interface and the other side of a "gig" link's interface, I get:

!other side of gig link

inserthostname-here#ping 10.0.0.1 repeat 500
Type escape sequence to abort.
Sending 500, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
Success rate is 100 percent (500/500), round-trip min/avg/max = 1/1/14 ms

!same device interface

inserthostname-here#ping 10.0.0.2 repeat 500
Type escape sequence to abort.
Sending 500, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!
Success rate is 100 percent (500/500), round-trip min/avg/max = 1/1/2 ms
inserthostname-here#

A high (?) value of 2 ms, local (same device) interface, and 14 ms for another directly connected router!  On my PC, VM hosting CML is averaging about 10% CPU, or less, and overall CPU averaging a little less than 20%.  So, again, whatever stats you acquire, may not be representative of QoS behavior on real platforms.  Further, you also can run into issues with any synthetic testing.

As I noted in an earlier reply, OP hasn't clarified what exactly is hoped to be obtained, but there's possible inaccuracies whenever using synthetic traffic on real hardware, let alone, doing such testing on emulated hardware.