I have a project of configuring a Raspberry Pi into a router. I would like to know how the Raspberry Pi allocates the internet bandwidth with its users? Let's say a 3Mbps internet speed is connected to my router, and 10 users were connected. How much bandwidth each user will have?
I imagine that this would be based on whatever approach you build into the configuration.
A round-robin approach would equally allocate bandwidth for each active user or session. If only one user active they get it all, two active it splits fairly evenly, etc.
Or, you may want to implement quality of service (QoS), in which case certain applications (such as voice over IP, or VOIP) have a higher priority to help assure call quality.
It is really dependent on configuration and the behavior you desire.
I would think by default it would use a FIFO queue. (First in, First out) meaning that whoever was trying to do the most, would get the most.
Not knowing what software you are using, I can't say for sure, but there should be a way to allocate x% to a given user without going through the trouble of setting up QOS. Depending on what you are doing, as stated above, you may decide that QOS is necessary to ensure specific applications/users/ports, etc are given priority.