Understand Client-Server communication via sockets

Assignment Help Computer Networking
Reference no: EM133089358

MCIS 6163 Computer Networking - Southern Arkansas University

Assignment - Simple Web Server & Client

Objectives
(A) To understand Client-Server communication via sockets
(B) To gain exposure to the basic operations of a Web Server and Client
(C) To explore basic structures of HTTP messages

Project Description
(A) You will be developing a multi-threaded Web server which interacts with any standard Web Clients ( You may use any web browser of your choice to test the functionality however you should also submit the a client as given in (B) below ). The Web server and Web client communicate using a text-based protocol called HTTP (Hypertext Transfer Protocol)

(B) Build a single threaded Web Client on your own which interacts with your Web Server, and downloads a file from the server

(C) Display the essential connection parameters of connection for both the Web client ( on the server side ) and for the Web Server ( on the client side )

Specification

Specifications - Server
The server being multi-threaded, should be able to handle multiple requests concurrently. The main thread ( server ), listens to a specified port like the standard port for HTTP (8080). Upon receiving a HTTP request, the server sets up a TCP connection to the requesting client and serves the request in a separate thread using a new port. After sending the response back to the client, it closes the connection. For this exercise you may choose any browser of your choice for testing. ( Internet Explorer or FireFox or Chrome )2. However you should submit a client program as per the the Section Specifications - Client.

The server is assumed to work with HTTP GET messages. If the requested file exists at the server, it responds with a "HTTP/1.1 200 OK" together with the requested page to the client, otherwise it sends a corresponding error message, "HTTP/1.1 404 Not Found" or "HTTP/1.1 400 Bad Request".
- If running the server program using command line, the syntax should be

server_code_name port_number
- You must test your Web server implementation on your local machine using a Web browser. You need to specify the used port number within the URL. If omitting the port number portion, i.e., 8080, the browser should use the default port 8080. To cite an example,
http localhost 8080 index.html

- You should display/log the request and header lines of request messages on the server for the purpose of debugging.

Specifications - Client
- The client should be able to initiate a connection to the server, via a socket and request any page on the server. Upon receipt of the response message from the server, the client extracts and displays/logs the message status3, and then retrieves the page content from the corresponding message body.
- The requested file need not be HTML, even a text file would suffice 4.
- You may execute the client program using command line, with the follow- ing syntax,
client_code < server_IPaddress >< port_no ><
(a) Server_IPaddress: The IP address or name of the Web server, e.g.,
127.0.0.1 or localhost for the server running on the local machine.
(b) port_no: The port on which the server is listening to contnections from clients. If the port number is not entered, the default port 8080 should be used.
(c) requested_file_name: The name of the requested file, which may include the path to the file.

Specifications - Connection Parameters
You should be able to extract the following information from the connection objects,
(a) Calculate and Display RTT for the client request5.
(b) Print the relevant server details on client side. The examples could be Host Name of the server, socket family, socket type, protocol, timeout and get peer name 6.
(c) Print the relevant client details on server side. The examples could be Host Name of the client, socket family, socket type, protocol, timeout and get peer name 7.

Reference no: EM133089358

Questions Cloud

Human activities negatively affect soils-forests : Describe how human activities negatively affect soils, forests, and/or agricultural lands.
What the value of inventory : Assuming that the company follows U.S. GAAP, and uses the LIFO method, what the value of inventory that it should record on its balance sheet
Instituted corporate governance structures : In recent times, the central Bank of Ghana has embarked on re-organization of the financial sector that among others has resulted in the increase in the minimum
Regulation and the greater good : Discuss whether too much governmental regulation of business or too little governmental regulation of business presents
Understand Client-Server communication via sockets : MCIS 6163 Computer Networking Assignment Help and Solution, Southern Arkansas University - Homework Help
International trade finance : Mapleton Inc. is a Canadian manufacturer of internet connected fitness equipment. They were recently approached by a major Asian Importer interest in importing
Describes the intersection of other aspects of diversity : Describes the intersection of other aspects of diversity, such as race, gender, and generation, and their impact on LGBTQ workers in each state?
What is his net pay : Question - Joe's group-term life insurance, valued at $25, is imputed to his gross salary of $725. What is his net pay
Elements of contract : Describe and analyze the five elements of a contract that must exist for this agreement to be enforceable

Reviews

Write a Review

Computer Networking Questions & Answers

  Crack encryption key using brute force attack

Was Charlie exaggerating when he gave Peter an estimate for the time that would be required to crack the encryption key using a brute force attack?

  What is needed to accelerate its deployment

Discuss some of the problems NATs create for IPsec security. (See [Phifer 2000]). Can we solve these problems by using IPv6? Why deployment of IPv6 has been slow to date. What is needed to accelerate its deployment?

  Critically reflect on current project management ethics

MN601 - Network Project Management - Melbourne Institute of technology - Individual case study assignment HE BEST PROJECT MANAGERS ARE EMOTION-DRIVEN LEADERS

  Show a tcp segment carrying one of the ftp responses

Show a TCP segment carrying one of the FTP responses. Show a TCP segment carrying FTP data. Explain what will happen if the file in already exists.

  What is the big concern with a linear network topology

List four improvements made in Ethernet that have helped provide determinism.

  Explain lan topology design which will be used at office

Explain LAN topology design which will be used at each office, and give checklist of cabling specifications for cabling contractor.

  Is the given an simd or an mimd system

The workers then fly off in different directions looking for marigolds. Is this an SIMD or an MIMD system? The NVIDIA Fermi GPU is similar in spirit to one of the architectures we studied Which one?

  Why you think dynamically assigning ip addresses are useful

Is the IP address 192.168.12.254 a valid address for use by a computer connected directly to the Internet? Explain your answer. c) Is it possible to divide a class C network into 14 subnets with 15 computers connected to each sub network? Explain..

  Conduct independent investigation

Content Analysis Assignment

  What factors affect transmission speed

What data compression standard uses Lempel-Ziv encoding? Describe how it works. Explain how pulse code modulation (PCM) works.

  Is snort anomaly-based or signature-based

Is Snort an HIDS or an NIDS, how many sensors does Snort use and what does a preprocessor do?

  For what values of p is given proposal worthwhile

A certain language has the property that all letters occur independently with various probabilities.  - For what values of p is this proposal worthwhile?

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