srsran / srsRAN_Project

Open source O-RAN 5G CU/DU solution from Software Radio Systems (SRS) https://docs.srsran.com/projects/project
https://www.srsran.com
GNU Affero General Public License v3.0
514 stars 173 forks source link

PRACH Short Sequence Gives Error: Assertion `symbol < nof_symbols' failed - Invalid symbol index. #430

Closed IbrahimBabiker87 closed 7 months ago

IbrahimBabiker87 commented 9 months ago

Issue Description

when using PRACH short codes below Error appeared after start up

==== gNodeB started === │ Type to view trace │ 2024-01-26T12:50:45.049381 [GNB ] [I] Starting Radio Unit... │ 2024-01-26T12:50:45.049386 [GNB ] [I] Radio Unit started successfully │ /home/accelleran/srsRAN_Project/lib/ofh/receiver/../support/prach_context_repository.h:121: void srsran::ofh::prach_context::write_iq(unsigned int, unsigned int, unsigned int, srsran::span<const std::complex >):
Assertion `symbol < nof_symbols' failed - Invalid symbol index.
Aborted
accelleran@acc-bm-du1:~/srsRAN_Project/configs$

Setup Details

last compiled version of Srsran 23.10.1 Benetel 1.0.4

Srsran Config:

is_prach_cp_enabled: 1               
compr_method_ul: bfp                  
compr_bitwidth_ul: 9                  
compr_method_dl: bfp                  
compr_bitwidth_dl: 9                  
compr_method_prach: bfp
compr_bitwidth_prach: 9             

Benetel Config: short Sequence for Prach. short Sequence Compression: both are trialed. static_compressed O-RU expects O-DU will send the C,U Plane packets without udCompHdr and BFP9 compressed dynamic_compressed O-RU expects O-DU will send the C,U Plane packets with udCompHdr and BFP9 compressed

Actual Behaviour

Srsran Exited with below Error:

/home/accelleran/srsRAN_Project/lib/ofh/receiver/../support/prach_context_repository.h:121: void srsran::ofh::prach_context::write_iq(unsigned int, unsigned int, unsigned int, srsran::span<const std::complex<float> >):                                                                                        
Assertion `symbol < nof_symbols' failed - Invalid symbol index.                                       
Aborted                                                         

Steps to reproduce the problem

setting Srsran and Benetel with above settings.

Additional Information

Log:


2024-01-26T12:50:44.793823 [ALL     ] [I] Task worker "phy_prach#0" started...
2024-01-26T12:50:44.793914 [ALL     ] [I] Task worker "ru_timing" started...
2024-01-26T12:50:44.793990 [ALL     ] [I] Task worker "ru_tx_0" started...
2024-01-26T12:50:44.793996 [ALL     ] [I] Task worker "ru_rx_0" started...
2024-01-26T12:50:44.794283 [NGAP    ] [I] Sending NgSetupRequest
2024-01-26T12:50:44.894414 [UDP-GW  ] [I] UDP GW configured. rx_max_mmsg=256
2024-01-26T12:50:44.894795 [GTPU    ] [I] GTP-U demux. warn_on_drop=false
2024-01-26T12:50:44.894798 [GTPU    ] [I] Tunnel added. teid=0x000000
2024-01-26T12:50:44.894818 [CU-UP   ] [I] CU-UP starting...
2024-01-26T12:50:44.894838 [CU-CP   ] [I] Added CU-UP 0
2024-01-26T12:50:44.894851 [CU-UP-E1] [I] Sending E1SetupRequest
2024-01-26T12:50:44.894861 [CU-UP-E1] [I] "E1AP CU-UP Setup Procedure" finalized
2024-01-26T12:50:44.894866 [CU-UP   ] [I] CU-UP started successfully
2024-01-26T12:50:45.045212 [DU      ] [I] DU created successfully
2024-01-26T12:50:45.045218 [DU      ] [I] Starting DU...
2024-01-26T12:50:45.045219 [DU      ] [I] Starting DU-High...
2024-01-26T12:50:45.045220 [DU-MNG  ] [I] DU manager starting...
2024-01-26T12:50:45.045332 [CU-CP   ] [I] Added DU 0
2024-01-26T12:50:45.045416 [DU-MNG  ] [I] SIB1 cell=0: {
  "cellSelectionInfo": {
    "q-RxLevMin": -70,
    "q-QualMin": -20
  },
  "cellAccessRelatedInfo": {
    "plmn-IdentityInfoList": [
      {
        "plmn-IdentityList": [
          {
            "mcc": [
              0,
              0,
              1
            ],
            "mnc": [
              0,
              1
            ]
          }
        ],
        "trackingAreaCode": "000000000000000000000001",
        "cellIdentity": "000000000000000000000000000000010000",
        "cellReservedForOperatorUse": "notReserved"
      }
    ]
  },
  "connEstFailureControl": {
    "connEstFailCount": "n1",
    "connEstFailOffsetValidity": "s30",
    "connEstFailOffset": 1
  },
  "servingCellConfigCommon": {
    "downlinkConfigCommon": {
      "frequencyInfoDL": {
        "frequencyBandList": [
          {
            "freqBandIndicatorNR": 78
          }
        ],
        "offsetToPointA": 28,
        "scs-SpecificCarrierList": [
          {
            "offsetToCarrier": 0,
            "subcarrierSpacing": "kHz30",
            "carrierBandwidth": 273,
            "txDirectCurrentLocation": 1638
          }
        ]
      },
      "initialDownlinkBWP": {
        "genericParameters": {
          "locationAndBandwidth": 1099,
          "subcarrierSpacing": "kHz30"
        },
        "pdcch-ConfigCommon": {
          {
            "commonSearchSpaceList": [
              {
                "searchSpaceId": 1,
                "controlResourceSetId": 0,
                "monitoringSlotPeriodicityAndOffset": {
                },
                "monitoringSymbolsWithinSlot": "10000000000000",
                "nrofCandidates": {
                  "aggregationLevel1": "n0",
                  "aggregationLevel2": "n0",
                  "aggregationLevel4": "n1",
                  "aggregationLevel8": "n0",
                  "aggregationLevel16": "n0"
                },
                "searchSpaceType": {
                  "common": {
                    "dci-Format0-0-AndFormat1-0": {
                    }
                  }
                }
              }
            ],
            "searchSpaceSIB1": 0,
            "pagingSearchSpace": 1,
            "ra-SearchSpace": 1
          }
        },
        "pdsch-ConfigCommon": {
          {
            "pdsch-TimeDomainAllocationList": [
              {
                "mappingType": "typeA",
                "startSymbolAndLength": 40
              },
              {
                "mappingType": "typeA",
                "startSymbolAndLength": 57
              }
            ]
          }
        }
      },
      "bcch-Config": {
        "modificationPeriodCoeff": "n4"
      },
      "pcch-Config": {
        "defaultPagingCycle": "rf128",
        "nAndPagingFrameOffset": {
        },
        "ns": "one"
      }
    },
    "uplinkConfigCommon": {
      "frequencyInfoUL": {
        "frequencyBandList": [
          {
            "freqBandIndicatorNR": 78
          }
        ],
        "absoluteFrequencyPointA": 644724,
        "scs-SpecificCarrierList": [
          {
            "offsetToCarrier": 0,
            "subcarrierSpacing": "kHz30",
            "carrierBandwidth": 273
          }
        ],
        "p-Max": 23
      },
      "initialUplinkBWP": {
        "genericParameters": {
          "locationAndBandwidth": 1099,
          "subcarrierSpacing": "kHz30"
        },
        "rach-ConfigCommon": {
          {
            "rach-ConfigGeneric": {
              "prach-ConfigurationIndex": 151,
              "msg1-FDM": "one",
              "msg1-FrequencyStart": 0,
              "zeroCorrelationZoneConfig": 0,
              "preambleReceivedTargetPower": -100,
              "preambleTransMax": "n100",
              "powerRampingStep": "dB4",
              "ra-ResponseWindow": "sl20"
            },
            "ssb-perRACH-OccasionAndCB-PreamblesPerSSB": {
              "one": "n4"
            },
            "ra-ContentionResolutionTimer": "sf64",
            "prach-RootSequenceIndex": {
              "l139": 1
            },
            "msg1-SubcarrierSpacing": "kHz30",
            "restrictedSetConfig": "unrestrictedSet"
          }
        },
        "pusch-ConfigCommon": {
          {
            "pusch-TimeDomainAllocationList": [
              {
                "k2": 2,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 3,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 4,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 5,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 6,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 7,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              },
              {
                "k2": 8,
                "mappingType": "typeA",
                "startSymbolAndLength": 27
              }
            ],
            "msg3-DeltaPreamble": 6,
            "p0-NominalWithGrant": -76
          }
        },
        "pucch-ConfigCommon": {
          {
            "pucch-ResourceCommon": 11,
            "pucch-GroupHopping": "neither",
            "p0-nominal": -76
          }
        }
      },
      "timeAlignmentTimerCommon": "infinity"
    },
    "n-TimingAdvanceOffset": "n25600",
    "ssb-PositionsInBurst": {
      "inOneGroup": "10000000"
    },
    "ssb-PeriodicityServingCell": "ms10",
    "tdd-UL-DL-ConfigurationCommon": {
      "referenceSubcarrierSpacing": "kHz30",
      "pattern1": {
        "dl-UL-TransmissionPeriodicity": "ms5",
        "nrofDownlinkSlots": 7,
        "nrofDownlinkSymbols": 6,
        "nrofUplinkSlots": 2,
        "nrofUplinkSymbols": 4
      },
      "pattern2": {
        "dl-UL-TransmissionPeriodicity": "ms5",
        "nrofDownlinkSlots": 7,
        "nrofDownlinkSymbols": 6,
        "nrofUplinkSlots": 2,
        "nrofUplinkSymbols": 4
      }
    },
    "ss-PBCH-BlockPower": -1
  },
  "ue-TimersAndConstants": {
    "t300": "ms1000",
    "t301": "ms1000",
    "t310": "ms1000",
    "n310": "n1",
    "t311": "ms3000",
    "n311": "n1",
    "t319": "ms1000"
  }
}
2024-01-26T12:50:45.045448 [DU-F1   ] [I] F1 Setup: Sending F1 Setup Request to CU-CP...
2024-01-26T12:50:45.045499 [DU-F1   ] [I] F1 Setup: Procedure completed successfully.
2024-01-26T12:50:45.045540 [SCHED   ] [I] [     0.0] cell=0: Cell configured successfully.
2024-01-26T12:50:45.049379 [DU-MNG  ] [I] DU manager started successfully.
2024-01-26T12:50:45.049380 [DU      ] [I] DU-High started successfully
2024-01-26T12:50:45.049381 [DU      ] [I] DU started successfully
2024-01-26T12:50:45.049382 [OFH     ] [I] Starting operation of the Open FrontHaul interface
2024-01-26T12:50:45.049383 [OFH     ] [I] Starting the realtime timing worker
2024-01-26T12:50:45.049385 [OFH     ] [I] Starting the DPDK ethernet frame receiver
2024-01-26T12:50:45.054760 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054775 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054777 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054801 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054813 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054838 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054874 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054876 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054877 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054901 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054937 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054938 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054940 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054964 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.054999 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055001 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055009 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055034 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055060 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055062 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
2024-01-26T12:50:45.055076 [OFH     ] [I] Received Open Fronthaul message size is '2' bytes and is smaller than the section header size
sauka commented 7 months ago

Hi @IbrahimBabiker87 ,

Could you try again your config and report whether you still see the issue? Thanks

IbrahimBabiker87 commented 7 months ago

@sauka I couldn't regenerate the issue again