blob: fec5a17df5029c437925d20256bc9086106ae8db [file] [log] [blame]
Carmelo Casconedefc74e2020-07-17 15:27:02 -07001/*
2 * Copyright 2020-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.behaviour.inbandtelemetry;
17
18/**
19 * Represents a type of INT metadata.
20 */
21public enum IntMetadataType {
22 /**
23 * ID of a switch, unique in the scope of the whole network.
24 */
25 SWITCH_ID,
26 /**
27 * The port on which the INT packet was received and sent out.
28 */
29 L1_PORT_ID,
30 /**
31 * Time taken for the INT packet to be switched within the device.
32 */
33 HOP_LATENCY,
34 /**
35 * The build-up of traffic in the queue that the INT packet observes
36 * in the device while being forwarded.
37 */
38 QUEUE_OCCUPANCY,
39 /**
40 * The device local time when the INT packet was received on the ingress port.
41 */
42 INGRESS_TIMESTAMP,
43 /**
44 * The device local time when the INT packet was processed by the egress port.
45 */
46 EGRESS_TIMESTAMP,
47 /**
48 * The logical ports on which the INT packet was received and sent out.
49 */
50 L2_PORT_ID,
51 /**
52 * Current utilization of the egress port via witch the INT packet was sent out.
53 */
54 EGRESS_TX_UTIL
55}