
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
Lab – Routing
Objective
Learn and practice routing using Node and Express.
Specification
Create a web server that
- Accepts and processes request messages submitted from browser, and
- Generates and sends response messages back to browser for display.
Your web server must be able to handle
- URL with hostname and port
- Request message URL: 0.0.1:3000
- Response message: “SUCCESS!”
- URL with hostname, port and path echo
- Request message URL: 0.0.1:3000/echo
- Response message: “SUCCESS! echo”
- URL with hostname, port, path foxtrot and route parameter value kilo
- Request message URL: 0.0.1:3000/foxtrot/kilo
- Response message: “SUCCESS! Received kilo via foxtrot” where the value kilo must be retrieved via the route parameter
- Invalid/unexpected URL
- Request message URL: 0.0.1:3000/<any other value>
- Response message: “FAILED! Fix your URL.”
Hostname 127.0.0.1 can be replaced by localhost.
Port number 3000 can be replaced by any other port number that is from 1024 (2^11) to 65535 (2^17 – 1) inclusive.
Tools
Use the following:
- js
- js
- js router endpoint path
- js req.params
- GET request
Checklist
Do the following:
- Create a folder that is dedicated to this lab exercise
- Create a Node.js server file
- Insert necessary endpoints
- Listen to selected port
- Create a json file with npm init
- Install necessary npm module(s)
- Test the code locally by
- Executing the Node.js server file
- Enter and submit various URLs in browser
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 4 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- It would be fascinating to compare and contrast the benefits of connectionless protocols vs connection-based protocols.arrow_forward6. CSMA stands for Which routing algorithm is used for RIP: 第1空:arrow_forwardDescribe the steps involved in implementing intra-AS routing. Give a routing protocol example and describe if it is LS or DV.arrow_forward
- IP Header has a field TTL ( Time To Live). Which among the following statement best explain the use of TTL(a) It can be used to prioritize the packets(b) It can be used to reduce the delay.(c) It can be used to optimize the throughput.(d) It can be used to prevent packet looping.arrow_forwardYour dad put up the money for 50 nodes so he could start a software development company. A node is a computer in a network, and he instructed you to connect to one. Since more nodes will be added in the future, scalability is the network's primary focus. search for the label that describes the topologyarrow_forwardWhat types of situations would you use static route configuration if you were in charge of managing a network?arrow_forward
- Describe the process for configuring intra-AS routing. Provide an example of a routing protocol and specify if it is LS or DV.arrow_forwardTrue or false 6. Before sending a data packet into a packet-switching network, the source must determine all of the links that the packet will traverse between source and destination. 7. With non-persistent connections between a web browser and a web server, it is possible for a single TCP segment to carry two distinct HTTP request messages.arrow_forwardRouting vs. three segments: what is the difference?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education