A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ipv6-flow-probe.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2009 INESC Porto
3
//
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License version 2 as
6
// published by the Free Software Foundation;
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
//
17
// Author: Gustavo J. A. M. Carneiro <gjc@inescporto.pt> <gjcarneiro@gmail.com>
18
// Modifications: Tommaso Pecorella <tommaso.pecorella@unifi.it>
19
//
20
21
#ifndef IPV6_FLOW_PROBE_H
22
#define IPV6_FLOW_PROBE_H
23
24
#include "
flow-probe.h
"
25
#include "
ipv6-flow-classifier.h
"
26
27
#include "ns3/ipv6-l3-protocol.h"
28
#include "ns3/queue-item.h"
29
30
namespace
ns3
31
{
32
33
class
FlowMonitor;
34
class
Node;
35
43
class
Ipv6FlowProbe
:
public
FlowProbe
44
{
45
public
:
50
Ipv6FlowProbe
(
Ptr<FlowMonitor>
monitor,
Ptr<Ipv6FlowClassifier>
classifier,
Ptr<Node>
node);
51
~Ipv6FlowProbe
()
override
;
52
55
static
TypeId
GetTypeId
();
56
58
enum
DropReason
59
{
61
DROP_NO_ROUTE
= 0,
62
64
DROP_TTL_EXPIRE
,
65
67
DROP_BAD_CHECKSUM
,
68
73
DROP_QUEUE
,
74
76
DROP_QUEUE_DISC
,
77
78
DROP_INTERFACE_DOWN
,
79
DROP_ROUTE_ERROR
,
81
DROP_UNKNOWN_PROTOCOL
,
82
DROP_UNKNOWN_OPTION
,
83
DROP_MALFORMED_HEADER
,
85
DROP_FRAGMENT_TIMEOUT
,
87
DROP_INVALID_REASON
,
88
};
89
90
protected
:
91
void
DoDispose
()
override
;
92
93
private
:
98
void
SendOutgoingLogger
(
const
Ipv6Header
& ipHeader,
99
Ptr<const Packet>
ipPayload,
100
uint32_t
interface);
105
void
ForwardLogger
(
const
Ipv6Header
& ipHeader,
Ptr<const Packet>
ipPayload,
uint32_t
interface);
110
void
ForwardUpLogger
(
const
Ipv6Header
& ipHeader,
111
Ptr<const Packet>
ipPayload,
112
uint32_t
interface);
119
void
DropLogger
(
const
Ipv6Header
& ipHeader,
120
Ptr<const Packet>
ipPayload,
121
Ipv6L3Protocol::DropReason
reason,
122
Ptr<Ipv6>
ipv6,
123
uint32_t
ifIndex);
126
void
QueueDropLogger
(
Ptr<const Packet>
ipPayload);
129
void
QueueDiscDropLogger
(
Ptr<const QueueDiscItem>
item);
130
131
Ptr<Ipv6FlowClassifier>
m_classifier
;
132
};
133
134
}
// namespace ns3
135
136
#endif
/* IPV6_FLOW_PROBE_H */
ns3::FlowProbe
The FlowProbe class is responsible for listening for packet events in a specific point of the simulat...
Definition:
flow-probe.h:41
ns3::Ipv6FlowProbe
Class that monitors flows at the IPv6 layer of a Node.
Definition:
ipv6-flow-probe.h:44
ns3::Ipv6FlowProbe::DoDispose
void DoDispose() override
Destructor implementation.
Definition:
ipv6-flow-probe.cc:275
ns3::Ipv6FlowProbe::QueueDiscDropLogger
void QueueDiscDropLogger(Ptr< const QueueDiscItem > item)
Log a packet being dropped by a queue disc.
Definition:
ipv6-flow-probe.cc:447
ns3::Ipv6FlowProbe::~Ipv6FlowProbe
~Ipv6FlowProbe() override
Definition:
ipv6-flow-probe.cc:270
ns3::Ipv6FlowProbe::QueueDropLogger
void QueueDropLogger(Ptr< const Packet > ipPayload)
Log a packet being dropped by a queue.
Definition:
ipv6-flow-probe.cc:426
ns3::Ipv6FlowProbe::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition:
ipv6-flow-probe.cc:260
ns3::Ipv6FlowProbe::m_classifier
Ptr< Ipv6FlowClassifier > m_classifier
the Ipv6FlowClassifier this probe is associated with
Definition:
ipv6-flow-probe.h:131
ns3::Ipv6FlowProbe::DropLogger
void DropLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, Ipv6L3Protocol::DropReason reason, Ptr< Ipv6 > ipv6, uint32_t ifIndex)
Log a packet being dropped.
Definition:
ipv6-flow-probe.cc:343
ns3::Ipv6FlowProbe::ForwardLogger
void ForwardLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being forwarded.
Definition:
ipv6-flow-probe.cc:303
ns3::Ipv6FlowProbe::ForwardUpLogger
void ForwardUpLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being received by the destination.
Definition:
ipv6-flow-probe.cc:323
ns3::Ipv6FlowProbe::DropReason
DropReason
enumeration of possible reasons why a packet may be dropped
Definition:
ipv6-flow-probe.h:59
ns3::Ipv6FlowProbe::DROP_TTL_EXPIRE
@ DROP_TTL_EXPIRE
Packet dropped due to TTL decremented to zero during IPv4 forwarding.
Definition:
ipv6-flow-probe.h:64
ns3::Ipv6FlowProbe::DROP_FRAGMENT_TIMEOUT
@ DROP_FRAGMENT_TIMEOUT
Fragment timeout exceeded.
Definition:
ipv6-flow-probe.h:85
ns3::Ipv6FlowProbe::DROP_NO_ROUTE
@ DROP_NO_ROUTE
Packet dropped due to missing route to the destination.
Definition:
ipv6-flow-probe.h:61
ns3::Ipv6FlowProbe::DROP_UNKNOWN_OPTION
@ DROP_UNKNOWN_OPTION
Unknown option.
Definition:
ipv6-flow-probe.h:82
ns3::Ipv6FlowProbe::DROP_QUEUE_DISC
@ DROP_QUEUE_DISC
Packet dropped by the queue disc.
Definition:
ipv6-flow-probe.h:76
ns3::Ipv6FlowProbe::DROP_INTERFACE_DOWN
@ DROP_INTERFACE_DOWN
Interface is down so can not send packet.
Definition:
ipv6-flow-probe.h:78
ns3::Ipv6FlowProbe::DROP_BAD_CHECKSUM
@ DROP_BAD_CHECKSUM
Packet dropped due to invalid checksum in the IPv4 header.
Definition:
ipv6-flow-probe.h:67
ns3::Ipv6FlowProbe::DROP_MALFORMED_HEADER
@ DROP_MALFORMED_HEADER
Malformed header.
Definition:
ipv6-flow-probe.h:83
ns3::Ipv6FlowProbe::DROP_ROUTE_ERROR
@ DROP_ROUTE_ERROR
Route error.
Definition:
ipv6-flow-probe.h:79
ns3::Ipv6FlowProbe::DROP_UNKNOWN_PROTOCOL
@ DROP_UNKNOWN_PROTOCOL
Unknown L4 protocol.
Definition:
ipv6-flow-probe.h:81
ns3::Ipv6FlowProbe::DROP_INVALID_REASON
@ DROP_INVALID_REASON
Fallback reason (no known reason)
Definition:
ipv6-flow-probe.h:87
ns3::Ipv6FlowProbe::DROP_QUEUE
@ DROP_QUEUE
Packet dropped due to queue overflow.
Definition:
ipv6-flow-probe.h:73
ns3::Ipv6FlowProbe::SendOutgoingLogger
void SendOutgoingLogger(const Ipv6Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t interface)
Log a packet being sent.
Definition:
ipv6-flow-probe.cc:281
ns3::Ipv6Header
Packet header for IPv6.
Definition:
ipv6-header.h:35
ns3::Ipv6L3Protocol::DropReason
DropReason
Reason why a packet has been dropped.
Definition:
ipv6-l3-protocol.h:82
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
uint32_t
flow-probe.h
ipv6-flow-classifier.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
flow-monitor
model
ipv6-flow-probe.h
Generated on Thu Feb 8 2024 09:24:45 for ns-3 by
1.9.6