1.3.3 Networks (TCP/IP Stack and Packets) Flashcards
What are the four layers in the TCP/IP stack?
Application Layer
Transport Layer
Network Layer
Link Layer
What does the application layer do?
It specifies what protocol needs to be used to relate the application being sent.
What does the transport layer do? [3]
- Uses TCP to establish an end-to-end connection between the source and recipient computer.
- It splits data into packets, and labels them with their packet number, the total number of packets and the port number being used for communication.
- If any packets get lost, the transport layer requests retransmissions of these lost packets.
What does the network layer do? [3]
- It adds the source and destination IP addresses.
- Routers operate on this layer. The router uses the IP addresses to forward the packets.
- The socket addresses are used to specify which device the packets must be sent to, and the application being used on that device.
What is a socket address?
The combination of the IP address and the port number.
What is the link layer?
- The connection between the network devices. It adds the MAC address identifying the Network Interface Cards of the source and destination computers.
- For devices on the same network, the destination MAC is the address of the recipient computer. Otherwise, it is the MAC address of the router.
Some data has reached its destination. What happens moving up the TCP/IP stack?
Link: Removes the MAC address
Network: Removes the IP addresses
Transport: Removes the port number and reassembles the packets
Application: Presents the data to the recipient, in the form it was requested in.
Who typically owns infrastructure used in WANs?
Third parties
What is the TCP/IP stack?
A stack of networking protocols which work together, used in sending and receiving data.
What is the Domain Name System?
The system used to name and organise internet resources.
How does the DNS work?
It is a hierarchy. Each smaller domain is separated from the larger domain by a full stop.
Give an example of a TLD (top level domain)
.com
Give an example of a 2LD (second level domain)
.co.uk
What are packets?
Segments of data.
What three parts can a packet be split up into?
- Header
- Payload
- Trailer
What does the header of a packet contain?
- Sender and recipient IP addresses
- Protocol being used (allows recipient to understand how to interpret packet)
- Order of packets
- Time to Live (tells packet when to expire, so it doesnt travel forever)
What does the payload of a packet contain?
Raw data to be transmitted
What does the trailer of a packet contain?
Checksum, or cyclic redundancy check (detects whether any errors have occured during transmission)
What are the two methods used in networks to exchange data?
Packet switching
Circuit Switching
What is packet switching?
A method of communication, where data is communicated using packets across a network using the most efficient route. This route can vary for each packet.
Packet Switching Advantages
- Multiple methods to ensure data arrives intact (eg checksums)
- Multiple routes can be used between paths. If one path breaks, another can be used.
- Packets can be transferred over very large networks, allowing global communication.
Packet Switching Disadvantages
- Time is spent deconstructing and reconstructing the data packets
- Must wait for all packets to arrive before the data can be received.
What is Circuit Switching?
A method of communication, where a direct link is created between two devices.
This direct link is maintained for the duration of the entire conversation between devices.
What is a requirement for circuit switching?
The two devices must be able to transfer and receive data at the same rate.
Advantages of circuit switching
- Data arrives in a logical order, which results in a quicker reconstruction of the data
- Two users can hold a call without delay in speech
Disadvantages of circuit switching
- Bandwidth is wasted during periods of time in which no data is being sent.
- Devices must transfer and receive data at the same rate.
- Ties up sections of the network which cannot be used by others until transmission has been completed.
What is an IP address?
- A numerical address made of 4 numbers, each between 0 and 255.
- It uniquely identifies a device on a network.
- It is a logical identifier.