SlideShare uma empresa Scribd logo
1 de 7
Computer Networking MCIS 6163 Project
FOR MORE CLASSES VISIT
tutorialoutletdotcom
Computer Networking MCIS 6163
Project 1
Simple Web Server & Client
Instructor: Sajib Datta
Spring 2017
"What I cannot create, I do not understand." Richard P
Feynman 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 Due Date
March 28, 2017 11:59 PM1 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 )
1 All Submissions should be completed through BlackBoard 1 MCIS
6163 Project 1 Guidelines and Requirements 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
following syntax,
2 Caveat: Some of the browsers need some additional setting changes
for enabling complete
functionality
3 ’HTTP 200 OK’ or ’404 Bad Request’
4 But the format of the request should strictly be HTTP as discussed in
class © Sajib Datta 2017 2 Spring 2017 MCIS 6163 Project 1 Guidelines
and Requirements client_code < server_IP address >< port_no
><
requested_f ile_name >
(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 . Notes
(a) This is an individual project.
(b) You can use the programming language of your choice 8 .
(c) You may use the skeleton code for the server provided in the
textbook’s
companion website for reference. You may also want to refer to the
textbook, chapter 2, section 2.2.3, for more details on HTTP message
format
and section 2.7, for socket programming.
(d) The source codes should be well documented to make it easier for
the GRADER
to follow.
5
6
7
8 Refer Slide 2 - 25 of class lecture
Print a minimum of 4 out of 6
Print a minimum of 4 out of 6
You may get more help with Java or Python. Our best choice for you
will be Python © Sajib Datta 2017 3 Spring 2017 MCIS 6163 Project 1
Guidelines and Requirements Submission Guidelines
• Submit a single zipped file with the naming convention,
< your_SAU_id > _ < your_name > .zip
• Your submission should have the following items to be considered for
evaluation,
(a) Source codes of the Web server and client
(b) Any additional files required to run your codes
(c) –Very Important– readme.txt file with instructions on how to
compile and run your codes. You must mention the IDE as well as
any packages that are required to run the codes.
(d) –Very Important– Provide ample amount of comments in the code
to make it more readable and sustainable.
• Do NOT include any runnable executable (binary) program.
• Make sure your name and your SAU ID are also listed in the readme
file and in comments at the beginning of your source files.
• Make sure that submissions of the zipped file is through BlackBoard9.
• No Late submission will be accepted. Additional
Requirements/Instructions
(a) Please email your Instructor for any doubts and clarifications
regarding the
project 1.
(b) Complete documentation and instructions for running the codes are
recommended.
(c) If you are using any code from some external source or book, you
MUST
mention it explicitly in the codes as well as the readme file. Otherwise, it
will be considered plagiarism and your project will not be evaluated.
9 Please strictly follow the naming convention of the zipped file © Sajib
Datta 2017 4 Spring 2017 MCIS 6163 Project 1 Guidelines and
Requirements (d) You can discuss with other classmates on
steps/algorithms to implement
the project. However, the source codes must be written by yourself .
Grading Rubric (25 points)
(i) The server works correctly with requests from a Web browser (2.5
points)
(ii) The server can serve multiple requests at the same time
(multithreaded
implementation) (5 points)
(iii) The client sends/receives messages to/from the server correctly (5
points)
(iv) The client extracts the status and content of messages from the
server
correctly (4 points)
(v) Extracting and displaying connection parameters (2.5 points)
(vi) Calculate and Display Round Trip Time (RTT). (2.5 points)
(vii) Proper closing of the ports with exception handling. (1 points)
(viii) Display/log of proper messages on the server as well as on the
client. (1.5
points)
(ix) Code documentation and Readme file. (1 points) Wish you all a
good luck
***************************************************
(iv) The client extracts the status and content of messages from the
server
correctly (4 points)
(v) Extracting and displaying connection parameters (2.5 points)
(vi) Calculate and Display Round Trip Time (RTT). (2.5 points)
(vii) Proper closing of the ports with exception handling. (1 points)
(viii) Display/log of proper messages on the server as well as on the
client. (1.5
points)
(ix) Code documentation and Readme file. (1 points) Wish you all a
good luck
***************************************************

Mais conteúdo relacionado

Semelhante a Computer networking mcis 6163 project

MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmenMCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmenVannaSchrader3
 
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docxMCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docxalfredacavx97
 
Application layer assignments
Application layer assignmentsApplication layer assignments
Application layer assignmentsIsaac Akingbala
 
.NET Core Today and Tomorrow
.NET Core Today and Tomorrow.NET Core Today and Tomorrow
.NET Core Today and TomorrowJon Galloway
 
Web application technologies
Web application technologiesWeb application technologies
Web application technologiesAtul Tiwari
 
Web Server and Web Technology Exam paper
Web Server and Web Technology Exam paperWeb Server and Web Technology Exam paper
Web Server and Web Technology Exam paperZairul Nizam
 
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docx
CSE422 Section 002 – Computer Networking Fall 2018  Ho.docxCSE422 Section 002 – Computer Networking Fall 2018  Ho.docx
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docxmydrynan
 
APIs_ An Introduction.pptx
APIs_ An Introduction.pptxAPIs_ An Introduction.pptx
APIs_ An Introduction.pptxAkashThorat25
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdfZani10
 
Web Server Technologies II: Web Applications & Server Maintenance
Web Server Technologies II: Web Applications & Server MaintenanceWeb Server Technologies II: Web Applications & Server Maintenance
Web Server Technologies II: Web Applications & Server MaintenancePort80 Software
 
Konsep pembangunan tapak web & laman web
Konsep pembangunan tapak web & laman webKonsep pembangunan tapak web & laman web
Konsep pembangunan tapak web & laman webAhmad Faizar
 
Network Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptxNetwork Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptxssuser23035c
 
Web375 course project web architecture plan for the de vry daily tribune new...
Web375 course project  web architecture plan for the de vry daily tribune new...Web375 course project  web architecture plan for the de vry daily tribune new...
Web375 course project web architecture plan for the de vry daily tribune new...bestwriter
 
ASP.NET Core 3.0 Deep Dive
ASP.NET Core 3.0 Deep DiveASP.NET Core 3.0 Deep Dive
ASP.NET Core 3.0 Deep DiveJon Galloway
 

Semelhante a Computer networking mcis 6163 project (20)

MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmenMCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen
 
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docxMCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
MCIS 6163 Assignment 1MCIS 6163 Assignment 1.pdfAssignmen.docx
 
Web server
Web serverWeb server
Web server
 
Application layer assignments
Application layer assignmentsApplication layer assignments
Application layer assignments
 
.NET Core Today and Tomorrow
.NET Core Today and Tomorrow.NET Core Today and Tomorrow
.NET Core Today and Tomorrow
 
Web application technologies
Web application technologiesWeb application technologies
Web application technologies
 
Networking in Java
Networking in JavaNetworking in Java
Networking in Java
 
Web Server and Web Technology Exam paper
Web Server and Web Technology Exam paperWeb Server and Web Technology Exam paper
Web Server and Web Technology Exam paper
 
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docx
CSE422 Section 002 – Computer Networking Fall 2018  Ho.docxCSE422 Section 002 – Computer Networking Fall 2018  Ho.docx
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docx
 
Introduction to SignalR
Introduction to SignalRIntroduction to SignalR
Introduction to SignalR
 
APIs_ An Introduction.pptx
APIs_ An Introduction.pptxAPIs_ An Introduction.pptx
APIs_ An Introduction.pptx
 
0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf0_Leksion_Web_Servers (1).pdf
0_Leksion_Web_Servers (1).pdf
 
flask.pptx
flask.pptxflask.pptx
flask.pptx
 
Web Server Technologies II: Web Applications & Server Maintenance
Web Server Technologies II: Web Applications & Server MaintenanceWeb Server Technologies II: Web Applications & Server Maintenance
Web Server Technologies II: Web Applications & Server Maintenance
 
Konsep pembangunan tapak web & laman web
Konsep pembangunan tapak web & laman webKonsep pembangunan tapak web & laman web
Konsep pembangunan tapak web & laman web
 
Ch-1_.ppt
Ch-1_.pptCh-1_.ppt
Ch-1_.ppt
 
World Wide Web(WWW)
World Wide Web(WWW)World Wide Web(WWW)
World Wide Web(WWW)
 
Network Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptxNetwork Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptx
 
Web375 course project web architecture plan for the de vry daily tribune new...
Web375 course project  web architecture plan for the de vry daily tribune new...Web375 course project  web architecture plan for the de vry daily tribune new...
Web375 course project web architecture plan for the de vry daily tribune new...
 
ASP.NET Core 3.0 Deep Dive
ASP.NET Core 3.0 Deep DiveASP.NET Core 3.0 Deep Dive
ASP.NET Core 3.0 Deep Dive
 

Último

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 

Último (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

Computer networking mcis 6163 project

  • 1. Computer Networking MCIS 6163 Project FOR MORE CLASSES VISIT tutorialoutletdotcom Computer Networking MCIS 6163 Project 1 Simple Web Server & Client Instructor: Sajib Datta Spring 2017 "What I cannot create, I do not understand." Richard P Feynman 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 Due Date March 28, 2017 11:59 PM1 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 )
  • 2. 1 All Submissions should be completed through BlackBoard 1 MCIS 6163 Project 1 Guidelines and Requirements 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,
  • 3. 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 following syntax, 2 Caveat: Some of the browsers need some additional setting changes for enabling complete functionality 3 ’HTTP 200 OK’ or ’404 Bad Request’ 4 But the format of the request should strictly be HTTP as discussed in class © Sajib Datta 2017 2 Spring 2017 MCIS 6163 Project 1 Guidelines and Requirements client_code < server_IP address >< port_no >< requested_f ile_name > (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
  • 4. 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 . Notes (a) This is an individual project. (b) You can use the programming language of your choice 8 . (c) You may use the skeleton code for the server provided in the textbook’s companion website for reference. You may also want to refer to the textbook, chapter 2, section 2.2.3, for more details on HTTP message format and section 2.7, for socket programming. (d) The source codes should be well documented to make it easier for the GRADER to follow. 5 6 7 8 Refer Slide 2 - 25 of class lecture Print a minimum of 4 out of 6 Print a minimum of 4 out of 6 You may get more help with Java or Python. Our best choice for you will be Python © Sajib Datta 2017 3 Spring 2017 MCIS 6163 Project 1 Guidelines and Requirements Submission Guidelines • Submit a single zipped file with the naming convention, < your_SAU_id > _ < your_name > .zip • Your submission should have the following items to be considered for evaluation,
  • 5. (a) Source codes of the Web server and client (b) Any additional files required to run your codes (c) –Very Important– readme.txt file with instructions on how to compile and run your codes. You must mention the IDE as well as any packages that are required to run the codes. (d) –Very Important– Provide ample amount of comments in the code to make it more readable and sustainable. • Do NOT include any runnable executable (binary) program. • Make sure your name and your SAU ID are also listed in the readme file and in comments at the beginning of your source files. • Make sure that submissions of the zipped file is through BlackBoard9. • No Late submission will be accepted. Additional Requirements/Instructions (a) Please email your Instructor for any doubts and clarifications regarding the project 1. (b) Complete documentation and instructions for running the codes are recommended. (c) If you are using any code from some external source or book, you MUST mention it explicitly in the codes as well as the readme file. Otherwise, it will be considered plagiarism and your project will not be evaluated. 9 Please strictly follow the naming convention of the zipped file © Sajib Datta 2017 4 Spring 2017 MCIS 6163 Project 1 Guidelines and Requirements (d) You can discuss with other classmates on steps/algorithms to implement the project. However, the source codes must be written by yourself . Grading Rubric (25 points) (i) The server works correctly with requests from a Web browser (2.5 points) (ii) The server can serve multiple requests at the same time (multithreaded implementation) (5 points) (iii) The client sends/receives messages to/from the server correctly (5 points)
  • 6. (iv) The client extracts the status and content of messages from the server correctly (4 points) (v) Extracting and displaying connection parameters (2.5 points) (vi) Calculate and Display Round Trip Time (RTT). (2.5 points) (vii) Proper closing of the ports with exception handling. (1 points) (viii) Display/log of proper messages on the server as well as on the client. (1.5 points) (ix) Code documentation and Readme file. (1 points) Wish you all a good luck ***************************************************
  • 7. (iv) The client extracts the status and content of messages from the server correctly (4 points) (v) Extracting and displaying connection parameters (2.5 points) (vi) Calculate and Display Round Trip Time (RTT). (2.5 points) (vii) Proper closing of the ports with exception handling. (1 points) (viii) Display/log of proper messages on the server as well as on the client. (1.5 points) (ix) Code documentation and Readme file. (1 points) Wish you all a good luck ***************************************************