Simple Queue pada Jaringan Bridge - MIKROTIK TUTORIAL [ENG SUB]

Mikrotik Indonesia - Citraweb
4 Dec 202217:42

Summary

TLDRThis tutorial explores the unique Bridge feature in MikroTik routers, which transforms them into switches for the same subnet IP addresses. The video demonstrates how to manage bandwidth for hosts within a single segment using the MikroTik Bridge, including disabling Hardware Offload and applying Simple Queue for traffic management. It also touches on MikroTik's CRS and CSS Switch series for more complex network management, offering practical insights for users looking to optimize their network configurations.

Takeaways

  • 😀 The MikroTik Bridge feature allows a router to function as a switch, bridging multiple interfaces.
  • đŸ› ïž Traffic management, including bandwidth management, is possible on a single segment using the Bridge feature.
  • 🌐 MikroTik's Bridge feature is useful when a full switch is not needed or when only a few switch ports are required.
  • 🔧 To utilize the Bridge feature for bandwidth management, hardware offloading must be disabled to allow CPU traffic management.
  • 🚀 The 'Use IP Firewall' setting in Bridge settings is crucial for managing layer 2 traffic between hosts on the same IP segment.
  • 📈 Simple Queue can be used to set bandwidth limitations for specific devices on the network.
  • 🔄 Disabling hardware offloading enables the MikroTik router to manage traffic at the CPU level, necessary for bandwidth limitations.
  • 📝 The script demonstrates how to configure a MikroTik hAP lite router to bridge ether1 and ether2 ports and manage bandwidth.
  • 🌟 MikroTik's CRS and CSS devices offer advanced Bridge and Switch features for complex network management.
  • 📊 Bandwidth tests can verify the effectiveness of bandwidth limitations set by Simple Queue.
  • 🔗 The bandwidth limitation setup can also be applied to wireless interfaces, such as a wireless repeater.

Q & A

  • What is the unique feature of MikroTik Routers discussed in the video?

    -The unique feature discussed is the Bridge feature, which allows a MikroTik Router to function as a Switch, enabling traffic management between hosts on the same IP address segment.

  • How does the Bridge feature enable a MikroTik Router to act as a Switch?

    -By utilizing the Bridge feature, the MikroTik Router can connect hosts with the same subnet IP address, essentially working as a Switch in addition to its primary function as a Router.

  • What is the purpose of the 'Use IP Firewall' parameter in the Bridge settings?

    -The 'Use IP Firewall' parameter, when activated, allows for management of layer 2 traffic between hosts on the same IP address segment, enabling bandwidth management and other traffic control features.

  • Why is it necessary to disable Hardware Offload for certain Bridge configurations?

    -Disabling Hardware Offload is necessary when you want to manage traffic at the CPU level, such as for bandwidth limitation using Simple Queue, which requires traffic to be processed by the CPU rather than the Switch Chip.

  • What is the role of Simple Queue in bandwidth management on a MikroTik Router?

    -Simple Queue is used to set bandwidth limitations for specific IP addresses or segments, controlling the maximum upload and download speeds for traffic passing through the Router.

  • How can the Bridge feature be used for bandwidth limitation on a wireless interface?

    -The Bridge feature can be used for bandwidth limitation on a wireless interface by activating 'Use IP Firewall' and ensuring Hardware Offload is disabled, allowing traffic to be managed by the CPU and Simple Queue settings.

  • What is the significance of the H flag in the Bridge-Ports section?

    -The H flag indicates that Hardware Offload is active, meaning traffic between ports is handled by the Switch Chip, which is beneficial for performance but may need to be disabled for certain traffic management tasks.

  • Can the bandwidth limitation settings be applied to a MikroTik device with only a few Ethernet ports?

    -Yes, bandwidth limitation can be applied even on a MikroTik device with limited Ethernet ports, such as a RouterBoard, by using the Bridge feature to extend its functionality similar to a Switch.

  • How does the MikroTik CRS device differ from a standard MikroTik Router in terms of Bridge and Switch features?

    -The MikroTik CRS device, part of the Switch series, has more advanced Bridge and Switch features developed for complex network management, offering capabilities beyond those of a standard MikroTik Router.

  • What are the two questions posed by the video for viewers to answer in the comments?

    -The two questions are: 1) How does data travel when an Ethernet port has an H flag for Hardware Offload? 2) What is the function of the 'Use IP Firewall' parameter in the Bridge settings?

Outlines

00:00

🌐 MikroTik Bridge Feature Overview

This paragraph introduces the unique Bridge feature in MikroTik routers, which allows a router to function as a switch. The video promises to demonstrate how to manage bandwidth for hosts within the same subnet using this feature. The speaker encourages viewers to subscribe for updates and discusses the potential of using a MikroTik router instead of a traditional switch, especially when only a few switch ports are needed. The Bridge feature is also highlighted for its ability to manage traffic between hosts on the same IP segment, with a mention of MikroTik's CRS and CSS switch series for more complex network management.

05:01

🔧 Setting Up the MikroTik Bridge for Bandwidth Management

The speaker walks through the process of setting up the Bridge feature on a MikroTik hAP lite router, including connecting it to the internet and a laptop. After explaining how the router operates as a switch, the focus shifts to bandwidth limitation using Simple Queue within the Bridge feature. The video details the steps to enable IP firewall usage for traffic management and disabling hardware offloading to allow CPU handling of traffic for bandwidth control. The process involves accessing the Bridge menu, adding ports to the Bridge, and configuring the settings to prepare for bandwidth management.

10:03

🚀 Implementing Bandwidth Limitations with Simple Queue

This section describes how to apply bandwidth limitations on a MikroTik router using the Simple Queue feature after setting up the Bridge. The speaker demonstrates creating a Simple Queue for a specific IP address, in this case, the laptop's IP, and setting maximum bandwidth limits for uploads and downloads. The effectiveness of the bandwidth limitation is tested using a speed test service, and the results are monitored through Winbox to show the traffic rates. The speaker also discusses disabling the limitation to prove its impact on bandwidth and mentions that this method can be applied to wireless interfaces as well.

15:05

📚 Conclusion and Further Exploration of MikroTik Features

The final paragraph wraps up the tutorial with a summary of the bandwidth limitation process using MikroTik's Bridge and Simple Queue features. The speaker poses two questions for the audience to consider and answer in the comments, regarding the function of the H flag indicating hardware offload and the role of the 'Use IP Firewall' setting in the Bridge settings. The video concludes with an invitation for viewers to engage with the content, ask questions, and share the video. Additionally, the speaker promotes their website for MikroTik devices and reminds viewers to subscribe for updates.

Mindmap

Keywords

💡Bridge feature

The Bridge feature in MikroTik is a capability that allows a router to function as a switch. It's central to the video's theme as it enables traffic management within the same IP subnet. In the script, the Bridge feature is used to turn a MikroTik Router into a switch, allowing for the connection of hosts with the same subnet IP address, demonstrating its utility in network management.

💡Traffic management

Traffic management refers to the control and monitoring of data flow within a network. It is a key concept in the video, as it discusses how to manage bandwidth for hosts within a bridged segment using MikroTik's Bridge feature. The script illustrates this by showing how to limit bandwidth using Simple Queue, an example being the limitation set to 2Mbps for upload and download.

💡MikroTik Router

A MikroTik Router is a device that can perform the functions of routing and switching within a network. In the context of the video, the MikroTik Router is shown to be versatile, as it can operate not only as a router but also as a switch using the Bridge feature. The script demonstrates this by configuring a hAP lite Router to bridge connections and manage traffic.

💡Bandwidth limitation

Bandwidth limitation is the practice of restricting the rate of data transfer to a certain level. The video focuses on this concept by showing how to apply bandwidth limitations using MikroTik's Simple Queue within a bridged network segment. The script provides a practical demonstration where the bandwidth of a laptop is limited to 2Mbps to illustrate the feature's effectiveness.

💡Simple Queue

Simple Queue is a feature within MikroTik's RouterOS that allows for the setting of bandwidth limitations on a per-connection basis. In the video, Simple Queue is used to manage and limit the bandwidth of devices within a bridged network. The script describes how to configure Simple Queue to limit a laptop's internet speed, showcasing its application in traffic management.

💡RouterBoard

RouterBoard is a specific type of MikroTik hardware that can be configured to perform various networking functions. The script mentions RouterBoard as an example of MikroTik hardware that can be used as an ordinary switch by utilizing the Bridge feature when additional switch ports are needed beyond what a standard switch provides.

💡Hardware Offload

Hardware Offload is a feature that allows certain network functions to be handled by specialized hardware, reducing the load on the CPU. In the script, it is mentioned that to enable bandwidth limitation, Hardware Offload must be disabled on the ether1 and ether2 ports, allowing traffic to be processed by the CPU for management by Simple Queue.

💡IP Firewall

The IP Firewall is a component of MikroTik's RouterOS that provides packet filtering and management capabilities at the IP layer. The script explains that checking the 'Use IP Firewall' parameter in the Bridge settings is necessary for managing layer 2 traffic, which is crucial for implementing bandwidth limitations on devices within the same IP segment.

💡CRS and CSS

CRS and CSS are product lines from MikroTik that are part of their Switch series. The video script mentions these as devices where Bridge and Switch features are further developed for complex network management. They represent advanced options for traffic management beyond the basic Bridge feature demonstrated with the hAP lite Router.

💡Winbox

Winbox is a graphical interface used to configure and manage MikroTik devices. Throughout the script, Winbox is used to demonstrate the setup process for the Bridge feature, the configuration of Simple Queue for bandwidth limitation, and the monitoring of network traffic, showing its importance in the administration of MikroTik devices.

Highlights

MikroTik's unique Bridge feature allows a router to function as a switch.

The Bridge feature enables traffic management between hosts on the same segment.

MikroTik routers can connect hosts with the same subnet IP address using the Bridge feature.

RouterBoard can be used as an ordinary switch with limited ports by utilizing the Bridge feature.

Bridge on MikroTik has advanced features for traffic management, unlike a regular switch.

MikroTik's CRS and CSS devices further develop Bridge and Switch features for complex network management.

Simple Queue can be used for bandwidth limitation on a network segment managed by a MikroTik router.

Bandwidth management can be achieved on a MikroTik router using the Bridge feature without additional hardware.

The process of creating a Bridge on MikroTik involves adding interfaces like ether1 and ether2.

Winbox is used to configure the Bridge and manage the MikroTik router's settings.

Hardware Offload (H flag) allows traffic to be handled by the Switch Chip, bypassing the CPU.

Disabling Hardware Offload is necessary for CPU-based traffic management using Simple Queue.

Simple Queue settings can limit bandwidth for specific IP addresses within a network segment.

Bandwidth limitation effectiveness can be tested and monitored using internet speed tests.

The impact of bandwidth limitation via Simple Queue is evident in speed test results.

MikroTik's Bridge configuration can be applied to both wired and wireless interfaces.

CRS series switches have advanced bandwidth limiting and QoS features for network management.

The video offers two questions for viewers to explore and understand MikroTik's Bridge functionality.

MikroTik devices can be purchased from the website www.citraweb.com or favorite marketplaces.

Transcripts

play00:17

One feature that is quite unique in MikroTik is the Bridge feature

play00:20

this feature is a feature that can turn an ordinary MikroTik Router into a Switch

play00:27

so later the MikroTik Router will basically work as a Router

play00:32

later it can function as a Switch by utilizing this Bridge feature

play00:36

can we do traffic management between hosts of one segment on this bridge?

play00:43

curious? watch this video until it's finished because I will discuss how to manage bandwidth

play00:48

for hosts in one segment by using the MikroTik Bridge feature

play00:53

don't forget to subscribe and press the bell button so you can get update notifications when we upload the latest video

play01:15

the main feature of the Bridge in MikroTik is actually how we can use a Router to become an ordinary Switch

play01:24

This router was used to connect subnets of different IP addresses

play01:29

Then we can use the router to connect hosts with the same subnet IP address

play01:36

For example, on our network, we don't have a switch device, but we only bring MikroTik router

play01:44

or maybe we only need two or three switch ports

play01:49

whereas if we buy a Switch device, there are only 8 ports available or maybe 16 or even 24

play01:55

so for this condition, we can use the RouterBoard which maybe only have 5 ethernet ports

play02:01

then we can Bridge, so we can use the Routerboard as an ordinary Switch

play02:07

but apart from functioning as a Switch, actually the Bridge on MikroTik also has many features

play02:14

one of which is that we can do traffic management between hosts in the same IP address segment

play02:20

this feature is actually being developed again

play02:24

if you guys We've seen it, we've actually discussed it in previous videos

play02:29

MikroTik also has a product from the Switch series, the name is CRS and CSS

play02:36

on this CRS device, the Bridge and Switch features are then developed again to allow for more complex network management

play02:42

You can watch the discussion in our previous video

play02:45

or maybe you saw in our Livestreaming videos that were aired in the past

play02:53

now I will try to try one of the features that is quite simple which can also be used later on your network

play03:01

how can we make bandwidth limitations for one segment network

play03:06

by using 1 Router device and of course I will take advantage of the Bridge feature

play03:13

first Bridge feature here I have prepared 1 hAP lite Router, you can see here

play03:18

then this lite hAP later I will try to connect to the internet via the cable on this ether1

play03:26

gray cable is to connect to the internet

play03:30

then for this black cable to connect to my own laptop via ether2

play03:38

later I will try to activate the Bridge here

play03:42

then how can I do bandwidth management or bandwidth limitation with Simple Queue?

play03:48

even though we are bridging between ether1 and ether2

play03:55

I'll just do the configuration right away, first of course I have to open Winbox first

play04:06

this is the Router that I use, there is hAP lite with SMIPS architecture

play04:13

then here there is no configuration at all

play04:16

no IP address, no Bridge, no Firewall, and all that stuff here

play04:22

then I will try to connect, the first thing I try to see is the interface

play04:32

ether1 is used to connect to the internet, then ether2 is used to connect to my own laptop

play04:41

I want to try bridging between ether1 and ether2

play04:46

How to? the same as when making a Bridge usually, you can enter in the Bridge menu

play04:52

then for example I add the name of the Bridge is Name=bridge1

play05:00

then for this port, I added ether1 and also ether2 like this

play05:12

then ether2 this goes to my laptop

play05:19

usually, this Winbox application will disconnect first, then we can be remote again by using the MAC Address

play05:28

we can see here now that there are ether1 and also ether2 which are already included in Bridge Ports

play05:37

after I put ether1 and also ether2 in Bridge Ports, then this hAP lite will work like an ordinary Switch

play05:45

because that is the main feature of Bridge

play05:48

ether1 is used to connect to the internet and ether2 to connect to my laptop

play05:52

so if I try later on my laptop using a DHCP client or if on Windows OS we can Obtain IP address

play06:02

I should be able to get we will try to see the automatic IP address from our internet provider

play06:07

we open it in the Networks section, then I try to change it using DHCP

play06:20

let's try to wait, and my laptop now has an IP address from the Gateway

play06:27

so actually this internet provider is also connected to the main Gateway in this office or building

play06:33

then from the Gateway office it gives an automatic IP address 192.168.76.170

play06:48

here it means that you have got an IP address, you have got a Subnet Mask, you have got a Gateway and you have also got a DNS server

play06:54

This means that now my laptop should also be able to connect to the internet

play07:04

For example, I will try pinging google.com

play07:13

We can see the results here. Ping has replied or is running, meaning that I am currently connected to the internet

play07:20

and this hAP lite device functions like a normal Switch device

play07:25

so only as a termination or extender

play07:29

it is the main function of a Bridge

play07:31

but because this is a MikroTik Router device, and the Bridge feature it has a lot of functions

play07:36

I will try to make this lite hAP work like that I mean, an ordinary switch can limit bandwidth

play07:47

How to? I will do Bandwidth limitation later using Simple Queue

play07:51

but the way to do it is, actually in the Bridge feature MikroTik has many functions

play08:00

there are Bridge Filters, NAT, and all kinds

play08:04

but maybe you guys can see it here, I try to open it maybe the menu isn't familiar

play08:13

though actually we also already have a lot of articles discussing this

play08:17

even there are videos and our Livestreaming that have discussed this Bridge Filter

play08:21

or later there will also be Bridge-NAT

play08:23

but for Bandwidth management it might be easier if we use Simple Queue

play08:32

the first step we have to do is we you can enter the Bridge menu first here

play08:38

then we click on the Settings menu and here we will check or activate the "Use IP firewall" parameter

play08:49

When we check "Use IP firewall", we can actually manage layer 2 traffic

play08:55

or between hosts. who are still using the IP address with the same segment

play09:00

we can use Firewall Filter management, Firewall Mangle

play09:07

what I will simulate later is that we will use Simple Queue to do Bandwidth Limitation

play09:16

after this we check it then we Apply or click Ok

play09:21

the second step is we have to enter the Ports Tab, here by default for features or on the new RouterOS

play09:33

by default usually in each ether there will be an H flag

play09:37

This H flag indicates that Hardware Offload is already active, or actually the traffic between these ports has been handled by the Switch Chip

play09:45

this is actually an advantage because the traffic Between Ports will be handled later by the Switch Chip

play09:50

there is a special hardware so that it does not burden the CPU

play09:54

it's just that because of our current need to be able to limit this between hosts, we must disable Hardware Offload first

play10:03

the way we can click 2x

play10:06

then we Uncheck Hardware Offload on ether1 and ether2

play10:16

the goal is that the traffic can be read on the CPU

play10:21

if it can be read on the CPU then we can manage it in the Simple Queue section

play10:27

after we do the Bridge Setting, then we have disabled the Hardware Offload in the Ports section

play10:33

then we can create a Simple Queue as usual

play10:41

we enter in the Queue menu than in the Simple Queue section

play10:48

I will try to see what IP my laptop was, for example here I get 192.168.76.170

play11:03

I will try to limit it

play11:10

with Target = 192.168.76.170 which is the IP address of my own laptop

play11:18

then I try to give Max. Limit isn't big at first, for example, 2Mbps for upload and download

play11:25

then I click Ok

play11:29

to check, because there are no other IP address subnets here, so I just checked via the internet

play11:40

I'll try to open one of the Speedtest service provider websites

play11:50

which can be seen here the traffic is only around 1 to 2 Mega

play11:55

I will also monitor it on Winbox, while the test is running I monitor it through Winbox

play12:03

if you pay attention to it on Winbox, for laptop or Queue limitations you can see it here in red

play12:12

and if we look in the column we try to display it for Download Average Rate

play12:23

then we also display the Upload Average Rate

play12:29

now it is visible on the right

play12:31

now we can see that there is currently around 1.9 Mega traffic for uploads

play12:37

because now my laptop is doing a bandwidth test on the internet, as we can see here

play12:51

Ok the test it's finished, let's see the results

play12:56

for Download 1.7 and for upload 1.8 which means this limitation is already running

play13:04

let's try the second one, I'll try to disable the limitation

play13:09

this is to make sure that this limitation has an effect or not, I try to Disable then I try the Bandwidth test again

play13:21

here we can see we can get around 80-90 MB per second

play13:27

This means that the laptop that earlier got Bandwidth only with a maximum of 2 Mega was because of the Simple Queue setting that I activated

play13:36

because without Simple Queue it can get 90 MB per second for downloads

play13:42

and maybe the upload speed is in accordance with the limitations applied to the Router Gateway in this building

play13:50

we can get about 70 maybe even 80 MB per second original

play13:57

why did you get 2 Mega because this is the result of the Simple Queue that I activated

play14:05

so like that, how can I activate bandwidth limitations using Simple Queue on a one-segment network

play14:14

and happened to pass through a router that uses a Bridge configuration

play14:18

actually this scheme can not only be done for inter-cable connections only

play14:22

we can also do it for the Wireless interface, for example, you have a Wireless Repeater

play14:28

whose function is to capture the Wireless connection and then distribute it again via Ethernet

play14:33

this feature or this scheme can also be done, the key is that we activate the "Use IP Firewall"

play14:40

then the Offroad Hardware in each Ethernet Port is not activated or we Uncheck

play14:48

then if for example, you are using the MikroTik CRS Switch series

play14:54

maybe the CRS1xx series or CRS3xx series actually they also have features to able to limit bandwidth or QoS

play15:05

it's just that it's a little different

play15:08

for the CRS3xx and CRS1xx series, usually, later there will be more detail on the configuration in the Bridge and Switch sections

play15:15

while what I tried to do earlier This is the simplest way

play15:19

if for example, you want bandwidth management between networks that are still in one segment

play15:23

we can take advantage of the Bridge and Simple Queue features on MikroTik

play15:28

before I end my video, I have two questions that I can later answer in the comments column

play15:33

there are questions that later you can try to see the answers in my explanation that I did before

play15:41

The first question is, on the Bridge-Ports there is a Port with the H Flag

play15:47

actually I mentioned earlier this is Hardware Offload

play15:52

can you explain that when an Ethernet has an H flag, how does the data travel?

play16:00

For example, there was ether1 and then there was ether2 which has an H Flag on the Bridge-Ports section

play16:07

from ether1 to ether2, what will the flow be like? that is the first

play16:12

the second question, in the Bridge-Settings section there is a parameter "Use IP Firewall"

play16:18

try to explain what is the function of this "Use IP Firewall" parameter

play16:23

so you can answer these two questions in the comments column

play16:28

try watching my previous explanation video , I have fully explained there

play16:37

okay that was my experiment on how to make a Bandwidth Limitation on a 1 segment network with the MikroTik Bridge

play16:45

and also there are two questions that can be answered later in the comments column

play16:49

if you still have questions, write them in the comments column below

play16:53

don't forget to share this video with other MikroTik users so that it's more valuable

play16:58

Don't forget too, if you need MikroTik devices, just visit our website www.citraweb.com

play17:07

you can also find our shop (Citraweb) on your favorite Marketplace

play17:12

Thank you for watching my video this time

play17:14

don't forget to subscribe and press the bell button ng so that you can get update notifications when we upload the latest video

play17:21

thank you and see you in the next tutorial video

Rate This
★
★
★
★
★

5.0 / 5 (0 votes)

Étiquettes Connexes
MikroTikBridge FeatureNetwork SwitchBandwidth ManagementRouterOSTraffic ControlIP FirewallHardware OffloadSimple QueueNetwork Tutorial
Besoin d'un résumé en anglais ?