blob: 134126b3ea7f6dbb1af3a5f90a4ab51265e3e4e7 [file] [log] [blame]
Jonathan Hart9a426f82015-09-03 15:43:13 +02001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16
17package org.onosproject.reactive.routing;
18
19/**
20 * Specifies the type of traffic.
21 * <p>
22 * We classify traffic by the first packet of each traffic.
23 * </p>
24 */
25enum TrafficType {
26 /**
27 * Traffic from a host located in local SDN network wants to
28 * communicate with destination host located in Internet (outside
29 * local SDN network).
30 */
31 HOST_TO_INTERNET,
32 /**
33 * Traffic from Internet wants to communicate with a host located
34 * in local SDN network.
35 */
36 INTERNET_TO_HOST,
37 /**
38 * Both the source host and destination host of a traffic are in
39 * local SDN network.
40 */
41 HOST_TO_HOST,
42 /**
43 * Traffic from Internet wants to traverse local SDN network.
44 */
45 INTERNET_TO_INTERNET,
46 /**
47 * Any traffic wants to communicate with a destination which has
48 * no route, or traffic from Internet wants to access a local private
49 * IP address.
50 */
51 DROP,
52 /**
53 * Traffic does not belong to the types above.
54 */
55 UNKNOWN
56}