Jonathan Hart | 9a426f8 | 2015-09-03 15:43:13 +0200 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Jonathan Hart | 9a426f8 | 2015-09-03 15:43:13 +0200 | [diff] [blame] | 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 | |
| 17 | package 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 | */ |
| 25 | enum 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 | } |