Packet Sniffer using Multicore programming. By B.A.Khivsara Assistant Professor Computer Department SNJB s KBJ COE,Chandwad



Similar documents
Packet Sniffer Detection with AntiSniff

A Research Study on Packet Sniffing Tool TCPDUMP

Analysing Various Packet Sniffing Tools

Packet Sniffers Submitted in partial fulfillment of the requirement for the award of degree Of MCA

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

Intrusion Detection, Packet Sniffing

Multi-core and Linux* Kernel

Network Monitoring and Traffic Analysis

Detecting Threats in Network Security by Analyzing Network Packets using Wireshark

Lab VI Capturing and monitoring the network traffic

WIRELESS SECURITY. Information Security in Systems & Networks Public Development Program. Sanjay Goel University at Albany, SUNY Fall 2006

Network Security. Network Packet Analysis

Performance of Software Switching

Network Security. 1 Pass the course => Pass Written exam week 11 Pass Labs

Network Security: Workshop

Computer Networking LAB 2 HTTP

Enabling Technologies for Distributed Computing

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

COMP416 Lab (1) Wireshark I. 23 September 2013

The Lagopus SDN Software Switch. 3.1 SDN and OpenFlow. 3. Cloud Computing Technology

Introduction to Passive Network Traffic Monitoring

Achieving Nanosecond Latency Between Applications with IPC Shared Memory Messaging

Enabling Technologies for Distributed and Cloud Computing

evm Virtualization Platform for Windows

information security and its Describe what drives the need for information security.

Intel DPDK Boosts Server Appliance Performance White Paper

CHAPTER 1 INTRODUCTION

CSE 3214: Computer Network Protocols and Applications

Rebasoft Auditor Quick Start Guide

Packet Sniffing: What it s Used for, its Vulnerabilities, and How to Uncover Sniffers

Pen Testing Methodology Gueststealer TomCat Zero Day Directory Traversal VASTO

Lecture 11: Multi-Core and GPU. Multithreading. Integration of multiple processor cores on a single chip.

INTRUSION DETECTION SYSTEM

Network/Internet Forensic and Intrusion Log Analysis

Introduction to Network Security Lab 1 - Wireshark

Thread level parallelism

Introduction to Analyzer and the ARP protocol

Scaling Networking Applications to Multiple Cores

EKT 332/4 COMPUTER NETWORK

Python Scripting with Scapy

Real-time Debugging using GDB Tracepoints and other Eclipse features

WhatsUpGold. v3.0. WhatsConnected User Guide

MEASURING WORKLOAD PERFORMANCE IS THE INFRASTRUCTURE A PROBLEM?

Emerald. Network Collector Version 4.0. Emerald Management Suite IEA Software, Inc.

Data and Control Plane Interconnect solutions for SDN & NFV Networks Raghu Kondapalli August 2014

Computer Networks/DV2 Lab

School of Information Science (IS 2935 Introduction to Computer Security, 2003)

LEARNING COMPUTER SYSTEMS VULNERABILITIES EXPLOITATION THROUGH PENETRATION TEST EXPERIMENTS

Multi-core architectures. Jernej Barbic , Spring 2007 May 3, 2007

Question: 3 When using Application Intelligence, Server Time may be defined as.

Information Security. Training

Multi-Threading Performance on Commodity Multi-Core Processors

Making Multicore Work and Measuring its Benefits. Markus Levy, president EEMBC and Multicore Association

Intrusion Detection Systems (IDS)

High-Density Network Flow Monitoring

How to Build a Massively Scalable Next-Generation Firewall

Scaling Objectivity Database Performance with Panasas Scale-Out NAS Storage

Networking Virtualization Using FPGAs

General Network Security

SEUK. How to setup SIP Trunking?

Network Packet Analysis and Scapy Introduction

Creating a DUO MFA Service in AWS

Monitoring high-speed networks using ntop. Luca Deri

A DIY Hardware Packet Sniffer

10 Gbit Hardware Packet Filtering Using Commodity Network Adapters. Luca Deri Joseph Gasparakis

Lecture 3: Modern GPUs A Hardware Perspective Mohamed Zahran (aka Z) mzahran@cs.nyu.edu

WiFi Security Assessments

Computer Science 4302 Operating Systems. Student Learning Outcomes

When Recognition Matters THE COMPARISON OF PROGRAMS FOR NETWORK MONITORING.

Linux Network Security

Distribution One Server Requirements

20 Command Line Tools to Monitor Linux Performance

VPN vs Port Forwarding

Operating System Tutorial

Traffic Analyzer Based on Data Flow Patterns

CT LANforge-FIRE VoIP Call Generator

Course Title: Penetration Testing: Security Analysis

Network Forensics an emerging approach to an network analysis.

Securing Local Area Network with OpenFlow

JOB READY ASSESSMENT BLUEPRINT COMPUTER NETWORKING FUNDAMENTALS - PILOT. Test Code: 4514 Version: 01

Pluribus Netvisor Solution Brief

Intel Data Direct I/O Technology (Intel DDIO): A Primer >

Install Guide for JunosV Wireless LAN Controller

Network Traffic Analysis

FTP Peach Pit Data Sheet

Advanced Core Operating System (ACOS): Experience the Performance

White Paper. Recording Server Virtualization

CRYPTUS DIPLOMA IN IT SECURITY

Performance Tuning Guidelines for PowerExchange for Microsoft Dynamics CRM

Packet Sniffer A Comparative Study

Introduction to the NI Real-Time Hypervisor

Modern snoop lab lite version


Embedded Parallel Computing

OpenFlow with Intel Voravit Tanyingyong, Markus Hidell, Peter Sjödin

Scheduling. Scheduling. Scheduling levels. Decision to switch the running process can take place under the following circumstances:

Transcription:

Packet Sniffer using Multicore programming By B.A.Khivsara Assistant Professor Computer Department SNJB s KBJ COE,Chandwad

Outline Packet Sniffer Multicore Command for CPU info Program in Python

Packet Sniffer Definition: A packet sniffer is a wiretap device that plugs into computer networks and listens to the network traffic.

What are the components of a packet sniffer? 1. Hardware : standard network adapters. 2. Capture Filter : This is the most important part. It captures the network traffic from the wire, filters it for the particular traffic you want, then stores the data in a buffer. 3 Buffers : used to store the frames captured by the Capture Filter.

What are the components of a packet sniffer? 4. Real-time analyzer: a module in the packet sniffer program used for traffic analysis and to shift the traffic for intrusion detection. 5. Decoder : "Protocol Analysis".

How does a Sniffer Work? Sniffers also work differently depending on the type of network they are in. Shared Ethernet Switched Ethernet

How can you detect a packet sniffer? Ping method ARP method DNS method

Packet Sniffer Mitigation Host A Router A Router B Host B The following techniques and tools can be used to mitigate sniffers: Authentication Switched infrastructure Antisniffer tools Cryptography

Top Packet Sniffers Wireshark Kismet Tcpdump Cain and Abel Ettercap Dsniff NetStumbler Ntop Ngrep

What are sniffers used for? Detection of clear-text passwords and usernames from the network. Conversion of data to human readable format so that people can read the traffic. Performance analysis to discover network bottlenecks. Network intrusion detection in order to discover hackers.

Outline Packet Sniffer Multicore Command for CPU info Program in Python

Multi-core processors

Growth With each new generation of processors Smaller size Faster Increased heat dissipation Greater Consumption of power

Single Core Performance Technique used to increase single core performance was Pipelining

Single Core continued Another technique was multithreading Multithreading involves execution of two separate threads. Time is divided and interlaced between the two threads in order to simulate simultaneous execution

Problems with Single Core To execute the tasks faster you must increase the clock time. Increasing clock times too high drastically increases power consumption and heat dissipation to extremely high levels, making the processor inefficient.

Multi Core solution Creating two cores or more on the same Die increases processing power while keeping clock speeds at an efficient level. A processor with 2 cores running at efficient clock speeds can process instructions with similar speed to a single core processor running at twice the clock speed, yet the dual core processor would still consume less energy.

Multi-Core Advantages While working with many threads, a Multi Core processor with n cores can execute n threads simultaneously by assigning a core to each thread. A Single core processor must multithread with every single thread.

Other Incentives The name core dual and similar names are good for marketing. It has lower manufacturing costs. Uses proven processor designs.

Implementations shared memory model distributed memory model all cores share the same cache memory. each core has its own cache memory.

Implementations continued The Intel core duo design has a separate L1 cache memory for each core, but both cores share an L2 cache.

Problems with multi core processors Memory/Cache coherence. As mentioned earlier, some implementations have distributed L1 caches but must share an L2 cache. This poses the problem of making sure each core keeps the other updated with changes in the data in its own cache. Multi threading is also a problem when the software being run is not designed to take advantage of the multi core processor. This may mean that one core does most of the work which means that the processor is running no more efficiently than a single core.

Outline Packet Sniffer Multicore Command for CPU info Program in Python

Linux commands for CPU info nproc Shows no of processing units available lscpu Shows CPU architecture information in human readable form /proc/cpuinfo Contains information about individual core

Outline Packet Sniffer Multicore Command for CPU info Program in Python

Practical in Python: Prerequisite install scapy by sudo apt-get install scapy

Practical in Python from scapy.all import * import hashlib import os import sys import time import multiprocessing

Practical in Python def pkt_callback(pkt): print "\n\n" pkt.show() # debug statement def sniffing(filter_1,core): print "\n######## " + core + " ############\n" sniff(prn=pkt_callback, filter=filter_1, count=5) if name ==' main ': coreone = multiprocessing.process(target=sniffing("tcp","core 1")) coreone.start() coretwo = multiprocessing.process(target=sniffing("udp","core 2")) coretwo.start()

How to run Program? sudo python sniffer.py