TCP/IP Flashcards
What is a client program?
Running on end host
Does not communicate directly with other clients
Needs to know address of server
Can a client program communicate with other clients?
Not directly.
What is a server program?
Running on end host
Does not initiate contact with clients
Needs fixed, known address
How does the network layer deliver data?
Delivers data packet to destination host based on destination IP
How does the OS deliver data?
Delivers data to destination socket based on destination port number
How does the application layer deliver data?
Read data from and write data to socket (then interpret data - eg. read a webpage)
What is a socket?
Essentially a doorway leading in and out of an application. In order for a process to send a message to another, the underlying network must be traversed. This process sends and receives messages through the socket.
How does a process send a message to another process?
In order for a process to send a message to another, the underlying network must be traversed. This process sends and receives messages through the socket.
What level is TCP/IP?
Kernel
What does socket API allow us to do?
Supports creation of network applications
What must exist to develop ICP using a network application?
An association
How do we represent a socket?
As a 5 tuple consisting of protocol, source IP, source port number, destination IP and destination port number
What do port numbers do?
Uniquely identify a socket.
Can same port number be used twice with the same address?
negative.
What ensures a port number isn’t used twice in the same address?
OS