1. Home
  2. Explore
  3. Computer Science
  4. Networking Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Networking Basics

Transcript

step, every protocol, every port, every tiny  detail of that journey. If you want to defend   systems, if you want to work in cyber security or  any IT field, you need to understand networking.   This video might just be the most valuable one  you'll watch in your entire journey. By the end   of this video, you'll see the internet in a way  you've never seen it before. So, that's exactly   what we're doing today. We're going to build  that foundation from scratch. This is networking basics for cyber security. Let's go. Okay, let's  start at the very beginning. What is a network? A   network is simply a collection of devices that are  connected together so they can share information.   That's it. That's the whole idea. Think of it  like a neighborhood. In a neighborhood, houses are   connected by roads. If I want to send a package  from my house to yours, I put it in a vehicle. It

travels the road and it arrives at your door.  A computer networks the same way. Devices are   the houses. The cables or Wi-Fi signals are the  roads and data is the package. Now those devices,   they can be anything. A laptop, a phone, a CERN,  a server, a printer, a smart fridge, a security   camera, a traffic light. Literally anything with a  chip and a connection. When those devices can talk to each other, that's a network. Here's a question  I want you to really sit with for a second. How   does a hacker get into a system they were never  invited into? Almost always, the answer involves   a network. Think about it. When someone hacks  into a company's database, they didn't walk in and   plug in a USB drive. No, they came in through the  network. They exploited a protocol, an open port,   or a misconfigured service. They use the network  against itself. Every major attack you've

heard of, data breaches, ransomware, fishing,  man-in-the-middle attacks, they all live on top   of networks. So, when you understand networks, you  understand the battlefield. And in cyber security,   you absolutely need to know your battlefield. All  right, before we go deeper, let's define three   terms you're going to hear constantly in this  course and in your career. These are IP address,   port, and protocol. Think of an IP address as  a home address. When you want to mail someone a

letter, you write their address on the envelope  so the postal system knows where to deliver it.   A computer's IP address does the same thing.  It tells the network where to send the data.   Every device on a network has an IP address. For  example, your laptop might have the IP address   192.168.1.5. When someone sends data to you, that  address tells the network, deliver it here. We'll   go much deeper into IP addresses later. For  now, IP address equals the address of a device on the network. Port. Now, imagine you arrive at  someone's house. You have the address. You find   the right building, but which door do you knock  on? Because a house has a front door, a back door,   a garage door, a side, a side entrance. A port  is like one of those doors. A single device can   run many different services at the same time.  Your laptop might be running a web browser,   an email client, a file sharing app, and a game  all at once. Ports help the system figure out

which service the incoming data belongs to. Port  80 is the door for web traffic. Port 443 is the   secure web door. Port 25 is email. Port 22 is  remote command line access. Each service has its   own door. That's a port. And finally, protocol.  A protocol is a set of rules that defines how   communication happens. Let's go back to our house  analogy. Imagine you arrive at someone's door. You   knock. They say, "Who's there?" You say your name.  They open the door. You say, "Hello." They say, "Hello. Come in." There's a process, a sequence.  Both parties know the steps. If you did something   weird, like just standing there silently, the  communication breaks down. A protocol is exactly   that, a formal agreement between devices on how  to start, carry out, and end communication. Rules   for formatting data, rules for handling errors,  rules for when to wait, and when to speak. HTTP

is a protocol, the rules for loading web pages.  DNS is a protocol, the rules for looking up domain   names. TCP is a protocol, the rules for reliable  data delivery. Don't worry, we'll explore all of   these in depth. So, to recap, IP address equals  the address of a device where to send data. Port   equals the specific door service on that device,  which app gets the data. Protocol equals the rules of communication, how the conversation happens.  Got it? Good. Let's build from here. Chapter 2,   network fundamentals. Types of networks.  Okay, now that you know what a network is,   let's talk about the different types of networks.  Not all networks are the same. The Wi-Fi in your   bedroom is very different from the global  internet. LAN, local area network. The first   type is a LAN. That stands for local area network.  This is a small local network, usually covering a

single building or a small area. Your home network  is a LAN. Your school's computer lab is a LAN. A   small office with 20 computers connected together.  That's a LAN. Think of it like a neighborhood,   a small defined area where everyone is relatively  close together. LANs are usually fast because   devices are close. Data doesn't have to travel  far. They're also typically private. You control   who gets on your home Wi-Fi. Cyber security  relevance. Once an attacker is inside your LAN,

they can potentially see all the other devices on  it. That's why network segmentation dividing your   LAN into isolated zones is such an important  security concept. WAN wide area network. A WAN   wide area network is a network that spans a  large geographic area. The internet itself is   the the biggest WAN in the world. It connects  billions of devices across every continent.   Companies also have private WANs. For example,  a bank with branches in 50 cities might connect

all those offices together through a private WAN.  So employees in different cities can share files   and access the same systems. Cyber security  relevance. Traffic traveling over a WAN passes   through many hands, ISPs, routers, data centers.  That's a lot of opportunities for interception.   This is why encryption is so critical when data  travels over wide area networks. Other network   types. Quick overview. Let me quickly mention  a few more. Man, metropolitan area network covers a city like a university campus network  connecting multiple buildings across town. PAN   personal area network very small like Bluetooth  connecting your phone to your earbuds. WLAN,   wireless LAN, just a LAN that uses Wi-Fi instead  of cables. Your home Wi-Fi is technically a WLN.   VPN uh virtual private network not exactly a type  of network but a technology that creates a private   encrypted tunnel through a public network like  the internet huge in cyber security we'll come

back to this idea network components. Let's talk  about the physical things that make networks work.   The hardware router. A router is the device that  connects different networks together and directs   traffic between them in your home. Your router  connects your homeland to the internet, which is   a WAN. Think of a router like a traffic cop at an  intersection. Cars come from different directions, and the traffic cop decides which way each car  should go. The router reads the IP address on each   data packet and decides which direction to send  it. Cyber security relevance. Routers are prime   targets. If an attacker compromises your router,  they control everything that flows through it.   Weak passwords on home routers are one of the  most common security vulnerabilities in the   world. Switch. A switch connects multiple devices  within the same network. Where a router connects

networks, a switch connects devices. Plug your  desktop, your laptop, your smart TV into a switch,   and they can all talk to each other. A switch  is smarter than its older cousin, the hub.   A hub would broadcast every message to every  device on the network, like shouting in a room.   A switch is smarter. It sends each message only to  the specific device it's meant for. Cyber security   relevance. An attack called MAC flooding can  overwhelm a switch and force it to act like a hub,

broadcasting traffic to everyone. This allows  an attacker to capture sensitive data they were   never supposed to see. Firewall. A firewall is a  security device that monitors and controls network   traffic based on rules. Think of it as a bouncer  at a club. You have a guest list. If your name is   on the list, you get in. If not, you're turned  away. A firewall inspects incoming and outgoing   traffic and decides what to allow and what to  block. It can block traffic based on IP address, port number, protocol, or even more complex  patterns of behavior. Cyber security relevance.   Firewalls are one of the first lines of defense.  Every organization has them. Understanding how   they work and how attackers bypass them is  fundamental knowledge. Access point. A wireless   access point or WAP is what creates a Wi-Fi  network. It broadcasts a wireless signal that   devices can connect to. Your home router usually  has a built-in access point. In larger buildings,

you'll see dedicated access points mounted  on ceilings to provide Wi-Fi coverage.   Cyber security relevance. Wireless networks are  inherently more vulnerable than wired ones. Data   is being broadcast through the air. Anyone within  range can attempt to capture it. That's why Wi-Fi   encryption like WPA2 or WPA3 matters so much.  Network interface card. Every device that connects   to a network has enic, a network interface card.  It's the hardware component inside your device that handles network communication. It could be a  physical Ethernet port or a Wi-Fi radio built into   your laptop. Every nick has a unique identifier  called a MAC address, which we'll talk about in   the IP chapter. How data travels packets. Here's  something I find genuinely fascinating. When you   send a large file over the internet, let's say a  100 megabyte video, it doesn't travel as one giant

chunk. It gets chopped up into tiny pieces. These  tiny pieces are called packets. Each packet is a   small chunk of data, typically between 500 and500  bytes. And here's the cool part. Each packet   contains not just a piece of the data, but also  the source IP, where it came from, the destination   IP, where it's going, information about how  to reassemble the pieces on the other end,   error checking information. So your 100 megabyte  video gets broken into thousands of tiny packets.

Each packet travels independently through the  network. They might even take different routes.   One packet might go through Chicago, another  through Dallas, another through Atlanta, and then   at the destination, they all get reassembled in  the right order. This is called packet switching,   and it's the fundamental way the modern internet  works. Cyber security relevance. Attackers use   tools called packet sniffers like Wireshark to  capture and inspect these packets as they travel across the network. If the data isn't encrypted,  they can read everything inside. This is called   a packet capture attack or a sniffing attack.  Client server versus peer-to-peer. There are two   main models for how devices interact on a network.  Client server model. In the client server model,   there are two distinct roles. Clients are devices  that request things. Your web browser is a client.   When you type in a URL, it sends a request.  Hey, can I have this web page? Servers are

devices that respond to those requests. A web  server receives your request and sends back the   page. Most of the internet works this way. Your  phone is a client. Netflix, YouTube, Google,   they're servers. The server is centralized. It  has control. It has the data. Cyber security   relevance. Servers are juicy targets. They hold  data for millions of clients. Attacking the server   gets you access to everyone's information at once.  This is why servers need the most robust security. In a peer-to-peer or peer-to-peer model, there's  no central server. Every device is both a client   and a server simultaneously. Think of Bit Torrent.  When you download a file via torrent, you're   downloading pieces from many users at the same  time, and you're also uploading pieces to others.   Everyone shares with everyone. Cyber security  relevance. P2P networks are harder to control   and monitor. Malware sometimes uses P2P style  communication to avoid detection spreading from

device to device without a central command server  that could be shut down. Bandwidth and latency,   two terms you'll hear constantly. Let's define  them properly. Bandwidth. Bandwidth is the maximum   amount of data that can be transferred through a  network connection per unit of time. We measure   it in bits per second, Mbps, megabits per second  or Gbps, gigabits per second. The highway analogy works perfectly here. Bandwidth is the number of  lanes on the highway. More lanes, it's more cars   or more data traveling at the same time. A 100  meps connection can handle 100 megabits of data   every second under perfect conditions. Latency.  Latency is the time it takes for data to travel   from source to destination. Uh we measure it in  milliseconds. Mess. Lower is better. Back to our

highway analogy. Latency isn't about the number of  lanes. It's about the speed limit. Or better yet,   how long the drive actually takes. You can have a  massive 10-lane highway, but if the destination is   on the other side of the world, it still takes  time to get there. Cyber security relevance,   high latency, and sudden changes in bandwidth  can be indicators of an attack. For example,   a DOS attack, distributed denial of service  floods a network with so much traffic that bandwidth is completely consumed. Legitimate  users can't get through. Monitoring bandwidth   and latency anomalies is a key part of intrusion  detection. Chapter three, the OSI model. Why do   we need a model? All right, here we are. The  OSI model. This is one of those topics every   networking course covers and with good reason.  It's foundational. Once you understand it,   so many other concepts just click. But let me  be real with you. A lot of people teach the

OSI model in a way that makes it feel abstract,  boring, just seven layers with names to memorize.   I'm going to do it differently. I want you to  understand why it exists and why it matters,   especially for security. Here's the problem it  solves. Back in the early days of networking,   every company made its own hardware and software.  IBM computers only talked to other IBM computers.   DMC computers only talk to DC computers. Nothing  worked together. It was chaos. So in the 1980s the ISO that's the international organization  for standardization created the OSI model that   stands for open systems interconnection. The  OSI model is a conceptual framework a way to   describe how network communication should work.  It's divided into seven layers. Each layer has a   specific job. Each layer talks to the layer above  it and the layer below it. This separation allows   different vendors to build different pieces. And  as long as each piece does its job correctly,

everything works together. Think of it like an  assembly line. Each station has one task. The   whole line produces the finished product.  Layers one by one. Let's walk through each   layer from the bottom up. From physical hardware  to the applications you use every day. Layer one,   physical layer. The physical layer is the most  basic level. It deals with the actual physical   transmission of raw bits, ones and zeros over a  medium. That medium could be copper cables like Ethernet, fiber optic cables, pulses of radio  waves, Wi-Fi. Um, this layer defines things like   how fast do bits travel, what voltage represents a  one versus a zero. What kind of connector does the   cable use? No intelligence here, just physics.  Bits going in, bits coming out. Cyber security   relevance. Physical layer attacks include cutting  cables, tapping cables to intercept signals,   or jamming wireless frequencies. Never  underestimate physical security. Layer two,

data link layer. The data link layer takes those  raw bits from layer 1 and organizes them into   meaningful frames. It also handles MAC addresses,  the hardware addresses burned into every network   card. At this layer, devices on the same local  network identify each other by MAC address.   Devices here include switches and nes.  This layer also provides error detection,   making sure bits aren't corrupted in transit.  Cyber security relevance. ARP spoofing is a layer 2 attack. ARP address resolution protocol maps IP  addresses to MAC addresses. An attacker can send   fake ARP messages, tricking devices into sending  traffic to the wrong MAC address to the attacker's   machine instead. Classic man-in-the-middle setup.  Layer three, network layer. The network layer   handles logical addressing and routing. This is  where IP addresses live. It figures out the best

path for data to travel from source to destination  across different networks. Devices here routers.   Think of the network layer as the navigator. We  need to get this packet from New York to Tokyo.   What's the route? Cyber security relevance. IP  spoofing happens here. Forging the source IP   address to hide where traffic comes from. Many  DOS attacks use IP spoofing to disguise the   true attacker. Layer four, transport layer. The  transport layer manages end-to-end communication between applications. This is where TCP and UDP  live, the two most important transport protocols.   This layer handles segmentation, breaking data  into segments, flow control, making sure one   device doesn't overwhelm another. Error recovery,  retransmission if segments are lost, port numbers,   identifying which application receives the data.  Cyber security relevance, port scanning happens   here. Hackers use tools like end mapap to probe  open ports. A sin flood attack, a type of DOS,

abuses TCP's handshake at this layer. Layer five,  session layer. The session layer manages the life   cycle of communication sessions. Think of a  session like a phone call. It starts, you talk,   the call ends. The session layer handles that  life cycle. It also manages authentication and   synchronization, checkpointing long data transfers  so they can resume if interrupted. Cyber security   relevance session hijacking. When an attacker  steals an active session, if someone is logged in and the attacker grabs their session token, they  can impersonate them without needing a password.   Layer six, presentation layer. The presentation  layer is about format and translation. It handles   data translation, converting formats like ASKI  to unicode, encryption and decryption, scrambling   data for security, compression, shrinking data for  efficiency. When you connect to a secure website,

HTTPS, the SSLTS encryption operates here. Cyber  security relevance. Weak or outdated encryption   at this layer can be broken, letting attackers  read your data. Understanding this layer is key   for security analysis. Layer seven, application  layer. The application layer is the one users   interact with directly. This is where protocols  like HTTP, HTTPS, FTP, DNS, SMTP, and SSH live.   It doesn't mean the application itself. It's the  protocols the applications use to communicate. Cyber security relevance. Most attacks happen  here. SQL injection, XSS, fishing, malware command   and control, all happen at the application layer.  This layer is the most exposed because users   interact with it and human interaction is always  a risk. Memory trick. Need a way to remember the   OSI layers? Here's a classic that actually works.  Please do not throw sausage pizza away. Physical,   data link, network, transport, session,  presentation, application. Just go bottom

to top. Physical up to application. Say it out  loud a few times. It sticks better that way.   Now, let's talk about one of the most important  concepts in networking, encapsulation. Think of   it like sending a package. Each layer on the  sending side adds its own wrapping, a label   with instructions, addresses, or special handling  notes. Here's how it works. Application layer adds   its header, the actual HTTP data. Transport layer  wraps it with a TCP or UDP header, adding port numbers. Network layer wraps it with an IP header,  adding source and destination IPs. Data link   layer wraps it with a MAC frame header for local  delivery. Physical layer converts everything into   bits and sends it over cables, fiber or Wi-Fi. On  the receiving side, it all comes back up layer by   layer. Each layer unwraps its own header, reads  it, and passes the remaining data up. Going down,   that's encapsulation. Coming up, that's  decapsulation. Cyber security relevance.

Attackers can hide malicious payloads deep  inside encapsulated packets, a technique called   tunneling. For example, malware can sneak inside  DNS packets, a layer 7 trick, to excfiltrate   data from a network that only allows DNS traffic.  This is called DNS tunneling. Real world example,   loading a web page. Let's tie all of this  together with a real world example. You type   httpsgoogle.com into your browser. What happens  at each OSI layer? Layer seven, application. Your browser constructs an HTTP get request. Layer six,  presentation. TLS encryption is negotiated. Data   gets encrypted. Layer five, session. A session  is established with Google's server. Layer four,   transport. TCP breaks it into segments. Port 443  is assigned. Layer three, network. IP addresses   are added, yours and Google's. Layer two, data  link. MAC addresses are added for local delivery.

layer 1 physical electrical signals, light pulses  or radio waves carry the bits. The response comes   back the same way in reverse and all of that  happens in milliseconds every single time   you load a page. Mind-blowing, right? Chapter 4.  What is the TCP IP model? The TCP IP model is the   practical model, the one the actual internet runs  on. While the OSI model is theoretical, academic,   and architectural, TCP IP is real world. Every  device, every website, every packet you send

actually uses this model. It was developed by  the US Department of Defense in the 1970s as   part of the ARPANET project, the ancestor of the  internet we know today. The TCP IP model has four   layers. Some versions show five, but the  classic version has four. One, network access   layer or link layer. Two, internet layer. Three,  transport layer for application layer. Mapping TCP   IP to OSI. Let's make sense of how TCP IP compares  to OSI. application layer TCP IP OSI's application

presentation session layer 765 transport  layer TCP IP OSI's transport layer 4 internet   layer TCP IP OSI's network layer 3 network  access layer TCP IP OSI's data link physical   layers 2 and one basically TCP IP collapses some  OSI layers into broader categories fewer layers   but everything still works layer 1 network access  layer the network access layer handles physically   moving data across a local network. This includes  cables, Wi-Fi signals, and wireless radios, data link framing, and MAC addressing. Protocols  here include Ethernet and Wi-Fi 802.11. Layer 2,   Internet layer. The internet layer handles logical  addressing and routing between networks. This is   where IP lives, both IPv4 and IPv6. Other key  protocols here, ICMP, internet control message   protocol. Ever run ping? That's ICMP checking if a  device is alive. ARP, address resolution protocol,

maps IP addresses to MAC addresses on a local  network. Cyber security relevance ping is often   one of the first tools an attacker or a security  analyst uses to see which devices are alive. Tools   like end mapap scan networks using ICMP and TCP  IP techniques. Layer three, transport layer. The   transport layer manages endtoend delivery between  applications. Two main protocols live here.   TCP transmission control protocol reliable  ordered uh ensures all data arrives intact.

UDP user datagramgram protocol fast connectionless  no guarantee of delivery. This is also where port   numbers live deciding which application  gets which data. Layer four application   layer. The application layer in TCP IP is much  bigger than in an OSI. It includes the application   presentation and session responsibilities allin  one. All application protocols live here. HTTP,   HTTPS, web browsing, DNS, domain name resolution,  SMTP, IMAP, POP 3, email sending and receiving, FTP, SFTP, file transfer, SSH, secure remote  access, DHCP, automatic IP address assignment,   Tnet, old insecure remote access. Don't use  this. Cyber security relevance. Every one of   these protocols has vulnerabilities. FTP sends  everything in plain text. Tnet plain text too,   including passwords. DNS can be manipulated.  SMTP often abused for spam or fishing. Knowing   which protocols are secure and which aren't is  foundational security knowledge. Why learn both

models? You might be wondering if TCP  IP is what actually runs the internet,   why bother with OSI? Great question. OSI gives  you a mental framework. When something breaks,   you can ask, is this a layer 3 problem, layer 7?  It helps diagnose and categorize network issues.   TCP IP is what actually works. You need both.  OSI for thinking and troubleshooting, TCPIP for   real world implementation. Security certifications  like CompTIA Security Plus and C test you on both.

And every real cyber security job expects you to  know both is chapter 5. Chapter 5, IP addresses   and addressing. What is an IP address? All right,  let's dive into IP addresses. The way devices find   each other on a network. An IP address, short  for internet protocol address, is a number that   identifies every device connected to a network.  It does two things. One, identification tells the   network who this device is. Two, location tells  the network where this device is. Think of it

like your home address. It tells the world who you  are and where to deliver the data. There are two   versions in use today, IPv4 and IPv6. IPv4 IPv4  or Internet Protocol version 4 is the original   version and still the one most widely used.  An IPv4 address looks like this 1 92.168.100. It has four numbers separated by dots. Each number  is between 0 and 255. In computers, each number is   8 bits. So the full address is 32 bits long. That  gives us about 4.3 billion possible addresses.

Sounds like a lot, right? But here's the problem.  There are over 8 billion people on Earth and most   people own multiple devices. We literally ran  out of IPv4 addresses. This happened around 2011.   We've been stretching IPv4's life with tricks  like NAT or network address translation. But the   problem remains. IPv4 just isn't enough anymore.  IPv6 enter IPv66 or Internet Protocol version 6,   the new futurep proof version. An IPvC address  looks something like 20001 col 0 dB8 col 85 A3

col 0 0 and so on. Eight groups in total. IPv6 is  128 bits long. That means the number of possible   addresses is basically unimaginable. To put  it in perspective, that's enough addresses to   give every atom on the surface of the Earth its  own IP address and still have plenty left over.   We are never running out of IPv6 addresses ever.  Cyber security note. IPv6 adoption is slower than   expected. Many networks still run both IPv4  and IPv6 at the same time called dual stack.

If firewalls or security tools aren't set up to  handle IPv6, attackers can use it as a blind spot.   Always make sure your security controls cover both  protocols. Public versus private IP addresses.   Not all IP addresses are created equal. Some are  public, some are private. Public IP addresses. A   public IP is globally unique and can be reached  from the internet. Google's servers have public   IPs. That's how your browser finds them. Your  home network has a public IP, too, assigned by your ISP or internet service provider. This is  the address the world sees when you connect to   websites. Private IP addresses. A private IP is  used only inside your local network. It cannot   be accessed from the internet. Common private  IP ranges include 10.0.0.0 to 10.255.255.255 172.16.0 to 172.31.255.255 192.168.00 to 192.168.255.255. Your home router gives your devices  private IPs. Laptop might be 192.168.1.5. Phone might be 192.168.1.6.

These addresses only work inside your home  network. But here's the big question. If   devices have private IPs, how do they  talk to the internet? That's where   NAT comes in. It converts private IPs to  public ones so your devices can send and   receive data online.NAT network address  translation. This is where NAT comes in.   Network address translation is what your router  uses to let multiple devices share a single public IP address. Let's make this real. Your  laptop might have a private IP like 192.168.15. Now, when your laptop sends a request to  Google, your router steps in. It replaces   your laptop's private IP with its own public IP  address, sends the request out to the internet,   and keeps track of that translation. When  the response comes back, the router checks   its records, converts the public IP back into  your laptop's private IP, and delivers the data

to the correct device. All of this happens in  milliseconds. You never even notice it. Uh,   NAT basically hides your internal network from the  outside world. It's not a full security solution,   but it adds a layer of obscurity. Cyber  security relevance.NAT can make forensic   investigations tricky. If you see traffic  coming from a public IP like 203.0.11350, that might not be one device. It could be a router  representing hundreds of internal devices. To find the real source, you need logs from the NAT device  itself. Static versus dynamic IP addresses. Now,   let's talk about how IP addresses are assigned.  There are two types, static and dynamic. A static   IP address is manually set and it doesn't change.  Servers usually use static IPs because you always   need to find them at the same address. A dynamic  IP address is assigned automatically by something

called a DHCP server, dynamic host configuration  protocol. These IPs can change over time. Most   home devices use dynamic IPs. Even your ISP  may change your public IP occasionally. Cyber   security relevance. There's an attack called DHCP  starvation. An attacker floods the network with   fake requests until all available IP addresses  are used up. Now legitimate devices can't connect.   Then the attacker sets up a rogue DHCP server,  handing out fake IP addresses and secretly routing

traffic through themselves. That's a classic  man-in-the-middle attack. Special IP addresses.   Some IP addresses have special meanings. You'll  see these again and again. Local host 127.0.127.0. 0.0.1. This is called the loop back  address. It always refers to your own   device. When you open a browser and go to  localhost, you're talking to yourself. Cyber   security relevance. Malware sometimes  uses local host to run hidden services in the background. Understanding this is  important for analysis. Default gateway.   The default gateway is your router's IP  address. usually something like 192.168.1.1 or 192.168.0.1. Whenever your device needs to  send data outside your network,   it sends it to the gateway first. Broadcast  address. A broadcast address sends data   to every device on a network at  once. For example, 192.168.1.255.

Cyber security relevance. Old attacks like Smurf  attacks abuse this, sending fake requests so that   every device responds to a victim, overwhelming  it with traffic. MAC addresses. Now, let's talk   about another type of address, the MAC address.  MAC stands for media access control. This is a   hardware address built into your devices network  card. It looks like this. 001 A 2 B 3 C 4 D 5 E.   six pairs of characters usually in hexadimal.  MAC addresses work at the data link layer. That's

layer two. They are used for communication within  a local network only. When data moves across   networks, the MAC address changes, but the IP  address stays the same. Cyber security relevance.   MAC spoofing is very easy. An attacker can change  their MAC address to impersonate another device,   bypass restrictions, or hide their identity.  Subnetting networks within networks. Now,   here's a concept that confuses a lot of  people at first. Subnetting. A subnet is simply a smaller network inside a bigger  one. Why do we do this? For organization,   for performance, and most importantly, for  security. Think of it like an apartment   building. The building has one main address, but  inside there are many separate apartments. Each   one is isolated. Subnet mask. A subnet mask  tells us which part of an IP address is the   network and which part is the device.  For example, IP address 192.168.1.5. Subnet mask 255.255.255.0.

The 255 parts represent the network. The  zero part represents the devices. This   means the network includes  addresses from 192.168.1.1 to 192.168.1.254. That gives us 254 devices. Cedar notation.  Instead of saying the full subnet mask,   we often use cedar notation.  So instead of 255.255.255.0, we just say /24. That means 24 bits  are for the network. So 192.168.1.0/24 describes the whole network. Common  examples SL8 very large network SL16

large network SL24 small network  SL30 network usually pointtooint cyber security relevance subnetting is one of  the most powerful security tools you can separate   systems into different zones web servers in one  subnet databases in another employee devices in   another and control traffic between them so if  an attacker breaks into one subnet they can't   automatically access everything else. That's  called reducing the blast radius. Chapter 6, ports and protocol. What is a port? All right,  let's come back to that apartment analogy because   it makes this super clear. Imagine you send  a letter to a large apartment building. The   address gets your letter to the building, but  it doesn't tell you which apartment to deliver   it to. That's where the port comes in. Um, the IP  address gets data to the device. The port number   gets it to the right application on that device.  Um, a port is simply a communication endpoint

identified by a number. Ports range from 0 up  to 65,535. So when a server receives traffic on   port 80, it knows this is web traffic. On port  443, that's secure web traffic. On port 22,   that's secure remote access. Each port is  like a specific door for a specific service.   Port ranges. Ports are divided into three main  categories. Well-known ports. These go from 0   to 1. These are reserved for standard services.  Examples: HTTP port HTTPS port 443, SSH port 22,

DNS port 53, FTP port 21. These usually require  administrator privileges to use. Registered ports.   These range from 1,024 to 49,151. These are  assigned to specific applications. Examples:   MySQL port 3306, Postgress SQL port 5432, remote  desktop port 3389, alternate web port 8080,   dynamic or ephemeral ports. These range from  49,152 to 65,535. These are temporary ports.   When your browser connects to a website on port  443, it also opens a random temporary port on your

side and so the server knows exactly where to send  the response back. Critical port numbers to know.   These are the ports you should know instantly. No  thinking. FTP ports 20 and 21. SSH port 22. Tnet   port 23. SMTP port 25. DNS port 53. DHCP ports 67  and 68. HTTP port 80. POP 3 port 110. IMAP port   143. HTTPS port 443. MySQL port 3306. RDP port  3389. HTTP alternate port 8080. Cyber security   relevance. One of the first things attackers  do is port scanning. They use tools like end

mapap to see which ports are open. Open ports mean  services are running and running services um might   have vulnerabilities. That's why a key security  rule is simple. If you don't need a port, close   it. This is called reducing your attack surface.  Key protocols explained. Now let's go deeper into   the protocols themselves. DNS domain name system.  Let me ask you something. Do you know Google's IP address? Probably not. And you don't need to. You  type google.com and it just works. But behind the   scenes, that name has to be converted into an IP  address because computers don't understand names.   They understand numbers. That's what DNS does. DNS  is basically the phone book of the internet. You   give it a name, it gives you a number. Here's what  happens step by step. One, you type google.com   into your browser. Two, your device checks  its local memory called the DNS cache. Three,

if it doesn't find it, it asks a DNS resolver,  usually your ISP or something like 8.8.8.8. Four, if the resolver doesn't know, it asks the  root servers. The root servers point to servers.   Six, those point to the official Google servers.  Seven, the correct IP address is returned. Eight,   it gets saved for next time. Nine, your browser  connects to that IP. And all of this happens in   milliseconds. Cyber security relevance. DNS can  be attacked. In DNS spoofing, an attacker tricks your system into believing a fake IP address is  real. So you think you're visiting your bank,   but you're actually on a fake website controlled  by the attacker. There's also DNS tunneling,   where attackers hide data inside DNS requests  to secretly send information out of a network.   HTTP and HTTPS. Let's talk about the protocols you  use every single day without even thinking about   it. HTTP, short for hypertext transfer protocol,  is what your browser uses to request web pages.

At its core, it's simple. Your browser sends a  request like get/index.html using HTTP version   1.1, for example,.com, and the server responds  with the page content. That's how websites   load. But here's the problem. HTTP is completely  unencrypted. Everything is sent in plain text.   If someone intercepts that traffic, they  can read everything. Usernames, passwords,   session data, everything. Now, this is where  HTTPS comes in. HTTPS stands for HTTP secure.

It's basically HTTP wrapped inside encryption  using something called TLS, transport layer   security. This encryption protects the data while  it's traveling. It also verifies the identity of   the server using a digital certificate. That's why  you see the little padlock icon in your browser.   Cyber security relevance. If you use plain HTTP  on a network, your data can be captured and read.   That's why HTTPS is non-negotiable today. And as  a security professional, you'll use tools like Burp Suite to intercept and analyze web traffic,  especially when testing web applications. Uh SMTP,   IMAP, and POP 3, email protocols. Now, let's talk  about email. Sending and receiving emails actually   involves multiple protocols working together.  First, SMTP, simple mail transfer protocol. This   is used for sending emails. When you hit send,  SMTP takes your email from your device to your   mail server and then between servers until it  reaches the destination. Common ports are 25,

587, and 465. Next, IMAP, Internet Message Access  Protocol. This is used for reading emails while   keeping them on the server. So, if you check  your email on your phone and then on your laptop,   everything stays synced. ports 143 and 993  for secure connections. Then there's POP 3,   Post Office Protocol version 3. This downloads  emails to your device and usually removes them   from the server. Ports 110 and 995 for secure  connections. Cyber security relevance. Email is the number one attack vector in the world.  Fishing attacks rely heavily on these protocols.   And here's the issue. SMTP was designed in a time  when the internet was more trusting. It has very   little built-in security. That's why we now use  protections like SPF, DKIM, DMC. These help verify   that an email is actually coming from from who it  claims to be. Understanding this is critical in

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent