Towards Machine Learning Inference in the Data Plane
Recently, machine learning has been considered an important tool for various networkingrelated use cases such as intrusion detection, flow classification, etc. Traditionally, machinelearning based classification algorithms run on dedicated machines that are outside of thefast path, e.g. on Deep Pack...
Main Author: | |
---|---|
Format: | Others |
Language: | English |
Published: |
Karlstads universitet, Institutionen för matematik och datavetenskap (from 2013)
2019
|
Subjects: | |
Online Access: | http://urn.kb.se/resolve?urn=urn:nbn:se:kau:diva-72875 |
id |
ndltd-UPSALLA1-oai-DiVA.org-kau-72875 |
---|---|
record_format |
oai_dc |
spelling |
ndltd-UPSALLA1-oai-DiVA.org-kau-728752019-06-28T09:52:35ZTowards Machine Learning Inference in the Data PlaneengLanglet, JonatanKarlstads universitet, Institutionen för matematik och datavetenskap (from 2013)2019Machine learning Data Plane SmartNIC Artificial Neural Network Inference Flow ClassificationComputer SciencesDatavetenskap (datalogi)Recently, machine learning has been considered an important tool for various networkingrelated use cases such as intrusion detection, flow classification, etc. Traditionally, machinelearning based classification algorithms run on dedicated machines that are outside of thefast path, e.g. on Deep Packet Inspection boxes, etc. This imposes additional latency inorder to detect threats or classify the flows.With the recent advance of programmable data planes, implementing advanced function-ality directly in the fast path is now a possibility. In this thesis, we propose to implementArtificial Neural Network inference together with flow metadata extraction directly in thedata plane of P4 programmable switches, routers, or Network Interface Cards (NICs).We design a P4 pipeline, optimize the memory and computational operations for our dataplane target, a programmable NIC with Micro-C external support. The results show thatneural networks of a reasonable size (i.e. 3 hidden layers with 30 neurons each) can pro-cess flows totaling over a million packets per second, while the packet latency impact fromextracting a total of 46 features is 1.85μs. Student thesisinfo:eu-repo/semantics/bachelorThesistexthttp://urn.kb.se/resolve?urn=urn:nbn:se:kau:diva-72875application/pdfinfo:eu-repo/semantics/openAccess |
collection |
NDLTD |
language |
English |
format |
Others
|
sources |
NDLTD |
topic |
Machine learning Data Plane SmartNIC Artificial Neural Network Inference Flow Classification Computer Sciences Datavetenskap (datalogi) |
spellingShingle |
Machine learning Data Plane SmartNIC Artificial Neural Network Inference Flow Classification Computer Sciences Datavetenskap (datalogi) Langlet, Jonatan Towards Machine Learning Inference in the Data Plane |
description |
Recently, machine learning has been considered an important tool for various networkingrelated use cases such as intrusion detection, flow classification, etc. Traditionally, machinelearning based classification algorithms run on dedicated machines that are outside of thefast path, e.g. on Deep Packet Inspection boxes, etc. This imposes additional latency inorder to detect threats or classify the flows.With the recent advance of programmable data planes, implementing advanced function-ality directly in the fast path is now a possibility. In this thesis, we propose to implementArtificial Neural Network inference together with flow metadata extraction directly in thedata plane of P4 programmable switches, routers, or Network Interface Cards (NICs).We design a P4 pipeline, optimize the memory and computational operations for our dataplane target, a programmable NIC with Micro-C external support. The results show thatneural networks of a reasonable size (i.e. 3 hidden layers with 30 neurons each) can pro-cess flows totaling over a million packets per second, while the packet latency impact fromextracting a total of 46 features is 1.85μs. |
author |
Langlet, Jonatan |
author_facet |
Langlet, Jonatan |
author_sort |
Langlet, Jonatan |
title |
Towards Machine Learning Inference in the Data Plane |
title_short |
Towards Machine Learning Inference in the Data Plane |
title_full |
Towards Machine Learning Inference in the Data Plane |
title_fullStr |
Towards Machine Learning Inference in the Data Plane |
title_full_unstemmed |
Towards Machine Learning Inference in the Data Plane |
title_sort |
towards machine learning inference in the data plane |
publisher |
Karlstads universitet, Institutionen för matematik och datavetenskap (from 2013) |
publishDate |
2019 |
url |
http://urn.kb.se/resolve?urn=urn:nbn:se:kau:diva-72875 |
work_keys_str_mv |
AT langletjonatan towardsmachinelearninginferenceinthedataplane |
_version_ |
1719214185373499392 |