+ Reply to Thread
Results 1 to 4 of 4
  1. Junior Member
    Join Date
    Nov 2009
    Posts
    3
    #1

    Default VoIP Packet Size

    Hi guys and girls, I'm prepping for a CCNP test and stuck on a wee bit of missing knowledge. Does anyone know the average size of a VoIP packet according to Cisco? I've read the internet and Cisco site for hours looking for the answer to this question and can't find anything definitive.

    In my research I found there are different codecs which dictate a specific packet load plus header and protocol load. My assumption is they would be looking for average UDP packet size.

    Thanks, Mike
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member
    Join Date
    May 2006
    Posts
    195
    #2
    Hi Mike,

    As you have probably observed in your studies, there is a determined method for calculating VoIP packet sizes. The packet size depends on many different variables, so there is no great answer for an "average" packet size -- average depends on the environment. Just as an example, if you currently have VoIP running within a LAN and want to provision a new WAN so you can use VoIP to another site, knowing how big your VoIP packets are on the LAN won't help. See below for a VoIP packet size calculation for a typical LAN, which will get you started.

    The general formula for VoIP packet size is this: Frame overhead + Encapsulation overhead + IP overhead + Voice payload.

    Let's say the packet is going across our LAN, so right now the frame overhead is 18 Bytes, for Ethernet II. (This size would change later if the packet crosses a trunk with 802.1Q tagging or ISL encapsulation, or is destined for the WAN, where a different link layer framing will probably be in use.)

    Encapsulation overhead would include things like IPSec tunnels for security. Suppose we are not encapsulating this voice packet, so there is no overhead here.

    Cisco refers to "IP overhead" as overhead occuring at layer 3 and above, so for SIP phones this means IP (20 Bytes), UDP (8 Bytes), and RTP (12 Bytes). This is a total of 40 Bytes of IP overhead.

    Lastly, you must calculate the size of the actual voice payload. Suppose we use the G.711 codec, which gives us a codec bandwidth of 64kbps. Also suppose our phones have a packetization period of 20ms (meaning 20ms worth of voice goes into every packet). With these two numbers, we can figure out the size of the voice payload. Since one second of voice contains 64 kilobits of data ("64 kbps"), it is easy to calculate how many bits of data are contained in .02 seconds of voice ("20ms" = .02 seconds). First convert 64 "kilobits" into "bits" (64 * 1000 = 64000), then you can find the amount of Bytes per payload:

    64000 bits * .02 seconds = 1280 bits of voice per payload
    1280 bits / 8 bits per byte = 160 Bytes of voice per payload

    The total overhead is 58 Bytes (18 + 40)
    The total VoIP packet size is 218 Bytes (160 + 58 )

    In the interest of full disclosure, it is easy to get a bit rate per second from here; just convert 218 Bytes into bits and multiply by the packetization rate (which is the inverse of your packetization period, in this case 50 packets per second). The bit rate for ONE stream of this voice is 87.2kbps... we hope the user isn't just talking to himself, so double that for an actual phone conversation.

    There are lots of other little things, like VAD and various header compressions, that you may need to factor into these calculations as well. As you can see, any one of these many things being off will give you a different answer, so knowing how to go about the entire process is important.
    Last edited by Met44; 11-30-2009 at 12:43 AM.
    Reply With Quote Quote  

  4. Senior Member georgemc's Avatar
    Join Date
    Jan 2006
    Location
    Guam, USA
    Posts
    430

    Certifications
    CCNA(640-801), MCP, Security+, MCSA, CCNP, CCNA:Security (640-553), Project+
    #3
    Well, I don't have a complete understanding of it yet, but this is what I found.

    http://www.cisco.com/warp/public/788...th_consume.pdf
    Reply With Quote Quote  

  5. Junior Member
    Join Date
    Nov 2009
    Posts
    3
    #4
    Thank you for the detailed explanation and link. It sounds like the average packet size in Cisco based VoIP is 218 bytes.


    Thanks again, Mike
    Last edited by MikePerry; 12-02-2009 at 11:36 PM.
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks