Lesson finished
Unlock all 26 lessons of Foundations of CybersecurityFull course ₹40,000 · paid
Networking Basics, Routers, Switches and Firewall Types
A free lesson from Skill-Lync's Foundations of Cybersecurity course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 2 Session 1”
What will you learn in this free Foundations of Cybersecurity lesson?
The instructor opens the networking week with the definition of a network and a peer to peer setup. The lesson then covers edge routers, how a switch uses its MAC table to forward traffic between computers, and firewall types including packet filtering, stateful inspection, proxy and software firewalls, with their trade-offs.
- What a network is and how peer to peer networks work
- The role of an edge router and a switch MAC table
- Packet filtering, stateful and proxy firewalls
- Benefits and drawbacks of software firewalls
What comes after lesson 3?
Later in Skill-Lync's Foundations of Cybersecurity course (paid): lesson 4, Week 2 Session 2; lesson 5, Week 2 Session 3; lesson 6, Week 3 Session 1. The full course has 26 lessons (13 h 38 min of video); see the course overview or its price and syllabus.
Lesson transcript
Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.
Hi, welcome to the basics of cybersecurity. In this week, we are about to cover the topic on the basics of networking. So when coming to the cybersecurity, we are all aware that the devices are interconnected. So coming towards the enterprise level, when the devices are getting interconnected, we need to ensure that the how the communication is getting placed and what are all the devices that we have part of networking when coming towards the enterprise level and how the communication is being established. So to have a brief idea on this, we need to have the basics of networking and what are all the basics that we need to have a vision of. So let's get into the topics of this week. So in this week, we are about to cover the introduction to networking. So what is a router, switch, firewall, Wi-Fi, what is an access point, what is the range extender and what is the difference between these two devices and then for communication, we have IPv4 address.
IPv6 address. So why they have two kinds of IPv6 address in place and what is the difference between them. Then what is a private IP, what is a public IP, what is a MAC address and what they are mentioning as protocol and a legacy pattern which we are still following is the OSLIR. So without any delays, let us get into the first topic as introduction to networking. In information technology, a network is defined as the connection of at least two computer systems. It can be either by a cable or by a wireless connection as well.
The simplest network is combination of two computers connected by a cable. This type of network is called peer to peer network. There is no hierarchy in this network. Both participants have equal privileges. Each computer has access to the data of the other device and can share the resources such as disk space, applications or peripheral devices, example printers as well. So if you are in an organization, you might be aware that we do have the devices are getting connected. So we will be having the printer services which are being shared and we have the data as well that can be accessed from anywhere.
So coming towards a very basic example where you can have a vision is if you are aware of what is a torrent. So that torrent application is based on the peer to peer network. So basically a torrent is a platform where we can have the files or an application or any kind of information that can be shared across the network by using a specific software but that application uses a peer to peer communication. So it is a decentralized. So it is a decentralized way where this stored into a decentralized. For example, if I'm having an image or an file that consists of 5 GB and if someone need to access that 5 GB, I will have that 5 GB of data split up into 5 systems or it may be in more than that.
So what I can do is that when I am having this kind of specific application, this communication will be happening from all those 10 servers which is turned on. So if I am trying to access the data, it will ensure that all this information will be connected from all part of the network. I mean the devices which are getting interconnected. So I have major advantages in this kind of connection. I can ensure that the data is being shared across the network and then there won't be any disruption on the data which I am trying to retrieve.
And then this is a kind of fault tolerance kind of communications. For example, out of 10 servers, if I have 2 or 3 servers which are not, so I can ensure that I do have another 7 or 8 systems where they are turned on and then I can retrieve such files. So this is the basic idea of how the peer-to-peer communication work. In today's networks tend to be a bit more complex and don't just consist of 2 computers. Systems with more than 10 participants usually use client-server networks. In these networks, a centralized computer that is a server provides resources to other participants in the network that is called a client.
So coming towards the example on this. So we are having many streaming services such as Netflix or Amazon or any other platform that you can choose about. So this is a kind of a client-server communication. So they have hosted the service in one of the servers which might be located in any of the region. This can be within your international or it can be in other part of the geolocation. So when we are trying to access it, all the communication is based on this network. So this kind of communication is not specific to any particular device. For example, if I am trying to stream one of a video, it is not possible that I need to get this viewed only from my physical computer.
There are multiple devices that we have. For example, we do have a mobile device, a portable device such as a laptop or we do have an iPad or there are many other handheld devices. So such kind of devices can communicate to those servers and then we can retrieve the functionality of what we are trying to do. So it is not a limited scope where we can have this kind of access with any particular device. So it is all interconnected. So what is the major use of such kind of network?
So one of the major point is the shared use of data. So the data can be anywhere across the network where the devices are connected and then I can make sure to retrieve those data. And then the next point will be shared use of resources. So if I need to have any specific resource, I can ensure this can be achieved from the devices where my system or the device where I am getting connected. And then the next point is the central control of programs and data. So if I am having many applications or the many data where it is split and applied across many devices, I can ensure that this can be controlled and this can be monitored using a centralized device.
And then the last point is that central storage and backup of data. So we can ensure that the storage is made on one platform and that can be shared to different person as well. So coming towards the real world example, if you are having a Gmail account and if we have the file stored on the Google Drive, that Google Drive can be shared to anyone which you like to share the data. So it is not specific to one particular user. So all you need to have is that you need to provide access to whom you need to share the data. So using as a centralized resource as a Google Drive, which the example I can say, this data can be shared to many people whom you wish to.
And then you can even have the specific access where to whom and to what kind of information that they can share. For example, for particular kind of users, you can give the access to whether they do have only read only access. And for some other users where you can have permission to use your particular drive and then they can ensure to store or retrieve the data, whatever that you wish to. So it is a kind of platform where the devices are connected and these kind of resources can be shared.
So let's go towards the next topic. Router. A router is a device that connects two or more packet switched networks or subnetwork. It serves two primary functions. Managing traffic between this network by forwarding the data packets to their intended IP address and allowing multiple devices to use the same internet connection. The data packets. The data packets have several layers or sections. One of which carries the identifying information such as sender, data type, size and most importantly, the destination address and that is nothing as the IP address.
The router reads this layer, prioritizes the data and chooses the best route to use for each transmission. So to have this example in this router where you can have a vision of if you are having a broadband connection in your home, so all the traffic will be routed towards that specific router device. So all those connections will be coming towards the specific device and then even the outgoing connection will be made from that particular device. So it will route the traffic and ensure to which device which type of communication need to be established. So that is how it works.
But let's have a vision of how such kind of router works in the enterprise level. Think of our router as an air traffic controller and then the data packets as an aircraft head to different airports that is what I can say. So this is some kind of an airport scenario. That is what I am just trying to convey here. Just as each plane has a unique destination and follows a unique route, each packet needs to be guided to its destination as efficiently as possible. In the similar way, that an air traffic controller ensures that the planes reach their destination without getting lost or suffering a major disruption along the way.
A router helps to direct the packets to the destination IP address as well. In order to direct packets effectively, a router uses an internal routing table. That is what we call as IRP. This consists of a list of paths to various network destinations. The router reads a packet. Header to determine whether is it going to the concern destination to the routing table to figure out most efficient path through that destination. It then forwards the packet to the next network in the path. So in this image, you can see how router will be, that is on the enterprise level.
We can see there are multiple ports that have been available. So we can ensure that each port we can configure only this kind of traffic to be going through. Or then we can even mention only specific type of communication need to be established from this specific port. Or else we can ensure that only such kind of users can access from the specific port. So this all kind of information can be done on this router. So that is the major difference between the enterprise level router and the router which we are using in our day-to-day activities.
Such as in the home which we have. That is what I am just trying to convey. So such kind of communications need to have a table. So when you are just purchasing a router, it doesn't have any kind of information such as which traffic to be forwarded to which destination. So that level of configuration need to be done on this specific enterprise level. So we need to guide this router how to manage the traffic and how to communicate with those specific destination and what are all the things to be taken care of.
So let us go with the type of routers that we have overall in our enterprise level. So the first one is the core router. So core routers are generally used by the service provider. So the service providers are nothing but the internet service provider such as Verizon, AT&T, Vodafone, Atov. So these are all the ISPs we have. And then the other cloud providers as well. So the major cloud providers are example as Google, Amazon, Microsoft. So they provide maximum bandwidth to connect additional routers or switches.
Most small businesses will not need such kind of core routers. The reason is these core routers are very expensive. So if I have a small organization or else if I have an organization with the employees of around 4,000 to 5,000 employees, I don't need the core router to be installed in my environment because it is such an expensive router device which I need to spend on. And then I need to configure in a very high scale level. And then I need to have a specialized room for such kind of devices to be configured as well.
So all the major players who purchase such kind of routers. Core routers operate at the core of the network and they do not communicate with the external network as well. Because the routers which we are trying to configure on the enterprise server, they obviously need to get connected to the external network. So that is where they have their business to be done. So in that case, we don't need the core routers as well. So let's go to the next type of router is an edge router.
An edge router is also called as a gateway router or just gateway for short. It's the network's outermost point of the connection where the external networks including the internet. Edge routers are optimized for bandwidth and designed to connect to other routers to distribute data to LUSS. Edge routers don't usually offer Wi-Fi or the other ability to manage local networks only. They typically have only Ethernet ports and input to connect to the internet and several outputs to connect to additional routers. Edge routers leave an edge of the network and use the border gate protocol to send and receive the data from LANs and BNR.
So this is a kind of a similar router where all the enterprise level will be having. So if you need the connection to be established from the external network, you need to have this edge router installed in your gateway. So the gateway is nothing. It is a point of contact where it is going to get communicated to the external network. The external network is nothing. We can just simply mention in a way as internet. So when you need to have the communication to be done on the external network, using this edge router, we can obviously define what kind of traffic need to be established.
For example, if in an enterprise level, I can access any kind of websites such as social media websites such as Facebook or Twitter. So I need to block such as kind of traffic from my environment. I don't need my employees to get distracted. So I can make sure this kind of traffic can be modified using such kind of router. And these are the type of configuration that can be done on the router device. So let's get into the last type of the router as virtual router.
Virtual routers are pieces of software that allow some router functions to be virtualized in the cloud and delivered as a service. These routers are ideal for large business with complex network needs. They offer flexibility, easy scalability and a lower entry cost. Another benefit of virtual routers is reduced management of local network hardware. So if you are running a small business and then if you need the traffic to be managed, so most of the small scale organization don't have the capability to purchase such kind of routers.
So in that case, what they can do is that they can deploy a virtual server and then from that virtual server, they can ensure this kind of routing can be established based on this virtual router. So it is a kind of an application where you can get installed in any system. It may use the virtual router redundancy protocol that is VRRP. So this is specific for the virtual router. So they do have this kind of protocol to establish primary and backup the virtual router should one say.
For example, if you have the application which we have the virtual router posted and then one of the application goes down. That is once server is not working perfectly, we can ensure such kind of traffic can be routed to another server where it is in the upstate. So it is a kind of a failover router that we have. So that's the type of router and how the router works. So let's get into the next topic as switch. A network switch is a device that operates the data link layer of the OSI model.
So in the later part of this session, I will ensure that what is the data layer, what is the layers that we have in the OSI and how they have been established. So basically, the switch is a layer 2 device. It takes packets being sent by devices that are connected to its physical port and sends them out. But only through the ports that lead to the devices that packets are intended to reach. Once the device is connected to the switch, the switch notes its MAC address, a code that has been blocked into device NIC card and that attaches to an Ethernet cable, email that is being connected to the switch.
The switch uses the MAC address to identify which attached device outgoing packets are being sent from and where to deliver the incoming packet. So the MAC address identifies the physical device as opposed to the network layer, that is the layer 3, in which the IP address, which can be assigned dynamically to a device and change over time. When a device sends a packet to another device, it enters the switch and the switch reads its header to determine what to do with it. It matches the destination address or the address and sends the packet through the appropriate port that leads to destination devices.
So this kind of transmission mode is basically in a full duplex, that is the communication in which the channel occurs in both the directions at the same time. Due to this, the collision do not occurs. So let me give you in a very simple way. For example, if you are trying to establish a connection with another device and you have a new switch installed in your computer, in your environment I could say. So how the switch used to identify and how it will make the traffic.
So first, when you are connecting a system to the switch, it will send a packet through the switch and then it will establish a communication. Hey, my name is so and so and then this is my IP address and this is my MAC address. So the switch usually stores the MAC address of each and every IP address. Because the IP address can be changed at any time, but the MAC address won't change. So such kind of MAC table is being added up into the switch. They do have a memory installed on those each and every switches.
So based in that memory, this MAC address will be entered. And then another device is being connected to the same switch. And even this system will establish a communication. Hey, I am just sending a packet and this is my MAC address and then this is my IP address. So obviously this switch will add this MAC address as well. So when a computer one is trying to establish a communication and then when it is trying to send a network, when these devices are connected to the switch, what the switch will do is, it will obviously route the traffic based on the MAC address.
So I can give you another vision. In a very simpler way. So a computer one will try to establish communication with the computer two, where these two systems are connected to the switch. So the computer one will say hi, I need to establish communication with computer two. So this data will be forwarded to the switch and the switch will have the MAC table in this memory. So the switch will read the communication because it will be having the details such as the IP address and the MAC address. So this will match with the MAC table which it have in its memory and then it will forward the traffic to the computer two.
So this type of communication will be established within a fraction of second. So we need to ensure that kind of communication needs to be done in a very smoother way. So this is how the switch works. And we have types of switches in our environment. Managed switch. Managed switch offers more functionality and features for IT professional and are the type most likely seen in the business or enterprise settings. Managed switches have command line interfaces that is CLI to configure them. They support simple network management protocol that is SNMP agents that provide information that can be used to troubleshoot network problems.
They can also support virtual LAN and quality of service settings and the IP routing as well. The security is also better protecting all types of traffic that they can handle. Because of their advanced features managed switches cost more than unmanaged switches. The augmented features may be quality of service like higher security levels, better precision control and complete network management. Despite their cost, they are preferred in growing organization due to the scalability and flexibility. So when you are going with the managed type of switch, it is a kind of an expensive device as well.
So as I mentioned earlier, if you wish to expand your organization, you can opt such kind of this switch. And the next type of switch is unmanaged. Unmanaged switches are the most basic offering fixed configuration. They are generally plug and play, which means they have few in options to choose from. They may have default settings of features such as quality of service, but they cannot be changed. The upside is that unmanaged switches are relatively inexpensive, but their lack of features make them unsuitable for most enterprise users.
So if you are a startup organization, then you can obviously use the unmanaged switches because it can be a more complex way where you need to handle the traffic. And then the last type of switch is the smart or intelligent switches. So smart or intelligent switches are managed switches that have some features beyond what an unmanaged switch offers, but fewer than a managed switch. So this is a kind of an in middle between the managed and unmanaged. So they are more sophisticated than unmanaged switches, but they are also less expensive than a fully managed double switch.
They generally lack software for telnet access and have web interface rather than CLI. Other options such as virtual lands may not have as many features of those supported by fully managed switches. But because they are less inexpensive, they may be good fit for smaller networks with fewer financial resources and those with fewer future needs. So this is how the switch works in the enterprise level. So the image which I have mentioned in this PPT, you can see there are multiple ports that they have in the switch. For example, you can have the humbers mentioned as one, two, three, four, five, six, seven, eight. So you can obviously connect eight devices in this switch. So in a shorter form, in an enterprise level, they will be calling this device as an eight port switch.
So we have this multiple type of switch where they will be mentioning as eight port switch, 16 port switch, 24 port switch. So it is all in multiple of eights, obviously. So this is how the switch will be on the enterprise level. So let's get into the next topic called as firewall. Firewall. So a firewall is a network security device that monitors incoming and outgoing network traffic and decides whether to allow or block specified traffic based on the defined set of security rules. Firewalls have been a first line of defense in the network security over 25 years. They establish a barrier between secured and controlled internal networks that can be trusted and untrusted outside the networks such as internet.
The primary goal. The primary goal of a firewall is to block the malicious traffic requests and data packets while allowing legitimate traffic through. Firewall only welcomes those incoming connections that it can be configured to accept. It does this by allowing or blocking specific data packets. It does this by allowing or blocking specific data packets. Units of communication. Units of communication you said or digital network based on pre-established security rules. So this is a kind of security device where you can ensure that the where the traffic need to be coming and which traffic need to be outgoing.
So this can be done either in the command line level or in the GUI level. So we have multiple firewall products in our environment. So this can be configured in a way where we can ensure what type of communication need to be established. So if a firewall can be basically hardware or software or it can be mixed on both of these. So let me just mention you the what are the types of firewall that we have. So the first one is the packet filtering firewall. A small amount of data is analyzed and then distributed according to the filter standard.
This type of firewall. This type of firewall that is the packet filtering firewall is the most basic form of protection and is meant for smaller network. At the most basic and the oldest type of firewall architecture packet filtering firewalls basically create a checkpoint at a traffic router or switch. The firewall performs a simple check of the data packets coming through the router inspecting information such as the destination and the originating IP address. Packet type, packet type, packet type, port number and other surface level information without opening up the packet to inspect its content. If the information packet doesn't pass this inspection then it is strong. The good thing about this firewall is that they aren't very resource intensive. This means that they don't have huge impact on system performance and are relatively simple as well. However, they are also relatively easy to bypass compared to firewalls which we are robust.
And the other inspection capabilities. So the next type of firewall is proxy firewall. Network security system that protects while filtering messages at the application level. Proxy servers can provide additional functionality such as content catching and security by preventing direct connection from outside the network. However, however, however, this also may impact throughput capabilities and the application they can support. These firewalls are delivered via cloud based solutions or any other proxy device. Rather than letting the traffic connected directly, the proxy firewall that establishes a connection to the source of the traffic and then inspects the incoming data packet.
So coming towards a part of cybersecurity. So the proxy firewall which they have is to ensure that whenever when a hacker is trying to bypass this firewall, obviously he will be reaching the proxy firewall. So they won't be having the visibility are they trying to break through the physical firewall or the proxy firewall. So just this check is similar to this check is similar to the stateful inspection firewall in that it looks at the both the packet and the TCP handshake protocol. However, proxy firewalls may also perform deep layer packet inspection checking the actual contents of the information packet to verify that it contains no malware as well.
Once the check is complete. Once the check is complete and the packet is approved to connect to destination, the proxy sends it off. This creates an extra layer as a separation between the client that is the system where the packet originated and the individual devices on your network obscuring them to create additional anonymity and protection to your network. So if you wish to have a very secure network, which you need to establish a firewall. So a proxy firewall is the one which I would recommend. The next one is the stateful inspection firewall. Dynamic packet filtering that monitors active connections to determine which network packets to allow through the firewall.
Stateful inspection firewall allows or block traffic based on the state, port and protocol. Stateful inspection firewall. It monitors all activities from opening a connection until it is closed. Filtering decisions are made based on both the administrator defined rules as well as context, which refers to using information from previous connections and packets belonging to the same connection. These firewalls. These firewalls combine both packet inspection technology and TCP handshake verification to create a level of protection greater than either of the previous two architectures could provide alone. However, these firewalls do not put more of strain on the computing resources as well. This means slow down the transfer of legitimate packets compared to the other two solutions.
This case would apply to this principle midway screen size. This one would make one of them самые useful for systematically to operate as well as effectively as possible. But these last plenty of行為 they can access to the questi. These firewalls are not a model that theoret자람 has shown through the single- datal Since this is getting inspected into the packet level, the rate of transmission will get reduced and the system resource will also be consumed as well. So this is a kind of a firewall where it takes much resources.
So the next one is the next gen firewall. So this kind of firewall is being used on the majority of the enterprise customers. Deep packet inspection firewall with application level inspection. Most companies are deploying next gen firewall to block modern threats such as advanced malware and application layer attacks. Some common features of the next gen firewall architectures include deep packet inspection, that is checking the actual contents of the data packet. And then TCP hands checks and surface level packet inspection. Next gen firewall may include other technologies as well, such as IPS, intrusion prevention system, that work on automatically stop attacks against your network.
The issue is that there is no one definition of a next gen firewall. So it's important to verify what specific capabilities such firewalls have been investing in one. So in the next gen firewall, they do have the communication on their own forum. So the feeds can be established. So based on those feeds, we can ensure whether the traffic which is incoming is legitimate or not. So to say in a better example, for example, a new kind of virus that has been emerged and it has been trying to establish to all of the organization.
And such kind of communication is being done from one of the specific IP. So we do have various feeds where such kind of information are being popped up. So this next gen firewall will try to communication with that feed and then it will drive the information. And then if you are trying to get any kind of traffic from that specific malicious IP, it will block in the first place. So this is a kind of an advanced firewall, which we have so far. So the last one is the software level firewall.
So the software firewalls include any type of firewall that is installed on the local device rather than a separate piece of hardware that is on the cloud server, I could say. So the big benefit of the software firewall is that it's highly useful for creating difference in depth by isolating individual network and point from one another. However, maintaining individual software firewalls on different devices can be difficult and time consuming actually. Furthermore, not every device on a network may be capable with a single software firewall, which may mean having use of several different software firewalls to cover each and every asset.
So to have a better view on this, for example, if you are having multiple devices, that has your laptop or a desktop and the mobile. So in each of these devices, you can have the firewall installed. So that is software based firewall. So that is a kind of a firewall, which we have. But it is a kind of a time consuming activity. And it is not one of the best practices that I will say, because it will consume a lot of resources. And then it will be a more traffic towards our network.
So this is all about firewall and then the types of firewall that we have in the enterprise server. So let's get into the next topic.