WO2013120340A1 - Port configuration method, device and frame-type communication apparatus for network interface module - Google Patents

Port configuration method, device and frame-type communication apparatus for network interface module Download PDF

Info

Publication number
WO2013120340A1
WO2013120340A1 PCT/CN2012/079180 CN2012079180W WO2013120340A1 WO 2013120340 A1 WO2013120340 A1 WO 2013120340A1 CN 2012079180 W CN2012079180 W CN 2012079180W WO 2013120340 A1 WO2013120340 A1 WO 2013120340A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
network interface
module
interface module
protocol type
Prior art date
Application number
PCT/CN2012/079180
Other languages
French (fr)
Chinese (zh)
Inventor
李宇涛
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013120340A1 publication Critical patent/WO2013120340A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a port configuration method, a device, and a frame type communication device of a network interface module. Background technique
  • Existing framed communication devices have at least one service slot and at least one switch slot.
  • a service board is provided in the service slot for performing processing of a specific service according to the type of the frame type communication device. For example: the service boards of routers and switches, some of which deal with routing protocol operations, some for protocol conversion, encapsulation/decapsulation, and some for traffic control; gateway service boards, some for signaling processing, and some for voice analysis.
  • a switchboard is provided in the switch slot for centralized forwarding and exchange of information between service boards.
  • the information exchange between the service board and the switch board is performed by the information exchange between the network interface module on the service board and the switch module on the switch board.
  • the network interface module and the switch module are functional entities on the service board and the switch board, respectively.
  • the network interface module may be a chip, a physical port of the chip, or a daughter card;
  • the switch module may be a chip, an array of multiple chips, or a daughter card.
  • Figure la is a schematic diagram of the connection between the network interface module on the service board and the switch module on the switch board.
  • the switch module 111 on the switch board 11 is connected to the network interface modules (131 and 141) on the service board 13 and the service board 14 through two links; the switch module 121 on the switch board 12 passes through two links.
  • the network interface modules (131 and 141) on the service board 13 and the service board 14 are respectively connected.
  • the function type of the modules at both ends of the link must be - corresponding, the function type refers to the protocol type of the transmitted data, such as Ethernet (Ethernet), FC (Fiber Channel, Fibre Channel), PCIE (PCI-Express, bus interface) , SAS (Serial Attached SCSI, Serial Attached Small Computer System Interface), etc. If the switch module is an Ethernet switch, then It can be connected to an Ethernet card to ensure that the protocols at both ends of the link are the same.
  • Ethernet Ethernet
  • FC Fiber Channel, Fibre Channel
  • PCIE PCI-Express, bus interface
  • SAS Serial Attached SCSI, Serial Attached Small Computer System Interface
  • the switch module of the same function in the frame communication device is usually configured with two. As shown in FIG. 1a, any one of the switch module 111 and the switch module 121 serves as the main module. The other is the redundancy module or the standby module of the main module. Both switch modules support the first function, and the network interface module 131 and the network interface module 141 connected to them must also be network interface modules supporting the first function.
  • the switch board 11 and the switch board 12 are replaced with the switch board 15 and the switch board 16 that support the second function, as shown in FIG. 1b, the functions of the modules at both ends of the link are described above.
  • the type must be - correspondingly, the network interface module connected to the two switching modules (151 and 161) must be replaced with a network interface module (171 and 181) that supports the second function.
  • the function of replacing the network interface module is to replace the service board. As shown in Figure lb, replace the service board 13 and the service board 14 with the service board 17 and the service board. 18)
  • the number of service boards connected to the replaced switch module is large, manual replacement is not only error-prone, but also increases the cost of the frame communication device.
  • the service board is configured with multiple network interface modules with different functions to connect to the switch modules of multiple functions in the device, the cost of customizing the service board is high. The replacement of the service board causes the cost of the frame communication device to increase. Got more.
  • the network interface module is installed on the service board in the form of a pluggable daughter card (or daughter card), although the service board does not need to be replaced, the manual operation is required when the network interface module is replaced.
  • the above-mentioned error-prone and cost are also present.
  • the high problem, and the way the gusset or daughter card is connected, causes the link to pass through more connectors, introducing a lot of interference and noise, which adversely affects the stability of the device and the signal integrity of the high-speed signal. Summary of the invention
  • An embodiment of the present invention provides a port configuration method, a device, and a frame type communication device of a network interface module, which are used to solve the problem of replacing a network interface module with different functions existing in the prior art.
  • a port configuration method for a network interface module comprising: receiving a configuration indication to indicate a first port of a network interface module that needs to be configured; acquiring a protocol type supported by the first port, and acquiring the first port a protocol type of the second port of the physical connection, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; if the protocol type of the second port belongs to the The protocol type supported by the first port configures the port parameter of the first port to match the port parameter of the second port.
  • a port configuration device of a network interface module comprising: a receiving unit, configured to receive a configuration indication, to indicate a first port of a network interface module that needs to be configured; and an acquiring unit, configured to acquire a protocol supported by the first port Type, and obtain a protocol type of the second port that is physically connected to the first port, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; And configured to: when the protocol type of the second port belongs to a protocol type supported by the first port, configure a port parameter of the first port to match a port parameter of the second port.
  • a frame type communication device comprising: a management module, a network interface module, and a switch module; a first port of the network interface module is physically connected to a second port of the switch module, to implement the network interface module and the The information exchange between the switching modules; the management module, configured to receive a configuration indication, to indicate a first port of the network interface module that needs to be configured; obtain a protocol type supported by the first port, and obtain a protocol a protocol type of the second port physically connected to the first port, where the second port is located on the switching module, and the protocol type supported by the first port includes at least two protocol types; The protocol type of the second port belongs to the protocol type supported by the first port, and the port parameter of the first port is configured to match the port parameter of the second port.
  • the port on the port can support at least Two types of protocols, and when the protocol type of the port on the switch module physically connected to the port on the network interface module belongs to the protocol type supported by the port on the network interface module, by setting the port on the network interface module
  • the port parameter is matched with the port parameters of the port on the connected switch module, which realizes the automatic configuration of the network interface module function, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions.
  • Figure l a, Figure lb is a schematic diagram of a network interface module on a service board and a switch module on a switch board in the prior art;
  • FIG. 2 is a flow chart of a port configuration method of a network interface module according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of a port configuration method of another network interface module according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of another port configuration method of a network interface module according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic diagram of a port configuration method of another network interface module according to Embodiment 1 of the present invention.
  • FIG. 6 is a block diagram of a port configuration apparatus of a network interface module according to Embodiment 2 of the present invention.
  • FIG. 7 is a block diagram of a frame type communication device according to Embodiment 3 of the present invention.
  • the embodiment provides a method for configuring a port of a network interface module.
  • the execution entity of the method is a management module, which is used to perform device management on the entire system of the frame communication device, including configuration, software loading, log management, and environment monitoring.
  • the physical entity can be a separate board or a separate function module (such as a chip, chipset, or part of a chip) that is placed on another board (service board or switch board).
  • the configuration method includes the following steps.
  • the configuration indication is used to trigger a port configuration operation of the management module to the network interface module
  • the configuration indication may be an electrical signal generated after the hardware (switch board or service board) in the frame communication device is reset, for example: on the switch slot
  • the switch board is inserted into the swap slot and reset, resulting in a configuration indication.
  • the configuration indication may also be a configuration indication generated when the service board is reset.
  • the reset includes a reset when the service is powered on, or a passive reset controlled by the management module when the fault occurs.
  • the reset of the switch board also includes a power-on reset and a passive reset.
  • the configuration indication may also be a configuration indication generated by the resetting of the service board and the frame communication device to which the switch board belongs, or other indications that trigger the configuration operation of the network interface module, such as the user launching to the management module through the software interface. Configuration instructions.
  • the management module can determine the first port of the network interface module that needs to be configured.
  • the "first” here is not a limitation on the port location and number on the network interface module, but in order to be on the name. It is different from the port on the switch module described below.
  • the management module can determine the ports on the network interface modules connected to the ports of the switch module on the switch board according to the inherent connection relationship between the switch board and the service board. The ports on these network interface modules are determined to be the first ports of the network interface modules that need to be configured.
  • After receiving the configuration indication generated when the service board is reset it can be determined that all ports of the network interface module on the service board are the first ports of the network interface module that need to be configured.
  • After receiving the configuration indication generated by the reset of the frame communication device it can be determined that all ports of the network interface module on all service boards on the device are the first ports of the network interface module that need to be configured.
  • the protocol type includes at least two protocol types.
  • the embodiment adopts a network interface module different from the prior art.
  • the network interface module is a function-integrated module, and the protocol types supported by the port include at least two protocol types. For example, Ethernet, FC, PCIE, SAS, etc.
  • the management module obtains the protocol type supported by the first port on the network interface module, and obtains the protocol type of the second port located on the switch module that is physically connected to the first port.
  • the first port of the network interface module is physically connected to the second port of the switch module, so that a link is formed between the first port and the second port, and the ports at both ends of the link must have matching ports when communicating.
  • the parameter includes the same protocol type and other parameters related to the protocol type. Therefore, when the protocol type of the second port belongs to the protocol type supported by the first port, that is, the first port supports the configured on the second port. When a good protocol type is used, the management module configures the port parameters of the first port to match the port parameters of the second port, so that the ports at both ends of the link can communicate normally.
  • the port on the port can Supporting at least two types of protocols, and when the protocol type of the port on the switch module physically connected to the port on the network interface module belongs to the protocol type of the port on the network interface module, the management module is configured by setting the network interface module The port parameters of the port are matched with the port parameters of the port on the connected switch module, which implements the automatic configuration of the network interface module function, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions.
  • the port configuration method of the foregoing network interface module may further include the following steps.
  • the error information may visually notify the user that the port parameters of the first port cannot be configured, for example, blinking the alarm light or displaying the error information on the display connected to the frame communication device, or The user is notified in other ways known to those skilled in the art that the port parameters of the first port cannot be configured.
  • the port parameters may include a port mode and a link parameter, where the port mode is a protocol type of the port, and the link parameter may include a driving capability, a pre-emphasis, an equalization, and the like of the physical port related to the protocol type, and the link parameter specifically includes
  • the content will change depending on how the port is physically connected. Because the physical location (slot location) of the service board to which the network interface module belongs is different in the frame communication device, the link length between the port on the network interface module and the port on the switch module is different, so that different network interface modules are different.
  • the link parameter values of the upper port are also different.
  • the step of configuring the port parameter of the first port to match the port parameter of the second port may specifically include: making a port mode of the first port and a port of the second port The mode is the same; the corresponding port parameter is configured for the first port according to the length of the link between the first port and the second port.
  • the port parameter configuration can be more reasonable, and the actual requirements of the network interface module can be better met.
  • the management module obtains the protocol types supported by the first port on the network interface module in two ways: The first one is that the network interface module actively The management module reports the type of the protocol it supports. For example, when the service board to which the service board belongs is reset, the management module reports the type of the protocol it supports. The second type is the management module sends a command to instruct the network interface module to report the supported version. agreement type.
  • the specific implementation step of the second mode may include: sending a first request message to the network interface module, and then receiving a first response message sent by the network interface module, where the first The type of protocol supported by the port.
  • the management module obtains the protocol type of the second port on the switch module in the same manner.
  • the first type is that the switch module actively reports the protocol type to the management module, for example, when the switch board to which the switch belongs is actively managed.
  • the module reports its protocol type
  • the second is that the management module sends a command to instruct the switch module to report its protocol type.
  • the specific implementation step of the second mode may include: sending a second request message to the switching module, and then receiving a second response message sent by the switching module, where the protocol of the second port on the switching module is included Types of.
  • the blade server is a type of frame communication device.
  • the server includes a server board 31 (service board) and a switch board 32 and a management module 33.
  • the management module 33 is connected to the server board 31 and the switch board 32.
  • the server board 31 includes a processor 311, a baseboard management controller 312 (baseboard management controller, BMC), and a network card controller 313.
  • the network card controller 313 functions as a network interface module, and the switching plane 321 on the switch board 32. (Chip)
  • the first port 3131 of the network card controller 313 is connected to the second port 3211 of the switch chip 321 via a link.
  • the NIC controller in this example supports Ethernet, FC, and FCoE (Fibre Channel over Ethernet) interface protocols.
  • the protocol type of the switch chip is FC.
  • FC The protocol type of the switch chip
  • the network card controller and the switch chip can also support protocol types such as PCIE and SAS.
  • the management module 33 receives the configuration indication to read the information of the switch chip 321 and the server board 31 network card controller 313 on the switch board 32, including the supported functions and the protocol type of the port. Or the type of protocol supported by the port, etc.
  • the server board resets itself, or the switch board itself resets, and the management module also receives configuration instructions and reacquires their information.
  • the protocol type of the second port 3211 of the switch chip 321 is obtained by the management module 33, and the first port 3131 of the network card controller 313 is supported by the Ethernet, FC, FCoE interface protocol, because of the protocol type of the second port 3211 (
  • the FC protocol belongs to the protocol type supported by the first port 3131, so the network card controller 313 can establish an FC connection with the switch chip 321.
  • the management module 33 sends the parameters of the port mode (FC protocol mode) and the link parameters of the network card controller 313 to the network card controller 313. If there are multiple service boards connected to the switch board, the management module 33 sets the network interface. Parameters such as the port mode (FC protocol mode) and link parameters of the module are delivered to each network interface module. Since the physical location (slot location) of the service boards in the blade server is different, the network interface modules connected to the different service boards of the switch chip 321 are in the FC protocol mode, but the related links. The parameters (such as the driving capability of the SerDes, the pre-emphasis, the equalization, etc.) may be different. The management module 33 needs to deliver different link parameters according to the network interface modules of different locations.
  • the BMC 312 of the server board 31 receives the parameters such as the port mode and the link parameters sent by the management module 33, and forwards the parameters to the processor 311.
  • the processor 311 performs a port configuration operation on the network card controller 313 through the software interface, and sets the port mode (FC).
  • the protocol mode) and the link parameters are configured to the first port 3131 on the designated network card controller 313.
  • the interface is re-initialized, and a connection is established with the second port 3211 of the switch chip 321 to implement communication.
  • the above configuration of the port mode and link parameters of the network card controller 313 can be divided into two cases:
  • the port of the NIC controller 313 is set by default to a protocol mode, such as Ethernet. when The port parameter sent by the management module 33 needs to be modified into another port mode, such as FC, and the processor 311 performs port parameter modification on the network card controller 313 to implement port automatic configuration.
  • a protocol mode such as Ethernet.
  • the port of the network card controller 313 does not specify a default mode. Each time the port is configured, the processor 311 needs to perform the modification of the port parameters of the network card controller according to the configuration information sent by the management module 33.
  • Example 2
  • a switch module 41 is provided on the blade server, which supports both FC and FCoE protocols. Port 411 on switch module 41 is in FC protocol mode and port 412 is in FCoE protocol mode. Of course, the number of the switching modules 41 is not limited to one shown in FIG. 4, and may be plural. There are also two network interface modules (42 and 43) on the blade server, all supporting protocols such as FC and FCoE.
  • the service board to which the network interface modules (42 and 43) belong is inserted and connected to each port on the switch module 41. Business slot. Then, the service boards to which the two network interface modules (42 and 43) belong generate configuration instructions.
  • the number of the switching module 41, the network interface modules (42 and 43), and the management module 44 is not limited to the number shown in Fig. 4, and may be more.
  • the management module 44 receives the configuration indication and can determine that the ports on the two network interface modules (42 and 43) need to be configured. Next, the management module 44 obtains the protocol types supported by the ports on the two network interface modules (42 and 43), and obtains the protocol type of the port on the switch module that is physically connected to the port.
  • port parameters are configured for the corresponding ports on the network interface modules (42 and 43), so that the ports at both ends of the link between the switch module 41 and the network interface modules (42 and 43)
  • the port parameters match, that is, the switch module 41 and the network interface
  • the port connection between the two ends of the link between the modules 42 uses the FC protocol, and the ports on both ends of the link between the switch module 41 and the network interface module 43 use the FCoE protocol.
  • the port parameter configuration process of the network interface modules (42 and 43) is similar to that of the example 1 and will not be described here.
  • the blade server shown in FIG. 5 is taken as an example.
  • the service board and the switch board are omitted in the figure. Only the network interface module and the switch module are shown.
  • One service board may include at least one network interface module.
  • one switch board may include At least one switch module.
  • four switch modules (51-54) are provided on the blade server, wherein the switch module 52 is a redundancy module of the switch module 51, and the function is the same as that of the switch module 51; the switch module 54 is a switch module 53.
  • the redundancy module has the same function as the switch module 53 using the FCoE protocol.
  • the service boards of the two network interface modules (55 and 56) belong to the service board.
  • the ports of each switch module ( 51 ⁇ 54 ) correspond to the connected service slots.
  • the service boards to which the two network interface modules (55 and 56) belong will generate configuration instructions.
  • the number of the switching modules (51 to 54), the network interface modules (55 and 56), and the management module 57 is not limited to the number shown in FIG. 5, and may be more.
  • the management module 57 receives the configuration indication and can determine that the ports on the two network interface modules (55 and 56) need to be configured. Next, the management module 57 obtains the protocol types supported by the ports on the two network interface modules (55 and 56), and obtains the protocol types of the ports on the switching module that are physically connected to the ports.
  • port parameters are configured for the corresponding ports on each network interface module (55 and 56), so that each switch module (51 ⁇ 54) and the network interface module ( 55 and 56)
  • the port parameters of the ports at both ends of the link match, that is, the ports at both ends of the link between the switch modules (51 and 52) and the network interface module 55 use the FC protocol
  • the switch modules (53 and 54) and the network interface Port connections at both ends of the link between modules 56 enable Use the FCoE protocol.
  • the port parameter configuration process of the network interface modules (55 and 56) is similar to that of the example 1 and will not be described here.
  • the embodiment of the present invention provides a port configuration device of the network interface module, that is, the management module in the first embodiment, the physical entity of which may be an independent board, or may be split on another board (service board or switch).
  • a separate functional module on the board such as a chip, chipset or part of the circuit inside the chip.
  • the device includes: a receiving unit 61, configured to receive a configuration indication, to indicate a first port of a network interface module that needs to be configured, and an acquiring unit 62, configured to acquire a protocol supported by the first port Type, and obtain a protocol type of the second port that is physically connected to the first port, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; 63.
  • the port parameter of the first port is configured to match a port parameter of the second port, when a protocol type of the second port belongs to a protocol type supported by the first port.
  • the port on the port can support at least two protocol types, and when the port is physically connected to the port on the network interface module, the protocol type of the port on the switch module, When the protocol type is supported by the port on the network interface module, the configuration unit 63 configures the port parameter of the port on the network interface module to match the port parameter of the port on the connected switch module, thereby implementing the function of the network interface module.
  • Automatic configuration which reduces maintenance costs and equipment costs when replacing network interface modules with different functions.
  • the port configuration device of the network interface module may further include: an error reporting unit 64, configured to generate an error message when the protocol type of the second port does not belong to a protocol type supported by the first port, to notify the user that the The port parameters of the first port are configured.
  • an error reporting unit 64 configured to generate an error message when the protocol type of the second port does not belong to a protocol type supported by the first port, to notify the user that the The port parameters of the first port are configured.
  • the configuration indication may be: a configuration indication generated when the service board to which the network interface module belongs is reset, a configuration indication generated when the switch board to which the switch module belongs, or a service board and the switch board belong to The configuration indication generated by the reset of the frame communication device upon power-on.
  • the port parameter may include a port mode and a link parameter; thus, the configuration unit may include The mode configuration subunit is configured to make the port mode of the first port the same as the port mode of the second port; the parameter configuration subunit, according to the link between the first port and the second port The length of the first port is configured with a corresponding link parameter.
  • the acquiring unit may be further configured to: send a first request message to the network interface module, and then receive a first response message sent by the network interface module, where the first port on the network interface module is included The type of protocol supported.
  • the method may further be used to send a second request message to the switching module, and then receive a second response message sent by the switching module, where the protocol type of the second port on the switching module is included.
  • the present embodiment provides a frame type communication device, as shown in FIG. 7, including: a management module 71, a network interface module 72, and a switch module 73; a first port 721 of the network interface module 72 and the switch module 73
  • the second port 731 is physically connected to implement information exchange between the network interface module 72 and the switch module 73.
  • the management module 71 is configured to receive a configuration indication to indicate the network interface module 72 that needs to be configured.
  • the protocol type supported by the first port 721 includes at least two types of protocols; if the protocol type of the second port 731 belongs to a protocol type supported by the first port 721, The port parameter of the first port 721 is configured to match the port parameter of the second port 731.
  • the port on the port can support at least two protocol types, and when physically connected to the port on the network interface module, the switch When the protocol type of the port on the module belongs to the protocol type supported by the port on the network interface module, the management module matches the port parameter of the port on the connected switch module by setting the port parameter of the port on the network interface module.
  • the automatic configuration of the network interface module function is realized, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a blade server. , hard disk, CD, USB flash drive, etc., FLASH (flash), NVRAM (Non-Volatile Random Access Memory), etc. of switches, routers, gateways, etc., including several instructions to make a communication
  • the device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

A port configuration method, device and frame-type communication apparatus for a network interface module are provided in embodiments of the present invention. The present invention relates to the technical field of network communications, and solves the problems of error prone and high cost caused by manual operations when the network interface module is configured in prior art. In embodiments of the present invention, the network interface module of a functional integration type is used, and at least two protocol types can be supported by the port on the network integration module. When the protocol type of the port on a switch module physically connected to the port on the network interface module belongs to the protocol types supported by the port on the network interface module, the parameters of the port on the network interface module are set to match the parameters of the port on the connected switch module, thus realizing the automatic configuration of the network interface module and reducing the maintenance costs and device costs when network interface modules of different functions are replaced.

Description

网^^口模块的端口配置方法、 装置及框式通信设备 技术领域  Port configuration method, device and frame type communication device of network ^^ port module
本发明涉及网络通信技术领域, 尤其涉及网络接口模块的端口配置方 法、 装置及框式通信设备。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a port configuration method, a device, and a frame type communication device of a network interface module. Background technique
现有的框式通信设备(例如交换机、 路由器、 刀片服务器、 网关等) 中具有至少一个业务插槽及至少一个交换插槽。 业务插槽中设置有业务 板, 用于根据框式通信设备的类型来执行特定业务的处理。 例如: 路由器 和交换机的业务板, 有的是处理路由协议运算, 有的是做协议转换、 封装 /解封装, 有的做流量控制等; 网关的业务板, 有的是做信令处理, 有的做 语音分析等。 交换插槽中设置有交换板, 用于将业务板之间的信息交互进 行集中式转发和交换。  Existing framed communication devices (eg, switches, routers, blade servers, gateways, etc.) have at least one service slot and at least one switch slot. A service board is provided in the service slot for performing processing of a specific service according to the type of the frame type communication device. For example: the service boards of routers and switches, some of which deal with routing protocol operations, some for protocol conversion, encapsulation/decapsulation, and some for traffic control; gateway service boards, some for signaling processing, and some for voice analysis. A switchboard is provided in the switch slot for centralized forwarding and exchange of information between service boards.
业务板与交换板之间的信息交互, 是通过业务板上的网络接口模块与 交换板上的交换模块进行信息交互来完成的。 网络接口模块和交换模块分 别是业务板和交换板上的功能实体。其中, 网络接口模块可以是一个芯片、 芯片的物理端口, 或者是一个子卡; 交换模块可以是一个芯片、 多个芯片 组成的阵列, 或者是一个子卡。  The information exchange between the service board and the switch board is performed by the information exchange between the network interface module on the service board and the switch module on the switch board. The network interface module and the switch module are functional entities on the service board and the switch board, respectively. The network interface module may be a chip, a physical port of the chip, or a daughter card; the switch module may be a chip, an array of multiple chips, or a daughter card.
图 la为业务板上网络接口模块与交换板上交换模块连接的示意图。 图 la中, 交换板 11上的交换模块 111通过两条链路分别连接业务板 13 和业务板 14上的网络接口模块 ( 131及 141 ) ; 交换板 12上的交换模块 121通过两条链路分别连接业务板 13和业务板 14上的网络接口模块( 131 及 141 ) 。 链路两端的模块的功能类型必须是——对应的, 功能类型指所 传送数据的协议类型, 例如 Ethernet (以太网) 、 FC ( Fiber Channel, 光 纤通道) 、 PCIE ( PCI-Express , 总线接口 ) 、 SAS ( Serial Attached SCSI, 串行连接小型计算机***接口)等。 如果交换模块为以太网交换机, 则与 其连接的可以为以太网卡, 以保证链路两端的协议是相同的。 Figure la is a schematic diagram of the connection between the network interface module on the service board and the switch module on the switch board. In Figure la, the switch module 111 on the switch board 11 is connected to the network interface modules (131 and 141) on the service board 13 and the service board 14 through two links; the switch module 121 on the switch board 12 passes through two links. The network interface modules (131 and 141) on the service board 13 and the service board 14 are respectively connected. The function type of the modules at both ends of the link must be - corresponding, the function type refers to the protocol type of the transmitted data, such as Ethernet (Ethernet), FC (Fiber Channel, Fibre Channel), PCIE (PCI-Express, bus interface) , SAS (Serial Attached SCSI, Serial Attached Small Computer System Interface), etc. If the switch module is an Ethernet switch, then It can be connected to an Ethernet card to ensure that the protocols at both ends of the link are the same.
出于冗余备份或者业务流量负荷分担作用考虑, 框式通信设备中相同 功能的交换模块通常配置有两个, 如图 la所示, 交换模块 111与交换模 块 121中任意一个作为主用模块, 而另一个则为该主用模块的冗余模块或 备用模块。 这两个交换模块都支持第一功能, 与它们连接的网络接口模块 131及网络接口模块 141也必须为支持第一功能的网络接口模块。  For the purpose of redundancy backup or service traffic load sharing, the switch module of the same function in the frame communication device is usually configured with two. As shown in FIG. 1a, any one of the switch module 111 and the switch module 121 serves as the main module. The other is the redundancy module or the standby module of the main module. Both switch modules support the first function, and the network interface module 131 and the network interface module 141 connected to them must also be network interface modules supporting the first function.
如果由于设备功能的需要, 要将交换板 11与交换板 12分别更换为支 持第二功能的交换板 15与交换板 16, 如图 lb所示, 则根据上面描述的链 路两端的模块的功能类型必须是——对应的,与两个交换模块( 151及 161 ) 连接的网络接口模块必须更换为支持第二功能的网络接口模块 ( 171 及 181 ) 。  If the switch board 11 and the switch board 12 are replaced with the switch board 15 and the switch board 16 that support the second function, as shown in FIG. 1b, the functions of the modules at both ends of the link are described above. The type must be - correspondingly, the network interface module connected to the two switching modules (151 and 161) must be replaced with a network interface module (171 and 181) that supports the second function.
如果网络接口模块以固定连接的方式设置在业务板上时, 更换网络接 口模块的功能也就是更换业务板(如图 lb 中, 将业务板 13及业务板 14 分别更换为业务板 17及业务板 18 ) , 当连接被更换的交换模块的业务板 个数较多时, 手工更换不仅容易出错, 还增加了框式通信设备的成本。 当 业务板上同时设置有多个功能不同的网络接口模块, 以分别连接设备中多 种功能的交换模块时, 定制该业务板的成本较高, 更换业务板会导致框式 通信设备的成本增加得更多。  If the network interface module is installed on the service board in a fixed connection mode, the function of replacing the network interface module is to replace the service board. As shown in Figure lb, replace the service board 13 and the service board 14 with the service board 17 and the service board. 18) When the number of service boards connected to the replaced switch module is large, manual replacement is not only error-prone, but also increases the cost of the frame communication device. When the service board is configured with multiple network interface modules with different functions to connect to the switch modules of multiple functions in the device, the cost of customizing the service board is high. The replacement of the service board causes the cost of the frame communication device to increase. Got more.
如果网络接口模块以可拔插的扣板(或子卡)的方式设置在业务板上 时, 虽然不需要更换业务板, 但更换网络接口模块时一样需要手工操作, 也存在上述容易出错及成本高的问题, 而且扣板或子卡的连接方式使链路 经过了较多的连接器, 引入了很多干扰和噪声, 对设备的稳定性和高速信 号的信号完整性造成不利影响。 发明内容  If the network interface module is installed on the service board in the form of a pluggable daughter card (or daughter card), although the service board does not need to be replaced, the manual operation is required when the network interface module is replaced. The above-mentioned error-prone and cost are also present. The high problem, and the way the gusset or daughter card is connected, causes the link to pass through more connectors, introducing a lot of interference and noise, which adversely affects the stability of the device and the signal integrity of the high-speed signal. Summary of the invention
本发明的实施例提供一种网络接口模块的端口配置方法、 装置及框式 通信设备, 用于解决现有技术存在着的更换不同功能的网络接口模块时维 护成本以及设备成本高的问题。 An embodiment of the present invention provides a port configuration method, a device, and a frame type communication device of a network interface module, which are used to solve the problem of replacing a network interface module with different functions existing in the prior art. The cost of protection and the high cost of equipment.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一种网络接口模块的端口配置方法, 包括: 接收配置指示, 以指示需 要进行配置的网络接口模块的第一端口; 获取所述第一端口所支持的协议 类型, 并获取与所述第一端口物理连接的第二端口的协议类型, 所述第二 端口位于交换模块上, 且所述第一端口所支持的协议类型包括至少两种协 议类型; 如果所述第二端口的协议类型属于所述第一端口所支持的协议类 型, 则将所述第一端口的端口参数配置为与所述第二端口的端口参数相匹 配。  A port configuration method for a network interface module, comprising: receiving a configuration indication to indicate a first port of a network interface module that needs to be configured; acquiring a protocol type supported by the first port, and acquiring the first port a protocol type of the second port of the physical connection, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; if the protocol type of the second port belongs to the The protocol type supported by the first port configures the port parameter of the first port to match the port parameter of the second port.
一种网络接口模块的端口配置装置, 包括: 接收单元, 用于接收配置 指示, 以指示需要进行配置的网络接口模块的第一端口; 获取单元, 用于 获取所述第一端口所支持的协议类型, 并获取与所述第一端口物理连接的 第二端口的协议类型, 所述第二端口位于交换模块上, 且所述第一端口所 支持的协议类型包括至少两种协议类型; 配置单元, 用于当所述第二端口 的协议类型属于所述第一端口所支持的协议类型时, 将所述第一端口的端 口参数配置为与所述第二端口的端口参数相匹配。  A port configuration device of a network interface module, comprising: a receiving unit, configured to receive a configuration indication, to indicate a first port of a network interface module that needs to be configured; and an acquiring unit, configured to acquire a protocol supported by the first port Type, and obtain a protocol type of the second port that is physically connected to the first port, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; And configured to: when the protocol type of the second port belongs to a protocol type supported by the first port, configure a port parameter of the first port to match a port parameter of the second port.
一种框式通信设备, 包括: 管理模块、 网络接口模块及交换模块; 所 述网络接口模块的第一端口与所述交换模块的第二端口物理连接, 以实现 所述网络接口模块与所述交换模块间的信息交互; 所述管理模块, 用于接 收配置指示, 以指示需要进行配置的所述网络接口模块的第一端口; 获取 所述第一端口所支持的协议类型, 并获取与所述第一端口物理连接的所述 第二端口的协议类型, 所述第二端口位于所述交换模块上, 且所述第一端 口所支持的协议类型包括至少两种协议类型; 如果所述第二端口的协议类 型属于所述第一端口所支持的协议类型, 则将所述第一端口的端口参数配 置为与所述第二端口的端口参数相匹配。  A frame type communication device, comprising: a management module, a network interface module, and a switch module; a first port of the network interface module is physically connected to a second port of the switch module, to implement the network interface module and the The information exchange between the switching modules; the management module, configured to receive a configuration indication, to indicate a first port of the network interface module that needs to be configured; obtain a protocol type supported by the first port, and obtain a protocol a protocol type of the second port physically connected to the first port, where the second port is located on the switching module, and the protocol type supported by the first port includes at least two protocol types; The protocol type of the second port belongs to the protocol type supported by the first port, and the port parameter of the first port is configured to match the port parameter of the second port.
本发明实施例提供的网络接口模块的端口配置方法、 装置及框式通信 设备中, 由于采用了功能融合型的网络接口模块, 其上的端口能支持至少 两种协议类型, 且当与该网络接口模块上端口物理连接的、 交换模块上的 端口的协议类型, 属于该网络接口模块上端口所支持的协议类型时, 通过 设置该网络接口模块上端口的端口参数, 使其与相连的交换模块上端口的 端口参数相匹配, 实现了网络接口模块功能的自动配置, 从而降低了更换 不同功能的网络接口模块时的维护成本和设备成本。 附图说明 In the port configuration method, device, and frame communication device of the network interface module provided by the embodiment of the present invention, since the function fusion type network interface module is adopted, the port on the port can support at least Two types of protocols, and when the protocol type of the port on the switch module physically connected to the port on the network interface module belongs to the protocol type supported by the port on the network interface module, by setting the port on the network interface module The port parameter is matched with the port parameters of the port on the connected switch module, which realizes the automatic configuration of the network interface module function, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions. 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 embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description It is merely some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图 l a、 图 lb为现有技术中, 业务板上网络接口模块与交换板上交换 模块连接的示意图;  Figure l a, Figure lb is a schematic diagram of a network interface module on a service board and a switch module on a switch board in the prior art;
图 2为本发明实施例 1提供的一种网络接口模块的端口配置方法的流 程图;  2 is a flow chart of a port configuration method of a network interface module according to Embodiment 1 of the present invention;
图 3为本发明实施例 1提供的另一种网络接口模块的端口配置方法的 示意图;  3 is a schematic diagram of a port configuration method of another network interface module according to Embodiment 1 of the present invention;
图 4为本发明实施例 1提供的又一种网络接口模块的端口配置方法的 示意图;  4 is a schematic diagram of another port configuration method of a network interface module according to Embodiment 1 of the present invention;
图 5为本发明实施例 1提供的再一种网络接口模块的端口配置方法的 示意图;  FIG. 5 is a schematic diagram of a port configuration method of another network interface module according to Embodiment 1 of the present invention; FIG.
图 6为本发明实施例 2提供的一种网络接口模块的端口配置装置的方 框图;  6 is a block diagram of a port configuration apparatus of a network interface module according to Embodiment 2 of the present invention;
图 7为本发明实施例 3提供的一种框式通信设备的方框图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动的前提下所获得的所有其他实施例, 都属于本发明保护 的范围。 FIG. 7 is a block diagram of a frame type communication device according to Embodiment 3 of the present invention. detailed description The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例 1  Example 1
本实施例提供一种网络接口模块的端口配置方法, 该方法的执行主体 为管理模块, 用于对框式通信设备的整个***做设备管理, 包括配置、 软 件加载、 日志管理、 环境监控等, 其物理实体可以是一块独立的单板, 也 可以是拼合在别的单板(业务板或交换板)上的一个独立的功能模块(如 芯片、 芯片组或芯片内的部分电路) , 如图 2所示, 该配置方法包括如下 步骤。  The embodiment provides a method for configuring a port of a network interface module. The execution entity of the method is a management module, which is used to perform device management on the entire system of the frame communication device, including configuration, software loading, log management, and environment monitoring. The physical entity can be a separate board or a separate function module (such as a chip, chipset, or part of a chip) that is placed on another board (service board or switch board). As shown in 2, the configuration method includes the following steps.
201、 接收配置指示, 以指示需要进行配置的网络接口模块的第一端 口。  201. Receive a configuration indication to indicate a first port of the network interface module that needs to be configured.
具体地, 配置指示用于触发管理模块对网络接口模块的端口配置操 作, 配置指示可以是框式通信设备中的硬件(交换板或业务板)复位后产 生的电信号, 例如: 交换插槽上更换或添加具有新功能的交换板时, 交换 板***交换插槽就会复位, 从而产生配置指示。  Specifically, the configuration indication is used to trigger a port configuration operation of the management module to the network interface module, and the configuration indication may be an electrical signal generated after the hardware (switch board or service board) in the frame communication device is reset, for example: on the switch slot When a switch board with a new function is replaced or added, the switch board is inserted into the swap slot and reset, resulting in a configuration indication.
配置指示还可以是业务板复位时产生的配置指示, 该复位包括业务板 上电时的复位, 或者故障时由管理模块控制的被动复位, 上述交换板的复 位也包括上电复位及被动复位; 配置指示还可以是所述业务板及所述交换 板所属的框式通信设备上电时复位产生的配置指示, 或是其它触发网络接 口模块配置操作的指示, 如用户通过软件接口向管理模块发起的配置指 示。  The configuration indication may also be a configuration indication generated when the service board is reset. The reset includes a reset when the service is powered on, or a passive reset controlled by the management module when the fault occurs. The reset of the switch board also includes a power-on reset and a passive reset. The configuration indication may also be a configuration indication generated by the resetting of the service board and the frame communication device to which the switch board belongs, or other indications that trigger the configuration operation of the network interface module, such as the user launching to the management module through the software interface. Configuration instructions.
管理模块接收到该配置指示后, 能确定需要进行配置的网络接口模块 的第一端口, 此处的 "第一 "并不是对网络接口模块上端口位置和数量的限 制, 而是为了在名称上与下述的交换模块上的端口相区别。 例如, 当接收 到交换板复位产生的配置指示后, 管理模块能根据交换板及业务板之间的 端口的固有连接关系, 确定与该交换板上交换模块的各端口连接的各网络 接口模块上的端口, 从而将这些网络接口模块上的端口确定为需要进行配 置的网络接口模块的第一端口。 当收到业务板复位时产生的配置指示后, 能确定该业务板上的网络接口模块的所有端口为需要进行配置的网络接 口模块的第一端口。 当收到框式通信设备上电时复位产生的配置指示后, 能确定设备上所有业务板上的网络接口模块的所有端口为需要进行配置 的网络接口模块的第一端口。 After receiving the configuration indication, the management module can determine the first port of the network interface module that needs to be configured. The "first" here is not a limitation on the port location and number on the network interface module, but in order to be on the name. It is different from the port on the switch module described below. For example, when receiving After the configuration of the switch is reset, the management module can determine the ports on the network interface modules connected to the ports of the switch module on the switch board according to the inherent connection relationship between the switch board and the service board. The ports on these network interface modules are determined to be the first ports of the network interface modules that need to be configured. After receiving the configuration indication generated when the service board is reset, it can be determined that all ports of the network interface module on the service board are the first ports of the network interface module that need to be configured. After receiving the configuration indication generated by the reset of the frame communication device, it can be determined that all ports of the network interface module on all service boards on the device are the first ports of the network interface module that need to be configured.
202、 获取所述第一端口所支持的协议类型, 并获取与所述第一端口 物理连接的第二端口的协议类型, 所述第二端口位于交换模块上, 且所述 第一端口所支持的协议类型包括至少两种协议类型。  202. Obtain a protocol type supported by the first port, and obtain a protocol type of a second port that is physically connected to the first port, where the second port is located on a switching module, and the first port supports The protocol type includes at least two protocol types.
具体地, 本实施例采用了与现有技术不同的网络接口模块, 该网络接 口模块是一种功能融合型的模块, 它的端口所支持的协议类型包括至少两 种协议类型。 例如 Ethernet, FC、 PCIE、 SAS等。 本步骤中, 管理模块会 获取网络接口模块上第一端口所支持的协议类型, 并获取与所述第一端口 物理连接的、 位于交换模块上的第二端口的协议类型。  Specifically, the embodiment adopts a network interface module different from the prior art. The network interface module is a function-integrated module, and the protocol types supported by the port include at least two protocol types. For example, Ethernet, FC, PCIE, SAS, etc. In this step, the management module obtains the protocol type supported by the first port on the network interface module, and obtains the protocol type of the second port located on the switch module that is physically connected to the first port.
203、 如果所述第二端口的协议类型属于所述第一端口所支持的协议 类型, 则将所述第一端口的端口参数配置为与所述第二端口的端口参数相 匹配。  203. If the protocol type of the second port belongs to a protocol type supported by the first port, configure a port parameter of the first port to match a port parameter of the second port.
具体地, 网络接口模块的第一端口与交换模块的第二端口物理连接, 从而在第一端口与第二端口间形成链路, 该链路两端的端口进行通信时, 必须具有相互匹配的端口参数, 其中包括具有相同的协议类型以及与该协 议类型相关的其它参数, 因此, 当第二端口的协议类型属于第一端口所支 持的协议类型时, 即第一端口支持第二端口上已配置好的协议类型时, 管 理模块将第一端口的端口参数配置为与第二端口的端口参数相匹配, 使得 链路两端的端口能正常通信。  Specifically, the first port of the network interface module is physically connected to the second port of the switch module, so that a link is formed between the first port and the second port, and the ports at both ends of the link must have matching ports when communicating. The parameter includes the same protocol type and other parameters related to the protocol type. Therefore, when the protocol type of the second port belongs to the protocol type supported by the first port, that is, the first port supports the configured on the second port. When a good protocol type is used, the management module configures the port parameters of the first port to match the port parameters of the second port, so that the ports at both ends of the link can communicate normally.
本实施例中, 由于采用了功能融合型的网络接口模块, 其上的端口能 支持至少两种协议类型, 且当与该网络接口模块上端口物理连接的、 交换 模块上的端口的协议类型, 属于该网络接口模块上端口的协议类型时, 管 理模块通过设置该网络接口模块上端口的端口参数, 使其与相连的交换模 块上端口的端口参数相匹配, 实现了网络接口模块功能的自动配置, 从而 降低更换不同功能的网络接口模块时的维护成本和设备成本。 In this embodiment, since the function fusion type network interface module is adopted, the port on the port can Supporting at least two types of protocols, and when the protocol type of the port on the switch module physically connected to the port on the network interface module belongs to the protocol type of the port on the network interface module, the management module is configured by setting the network interface module The port parameters of the port are matched with the port parameters of the port on the connected switch module, which implements the automatic configuration of the network interface module function, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions.
上述网络接口模块的端口配置方法中还可包括如下步骤。  The port configuration method of the foregoing network interface module may further include the following steps.
204、 如果所述第二端口的协议类型不属于所述第一端口所支持的协 议类型, 则生成错误信息, 以通知用户无法对所述第一端口的端口参数进 行配置。  204. If the protocol type of the second port does not belong to a protocol type supported by the first port, generate an error message to notify the user that the port parameter of the first port cannot be configured.
具体地, 错误信息可通过可视的方式通知用户无法对所述第一端口的 端口参数进行配置, 例如, 使报警灯闪烁或将错误信息显示在与框式通信 设备连接的显示器上, 或是以本领域技术人员所知的其它方式通知用户无 法对所述第一端口的端口参数进行配置。  Specifically, the error information may visually notify the user that the port parameters of the first port cannot be configured, for example, blinking the alarm light or displaying the error information on the display connected to the frame communication device, or The user is notified in other ways known to those skilled in the art that the port parameters of the first port cannot be configured.
上述的端口参数可包括端口模式及链路参数, 其中端口模式就是端口 的协议类型, 链路参数可包括与该协议类型相关的物理端口的驱动能力、 预加重、 均衡等, 链路参数具体包含的内容会根据端口的物理连接方式的 变化而变化。 由于网络接口模块所属的业务板在框式通信设备中的物理位 置 (插槽的位置) 不同, 因此, 网络接口模块上端口与交换模块上端口间 的链路长度也不同, 使得不同网络接口模块上端口的链路参数值也不同。  The port parameters may include a port mode and a link parameter, where the port mode is a protocol type of the port, and the link parameter may include a driving capability, a pre-emphasis, an equalization, and the like of the physical port related to the protocol type, and the link parameter specifically includes The content will change depending on how the port is physically connected. Because the physical location (slot location) of the service board to which the network interface module belongs is different in the frame communication device, the link length between the port on the network interface module and the port on the switch module is different, so that different network interface modules are different. The link parameter values of the upper port are also different.
因此, 所述将所述第一端口的端口参数配置为与所述第二端口的端口 参数相匹配, 这个步骤可具体包括: 使所述第一端口的端口模式与所述第 二端口的端口模式相同; 根据所述第一端口与所述第二端口之间链路的长 度, 为所述第一端口配置相应的链路参数。  Therefore, the step of configuring the port parameter of the first port to match the port parameter of the second port, the step may specifically include: making a port mode of the first port and a port of the second port The mode is the same; the corresponding port parameter is configured for the first port according to the length of the link between the first port and the second port.
通过上述步骤能使端口参数配置更合理, 更能满足网络接口模块的实 际需求。  Through the above steps, the port parameter configuration can be more reasonable, and the actual requirements of the network interface module can be better met.
上述网络接口模块的端口配置方法中, 管理模块获取网络接口模块上 第一端口所支持的协议类型的方式有两种: 第一种是网络接口模块主动向 管理模块上报其所支持的协议类型, 例如在其所属的业务板复位完成时主 动向管理模块上报其所支持的协议类型, 第二种是管理模块发命令, 指示 网络接口模块上报其所支持的协议类型。 In the port configuration method of the network interface module, the management module obtains the protocol types supported by the first port on the network interface module in two ways: The first one is that the network interface module actively The management module reports the type of the protocol it supports. For example, when the service board to which the service board belongs is reset, the management module reports the type of the protocol it supports. The second type is the management module sends a command to instruct the network interface module to report the supported version. agreement type.
第二种方式具体的实现步骤可包括: 向所述网络接口模块下发第一请 求消息, 然后接收所述网络接口模块发送的第一响应消息, 其中包括所述 网络接口模块上所述第一端口所支持的协议类型。  The specific implementation step of the second mode may include: sending a first request message to the network interface module, and then receiving a first response message sent by the network interface module, where the first The type of protocol supported by the port.
另外, 管理模块获取交换模块上第二端口的协议类型的方式类似的也 有两种: 第一种是交换模块主动向管理模块上报其协议类型, 例如在其所 属的交换板复位完成时主动向管理模块上报其协议类型, 第二种是管理模 块发命令, 指示交换模块上报其协议类型。  In addition, the management module obtains the protocol type of the second port on the switch module in the same manner. The first type is that the switch module actively reports the protocol type to the management module, for example, when the switch board to which the switch belongs is actively managed. The module reports its protocol type, and the second is that the management module sends a command to instruct the switch module to report its protocol type.
第二种方式具体的实现步骤可包括: 向所述交换模块下发第二请求消 息, 然后接收所述交换模块发送的第二响应消息, 其中包括所述交换模块 上所述第二端口的协议类型。 下面举例对网络接口模块的端口配置方法进行详细说明。  The specific implementation step of the second mode may include: sending a second request message to the switching module, and then receiving a second response message sent by the switching module, where the protocol of the second port on the switching module is included Types of. The following describes the port configuration method of the network interface module in detail.
示例 1  Example 1
刀片服务器是一种框式通信设备, 如图 3所示, 其中包括: 服务器板 31 (业务板 ) 及交换板 32及管理模块 33 , 管理模块 33与服务器板 31及 交换板 32 连接。 服务器板 31 上包括处理器 311、 基板管理控制器 312 ( Baseboard Management Controller , 筒称为: BMC ) 及网卡控制器 313 , 其中, 网卡控制器 313作为网络接口模块, 交换板 32上的交换平面 321 (芯片 )作为交换模块, 网卡控制器 313的第一端口 3131通过链路与交 换芯片 321的第二端口 3211连接。本例中的网卡控制器支持 Ethernet、FC、 FCoE ( Fibre Channel over Ethernet , 以太网光纤通道)接口协议, 交换芯 片的协议类型为 FC协议。 当然, 此处描述的网卡控制器支持的协议类型 及交换芯片的协议类型并不是对网卡控制器及交换芯片功能的限制, 网卡 控制器、 交换芯片还可以支持 PCIE、 SAS等协议类型。 在刀片服务器上电时复位产生配置指示, 管理模块 33 收到该配置指 示会读取交换板 32上交换芯片 321和服务器板 31上网卡控制器 313的信 息, 包括支持的功能和端口的协议类型或端口支持的协议类型等。 服务器 板自身复位, 或者交换板自身复位, 管理模块也会收到配置指示并重新获 取它们的信息。 The blade server is a type of frame communication device. As shown in FIG. 3, the server includes a server board 31 (service board) and a switch board 32 and a management module 33. The management module 33 is connected to the server board 31 and the switch board 32. The server board 31 includes a processor 311, a baseboard management controller 312 (baseboard management controller, BMC), and a network card controller 313. The network card controller 313 functions as a network interface module, and the switching plane 321 on the switch board 32. (Chip) As a switching module, the first port 3131 of the network card controller 313 is connected to the second port 3211 of the switch chip 321 via a link. The NIC controller in this example supports Ethernet, FC, and FCoE (Fibre Channel over Ethernet) interface protocols. The protocol type of the switch chip is FC. Of course, the type of protocol supported by the network card controller and the protocol type of the switch chip described herein are not limitations on the functions of the network card controller and the switch chip. The network card controller and the switch chip can also support protocol types such as PCIE and SAS. When the blade server is powered on, the reset generates a configuration indication, and the management module 33 receives the configuration indication to read the information of the switch chip 321 and the server board 31 network card controller 313 on the switch board 32, including the supported functions and the protocol type of the port. Or the type of protocol supported by the port, etc. The server board resets itself, or the switch board itself resets, and the management module also receives configuration instructions and reacquires their information.
管理模块 33获取到交换芯片 321的第二端口 3211的协议类型是 FC 协议, 而且获取到网卡控制器 313的第一端口 3131支持 Ethernet, FC、 FCoE接口协议, 由于第二端口 3211的协议类型 (FC协议) 属于第一端 口 3131所支持的协议类型, 因此网卡控制器 313可以与交换芯片 321建 立 FC连接。  The protocol type of the second port 3211 of the switch chip 321 is obtained by the management module 33, and the first port 3131 of the network card controller 313 is supported by the Ethernet, FC, FCoE interface protocol, because of the protocol type of the second port 3211 ( The FC protocol belongs to the protocol type supported by the first port 3131, so the network card controller 313 can establish an FC connection with the switch chip 321.
管理模块 33把网卡控制器 313的端口模式(FC协议模式)和链路参 数等参数, 下发到网卡控制器 313 , 如果与交换板连接的业务板有多个, 管理模块 33则把网络接口模块的端口模式( FC协议模式 )和链路参数等 参数分别下发到各个网络接口模块。 由于各业务板在刀片服务器中的物理 位置(插槽的位置) 不一样, 所以连接至交换芯片 321的不同的业务板上 的网络接口模块虽然端口模式都是 FC协议模式, 但相关的链路参数(例 如 SerDes的驱动能力、 预加重、 均衡等)会存在不同, 管理模块 33需要 根据不同位置的网络接口模块下发不同的链路参数。  The management module 33 sends the parameters of the port mode (FC protocol mode) and the link parameters of the network card controller 313 to the network card controller 313. If there are multiple service boards connected to the switch board, the management module 33 sets the network interface. Parameters such as the port mode (FC protocol mode) and link parameters of the module are delivered to each network interface module. Since the physical location (slot location) of the service boards in the blade server is different, the network interface modules connected to the different service boards of the switch chip 321 are in the FC protocol mode, but the related links. The parameters (such as the driving capability of the SerDes, the pre-emphasis, the equalization, etc.) may be different. The management module 33 needs to deliver different link parameters according to the network interface modules of different locations.
服务器板 31的 BMC312接收到管理模块 33下发的端口模式和链路参 数等参数后, 转发给处理器 311 , 处理器 311通过软件接口对网卡控制器 313执行端口配置操作, 把端口模式( FC协议模式 )和链路参数配置到指 定的网卡控制器 313上的第一端口 3131那里。  The BMC 312 of the server board 31 receives the parameters such as the port mode and the link parameters sent by the management module 33, and forwards the parameters to the processor 311. The processor 311 performs a port configuration operation on the network card controller 313 through the software interface, and sets the port mode (FC). The protocol mode) and the link parameters are configured to the first port 3131 on the designated network card controller 313.
网卡控制器 313上第一端口 3131 的端口模式和链路参数配置完后, 重新初始化, 并与交换芯片 321的第二端口 3211建立连接, 实现通信。  After the port mode and the link parameters of the first port 3131 of the network card controller 313 are configured, the interface is re-initialized, and a connection is established with the second port 3211 of the switch chip 321 to implement communication.
上述对网卡控制器 313的端口模式和链路参数的配置可以分为两种情 况:  The above configuration of the port mode and link parameters of the network card controller 313 can be divided into two cases:
网卡控制器 313的端口默认设置为一种协议模式, 例如 Ethernet。 当 管理模块 33下发的端口参数需要将该端口修改为别的端口模式,例如 FC , 则处理器 311对网卡控制器 313执行端口参数的修改, 从而实现端口自动 配置。 The port of the NIC controller 313 is set by default to a protocol mode, such as Ethernet. when The port parameter sent by the management module 33 needs to be modified into another port mode, such as FC, and the processor 311 performs port parameter modification on the network card controller 313 to implement port automatic configuration.
网卡控制器 313的端口不指定默认模式, 每次进行端口配置时, 处理 器 311都需要根据管理模块 33下发的配置信息执行对网卡控制器的端口 参数的修改。 示例 2  The port of the network card controller 313 does not specify a default mode. Each time the port is configured, the processor 311 needs to perform the modification of the port parameters of the network card controller according to the configuration information sent by the management module 33. Example 2
以图 4所示的刀片服务器为例, 图中省略了业务板及交换板, 仅示出 了网络接口模块及交换模块, 一个业务板可包含至少一个网络接口模块, 同样, 一个交换板可包含至少一个交换模块。 图 4中, 刀片服务器上设置 有一个交换模块 41 , 其支持 FC和 FCoE两种协议, 交换模块 41上的端口 411为 FC协议模式,端口 412为 FCoE协议模式。 当然交换模块 41的个数 不限于图 4所示的一个, 可以为多个。 刀片服务器上还设置有两个网络接 口模块(42和 43 ) , 都支持 FC、 FCoE等协议。 当两个网络接口模块(42 和 43 ) 与交换模块 41之间建立图 4所示的连接关系时, 例如网络接口模 块(42和 43 )所属的业务板***与交换模块 41上各端口对应连接的业务 插槽。 则两个网络接口模块(42和 43 ) 所属的业务板产生配置指示。 当 然交换模块 41、 网络接口模块( 42和 43 )及管理模块 44的个数不限于图 4所示的个数, 可以为更多。  Taking the blade server shown in FIG. 4 as an example, the service board and the switch board are omitted in the figure, only the network interface module and the switch module are shown, and one service board can include at least one network interface module. Similarly, one switch board can include At least one switch module. In Figure 4, a switch module 41 is provided on the blade server, which supports both FC and FCoE protocols. Port 411 on switch module 41 is in FC protocol mode and port 412 is in FCoE protocol mode. Of course, the number of the switching modules 41 is not limited to one shown in FIG. 4, and may be plural. There are also two network interface modules (42 and 43) on the blade server, all supporting protocols such as FC and FCoE. When the connection relationship between the two network interface modules (42 and 43) and the switch module 41 is established, for example, the service board to which the network interface modules (42 and 43) belong is inserted and connected to each port on the switch module 41. Business slot. Then, the service boards to which the two network interface modules (42 and 43) belong generate configuration instructions. The number of the switching module 41, the network interface modules (42 and 43), and the management module 44 is not limited to the number shown in Fig. 4, and may be more.
管理模块 44收到配置指示, 能确定两个网络接口模块(42和 43 )上 的端口需要进行配置。接下来, 管理模块 44会获取两个网络接口模块(42 和 43 )上端口所支持的协议类型, 并获取与该端口物理连接的、 位于交换 模块上端口的协议类型。  The management module 44 receives the configuration indication and can determine that the ports on the two network interface modules (42 and 43) need to be configured. Next, the management module 44 obtains the protocol types supported by the ports on the two network interface modules (42 and 43), and obtains the protocol type of the port on the switch module that is physically connected to the port.
随后, 根据交换模块 41 上各端口的协议类型, 为网络接口模块 ( 42 和 43 )上相应的端口配置端口参数,使得交换模块 41与网络接口模块( 42 和 43 ) 间链路两端的端口的端口参数相匹配, 即交换模块 41与网络接口 模块 42间链路两端的端口连接使用 FC协议, 交换模块 41与网络接口模 块 43间链路两端的端口连接使用 FCoE协议。 网络接口模块 ( 42和 43 ) 的端口参数配置流程与示例 1相似, 在此不再赘述。 Then, according to the protocol type of each port on the switch module 41, port parameters are configured for the corresponding ports on the network interface modules (42 and 43), so that the ports at both ends of the link between the switch module 41 and the network interface modules (42 and 43) The port parameters match, that is, the switch module 41 and the network interface The port connection between the two ends of the link between the modules 42 uses the FC protocol, and the ports on both ends of the link between the switch module 41 and the network interface module 43 use the FCoE protocol. The port parameter configuration process of the network interface modules (42 and 43) is similar to that of the example 1 and will not be described here.
示例 3 Example 3
以图 5所示的刀片服务器为例, 图中省略了业务板及交换板, 仅示出 了网络接口模块及交换模块, 一个业务板可包含至少一个网络接口模块, 同样, 一个交换板可包含至少一个交换模块。 图 5中, 刀片服务器上设置 有四个交换模块(51 -54) , 其中, 交换模块 52为交换模块 51的冗余模 块, 功能与交换模块 51相同使用 FC协议; 交换模块 54为交换模块 53的 冗余模块, 功能与交换模块 53相同使用 FCoE协议。 刀片服务器上还设置 有两个网络接口模块 ( 55及 56) , 都支持 FC、 FCoE等协议。 当两个网 络接口模块 (55及 56) 与四个交换模块 (51 ~54)之间建立图 5所示的 连接关系时, 例如两个网络接口模块(55及 56) 所属的业务板***与各 交换模块( 51 ~ 54 )的端口对应连接的业务插槽。则两个网络接口模块( 55 及 56)所属的业务板会产生配置指示。 当然交换模块(51 ~54) 、 网络接 口模块(55及 56)及管理模块 57的个数不限于图 5所示的个数, 可以为 更多。  The blade server shown in FIG. 5 is taken as an example. The service board and the switch board are omitted in the figure. Only the network interface module and the switch module are shown. One service board may include at least one network interface module. Similarly, one switch board may include At least one switch module. In FIG. 5, four switch modules (51-54) are provided on the blade server, wherein the switch module 52 is a redundancy module of the switch module 51, and the function is the same as that of the switch module 51; the switch module 54 is a switch module 53. The redundancy module has the same function as the switch module 53 using the FCoE protocol. There are also two network interface modules (55 and 56) on the blade server, all supporting protocols such as FC and FCoE. When the connection relationship between the two network interface modules (55 and 56) and the four switching modules (51 to 54) is established as shown in FIG. 5, for example, the service boards of the two network interface modules (55 and 56) belong to the service board. The ports of each switch module ( 51 ~ 54 ) correspond to the connected service slots. The service boards to which the two network interface modules (55 and 56) belong will generate configuration instructions. Of course, the number of the switching modules (51 to 54), the network interface modules (55 and 56), and the management module 57 is not limited to the number shown in FIG. 5, and may be more.
管理模块 57收到配置指示, 能确定两个网络接口模块(55及 56)上 的端口需要进行配置。接下来, 管理模块 57会获取两个网络接口模块(55 及 56)上端口所支持的协议类型, 并获取与该些端口物理连接的、 位于交 换模块上端口的协议类型。  The management module 57 receives the configuration indication and can determine that the ports on the two network interface modules (55 and 56) need to be configured. Next, the management module 57 obtains the protocol types supported by the ports on the two network interface modules (55 and 56), and obtains the protocol types of the ports on the switching module that are physically connected to the ports.
随后, 根据各交换模块(51 -54)上各端口的协议类型, 为各网络接 口模块 (55及 56) 上相应的端口配置端口参数, 使得各交换模块 (51 ~ 54) 与网络接口模块 (55及 56) 间链路两端的端口的端口参数相匹配, 即交换模块( 51及 52 )与网络接口模块 55间链路两端的端口连接使用 FC 协议, 交换模块( 53及 54 )与网络接口模块 56间链路两端的端口连接使 用 FCoE协议。 网络接口模块 (55及 56 ) 的端口参数配置流程与示例 1 相似, 在此不再赘述。 Then, according to the protocol type of each port on each switch module (51-54), port parameters are configured for the corresponding ports on each network interface module (55 and 56), so that each switch module (51 ~ 54) and the network interface module ( 55 and 56) The port parameters of the ports at both ends of the link match, that is, the ports at both ends of the link between the switch modules (51 and 52) and the network interface module 55 use the FC protocol, and the switch modules (53 and 54) and the network interface Port connections at both ends of the link between modules 56 enable Use the FCoE protocol. The port parameter configuration process of the network interface modules (55 and 56) is similar to that of the example 1 and will not be described here.
实施例 2  Example 2
本实施例提供一种网络接口模块的端口配置装置, 即实施例 1中所说 的管理模块, 其物理实体可以是一块独立的单板, 也可以是拼合在别的单 板(业务板或交换板)上的一个独立的功能模块(如芯片、 芯片组或芯片 内的部分电路) 。 如图 6所示, 该装置包括: 接收单元 61 , 用于接收配置 指示, 以指示需要进行配置的网络接口模块的第一端口; 获取单元 62, 用 于获取所述第一端口所支持的协议类型, 并获取与所述第一端口物理连接 的第二端口的协议类型, 所述第二端口位于交换模块上, 且所述第一端口 所支持的协议类型包括至少两种协议类型; 配置单元 63 , 用于当所述第二 端口的协议类型属于所述第一端口所支持的协议类型时, 将所述第一端口 的端口参数配置为与所述第二端口的端口参数相匹配。  The embodiment of the present invention provides a port configuration device of the network interface module, that is, the management module in the first embodiment, the physical entity of which may be an independent board, or may be split on another board (service board or switch). A separate functional module on the board (such as a chip, chipset or part of the circuit inside the chip). As shown in FIG. 6, the device includes: a receiving unit 61, configured to receive a configuration indication, to indicate a first port of a network interface module that needs to be configured, and an acquiring unit 62, configured to acquire a protocol supported by the first port Type, and obtain a protocol type of the second port that is physically connected to the first port, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; 63. The port parameter of the first port is configured to match a port parameter of the second port, when a protocol type of the second port belongs to a protocol type supported by the first port.
本实施例中, 由于采用了功能融合型的网络接口模块, 其上的端口能 支持至少两种协议类型, 且当与该网络接口模块上端口物理连接的、 交换 模块上的端口的协议类型, 属于该网络接口模块上端口所支持的协议类型 时, 配置单元 63通过设置该网络接口模块上端口的端口参数, 使其与相 连的交换模块上端口的端口参数相匹配, 实现了网络接口模块功能的自动 配置, 从而降低了更换不同功能的网络接口模块时的维护成本和设备成 本。  In this embodiment, since the function fusion type network interface module is adopted, the port on the port can support at least two protocol types, and when the port is physically connected to the port on the network interface module, the protocol type of the port on the switch module, When the protocol type is supported by the port on the network interface module, the configuration unit 63 configures the port parameter of the port on the network interface module to match the port parameter of the port on the connected switch module, thereby implementing the function of the network interface module. Automatic configuration, which reduces maintenance costs and equipment costs when replacing network interface modules with different functions.
上述网络接口模块的端口配置装置还可包括: 报错单元 64, 用于当所 述第二端口的协议类型不属于所述第一端口所支持的协议类型时, 生成错 误信息, 以通知用户无法对所述第一端口的端口参数进行配置。  The port configuration device of the network interface module may further include: an error reporting unit 64, configured to generate an error message when the protocol type of the second port does not belong to a protocol type supported by the first port, to notify the user that the The port parameters of the first port are configured.
所述配置指示可以为: 所述网络接口模块所属的业务板复位时产生的 配置指示、 所述交换模块所属的交换板复位时产生的配置指示、 或所述业 务板及所述交换板所属的框式通信设备上电时复位产生的配置指示。  The configuration indication may be: a configuration indication generated when the service board to which the network interface module belongs is reset, a configuration indication generated when the switch board to which the switch module belongs, or a service board and the switch board belong to The configuration indication generated by the reset of the frame communication device upon power-on.
所述端口参数可包括端口模式及链路参数; 由此, 所述配置单元可包 括: 模式配置子单元, 用于使所述第一端口的端口模式与所述第二端口的 端口模式相同; 参数配置子单元, 根据所述第一端口与所述第二端口之间 链路的长度, 为所述第一端口配置相应的链路参数。 The port parameter may include a port mode and a link parameter; thus, the configuration unit may include The mode configuration subunit is configured to make the port mode of the first port the same as the port mode of the second port; the parameter configuration subunit, according to the link between the first port and the second port The length of the first port is configured with a corresponding link parameter.
另外, 所述获取单元还可用于: 向所述网络接口模块下发第一请求消 息, 然后接收所述网络接口模块发送的第一响应消息, 其中包括所述网络 接口模块上所述第一端口所支持的协议类型。  In addition, the acquiring unit may be further configured to: send a first request message to the network interface module, and then receive a first response message sent by the network interface module, where the first port on the network interface module is included The type of protocol supported.
或者, 还可用于向所述交换模块下发第二请求消息, 然后接收所述交 换模块发送的第二响应消息, 其中包括所述交换模块上所述第二端口的协 议类型。  Alternatively, the method may further be used to send a second request message to the switching module, and then receive a second response message sent by the switching module, where the protocol type of the second port on the switching module is included.
上述各单元所执行的方法已在实施例中做了详细描述, 在此不再赘 述。  The methods performed by the above units have been described in detail in the embodiments and will not be described again.
实施例 3  Example 3
本实施例提供一种框式通信设备, 如图 7所示, 包括: 管理模块 71、 网络接口模块 72及交换模块 73; 所述网络接口模块 72的第一端口 721 与所述交换模块 73的第二端口 731物理连接, 以实现所述网络接口模块 72与所述交换模块 73间的信息交互; 所述管理模块 71 , 用于接收配置指 示, 以指示需要进行配置的所述网络接口模块 72的第一端口 721 ; 获取所 述第一端口 721所支持的协议类型, 并获取与所述第一端口 721物理连接 的所述第二端口 731的协议类型,所述第二端口 731位于所述交换模块 73 上, 且所述第一端口 721所支持的协议类型包括至少两种协议类型; 如果 所述第二端口 731的协议类型属于所述第一端口 721所支持的协议类型, 则将所述第一端口 721的端口参数配置为与所述第二端口 731的端口参数 相匹配。  The present embodiment provides a frame type communication device, as shown in FIG. 7, including: a management module 71, a network interface module 72, and a switch module 73; a first port 721 of the network interface module 72 and the switch module 73 The second port 731 is physically connected to implement information exchange between the network interface module 72 and the switch module 73. The management module 71 is configured to receive a configuration indication to indicate the network interface module 72 that needs to be configured. a first port 721; obtaining a protocol type supported by the first port 721, and acquiring a protocol type of the second port 731 physically connected to the first port 721, where the second port 731 is located On the switch module 73, the protocol type supported by the first port 721 includes at least two types of protocols; if the protocol type of the second port 731 belongs to a protocol type supported by the first port 721, The port parameter of the first port 721 is configured to match the port parameter of the second port 731.
上述各模块所执行的方法已在实施例中做了详细描述, 在此不再赘 述。  The methods performed by the above modules have been described in detail in the embodiments, and will not be described again.
本实施例中, 由于采用了功能融合型的网络接口模块, 其上的端口能 支持至少两种协议类型, 且当与该网络接口模块上端口物理连接的、 交换 模块上的端口的协议类型, 属于该网络接口模块上端口所支持的协议类型 时, 管理模块通过设置该网络接口模块上端口的端口参数, 使其与相连的 交换模块上端口的端口参数相匹配, 实现了网络接口模块功能的自动配 置, 从而降低了更换不同功能的网络接口模块时的维护成本和设备成本。 In this embodiment, since the function-integrated network interface module is adopted, the port on the port can support at least two protocol types, and when physically connected to the port on the network interface module, the switch When the protocol type of the port on the module belongs to the protocol type supported by the port on the network interface module, the management module matches the port parameter of the port on the connected switch module by setting the port parameter of the port on the network interface module. The automatic configuration of the network interface module function is realized, thereby reducing the maintenance cost and equipment cost when replacing the network interface module with different functions.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬 件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式 体现出来,该软件产品存储在可读取的存储介质中,如刀片服务器的软盘、 硬盘、 光盘、 U盘等, 交换机、 路由器、 网关等设备的 FLASH (闪存) 、 NVRAM (非易失性随机访问存储器, Non-Volatile Random Access Memory ) 等, 包括若干指令用以使得一台通信设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a blade server. , hard disk, CD, USB flash drive, etc., FLASH (flash), NVRAM (Non-Volatile Random Access Memory), etc. of switches, routers, gateways, etc., including several instructions to make a communication The device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应以所述权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope of the present invention is All should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权 利 要 求 书 Claim
1、 一种网络接口模块的端口配置方法, 其特征在于, 包括: 接收配置指示, 以指示需要进行配置的网络接口模块的第一端口; 获取所述第一端口所支持的协议类型, 并获取与所述第一端口物理连 接的第二端口的协议类型, 所述第二端口位于交换模块上, 且所述第一端 口所支持的协议类型包括至少两种协议类型; A port configuration method for a network interface module, comprising: receiving a configuration indication to indicate a first port of a network interface module that needs to be configured; acquiring a protocol type supported by the first port, and acquiring a protocol type of the second port that is physically connected to the first port, where the second port is located on the switch module, and the protocol type supported by the first port includes at least two types of protocols;
如果所述第二端口的协议类型属于所述第一端口所支持的协议类型, 则将所述第一端口的端口参数配置为与所述第二端口的端口参数相匹配。  If the protocol type of the second port belongs to a protocol type supported by the first port, configuring a port parameter of the first port to match a port parameter of the second port.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括:  2. The method according to claim 1, further comprising:
如果所述第二端口的协议类型不属于所述第一端口所支持的协议类 型, 则生成错误信息, 以通知用户无法对所述第一端口的端口参数进行配 置。  If the protocol type of the second port does not belong to the protocol type supported by the first port, an error message is generated to notify the user that the port parameter of the first port cannot be configured.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述配置指示为: 所述网络接口模块所属的业务板复位时产生的配置指示、 所述交换模块所 属的交换板复位时产生的配置指示、 或所述业务板及所述交换板所属的框 式通信设备上电时复位产生的配置指示。  The method according to claim 1 or 2, wherein the configuration indication is: a configuration indication generated when the service board to which the network interface module belongs is reset, and a switchboard to which the switch module belongs is reset. The configuration indication, or the configuration indication generated by the service board and the frame communication device to which the switch board belongs is reset upon power-on.
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述端口参数包 括端口模式及链路参数; 所述将所述第一端口的端口参数配置为与所述第 二端口的端口参数相匹配包括:  The method according to claim 1 or 2, wherein the port parameter includes a port mode and a link parameter, and the port parameter of the first port is configured as a port with the second port. The matching of parameters includes:
使所述第一端口的端口模式与所述第二端口的端口模式相同; 根据所述第一端口与所述第二端口之间链路的长度, 为所述第一端口 配置相应的链路参数。  Configuring a port mode of the first port to be the same as a port mode of the second port; configuring a corresponding link for the first port according to a length of a link between the first port and the second port parameter.
5、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取所述第 一端口所支持的协议类型包括: 向所述网络接口模块下发第一请求消息, 然后接收所述网络接口模块发送的第一响应消息, 其中包括所述网络接口 模块上所述第一端口所支持的协议类型。 The method according to claim 1 or 2, wherein the acquiring the protocol type supported by the first port comprises: sending a first request message to the network interface module, and then receiving the network And a first response message sent by the interface module, where the protocol type supported by the first port on the network interface module is included.
6、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取与所述 第一端口物理连接的第二端口的协议类型包括: 向所述交换模块下发第二 请求消息, 然后接收所述交换模块发送的第二响应消息, 其中包括所述交 换模块上所述第二端口的协议类型。 The method according to claim 1 or 2, wherein the acquiring a protocol type of the second port that is physically connected to the first port comprises: sending a second request message to the switching module, and then Receiving a second response message sent by the switching module, where the protocol type of the second port on the switching module is included.
7、 一种网络接口模块的端口配置装置, 其特征在于, 包括: 接收单元, 用于接收配置指示, 以指示需要进行配置的网络接口模块 的第一端口;  A port configuration device for a network interface module, comprising: a receiving unit, configured to receive a configuration indication, to indicate a first port of a network interface module that needs to be configured;
获取单元, 用于获取所述第一端口所支持的协议类型, 并获取与所述 第一端口物理连接的第二端口的协议类型, 所述第二端口位于交换模块 上, 且所述第一端口所支持的协议类型包括至少两种协议类型;  An acquiring unit, configured to acquire a protocol type supported by the first port, and obtain a protocol type of a second port that is physically connected to the first port, where the second port is located on a switching module, and the first The protocol types supported by the port include at least two protocol types;
配置单元, 用于当所述第二端口的协议类型属于所述第一端口所支持 的协议类型时, 将所述第一端口的端口参数配置为与所述第二端口的端口 参数相匹配。  And a configuration unit, configured to: when the protocol type of the second port belongs to a protocol type supported by the first port, configure a port parameter of the first port to match a port parameter of the second port.
8、 根据权利要求 7所述的装置, 其特征在于, 还包括:  8. The device according to claim 7, further comprising:
报错单元, 用于当所述第二端口的协议类型不属于所述第一端口所支持的 协议类型时, 生成错误信息, 以通知用户无法对所述第一端口的端口参数 进行配置。 The error reporting unit is configured to generate an error message when the protocol type of the second port does not belong to the protocol type supported by the first port, to notify the user that the port parameter of the first port cannot be configured.
9、 根据权利要求 7或 8所述的装置, 其特征在于, 所述配置指示为: 所述网络接口模块所属的业务板复位时产生的配置指示、 所述交换模块所 属的交换板复位时产生的配置指示、 或所述业务板及所述交换板所属的框 式通信设备上电时复位产生的配置指示。  The device according to claim 7 or 8, wherein the configuration indication is: a configuration indication generated when the service board to which the network interface module belongs is reset, and a switchboard to which the switch module belongs is reset. The configuration indication, or the configuration indication generated by the service board and the frame communication device to which the switch board belongs is reset upon power-on.
10、 根据权利要求 7或 8所述的装置, 其特征在于, 所述端口参数包 括端口模式及链路参数;  10. The apparatus according to claim 7 or 8, wherein the port parameters include a port mode and a link parameter;
所述配置单元包括:  The configuration unit includes:
模式配置子单元, 用于使所述第一端口的端口模式与所述第二端口的 端口模式相同;  a mode configuration subunit, configured to make a port mode of the first port the same as a port mode of the second port;
参数配置子单元, 根据所述第一端口与所述第二端口之间链路的长 度, 为所述第一端口配置相应的链路参数。 a parameter configuration subunit, according to the length of the link between the first port and the second port Degrees, configuring corresponding link parameters for the first port.
11、 根据权利要求 7或 8所述的装置, 其特征在于, 所述获取单元还 用于: 向所述网络接口模块下发第一请求消息, 然后接收所述网络接口模 块发送的第一响应消息, 其中包括所述网络接口模块上所述第一端口所支 持的协议类型。  The device according to claim 7 or 8, wherein the acquiring unit is further configured to: send a first request message to the network interface module, and then receive a first response sent by the network interface module The message includes a protocol type supported by the first port on the network interface module.
12、 根据权利要求 7或 8所述的装置, 其特征在于, 所述获取单元还 用于: 向所述交换模块下发第二请求消息, 然后接收所述交换模块发送的 第二响应消息, 其中包括所述交换模块上所述第二端口的协议类型。  The device according to claim 7 or 8, wherein the acquiring unit is further configured to: send a second request message to the switching module, and then receive a second response message sent by the switching module, The protocol type of the second port on the switch module is included.
13、 一种框式通信设备, 其特征在于, 包括: 管理模块、 网络接口模 块及交换模块;  A frame type communication device, comprising: a management module, a network interface module, and a switch module;
所述网络接口模块的第一端口与所述交换模块的第二端口物理连接, 以实现所述网络接口模块与所述交换模块间的信息交互;  The first port of the network interface module is physically connected to the second port of the switch module to implement information interaction between the network interface module and the switch module;
所述管理模块, 用于接收配置指示, 以指示需要进行配置的所述网络 接口模块的第一端口; 获取所述第一端口所支持的协议类型, 并获取与所 述第一端口物理连接的所述第二端口的协议类型, 所述第二端口位于所述 交换模块上, 且所述第一端口所支持的协议类型包括至少两种协议类型; 如果所述第二端口的协议类型属于所述第一端口所支持的协议类型, 则将 所述第一端口的端口参数配置为与所述第二端口的端口参数相匹配。  The management module is configured to receive a configuration indication, to indicate a first port of the network interface module that needs to be configured, obtain a protocol type supported by the first port, and obtain a physical connection with the first port. The protocol type of the second port, the second port is located on the switch module, and the protocol type supported by the first port includes at least two protocol types; if the protocol type of the second port belongs to the The protocol type supported by the first port is configured to match the port parameter of the first port to match the port parameter of the second port.
PCT/CN2012/079180 2012-02-16 2012-07-26 Port configuration method, device and frame-type communication apparatus for network interface module WO2013120340A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210035164.9A CN102571450B (en) 2012-02-16 2012-02-16 Port configuration method and device of network interface module and frame communication device
CN201210035164.9 2012-02-16

Publications (1)

Publication Number Publication Date
WO2013120340A1 true WO2013120340A1 (en) 2013-08-22

Family

ID=46415976

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079180 WO2013120340A1 (en) 2012-02-16 2012-07-26 Port configuration method, device and frame-type communication apparatus for network interface module

Country Status (2)

Country Link
CN (1) CN102571450B (en)
WO (1) WO2013120340A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141551A (en) * 2015-06-11 2015-12-09 北京信而泰科技股份有限公司 Exchange board and data processing method thereof
CN114793211A (en) * 2022-06-21 2022-07-26 新华三信息技术有限公司 Service multilink backup method and device based on blade service
CN115086418A (en) * 2022-07-22 2022-09-20 浙江中控技术股份有限公司 Data transmission method, data transmission device and electronic equipment
CN115941465A (en) * 2022-12-02 2023-04-07 京东科技信息技术有限公司 Network card configuration method and device, electronic equipment and computer readable storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571450B (en) * 2012-02-16 2014-11-19 华为技术有限公司 Port configuration method and device of network interface module and frame communication device
CN102882774B (en) * 2012-08-29 2015-05-20 瑞斯康达科技发展股份有限公司 Different-service-type data hybrid transmission method, equipment and module slots
CN103905224B (en) * 2012-12-26 2018-02-27 中国电信股份有限公司 The method and system of Internet resources concentrate tube reason
CN105743686B (en) * 2014-12-12 2019-02-19 中兴通讯股份有限公司 Port attribute inheritance method and device
CN106789168B (en) * 2016-11-28 2020-03-20 华为技术有限公司 Deployment method of data center server management network and rack top type switch
CN108199859A (en) * 2016-12-08 2018-06-22 ***通信集团四川有限公司 A kind of link relationship generation method, device and system
CN109586956B (en) * 2018-11-16 2022-09-02 上海博达数据通信有限公司 FCoE switch capable of flexibly configuring ports and method
CN110636015A (en) * 2019-10-12 2019-12-31 迈普通信技术股份有限公司 Communication system and board card configuration method
CN112511343B (en) * 2020-11-17 2023-03-21 上海金卓科技有限公司 Configuration method, device and equipment of forward interface and storage medium
CN112468418A (en) * 2020-11-23 2021-03-09 盛科网络(苏州)有限公司 Multistage slice edge switching equipment and implementation method thereof
CN112543117A (en) * 2020-11-25 2021-03-23 超越科技股份有限公司 Exchange module configuration method with selectable interface protocol
CN115955396A (en) * 2022-12-07 2023-04-11 篆芯半导体(南京)有限公司 Method, system, equipment and storage medium for generating Ethernet switching network flow

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101171578A (en) * 2005-06-08 2008-04-30 费希尔-罗斯蒙德***公司 Multi-protocol field device interface with automatic bus detection
CN102571450A (en) * 2012-02-16 2012-07-11 华为技术有限公司 Port configuration method and device of network interface module and frame communication device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006083789A2 (en) * 2005-02-02 2006-08-10 Asyst Technologies, Inc. Multi-protocol multi-client equipment server
CN101483529B (en) * 2009-02-13 2011-06-22 北京星网锐捷网络技术有限公司 Modularized switch and operating method thereof
CN101499910B (en) * 2009-03-16 2010-10-27 福建星网锐捷网络有限公司 Modulated switch and communication method thereof
CN102035668B (en) * 2009-09-29 2014-02-26 中兴通讯股份有限公司南京分公司 Method and system for managing switch chips

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101171578A (en) * 2005-06-08 2008-04-30 费希尔-罗斯蒙德***公司 Multi-protocol field device interface with automatic bus detection
CN102571450A (en) * 2012-02-16 2012-07-11 华为技术有限公司 Port configuration method and device of network interface module and frame communication device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141551A (en) * 2015-06-11 2015-12-09 北京信而泰科技股份有限公司 Exchange board and data processing method thereof
CN105141551B (en) * 2015-06-11 2019-04-05 北京信而泰科技股份有限公司 The data processing method of power board and power board
CN114793211A (en) * 2022-06-21 2022-07-26 新华三信息技术有限公司 Service multilink backup method and device based on blade service
CN114793211B (en) * 2022-06-21 2022-11-01 新华三信息技术有限公司 Service multilink backup method and device based on blade service
CN115086418A (en) * 2022-07-22 2022-09-20 浙江中控技术股份有限公司 Data transmission method, data transmission device and electronic equipment
CN115086418B (en) * 2022-07-22 2022-12-27 浙江中控技术股份有限公司 Data transmission method, data transmission device and electronic equipment
CN115941465A (en) * 2022-12-02 2023-04-07 京东科技信息技术有限公司 Network card configuration method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN102571450B (en) 2014-11-19
CN102571450A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
WO2013120340A1 (en) Port configuration method, device and frame-type communication apparatus for network interface module
JP4838400B1 (en) Redundant transit switch solution to detect and manage Fiber Channel over Ethernet (FCOE) switch failures
US10411971B2 (en) Method for unified communication of server, baseboard management controller, and server
TWI534629B (en) Data transmission method and data transmission system
US9703747B2 (en) Remote console access of port extenders using protocol extension
US10284499B2 (en) Dedicated control path architecture for systems of devices
WO2013075511A1 (en) Rack server system
WO2016034074A1 (en) Method, apparatus and system for implementing software-defined networking (sdn)
TWI569134B (en) Storage medium, system and method for storage area network management using serial attached scsi expander
CN101150413B (en) A multi-frame cascading system and method for ATCA knife server
CN104363117A (en) IPMI (intelligent platform management interface) based method for serial port redirection
WO2013097485A1 (en) Disk array, storage system, and method for switching data storage paths
US20200412558A1 (en) Adding network controller sideband interface (nc-si) sideband and management to a high power consumption device
US20210286747A1 (en) Systems and methods for supporting inter-chassis manageability of nvme over fabrics based systems
WO2011137806A2 (en) Method, platform device and system for setting service single-board address
CN109672631A (en) High speed power board and control method based on VPX standard
KR20210112231A (en) Methods and apparatuses for peer-to-peer data channels for storage devices
CN115277348A (en) Server management method, server and server management system
KR100848316B1 (en) Method and Apparatus for providing the board status to the main processor by using IPMI messages over the AdvancedTCA system
CN109428821B (en) Server, method for managing routing of mutual backup device and storage medium
CN104933001A (en) Double-controller data communication method based on RapidIO technology
CN109150724A (en) A kind of communication means and network interface card
US11245644B2 (en) Automatic multi-chassis link aggregation configuration
JP2004030584A (en) Method for operating storage device
TWI398066B (en) Distributed power management devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12868886

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12868886

Country of ref document: EP

Kind code of ref document: A1