View | Details | Raw Unified | Return to bug 937
Collapse All | Expand All

(-)ns-3-dev-original/src/devices/wimax/AUTHORS (-1 / +1 lines)
 Lines 22-28    Link Here 
22
TELEMATICS LAB, Politecnico di Bari
22
TELEMATICS LAB, Politecnico di Bari
23
G.Piro@poliba.it
23
G.Piro@poliba.it
24
24
25
Flavio Kobuta, Juliana Freitag Borin, Nelson L. S. da Fonseca 
25
Flavio Kubota, Juliana Freitag Borin, Nelson L. S. da Fonseca 
26
==============================================================
26
==============================================================
27
Development and Integration of the mbqos uplink scheduler
27
Development and Integration of the mbqos uplink scheduler
28
2009
28
2009
(-)ns-3-dev-original/src/devices/wimax/bandwidth-manager.cc (+1 lines)
 Lines 133-138    Link Here 
133
            {
133
            {
134
              // bandwidth is requested for all packets
134
              // bandwidth is requested for all packets
135
              bytesToRequest = serviceFlow->GetQueue ()->GetQueueLengthWithMACOverhead ();
135
              bytesToRequest = serviceFlow->GetQueue ()->GetQueueLengthWithMACOverhead ();
136
              break;
136
            }
137
            }
137
        }
138
        }
138
    }
139
    }
(-)ns-3-dev-original/src/devices/wimax/bs-net-device.cc (-2 / +8 lines)
 Lines 522-527    Link Here 
522
void
522
void
523
BaseStationNetDevice::StartFrame (void)
523
BaseStationNetDevice::StartFrame (void)
524
{
524
{
525
  //setting DL/UL subframe allocation for this frame
526
  uint32_t symbolsPerFrame = GetPhy ()->GetSymbolsPerFrame ();
527
  SetNrDlSymbols ((symbolsPerFrame / 2) - ceil(GetTtg()*m_psDuration.GetSeconds ()/m_symbolDuration.GetSeconds ()));
528
  SetNrUlSymbols ((symbolsPerFrame / 2) - ceil(GetRtg()*m_psDuration.GetSeconds ()/m_symbolDuration.GetSeconds ()));
529
525
  m_frameStartTime = Simulator::Now ();
530
  m_frameStartTime = Simulator::Now ();
526
531
527
  NS_LOG_INFO ("----------------------frame" << GetNrFrames () + 1 << "----------------------");
532
  NS_LOG_INFO ("----------------------frame" << GetNrFrames () + 1 << "----------------------");
 Lines 951-956    Link Here 
951
      burst = pair.second;
956
      burst = pair.second;
952
      dlMapIe = pair.first;
957
      dlMapIe = pair.first;
953
      cid = dlMapIe->GetCid ();
958
      cid = dlMapIe->GetCid ();
959
      uint8_t diuc = dlMapIe->GetDiuc ();
954
960
955
      if (cid != GetInitialRangingConnection ()->GetCid () && cid != GetBroadcastConnection ()->GetCid ())
961
      if (cid != GetInitialRangingConnection ()->GetCid () && cid != GetBroadcastConnection ()->GetCid ())
956
        {
962
        {
 Lines 958-969    Link Here 
958
            {
964
            {
959
              if (m_serviceFlowManager->GetServiceFlow (cid)->GetIsMulticast () == true)
965
              if (m_serviceFlowManager->GetServiceFlow (cid)->GetIsMulticast () == true)
960
                {
966
                {
961
                  modulationType = m_serviceFlowManager->GetServiceFlow (cid)->GetModulation ();
967
                  modulationType = GetBurstProfileManager ()->GetModulationType (diuc, WimaxNetDevice::DIRECTION_DOWNLINK);
962
                }
968
                }
963
            }
969
            }
964
          else
970
          else
965
            {
971
            {
966
              modulationType = m_ssManager->GetSSRecord (cid)->GetModulationType ();
972
              modulationType = GetBurstProfileManager ()->GetModulationType (diuc, WimaxNetDevice::DIRECTION_DOWNLINK);
967
            }
973
            }
968
        }
974
        }
969
      else
975
      else
(-)ns-3-dev-original/src/devices/wimax/bs-scheduler-simple.cc (-1 / +5 lines)
 Lines 177-187    Link Here 
177
                  packet = connection->Dequeue (MacHeaderType::HEADER_TYPE_GENERIC, availableByte);
177
                  packet = connection->Dequeue (MacHeaderType::HEADER_TYPE_GENERIC, availableByte);
178
                  availableSymbols = 0;
178
                  availableSymbols = 0;
179
                }
179
                }
180
              else
180
              else if (availableSymbols >= nrSymbolsRequired)
181
                {
181
                {
182
                  packet = connection->Dequeue ();
182
                  packet = connection->Dequeue ();
183
                  availableSymbols -= nrSymbolsRequired;
183
                  availableSymbols -= nrSymbolsRequired;
184
                }
184
                }
185
              else
186
                {
187
                  break;
188
                }
185
              burst->AddPacket (packet);
189
              burst->AddPacket (packet);
186
            }
190
            }
187
          AddDownlinkBurst (connection, diuc, modulationType, burst);
191
          AddDownlinkBurst (connection, diuc, modulationType, burst);
(-)ns-3-dev-original/src/devices/wimax/wimax-mac-queue.cc (-2 / +1 lines)
 Lines 191-204    Link Here 
191
          /*check because may be it is a bandwidth request packet (in which case a Bandwidth Request Header
191
          /*check because may be it is a bandwidth request packet (in which case a Bandwidth Request Header
192
            has already been added to the packet) in which case Generic MAC Header will not be added to it.
192
            has already been added to the packet) in which case Generic MAC Header will not be added to it.
193
            this will only happen in the case of SS as only SS sends the bandwidth request packet. */
193
            this will only happen in the case of SS as only SS sends the bandwidth request packet. */
194
          m_bytes -= element.GetSize ();
194
          if (element.m_hdrType.GetType () == MacHeaderType::HEADER_TYPE_GENERIC)
195
          if (element.m_hdrType.GetType () == MacHeaderType::HEADER_TYPE_GENERIC)
195
            {
196
            {
196
              packet->AddHeader (element.m_hdr);
197
              packet->AddHeader (element.m_hdr);
197
            }
198
            }
198
          packet->AddHeader (element.m_hdrType);
199
          packet->AddHeader (element.m_hdrType);
199
200
200
          m_bytes -= element.GetSize ();
201
202
          m_traceDequeue (packet);
201
          m_traceDequeue (packet);
203
          return packet;
202
          return packet;
204
        }
203
        }

Return to bug 937