Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

Provide code, WireShark and Tomcat screenshot captures, at least one page to report your results for each exercise.

1. Create a REST/SOAP web service that returns a requested content. The content could be json, xml, png, jpeg and mpeg files (the ones that you used/acquired for the above assignment). Create an android app that consumes such web service. Estimate the bandwidth and the latency associated with the each download using Wireshark or Androids network monitor. Tabulate the results. Identify the MIME Type and the original file size of the resource that was downloaded.

Run the above experiment but this time configure the web server to use compression and thus note gains in bandwidth and download latency assuming that the network conditions did not change much.

2. Create an Android based TCP socket client that connects to Tomcat (or any other TCP server on a desktop) and downloads a large file. The received file could simply be discarded. Study the impact of the receive buffer size on the throughput and latency of the download. In other words request that the receive buffer size to be 4K, 8K, 16K, 32K and 64K respectively, and run the client to download the same large file approx. 5MB. Tabulate the throughput and latency of the download and the corresponding receive buffer size

TCP Code

String response = "";

try{

Socket s = new Socket();

s.connect(new InetSocketAddress(“10.0.2.2”, 8088));

BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));

String str = "";

while ((str = br.readLine()) != null) {

response = response + str;

}

br.close();

s.close();

} catch (Exception e) {

e.printStackTrace();

}

3. Investigate the support for IGMP and multicasting on android platforms by creating a multicast sender and receiver within your local area network. Use android as a host for the multicast sender and the receiver either at the same or alternately depending upon whether you have access to two android phones. Capture the IGMP messages and one or more multicast packets. Explain the contents of the IGMP messages and verify that the multicast addressing is correctly delivering the packets to the right destination within the context of your network.

4. Evaluate the impact of network conditions such as RSSI on the throughput of a TCP connection. Reuse the test bed of Assignment III. This time keep the TCP receive buffer fixed to an optimum size but measure the download latency as a function of the RSSI. Move the phone to different locations to achieve a different RSSI for each download. You can use Android's WiFi Manager or Telephony Manager to get measures of channel conditions such as RSSI.

5. Graphics and Animation

(a) Create an application that demonstrates the use of property animation for animating an image view e.g. rotating, translating or transforming the image.

(b) Redevelop the above animation but this time utilizes a canvas to draw the animation.

(c) Repeat the above animation but now draw the animation on a surface view.

(d) Comment on relative benefits and drawbacks of the three approaches along with other Views that are available in Android including Texture View and Open GL View.

Q2. Using blender or Unity create a 3D scene with at least one object, 2 light sources and 2 cameras. Import the graphics files in an android application. Animate the scene by periodically or at random times changing the light intensity, light sources, camera angle, camera, and performing transformation of the object. Min3D is a tool commonly used for importing Blender files in Android.

6. Configure Tomcat or any other web server of your choice to use SSL. Access a web application/service offered by this web server over SSL using HttpsUrlConnection from an Android Activity/Service. Capture the SSL handshake via wireshark.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92757699

Have any Question?


Related Questions in Computer Engineering

Show proof of correctness and state and solve the

Show Proof of correctness and state, and solve the Recurrence using the Master Theorem. Let G = G(V, E) be an arbitrary, connected, undirected graph with vertex set V and edge set E. Assume that every edge in E represent ...

We might consider a regression of the number of group

We might consider a regression of the number of group members and the efficiency of project completion. Which of those would be the dependent and which would be the independent variables?

Need help with a java program that takes two arrays a and b

Need help with a Java program that takes two arrays a and b of length 5 storing int values, and returns the dot product of a and b. That is, it returns an array c of length n such that c[i]=a[i]*b[i].

Write a program that uses a function that returns a number

Write a program that uses a function that returns a number between 1 and 6. Use this function to simulate the roll of a die. Allow the user to specify the number of trials and then tabulate that number of rolls of two di ...

Eleven people have eleven different favorite numbers from 2

Eleven people have eleven different favorite numbers from 2 to 12. They all agree to participate in a 10,000-roll dice game where they bet $1 on their favorite number for each roll of two standard (fair) dice. A donor ki ...

Sutures sutures are strands or fibers used to sew living

Sutures: Sutures are strands or fibers used to sew living tissue together after an injury or an operation. Packages of sutures must be sealed carefully before they are shipped to hospitals to prevent contamination. The p ...

Suppose there are three decks of cards on the table a

Suppose there are three decks of cards on the table, a number is written on each card. And each deck is sorted in decreasing order (The maximum value is on the deck in top). The goal is to find the minimum value between ...

Question you all work in or know of people who work in

Question: You all work in or know of people who work in enterprise IT environments Maintaining the enterprise security posture, legal risk, and security is constantly changing. What makes it so difficult to maintain info ...

After reading the case presented in the module write a

After reading the case presented in the module, write a short response to the following discussion questions and ethical decision making scenario. Discussion Questions What project management tasks should Kelvin perform ...

Question reversing the elements of an array involves

Question : Reversing the elements of an array involves swapping the corresponding elements of the array: the first with the last, the second with the next to the last, and so on, all the way to the middle of the array. G ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As