29 #include "ns3/packet.h"
30 #include "ns3/object.h"
31 #include "ns3/ipv4-header.h"
32 #include "ns3/traced-value.h"
33 #include "ns3/trace-source-accessor.h"
34 #include "ns3/event-id.h"
37 #include "ns3/vector.h"
39 #include "ns3/names.h"
41 #include "ns3/net-device.h"
42 #include "ns3/traffic-control-layer.h"
44 #include "ns3/qkd-encryptor.h"
45 #include "ns3/qkd-buffer.h"
47 #include "ns3/object-factory.h"
48 #include "ns3/core-module.h"
49 #include "ns3/network-module.h"
50 #include "ns3/internet-module.h"
51 #include "ns3/ipv4-interface-address.h"
53 #include "ns3/applications-module.h"
54 #include "ns3/qkd-key-manager-system-application.h"
A base class which provides memory management and object aggregation.
QKD control is a network component with the knowledge of the network status.
Ptr< Node > m_node
The controller node.
std::vector< std::string > RegisterQKDApplications(Ptr< QKDApp004 > alice, Ptr< QKDApp004 > bob, Ptr< QKDKeyManagerSystemApplication > kmsA, Ptr< QKDKeyManagerSystemApplication > kmsB)
Register the QKD application pair (that implements ETSI QKD 004 API) on the site.
uint32_t GetNQKDBuffers(void) const
Get the number of QKDBuffers associated to this QKDControl.
virtual void DoDispose(void)
The dispose method.
std::vector< Ptr< QKDBuffer > > m_qkdbuffers
The list of associated QKDBuffers.
void Dispose(void)
Destroy a QKDControl object.
virtual ~QKDControl()
Destructor.
std::map< uint32_t, QKDLink > m_destinations
Ptr< QKDBuffer > GetBufferByDestinationNode(Ptr< Node >)
Get the QKDBuffer for the given destination node.
struct QKDControl::QKDLink AddNewLink(Ptr< Node > Alice, Ptr< Node > Bob, Ptr< Node > AliceKMS, Ptr< Node > BobKMS, uint32_t Mmin, uint32_t Mthr, uint32_t Mmax, uint32_t Mcurrent, bool isMaster, bool useRealStorages)
Establish new QKD link.
virtual void DoInitialize(void)
Initialization function.
Ptr< Node > GetNode()
Get the controller node.
void SetNode(Ptr< Node >)
Set the controller node.
virtual TypeId GetInstanceTypeId(void) const
Get the type ID for the instance.
static TypeId GetTypeId(void)
Get the type ID.
void AddLinkRecord(struct QKDControl::QKDLink)
Record details about the new QKD link.
Ptr< QKDBuffer > GetBufferByPosition(const uint32_t &bufferPosition)
Get the QKDBuffer with given position.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Description of a QKD link.
Ptr< QKDBuffer > qkdBufferAlice
std::string keyAssociationId
double publicChannelMetric
double quantumChannelMetric
Ptr< QKDBuffer > qkdBufferBob