A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dca-txop.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2005 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19  */
20 
21 #include "ns3/assert.h"
22 #include "ns3/packet.h"
23 #include "ns3/log.h"
24 #include "ns3/simulator.h"
25 #include "ns3/node.h"
26 #include "ns3/uinteger.h"
27 #include "ns3/pointer.h"
28 
29 #include "dca-txop.h"
30 #include "dcf-manager.h"
31 #include "mac-low.h"
32 #include "wifi-mac-queue.h"
33 #include "mac-tx-middle.h"
34 #include "wifi-mac-trailer.h"
35 #include "wifi-mac.h"
36 #include "random-stream.h"
37 
38 NS_LOG_COMPONENT_DEFINE ("DcaTxop");
39 
40 #undef NS_LOG_APPEND_CONTEXT
41 #define NS_LOG_APPEND_CONTEXT if (m_low != 0) { std::clog << "[mac=" << m_low->GetAddress () << "] "; }
42 
43 namespace ns3 {
44 
45 class DcaTxop::Dcf : public DcfState
46 {
47 public:
48  Dcf (DcaTxop * txop)
49  : m_txop (txop)
50  {
51  }
52 private:
53  virtual void DoNotifyAccessGranted (void)
54  {
56  }
57  virtual void DoNotifyInternalCollision (void)
58  {
60  }
61  virtual void DoNotifyCollision (void)
62  {
64  }
65  virtual void DoNotifyChannelSwitching (void)
66  {
68  }
70 };
71 
73 {
74 public:
77  m_txop (txop) {
78  }
79 
80  virtual ~TransmissionListener () {}
81 
82  virtual void GotCts (double snr, WifiMode txMode)
83  {
84  m_txop->GotCts (snr, txMode);
85  }
86  virtual void MissedCts (void)
87  {
88  m_txop->MissedCts ();
89  }
90  virtual void GotAck (double snr, WifiMode txMode)
91  {
92  m_txop->GotAck (snr, txMode);
93  }
94  virtual void MissedAck (void)
95  {
96  m_txop->MissedAck ();
97  }
98  virtual void StartNext (void)
99  {
100  m_txop->StartNext ();
101  }
102  virtual void Cancel (void)
103  {
104  m_txop->Cancel ();
105  }
106  virtual void EndTxNoAck (void)
107  {
108  m_txop->EndTxNoAck ();
109  }
110 
111 private:
113 };
114 
116 
117 TypeId
119 {
120  static TypeId tid = TypeId ("ns3::DcaTxop")
123  .AddAttribute ("Queue", "The WifiMacQueue object",
124  PointerValue (),
125  MakePointerAccessor (&DcaTxop::GetQueue),
126  MakePointerChecker<WifiMacQueue> ())
127  ;
128  return tid;
129 }
130 
132  : m_manager (0),
133  m_currentPacket (0)
134 {
135  NS_LOG_FUNCTION (this);
137  m_dcf = new DcaTxop::Dcf (this);
138  m_queue = CreateObject<WifiMacQueue> ();
139  m_rng = new RealRandomStream ();
140  m_txMiddle = new MacTxMiddle ();
141 }
142 
144 {
145  NS_LOG_FUNCTION (this);
146 }
147 
148 void
150 {
151  NS_LOG_FUNCTION (this);
152  m_queue = 0;
153  m_low = 0;
154  m_stationManager = 0;
155  delete m_transmissionListener;
156  delete m_dcf;
157  delete m_rng;
158  delete m_txMiddle;
160  m_dcf = 0;
161  m_rng = 0;
162  m_txMiddle = 0;
163 }
164 
165 void
167 {
168  NS_LOG_FUNCTION (this << manager);
169  m_manager = manager;
170  m_manager->Add (m_dcf);
171 }
172 
173 void
175 {
176  NS_LOG_FUNCTION (this << low);
177  m_low = low;
178 }
179 void
181 {
182  NS_LOG_FUNCTION (this << remoteManager);
183  m_stationManager = remoteManager;
184 }
185 void
187 {
188  NS_LOG_FUNCTION (this << &callback);
189  m_txOkCallback = callback;
190 }
191 void
193 {
194  NS_LOG_FUNCTION (this << &callback);
195  m_txFailedCallback = callback;
196 }
197 
200 {
201  NS_LOG_FUNCTION (this);
202  return m_queue;
203 }
204 
205 void
206 DcaTxop::SetMinCw (uint32_t minCw)
207 {
208  NS_LOG_FUNCTION (this << minCw);
209  m_dcf->SetCwMin (minCw);
210 }
211 void
212 DcaTxop::SetMaxCw (uint32_t maxCw)
213 {
214  NS_LOG_FUNCTION (this << maxCw);
215  m_dcf->SetCwMax (maxCw);
216 }
217 void
218 DcaTxop::SetAifsn (uint32_t aifsn)
219 {
220  NS_LOG_FUNCTION (this << aifsn);
221  m_dcf->SetAifsn (aifsn);
222 }
223 uint32_t
224 DcaTxop::GetMinCw (void) const
225 {
226  NS_LOG_FUNCTION (this);
227  return m_dcf->GetCwMin ();
228 }
229 uint32_t
230 DcaTxop::GetMaxCw (void) const
231 {
232  NS_LOG_FUNCTION (this);
233  return m_dcf->GetCwMax ();
234 }
235 uint32_t
236 DcaTxop::GetAifsn (void) const
237 {
238  NS_LOG_FUNCTION (this);
239  return m_dcf->GetAifsn ();
240 }
241 
242 void
244 {
245  NS_LOG_FUNCTION (this << packet << &hdr);
246  WifiMacTrailer fcs;
247  uint32_t fullPacketSize = hdr.GetSerializedSize () + packet->GetSize () + fcs.GetSerializedSize ();
248  m_stationManager->PrepareForQueue (hdr.GetAddr1 (), &hdr,
249  packet, fullPacketSize);
250  m_queue->Enqueue (packet, hdr);
252 }
253 
254 int64_t
255 DcaTxop::AssignStreams (int64_t stream)
256 {
257  NS_LOG_FUNCTION (this << stream);
258  m_rng->AssignStreams (stream);
259  return 1;
260 }
261 
262 void
264 {
265  NS_LOG_FUNCTION (this);
266  if ((m_currentPacket != 0
267  || !m_queue->IsEmpty ())
268  && !m_dcf->IsAccessRequested ())
269  {
271  }
272 }
273 
274 void
276 {
277  NS_LOG_FUNCTION (this);
278  if (m_currentPacket == 0
279  && !m_queue->IsEmpty ()
280  && !m_dcf->IsAccessRequested ())
281  {
283  }
284 }
285 
286 
289 {
290  NS_LOG_FUNCTION (this);
291  return m_low;
292 }
293 
294 bool
296 {
297  NS_LOG_FUNCTION (this << packet << header);
298  return m_stationManager->NeedRts (header->GetAddr1 (), header,
299  packet);
300 }
301 
302 void
304 {
305  NS_LOG_FUNCTION (this);
306  m_dcf->ResetCw ();
309 }
310 bool
312 {
313  NS_LOG_FUNCTION (this);
314  return m_stationManager->NeedRtsRetransmission (m_currentHdr.GetAddr1 (), &m_currentHdr,
316 }
317 
318 bool
320 {
321  NS_LOG_FUNCTION (this);
322  return m_stationManager->NeedDataRetransmission (m_currentHdr.GetAddr1 (), &m_currentHdr,
324 }
325 bool
327 {
328  NS_LOG_FUNCTION (this);
329  return m_stationManager->NeedFragmentation (m_currentHdr.GetAddr1 (), &m_currentHdr,
331 }
332 
333 void
335 {
336  NS_LOG_FUNCTION (this);
338 }
339 
340 uint32_t
342 {
343  NS_LOG_FUNCTION (this);
344  return m_stationManager->GetFragmentSize (m_currentHdr.GetAddr1 (), &m_currentHdr,
346 }
347 bool
349 {
350  NS_LOG_FUNCTION (this);
351  return m_stationManager->IsLastFragment (m_currentHdr.GetAddr1 (), &m_currentHdr,
353 }
354 
355 uint32_t
357 {
358  NS_LOG_FUNCTION (this);
359  return m_stationManager->GetFragmentSize (m_currentHdr.GetAddr1 (), &m_currentHdr,
361 }
362 
363 uint32_t
365 {
366  NS_LOG_FUNCTION (this);
367  return m_stationManager->GetFragmentOffset (m_currentHdr.GetAddr1 (), &m_currentHdr,
369 }
370 
373 {
374  NS_LOG_FUNCTION (this << hdr);
375  *hdr = m_currentHdr;
377  uint32_t startOffset = GetFragmentOffset ();
378  Ptr<Packet> fragment;
379  if (IsLastFragment ())
380  {
381  hdr->SetNoMoreFragments ();
382  }
383  else
384  {
385  hdr->SetMoreFragments ();
386  }
387  fragment = m_currentPacket->CreateFragment (startOffset,
388  GetFragmentSize ());
389  return fragment;
390 }
391 
392 bool
394 {
395  NS_LOG_FUNCTION (this);
396  return !m_queue->IsEmpty () || m_currentPacket != 0;
397 }
398 void
400 {
401  NS_LOG_FUNCTION (this);
402  if (m_currentPacket == 0)
403  {
404  if (m_queue->IsEmpty ())
405  {
406  NS_LOG_DEBUG ("queue empty");
407  return;
408  }
409  m_currentPacket = m_queue->Dequeue (&m_currentHdr);
410  NS_ASSERT (m_currentPacket != 0);
411  uint16_t sequence = m_txMiddle->GetNextSequenceNumberfor (&m_currentHdr);
412  m_currentHdr.SetSequenceNumber (sequence);
416  m_fragmentNumber = 0;
417  NS_LOG_DEBUG ("dequeued size=" << m_currentPacket->GetSize () <<
418  ", to=" << m_currentHdr.GetAddr1 () <<
419  ", seq=" << m_currentHdr.GetSequenceControl ());
420  }
422  params.DisableOverrideDurationId ();
423  if (m_currentHdr.GetAddr1 ().IsGroup ())
424  {
425  params.DisableRts ();
426  params.DisableAck ();
427  params.DisableNextData ();
428  Low ()->StartTransmission (m_currentPacket,
429  &m_currentHdr,
430  params,
432  NS_LOG_DEBUG ("tx broadcast");
433  }
434  else
435  {
436  params.EnableAck ();
437 
438  if (NeedFragmentation ())
439  {
440  WifiMacHeader hdr;
441  Ptr<Packet> fragment = GetFragmentPacket (&hdr);
442  if (NeedRts (fragment, &hdr))
443  {
444  params.EnableRts ();
445  }
446  else
447  {
448  params.DisableRts ();
449  }
450  if (IsLastFragment ())
451  {
452  NS_LOG_DEBUG ("fragmenting last fragment size=" << fragment->GetSize ());
453  params.DisableNextData ();
454  }
455  else
456  {
457  NS_LOG_DEBUG ("fragmenting size=" << fragment->GetSize ());
459  }
460  Low ()->StartTransmission (fragment, &hdr, params,
462  }
463  else
464  {
466  {
467  params.EnableRts ();
468  NS_LOG_DEBUG ("tx unicast rts");
469  }
470  else
471  {
472  params.DisableRts ();
473  NS_LOG_DEBUG ("tx unicast");
474  }
475  params.DisableNextData ();
476  Low ()->StartTransmission (m_currentPacket, &m_currentHdr,
477  params, m_transmissionListener);
478  }
479  }
480 }
481 
482 void
484 {
485  NS_LOG_FUNCTION (this);
486  NotifyCollision ();
487 }
488 void
490 {
491  NS_LOG_FUNCTION (this);
492  NS_LOG_DEBUG ("collision");
495 }
496 
497 void
499 {
500  NS_LOG_FUNCTION (this);
501  m_queue->Flush ();
502  m_currentPacket = 0;
503 }
504 
505 void
506 DcaTxop::GotCts (double snr, WifiMode txMode)
507 {
508  NS_LOG_FUNCTION (this << snr << txMode);
509  NS_LOG_DEBUG ("got cts");
510 }
511 void
513 {
514  NS_LOG_FUNCTION (this);
515  NS_LOG_DEBUG ("missed cts");
516  if (!NeedRtsRetransmission ())
517  {
518  NS_LOG_DEBUG ("Cts Fail");
519  m_stationManager->ReportFinalRtsFailed (m_currentHdr.GetAddr1 (), &m_currentHdr);
520  if (!m_txFailedCallback.IsNull ())
521  {
523  }
524  // to reset the dcf.
525  m_currentPacket = 0;
526  m_dcf->ResetCw ();
527  }
528  else
529  {
530  m_dcf->UpdateFailedCw ();
531  }
534 }
535 void
536 DcaTxop::GotAck (double snr, WifiMode txMode)
537 {
538  NS_LOG_FUNCTION (this << snr << txMode);
539  if (!NeedFragmentation ()
540  || IsLastFragment ())
541  {
542  NS_LOG_DEBUG ("got ack. tx done.");
543  if (!m_txOkCallback.IsNull ())
544  {
546  }
547 
548  /* we are not fragmenting or we are done fragmenting
549  * so we can get rid of that packet now.
550  */
551  m_currentPacket = 0;
552  m_dcf->ResetCw ();
555  }
556  else
557  {
558  NS_LOG_DEBUG ("got ack. tx not done, size=" << m_currentPacket->GetSize ());
559  }
560 }
561 void
563 {
564  NS_LOG_FUNCTION (this);
565  NS_LOG_DEBUG ("missed ack");
566  if (!NeedDataRetransmission ())
567  {
568  NS_LOG_DEBUG ("Ack Fail");
569  m_stationManager->ReportFinalDataFailed (m_currentHdr.GetAddr1 (), &m_currentHdr);
570  if (!m_txFailedCallback.IsNull ())
571  {
573  }
574  // to reset the dcf.
575  m_currentPacket = 0;
576  m_dcf->ResetCw ();
577  }
578  else
579  {
580  NS_LOG_DEBUG ("Retransmit");
582  m_dcf->UpdateFailedCw ();
583  }
586 }
587 void
589 {
590  NS_LOG_FUNCTION (this);
591  NS_LOG_DEBUG ("start next packet fragment");
592  /* this callback is used only for fragments. */
593  NextFragment ();
594  WifiMacHeader hdr;
595  Ptr<Packet> fragment = GetFragmentPacket (&hdr);
597  params.EnableAck ();
598  params.DisableRts ();
599  params.DisableOverrideDurationId ();
600  if (IsLastFragment ())
601  {
602  params.DisableNextData ();
603  }
604  else
605  {
607  }
608  Low ()->StartTransmission (fragment, &hdr, params, m_transmissionListener);
609 }
610 
611 void
613 {
614  NS_LOG_FUNCTION (this);
615  NS_LOG_DEBUG ("transmission cancelled");
641 }
642 
643 void
645 {
646  NS_LOG_FUNCTION (this);
647  NS_LOG_DEBUG ("a transmission that did not require an ACK just finished");
648  m_currentPacket = 0;
649  m_dcf->ResetCw ();
652 }
653 
654 } // namespace ns3
void NotifyInternalCollision(void)
Definition: dca-txop.cc:483
void SetMoreFragments(void)
virtual uint32_t GetMaxCw(void) const
Definition: dca-txop.cc:230
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:59
uint32_t GetFragmentOffset(void)
Definition: dca-txop.cc:364
#define NS_LOG_FUNCTION(parameters)
Definition: log.h:311
uint8_t m_fragmentNumber
Definition: dca-txop.h:180
TypeId AddConstructor(void)
Definition: type-id.h:418
virtual void DoNotifyInternalCollision(void)
Definition: dca-txop.cc:57
void SetTxFailedCallback(TxFailed callback)
Definition: dca-txop.cc:192
uint32_t GetCwMin(void) const
Definition: dcf-manager.cc:79
virtual void MissedAck(void)
Definition: dca-txop.cc:94
virtual void SetMaxCw(uint32_t maxCw)
Definition: dca-txop.cc:212
void StartNext(void)
Definition: dca-txop.cc:588
void RequestAccess(DcfState *state)
Definition: dcf-manager.cc:415
TransmissionListener(DcaTxop *txop)
Definition: dca-txop.cc:75
Ptr< MacLow > m_low
Definition: dca-txop.h:172
void SetNoMoreFragments(void)
bool IsNull(void) const
Definition: callback.h:1014
#define NS_ASSERT(condition)
Definition: assert.h:64
virtual int64_t AssignStreams(int64_t stream)=0
uint32_t GetSize(void) const
Definition: packet.h:650
Ptr< MacLow > Low(void)
Definition: dca-txop.cc:288
TxOk m_txOkCallback
Definition: dca-txop.h:168
virtual uint32_t GetAifsn(void) const
Definition: dca-txop.cc:236
void SetAifsn(uint32_t aifsn)
Definition: dcf-manager.cc:57
friend class Dcf
Definition: dca-txop.h:124
void ResetCw(void)
Definition: dcf-manager.cc:90
int64_t AssignStreams(int64_t stream)
Definition: dca-txop.cc:255
listen to events coming from ns3::MacLow.
Definition: mac-low.h:56
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
Definition: wifi-mode.h:91
void Add(DcfState *dcf)
Definition: dcf-manager.cc:335
virtual void GotCts(double snr, WifiMode txMode)
Definition: dca-txop.cc:82
static TypeId GetTypeId(void)
Definition: dca-txop.cc:118
control how a packet is transmitted.The ns3::MacLow::StartTransmission method expects an instance of ...
Definition: mac-low.h:195
void SetTxOkCallback(TxOk callback)
Definition: dca-txop.cc:186
Ptr< Packet > GetFragmentPacket(WifiMacHeader *hdr)
Definition: dca-txop.cc:372
virtual void GotAck(double snr, WifiMode txMode)
Definition: dca-txop.cc:90
Ptr< Packet > CreateFragment(uint32_t start, uint32_t length) const
Definition: packet.cc:228
void Queue(Ptr< const Packet > packet, const WifiMacHeader &hdr)
Definition: dca-txop.cc:243
void SetLow(Ptr< MacLow > low)
Definition: dca-txop.cc:174
bool NeedFragmentation(void)
Definition: dca-txop.cc:326
virtual uint32_t GetSerializedSize(void) const
Ptr< WifiMacQueue > m_queue
Definition: dca-txop.h:170
void Cancel(void)
Definition: dca-txop.cc:612
NS_LOG_COMPONENT_DEFINE("DcaTxop")
void GotCts(double snr, WifiMode txMode)
Definition: dca-txop.cc:506
uint16_t GetSequenceControl(void) const
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
void NotifyChannelSwitching(void)
Definition: dca-txop.cc:498
void MissedCts(void)
Definition: dca-txop.cc:512
Manage a set of ns3::DcfStateHandle a set of independent ns3::DcfState, each of which represents a si...
Definition: dcf-manager.h:173
bool IsLastFragment(void)
Definition: dca-txop.cc:348
keep track of the state needed for a single DCF function.Multiple instances of a DcfState can be regi...
Definition: dcf-manager.h:46
bool IsAccessRequested(void) const
Definition: dcf-manager.cc:133
Ptr< WifiRemoteStationManager > m_stationManager
Definition: dca-txop.h:173
virtual void DoNotifyChannelSwitching(void)
Definition: dca-txop.cc:65
uint32_t GetCwMax(void) const
Definition: dcf-manager.cc:84
bool NeedRts(Ptr< const Packet > packet, const WifiMacHeader *header)
Definition: dca-txop.cc:295
void SetCwMin(uint32_t minCw)
Definition: dcf-manager.cc:62
DcaTxop * m_txop
Definition: dca-txop.cc:69
virtual void SetAifsn(uint32_t aifsn)
Definition: dca-txop.cc:218
void SetWifiRemoteStationManager(Ptr< WifiRemoteStationManager > remoteManager)
Definition: dca-txop.cc:180
void StartBackoffNow(uint32_t nSlots)
Definition: dcf-manager.cc:109
uint16_t GetNextSequenceNumberfor(const WifiMacHeader *hdr)
hold objects of type Ptr
Definition: pointer.h:33
void DoInitialize()
Definition: dca-txop.cc:303
bool NeedsAccess(void) const
Definition: dca-txop.cc:393
WifiMacHeader m_currentHdr
Definition: dca-txop.h:179
bool IsGroup(void) const
virtual void EndTxNoAck(void)
Definition: dca-txop.cc:106
Ptr< WifiMacQueue > GetQueue() const
Definition: dca-txop.cc:199
bool NeedRtsRetransmission(void)
Definition: dca-txop.cc:311
friend class TransmissionListener
Definition: dca-txop.h:126
Ptr< const Packet > m_currentPacket
Definition: dca-txop.h:178
virtual void MissedCts(void)
Definition: dca-txop.cc:86
MacTxMiddle * m_txMiddle
Definition: dca-txop.h:171
DcfManager * m_manager
Definition: dca-txop.h:167
void SetCwMax(uint32_t maxCw)
Definition: dcf-manager.cc:68
virtual void SetMinCw(uint32_t minCw)
Definition: dca-txop.cc:206
void GotAck(double snr, WifiMode txMode)
Definition: dca-txop.cc:536
virtual void DoNotifyCollision(void)
Definition: dca-txop.cc:61
static TypeId GetTypeId(void)
Definition: dcf.cc:31
void SetSequenceNumber(uint16_t seq)
uint32_t GetCw(void) const
Definition: dcf-manager.cc:118
uint32_t GetAifsn(void) const
Definition: dcf-manager.cc:74
void SetManager(DcfManager *manager)
Definition: dca-txop.cc:166
#define NS_LOG_DEBUG(msg)
Definition: log.h:255
uint32_t GetNextFragmentSize(void)
Definition: dca-txop.cc:356
virtual void StartNext(void)
Definition: dca-txop.cc:98
virtual void DoDispose(void)
Definition: dca-txop.cc:149
void EnableNextData(uint32_t size)
Definition: mac-low.cc:83
void NotifyCollision(void)
Definition: dca-txop.cc:489
void StartAccessIfNeeded(void)
Definition: dca-txop.cc:275
void NextFragment(void)
Definition: dca-txop.cc:334
TransmissionListener * m_transmissionListener
Definition: dca-txop.h:174
virtual void DoNotifyAccessGranted(void)
Definition: dca-txop.cc:53
void RestartAccessIfNeeded(void)
Definition: dca-txop.cc:263
virtual uint32_t GetNext(uint32_t min, uint32_t max)=0
Mac48Address GetAddr1(void) const
void UpdateFailedCw(void)
Definition: dcf-manager.cc:95
void MissedAck(void)
Definition: dca-txop.cc:562
handle packet fragmentation and retransmissions.This class implements the packet fragmentation and re...
Definition: dca-txop.h:67
Dcf(DcaTxop *txop)
Definition: dca-txop.cc:48
void SetFragmentNumber(uint8_t frag)
bool NeedDataRetransmission(void)
Definition: dca-txop.cc:319
virtual uint32_t GetMinCw(void) const
Definition: dca-txop.cc:224
Dcf * m_dcf
Definition: dca-txop.h:166
uint32_t GetFragmentSize(void)
Definition: dca-txop.cc:341
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:610
void NotifyAccessGranted(void)
Definition: dca-txop.cc:399
virtual void DoInitialize(void)
Definition: object.cc:342
void EndTxNoAck(void)
Definition: dca-txop.cc:644
virtual uint32_t GetSerializedSize(void) const
RandomStream * m_rng
Definition: dca-txop.h:175
TxFailed m_txFailedCallback
Definition: dca-txop.h:169