[srslte-users] uplink_scheduler

Fateme Rezaee fateme.rezaee1368 at gmail.com
Sun Dec 30 08:07:37 UTC 2018


Dear all.
 For the uplink scheduler in funstion
"ul_metric_rr::new_tti(std::map<uint16_t,sched_ue> &ue_db, uint32_t
nof_rb_, uint32_t tti)", there are two different functions as follows (one
for retransmission and another for new data  transmission);

// give priority in a time-domain RR basis
uint32_t priority_idx = (current_tti+(uint32_t)ue_db.size()/2) %
(uint32_t)ue_db.size(); // make DL and UL interleaved

  // allocate reTxs first
  it_t iter = ue_db.begin();
  for(uint32_t ue_count = 0 ; ue_count < ue_db.size() ; ++iter, ++ue_count)
{
    if(iter==ue_db.end()) {
      iter = ue_db.begin(); // wrap around
    }
    sched_ue *user = (sched_ue *) &iter->second;
    user->ul_next_alloc = allocate_user_retx_prbs(user);
  }

  // give priority in a time-domain RR basis
  iter = ue_db.begin();
  std::advance(iter,priority_idx);
  for(uint32_t ue_count = 0 ; ue_count < ue_db.size() ; ++iter, ++ue_count)
{
    if(iter==ue_db.end()) {
      iter = ue_db.begin(); // wrap around
    }
    sched_ue *user = (sched_ue*) &iter->second;
    if (!user->ul_next_alloc) {
      user->ul_next_alloc = allocate_user_newtx_prbs(user);
    }
  }

The definition for the priority idx for  the new data  transmission  is
similar to the downlink, but for the retransmission is sth different. would
you plz clarify this issue?
Thank you.
-- 
*******************************************************************************


Best regards,

Fatemeh.Rezaei

Ph.D. Student in Communication Systems Engineering

Department of Electrical and Computer Engineering, Yazd University

Yazd, Iran

*******************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20181230/a1770bff/attachment.htm>


More information about the srsran-users mailing list