TCP/IP Stack Flashcards
what is the TCIP/IP stack
it defines the rules referring to tranmission of data packets
what is the role of the IP
controls the delivery of the packets
what is the role of TCP
keeps track of the packets and re-assembles them on receipt
how much layers are there
4
what is a protocol
a set of rules
what are the 4 layers
application
transport
network
link
give 2 roles of the application layer
- selectes the appropraite protocol for communication
interact with the user via appropriate application software
give 2 roles of the transport layer
- established end to end communication
- communication split into packets by transpor layer and re assemled by receiver
- chooses a port number for client and destination
give 2 roles of the network layer
- supplies appropriate IP addresses for source and destination
- involved with packet routing
- combination of IP address and port = socket
give 2 roles of the link layer
- recieves packets from the network layer and adds MAC addresses
- adds frame header and footer to packets
- deals with physical connection
give the 6 protocols needed to know in the application layer
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).
explain what HTTP does
enables the transfer of data between a client and a server
explain what POP3 does
email protocol used to retrieve emails from a mail server to a local client
explain what FTP does
used for transferring files between a client and a server over the internet or LAN
explain what SSH does
securely access and manage devices over a network
explain what SMTP does
sends emails from a mail client to a mail server or between servers
explain the client server model
- client sends a request to the server, server responds to request by replying with a response message to the client
- the client is dependnt on the server to provide and manage the information
explain what a web socket is
a set of rules that creates a persistent connection between 2 computers on na network to enable real time collaboration
what does CRUD stand for
create, retrieve, update and delete
how does REST map HTTP methods to SQL operations
- GET - SELECT
- POST - INSERT
- PUT - UPDATE
- DELETE - DELETE
what does rest stand for
representational state transfer
what does REST rely on to work in web applications
HTTP request methods
how does REST connect a database to the browser
through HTTP methods handled by a REST API on the server
what role does javascript play in a REST web application
sends the HTTP requests to the servers API