Performance Evaluation of Tcpdump

Total Page:16

File Type:pdf, Size:1020Kb

Performance Evaluation of Tcpdump Performance Evaluation of Tcpdump Farhan Jiva University of Georgia Abstract performed relatively similar with respect to packet loss. FreeBSD performed the worst out of the op- With the onset of high-speed networks, using erating systems tested, while Windows usually dis- tcpdump in a reliable fashion can become prob- plays seemingly random spikes of packet loss. For lematic when facing the poor performance of mod- each of the datasets we tested, we found that Fedora ern operating systems. Because of this limitation, performs the best. The rest of the paper is laid out the amount of packet loss a user is willing to face as follows: is an important factor when choosing an operating system for a specific task. In this paper, we evaluate the performance of tcpdump on five modern operat- • In Section 2 we discuss some related work. ing systems. 1 Introduction • Section 3 covers our evaluation, along with our experimental setup and experimental results. The reliable usage of tcpdump as a network an- alyzing/debugging/monitoring tool is arguably a non-trivial task. With the onset of high-speed net- • In Section 4, we discuss our conclusions. works, using tcpdump in a reliable fashion can become problematic when facing the poor perfor- mance of modern operating systems. It is because of this limitation that the amount of packet loss be- 2 Related Work comes an inevitable factor when choosing an oper- ating system for a specific task. For example, a re- One approach to increasing the performance of searcher who needs to extract binary executable files packet capturing is explained by Deri et al. [1] In from a live network interface will require there to their paper, they introduce a new type of socket be zero packet loss in tcpdump when choosing an (PF RING) based on circular buffers which is opti- operating system (because the loss of even a single mized for packet capturing. They show that by mak- packet can be severely detrimental to his work). ing certain modifications to the Linux kernel, they In this paper, we provide a performance eval- were able to decrease packet loss substantially, even uation of tcpdump on five, popular, out-of-the- on commodity hardware. Whereas Deri et al. pro- box installations of modern operating systems. The vide insight on methods for increasing the perfor- operating systems we evaluate are Ubuntu Server mance for packet capturing, the work presented in 10.10, Debian 5.0, FreeBSD 8.1, Fedora 14, and this paper provides only a survey of how modern op- Windows 7. In performing the evaluation, we have erating systems stand-up to packet loss, and makes found that tcpdump on Ubuntu Server and Debian no attempt to increase or decrease performance. 3 Evaluation 100 3.1 Experimental Setup 80 In the following section, we will describe our experimental setup. In addition, we will discuss the 60 datasets that were used for the evaluation, as well Percent as provide some statistics about them. 40 TCP UDP Other Testing platform. To carry out our evalua- 20 tion, we chose a variety of operating systems. Included were Ubuntu Server 10.10, Debian 5.0, 0 HTTP Flash Skype Mixed Fedora 14, FreeBSD 8.1, and Windows 7. Each Dataset operating system was installed on partitioned hard disks spanning across two machines. These Figure 1: Breakdown of UDP and TCP packets for machines contained IntelR CoreTMi7 processors each dataset (2.80Ghz) and contained 8GB of DDR3 memory. Each also had a 1 terabyte SATA hard disk running About 75% of the Mixed dataset were made up at 7,200 RPMs. After the operating systems were of TCP packets while the other 25% percent were installed, no patches or updates were performed. made up of UDP packets. Datasets. For our evaluation, we used a total Distribution of packet lengths. To get a bet- of 4 datasets. These datasets were in the form ter idea of the frequency of packet lengths in each of packet-capture (pcap) files, each containing a dataset, we provide frequency distribution graphs. different type of activity that a user would normally Note that each of these frequency distribution perform on the Internet. Each dataset was generated graphs is binned at every 100th interval. Figures by us and was captured using tcpdump: 2 and 3 show the frequency distribution for the • HTTP dataset. This dataset contained a web HTTP and Flash dataset, respectively. As shown in browsing session. It contained mainly HTML these figures, these two datasets follow a similar and image content. distribution pattern with respect to UDP and TCP packets. In the TCP distribution, it can be seen that • Flash dataset. This dataset strictly contained for both of these datasets, the packet lengths 1518 flash content. The content was gathered while bytes (maximum length of an Ethernet frame) and browsing Youtube and Trance.fm. 66 bytes occur most frequently. Skype dataset. This dataset contained Skype • Figures 4 and 5 show the frequency distribu- Voice-over-IP traffic. tion for the Skype and Mixed dataset, respectively. • Mixed dataset. This dataset was a combi- As mentioned earlier, the Skype dataset is made up nation of the above three datasets. The pro- almost entirely of UDP packets. This is because gram mergecap1 was used to combine these Skype’s protocol is based on UDP. In this dataset, datasets. UDP packets of length 1429 bytes occurred most frequently. The maximum UDP packet lengths Figure 1 displays the breakdown of TCP and for the Skype dataset are noticeably larger than UDP packets for each of the dataset. Most packets the ones seen in HTTP and Flash dataset. These in the HTTP and Flash dataset contained TCP pack- packets likely contain the voice data. It can ets, whereas the Skype dataset consisted almost also be seen from this distribution that there is entirely of UDP packets. Much of the UDP packets a frequency spike in the 0-200 byte range. It is in the HTTP dataset were related to DNS queries. speculated that Skype’s control traffic has packet 2 UDP packets in HTTP dataset UDP packets in Skype dataset Frequency Frequency 0 100 300 500 0 5000 15000 100 200 300 400 500 0 200 400 600 800 1000 1200 1400 Packet length Packet length TCP packets in HTTP dataset TCP packets in Skype dataset Frequency Frequency 0 2000 6000 0 50 100 150 0 500 1000 1500 0 500 1000 1500 Packet length Packet length Figure 2: Frequency distribution of packet lengths Figure 4: Frequency distribution of packet lengths in the HTTP dataset in the Skype dataset UDP packets in Flash dataset UDP packets in Mixed dataset Frequency Frequency 0 20 40 60 0 5000 15000 100 200 300 400 0 200 400 600 800 1000 1200 1400 Packet length Packet length TCP packets in Flash dataset TCP packets in Mixed dataset Frequency Frequency 0 20000 60000 0 20000 60000 0 500 1000 1500 0 500 1000 1500 Packet length Packet length Figure 3: Frequency distribution of packet lengths Figure 5: Frequency distribution of packet lengths in the Flash dataset in the Mixed dataset set in tcpreplay which tells it to transmit the lengths in this range. As shown in Figure 5, pcap file ”as fast as it can.” For each of these bitrate the frequency distribution of the Mixed dataset is intervals, we run 10 rounds of tests and gather a combination of the other frequency distributions. the statistics-output from tcpdump. This output contains information regarding the number of Performance tests. To conduct the perfor- dropped packets, the number of packets captured, tcpdump mance tests on , we set up a mirror port and the number of packets received by the filter. on a Cisco 2950 Gigabit Switch. For each of the Using this information, we define a formula for the tcpdump2 operating systems, we set to listen and packet loss ratio (PLR): capture3 on this mirror port. On another port, we used tcpreplay45 to replay each of the datasets over the network. tcpreplay can be configured NumberOfDroppedPacketsi such that it will replay the pcap file at a given P LRi = NumberOfPacketsReceivedByFilteri bitrate. For our evaluation, we used bitrate intervals of {100Mbps, 200Mbps, ..., 900Mbps, topspeed}. where i is a round from {1-10}. For each 10 topspeed is a command-line switch that can be rounds of tests for each bitrate interval, we calculate 3 the PLR. From these 10 PLRs, we select the median tcpreplay is not the true bitrate at which it value along with its corresponding bitrate interval transfers data. To overcome this discrepancy, and use this information to report our results. The we conducted a small experiment to observe the actual setup for this experiment is described as fol- differences between specified bitrate speeds in lows: tcpreplay and actual bitrate speeds. • Start tcpreplay on looped-mode at a partic- For this experiment, we measured the discrep- ular bitrate interval on one machine. ancy in tcpreplay’s bitrate by using tcpdump. This experiment was done using a single network • Shortly after, start tcpdump(with the -c flag set to 100000 and -s flag set to 1518)67 on the interface on one of the machines described above. tcpdump second machine which is connected to the mir- By using some meta-information that ror port. provides (byte size of captured pcap file, time it took to capture the file), we can use it as a tool • tcpdump is run for 10 rounds at this particu- to test the actual speed it took for the capture to lar bitrate interval, saving the captured packets take place. We explain the steps of the experiment onto disk.
Recommended publications
  • TCPDUMP Caution
    TCPDUMP q Refer to book ”Open Source Network Administration” m Online sample chapter: http://www.phptr.com/articles/article.asp?p=170902&seqNum=4 q Some tools are not based directly on the data being transmitted on a network, but information related to that data. m For example, network bandwidth values m System logs on network equipment q Sometimes needs to examine the packets themselves. m Diagnose some particularly tricky network problems q Widely used open source tool for directly analyzing packets: tcpdump m http://www.tcpdump.org/ Network Analyzer 1-1 Caution q Before you use tcpdump or other analyzer: m Will be able to see some private data m Consult/research Legal implication first m Respect the privacy of other users Network Analyzer 1-2 1 What Tcpdump can do for you q View the entire data portion of an Ethernet frame or other link layer protocol m An IP packet m An ARP packet m Or any protocol at a higher layer than Ethernet. q Very useful m Tcpdump is to a network administrator like a microscope to a biologist. m Give a very clear picture of a specific part of your network m Can be used when the problem is simply that something is not working properly. Network Analyzer 1-3 What tcpdump can do for you? q Case1 : Web browser can not load pages from a server – it hangs. m Problem with client? Server? Or between? m Run tcpdump while loading • Watch every stage to see the following – DNS query – HTTP request to server – Server respond q Case 2: help debug denial of service attacks.
    [Show full text]
  • I3: Maximizing Packet Capture Performance
    I3: Maximizing Packet Capture Performance Andrew Brown Agenda • Why do captures drop packets, how can you tell? • Software considerations • Hardware considerations • Potential hardware improvements • Test configurations/parameters • Performance results Sharkfest 2014 What is a drop? • Failure to capture a packet that is part of the traffic in which you’re interested • Dropped packets tend to be the most important • Capture filter will not necessarily help Sharkfest 2014 Why do drops occur? • Applications don’t know that their data is being captured • Result: Only one chance to capture a packet • What can go wrong? Let’s look at the life of a packet Sharkfest 2014 Internal packet flow • Path of a packet from NIC to application (Linux) • Switch output queue drops • Interface drops • Kernel drops Sharkfest 2014 Identifying drops • Software reports drops • L4 indicators (TCP ACKed lost segment) • L7 indicators (app-level sequence numbers revealed by dissector) Sharkfest 2014 When is (and isn’t) it necessary to take steps to maximize capture performance? • Not typically necessary when capturing traffic of <= 1G end device • More commonly necessary when capturing uplink traffic from a TAP or SPAN port • Some sort of action is almost always necessary at 10G • Methods described aren’t always necessary • Methods focus on free solutions Sharkfest 2014 Software considerations - Windows • Quit unnecessary programs • Avoid Wireshark for capturing ˗ Saves to TEMP ˗ Additional processing for packet statistics • Uses CPU • Uses memory over time, can lead
    [Show full text]
  • Of Mobile Devices: a Survey on Network Traffic Analysis
    1 The Dark Side(-Channel) of Mobile Devices: A Survey on Network Traffic Analysis Mauro Conti, Senior Member, IEEE, QianQian Li, Alberto Maragno, and Riccardo Spolaor*, Member, IEEE. Abstract—In recent years, mobile devices (e.g., smartphones elements enable both smartphones and tablets to have the and tablets) have met an increasing commercial success and same functionalities typically offered by laptops and desktop have become a fundamental element of the everyday life for computers. billions of people all around the world. Mobile devices are used not only for traditional communication activities (e.g., voice According to the statistics reported in [1], smartphone calls and messages) but also for more advanced tasks made users were 25:3% of the global population in 2015, and this possible by an enormous amount of multi-purpose applications percentage is expected to grow till 37% in 2020. Similarly, the (e.g., finance, gaming, and shopping). As a result, those devices statistics about tablets reported in [2] indicate a global penetra- generate a significant network traffic (a consistent part of the overall Internet traffic). For this reason, the research community tion of 13:8% in 2015, expected to reach 19:2% in 2020. The has been investigating security and privacy issues that are related driving forces of this tremendous success are the ubiquitous to the network traffic generated by mobile devices, which could Internet connectivity, thanks to the worldwide deployment of be analyzed to obtain information useful for a variety of goals cellular and Wi-Fi networks, and a large number of apps (ranging from fine-grained user profiling to device security and available in the official (and unofficial) marketplaces.
    [Show full text]
  • PF: the Openbsd Packet Filter
    PF: The OpenBSD Packet Filter Languages: [en] [de] [es] [fr] [id] [ja] [pl] [up to FAQ] [Next: Getting Started] PF: The OpenBSD Packet Filter Table of Contents ● Basic Configuration ❍ Getting Started ❍ Lists and Macros ❍ Tables ❍ Packet Filtering ❍ Network Address Translation ❍ Traffic Redirection (Port Forwarding) ❍ Shortcuts For Creating Rulesets ● Advanced Configuration ❍ Runtime Options ❍ Scrub (Packet Normalization) ❍ Anchors and Named (Sub) Rulesets ❍ Packet Queueing and Prioritization ❍ Address Pools and Load Balancing ❍ Packet Tagging ● Additional Topics ❍ Logging ❍ Performance ❍ Issues with FTP ❍ Authpf: User Shell for Authenticating Gateways ● Example Rulesets ❍ Example: Firewall for Home or Small Office Packet Filter (from here on referred to as PF) is OpenBSD's system for filtering TCP/IP traffic and doing Network Address Translation. PF is also capable of normalizing and conditioning TCP/IP traffic and providing bandwidth control and packet prioritization. PF has been a part of the GENERIC OpenBSD kernel since OpenBSD 3.0. Previous OpenBSD releases used a different firewall/NAT package which is no longer supported. PF was originally developed by Daniel Hartmeier and is now maintained and developed by Daniel and the rest of the OpenBSD team. This set of documents is intended as a general introduction to the PF system as run on OpenBSD. It is intended to be used as a supplement to the man pages, not as a replacement for them. This document covers all of PF's major features. For a complete and http://www.openbsd.org/faq/pf/index.html (1 of 2) [02/06/2005 14:54:58] PF: The OpenBSD Packet Filter in-depth view of what PF can do, please start by reading the pf(4) man page.
    [Show full text]
  • Tcpdump Basics
    TCPdump Basics What we will cover: What is/are TCPdump/WinDump? Why use TCPdump? Installation of TCPdump on Unix/Windows It’s installed, now what? Changing the amount of data collected Reading TCPdump/WinDump Output TCP Flags in TCPdump/WinDump Absolute & Relative Sequence Numbers Dumping TCPdump/WinDump output in hexadecimal format TCPdump ManPage TCPdump is a tool we can use for packet analysis. We will not use ethereal (wireshark) because it does “too much” for us. TCPdump will keep everything “raw” and that’s the way we like it! *note: it is expected that the reader will try out all the TCPdump/WinDump commands listed in the lesson on their own computers as well as the practical exercises. You have to actually run the commands to learn how to use the tool. What is/are TCPdump/WinDump? TCPdump, and its cousin WinDump, is software that allows us to see inside the traffic activity that occurs on a network. TCPdump is a Unix tool used to gather data from the network, decipher the bits, and display the output in a human readable format (granted it does take a little bit of instruction to learn the TCPdump language). Why use TCPdump? Network traffic travels in data packets; each data packet contains the information that it needs to travel across the network. This information is contained in a TCP header. A TCP header will contain the destination and source address, state information, and protocol identifiers. The rest of the packet contains the data that is being sent. Devices that are responsible for routing read the information in these packets and send them to their correct destination.
    [Show full text]
  • BSD Projects IV – BSD Certification • Main Features • Community • Future Directions a (Very) Brief History of BSD
    BSD Overview Jim Brown May 24, 2012 BSD Overview - 5/24/2012 - Jim Brown, ISD BSD Overview I – A Brief History of BSD III – Cool Hot Stuff • ATT UCB Partnership • Batteries Included • ATT(USL) Lawsuit • ZFS , Hammer • BSD Family Tree • pf Firewall, pfSense • BSD License • Capsicum • Virtualization Topics • Jails, Xen, etc. • Desktop PC-BSD II – The Core BSD Projects IV – BSD Certification • Main Features • Community • Future Directions A (Very) Brief History of BSD 1971 – ATT cheaply licenses Unix source code to many organizations, including UCB as educational material 1975 – Ken Thompson takes a sabbatical from ATT, brings the latest Unix source on tape to UCB his alma mater to run on a PDP 11 which UCB provided. (Industry/academic partnerships were much more common back then.) Computer Science students (notably Bill Joy and Chuck Haley) at UCB begin to make numerous improvements to Unix and make them available on tape as the “Berkeley Software Distribution” - BSD A (Very) Brief History of BSD Some notable CSRG • 1980 – Computer Science Research Group members (CSRG) forms at UCB with DARPA funding to make many more improvements to Unix - job control, autoreboot, fast filesystem, gigabit address space, Lisp, IPC, sockets, TCP/IP stack + applications, r* utils, machine independence, rewriting almost all ATT code with UCB/CSRG code, including many ports • 1991 – The Networking Release 2 tape is released on the Internet via anon FTP. A 386 port quickly follows by Bill and Lynne Jolitz. The NetBSD group is formed- the first Open Source community entirely on the Internet • 1992 – A commercial version, BSDI (sold for $995, 1-800-ITS-UNIX) draws the ire of USL/ATT.
    [Show full text]
  • BERKELEY PACKET FILTER: Theory, Practice and Perspectives
    Alma Mater Studiorum · Universita` di Bologna SCUOLA DI SCIENZE Corso di Laurea in Informatica BERKELEY PACKET FILTER: theory, practice and perspectives Relatore: Presentata da: Chiar.mo Prof. MICHELE DI STEFANO RENZO DAVOLI Sessione II Anno Accademico 2019/2020 All operating systems sucks, but Linux just sucks less. Linus Torvalds Introduction Initially packet filtering mechanism in many Unix versions was imple- mented in the userspace, meaning that each packet was copied from the kernel-space to the user-space before being filtered. This approach resulted to be inefficient compared with the performance shown by the introduction of the BSD classic Berkeley Packet Filter (cBPF). cBPF consists of an as- sembly language for a virtual machine which resides inside the kernel. The assembly language can be used to write filters that are loaded in to the ker- nel from the user-space allowing the filtering to happen in the kernel-space without copying each packet as before. cBPF use is not limited to just the networking domain but it is also applied as a mechanism to filter system calls through seccomp mode. Seccomp allows the programmer to arbitrary select which system calls to permit, representing an useful mechanism to implement sandboxing. In order to increase the number of use cases and to update the architecture accordingly to new advancements in modern processors, the virtual machine has been rewritten and new features have been added. The result is extended Berkeley Packet Filter (eBPF) which consists of a richer assembly, more pro- gram types, maps to store key/value pairs and more components. Currently eBPF (or just BPF) is under continuous development and its capacities are evolving, although the main uses are networking and tracing.
    [Show full text]
  • <[email protected]> Asiabsdcon 2012 Tokyo University of Science, Tokyo, Japan 22
    <unnamed>: mpd304-L1-lt: mpd294-lso: mpd294-eso: mpd294-cso: mpd304-eso: mpd304-cso: ngctl306: ksocket [11]: tee [d]: socket [3]: socket [5]: socket [4]: socket [c]: socket [b]: socket [13]: <unnamed>: mpd304-lso: inet/dgram/udp left2right l2tp [f]: socket [a]: <unnamed>: lower ctrl l0 socket [e]: ctrl Introduction to NETGRAPH on FreeBSD Systems Dr. Adrian Steinmann <[email protected]> AsiaBSDCon 2012 Tokyo University of Science, Tokyo, Japan 22 – 25 March, 2012 Tutorial Materials Extended Abstract Tutorial Slides ʻAll About Netgraphʼ man 8 ngctl man 8 nghook man 4 netgraph About Myself Ph.D. in Mathematical Physics (long time ago) Webgroup Consulting AG (now) IT Consulting: Open Source, Security, Perl FreeBSD since version 1.0 (1993) NetBSD since version 3.0 (2005) Traveling, Sculpting, Go Tutorial Outline (1) Netgraph in a historical context (2) Getting to know netgraph (3) Working with netgraph (4) Details of frequently used netgraph node types (5) Examples using netgraph nodes as building blocks (6) Investigate some more sophisticated examples (7) Guidelines for implementing custom node types What is Netgraph Netgraph is in-kernel ‘network plumbing’ Drawn as a graph, a communication protocol can be seen as data packets flowing (bidirectionally) along the edges (lines) between nodes where the packets are processed. In FreeBSD since version 3.0 (2000) Created on FreeBSD 2.2 (1996) by Archie Cobbs <[email protected]> and Julian Elischer <[email protected]> for the Whistle InterJet at Whistle Communications, Inc. Ancient History Dennis Ritchie
    [Show full text]
  • The Book of PF Covers the Most • Stay in Control of Your Traffic with Monitoring and Up-To-Date Developments in PF, Including New Content PETER N.M
    EDITION3RD BUILD A Covers OpenBSD 5.6, MORE SECURE FreeBSD 10.x, and NETWORK EDITION NETWORK 3RD NetBSD 6.x WITH PF THETHE BOOKBOOK THE BOOK OF PF OF THE BOOK THE BOOK OF PF OF THE BOOK OFOF PFPF OpenBSD’s stateful packet filter, PF, is the heart of • Build adaptive firewalls to proactively defend against A GUIDE TO THE the OpenBSD firewall. With more and more services attackers and spammers NO-NONSENSE placing high demands on bandwidth and an increas- OPENBSD FIREWALL • Harness OpenBSD’s latest traffic-shaping system ingly hostile Internet environment, no sysadmin can to keep your network responsive, and convert your afford to be without PF expertise. existing ALTQ configurations to the new system The third edition of The Book of PF covers the most • Stay in control of your traffic with monitoring and up-to-date developments in PF, including new content PETER N.M. HANSTEEN visualization tools (including NetFlow) on IPv6, dual stack configurations, the “queues and priorities” traffic-shaping system, NAT and redirection, The Book of PF is the essential guide to building a secure wireless networking, spam fighting, failover provision- network with PF. With a little effort and this book, you’ll ing, logging, and more. be well prepared to unlock PF’s full potential. You’ll also learn how to: ABOUT THE AUTHOR • Create rule sets for all kinds of network traffic, whether Peter N.M. Hansteen is a consultant, writer, and crossing a simple LAN, hiding behind NAT, traversing sysadmin based in Bergen, Norway. A longtime DMZs, or spanning bridges or wider networks Freenix advocate, Hansteen is a frequent lecturer on OpenBSD and FreeBSD topics, an occasional • Set up wireless networks with access points, and contributor to BSD Magazine, and the author of an lock them down using authpf and special access often-slashdotted blog (http://bsdly.blogspot.com/ ).
    [Show full text]
  • Problem Solving and Troubleshooting in AIX 5L
    Front cover Problem Solving and Troubleshooting in AIX 5L Introduction of new problem solving tools and changes in AIX 5L Step by step troubleshooting in real environments Complete guide to the problem determination process HyunGoo Kim JaeYong An John Harrison Tony Abruzzesse KyeongWon Jeong ibm.com/redbooks International Technical Support Organization Problem Solving and Troubleshooting in AIX 5L January 2002 SG24-5496-01 Take Note! Before using this information and the product it supports, be sure to read the general information in “Special notices” on page 439. Second Edition (January 2002) This edition applies to IBM ^ pSeries and RS/6000 Systems for use with the AIX 5L Operating System Version 5.1 and is based on information available in August, 2001. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. JN9B Building 003 Internal Zip 2834 11400 Burnet Road Austin, Texas 78758-3493 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1999-2002. All rights reserved. Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Figures . xiii Tables . xv Preface . xvii The team that wrote this redbook. xvii Special notice . xix IBM trademarks . xix Comments welcome. xix Chapter 1. Problem determination introduction. 1 1.1 Problem determination process . 3 1.1.1 Defining the problem . 3 1.1.2 Gathering information from the user .
    [Show full text]
  • Controlling Gpios on Rpi Using Ping Command
    Ver. 3 Department of Engineering Science Lab – Controlling PI Controlling Raspberry Pi 3 Model B Using PING Commands A. Objectives 1. An introduction to Shell and shell scripting 2. Starting a program at the Auto-start 3. Knowing your distro version 4. Understanding tcpdump command 5. Introducing tshark utility 6. Interfacing RPI to an LCD 7. Understanding PING command B. Time of Completion This laboratory activity is designed for students with some knowledge of Raspberry Pi and it is estimated to take about 5-6 hours to complete. C. Requirements 1. A Raspberry Pi 3 Model 3 2. 32 GByte MicroSD card à Give your MicroSD card to the lab instructor for a copy of Ubuntu. 3. USB adaptor to power up the Pi 4. Read Lab 2 – Interfacing with Pi carefully. D. Pre-Lab Lear about ping and ICMP protocols. F. Farahmand 9/30/2019 1 Ver. 3 Department of Engineering Science Lab – Controlling PI E. Lab This lab has two separate parts. Please make sure you read each part carefully. Answer all the questions. Submit your codes via Canvas. 1) Part I - Showing IP Addresses on the LCD In this section we learn how to interface an LCD to the Pi and run a program automatically at the boot up. a) Interfacing your RPI to an LCD In this section you need to interface your 16×2 LCD with Raspberry Pi using 4-bit mode. Please note that you can choose any type of LCD and interface it to your PI, including OLED. Below is the wiring example showing how to interface a 16×2 LCD to RPI.
    [Show full text]
  • A Forensic Approach to Perform Android Device Analysis
    International Journal of Recent Technology and Engineering (IJRTE) ISSN: 2277-3878, Volume-7, Issue-6S, March 2019 A Forensic Approach to perform Android Device Analysis Masanam. Sai Prasanna Lakshmi, Pasupuleti Rajesh Abstract— Android smartphones are providing a lot of KitKat, Lollipop, Marshmallow, Noughat, Oreo, and the interesting shreds of evidence to perform forensic investigation. latest Android version is Pie. [4] Every installed application has log files which provide some The Android platform is mostly composed by using SDK valuable information. Android device can provide potential (Software Development Kit). The SDK is a set of tools shreds of evidence which include internal and external storage data, shared preferences, internet artifacts, user data, application provided by Google that provides advanced background for data and hidden directories etc [1]. To perform a complete forensic creating Android compatible applications. Android investigation to an android device, the tools available for mobile applications are written in Java programming language forensics are highly cost effective. And there are some open using Application Programming Interface (API). To make source tools which are having limitations i.e., we can read the an android application a Java source code is developed, data in the mobile but we can’t extract the data and to proceed compiled and formatted into a bytecode. The renewed code for forensic investigation. The forensic investigators will rely on [5] commercial tools which will analyze the entire device and is executed in a virtual machine called Dalvik-VM . generate the report which is used for further forensic analysis. In Dalvik was designed by Dan Bornstein, which is integrated order to perform complete analysis of an android device, a in the software stack that builds up the Android platform.
    [Show full text]