Infrastructure Practical Assignment

Assignment Help JAVA Programming
Reference no: EM132480395

Infrastructure Practical Assignment

Alternating Bit Protocol (ABP)

The Alternating Bit Protocol (ABP) is a connection-less protocol for transferring messages in one direction between a pair of protocol entities. It is a simple form of the Sliding Window Protocol with a window size of 1. The message sequence number alternates between 0 and 1. The JASPER applet supports the simulation of ABP with 3 modes of simulating messages delivery.

Below are some experiments you will conduct to understand ABP and its commands. The first three experiments will give you a feel for using the simulator and relate to real-world scenarios. Subsequent experiments will be more complex, yet still relating to real events.

Launching the ABP Protocol Simulator
• Ensure that your default browser supports Java applets. Note that you may need to run Java in low security for the Java applets in this exercise to work properly.
• For access to all simulations, click on the rotating globe at this book's Companion Web site
• Then click on the link to the Alternating Bit Protocol Simulator.
• This will launch the ABP Simulator applet along with a description of the main commands we will be using for our experiments.

EXPERIMENT #1: SENDING AND ACKNOWLEDGING MESSAGE(S)
This is the simplest simulation to get a feel of ABP.

1. Click Clear button to start a fresh simulation
2. In the command panel, click Sender: Send DATA(0)
3. Click Medium: Deliver DATA(0)
4. Click Receiver: Send ACK(1)
5. Click Medium: Deliver ACK(1)
6. Click Sender: Send DATA(1)
7. Click Medium: Deliver DATA(1)
8. Click Receiver: Send ACK(0)
9. Click Medium: Deliver ACK(0)
Observe the message exchange between the sender and the receiver, especially the sequence number of DATA and ACK.
Capture a screenshot of your simulation that includes a date/time stamp or unique desktop element, and answer the following question.

Question 1: Briefly explain why ACK(1) is sent for DATA(0).

EXPERIMENT #2: TIMEOUT OF MESSAGE(S)

Here the simulation gets a little more complex. Do the following

1. Click the Clear button to start a fresh simulation.
2. In the command panel, click Sender: Send DATA(0)
3. Click Medium: Deliver DATA(0)
4. Click Receiver: Send ACK(1)
5. Click Sender: Timeout
6. Click Medium: Deliver ACK(1)
7. Click Medium: Deliver DATA(0)
8. Click Receiver: Send ACK(1)
9. Click Medium: Deliver ACK(1)

Capture a screenshot of your simulation that includes a date/time stamp or unique desktop element, and answer the following questions.

Question 2: Observe the simulation in the timeline (from top to bottom). Explain briefly why there are two ACK(1) sent.

Question 3: According to the protocol, what happens when the second DATA(0) arrives?

EXPERIMENT #3: LOSS OF MESSAGES

ABP is a connection-less protocol. There are possibilities for the loss of messages between transmissions. Do the following:

1. Click the Clear button to start a fresh simulation.

2. Provide the simulation for the following scenario description:

The medium between the sender and receiver is not stable. The sender sends data and did not receive an acknowledgement because the data is lost by the medium. Its second attempt is successful, however there is no successful receipt of acknowledgement (acknowledgement not delivered or taking too long). Finally, a re- attempt results in a success in the communication of both sender and receiver for this particular message.

Capture a screenshot of your simulation that includes a date/time stamp or unique desktop element, and answer the following question.

Question 4: From the observation in your simulation, what can you tell about the behavior of the sender and the receiver from the perspective of sending a message?

EXPERIMENT #4: TIMEOUT OF MESSAGE(S) II

We have seen in Experiment #2 that the receiver discards the same piece of data if it arrives, but the receiver still sends the relevant acknowledgement, nevertheless. Do a simulation and see what happens to a sender if it receives two acknowledgements to the same message.

Capture a screenshot of your simulation that includes a date/time stamp or unique desktop element, and answer the following question.

Question 5: From the observation, what happens when the sender receives two acknowledgements to the same message?

Attachment:- Infrastructure Practical Assignment.rar

Reference no: EM132480395

Questions Cloud

Perform cost-benefit analysis for resource planning : Perform cost-benefit analysis for resource planning and allocation Competencies: Cost/benefit analysis o Outsourcing, acquisition
Explain ways to emphasize reading for meaning : Select an individual intervention program and describe its components. Describe components that are common to successful intervention programs.
What major skills make a good match for job : What major skills/experiences make you a good match for this job? OR if you are not a good match for this job, what new skills/experiences.
What career interests you the most : What career interests you the most? How could studying sociology help you in this career?
Infrastructure Practical Assignment : It Infrastructure Practical Assignment - From the observation in your simulation, what can you tell about the behavior of the sender and the receiver
Compute the depreciation expense for the year ended : Compute the depreciation expense for the year ended December 31, 2021. Monty elected to depreciate the building on a straight-line basis
Discusss between a blended family and a traditional family : Research the differences between a blended family and a traditional family and state a position to the question using logical evidence to support claims
Prepare the journal entries needed on the books : Prepare the journal entries needed on the books of Blossom Company to record the following. October 1, 2017: payment of semiannual interest
What is most mainstream news cycle : What is most mainstream news cycle. Research and discuss at least three other current events that you believe deserve just as much media coverage.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program in java that reads a file

Write a program in Java that reads a file of numbers of type int and outputs all the numbers to another file, but without there being any duplicate numbers.

  Depicts a model for recording flight and passenger

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the classes presented in the conceptual model according the specificatio..

  Write a java program to demonstrate the use of iterator

Write a Java program (non-GUI i.e. Java class) to demonstrate the use of Iterator.Use Iterator to achieve these goals

  Creates a new set of animals

When a user creates a new set of animals, they need to be able to add an animal to the set.  They should also be able to update and delete animals in the set.  The organizer should only show one set of animals at a time

  Write a program to create a file named "numbers.dat".

Write a program to create a file named "numbers.dat". Then create an algorithm that adds all even numbered integers from 1 to 100, separated by a comma.

  What is the output of the following program explain

What is the output of the following program? Explain. Explain the meaning of the reserved word this and why it is necessary in the class below. Will the class compile without using this

  Personalize the time zone application of section 24.3

Personalize the time zone application of Section 24.3. Prompt the user to log in and specify a city to be stored in a profile. The next time the user logs in, the time of their favorite city is displayed automatically.

  Create a class called studentquizscores

Within DrJava, create a class called StudentQuizScores and do the following using a loop. Your program should display this string using a JOptionPane.

  Form of daily temperature for one week

Develop a Java program that will store data in the form of daily temperature for one week

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  Class that displays your favorite movie quote

Write, compile, and test a class that displays your favorite movie quote, the movie it comes from, the character who said it, and the year of the movie.

  Write a program that will store the celtics

Write a program that will store the Celtics (or your favorite basketball team) roster in an array - You will then loop through the array to display each player

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd