Create a Python program using either dpkt or scapy to analyze your capture. The program should...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a Python program using either dpkt or scapy to analyze your capture. The program should should create a sliding window of adjustable length. For each window return a number between -1 and 1, indicating the per- centage of packets being sent by the server, and received by the server. Make sure your program does not require the entire capture to be read into main memory. Produce a docu- ment that contains the following. 1. Plots of the results for several window sizes. 2. Extract the timestamp of the packet. Bin the packets by time, and produce an average as above. Plot your results. 3. Extract the IPs from the incoming packets. Produce a table of the top ten countries of origin. 4. A brief overview of how your code works. Create a Python program using either dpkt or scapy to analyze your capture. The program should should create a sliding window of adjustable length. For each window return a number between -1 and 1, indicating the per- centage of packets being sent by the server, and received by the server. Make sure your program does not require the entire capture to be read into main memory. Produce a docu- ment that contains the following. 1. Plots of the results for several window sizes. 2. Extract the timestamp of the packet. Bin the packets by time, and produce an average as above. Plot your results. 3. Extract the IPs from the incoming packets. Produce a table of the top ten countries of origin. 4. A brief overview of how your code works.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Assuming that the Fed judges inflation to be the most significant problem in the economy and that it wishes to employ all of its policy instruments except interest on reserves, what should the Fed do...
-
A completed worksheet for The King Group is shown below. INSTRUCTIONS 1. Record balances as of December 31, 2019, in the ledger accounts. 2. Journalize (use 3 as the page number) and post the...
-
A hydrocarbon has a molecular ion peak at a mass-to charge ratio of 84 (relative abundance of 62.0%) and an [M + 1] peak with a relative abundance of 4.1%. a. How many carbon atoms are in the...
-
True or False: Accelerometers must be used instead of proximity probes to see gear mesh frequencies.
-
Moffett Company reports the following information for March: Sales Revenue ............... $ 72,500 Variable Cost of Goods Sold ........14,360 Fixed Cost of Goods Sold .........12,100 Variable...
-
You have been hired as a new accountant for Bake-Me-Some-Bread, Inc. They have asked you to calculate the company's Manufacturing Overhead Rate. You are given the following data from the accounting...
-
1. What type of strategy do you recommend based on the IE (Internal-External) matrix, for a company that has a total weight score of 3.6 on the IFE (Internal Factor Evaluation) Matrix and a value of...
-
In Illinois, \(42.5 \%\) of all money wagered in the lottery must be returned in winnings. If you bet \(\$ 10\), does this mean that your expectation is \(\$ 4.25\) ?
-
Show the result of the moves on Rubik's cube indicated in Problems 3-29. Remember that R, F, L, B, T, and U mean rotate \(90^{\circ}\) clockwise the right, front, left, back, top, and under faces,...
-
Write a simple argument to convince someone why all probabilities must be between 0 and 1 (including 0 and 1 ).
-
Suppose that a family wants to have four children. a. What is the sample space? b. What is the probability of 4 girls? 4 boys? c. What is the probability of 1 girl and 3 boys? 1 boy and 3 girls? d....
-
What is the practice of CBA in the USA and France?
-
How can you use the "Four Ps of Marketing" to think about yourself and your job search? Describe the product that is you. Briefly reflect on the problems you might have marketing yourself in this...
-
Create a data model for one of the processes in the end-of-chapter Exercises for Chapter 4. Explain how you would balance the data model and process model.
-
This string method returns a copy of the string with all leading and trailing whitespace characters removed. a. Clean b. Strip c. Remove_whitespace d. Rstrip
-
Write a program that asks the user to enter a distance in kilometers, then converts that distance to miles. The conversion formula is as follows: Miles = Kilometers X 0.6214
-
Explain how a single alternative decision structure and a dual alternative decision structure differ.
-
Which form of financing allows the source of the funds to share in the wealth if the company which received the financing does well? a. A loan b. An investment c. Both a loan and an investment d....
-
Which form of financing requires repayment, regardless of whether the company receiving the funds does well or not? a. A loan b. An investment c. Both a loan and an investment d. Neither a loan nor...
-
What are vertical and horizontal financial statement analyses? What are their advantages?
Study smarter with the SolutionInn App