How many bits does an IPv4 address have?
Answer : 32
An IPv4 address is encoded on 32 bits, that is 4 bytes, usually written as four numbers from 0 to 255 separated by dots.
Revise Cybersecurity & Networks: here is a selection of questions of every level, with the answer and an explanation. To test yourself without seeing the answers, play the quizzes.
Play the Cybersecurity & Networks quizzesAnswer : 32
An IPv4 address is encoded on 32 bits, that is 4 bytes, usually written as four numbers from 0 to 255 separated by dots.
Answer : 128
An IPv6 address is encoded on 128 bits, which provides a far larger address space than IPv4.
Answer : DNS
DNS maps domain names to IP addresses, somewhat like a phone book.
Answer : 443
HTTPS uses port 443 by default; the data is encrypted with TLS.
Answer : 22
SSH, the encrypted remote access protocol, listens by default on port 22 of a machine.
Answer : TCP establishes a connection and guarantees delivery, UDP does not
TCP is connection-oriented: it checks the delivery and order of packets, at the cost of some latency. UDP sends without this guarantee, which makes it faster for live video.
Answer : The router
The router forwards packets between separate networks, for example between your home network and the Internet.
Answer : To separate the network part and the host part of an IP address
The mask indicates which bits of an IP address designate the network and which designate the host; 255.255.255.0 corresponds to /24.
Answer : Phishing
Phishing involves posing as a trusted third party, such as a bank or an online service, in order to obtain credentials or data.
Answer : Ransomware
Ransomware encrypts files and demands a ransom for the decryption key; offline backups limit the damage.
Answer : Distributed denial of service (DDoS)
In a DDoS attack, many machines send requests to a service at the same time, which becomes inaccessible to legitimate users.
Answer : Two-factor authentication (2FA)
Two-factor authentication combines two factors of different kinds, such as a password and a code received on a phone.
Answer : A single key, shared by both parties
In symmetric encryption (AES, for example), the same key is used to encrypt and decrypt, hence the challenge of sharing it securely.
Answer : Their private key
The message is encrypted with the recipient's public key; only their private key, which they keep secret, can decrypt it.
Answer : TLS
TLS (Transport Layer Security) succeeds SSL and protects exchanges between the browser and the server in HTTPS.
Answer : SQL injection
SQL injection exploits unchecked input inserted into the query; parameterized queries prevent this hijacking.
Answer : Heartbleed
Heartbleed, revealed in April 2014, exploited a TLS extension in the OpenSSL library and allowed fragments of the server's memory to be read.
Answer : WannaCry
WannaCry (May 2017) encrypted files and spread via SMB thanks to the EternalBlue flaw, which Microsoft had patched in March 2017.
Answer : The ANSSI (French cybersecurity agency)
The ANSSI publishes reference guides. The CNIL oversees the protection of personal data, and the ARCEP regulates telecommunications.
Answer : MD5
MD5 is obsolete: as early as 2004, researchers showed that two different contents can be produced with the same fingerprint.
Answer : RSA
RSA, published in 1977 by Rivest, Shamir and Adleman, relies on the difficulty of factoring large integers.
Answer : Diffie-Hellman
Diffie-Hellman, published in 1976, allows a shared key to be created by exchanging public values, without transmitting the key itself.
Answer : An X.509 certificate
An X.509 certificate associates a public key with an identity, and the certification authority signs it; it is the basis of PKI.
Answer : The secrecy of the key
According to this principle, a system must remain secure even if everything is public, except the key. An algorithm kept secret often ends up leaking.
Play the Cybersecurity & Networks quizzes