This Annex contains examples of computing b=AS for EVS Primary mode when ptime=20, and ptime=40. In these examples, it is assumed that no extra bandwidth is allocated for redundancy.
The bandwidth is calculated using the following procedure when no extra bandwidth is allocated for redundancy:
Calculate the size of the RTP payload, see below.
Calculate the size of the IP packets by taking the RTP payload size (in bytes) and adding the IP/UDP/RTP overhead: 20 bytes for IPv4; 40 bytes for IPv6; 8 bytes for UDP; 12 bytes for RTP.
Convert the IP packet size to bits.
Calculate the required bit-rate (bps) given the packet size and the packet rate: 50 packets per second for 1 frame per packet; 25 packets per second for 2 frames per packet.
The b=AS bandwidth is then calculated by converting the required bit-rate to kbps and rounding to the nearest higher integer value.
If the SDP includes multiple codecs and/or configurations, the bandwidth is calculated for each configuration and the b=AS bandwidth is set to the highest of the bandwidths.
When the b=AS bandwidth is computed, it is assumed that the codec is using the highest allowed bit-rate for each frame.
The RTP payload size for the 2 bytes header-full payload format and 1 frame/packet is calculated from the following components:
8 bits for the codec mode request (CMR)
8 bits for the table of content (ToC)
N bits for the speech frame (size depends on bit-rate)
No padding in the end of the RTP payload is needed since each item is already an integer number of octets
The RTP payload size for the 2 bytes header-full payload format and 2 frames/packet is calculated from the following components:
8 bits for the codec mode request (CMR)
16 bits for the table of content (ToC)
N bits for the speech frame (size depends on bit-rate)
No padding in the end of the RTP payload is needed since each item is already an integer number of octets
The Tables below give a detailed description of the bandwidth computation. The b=AS bandwidth is not defined for SID.
For each codec mode, b=AS value of EVS AMR-WB IO mode is the same as the b=AS value of AMR-WB in octet-aligned mode. See clause K.4.