01 Section 2 - Protocols and the Internet Flashcards
What is a protocol?
A protocol is a set of rules for how devices communicate and how data is transmitted across a network
What do protocols cover?
- how communication between two devices should start and end
- how data should be organised
- what the devices should do if data goes missing
What addresses do devices use to communicate within a network?
MAC addresses
What are MAC addresses?
MAC addresses are assigned to all network-enabled devices by the manufacture. They are unique to the device and can’t be changed
What type of numbers are MAC addresses?
48 or 64 bit binary numbers
-to make them easier to use they are converted into hexadecimals (6 bite strings)
What protocol uses MAC addresses?
Ethernet protocol on LANs
-LAN switches read the MAC addresses and use them to direct data to the correct device
What addresses are used to communicate across networks?
IP addresses
-when sending data between TCP/IP networks (e.g. over the Internet)
When are IP addresses assigned?
- Either manually(static) or automatically(dynamic) before the device can access the network
- aren’t linked to hardware (unlike MAC addresses)
What is a static IP address?
Permanent addresses
-on the Internet they can be very expensive
When are static IP addresses used?
- used to connect printers on a LAN
- used for hosting websites on the internet (companies don’t want their websites IP address changing)
What is a dynamic IP address?
Addresses that are assigned to a device by a network server
-your device has a different IP address every time you log onto a network
When are dynamic IP addresses used?
By ISPs (internet service providers) -they are usually more cost effective and can be reused
What type of numbers are IP addresses?
32 or 128 bit binary numbers (depending on the version of IP you use)
- 128 bit are translated into eight hexadecimal numbers
- 32 bit are translated into four denary numbers
What is data sent between networks split into?
Equal sized packets
What do data packets contain?
- a header (containing control information)
- destination address
- source address
- packet number
- payload
- checksum number
What is a packet header?
The header contains the control information
-control information (like the envelope of a letter) contains the destination address, source address and packet number
What is a packet’s payload?
Part of an email, document, web page or streamed video (like the letter inside an envelope)
What is a packet’s checksum number?
A form of validation used to check that the payload data hasn’t been corrupted during transit
-the sending and receiving devices both calculate a checksum value by performing a function, if the values match then the data has been received correctly
When is packet switching used?
Packet switching is used by routers to direct data packets on the Internet and other IP networks
What is the process of packet switching?
- sending device splits data into packets, and numbers them with a packet number
- each router reads the packet header, decides which way to send the packet next (according to IP rules)
- packets take different routes, so can arrive in the wrong order, the receiving device use packet numbers to put them back in the right order
- if all the data is received and the checksums match, a receipt confirmation is sent to the sending device
What can change the way a packet is sent across a network?
The way data is sent across a network changes depending on network traffic so the packets can take different routes.
-if a router receives too many packets at once it may prioritise some over others
What happens if a packet is lost across a network?
Sometimes packets can get lost in transit, so the receiving device checks periodically that all the packets have been received. If it hasn’t received them within a certain time, it sends a timeout message back to the sending device.
Why is packet switching an efficient use of a network?
There are so many possible routes that data can take, so packets can reach their receiving device even when there’s heavy traffic
What protocol dictates how data is sent between networks?
Made up of two protocols
- TCP
- IP
What does TCP stand for?
Transmission Control Protocol
What does IP stand for?
Internet Protocol
What does TCP do?
Sets the rules for how devices connect on a network
- in charge of splitting data into packets and reassembling packets back into original data once it reaches the receiving device
- responsible for checking data is correctly sent and delivered