4: Clients and Servers Flashcards
1
Q
What is an IP address ?
A
A numerical label assigned to each device.
- IPv4: 4 integers, 32 bit
- IPv6: 6 ints, 128 bit
Function:
- Host identification
- Location addressing
2
Q
What is a port ?
A
An abstract gate for data to a computer.
Port 7: ECHO
Port 21: FTP
Port 80: HTTP
3
Q
What is a socket ?
A
A pair (IP address, port number) which is enough for a communication via TCP/IP.
4
Q
Given an example of a domain ?
A
machine1.csc.liv.ac.uk
5
Q
Give examples of top level domains ?
A
- com: commercial company
- edu: educational institution
- gov: government organisation
- org: other organisation
6
Q
Difference between client and server ?
A
- Client is a computer that requests some advice, server is a computer that provides this service.
- Can be hardware devices or software programs.
- Computer can be a client at a time, then a server at another.
7
Q
Give 4 advantages of the client-server model ?
A
- Openness: devices may run different OSs
- Scalability: many computers can be connected
- Specialisation: servers can be optimised for particular tasks
- Reliability: duplicate servers can readily replace faulty machines
8
Q
Types of servers ?
A
- File server: provides files for clients
- Database server: store large data collections
- Groupware server: organises the work of a group of people
- Web sever: stores components of web-pages and is accessed by a client’s web-browser
- Mail server: retrieves, stores, sends emails
9
Q
Architecture of client-server systems?
A
2 layers:
- Presentation and logic tier: manipulates and displays the data
- Data tier: holds the data for an application (eg relational DB)
10
Q
Middleware functionality examples?
A
- Detecting/correcting errors in transmission
- Interacting with lower-level protocols