Consultor Eletrônico



Kbase P65772: What is a Port or Service (-S Startup Parameter)?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/17/2004
Status: Verified

GOAL:

What is a Port or Service (-S Startup Parameter)?

GOAL:

The -S Startup parameter

GOAL:

How Progress uses a Port to establish connections?

FIX:

Computers have a variety of physical hardware ports over which data is transmitted between input/output devices and external peripherals. A typical computer has parallel printer ports, serial ports, USB ports, a keyboard connector, and a mouse connector. Likewise, software processes running in computers need "software ports" to connect with other software processes. Interprocess communication (IPC) takes place between these ports.

In the Internet Protocol suite, the TCP and UDP protocols use ports to support interprocess communications between different networked devices. A single host may have multiple processes running at the same time, connected to one or more computers. Each of these processes is multiplexed through the same network interface and local network link. In other words, packets from each of these processes are interleaved and sent through the network interface. A port can be thought of as a message queue through which these packets pass.

Each process must be distinguished from other processes, and this is done with port numbers. Ports are numbered from 0 to 65536. The most popular applications and protocols, such as FTP, SMTP and SNMP, are preassigned to "well-known" ports.
An application that provides a network service opens its assigned port and waits for messages to arrive on that port. For example, a Web server opens port 80. When a Web browser contacts a Web server, it directs its messages to port 80, the "well-known HTTP services port." Likewise, SNMP opens port 161. All SNMP management applications know to use this port. Some applications use multiple ports. If you use FTP (File Transfer Protocol) to request a file from an FTP server, the request is sent over one channel and the file is transmitted back over another channel. FTP uses ports 20 and 21.

Keep in mind that a port only identifies one process running in one computer. The port is combined with the IP address of the host to create a socket. This is like combining a name with an address on an envelope to identify a mail recipient at a postal address.

A socket identifies a process running in a specific computer, so it is one end of a logical connection across a packet-switched network. The other end of a connection is identified by another socket. Therefore, a pair of sockets forms a connection and the connection is uniquely identified by the "local socket/foreign socket" address pair. Once a connection is made, the connected systems can begin to exchange data.

Note that ports and sockets are associated with "long-term connections," something that is specific to TCP and UDP. Both are connection-oriented transport layer protocols. IP is a network layer connectionless protocol. Source port and destination port numbers are inserted into fields in the TCP and UDP packet headers. IP headers have source and destination IP address fields. The combination of the port numbers in the TCP or UDP header and the IP addresses in the IP header identifies sockets.

In Progress a Port or Service is used to establish a connection between a Host (Server) and a Client computer. It is specified by the -S startup parameter at the Startup of the DataBase Server Session and also at the Startup of the Client Server Session in way to intercommunicate and to be able to talk.

The -S can be specified by a ServiceName defined in the Services file or by the PortNumber associated to a Service.

See Documentation available for more information on the use of -S startup parameter.