Effect of Coding Rate

The Cognitive Radio network modeled in the example configuration file has the following settings:

  • A network with 1 base station, 1 router, 1 Wired node and 2 CR CPEs, and a unicast application running on one of the CR CPEs.

NetSim uses the following defaults for this example:

  • The unicast application transmits data at a constant bit-rate from CR_CPE_2 to Wired_Node_5.
  • Simulation runs for 30 seconds.

To simulate the example Effect of Coding Rate for Cognitive Radio, in NetSim:

Open NetSim and Select Examples > Cognitive Radio Networks > Effect of Coding Rate then click on the tile in the middle panel to load the example as shown in below screenshot

Figure4-13

The following network diagram illustrates what the NetSim UI displays when you open the example configuration file see Figure 4-14.

Figure4-14

  1. See that by default, NetSim has set a grid length of 500m X 500m.
  2. See that by default, NetSim has set the Coding Rate to 1/2. To do so:
    a. Right-click Base_Station_1 and click Properties. The Cr_Bs pop-up window appears.
    b. Click INTERFACE_1 (COGNITIVE_RADIO) in the left area.
    c. Click PHYSICAL_LAYER in the right area see Figure 4-15.
    d. Coding_Rate drop-down list is set to 1/2.
    e. Click OK. The following figure illustrates the CR_Bs pop-up window and the default settings
    Figure4-15
  3. See that by default, NetSim has not enabled Path Loss for the wireless links between the Base Station and the CR_CPEs. To do so:
    a. Right-click the wireless link between Base_Station_1 and CR_CPE_2 and click
    Properties. The Link Properties pop-up window appears.
    b. Channel_Characteristics drop-down list is set to NO_PATHLOSS.
    c. Click OK.
  4. Right click on the Application icon present in the top ribbon/toolbar.and select Properties.
    a. A CBR Application is generated from CR-CPE-2 i.e., Source to Wireless Node 5 i.e. Destination with Packet Size remaining 1460Bytes and Inter Arrival Time remaining 10000µs. Transport Protocol is set to UDP instead of TCP.
  5. In NetSim GUI Plots are Enabled.
  6. Simulate the Effect of Coding Rate for Cognitive Radio example. To do so:
    a. Click the Run icon located on the toolbar.
        The Run Simulation pop-up window appears.
    b. Retain the default settings in the Simulation Configuration tab (Simulation Time = 30).
    c. Click OK. After NetSim simulates the Effect of Coding Rate for Cognitive Radio example, NetSim displays the Simulation Results window.
  7. Interpret the results. To do so, see the value in the Throughput (Mbps) column, in the Application_Metrics_Table window see Figure 4-16. You will see a value of 0.8218 Mbps. The following figure illustrates step (6)

    Figure4-16

  8. Simulate the Effect of Coding Rate for Cognitive Radio example with the following values: 2/3, 3/4, and 5/6. You should see the following values of throughput for the different Coding Rates.

Sl No Coding Rate Throughput (Mbps)
1 1/2 0.8218
2 2/3  0.9574
3 3/4 0.9576
4 5/6 1.1198

You will see that the throughput for #3 is more than that for #2 because, the number of data bits for #3 is more than that for #2, but the number of redundant bits is same. For #2, 2 data bits and 1 redundant bit, and for #3, 3 data bits and 1 redundant bit