CN114629862B - Port connection system, method and computer equipment - Google Patents
Port connection system, method and computer equipment Download PDFInfo
- Publication number
- CN114629862B CN114629862B CN202210263427.5A CN202210263427A CN114629862B CN 114629862 B CN114629862 B CN 114629862B CN 202210263427 A CN202210263427 A CN 202210263427A CN 114629862 B CN114629862 B CN 114629862B
- Authority
- CN
- China
- Prior art keywords
- port
- target
- receiving
- preset
- receiving unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a port connection system, a port connection method and computer equipment. The system comprises an output unit, a port synchronization unit and at least one preset receiving unit; the output unit is used for sending a connection request to the port synchronization unit, wherein the connection request comprises first target identification information, second target identification information and an output port number corresponding to a target output port of the output unit; the port synchronization unit is used for forwarding the connection request to each preset receiving unit corresponding to the first target identification information; all other preset receiving units except the target receiving unit do not respond to the connection request; the target receiving unit is used for selecting any unoccupied preset receiving port as a target receiving port, and carrying out port connection based on the target receiving port and the target receiving port. According to the application, the port synchronization unit sends the connection request to all preset receiving units, and the target receiving unit responds to the connection request, so that the port connection efficiency can be greatly improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a port connection system, a port connection method, and a computer device.
Background
With the rise of the industrial internet, more and more factory devices need to access the internet. For port communication among sub-units in the equipment or among different equipment, the access modes of the ports in the current products mainly comprise the following steps:
1. fixed ports, i.e. the ports are allocated in advance to programs, units, devices, etc. which need to communicate. However, the existing environment in which the device is located may not be consistent with the preset deployment environment, and thus, there is a high likelihood that the fixed port is already occupied;
2. all ports of more than one device may start cycling from a certain port, automatically increment once occupied, and allocate the next port. This way, it is possible to avoid situations where ports are already occupied and cannot be allocated. However, if the corresponding allocation policy exceeds the maximum port number, the port cannot be allocated again even if any;
3. in order to solve the problem in the second mode, taking the module when the port number reaches the maximum value, so that the port can be reassigned from the beginning, that is, the port occupied by the previous assignment is released after the use, and the reassignment can screen out the port in the partial available state. The problem that the port number exceeds the maximum value can be solved by the method, but the mode taking reassignment inevitably generates the condition that the port number can be found out by being distributed for a plurality of times, for example, the port number starts from the beginning and is counted once every +1, if the port is occupied, the port is again +1, and thus a certain resource waste can be caused.
Therefore, the prior art has the technical problem of low port connection efficiency caused by a port random allocation mode.
Disclosure of Invention
In order to solve the technical problems, the application provides a port connection system, a port connection method and computer equipment, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a port connection system, where the port connection system includes an output unit, a port synchronization unit, and at least one preset receiving unit, where the output unit and each preset receiving unit are respectively connected to the port synchronization unit;
the output unit is configured to send a connection request to the port synchronization unit, where the connection request includes first target identification information, second target identification information, and an output port number corresponding to a target output port of the output unit, where the first target identification information is first preset identification information of a port connection device to which any preset receiving unit belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit;
the port synchronization unit is configured to forward the connection request to each preset receiving unit in the port connection device corresponding to the first target identification information;
each preset receiving unit is configured to determine whether the second preset identification information corresponding to each preset receiving unit is the same as the second target identification information, where the preset receiving units corresponding to the second preset identification information that is the same as the second target identification information are target receiving units, and all the preset receiving units except the target receiving units do not respond to the connection request;
the target receiving unit is used for selecting any unoccupied preset receiving port as a target receiving port, and establishing a port communication channel based on the target receiving port and the target receiving port.
According to a specific embodiment of the disclosure, the preset receiving port includes an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port associated with a preset network service type, the blank receiving port is a preset receiving port not associated with the preset network service type, and the connection request further includes a target network service type;
the target receiving unit is further configured to determine whether the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, where the target network service type is any one of the preset network service types;
and if the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit is further used for selecting the corresponding associated receiving port as the target receiving port.
According to one embodiment of the disclosure, if the target receiving unit does not have the unoccupied associated receiving port associated with the target network service type, the target receiving unit is configured to select any unoccupied blank receiving port to be associated with the target network service type, so as to obtain the target receiving port.
According to one embodiment of the disclosure, if the target receiving unit does not have any unoccupied associated receiving port associated with the target network service type and/or the target receiving unit does not have any unoccupied blank receiving port, the target receiving unit is configured to send feedback information of connection failure to the port synchronization unit.
In a second aspect, an embodiment of the present application provides a port connection method, which is applied to the port connection system in any one of the first aspects, where the port connection method includes:
the output unit sends a connection request to the port synchronization unit, wherein the connection request comprises first target identification information, second target identification information and an output port number corresponding to a target output port of the output unit, the first target identification information is first preset identification information of a port connection device to which any preset receiving unit belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit;
the port synchronization unit forwards the connection request to each preset receiving unit in the port connection equipment corresponding to the first target identification information;
each preset receiving unit judges whether the second preset identification information corresponding to each preset receiving unit is identical to the second target identification information, wherein the preset receiving units corresponding to the second preset identification information identical to the second target identification information are target receiving units, and all other preset receiving units except the target receiving units do not respond to the connection request;
the target receiving unit selects any unoccupied preset receiving port as a target receiving port, and establishes a port communication channel based on the target receiving port and the target receiving port.
According to a specific embodiment of the disclosure, the preset receiving port includes an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port associated with a preset network service type, the blank receiving port is a preset receiving port not associated with the preset network service type, and the connection request further includes a target network service type;
the step of selecting any unoccupied preset receiving port as a target receiving port by the target receiving unit includes:
the target receiving unit judges whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, wherein the target network service type is any one of the preset network service types;
and if the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit selects the corresponding association receiving port as the target receiving port.
According to a specific embodiment of the disclosure, after the step of determining, by the target receiving unit, whether the associated receiving port that is unoccupied and associated with the target network service type exists in the target receiving unit, the port connection method further includes:
and if the unoccupied associated receiving ports associated with the target network service type do not exist in the target receiving unit, the target receiving unit selects any unoccupied blank receiving port to be associated with the target network service type, and the target receiving port is obtained.
According to a specific embodiment of the disclosure, after the step of determining, by the target receiving unit, whether the associated receiving port that is unoccupied and associated with the target network service type exists in the target receiving unit, the port connection method further includes:
and if the target receiving unit does not have any unoccupied associated receiving port which is associated with the target network service type and/or the target receiving unit does not have any unoccupied blank receiving port, the target receiving unit sends feedback information of connection failure to the port synchronization unit.
In a third aspect, an embodiment of the present application provides a computer device, including a processing device and a memory, where the processing device is loaded with the port connection system according to any one of the first aspects, and the memory stores a computer program, where the computer program implements the port connection method according to any one of the embodiments of the second aspect when executed on the processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed on a processing device, implements a port connection method according to any one of the embodiments of the second aspect.
Compared with the prior art, the application has the following beneficial effects:
the port connection system provided by the application comprises an output unit, a port synchronization unit and at least one preset receiving unit; the output unit is used for sending a connection request to the port synchronization unit, wherein the connection request comprises first target identification information, second target identification information and an output port number corresponding to a target output port of the output unit; the port synchronization unit is used for forwarding the connection request to each preset receiving unit corresponding to the first target identification information; all other preset receiving units except the target receiving unit do not respond to the connection request; the target receiving unit is used for selecting any unoccupied preset receiving port as a target receiving port, and carrying out port connection based on the target receiving port and the target receiving port. According to the application, the port synchronization unit sends the connection request to all preset receiving units, and the target receiving unit responds to the connection request, so that the port connection efficiency can be greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of the present application. Like elements are numbered alike in the various figures.
Fig. 1 is a schematic diagram of a system component of a port connection system according to an embodiment of the present application;
fig. 2 is a flow chart of a port connection method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present application, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the application.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The embodiments described below and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic diagram of a system composition of a port connection system according to an embodiment of the present application.
The port connection system 10 includes an output unit 11, a port synchronization unit 12, and at least one preset receiving unit 13, where the output unit 11 and each preset receiving unit 13 are respectively connected to the port synchronization unit 12.
The output unit 11 is configured to send a connection request to the port synchronization unit 12, where the connection request includes first destination identification information, second destination identification information, and an output port number corresponding to a destination output port 111 of the output unit 11. The first target identification information is first preset identification information of a port connection device to which any preset receiving unit 13 belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit 13.
Specifically, a "port" is an outlet through which one device communicates with other devices. Ports can be divided into virtual ports and physical ports, where virtual ports refer to ports within a computer or within a switch router that are not visible. Such as 80 ports, 21 ports, 23 ports, etc. in a computer. The physical ports are also called interfaces, and are visible ports, RJ45 network ports of a computer backboard, RJ45 ports of a switch router hub and the like. The ports referred to in the present application are virtual ports.
The output unit 11 and the preset receiving unit 13 are two terminal devices or computer programs that establish port communication. After determining the output unit 11, a target receiving unit that needs to be port-connected may be selected from all preset receiving units 13 according to a selection instruction input by the user. Since the output unit 11 and each preset receiving unit 13 may be in the same electronic device, or may be in different electronic devices. Specifically, the terminal device or computer program providing the port service corresponds to one IP address, but the same terminal device or computer program may provide a plurality of services such as a database service, an FTP service, a Web service, and the like at the same time. The port number is used to distinguish between these different services provided by the same terminal device or computer program, and as is commonly known, the port number 21 indicates an FTP service, the port number 23 indicates a Telnet service port number 25 indicates an SMTP service, and so on. The port number is generally a 4-bit integer, and the port number cannot be repeated on the same computer, otherwise, a port number conflict occurs.
Therefore, the first preset identification information in the connection request may be an IP address of the port connection device to which the preset receiving unit 13 belongs, and the second target identification information may be any data information for distinguishing between different preset receiving units 13, such as a character string of a name and a number. In implementation, other data information which can be used for distinguishing different terminal devices or computer programs can be selected as the first preset identification information according to specific use requirements and application situations of users, and the first preset identification information is not limited further herein.
The port synchronization unit 12 is configured to forward the connection request to each preset receiving unit 13 in the port connection device corresponding to the first target identification information. Each preset receiving unit 13 is configured to determine whether the second preset identification information corresponding to each preset receiving unit 13 is the same as the second target identification information, where the preset receiving units 13 corresponding to the second preset identification information that is the same as the second target identification information are target receiving units, and all the preset receiving units 13 except the target receiving units do not respond to the connection request.
The target receiving unit is configured to select any unoccupied preset receiving port 131 as a target receiving port, and establish a port communication channel based on the target receiving port and the target receiving port.
In a specific implementation, the preset receiving ports 131 include an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port 131 associated with a preset network service type, the blank receiving port is a preset receiving port 131 not associated with the preset network service type, and the connection request further includes a target network service type.
The ports of an IP address are numbered by 16 bits, which can be up to 2 16 =65536 ports. Different ports are used to support different network services, and in general, the port numbers may be divided as follows:
0-1023: the port numbers are acknowledged, i.e. have been or will be acknowledged as being reserved for software, e.g. 80 ports for browsing of web pages, 20 and 21 for FTP requests etc. The web browsing and FTP requests are different preset web service types;
1024-65535: is a port number that is not commonly defined and the user can define the roles of these ports himself.
Specifically, the associated receiving port is the port defined with the preset network service type, and the blank receiving port is the port undefined with the preset network service type. The above-mentioned port dividing rule can be adjusted accordingly according to the actual use requirement of the user and the specific application scenario, for example, instead of 80 ports being used only for HTTP service, HTTP is not used only through 80 ports.
The target receiving unit is further configured to determine whether the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, where the target network service type is any one of the preset network service types. At this time, for different judgment results, the subsequent processing steps may be specifically divided into:
1. and if the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit is further used for selecting the corresponding associated receiving port as the target receiving port.
For example, the target network service type is a service, the preset receiving port 131 associated with the a service is X, and if the X port is not occupied at this time, the target receiving unit may select the X port as the target receiving port.
2. And if the unoccupied associated receiving ports associated with the target network service type do not exist in the target receiving unit, the target receiving unit is used for selecting any unoccupied blank receiving port to be associated with the target network service type, so as to obtain the target receiving port.
Since the blank receiving port is not associated with any preset network service type, i.e. the blank receiving port is not allocated with a certain service, the blank receiving port can be dynamically allocated or associated with any preset network service type. Corresponding to the above example, if the X port is already occupied, at this time, any blank receiving port, for example, a Y port, may be selected from all blank receiving ports of the target receiving unit, and the Y port is associated with the target network service type a service, so as to obtain the target receiving port.
3. If the target receiving unit does not have any unoccupied associated receiving port associated with the target network service type and/or the target receiving unit does not have any unoccupied blank receiving port, the target receiving unit is configured to send feedback information of connection failure to the port synchronization unit 12.
According to the port connection system provided by the application, the connection request comprising the first target identification information and the second target identification information corresponding to the target receiving unit is sent to the port synchronization unit, so that the target receiving unit meeting the requirements responds to the connection request to select any unoccupied preset receiving port as a target receiving port, and a port communication channel is established based on the target receiving port and the target receiving port, the process that the output equipment sequentially traverses each preset receiving port to judge whether the corresponding target receiving port exists in the target receiving unit is greatly reduced, and the port connection efficiency is greatly improved.
Corresponding to the above system embodiment, referring to fig. 2, the present application further provides a port connection method, where the port connection method includes:
step S201, an output unit sends a connection request to a port synchronization unit, where the connection request includes first target identification information, second target identification information, and an output port number corresponding to a target output port of the output unit, where the first target identification information is first preset identification information of a port connection device to which any preset receiving unit belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit.
Step S202, the port synchronization unit forwards the connection request to each preset receiving unit in the port connection device corresponding to the first target identification information.
In step S203, each preset receiving unit determines whether the second preset identification information corresponding to each preset receiving unit is the same as the second target identification information, where the preset receiving unit corresponding to the second preset identification information that is the same as the second target identification information is a target receiving unit, and all the preset receiving units except the target receiving unit do not respond to the connection request.
In step S204, the target receiving unit selects any unoccupied preset receiving port as a target receiving port, and establishes a port communication channel based on the target receiving port and the target receiving port.
In specific implementation, the preset receiving ports include an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port associated with a preset network service type, the blank receiving port is a preset receiving port not associated with the preset network service type, and the connection request further includes a target network service type;
the step of selecting any unoccupied preset receiving port as a target receiving port by the target receiving unit includes:
the target receiving unit judges whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, wherein the target network service type is any one of the preset network service types;
and if the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit selects the corresponding association receiving port as the target receiving port.
In a specific implementation, after the step of the target receiving unit determining whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the port connection method further includes:
and if the unoccupied associated receiving ports associated with the target network service type do not exist in the target receiving unit, the target receiving unit selects any unoccupied blank receiving port to be associated with the target network service type, and the target receiving port is obtained.
In addition, a computer device is provided, the computer device comprises a processor and a memory, the processing device is loaded with the port connection system, the memory stores a computer program, and the computer program realizes the port connection method when being executed on the processing device.
Furthermore, a computer readable storage medium is provided, which stores a computer program which, when executed on a processing device, implements the above-mentioned port connection method.
The specific implementation process of the port connection method, the computer device and the computer readable storage medium provided by the present application can refer to the specific implementation process of the port connection method provided by the above embodiment, and will not be described in detail herein.
According to the port connection method, the computer equipment and the computer readable storage medium, the connection request comprising the first target identification information and the second target identification information corresponding to the target receiving unit is sent to the port synchronization unit, so that the target receiving unit meeting the requirements responds to the connection request to select the unoccupied associated receiving port associated with the target network service type as the target receiving port, or any unoccupied blank receiving port is selected to be associated with the target network service type, and the target receiving port is obtained. And based on the target receiving port and the port communication channel established by the target receiving port, the process that the output equipment sequentially traverses each preset receiving port to judge whether the corresponding target receiving port exists in the target receiving unit can be greatly reduced, and the port connection efficiency is greatly improved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the application may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application.
Claims (10)
1. The port connection system is characterized by comprising an output unit, a port synchronization unit and at least one preset receiving unit, wherein the output unit and each preset receiving unit are respectively connected with the port synchronization unit;
the output unit is configured to send a connection request to the port synchronization unit, where the connection request includes first target identification information, second target identification information, and an output port number corresponding to a target output port of the output unit, where the first target identification information is first preset identification information of a port connection device to which any preset receiving unit belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit;
the port synchronization unit is configured to forward the connection request to each preset receiving unit in the port connection device corresponding to the first target identification information;
each preset receiving unit is configured to determine whether the second preset identification information corresponding to each preset receiving unit is the same as the second target identification information, where the preset receiving units corresponding to the second preset identification information that is the same as the second target identification information are target receiving units, and all the preset receiving units except the target receiving units do not respond to the connection request;
the target receiving unit is used for selecting any unoccupied preset receiving port as a target receiving port, and establishing a port communication channel based on the target receiving port and the target receiving port.
2. The port connection system according to claim 1, wherein the preset receiving port includes an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port associated with a preset network service type, the blank receiving port is a preset receiving port not associated with the preset network service type, and the connection request further includes a target network service type;
the target receiving unit is further configured to determine whether the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, where the target network service type is any one of the preset network service types;
and if the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit is further used for selecting the corresponding associated receiving port as the target receiving port.
3. The port connection system according to claim 2, wherein if the target receiving unit does not have the unoccupied associated receiving port associated with the target network service type, the target receiving unit is configured to select any unoccupied blank receiving port to be associated with the target network service type, so as to obtain the target receiving port.
4. A port connection system according to claim 3, wherein the target receiving unit is configured to send feedback information of connection failure to the port synchronization unit if there is no unoccupied associated receiving port in the target receiving unit and associated with the target network service type, and/or if there is no unoccupied empty receiving port in the target receiving unit.
5. A port connection method applied to the port connection system of any one of claims 1 to 4, the port connection method comprising:
the output unit sends a connection request to the port synchronization unit, wherein the connection request comprises first target identification information, second target identification information and an output port number corresponding to a target output port of the output unit, the first target identification information is first preset identification information of a port connection device to which any preset receiving unit belongs, and the second target identification information is second preset identification information corresponding to any preset receiving unit;
the port synchronization unit forwards the connection request to each preset receiving unit in the port connection equipment corresponding to the first target identification information;
each preset receiving unit judges whether the second preset identification information corresponding to each preset receiving unit is identical to the second target identification information, wherein the preset receiving units corresponding to the second preset identification information identical to the second target identification information are target receiving units, and all other preset receiving units except the target receiving units do not respond to the connection request;
the target receiving unit selects any unoccupied preset receiving port as a target receiving port, and establishes a port communication channel based on the target receiving port and the target receiving port.
6. The port connection method according to claim 5, wherein the preset receiving port includes an associated receiving port and a blank receiving port, the associated receiving port is a preset receiving port associated with a preset network service type, the blank receiving port is a preset receiving port not associated with the preset network service type, and the connection request further includes a target network service type;
the step of selecting any unoccupied preset receiving port as a target receiving port by the target receiving unit includes:
the target receiving unit judges whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, wherein the target network service type is any one of the preset network service types;
and if the association receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the target receiving unit selects the corresponding association receiving port as the target receiving port.
7. The port connection method according to claim 6, wherein after the step of the target receiving unit determining whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the port connection method further comprises:
and if the unoccupied associated receiving ports associated with the target network service type do not exist in the target receiving unit, the target receiving unit selects any unoccupied blank receiving port to be associated with the target network service type, and the target receiving port is obtained.
8. The port connection method according to claim 7, wherein after the step of the target receiving unit determining whether the associated receiving port which is unoccupied and associated with the target network service type exists in the target receiving unit, the port connection method further comprises:
and if the target receiving unit does not have any unoccupied associated receiving port which is associated with the target network service type and/or the target receiving unit does not have any unoccupied blank receiving port, the target receiving unit sends feedback information of connection failure to the port synchronization unit.
9. A computer device, characterized in that it comprises a processing device on which the port connection system according to any one of claims 1 to 4 is loaded, and a memory in which a computer program is stored, which computer program, when being executed on the processing device, implements the port connection method according to any one of claims 5 to 8.
10. A computer readable storage medium, characterized in that it stores a computer program, which when executed on a processing device implements the port connection method of any of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210263427.5A CN114629862B (en) | 2022-03-17 | 2022-03-17 | Port connection system, method and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210263427.5A CN114629862B (en) | 2022-03-17 | 2022-03-17 | Port connection system, method and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114629862A CN114629862A (en) | 2022-06-14 |
CN114629862B true CN114629862B (en) | 2023-09-19 |
Family
ID=81902162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210263427.5A Active CN114629862B (en) | 2022-03-17 | 2022-03-17 | Port connection system, method and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114629862B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003037727A (en) * | 2002-05-24 | 2003-02-07 | Casio Comput Co Ltd | Facsimile transmission controller and program recording medium therefor |
JP2004096338A (en) * | 2002-08-30 | 2004-03-25 | Casio Soft Co Ltd | Information processor, port selecting method, and program thereof |
CN101917333A (en) * | 2010-07-06 | 2010-12-15 | 西安电子科技大学 | Region-based photoelectric double-layer network-on-a-chip and routing method |
CN103150198A (en) * | 2013-02-22 | 2013-06-12 | 三一重工股份有限公司 | Display method of configuration software |
CN107005467A (en) * | 2014-12-24 | 2017-08-01 | 英特尔公司 | Apparatus and method for route data in a switch |
CN111131544A (en) * | 2019-12-26 | 2020-05-08 | 杭州迪普科技股份有限公司 | Method for realizing NAT traversal |
CN111294279A (en) * | 2020-02-03 | 2020-06-16 | 苏州浪潮智能科技有限公司 | Device and method for setting backup port of network aggregation group in PXE environment |
WO2021212906A1 (en) * | 2020-04-21 | 2021-10-28 | 珠海格力电器股份有限公司 | Network port allocation method and apparatus, electronic device, and computer-usable medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3762402B2 (en) * | 2003-10-07 | 2006-04-05 | キヤノン株式会社 | Data processing apparatus and method |
US20060080739A1 (en) * | 2004-10-10 | 2006-04-13 | Timothy Lawton | System and methods for securing port to port communications on Layer 2 Ethernet switching devices. |
JP6446986B2 (en) * | 2014-10-14 | 2019-01-09 | 富士通株式会社 | Information processing system, control device, control program for control device, and switch device |
-
2022
- 2022-03-17 CN CN202210263427.5A patent/CN114629862B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003037727A (en) * | 2002-05-24 | 2003-02-07 | Casio Comput Co Ltd | Facsimile transmission controller and program recording medium therefor |
JP2004096338A (en) * | 2002-08-30 | 2004-03-25 | Casio Soft Co Ltd | Information processor, port selecting method, and program thereof |
CN101917333A (en) * | 2010-07-06 | 2010-12-15 | 西安电子科技大学 | Region-based photoelectric double-layer network-on-a-chip and routing method |
CN103150198A (en) * | 2013-02-22 | 2013-06-12 | 三一重工股份有限公司 | Display method of configuration software |
CN107005467A (en) * | 2014-12-24 | 2017-08-01 | 英特尔公司 | Apparatus and method for route data in a switch |
CN111131544A (en) * | 2019-12-26 | 2020-05-08 | 杭州迪普科技股份有限公司 | Method for realizing NAT traversal |
CN111294279A (en) * | 2020-02-03 | 2020-06-16 | 苏州浪潮智能科技有限公司 | Device and method for setting backup port of network aggregation group in PXE environment |
WO2021212906A1 (en) * | 2020-04-21 | 2021-10-28 | 珠海格力电器股份有限公司 | Network port allocation method and apparatus, electronic device, and computer-usable medium |
Also Published As
Publication number | Publication date |
---|---|
CN114629862A (en) | 2022-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10440642B2 (en) | Network slice selection in wireless telecommunication networks | |
KR101220054B1 (en) | Efficient formation of ad hoc networks | |
CN110225146B (en) | Intranet and extranet mapping method and device, electronic equipment, medium and video conference system | |
CN108418907B (en) | IP address allocation method and device | |
CN111885733B (en) | Resource allocation method, device, storage medium and network equipment | |
CN112104568B (en) | Data transmission control method and gateway | |
CN110855804A (en) | Network access method, wireless terminal access device and downlink device | |
CN106060131A (en) | Method and device for allocating DNS servers | |
CN110290228B (en) | Internet protocol IP address allocation method and device | |
CN110035128B (en) | Live broadcast scheduling method and device, live broadcast system and storage medium | |
CN114629862B (en) | Port connection system, method and computer equipment | |
CN114828235A (en) | Bandwidth allocation method, bandwidth allocation device and computer-readable storage medium | |
EP3310069A1 (en) | Method for allocating wavelength paths in passive optical network, optical line terminal, and system | |
KR100810016B1 (en) | Electronic device connection resource management | |
CN116318554A (en) | Network transmission method and device | |
CN114173396B (en) | Method and device for determining terminal networking time, electronic equipment and storage medium | |
CN110912717B (en) | Broadcasting method and server of centerless multi-channel concurrent transmission system | |
US7554947B2 (en) | Resource allocation in a packet-based radio communication system | |
CN112637042B (en) | Method, device and storage medium for issuing information based on priority | |
KR20050059629A (en) | Method for providing service to users through modifying qos profile | |
US20140164608A1 (en) | Content transmission system | |
CN114285799B (en) | Method, device, terminal and storage medium for processing service | |
CN114158031B (en) | Method, device, router and storage medium for counting terminals | |
US20190036843A1 (en) | Inter-switch communication management apparatus, inter-switch communication management method, and computer-readable storage medium | |
CN114513490B (en) | View library cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |