CN108476245B - Method for establishing port connection and port chip - Google Patents

Method for establishing port connection and port chip Download PDF

Info

Publication number
CN108476245B
CN108476245B CN201680003258.4A CN201680003258A CN108476245B CN 108476245 B CN108476245 B CN 108476245B CN 201680003258 A CN201680003258 A CN 201680003258A CN 108476245 B CN108476245 B CN 108476245B
Authority
CN
China
Prior art keywords
port
rate
protocol
negotiation
type
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
Application number
CN201680003258.4A
Other languages
Chinese (zh)
Other versions
CN108476245A (en
Inventor
李旭慧
王娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108476245A publication Critical patent/CN108476245A/en
Application granted granted Critical
Publication of CN108476245B publication Critical patent/CN108476245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof

Abstract

The embodiment of the invention provides a method for establishing port connection and a port chip. The method is applied to the port chip and comprises the following steps: receiving a negotiation signal sent by an opposite terminal through the port; determining the communication rate of the port and the opposite terminal according to the negotiation signal; determining a port type to be set of the port according to the communication rate, and setting the port as the port type to be set; and establishing the connection between the port and the opposite terminal. The invention can automatically set the port type of the intelligent port according to the signal type sent by the opposite terminal without manual setting.

Description

Method for establishing port connection and port chip
Technical Field
The present invention relates to the field of network connection technologies, and in particular, to a method for establishing a port connection and a port chip.
Background
In a Storage Area Network (SAN), a Fiber Channel (Fiber Channel) or an Internet Small Computer System port (iSCSI) ethernet is generally used for Network connection, but with the development of a gigabit ethernet (10Gbe), the gigabit ethernet can be integrated into a Storage Area Network connected by a Fiber Channel (Fiber Channel), that is, in a Storage Area Network, an FC Network and a gigabit ethernet exist at the same time, and a user can select different Network connections according to needs, so that the gigabit ethernet connection can be added into the existing FC Network architecture without replacing the existing FC Network architecture, and the purpose of making good use of the old can be achieved.
As shown in fig. 1, the existing SAN fabric connected via an FC network is such that a server 101 is connected to an FC switch 103 via an FC Host Bus Adapter (HBA) 102, and the FC switch 103 is connected to a storage device 104 via an FC HBA port 102. In order to establish a gigabit Ethernet network on an existing FC network architecture, as shown in fig. 2, an FCoE/iSCSI switch 105 is added to the existing FC network, an Ethernet (ETH) HBA106 of the server 101 is connected to the PCoE/iSCSI switch 105, a Unified Target Adapters (UTA) 107 is provided on the storage device 104, the FC switch 103 and the FCoE/iSCSI switch 105 are simultaneously connected to the UTA107, and the UTA107 supports the conversion between an FC port and an ETH port. When the FC network is needed to transmit data, the UTA port needs to be manually set as an FC port, and then the optical module needs to be manually changed into an FC optical module.
Disclosure of Invention
The application provides a method for establishing port connection and a port chip, which can automatically switch different network ports.
In a first aspect of the embodiments of the present invention, a method for establishing a port connection is provided, where the method is applied to a port chip, the port chip includes a port, the port supports at least one port type, and the port chip executes the method to perform port type switching. The method comprises the steps of receiving a negotiation signal sent by an opposite terminal through a port, determining the communication rate of the port and the opposite terminal according to the negotiation signal, determining the port type to be set of the port according to the determined communication rate after the communication rate is determined, then setting the port as the port type to be set, and establishing the connection between the port and the opposite terminal after the port type of the port is determined.
By the method, the communication rates of the two ends can be determined according to the signals sent by the opposite end, the port type which is to be set of the port is determined according to the determined communication rate, the port is set to be the corresponding port type, the two ends can carry out data communication according to the set port type, and therefore the port type of the port can be set according to the negotiation signals sent by the opposite end without manual setting, so that the switching efficiency among different types of networks is improved, and the operation is simplified.
In a first implementation manner of the first aspect, each of at least one port type supported by the port corresponds to a rate set, so that when determining the port type according to the communication rate, a rate set in which the communication rate is located is first determined, and then the port type of the port is determined according to the rate set.
With the different rates supported by each type of port, the port type of the port can be accurately and quickly determined.
In a second implementation manner of the first aspect, each port type corresponds to a port protocol, and thus, when the port is set as the port type, first, the port protocol corresponding to the port type is obtained according to the determined port type, and the port protocol is called to set the port as the port type.
The port chip stores all types of port protocols supported by the port, so that the port can support various port types, and after the port types are determined, the port can be set to be corresponding port types by calling the port protocols of corresponding types.
In a third implementation manner of the first aspect, on the basis of the second implementation manner, each port type supported by the port corresponds to a rate set, a receiving rate list and a sending rate list are also stored in the port chip, rates in the receiving rate list and the sending rate list are all rates in the rate sets corresponding to all port types, and when the communication rate between the port and the opposite end is determined according to the negotiation signal, negotiation is performed according to the order of the rates in the receiving rate list and the sending rate list from large to small.
When the speed is negotiated, the speeds of all port types supported by the port are collected into a set, so that the speed negotiation efficiency is improved.
In a fourth implementation manner of the first aspect, in the first aspect or any implementation manner of the first to third implementation manners, the type of the port is a fiber port or an ethernet port.
A second aspect of the present invention provides a port chip, where the port chip includes a port, the port supports multiple port types, and the port chip further includes a signal receiving module, a rate determining module, a port setting module, and a connection establishing module. The signal receiving module is used for receiving a negotiation signal sent by an opposite terminal through the port, the rate determining module is used for determining the communication rate of the port and the opposite terminal according to the negotiation signal, the port setting module is used for determining the port type of the port which needs to be set according to the communication rate and setting the port as the port type which needs to be set, and the connection establishing module is used for establishing the connection between the port and the opposite terminal.
The port chip can determine the communication rates of the two ends according to the signals sent by the opposite end, determine the port type of the port to be set according to the determined communication rates, set the port as the corresponding port type, and the two ends can carry out data communication according to the set port type.
In a first implementation manner of the second aspect of the present invention, each of multiple port types supported by the port corresponds to a rate set, and the port setting module is specifically configured to determine the rate set where the communication rate is located when determining the port type of the port, and determine the port type of the port according to the rate set.
With the different rates supported by each type of port, the port type of the port can be accurately and quickly determined.
In a second implementation manner of the second aspect of the present invention, each port type corresponds to a port protocol, and when the port setting module sets the port as the port type, the port setting module first obtains the port protocol corresponding to the port type according to the determined port type; the port protocol is then invoked to set the port to the port type.
The port chip stores all types of port protocols supported by the port, so that the port can support various port types, and after the port types are determined, the port can be set to be corresponding port types by calling the port protocols of corresponding types.
In a third implementation manner of the second aspect, the port is an optical port, the signal sent by the opposite end is an optical signal, and the rate determining module is specifically configured to negotiate a communication rate with the opposite end according to the received optical signal when determining the communication rate between the port and the opposite end.
The optical module supports the speed supported by various types of optical modules, so that the optical module can identify optical signals emitted by different types of ports, and therefore, when the ports are switched, the different types of optical modules do not need to be replaced.
In a fourth implementation manner of the second aspect, on the basis of the third implementation manner, each port type supported by the port corresponds to a rate set, the port chip further stores a receiving rate list and a sending rate list, rates in the receiving rate list and the sending rate list are all rates in the rate sets corresponding to all port types, and when the communication rate between the port and the opposite end is determined according to the negotiation signal, negotiation is performed according to a descending order of the rates in the receiving rate list and the sending rate list.
When the speed is negotiated, the speeds of all port types supported by the ports are concentrated into a large set, so that the speed negotiation efficiency is improved.
In a fifth implementation form of the second aspect, in any of the first to fourth implementation forms described above, the type of the port is a fiber port or an ethernet port.
A third aspect of the present invention provides a port chip, where the port chip includes a port, a memory, a processor, and a bus, where the processor is connected to the port and the memory through the bus, the memory stores program instructions, and the processor executes the program instructions to perform the first aspect or any one of the first to fourth implementation manners of the first aspect.
A fourth aspect of the present invention provides a storage device, where the storage device includes a port chip, where the port chip includes a port, a memory, a processor, and a bus, where the processor is connected to the port and the memory through the bus, and the memory stores program instructions, and the processor runs the program instructions to execute the method for establishing a connection between ports according to the first aspect or any one of the first to fifth embodiments of the first aspect.
In summary, in the embodiment of the present invention, in an SAN network having multiple network connections, a network port is set as an intelligent port capable of automatically setting a port type, the intelligent port can support multiple types of network ports, the intelligent port can determine the type of the intelligent port according to a received negotiation signal of an opposite end, and then the intelligent port is set as a network port of the determined type, so that when switching different network connections, the intelligent port can automatically set the port type according to the received signal without manual setting, thereby improving the efficiency of switching between different networks and simplifying operations.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is an architecture diagram of a storage area network connected via an FC network in the prior art.
Fig. 2 is an architecture diagram of a storage area network connected via an FC network and an ETH network in the related art.
Fig. 3 is an architecture diagram of a storage area network connected via an FC network and an ETH network in an embodiment of the present invention.
Fig. 4 is a structural diagram of an intelligent port chip in the embodiment of the present invention.
Fig. 5 is a flowchart of a method for establishing a connection between an intelligent port chip and an opposite terminal in the embodiment of the present invention.
Fig. 6 is a flowchart of a method for negotiating with an opposite terminal to determine a communication rate with the opposite terminal by an intelligent port chip in the embodiment of the present invention.
Fig. 7 is a block diagram of an intelligent port chip according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Based on the problem that the port type of the UTA needs to be manually set when different networks are switched in the SAN that includes the FC network and the ethernet network as shown in fig. 2, in the embodiment of the present invention, the UTA port in fig. 2 is replaced with the intelligent port 108 as shown in fig. 3, and the intelligent port 108 can automatically identify the type of the received signal sent by the opposite terminal and switch the intelligent port 108 to a port corresponding to the signal type, so that the port type of the intelligent port 108 is automatically set according to the signal type sent by the opposite terminal without manual setting.
The smart port 108 is provided by a smart port chip 40 (shown in fig. 4), and in this embodiment, the smart port chip 40 is installed in the storage device 104 and provides smart port functions for the storage device 104. In practice, however, the smart port chip 40 may be installed in any device requiring a smart port, and is not limited to being installed in a storage device.
Fig. 4 is a structural diagram of the intelligent port chip 40 providing the intelligent port 108 according to the embodiment of the present invention.
The intelligent port chip 40 includes a processor 401, a memory 402, at least one intelligent port 108, and a bus 404. The processor 401 is coupled to other components for communication with the other components via a bus 404.
In this embodiment, a signal sent by the opposite end is an optical signal, the intelligent port 108 is also an optical port, and can be connected with an optical module 405, when the optical module 405 is connected to the intelligent port 108, the optical module 405 can receive the optical signal sent by the opposite end, convert the received optical signal into an electrical signal and transmit the electrical signal to the intelligent port 108, and the intelligent port 108 transmits the electrical signal to the processor 401 for processing, so that the communication between the intelligent port 108 and the opposite end can be realized.
The optical module 405 includes a receiving end Rx and a transmitting end Tx, where the receiving end Rx is configured to receive an optical signal sent by an opposite end and convert the received optical signal into an electrical signal, the converted electrical signal is transmitted to the processor 401 through the intelligent port 108 to be processed, the processor 401 transmits information to be sent to the intelligent port 108, and the optical module 405 converts the electrical signal transmitted by the intelligent port 108 into an optical signal and then sends the optical signal to the opposite end by the transmitting end Tx of the optical module 405.
The memory 402 may be a non-volatile memory (NVM), in which a port type determining program 406 and port protocols corresponding to port types supported by the intelligent port chip 40, such as an ETH port protocol 407 and an FC port protocol 408, are stored, and in this embodiment of the present invention, the intelligent port 108 may support at least two port types, where each port type corresponds to one port protocol. After the optical module 405 is inserted into the intelligent port 108, when the processor 401 detects a negotiation signal transmitted by an opposite terminal, the port type determining program 406 is operated, and a rate negotiation is performed with the opposite terminal port according to the negotiation signal, after the rate negotiation is completed, the current port type of the intelligent port 108 is determined according to the negotiated rate, a port protocol corresponding to the port type is started to set the intelligent port 108, so as to establish a connection with the opposite terminal, after the connection is established, a data signal transmitted by the opposite terminal can be received, and the received data signal is transmitted to the controller 1041 of the storage device 104 to be processed, so that normal data communication can be established with the opposite terminal.
As shown in fig. 5, it is a flowchart of a method for establishing a connection between the intelligent port chip 40 and an opposite terminal. The method is specifically performed by the processor 401 running the port type determination program 406. The method comprises the following steps:
step S501, receiving a negotiation signal sent by an opposite end.
In this embodiment, the negotiation signal sent by the opposite end is a negotiation signal sent by an FC or ETH switch connected to the intelligent port 108, and in an embodiment where the server is directly connected to the storage device, the negotiation signal sent by the opposite end may be a negotiation signal directly sent by an FC port or an ETH port of the server.
The negotiation signal has a specific code, and the processor 401, after receiving a signal sent by an opposite end, first identifies whether the received signal has the specific code, and if the received signal has the specific code, may determine that the received signal is the negotiation signal.
Step S502, according to the received negotiation signal, the communication rate with the opposite terminal is negotiated.
Here, the rate negotiation between the two ports follows the FC-FS-3(Fibre Channel Framing and Signaling-3) standard, and the specific negotiation method is described with reference to fig. 6.
Step S503, determining the port type of the intelligent port 108 to be set according to the negotiated communication rate.
In this embodiment, the memory 402 further stores a set of rate values supported by each port type supported by the smart port chip 40, for example, the set of rate values supported by the FC port is {4Gbps, 8Gbps, 16Gbps, 32Gbps }, and the set of rate values supported by the ETH port is {10Gbps, 25Gbps }. Thus, by comparing the determined communication rate with the rate supported by each type of port stored in the memory 402, if the communication rate is consistent with one of the rates in a rate set, it may be determined that the port type corresponding to the rate set is the port type of the intelligent port. For example, if the determined communication rate is 10Gbps, which is one of the rates supported by the ETH port, the type of the smart port may be determined to be the ETH port.
Step S504, acquiring a port protocol according to the determined port type to be set, and setting the port type of the intelligent port.
As described above, the memory 402 stores the communication protocols of all port types that can be supported by the intelligent port 108, and after the port type of the intelligent port 108 is determined, the communication protocol corresponding to the port type can be called, and the intelligent port 108 is set as a port of a corresponding type, so that the automatic setting of the intelligent port 108 can be completed without manual intervention.
And step S505, establishing connection with the opposite terminal so as to carry out data communication with the opposite terminal.
Through the above embodiment of the present invention, the intelligent port 108 can automatically identify the type of the received negotiation signal sent by the opposite terminal, and switch the intelligent port 108 to the port corresponding to the signal type, so as to automatically set the port type of the intelligent port according to the signal type sent by the opposite terminal without manual setting.
As shown in fig. 6, it is a flowchart of a method for the processor 401 to negotiate a communication rate with an opposite end according to a received negotiation signal.
In step S61, the processor 401 detects a negotiation signal sent by the opposite end.
The opposite end may be a port of the switch or a port of the server, and the port of the opposite end that sends the negotiation signal may be an FC port or an ethernet port. After the optical modules at the two ends are connected, the receiving end Rx of the optical module 405 of the intelligent port 108 may detect a negotiation signal transmitted by the opposite end, and the opposite end may also detect a negotiation signal transmitted by the transmitting end Tx of the optical module 405 of the intelligent port 108. In the embodiment of the present invention, in order to save the power consumption for detecting the peer end signal, the detection may be set to be performed every certain period of time, for example, 1.6 ms.
In step S62, after detecting the negotiation signal sent by the peer end, the processor 401 sets the receiving rate Rxv of the receiving end Rx of the intelligent port 108 as the maximum rate Rxmax in the receiving rate list, sets the sending rate Txv of the sending end Tx of the intelligent port 108 as the maximum rate Txmax in the sending rate list, and starts the receiving rate timer and the sending rate timer.
In this embodiment, the receiving end rate list and the sending end rate list all the rates supported by the intelligent port 108, that is, a total set of the rates supported by each port type supported by the intelligent port 108, in order from the largest rate to the smallest rate. For example, the port types supported by the smart port 108 include an FC port and an ETH port, the FC port supports a rate of {4Gbps, 8Gbps, 16Gbps, 32Gbps }, the ETH port supports a rate of {10Gbps, 25Gbps }, and the receiving end rate list and the transmitting end rate list are {4Gbps, 8Gbps, 10Gbps, 16Gbps, 25Gbps, 32Gbps }. The rate at which the intelligent port 108 can communicate with the opposite end is the rate supported by the intelligent port. The intelligent port 108 can perform rate negotiation according to the rates listed in the receiving end rate list and the sending end rate list.
In addition, in this embodiment, a receiving rate timer and a sending rate timer are further provided, where the receiving rate timer is used to control the negotiation time of the receiving rate, and the sending rate timer is used to control the negotiation time of the sending rate. For specific applications, reference is made to the description below.
Step S63, determining the rate of the received negotiation signal of the peer end every first preset time.
In the process of rate negotiation, the negotiation signals sent by the two ends performing the rate negotiation are constantly changed, so that the rate of the received negotiation signal is determined again every first preset time to trigger the rate negotiation of the receiving end.
Step S64, determining whether the rate of the received negotiation signal is consistent with the set receiving rate Rxv of the intelligent terminal 108, if not, it indicates that no negotiation is performed, then step S66 is executed, and if so, it indicates that the intelligent port 108 supports the rate sent by the opposite port, then step S65 is executed.
Step S65, determining whether the current receiving rate is greater than or equal to the set current sending rate of the intelligent port 108, and if the current receiving rate is greater than or equal to the set current sending rate of the intelligent port 108, it indicates that the currently negotiated rate is a rate supported by both ends, that is, the current receiving rate is the maximum rate supported by both ends, it indicates that the rate negotiation between the intelligent port 108 and the opposite end is performed, and step S67 is performed, where the current receiving rate is used as the negotiated rate between the intelligent port and the opposite end. If it is less than this, it indicates that the intelligent port 108 supports the sending rate of the opposite end, but the sending rate may not be the maximum value of the rates supported by the intelligent port and the opposite end, so the negotiation is continued, and step S66 is executed.
Step S66, determining whether the timing of the receiving rate timer is greater than a second preset time.
The second preset time is a preset duration for performing receiving rate negotiation, the second preset time is related to the first preset time and the number of the rates in the receiving rate list, and the number of the rates in the receiving rate list multiplied by the first preset time is the second preset time, so that it can be ensured that all the rates in the receiving rate list are negotiated once in the second preset time. When the timing of the receiving rate timer is not greater than the second preset time, step S68 is executed, and when the timing of the receiving rate timer is greater than the second preset time, step S69 is executed.
Step S68, the current receiving rate Rxv is updated, the updated current receiving rate is the next rate Rxnext to the current receiving rate Rxv before being updated in the receiving rate list, so as to prepare for negotiating the next rate Rxnext, the next rate Rxnext may be recorded as a temporary receiving rate, which is convenient for later use in negotiating the sending rate, and then the process returns to step S63.
In step S69, the current reception rate Rxv is set equal to the current transmission rate Txv.
Step S70, determining whether the rate of the received negotiation signal is consistent with the current receiving rate Rxv, if so, indicating that the rate of the received negotiation signal is negotiated with the current sending rate Txv of the smart port 108, and then executing step S67; if not, step S71 is executed.
Steps S69 and S70 are executed, that is, after the current receiving rate Rxv is set to the current sending rate Txv, the negotiation is performed once with the rate of the received negotiation signal, and if the negotiation is completed, the subsequent process of adjusting the current sending rate and proceeding with the negotiation is not required, so that the negotiation rate can be determined quickly.
Step S71, it is determined whether the duration timed by the sending rate timer exceeds a third preset duration. The third preset duration is used for controlling a negotiation duration of the sending rate, and the third preset duration is related to the second preset duration and the number of the sending rates in the sending rate list, that is, the third preset duration is equal to the number of the second preset duration multiplied by the sending rates in the sending rate list, so that it can be ensured that each sending rate in the sending rate list is negotiated once in the third period. If the time length counted by the sending rate timer exceeds a third preset time length, step S72 is executed, and if the time length counted by the sending rate timer does not exceed the third preset time length, step S73 is executed.
Step 72, updating the current sending rate Txv, where the updated current sending rate Txv is the next rate Txnext of the current sending rates before updating in the sending rate list, and setting the current receiving rate as the temporary receiving rate recorded in step 68, and then returning to step S63. That is, after the current sending rate Txv is updated, another round of negotiation is performed on the receiving rates in the receiving rate list. Setting the current reception rate Rxv to the temporary reception rate Rxmem makes it possible to start negotiation of the reception rate from the temporary reception rate Rxmem recorded when the reception rate timer ends counting after the current transmission rate Txv is updated.
Step S73, the connection fails, and the negotiation ends.
By the method, the communication rate of the intelligent port 108 and the opposite terminal can be determined, and the processing unit can determine the port type of the intelligent port according to the determined communication rate.
Fig. 7 is a block diagram of an intelligent port 700 according to an embodiment of the present invention. The intelligent port comprises a signal receiving module 701, a rate determining module 702, a port setting module 703 and a connection establishing module 704.
The signal receiving module 701 is configured to receive a negotiation signal sent by an opposite end, and corresponds to step S501 of the method for establishing a connection described in fig. 5.
The rate determining module 702 is configured to negotiate a communication rate with an opposite end according to the received negotiation signal, and corresponds to step S501 of the method for establishing a connection described in fig. 5. Here, the rate negotiation of the negotiation signal between the two ports follows the FC-FS-3(Fibre Channel Framing and Signaling-3) standard, and the specific negotiation method is described with reference to fig. 6, and is not described herein again.
The port setting module 703 is configured to determine a port type of the intelligent port according to the communication rate negotiated by the rate determining module 702, and acquire a port protocol corresponding to the port type according to the determined port type, so as to set the port type of the intelligent port, which corresponds to steps S503 and S504 of the method for establishing a connection described in fig. 5.
In this embodiment, the determining manner of the port type of the intelligent port is consistent with the determining manner of the port type in the method for establishing connection described in fig. 5, and details are not repeated here.
The connection establishing module 704 is configured to establish a connection with the opposite terminal after the port setting module sets the intelligent port, so as to perform data communication with the opposite terminal.
In this way, the intelligent port 108 can automatically identify the signal type of the received negotiation signal sent by the opposite terminal, and switch the intelligent port 108 to a port corresponding to the signal type, so that the port type of the intelligent port is automatically set according to the signal type of the negotiation signal sent by the opposite terminal without manual setting.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The data block writing device and method provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for establishing a port connection, applied to a port chip, the port chip including a port, wherein the port supports at least two port protocols, the at least two port protocols including an ethernet port (ETH) port protocol and a Fibre Channel (FC) port protocol, each port protocol supporting a network connection, the method comprising:
after receiving a negotiation signal sent by the opposite terminal through the port, beginning to negotiate a communication rate with the opposite terminal;
determining a target port protocol of the port and opposite end communication from the at least two port protocols according to the communication rate after negotiation;
and establishing the connection between the port and the opposite terminal by using the target port protocol.
2. The method of claim 1, wherein each port protocol supported by the port corresponds to a port type, each port type corresponds to a set of rates, and the determining the target port protocol for the port to communicate with the peer end from the at least two port protocols according to the negotiated communication rate comprises:
determining a rate set where the communication rate is located;
and determining the port type which is required to be set of the port according to the rate set, and determining a target port protocol of the port and the opposite end communication.
3. The method according to claim 2, wherein each of the at least one port type supported by the port corresponds to a rate set, the port chip further stores a receiving rate list and a sending rate list, the rates in the receiving rate list and the sending rate list are all the rates in the rate sets corresponding to all the port types, and when the communication rate between the port and the opposite end is determined according to the negotiation signal, negotiation is performed according to the order of the rates in the receiving rate list and the sending rate list from large to small.
4. A port chip comprising a port, the port supporting at least two port protocols, the at least two port protocols including an ethernet port (ETH) port protocol and a Fibre Channel (FC) port protocol, each port protocol supporting a network connection, the port chip further comprising:
a signal receiving module, configured to receive, through the port, a negotiation signal sent by an opposite end;
a rate determining module, configured to start negotiating a communication rate with an opposite end after the signal receiving module receives the negotiation signal;
a port setting module, configured to determine, according to the negotiated communication rate, a target port protocol for communication between the port and an opposite end from the at least two port protocols;
and the connection establishing module is used for establishing the connection between the port and the opposite terminal by using the target port protocol.
5. The port chip of claim 4, wherein each port protocol supported by the port corresponds to a port type, each port type corresponds to a rate set, and the port setting module is specifically configured to determine the rate set in which the communication rate is located when determining the target port protocol, determine the port type of the port according to the rate set, and determine the target port protocol for the port to communicate with an opposite terminal.
6. The port chip of claim 4, wherein the port is an optical port comprising an optical module that supports rates corresponding to all port types supported by the port.
7. The port chip according to claim 6, wherein each of a plurality of port types supported by the port corresponds to a rate set, the port chip further stores a receiving rate list and a sending rate list, the rates in the receiving rate list and the sending rate list are all rates in the rate sets corresponding to all the port types, and when the communication rate between the port and the opposite end is determined according to the negotiation signal, negotiation is performed according to the order of the rates in the receiving rate list and the sending rate list from large to small.
8. A port chip comprising a port, a memory, a processor and a bus, the processor being connected to the port and the memory via the bus, the memory having stored therein program instructions, the processor executing the program instructions to perform the method of any of claims 1-3.
CN201680003258.4A 2016-08-22 2016-08-22 Method for establishing port connection and port chip Active CN108476245B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/096249 WO2018035681A1 (en) 2016-08-22 2016-08-22 Method of establishing interface connection, and interface chip

Publications (2)

Publication Number Publication Date
CN108476245A CN108476245A (en) 2018-08-31
CN108476245B true CN108476245B (en) 2022-01-11

Family

ID=61245997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680003258.4A Active CN108476245B (en) 2016-08-22 2016-08-22 Method for establishing port connection and port chip

Country Status (2)

Country Link
CN (1) CN108476245B (en)
WO (1) WO2018035681A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109444547B (en) * 2018-11-22 2020-12-15 北京智芯微电子科技有限公司 RFID chip impedance measuring method and device based on two-port network
CN112887223A (en) * 2021-01-12 2021-06-01 中国电子科技集团公司第五十八研究所 Rate adaptation method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
WO2010114439A1 (en) * 2009-03-31 2010-10-07 Telefonaktiebolaget L M Ericsson (Publ) Energy efficient ethernet network nodes and methods for use in ethernet network nodes
CN103222251A (en) * 2012-11-29 2013-07-24 华为技术有限公司 Ether port auto-negotiation and communication equipment
CN105245457A (en) * 2015-10-21 2016-01-13 盛科网络(苏州)有限公司 Method and device for accelerating convergence speed of designated port in MSTP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010114439A1 (en) * 2009-03-31 2010-10-07 Telefonaktiebolaget L M Ericsson (Publ) Energy efficient ethernet network nodes and methods for use in ethernet network nodes
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
CN103222251A (en) * 2012-11-29 2013-07-24 华为技术有限公司 Ether port auto-negotiation and communication equipment
CN105245457A (en) * 2015-10-21 2016-01-13 盛科网络(苏州)有限公司 Method and device for accelerating convergence speed of designated port in MSTP

Also Published As

Publication number Publication date
CN108476245A (en) 2018-08-31
WO2018035681A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
US10389153B2 (en) Charging control method and mobile terminal
US10659297B2 (en) Negotiation mode processing method and intelligent network device
WO2014114094A1 (en) Optical interface rate self-adapting method and optical network device
US20170110885A1 (en) Reverse power supply management method, apparatus and system
CN111835569B (en) Self-adaptive method, system and storage medium for optical port speed and mode
WO2019042421A1 (en) Method, apparatus and device for rate adjustment of usb data transmission, and storage medium
CN108476245B (en) Method for establishing port connection and port chip
CN110069288A (en) USB device sharing method, apparatus and system
US9529761B2 (en) Data transfer apparatus, host apparatus, data transfer system, and communication mode setting method
CN113283464B (en) USB plug and transmission system supporting USB signal link training
TWI469567B (en) Switch having function of saving power and power saving method thereof
CN104199799A (en) Baud rate self-adaptation method and device based on CPLD
CN107257586B (en) Mobile network connection method and system when intelligent terminal is connected with WiFi
US8996737B1 (en) Method for emulating communication standards of transceiver modules for native host devices
WO2017000737A1 (en) Transmission checking method, node, system and computer storage medium
US11803494B2 (en) Data communication method, master device and system
US8542701B2 (en) Method and device for determining timeslot configuration in TDM transmission
US8225004B1 (en) Method and system for processing network and storage data
CN109542812A (en) Data communication control method, device and terminal device
US20130031230A1 (en) Method and system for managing network elements
CN114024897B (en) Port switching method and system
CN110932782B (en) Adaptive system and adaptive method for optical fiber transmission standard
US7007086B2 (en) Method and apparatus for measuring multi-connection performance of a server
CN114443551B (en) Method, system, equipment and medium for realizing I2C communication by single line
JP7188280B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM

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