{"id":2496,"date":"2015-01-26T05:58:23","date_gmt":"2015-01-26T05:58:23","guid":{"rendered":"http:\/\/www.raymaps.com\/?p=2496"},"modified":"2015-01-26T06:55:01","modified_gmt":"2015-01-26T06:55:01","slug":"shannon-capacity-cdma-vs-ofdma","status":"publish","type":"post","link":"https:\/\/www.raymaps.com\/index.php\/shannon-capacity-cdma-vs-ofdma\/","title":{"rendered":"Shannon Capacity CDMA vs OFDMA"},"content":{"rendered":"<p style=\"text-align: justify;\">We have previously discussed Shannon Capacity of CDMA and OFMDA, here we will discuss it again in a bit more detail. Let us assume that we have 20 MHz bandwidth for both the systems which is divided amongst 20 users. For OFDMA we assume that each user gets 1 MHz bandwidth and there are no guard bands or pilot carriers. For CDMA we assume that each user utilizes full 20 MHz bandwidth. We can say that for OFDMA each user has a dedicated channel whereas for CDMA the channel is shared between 20 simultaneous users.<\/p>\n<p style=\"text-align: justify;\">We know that Shannon Capacity is given as<\/p>\n<p style=\"text-align: justify;\">C=B*log2(1+SNR)<\/p>\n<p style=\"text-align: justify;\">or in the case of CDMA<\/p>\n<p style=\"text-align: justify;\">C=B*log2(1+SINR)<\/p>\n<p style=\"text-align: justify;\">where &#8216;B&#8217; is the bandwidth and SINR is the signal to noise plus interference ratio. For OFDMA the SNR is given as<\/p>\n<p style=\"text-align: justify;\">SNR=Pu\/(B*No)<\/p>\n<p style=\"text-align: justify;\">where &#8216;Pu&#8217; is the signal power of a single user and &#8216;No&#8217; is the Noise Power Spectral Density. For CDMA the calculation of SINR is a bit more complicated as we have to take into account the Multiple Access Interference. If the total number of users is &#8216;u&#8217; the SINR is calculated as<\/p>\n<p style=\"text-align: justify;\">SINR=Pu\/(B*No+(u-1)*Pu)<\/p>\n<p style=\"text-align: justify;\">The code given below plots the capacity of CDMA and OFDMA as a function of Noise Power Spectral Density &#8216;No&#8217;.<\/p>\n<pre lang=\"Matlab\">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n% CAPACITY OF CDMA and OFDMA\r\n% u - Number of users\r\n% Pu - Power of a single user\r\n% No - Noise Power Spectral Density\r\n%\r\n% Copyright RAYmaps (www.raymaps.com)\r\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n\r\nclear all\r\nclose all\r\n\r\nu=20;\r\nPu=1;\r\nNo=1e-8:1e-8:1e-6;\r\n\r\nB=20e6;\r\nC_CDMA=u*B*log2(1+Pu.\/(B*No+(u-1)*Pu));\r\n\r\nB=1e6;\r\nC_OFDMA=u*B*log2(1+Pu.\/(B*No));\r\n\r\nplot(No,C_CDMA\/1e6);hold on\r\nplot(No,C_OFDMA\/1e6,'r');hold off\r\nxlabel('Noise Power Spectral Density (No)')\r\nylabel('Capacity (Mbps)')\r\nlegend('CDMA','OFDMA')\r\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n<\/pre>\n<figure id=\"attachment_2498\" aria-describedby=\"caption-attachment-2498\" style=\"width: 504px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.raymaps.com\/index.php\/shannon-capacity-cdma-vs-ofdma\/shannon-capacity-of-cdma-and-ofdma\/\" rel=\"attachment wp-att-2498\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2498\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2015\/01\/Shannon-Capacity-of-CDMA-and-OFDMA.jpg\" alt=\"Shannon Capacity of CDMA and OFDMA\" width=\"504\" height=\"405\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2015\/01\/Shannon-Capacity-of-CDMA-and-OFDMA.jpg 504w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2015\/01\/Shannon-Capacity-of-CDMA-and-OFDMA-300x241.jpg 300w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><figcaption id=\"caption-attachment-2498\" class=\"wp-caption-text\">Shannon Capacity of CDMA and OFDMA<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">We see that the capacity of OFDMA is much more sensitive to noise than CDMA. Within the low noise region the capacity of OFDMA is much better than CDMA but as the noise increases the capacity of the two schemes converges. In fact it was seen that as the noise PSD is further increased the two curves completely overlap each other. Therefore it can be concluded that OFDMA is the preferred technique when we are operating in the high SNR regime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have previously discussed Shannon Capacity of CDMA and OFMDA, here we will discuss it again in a bit more detail. Let us assume that we have 20 MHz bandwidth for both the systems which is divided amongst 20 users. For OFDMA we assume that each user gets 1 MHz bandwidth and there are no guard bands or pilot carriers. For CDMA we assume that each user utilizes full 20 MHz bandwidth. We can say that for OFDMA each user has a dedicated channel whereas for CDMA the channel is shared between 20 simultaneous users. We know that Shannon Capacity [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,81],"tags":[47,114,51,28,29],"class_list":["post-2496","post","type-post","status-publish","format-standard","hentry","category-capacity","category-fundamentals","tag-4g","tag-lte","tag-ofdm","tag-shannon-capacity","tag-snr"],"_links":{"self":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/comments?post=2496"}],"version-history":[{"count":6,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2496\/revisions"}],"predecessor-version":[{"id":2503,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2496\/revisions\/2503"}],"wp:attachment":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/media?parent=2496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/categories?post=2496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/tags?post=2496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}