大网数据广告活动
服务器运维问答

Does a trunk port not half the bandwidth the way connecting an access port would?

· 52CE 我爱测

If you connect a trunk port instead of an access port from your managed switch; does the bandwidth not get cut in half when the vlan is accessed on the managed switch's access port for that vlan?

问题原文

原帖链接 · leeand00 · CC BY-SA 4.0

If you connect a trunk port instead of an access port from your managed switch; does the bandwidth not get cut in half when the vlan is accessed on the managed switch's access port for that vlan?

已采纳解答

原帖链接 · Ron Trunk · CC BY-SA 4.0

The short answer is No, it doesn't.

Let's be clear what we're talking about. When people use the term "bandwidth," they can mean several related but separate things:

The port speed is determined by the physical hardware. A gigabit Ethernet port means just that: a bit of information is transmitted every 1 nanosecond, or 1 Gbps (I know I'm simplifying things a bit here, but I'm trying to illustrate a point).

Throughput is the amount of data transmitted/time. It will be something less than the port speed. If you send 1000 bits every second, your throughput is 1 Kbps. Note that the bits are still transmitted out the port at a rate of 1 Gbps. So data will be transmitted in bursts.

Utilization is throughput / port speed. If you're sending 500 Mbps of data out the port, your utilization on that port is 50%.

People sometimes use the term bandwidth to mean any of these things.

Now, if you have a 11 port gigabit switch (10 user ports and one uplink port connected to your router), each user port can potentially transmit 1 Gbps. However, since all the user ports share the same uplink port, they have to "share" the maximum throughput of the uplink port. So if two users are transmitting at the same time, they each will get 500 Mbps of throughput. But if there's only one user transmitting, she will get the full 1 Gbps throughput.

Whether a port is an access port or trunk doesn't change any of these parameters. But adding another VLAN to the port could mean adding more users who are potentially sending data on that port. In that sense each user has to share the available bandwidth with more users. It's just like sharing a pizza: more people, smaller portions.

If you connect a second switch to the first, you increase the number of potential users, so more users are sharing the uplink bandwidth -- everyone gets a smaller piece of pizza. But again, if only one user is sending data, she can use all of the available bandwidth, so her maximum throughput is 1 Gbps, regardless of how many switches are connected.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-04-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。