The TCP/IP protocol stack Flashcards
What is a TCP/IP ?
a set of networking protocols that work together as 4 connected layers , passing incoming data and outgoing data packets during communication between nodes
What are the 4 layers of this protocol stack?`
- application layer
- transport layer
- network layer
- data link
What is a protocol stack?
collection of protocol layers used for transmission of data in computer networking, where each layer is responsible for a different aspect of the communication process
How can i remember the 4 layers?
a - always
t - transport
n - nerdy
d - data
What happens to the packets as they’re transferred between layers?
They’re wrapped and unwrapped
What happens at the application layer?
this layer relates to the way of transferring data.
it can be either through FTP, mail, pop3,http(webpage)
it selects appropriate host based on application that sent the data
What happens at the transport layer?
it uses the tcp (transmission control protocol) to establish an end to end connection with the recipient device. Here data is split into packets and labelled with a port through which the packet should route, this ensures correct application is to receive
this layer requests re transmission if packets get lost
What happens at the internet layer?
adds source and destination address (IP). it forms a socket
What is a socket?
the IP address and the PORT. it specifies which device the packet must be sent to and which application is being used
What happens at the data link layer?
adds the MAC address of the next device and source to receive the packet (receiver or router if still in transmission) by the correct piece of hardware
What happens at the receiving end?
stack acts like a stack (data is popped off)
firstly the mac address is stripped off by data link layer
ip addresses are removed by network layer
transport layer removes port and reassembles packets
data is passed into the right application
How often are these layers accessed during transmission?
Initially all layers are accessed
then between routers only the 2 lowest ones are , this is because routers operate on the internet layer, mac addresses are changed