Learning objective
Client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse.
Read the explanation, check the common trap, then practise with flashcards and questions.
At a glance
0
Flashcards
0
Questions
Topic
The Transmission Control Protocol/Internet Protocol (TCP/IP)
Subtopic
Client server model
Study support
Understand this objective
Quick explanation
Client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse
- This point belongs to The Transmission Control Protocol/Internet Protocol (TCP/IP), especially Client server model.
- You need to be able to client server model: Be familiar with the client server model. Client sends a request message to server, server responds to request by replying with a response message to client. Be familiar with the Websocket protocol and know why it is used and where it is used. The Websocket specification defines an API (Application Programming Interface) establishing a full-duplex 'socket' connection between a web browser and a server over TCP. This means that there is a persistent connection between client and server, allowing both parties to send data at any time. Be familiar with the principles of Web CRUD Applications and REST: • CRUD is an acronym for: • C – Create • R – Retrieve • U – Update • D – Delete. • REST enables CRUD to be mapped to database functions (SQL) as follows: • GET → SELECT • POST → INSERT • DELETE → DELETE • PUT → UPDATE. Students should understand the principles: • database connected to browser using REST – Representational State Transfer - which relies on HTTP request methods • REST allows JavaScript to talk to server through HTTP • REST API (Application Programming Interface) created and run on server, browser Javascript calls API • JSON (JavaScript Object Notation) or XML can be used to transmit data between a server and web application • Javascript referenced by HTML file, eg index.html, is run in browser. Compare JSON (Java script object notation) with XML. JSON compared with XML is: • easier for a human to read • more compact • easier to create • easier for computers to parse and therefore quicker to parse.
- Use the linked flashcards and practice questions to check recall, then practise applying the idea in an exam-style answer.
Why it matters
This objective helps connect Client server model to exam-style questions, flashcards, and revision notes for The Transmission Control Protocol/Internet Protocol (TCP/IP).
Quick student answer
In the client-server model, what normally happens after a client sends a request message?
Direct answer
The server sends a response message to the client
Key terms
- REST API: An Application Programming Interface created and run on a server that allows browser JavaScript to communicate with the server through HTTP request methods.
- WebSocket: A protocol whose specification defines an API establishing a persistent, full-duplex socket connection between a web browser and a server over TCP.
Common trap
Confusing PUT and POST: Remember the specified mappings: POST maps to INSERT, while PUT maps to UPDATE.
Related questions
Try this as a practice card
Question 1 of 4
Choose an answer, get feedback, then move sideways through the set.
Flashcard prompts
Flip through the key recall cards
Flashcard 1 of 4
Revision tools
Choose how to practise
Flashcards0 linked cards
Practice Questions0 linked questions
Related learning objectives
- TCP/IP: Describe the role of the four layers of the TCP/IP stack (application, transport, network, link). Describe the role of sockets in the TCP/IP stack. Be familiar with the role of MAC (Media Access Control) addresses. Explain what the well-known ports and client ports are used for and the differences between them.
TCP/IP
- Standard application layer protocols: Be familiar with the following protocols: • FTP (File Transfer Protocol) • HTTP (Hypertext Transfer Protocol) • HTTPS (Hypertext Transfer Protocol Secure) • POP3 (Post Office Protocol (v3)) • SMTP (Simple Mail Transfer Protocol) • SSH (Secure Shell). Be familiar with FTP client software and an FTP server, with regard to transferring files using anonymous and non-anonymous access. Be familiar with how SSH is used for remote management. Know how an SSH client is used to make a TCP connection to a remote port for the purpose of sending commands to this port using application level protocols such as GET for HTTP, SMTP commands for sending email and POP3 for retrieving email. Be familiar with using SSH to log in securely to a remote computer and execute commands. Explain the role of an email server in retrieving and sending email. Explain the role of a web server in serving up web pages in text form. Understand the role of a web browser in retrieving web pages and web page resources and rendering these accordingly.
Standard application layer protocols
- IP address structure: Know that an IP address is split into a network identifier part and a host identifier part.
IP address structure
- Subnet masking: Know that networks can be divided into subnets and know how a subnet mask is used to identify the network identifier part of the IP address.
Subnet masking
- IP standards: Know that there are currently two standards of IP address, v4 and v6. Know why v6 was introduced. 86
IP standards
