Network layering
In networking, layeringIn networking, the concept of breaking up communication into separate components or activities. means to break up the sending of messages into separate components and activities. Each component handles a different part of the communication. This can be referred to as a protocolA set of rules for how messages are turned into data packets and sent across networks. stack. The Transmission Control Protocol/Internet Protocol (TCPTransmission Control Protocol - one of the main protocols in the set of protocols used on the internet. TCP allows two computers to establish a connection./IPInternet Protocol - A set of rules for communicating over the internet. IP can also stand for intellectual property.) is a protocol stack used when connecting a device to the internet.
There are four layers to be considered:
- application layerA networking layer which encodes or decodes a message in a form that is understood by the sender and the recipient. - encodes/decodes the message into a form that is understood by the sender and the recipient devices using protocols like HTTPHypertext Transfer Protocol - a request/response standard. Web browsers send requests and websites or servers respond to requests., file transfer protocol (FTPFile Transfer Protocol - a protocol used to transfer large files across the internet) and SMTPSimple Mail Transfer Protocol - used to send emails between servers..
- transport layerA networking layer which determines how a message is transmitted over a network. - breaks down the message into small pieces called packetA message is split into smaller packets of data which can then be transmitted and received in a network.. Each packet is given a packet number and the total number of packets. The recipient uses this information to assemble the packets in the correct order. It also allows the recipient to see if there are any missing packets.
- Internet layerAddresses and packages data, ready for transmission. It then routes the packets across the network. - adds the sender鈥檚 IP addressA unique address for each computer device on a network. and that of the recipient. The networkA group of interconnected computers/devices. then knows where to send the message, and where it came from. This is sometimes called the network layer.
- Link layerA networking layer which facilities the transmission of a message across a network. - enables the physical transfer of packets between nodeAny device connected to a network. on a network, and between one network and another.
Layering enables standardAn agreed way of doing things. to be developed, but also to be adapted to new hardwareThe physical parts of a computer system, eg a graphics card, hard disk drive or CD drive. and softwareThe programs, applications and data in a computer system. Any parts of a computer system that aren't physical. over time. For example, different software packages (applications) may use the same transport, internet and link layers but may each use their own application layer. The way the program encodes the message changes - the rest of the communication method remains the same.
IP addressing
At the internet layer, the IP - Internet Protocol - part of the TCP/IP protocol stack needs each node to have an IP address assigned to it. This address consists of four sets of up to three digits, each with a maximum value of 255. Each set is separated by dots. An example is:
192.168.0.254
When a node wants to send a message to another node, it uses the recipient node's IP address as the destination.
The method of addressingGiving a node an address. using four sets of digits held in 32 bitThe smallest unit of data in computing represented by a 1 in binary. is called IPv4. When IPv4 was devised, the range of addresses it allowed was deemed to be sufficient. However, the huge increase in internet-enabled devices led to IPv4 running out of addresses. A new version - IPv6 - has been introduced, significantly increasing the number of possible addresses to trillions. IPv6 addresses are held in 128 bits.
Transmissions over a network can be extremely large. To send a large message in one go can be impractical, as both the sending and receiving node are tied up with one communication.
Packet switching
TCP/IP uses packet switchingA method of communication across a network where a message is broken down into small pieces which are sent separately. to send data across a network. In packet switching, messages are broken up into very small pieces, called packets. Each packet consists of two parts:
- header - this includes the sender's and recipient's IP addresses, the packet number, the total number of packets the message contains, plus the details of any protocols used
- payloadThe information or message carried inside a packet. - this is part of the message itself
The packets are sent individually across the network and put back together to reform the message at the other end.
Packets may or may not follow the same route - they are sent along whichever route gives the quickest transmission. Therefore, packets may arrive out of sequence.
The recipient takes each packet, makes a note of its number and then puts it into the correct order. A packet switched network can therefore be fault tolerant. If a particular connection fails, the packets can be sent via a different route and then reassembled in the correct order. This is possible even if some packets are delayed.
More guides on this topic
- Decomposition and abstraction - Edexcel
- Algorithms - Edexcel
- Further algorithms - Edexcel
- Truth tables - Edexcel
- Binary and data representation - Edexcel
- Computers - Edexcel
- Programming languages - Edexcel
- Network security and cybersecurity - Edexcel
- Encryption - Edexcel
- Environmental, ethical and legal concerns - Edexcel