Open In App

What is Ports in Networking?

Last Updated : 06 Oct, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Whenever any application in one computer sends data to another application of a different computer then it sends using IP Address and MAC Address but how does our computer know that this data is for a specific application and this data is sent by any specific application? There comes the concept of Port.

For instance, imagine your MAC Address or IP Address as the PIN code of the nearest Post Office and your house address as a Port. Whenever any parcel is sent to you it gets received by the nearest post office and then it is identified by your address where to deliver that parcel. Similarly in a computer data is first received using their IP or MAC address then it is delivered to the application whose port number is with the data packets.

Port is a logical address of a 16-bit unsigned integer that is allotted to every application on the computer that uses the internet to send or receive data.

Now every time any application sends any data, it is identified by the port that which the application sent that data and the data is to be transferred to the receiver application according to its port. We often call port as port number.

In the OSI Model ports are used in the Transport layer. In the headers of Transport layer protocols like TCP and UDP, we have a section to define port(port number). The network layer has to do nothing with ports, their protocols only care about IP Addresses.

Ports are assigned by computer i.e. operating system to different applications. Ports help computer to differentiate between incoming and outgoing traffic. Since the port is a 16-bit unsigned number it ranges from 0 to 65535.

Types of Ports

Ports are further divided into three categories:

  • Well Known Port
  • Registered port
  • Dynamic Port

Well Known Port

  • It is from the range 0 to 1023
  • It is reserved for common and specifically used service
  • It is used by some widely adopted protocols and services like HTTP(port 80), FTP(port 21), DNS(Port 53), SSH(port 22), etc.....

Registered Port

  • It is from range 1024 to 49151
  • These are used by applications or services that are not as common
  • But it is used by those applications or services which require its specific port
  • Organizations can ask IANA(Internet Assigned Number Authority) for any specific port number within this range

Dynamic Port

  • It is from range 49152 to 65535
  • It is also known as Ephemeral or Private Port
  • It is used for those connections that are temporary or short-lived
  • It is not registered or assigned and can be used by any process

Importance of Ports

Ports have many significance. Some of them are-

  • Identification of service- Different application/services that work on the same device can be differentiated by their port numbers. For example, HTTP(Port number 80) and SMTP(port number 25) in the same computer uses different port number to ensure their data goes to the correct service
  • Efficient Data Routing- When a network device receives data from different places it uses port numbers to efficiently route those data packets to the respective application
  • Block traffic from specific applications/services- When we have to block incoming or outgoing traffic from a specific application/service then we need to install a firewall and specify the port number of that application/service. We block traffic from/to some specific applications/services when we find any potential threats from those applications/services
  • Scalability of services- Many services can run simultaneously on the same device and can be differentiated using their port number. This helps the device to scale and support many services at the same time.

Some Popular Port Numbers

Some common/Popular port numbers that are used by those applications/services which are frequently used by us-

Port NumberUsed By
80HTTP(Hyper Text Transfer Protocol)
23Telnet
25SMTP(Simple Mail Transfer Protocol)
53DNS(Domain Name System)
7Echo
20/21FTP(File Transfer Protocol)
69TFTP(Trivial File Transfer Protocol)
443HTTPS(Hyper Text Transfer Protocol Secure)
22SSH(Secure Shell)
110POP3(Post Office Protocol version 3)
67/68DHCP(Dynamic Host Configuration Protocol0
123NTP(Network Time Protocol)
143IMAP(Internet Messaging Access Protocol)
1433Microsoft SQL
3306MySQL
5432PostgreSQL
27017MongoDB

FAQs on Ports in Networking

Q.1: What is Port?

Answer:

Port is a logical address of a 16-bit unsigned integer that is allotted to every application on the computer that uses the internet to send or receive data. It ranges from 0 to 65535.

Q.2: What is the Socket Address?

Answer:

Socket Address is the combination of IP Address and Port Number. It is used in communication between two differnt applications/services.

Q. 3: Why Port Number is used?

Answer:

Port Number or Port is used to uniquely identify any appication/services running on the same device.


Next Article

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
Various TCP and UDP ports
Transportation layer conventions utilize the idea of ports and multiplexing/demultiplexing to convey information to individual services listening on network nodes. These ports are spoken to by a solitary 16-bit number, implying that they can constitute a range of numbers 0-65535. This range has been separated by the IANA (Internet Assigned Numbers
4 min read
Input Output Ports
Ports: The connection point acts as an interface between the computer and external devices like printers, modems, etc. There are two types of ports :Internal Port: It connects the system's motherboard to internal devices like hard disk, CD drive, internal Bluetooth, etc.External Port: It connects the system's motherboard to external devices like a
1 min read
Different Types of Switch Ports
Network devices connect to a switch through its switch ports. Switch Ports which are physical opening where data cables are plugged in to connect the devices. Switch port type should be configured according to the requirement considering the factors like network architecture, speed and functionality. Switch ports can be classified in following type
4 min read
How To Check Open TCP/IP Ports in Windows?
Certain apps and processes in Windows 10 can cause problems if you're not properly connected to the internet. Firewalls can cause these connection issues when they cannot determine whether incoming and outgoing connections pose a threat. Work around this issue and open ports for incoming and outgoing connections. We will know to check whether a TCP
5 min read
TCP/IP Ports and Its Applications
A port is the logical address of any protocol; alternatively, we might think of a port as a special door for each protocol, through which all packets are routed. Another way to put it is that every protocol has a mailbox, or box, where every protocol packet is dropped. Subsequently, the recipient will access that packet and peruse the content sent
6 min read
Which Ports on Firewall Should be Allowed for IPSEC Site to Site VPN?
Answer: For IPSEC Site-to-Site VPN, allow ports UDP 500 IKE, UDP 4500 NAT-Traversal, and protocols ESP IP Protocol 50 and AH IP Protocol 51 on the firewall.For IPSEC Site-to-Site VPN to function correctly through a firewall, certain ports and protocols must be permitted to ensure secure and reliable communication between the VPN endpoints. Here’s a
1 min read
50 Common Ports You Should Know
Port number is a 16-bit numerical value that ranges from 0 to 65535. Well-known port (0-1023), registered port (1024-49151), and dynamic port is three types of port number space. (49152-65535). These ports can be opened and used by software applications and operating system services to send and receive data over networks (LAN or WAN) that employ ce
5 min read
Types of Computer Ports
Ports are nothing but it is connections between external and internal input/output devices such as keyboards, mice, mouse, Disk Drive, and many more with motherboards using cables. That allows to communicate between external devices or peripherals with a laptop or computer. Computer ports may be virtual or physical. In this article, we are going to
7 min read
Introduction to basic Networking Terminology
For a specific purpose if things are connected together, are referred to as a NETWORK. A network can be of many types, like a telephone network, television network, computer network, or even a people network. Similarly, a COMPUTER NETWORK is also a kind of setup, where it connects two or more devices to share a range of services and information in
4 min read
Top 7 Highest Paying Jobs in Networking
Computer Networking is the fastest-growing field to work. As the industry is gearing up the employment rate to around 5-6% from 2018 to 2028 by providing many opportunities. And by 2024, the global network management market is expected to be worth 11 Billion U.S. dollars, it's a big amount!! The industry requires more and more Network Professionals
7 min read
Top 5 Career Domains in Networking
Computer Networking has always been one of the most demanding career profile. And with the various technological advancements, the Networking field is becoming extremely vast. So if you are deciding to choose Computer Networking as your profession, it will be great! But wait.. have you decided on the particular domain in Networking to make your car
8 min read
TCP/IP in Computer Networking
Introduction : TCP/IP (Transmission Control Protocol/Internet Protocol) is a suite of communication protocols that define the standards for transmitting data over computer networks, including the internet. The TCP/IP protocol is the foundation of the internet and enables devices to communicate with each other using a common language. The TCP/IP pro
8 min read
Software-defined Networking (SDN) Controller
All traditional networking devices like router and switches uses distributed control plane. But newer model of networking i.e., Software-defined Networking (SDN) uses centralized control plane. Distributed control plane means that control plane of all networking devices lies within the device itself. Each device have their own control plane to cont
4 min read
Fundamentals of Virtual Networking
In general, if we will see a well-established network has become an important part of our lives. Expanding networking helps us to establish relationships with people. Like our social networking in our day to day life, computer networking is also important in this digital world where everything is connected to each other. Computer networking helps u
4 min read
Importance of Computer Networking
Introduction : Computer networking refers to the practice of connecting computers and other digital devices together to share resources and exchange information. It involves the use of hardware and software technologies that enable communication between computers and other devices, whether they are located in the same physical location or are geogr
7 min read
Troubleshooting Questions on OS and Networking asked in Cloud based Interview
This article has a Top 5 Troubleshooting questions on Operating System and Networking that will help you clear any Cloud-based Interview like AMAZON CLOUD SUPPORT ASSOCIATE AND AMAZON DevOps. Firstly, what is troubleshooting? Troubleshooting is basically an art, the art of taking a problem into consideration gathering pieces of information about th
3 min read
Phraseology Used In Networking
In this, we will discuss the basic overview of networking and will cover common terminologies of networking. You will be able to understand the concept of computer networking in a better way if you will familiar with common terminologies of computer networking. We will guide you through common terminologies. Let's discuss one by one. Networking :Th
4 min read
Ultra wide band networking
We can clearly see from the name ultra-wideband is a radio technology used for a wide range of frequency channels and having low energy short-range. It is used for short-range wireless communication protocols like Bluetooth and Wi-Fi. It can work on a wide range of frequencies in which we can send short pulses of information at a moment. It is used
3 min read
What is Data Encapsulation and de-encapsulation in networking?
This article is all about Data Encapsulation and Decapsulation in Networking. Both encapsulation and decapsulation processes are simultaneously running over a network in order to make effective communication possible. Encapsulation is the process which is executed on the sender's side whereas decapsulation occurs on the receiver's side. Now, let's
3 min read
What is Digital Networking?
Digital Network refers to the social network built through the use of digital technologies. It supports digital switching and digital transmission of voice, video, data, and other network services. It has marketplaces, data networks, and communications networks that provide a platform that align the network to business needs. Networking devices lik
4 min read
What Is Poison Reverse in Networking?
Poison Reverse is a loop avoidance method used in Routing Information Protocol (RIP) in Distance Vector Routing Protocol (DVRP) which allows a RIP enabled interface setting the cost of the route (i.e. setting hop count which generally ranges from 0 to 15) that it gets from its neighboring routers to 16 (here 16 will be considered as infinity) which
4 min read
2 - Tier And 3 - Tier Architecture in Networking
The daisy-chain method of creating priority involves serially connecting all devices requesting interrupts. Highest priority devices come first, followed by lower priority devices, and lowest priority devices last in the chain. This connection technology between the three devices and the CPU. The interrupt request line is averaged across all device
3 min read
Demand Assigned Multiple Access (DAMA) in Networking
Demand Assigned Multiple Access is generally used for the earth stations where the traffic condition of that particular station is been changing continuously. It is a process of allocation of satellite channels to a user on demand. There is a great increase in the number of simultaneous uses on demand of allocation of channels that can be served by
4 min read
Let's experiment with Networking
Most of us have studied Computer Networks in a very abstract manner. In other words, not many of us know how the abstract concepts of layers and packets translate in real-life networks such as the Internet. Therefore, let us do an experiment and see whether these layers, packets, etc. exist in any real network also. So get, set and ready to delve i
5 min read
How to Perform Bit Stuffing in Computer Networking?
Answer: Insert an extra '0' after each sequence of five consecutive '1's in the data, ensuring the transmission does not mistakenly trigger a special control sequence.Bit stuffing in computer networking is a technique for ensuring data integrity and synchronization between sender and receiver: Define PatternA flag sequence like "01111110" marks the
1 min read
Networking Commands For Troubleshooting Windows
In networking there are various commands that can be used to check the connectivity of the networking devices and it is also required at time of troubleshooting of devices. We will be discussing few of the networking commands such as color help, ipconfig ,ipconfig/all ,nslookup ,tracert commands.  CommandsFirst press windows+R button.In the search
4 min read
What is a Social Networking Site (SNS)?
A Social Networking Site (SNS) is an online platform where people can create profiles and connect with friends, colleagues, or others with similar interests. These sites allow users to share ideas, activities, events, and interests within their networks. Some of the famous social networking sites are - Facebook, Instagram, Twitter, and LinkedIn. Us
4 min read
Intent Based Networking (IBN)
Intent-based networking (IBN) is a systematic approach to bind infrastructure management and business intent. It is a network management approach in which artificial intelligence (AI) and machine learning (ML) play a major role by automating all the organizational tasks which can be applied across the network i.e., it helps in accomplishing a speci
3 min read
Powerful Networking Data-Plane Language: P4
In today’s rapidly changing working environment, it is very important to be efficient, flexible, and adaptable. P4 (Programming Protocol-independent Packet Processors) is a revolutionary language in the area of network infrastructure. P4 provides a novel networking concept where a higher-level language is used in specifying how packages should be p
5 min read
  翻译: