Networkimg Flashcards
CIrcuit switch network
A route from source to destination is reserved.
Data follows the same route to its destination
The returning data follows the same route back to the source
Packet-switched network
The data to be sent is broken up into packets
Packet headers determine the destination and method of transmission
Properties of CIrcuit switch and Packet-switched network
3
dedicated/established route
Each packet take same/different route
Packets arrive in same/different order
Advantage of circuit switch
3
Dedicated path for transmission, with guaranteed bandwidth
Information is sent in a continuous stream; there is no need for intermediate nodes to store and retransmit information (reduce data corruption)
low overhead required for transmission
Advantage of packet switch
3
Only the sender needs to be ready before transmission begins
If any segment of the network is disrupted, data packets can be routed around the disruption through other segments of the network
Congested segments can be bypassed if other segments are available, enabling greater utilisation of the network
Client
Computers/ program used by the end-user
which sends requests to the server and receives a response
Server
Servers refer to dedicated computers or software running on a computer
which receives requests from a server and sends a response
Peer to peer
In the peer-to-peer model of communication:
All computers may initiate communication by sending a request, or responding to a request.
There is no central server which contains all information
Server client vs peer to peer
dedicated servers vs no dedicated server
expensive to build and maintain centralised server
Data is centralised and easier to control
Easier to ensure security of data since only server needs to be secure
Port numbers
The OS assigns each application a random (internal) port number, so that data packets can be passed back to the correct application there are 2^16 port numbers 0 to 2^10-1 2^10 to 2^15 + 2^14 -1 2^15 + 2^14 to 2^16
IP addresses
4 numbers of 2^8 -1
127...* local host
MAC addresses
Each NIC is uniquely identified by a media access control (MAC) address, so that data packets from them can be differentiated
Application layer purpose
interacts with end user, create/format the data package
Transport layer purpose + contain
establish connection between applications of the sender and the receiver
determine how data is sent and divide data into packets
ensure data is snet to correct programme in correct sequence
TCP/UDP header containing source and destination port number
Internet layer purpose + contain
find the best route to deliver the data package
identify other computers and itself allowing data routing to be used
IP header containing
source and destination IP address