Program that uses the socket interface to send messages

Assignment Help Basic Computer Science
Reference no: EM131045924

Write a test program that uses the socket interface to send messages between a pair of Unix workstations connected by some LAN (e.g., Ethernet, ATM, or FDDI). Use this test program to perform the following experiments.

(a) Measure the round-trip latency of TCP and UDP for different message sizes (e.g., 1 byte, 100 bytes, 200 bytes, ... , 1000 bytes).

(b) Measure the throughput of TCP and UDP for 1-KB, 2-KB, 3-KB, ... , 32-KB messages. Plot the measured throughput as a function of message size.

(c) Measure the throughput of TCP by sending 1 MB of data from one host to another. Do this in a loop that sends a message of some size, for example, 1024 iterations of a loop that sends 1-KB messages. Repeat the experiment with different message sizes and plot the results.

Reference no: EM131045924

Questions Cloud

Give the sizes and offsets of the sequence of fragments : Give the sizes and offsets of the sequence of fragments delivered to the network layer at the destination host. Assume all IP headers are 20 bytes.
Address market failure such as monopoly power : What has been the governmental efforts to address market failure such as monopoly power, externalities and public goods?
Question regarding the opportunity cost of attending : Instead of attending class, you could have either flipped hamburgers for $8 an hour or waited tables for $5 an hour. Given this information, the opportunity cost of attending each class session is:
Could a packet with all 0s or all 1s be a legal ipv4 packet : Could a packet with all 0s or all 1s be a legal IPv4 packet? Will the Internet checksum catch that error? Why or why not?
Program that uses the socket interface to send messages : Measure the throughput of TCP by sending 1 MB of data from one host to another. Do this in a loop that sends a message of some size, for example, 1024 iterations of a loop that sends 1-KB messages. Repeat the experiment with different message size..
Country imposes a tariff on a good : Suppose a large country imposes a tariff on a good. Which of the following statements isfalse?
Calculate the change in the money supply : If the value of full employment output (Q) or real transactions (T) in the economy above is $451 billion, calculate the change in the money supply (M) needed by the Fed to bring this economy to full employment output if V=2.5 during the economic b..
Discards all received data still unread in buffers : Sketch a scenario involving the above in which data sent by (not to!) the closing host is lost. You may assume that the remote host, upon receiving an RST, discards all received data still unread in buffers.
Write down the maximization problem : (a) Write down the maximization problem for this individual. (b) Solve the maximization problem and nd current consumption, future consumption and savings (or assets).

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Indicate a need for modification in a cloud computing

What method would you use to monitor success and indicate a need for modification in a cloud computing environment? Needs to be 250 words and APA format and at least one reference with in-text citations.

  Compute minimum-maximum possible values for distance

During run, compute the minimum and maximum possible values for the following distance measures (from the center of the track): Manhattan, Euclidean and Chebyshev distance.

  Determine the source rate r

Suppose that 30 pictures are sent per second. (This digital source is roughly equivalent to broadcast TV standards that have been adopted.) Determine the source rate R (bps).

  Draw a pda for the language

Draw a PDA for the language L over {0,1} consisting of strings with an equal number of 0's and 1's. So 010011 would be in this language. Next draw a DFA recognizing 0?1?. Use the algorithm from class to draw a PDA for the intersection of these two..

  Write a program to sum the odd integers

Write a program that uses while statement to calculate average of several integers. Assuming the last value read is the sentinel 9999. For example, the sequence 10 8 11 7 9 9999 indicates that the program should calculate the average of all the va..

  Write a function called dicegame that takes in a vector

Write a function called diceGame that takes in a vector representing the dice values and returns the amount of money won.

  Write a program that reads in four numbers from the user

Write a program that reads in four numbers from the user (allowing for decimal values) and calculate the sum, average, and product of these four values

  Write a program that performs boolean expressions

Read in a month and determine the number of days in the month. If the month is February, prompt the user for a year and determine if the year is a leap year to output the correct number of days.

  Smtp and pop are common protocols

SMTP and POP are common protocols used in communication. What methods, procedures, or policies can be implemented to make the routing of mail more secure for your networks or personal use?

  Write a program that uses an array of structs

Write a program that uses an array of structs. The structs will have the following data attributes: integer i_value float f_value Allow the user to enter 10 different integers and 5 different float numbers.

  Provide specific mitigation strategies

Provide specific mitigation strategies for any issues that could detract from the project

  The different types of interactive environments

Compare and contrast the different types of interactive environments.

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