LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2007,2008,2009 INRIA, UDCAST | 3 * Copyright (c) 2007,2008,2009 INRIA, UDCAST |
4 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 4 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 Ptr<Node> enb = CreateObject<Node> (); | 386 Ptr<Node> enb = CreateObject<Node> (); |
387 enbs.Add (enb);······ | 387 enbs.Add (enb);······ |
388 | 388 |
389 // we test EPC without LTE, hence we use: | 389 // we test EPC without LTE, hence we use: |
390 // 1) a CSMA network to simulate the cell | 390 // 1) a CSMA network to simulate the cell |
391 // 2) a raw socket opened on the CSMA device to simulate the LTE socket | 391 // 2) a raw socket opened on the CSMA device to simulate the LTE socket |
392 | 392 |
393 uint16_t cellId = ++cellIdCounter; | 393 uint16_t cellId = ++cellIdCounter; |
394 | 394 |
395 NodeContainer ues; | 395 NodeContainer ues; |
396 ues.Create (enbit->ues.size ()); | 396 ues.Create (static_cast<uint32_t> (enbit->ues.size ())); |
397 | 397 |
398 NodeContainer cell; | 398 NodeContainer cell; |
399 cell.Add (ues); | 399 cell.Add (ues); |
400 cell.Add (enb); | 400 cell.Add (enb); |
401 | 401 |
402 CsmaHelper csmaCell;······ | 402 CsmaHelper csmaCell;······ |
403 NetDeviceContainer cellDevices = csmaCell.Install (cell); | 403 NetDeviceContainer cellDevices = csmaCell.Install (cell); |
404 | 404 |
405 // the eNB's CSMA NetDevice acting as an LTE NetDevice.· | 405 // the eNB's CSMA NetDevice acting as an LTE NetDevice.· |
406 Ptr<NetDevice> enbDevice = cellDevices.Get (cellDevices.GetN () - 1); | 406 Ptr<NetDevice> enbDevice = cellDevices.Get (cellDevices.GetN () - 1); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 AddTestCase (new EpcS1uUlTestCase ("1 eNB, 10 pkts 15000 bytes each", v7), Tes
tCase::QUICK); | 579 AddTestCase (new EpcS1uUlTestCase ("1 eNB, 10 pkts 15000 bytes each", v7), Tes
tCase::QUICK); |
580 | 580 |
581 std::vector<EnbUlTestData> v8;·· | 581 std::vector<EnbUlTestData> v8;·· |
582 EnbUlTestData e8; | 582 EnbUlTestData e8; |
583 UeUlTestData f8 (100, 15000, 1, 1); | 583 UeUlTestData f8 (100, 15000, 1, 1); |
584 e8.ues.push_back (f8); | 584 e8.ues.push_back (f8); |
585 v8.push_back (e8); | 585 v8.push_back (e8); |
586 AddTestCase (new EpcS1uUlTestCase ("1 eNB, 100 pkts 15000 bytes each", v8), Te
stCase::QUICK); | 586 AddTestCase (new EpcS1uUlTestCase ("1 eNB, 100 pkts 15000 bytes each", v8), Te
stCase::QUICK); |
587 ·· | 587 ·· |
588 } | 588 } |
LEFT | RIGHT |