The Wayback Machine - https://web.archive.org/web/20240713010447/https://www.geeksforgeeks.org/difference-between-trunk-port-and-access-port/
Open In App

Difference Between Trunk Port and Access Port

Last Updated : 31 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

When it comes to networking, two terms that are “access port” and “trunk port” arises in our mind. They both sound familiar but both of these types have different functions. While commonly associated with Cisco, access ports and trunk ports are standard networking concepts utilized across various network equipment vendors. Access Port is a port that is assigned to a single VLAN whereas Trunk Port is a port in which it is assigned to multiple VLANs. Let’s see in what aspects they differ.

Trunk Port

A trunk port is a port, which is used to connect to another switch or router. It is a link that carries many signals simultaneously. Basically, it can transmit data from multiple VLANs. It uses tags in order to allow signals to get to the correct endpoint. Trunk Port offers higher bandwidth and lower latency. The Trunking takes place in layer 2 of the OSI model, which is known as the “data link layer”. The device uses the IEEE 802.1Q encapsulation or tagging method, in order to correctly deliver the traffic on a trunk port with several VLANs.

Advantages

  1. It offers higher bandwidth and lower latency.
  2. It sends all signals across a single trunk link which is for each switch or router.
  3. It can carry traffic for several VLANs simultaneously. 

Disadvantage

  1. It is quite complex to set up when compared with the Access port.
Truk port

 

Access Port

The access port is a type of port that is like a type of connection on a switch that provides the virtual machines with connectivity via a switch or VLAN. Basically, it transmits data to and from a specific/single VLAN. This doesn’t cause signal issues because the frames remain within the same VLAN.  For complex networks, it is not that efficient to work with. One can configure the port as a host port, to optimize the performance of the access port.

Advantages

  1. It sends and receives frames that aren’t tagged.
  2. There are no signal issues in the access port as the frame remains in a single VLAN.
  3. To decrease the time it takes the designated port to begin to forward packets, use the host port.

Disadvantages

  1. It can carry traffic for only one VLAN.
  2. Only an end station can be set as a host port.
Access port

Difference between Trunk Port and Access Port

Parameters Trunk Port Access Port
VLAN assignment It supports multiple VLANs. It supports a single VLAN.
Tags Multiple VLANs are allowed to traverse and add tags. Single VLAN is allowed to traverse and removes tags.
Purpose It connects switches or routers together. It connects end devices to the network.
Protocols

It uses encapsulation protocol which are

  • ISL 
  • 802.1Q

It uses only one encapsulation protocol-

  • IEEE 802.1Q.
VLAN tagging It supports VLAN tagging. It does not support VLAN tagging.
Bandwidth In Trunk Port, bandwidth is high. In Access Port, bandwidth is low as compared to Trunk Port.
Broadcast domain It allows segmentation into separate broadcast domains. Traffic is part of the same broadcast domain.
Voice VLAN Voice VLAN is a feature that is not supported in Trunk Port. Voice VLAN is the feature that is supported in Access Port.
Frames It supports tagged frames It supports untagged frames.
Ideal for It is ideal for larger networks with multiple VLANs that are basically used to connect between the switches. It is ideal for connecting end-user devices to the network and is used to connect laptops, printers, computers, etc.

The main and basic use of these both the trunk port and access port is to move traffic between VLANs. The user can carry more than one VLAN traffic from one switch to another switch with Trunk Port whereas data is transmitted simultaneously with Access Port. Both ports have their own pros and cons and it all depends on the user to select which port according to their own requirement.



Similar Reads

Access and Trunk Ports
Switch ports are Layer 2 interfaces that are used to carry layer 2 traffic. A single switch port can carry single VLAN traffic. Frames are handled differently according to the type of link they are traversing. Note: All switch ports are assigned VLAN 1 by default (VLAN 1 cannot be modified or deleted). There are 2 different types of ports in a swit
5 min read
Difference between Root Port and Designated Port
Root Port: A Root Port is a single selected port that has the lowest Path Cost to the Root Bridge. The Root Port on the Bridge (Switch) is the port with the lowest Spanning Tree Path Cost from the switch to the Root Bridge. The root port is a direct link to the single root bridge or we can say it has the shortest path to the root bridge.If more tha
4 min read
Difference Between Source Port and Destination Port
The packets sent using IP protocol always consist of the source IP address and destination IP address. Then IP protocol passes the incoming data to the transport protocols that require both source port and destination port so that it can reach the intended application process or service. The UDP and TCP messages must have a source port and destinat
4 min read
Difference between Uniform Memory Access (UMA) and Non-uniform Memory Access (NUMA)
Multiprocessors can be categorized into three shared-memory model which are: Uniform Memory Access (UMA)Non-uniform Memory Access (NUMA)Cache-only Memory Access (COMA) Uniform Memory Access (UMA): In UMA, where Single memory controller is used. Uniform Memory Access is slower than non-uniform Memory Access. In Uniform Memory Access, bandwidth is re
4 min read
Difference Between Network Address Translation (NAT) and Port Address Translation (PAT)
Network Address Translation (NAT): NAT, in which the Private IP address or local address is translated into the public IP address. NAT is used to slow down the rate of depletion of the available IP addresses by translating the local IP or Private IP address into a global or public IP address. NAT can be a one-to-one relation or many-to-one relation
4 min read
Difference between Serial Port and Parallel Ports
Prerequisite - Introduction of Ports in Computers 1. Serial Port: A serial port is an interface that is used for connecting the serial lines to attain the serial communication. These ports can dock a 9-pin D-shaped connector that connects to the transmission line, is called DB-9 connectors. Serial communication gained by single wire and only the si
2 min read
Difference between Socket and Port?
Both Socket and Port are the terms used in Transport Layer. A port is a logical construct assigned to network processes so that they can be identified within the system. A socket is a combination of port and IP address. Port number can be represented by a single number ( example: 1028) on the other hand socket address can be represented by (tcp, ho
1 min read
Difference between IP address and Port Number
1. IP address : An Internet Protocol address (IP address) is the logical address of our network hardware by which other devices identify it in a network. IP address stands for Internet Protocol address which is an unique number or a numerical representation that uniquely identifies a specific interface on the network. Each device that is connected
3 min read
Difference Between SSH Local and Remote Port Forwarding
SSH stands for "Secure Shell" or "Secure Socket Shell". It is a cryptographic network protocol that allows two computers to communicate and share the data over on insecure network such as Internet. SSH protocols protects the network from various attacks. 1. Local Port Forwarding :Local Port Forwarding is the common type of port forwarding. It is us
5 min read
Difference between Random Access Memory (RAM) and Content Addressable Memory (CAM)
Random Access Memory (RAM) is used to read and write. It is the part of primary memory and used in order to store running applications (programs) and program's data for performing operation. It is mainly of two types: Dynamic RAM (or DRAM) and Static RAM (or SRAM). RAM is made up of small memory cells that are arranged in a grid pattern. Each cell
4 min read