Page 1 of 1

"Internet bandwidth" VS "Youtube bandwidth"

Posted: Wed Feb 28, 2018 9:36 pm
by mirzasakib
Hi,

First of all I am sorry that I am asking a lot of question but I have no other way.

I have just started a small scale ISP business. I have local client and one re-sellers.

As I live in a remote area so I just started with 30M internet bandwidth and 60M youtube bandwidth.
To configure on my mikrotik they gave me real IP which I am mentioning below:

For internet:
IP: 180.***.***204
Subnet: 255.255.255.248
Gateway: 180.***.***.201
DNS: 180.***.129.3
DNS: 8.8.8.8
For youtube:
IP1: 103.***.***.0/24
IP2: 180.***.***.0/24
IP3: 43.***.***.192/27
IP4: 103.***.***.0/27
IP5: 31.***.***.0/16

Now I am asking for help.

Question 1: Is it possible to bind all the youtube IP together in a single local IP or multiple local IPs?
Question 2: I have already configured internet bandwidth but how I can I configure youtube bandwidth?
Question 3: How can I configure my bandwidth management as if my local client purtchase 1M bandwidth they will get 2M youtube?
Question 4: How can I configure my bandwidth management as if my re-sellers purchase 10M bandwidth and 20M youtube,
how do I provide them the youtube bandwidth as they have too sale their local clients like me.
So I have to give them a single IP for internet and a single IP for youtube?


Thanks in advance.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Fri Mar 02, 2018 7:32 pm
by mirzasakib
Anyone please?

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Fri Mar 02, 2018 8:54 pm
by mirzasakib
Is there no one who are kind enough to help me or at-least try to?

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 8:29 am
by lambert
Possible answers. I may have mis-interpreted the questions.

Q1) /ip firewall address-list add name=youtube address=IP1, repeat for all youtube IPs?
Q2) Same as for internet but with dst-address-list=youtube?
Q3) Two sets of queues, one for bandwidth one for youtube?
Q4) Same as 3 but with changes to 10 Mbps and 20 Mbps?

I don't know if any of that will help.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 11:18 am
by mirzasakib
#lambert.

Q1: I did add all the youtube IPs in "/ip firewall address list" but do I have to add all those addresses in "/ip addresses"?
Q2: Didn't understand "Same as for internet but with dst-address-list=youtube?" In which section do I have to use this?
Q3: You are right on this. How do I separate or distribute both queues? By creating mark conn and mark packet?
Q4: You are right on this too but how do I configure on their mikrotik device, so that they can provide them to their clients?

Thanks for taking your time to reply.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 1:11 pm
by CZFan
Possible answers. I may have mis-interpreted the questions.

Q1) /ip firewall address-list add name=youtube address=IP1, repeat for all youtube IPs?
....
You no longer have to create one for each IP Address, just enter www.youtube.com in address list and it will automatically create sub address lists with all the IP's

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 2:48 pm
by mirzasakib
Possible answers. I may have mis-interpreted the questions.

Q1) /ip firewall address-list add name=youtube address=IP1, repeat for all youtube IPs?
....
You no longer have to create one for each IP Address, just enter www.youtube.com in address list and it will automatically create sub address lists with all the IP's
#CZFan,

Can you tell me how can I only add "www.youtube.com" in my addresss list?

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 3:08 pm
by CZFan

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sat Mar 03, 2018 4:35 pm
by lambert
#lambert.

Q1: I did add all the youtube IPs in "/ip firewall address list" but do I have to add all those addresses in "/ip addresses"?
No. Not as far as I understand your problem description.
'/ip addresses ' is for IPs which are used for routing through or access to your router.

That includes 180.***.***.204/29 on your uplink interface and whatever RFC1918 space you are using to communicate with your customers / resellers.
Q2: Didn't understand "Same as for internet but with dst-address-list=youtube?" In which section do I have to use this?
It depends on how you limited Internet throughput. You said you had done it, but did not describe how. The youtube IPs are used for matching the destination address of traffic from your network to youtube, or traffic sourced from the youtube servers to your network, so that it can be treated differently from general Internet traffic. You did not tell us how your youtube traffic is delivered to you. For now, I am assuming it comes on the same connection as your Internet transit connection.
Q3: You are right on this. How do I separate or distribute both queues? By creating mark conn and mark packet?
That sounds probable based on how little we know about the specifics of how you have configured your internet rate limits.
Q4: You are right on this too but how do I configure on their mikrotik device, so that they can provide them to their clients?

Thanks for taking your time to reply.
Once your router is configured use its configuration as a template to configure 'their' routers. Just reduce the parent queues' limits appropriately.

When posts do not get replies it is often because the question is not clearly understood by others on the forum. Sometimes the question does not provide enough detail for more than a crazy guess. Your question had both issues. Diagrams and sanitized configuration samples from your device can help overcome language / jargon / vocabulary / conceptual barriers.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sun Mar 04, 2018 1:38 am
by mirzasakib
#lambert.

Sorry I should have provide more detail info about my problem.
Anyway I am providing images that what I did with youtube IPs.


Image

Image

Image

Thanks

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sun Mar 04, 2018 5:44 am
by lambert
Looks good at a glance. Is it working for you?

The screenshots do not show full detail. If it is working, great!

If you need help in the future, exports from the terminal will help others understand exactly what is configured. Just search and replace sensitive items with unique variable names. It's easier than editing screenshots.

Good luck in your business.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sun Mar 04, 2018 10:12 pm
by mirzasakib
#lambert,

Yeah it is working for me for my local clients but didn't worked on my re-seller clients.
Do I have to do the same configuration on my re-seller mikrotik?

Thanks for your advice, I will keep those in mind from next time I post something.

Thanks.

Re: "Internet bandwidth" VS "Youtube bandwidth"

Posted: Sun Mar 04, 2018 11:19 pm
by lambert
If the resellers' business model is the same as yours, their mikrotiks will need a similar configuration.

As you use it you may find that your mangle and queue rules need some adjustment. Just keep in mind the source and destination of the traffic you are attempting to affect and you'll have a good idea of what you need to do.

One of your youtube queues didn't show the youtube packet mark in your screen shot. Maybe that's the reseller for which it's not working?

Some of your internet queues were unlimited. That may have been on purpose.