CS352- Assignment: Project 3-Network Programming in Python Solved

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

Objective

The objective of this project is to become familiar with Network programming.  This will be done using the following assessments:

  • Explore Python programming for networking
  • Learn to write a simple server-client program

Software Installation

Make sure to clear your web browser’s cache. We recommend running everything from the virtual machine. However, you are free to use your personal computer if it is easier for this project.

Submission Instructions

Please work through each of the tasks discussed below. Each task will specify the material you are required to hand in. You will need to cut several snapshots and put them into a document and convert that document (if possible) to a PDF file. For submission please submit the PDF file (with your NetID as its name) via Sakai.

For presenting your answers

  • You will submit TWO items in this project
    1. Submit one PDF document with a summary of all your answers including the images that you have captured.
      1. This should be at the top level of your submission
      2. Exclusion of this PDF Summary will result in a reduction in your grade.
  • Convert word or google docs to a PDF file

AND

  1. Submit a zipped file with your code and any additional files.
  • Be sure to include your name and NetID in your submission
  • Label or number the answer for each question. For example, the answer for 3a should be labeled 3a or Question 3 Part a.
  • Be sure to answer all questions
  • Provide citations for any references used
  • Due date: August, 15th @ 11:55 PM

Assignment Details

Note: Please refer to the slides entitled “network programming” for Python and Server-Client Basics.

UDP Programming

Please download and view the UDP server and Client, hence the zipped file entitled “server_client”. These files were included in Sakai with the project description.  However, the files can also be downloaded here:

https://drive.google.com/file/d/1R_-XJ0v8Y6DPXWXn5Lebdw7_AgV59DwZ/view?usp=sharing 1) Run the UDP server-client code and screenshot your results.

Note: The server must be started before the client. For more details please refer to the recitation.

TCP Programming

In this section, you will write a TCP service program that provides connection-oriented services which are essential for reliable transport.

  • The Binary Encoding Server: Write a server program for TCP using Python to write client code. The server should return the binary value of the text sent by the client. Print this binary value to the screen.

Example: for a text string “CS352-2021”, the client should receive “01000011 01010011 00110011 00110101 00110010 00101101 00110010 00110000 00110010 00110001”

Note: The server should be running at the localhost interface. You are free to choose any port. Include a screenshot of the results.

  1. Run the server and client program from the following text string: “CS352-2021”. Screenshot the results. Note: The binary value should be displayed or printed to the screen.
  2. Run the server and client program from the following text string: “mynetwork”. Screenshot the results. Note: The binary value should be displayed or printed to the screen.
  3. Write down the port and host address that you used.
  4. Save your server python code as py. Include this file in the zip file of your assignment submission on Sakai.
  5. Save your client python code as py. Include this file in the zip file of your assignment submission on Sakai.
  • The Binary Decoding Server: Write another server running on an ethernet interface to do the following:

Example: the binary string “01000011 01010011 00110011 00110101 00110010 00101101

00110010 00110000 00110010 00110001” sent from the client should return “CS352-2021”.

  1. Run the server program from the following binary value: 01010000 01111001 01110100 01101000 01101111 01101110 00100000 01110011 01100101 01110010 01110110 01100101 01110010. Screenshot the results.

Note: The string value should be displayed or printed to the screen. Include a screenshot of your results.

  1. Run the program from the following binary string: “01101000 01101100 01101111”. Screenshot the results. Note: The string value should be displayed or printed to the screen. Include a screenshot of your results.
  2. Write down the port and host address that you used.
  3. Save your server python code as py. Include this file in the zip file of your assignment submission on Sakai.
  4. Save your client python code as py. Include this file in the zip file of your assignment submission on Sakai.

Sources

This assignment was created and modified with permission from the sources below:

  • project3_Network-Programming-in-Python-ms19ys.zip