김태오

IP Address vs. Port Number 본문

Networking

IP Address vs. Port Number

ystc1247 2023. 4. 24. 07:52

IP Address:

Identification: An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.
Function: IP addresses serve two main functions - identifying the host or network interface and providing the location of the host in the network.
Structure: IPv4 addresses consist of four sets of numbers separated by dots (e.g., 192.168.1.1), while IPv6 addresses use eight sets of four hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
Types: There are two types of IP addresses - static (permanently assigned to a device) and dynamic (temporarily assigned from a pool of available addresses by a DHCP server).
Scope: IP addresses are used in global or local networks, allowing devices to communicate across the internet or within private networks.

 

Port Number:

Identification: A port number is a 16-bit unsigned integer used to identify a specific process or service running on a device in a network.
Function: Port numbers enable the proper routing of data between different processes or services within a device or between devices.
Range: Port numbers range from 0 to 65535, with well-known ports (0-1023) reserved for specific services or protocols (e.g., HTTP uses port 80, and HTTPS uses port 443).
Types: Port numbers can be either static (assigned to a specific service or protocol) or dynamic (assigned on-demand by the operating system for client-side communication).
Scope: Port numbers are primarily used within a device or a local network, differentiating multiple processes or services running simultaneously on the same device.

 

'Networking' 카테고리의 다른 글

Connectionless vs. Connection-Oriented  (0) 2023.04.24
Multiplexer , Demultiplexer  (0) 2023.04.24
Socket  (0) 2023.04.24
OSI 7 Layer  (0) 2023.04.14
CDMA(Code Division Multiple Access)  (0) 2023.04.14