COEN 233_Assignment4-2

COEN 233_Assignment4-2 - COEN 233 Assignment 4 This...

  • Homework Help
  • AgentStarMandrill50
  • 2
  • 100% (1) 1 out of 1 people found this document helpful

Info icon This preview shows pages 1–2. Sign up to view the full content.

COEN 233 Assignment 4 This assignment is on socket programming. Study the simplex-talk program given in the first chapter of the book. You must understand every line of code. Read UNIX MAN pages on every system call used in the program. 1. Modify the program if required to send large buffers. The first exercise is on performance analysis. Use only one client server pair. Send data buffers of different sizes (1 KB, 2KB, 4KB, 8KB, 16KB and 32KB). Measure time to send the data and tabulate the results. You will be required to send several messages of the same length and calculate the average time to send a message. Take the following simple steps: First time stamp; send 1KB buffer 500 times; Final time stamp. (Final time stamp – First time stamp)/500 = time for one send. Ideally you need to account for loop overhead. Final result: A table. 2. Modify the Simplex-talk socket program so that the communication is 2-way. Every time a client sends a line of text to the server, the server sends back a line of text. The client and server will make alternate calls to recv () and send (). Final result: screen shots.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3. Modify the Simplex-talk program of step 2 so that it uses UDP as the transport protocol rather than TCP. Refer description on page 69, exercise 34 to do this change. 4. The final step is to implement a simple version of Domain Name Server (DNS). This is a highly simplified version and does not have any hierarchy. Given a host name, DNS returns its IP address. Similarly given an IP address, DNS returns a host name. Therefore our DNS is a simple look-up table. It consists of host name strings and corresponding IP addresses. Use UDP version implemented in step 3 to implement the server. Write a basic command line interface to enter data (IP address and host name pairs). Start at least 4 simultaneous clients. Send either host name or IP address to the server. Server will return an appropriate data. Print the results on the screen (file). 5. Document results. Also append modified version of the code. Use a different color to highlight your changes....
View Full Document

  • Fall '11
  • Wang
  • IP address, Domain Name System, final result, UNIX MAN pages, client server pair, simplex-talk program

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern