WO2016192505A1 - Automatic switching method and apparatus for external network port connection type, and subrack management board - Google Patents

Automatic switching method and apparatus for external network port connection type, and subrack management board Download PDF

Info

Publication number
WO2016192505A1
WO2016192505A1 PCT/CN2016/081165 CN2016081165W WO2016192505A1 WO 2016192505 A1 WO2016192505 A1 WO 2016192505A1 CN 2016081165 W CN2016081165 W CN 2016081165W WO 2016192505 A1 WO2016192505 A1 WO 2016192505A1
Authority
WO
WIPO (PCT)
Prior art keywords
network port
external network
type
connection
external
Prior art date
Application number
PCT/CN2016/081165
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 WO2016192505A1 publication Critical patent/WO2016192505A1/en

Links

Images

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
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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

Definitions

  • This document relates to, but is not limited to, the field of communication technology.
  • the application of the multi-subrack cascading of the telecommunication device can improve the efficiency of the management board of the main control board, save costs, and reduce the occupation of the management IP address.
  • the subracks are not numbered repeatedly, and are cascaded in sequence.
  • the boards on the master and slave subracks are managed by the main control board on the main subrack.
  • the connection between the subrack and the U2000 and the connection between the subracks are connected to the outside through the network port on the subrack management board.
  • the main subrack occupies an external IP address and passes through the external virtual local area network (VLAN) and the network management server.
  • VLAN virtual local area network
  • the network port connected between the subracks is communicated through the internal vlan and the internal IP network segment, and the external network ports on the subrack management board need to be multiplexed on these two functions, each port Both may access the network management server or other subrack management boards, as shown in Figure 1.
  • the subrack management board is specially configured in a special way, and must be configured once each time the port attribute is changed, which is very troublesome.
  • the embodiment of the invention provides an automatic switching method and device for an external network port connection type, and a subrack management board, which can automatically determine that the external network port of the subrack management board is connected to the network management server by means of automatic identification and automatic configuration. It is also a sub-rack management board, which avoids the cumbersome manual setting by manual.
  • an automatic cut of an external network port connection type is provided.
  • the method is applied to the first subrack management board, and the method includes:
  • the second external network port is a network port in which the external device is in the connected state
  • the first external network port When the first external network port obtains the device type notification message sent by the second external network port in the preset time period, the first external network port is modified according to the device type notification message. Types of.
  • the method includes:
  • the connection type of the port is the type of connected network management server.
  • the modifying the connection type of the first external network port according to the device type notification message includes:
  • the external device When the device type notification packet carries the subrack management board information, the external device is determined to be the second subrack management board, and the connection type of the first external network port is modified according to the device type notification packet. Connect the subrack type.
  • the method further includes:
  • the device sends a device type notification packet to the second external network port, so that the second external network port receives the device type notification packet, and modifies the connection type of the second external network port.
  • the determining, by the first external network port, the device type notification message sent by the second external network port, in the preset time period includes:
  • the type field is a preset content
  • the device type notification packet sent by the second external network port.
  • the modifying the connection type of the first external network port to connect to the network management server includes:
  • the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
  • the connection type of the first external network port is not modified.
  • the modifying the connection type of the first external network port to the connection subrack type includes:
  • the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
  • connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
  • an automatic switching device for the connection type of the external network port is further provided, which is applied to the first subrack management board, and includes:
  • the monitoring module is configured to monitor the first external network port in the connected state
  • the determining module is configured to determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period; the second external network port is the network in which the external device is in the connected state. mouth;
  • the first modification module is configured to: when the first external network port obtains the device type notification message sent by the second external network port in the preset time period, modify the message according to the device type notification message The type of connection of the first external network port.
  • the second modifying module is configured to: when the first external network port does not obtain the device type notification message sent by the second external network port, the external device is determined to be
  • the network management server modifies the connection type of the first external network port to connect to the network management server type.
  • the first modifying module includes: a modifying unit, configured to: when the device type is When the information about the subrack management board is carried, the connection device is determined to be the second subrack management board, and the connection type of the first external network port is modified according to the device type notification packet.
  • the sending module is configured to periodically send the device type notification message by using the first external network port, so that the second external network port receives the device type notification message, and the second external network is modified.
  • the type of connection for the port is configured to periodically send the device type notification message by using the first external network port, so that the second external network port receives the device type notification message, and the second external network is modified. The type of connection for the port.
  • the determining module includes:
  • the first determining unit is configured to sequentially determine whether the header of the plurality of packets received by the first external network port is a preset packet header
  • the second determining unit is configured to select the packet whose header is the preset header, and determine whether the type field of the packet whose header is the preset header is a preset content
  • the obtaining unit is configured to: when the type field is the preset content, determine that the device type notification message sent by the second external network port that is connected to the external device is obtained.
  • the second modification module modifies the connection type of the first external network port to connect to the network management server type, including:
  • the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
  • the connection type of the first external network port is not modified.
  • the modifying unit modifying the connection type of the first external network port to connect to the network management server includes:
  • the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
  • the modification is not performed.
  • the type of connection of the first external network port is a connection subrack type
  • a seed shelf management board including any of the above-mentioned external network port connection type automatic switching devices.
  • the device type notification packet is sent out through the external network port of the subrack management board, and the device type is received on an external network port of the subrack management board.
  • the external network port is modified according to the device type notification packet, so as to meet the function of connecting the network management server or connecting the other subrack management boards provided by the network port, and avoiding the related technology.
  • the cumbersome management board is cumbersome to set up manually.
  • Figure 1 is a schematic diagram showing the connection between the device subrack and the network management server
  • FIG. 2 is a schematic flowchart of a method for automatically switching an external network port connection type according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of an automatic switching device for an external network port connection type according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a first modification module according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the structure of a judging module according to an embodiment of the present invention.
  • an automatic switching method for an external network port connection type is provided, which is applied to a first subrack management board.
  • the method first monitors a first external network port in a connected state; Whether the first external network port acquires the second pair within a preset time period The device type notification packet sent by the external network port; and finally, when the first external network port obtains the device type notification message sent by the second external network port in the preset time period, according to the device type
  • the notification packet modifies the connection type of the first external network port.
  • the automatic switching method of the external network port connection type in the embodiment of the present invention can automatically identify whether the external network port is connected to the network management server or other subrack management board, and automatically set parameters of the network port to satisfy the network port.
  • the required features of connecting to the network management server or connecting to other subrack management boards avoid the cumbersome manual change of the connection type and resetting the attributes in the related art.
  • the method includes:
  • Step S21 Monitor the first external network port in the connected state.
  • Any device subrack includes a subrack management board, and the device subrack connection network tube and the device subrack are connected to other device subracks through the external network port on the subrack management board, as shown in FIG. .
  • the connection relationship between the multiple external network ports on the subrack management board and the external needs to be changed as necessary.
  • the subrack management board of the second device subrack connected to the third device subrack is connected as shown in FIG.
  • the external network port may need to be disconnected to make it idle.
  • the external network port in the idle state cannot send and receive packets. Therefore, it is necessary for the method in the embodiment of the present invention to monitor the network ports in the connected state in real time, that is, which network ports can receive and receive packets in time to prepare for subsequent processing.
  • Step S23 Determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period.
  • the second external network port is a network port where the external device is in a connected state;
  • the method for automatically switching the connection mode of the external network port in the embodiment of the present invention sends a device type notification message to the first external network port of the first subrack management board in the connected state by the second external network port in which the external device is connected. Inform the device type of the external device of the first subrack management board.
  • Step S25 When the first external network port obtains the device type notification message sent by the second external network port in the preset time period, modify the first external network according to the device type notification message.
  • the type of connection for the port is obtained.
  • determining whether the second external network port in which the external device is in the connected state is obtained is obtained.
  • the device type notification packet is sent to change the connection type of the first external network port. That is, if the device type notification packet carries the subrack management board information, the connection type of the first external network port is modified to be connected when the external device is determined to be the second subrack management board. If the external device is the network management server, the connection type of the first external network port is changed to the connection network management server type.
  • the network management server can also send the device type notification packet to notify the subrack management board that the peer end is connected to the network management server, thereby changing the connection type of the corresponding external network port to the connection network management server type.
  • the subrack management board and the network management server both send the device type notification message, and when the first external network port in the connected state of the subrack management board receives the device type notification message carrying the subrack management board information, The connection type of the first external network port is changed to the connection subrack type; when the first external network port in which the subrack management board is in the connection state receives the device type notification message carrying the network management server information, the The connection type of the external network port is changed to the network management server type.
  • the method further includes:
  • the device sends a device type notification packet to the second external network port, so that the second external network port in which the external device is in the connected state receives the device type notification packet, and the connection type of the second external network port is modified.
  • step S23 includes:
  • any external network port that is in the connected state receives not only the device type notification packet but also some other service packets in the process of receiving the packet.
  • the method for automatically switching the connection type of the external network port in the embodiment of the present invention requires only the device type notification message. Therefore, it is necessary to filter the device type notification message from a plurality of messages.
  • the device type message has a specific message header and specific content, for example, its message frame can be as shown in the following table:
  • the packet received from the external network interface first identifies the BPDU header and then determines the typeid field of the packet. If the typeid field of the packet is 0x4E435031, the packet is a device type notification packet.
  • modifying the connection type of the first external network port to connect to the network management server including:
  • the initial connection type of the first external network port is the connection subrack type
  • the network connection is changed to the network management server type, and the vlanid of the external network port in the connection state is changed to the external vlanid; If the initial connection type of the network port is the type of the network management server, the connection type of the first external network port is not modified.
  • connection subrack type including:
  • the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
  • connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
  • connection type of the first external network port in the process of modifying the connection type of the first external network port, first, it is necessary to determine whether the initial connection type of the first external network port and the connection type to be modified are Consistent, if they are consistent, they will not be modified; if they are inconsistent, they will be modified to the corresponding connection type.
  • an automatic switching device for the connection type of the external network port is further provided, which is applied to the first subrack management board.
  • the device 300 includes:
  • the monitoring module 301 is configured to monitor the first external network port in the connected state
  • the determining module 303 is configured to determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period;
  • the first modification module 305 is configured to notify the message modification device according to the device type when the first external network port obtains the device type notification message sent by the second external network port within a preset time period. The type of connection of the first external network port.
  • the apparatus further includes:
  • the second modification module 307 is configured to determine that the external device is a network management server when the first external network port does not obtain the device type notification message sent by the second external network port in a preset time period. Then, the connection type of the first external network port is modified to be a connection network management server type.
  • the first modification module 305 includes:
  • the modifying unit 3051 is configured to: when the device type notification message carries the subrack management board information, determine that the external device is the second subrack management board, modify the first according to the device type notification message
  • the connection type of the external network port is the connection subrack type.
  • the apparatus further includes:
  • the sending module 309 is configured to periodically send the device type notification message through the first external network port, so that the second external network port in which the external device is in the connected state receives the device type notification message, and the second external The connection type of the network port.
  • the determining module 303 includes:
  • the first determining unit 3031 is configured to determine, in sequence, whether a packet header of the plurality of packets received by the first external network port is a preset packet header;
  • the second determining unit 3032 selects the packet whose header is the preset header, and determines whether the type field of the packet whose header is the preset header is the preset content.
  • the obtaining unit 3033 is configured to: when the type field is the preset content, determine that the device type notification message sent by the second external network port that is connected to the external device is obtained.
  • the second modification module 307 is configured to:
  • the initial connection type of the first external network port is a connection subrack type
  • the network connection is changed to the network management server type, and the vlanid of the external network port in the connection state is changed to an external vlanid;
  • the connection type of the first external network port is not modified.
  • the modifying unit 3051 is configured to:
  • the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
  • connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
  • a seed shelf management board including the automatic switching device of the external network port connection type described above.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/function unit in the above embodiment is implemented in the form of a software function module and When sold or used as a stand-alone product, it can be stored on a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the device type notification packet when the device type notification packet is sent out through the external network port of the subrack management board, and the device type notification message is received on an external network port of the subrack management board,
  • the device type notification packet is modified to the external network port to meet the functions of the network management server connected to the network port or other subrack management boards. This avoids the manual setting of the subrack management board in the related art. Cumbersome.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

An automatic switching method and apparatus for an external network port connection type, and a subrack management board. The method comprises: monitoring a first external network port in a connected state; determining whether the first external network port acquires, in a preset time period, a device type notification packet sent by a second external network port in a connected state, of an external device; and when the first external network port acquires the device type notification packet sent by the second external network port, modifying the connection type of the first external network port according to the device type notification packet.

Description

对外网口连接类型的自动切换方法、装置及子架管理板Automatic switching method, device and subrack management board for external network port connection type 技术领域Technical field
本文涉及但不限于通信技术领域。This document relates to, but is not limited to, the field of communication technology.
背景技术Background technique
相关技术中,随电信设备有多子架级联的应用,该应用可以提高主控板管理业务单板的效率,节约成本,减少管理IP地址的占用。这种应用是给各子架进行不重复编号,依次级联,主从子架上的单板都通过主子架上的主控板管理。子架与网管之间的连接和子架之间的连接都是通过子架管理板上的网口与外部进行连接,连接网管时主子架占用外部IP地址,通过外部虚拟局域网(vlan)与网管服务器进行通信连接,子架之间连接的网口是通过内部vlan和内部IP网段进行通信连接,而子架管理板上的外部网口都需要在这两个功能上进行复用,每个端口都可能接入网管服务器或其他子架管理板,如图1所示。这样就需要在子架管理板上做一个配置区分,该端口是连接网管服务器还是连接其他子架管理板,在子架管理板被网管服务器管理上之前无法做出这样的配置,或通过调试端口通过特别方式对子架管理单板进行特别的配置,且每次更换端口属性时必须先配置一次,非常麻烦。In the related art, the application of the multi-subrack cascading of the telecommunication device can improve the efficiency of the management board of the main control board, save costs, and reduce the occupation of the management IP address. In this application, the subracks are not numbered repeatedly, and are cascaded in sequence. The boards on the master and slave subracks are managed by the main control board on the main subrack. The connection between the subrack and the U2000 and the connection between the subracks are connected to the outside through the network port on the subrack management board. When the U2000 is connected, the main subrack occupies an external IP address and passes through the external virtual local area network (VLAN) and the network management server. For the communication connection, the network port connected between the subracks is communicated through the internal vlan and the internal IP network segment, and the external network ports on the subrack management board need to be multiplexed on these two functions, each port Both may access the network management server or other subrack management boards, as shown in Figure 1. In this case, you need to make a configuration distinction on the subrack management board. Whether the port is connected to the network management server or connected to other subrack management boards cannot be configured before the subrack management board is managed by the network management server, or through the debugging port. The subrack management board is specially configured in a special way, and must be configured once each time the port attribute is changed, which is very troublesome.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种对外网口连接类型的自动切换方法、装置及子架管理板,能够以自动识别、自动配置的方式使子架管理板的外部网口能自动判断连接的是网管服务器还是其他子架管理板,避免了相关技术中通过手动方式反复设置的繁琐。The embodiment of the invention provides an automatic switching method and device for an external network port connection type, and a subrack management board, which can automatically determine that the external network port of the subrack management board is connected to the network management server by means of automatic identification and automatic configuration. It is also a sub-rack management board, which avoids the cumbersome manual setting by manual.
本发明实施例采用如下技术方案:The embodiment of the invention adopts the following technical solutions:
依据本发明实施例的一个方面,提供了一种对外网口连接类型的自动切 换方法,应用于第一子架管理板,该方法包括:According to an aspect of the embodiments of the present invention, an automatic cut of an external network port connection type is provided. The method is applied to the first subrack management board, and the method includes:
监测处于连接状态的第一对外网口;Monitoring the first external network port in the connected state;
判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文;所述第二对外网口为外接设备处于连接状态的网口;Determining whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period; the second external network port is a network port in which the external device is in the connected state;
当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。When the first external network port obtains the device type notification message sent by the second external network port in the preset time period, the first external network port is modified according to the device type notification message. Types of.
可选地,所述判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文之后还包括:Optionally, after the determining, by the first external network port, the device type notification message sent by the second external network port, the method includes:
当所述第一对外网口未在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,确定所述外接设备为网管服务器,则修改所述第一对外网口的连接类型为连接网管服务器类型。When the first external network port does not obtain the device type notification packet sent by the second external network port in the preset time period, and determines that the external device is the network management server, modify the first external network. The connection type of the port is the type of connected network management server.
可选地,所述根据所述设备类型通知报文修改所述第一对外网口的连接类型包括:Optionally, the modifying the connection type of the first external network port according to the device type notification message includes:
当所述设备类型通知报文携带有子架管理板信息时,确定所述外接设备为第二子架管理板,根据所述设备类型通知报文修改所述第一对外网口的连接类型为连接子架类型。When the device type notification packet carries the subrack management board information, the external device is determined to be the second subrack management board, and the connection type of the first external network port is modified according to the device type notification packet. Connect the subrack type.
可选地,所述监测处于连接状态的第一对外网口后还包括:Optionally, after the monitoring the first external network port in the connected state, the method further includes:
通过所述第一对外网口定时发送设备类型通知报文,以便所述第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。The device sends a device type notification packet to the second external network port, so that the second external network port receives the device type notification packet, and modifies the connection type of the second external network port.
可选地,所述判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文,包括:Optionally, the determining, by the first external network port, the device type notification message sent by the second external network port, in the preset time period, includes:
依次判断所述第一对外网口在预设时间周期内接收的多个报文的报文头是否为预设报文头;Determining, in sequence, whether the header of the plurality of packets received by the first external network port in the preset time period is a preset packet header;
将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;And selecting, by the packet header, a packet of the preset packet header, and determining whether the type field of the packet whose header is the preset packet header is a preset content;
当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的 第二对外网口发送的设备类型通知报文。When the type field is a preset content, it is determined that the external device is in the connected state. The device type notification packet sent by the second external network port.
可选地,所述修改第一对外网口的连接类型为连接网管服务器包括:Optionally, the modifying the connection type of the first external network port to connect to the network management server includes:
判断所述第一对外网口的初始连接类型是否为连接网管服务器类型;Determining whether the initial connection type of the first external network port is a connection network management server type;
若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的虚拟局域网标识vlanid修改为外部vlanid;If the initial connection type of the first external network port is the connection subrack type, the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则不修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection type of the network management server, the connection type of the first external network port is not modified.
可选地,所述修改所述第一对外网口的连接类型为连接子架类型包括:Optionally, the modifying the connection type of the first external network port to the connection subrack type includes:
判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
依据本发明实施例的另一个方面,还提供了一种对外网口连接类型的自动切换装置,应用于第一子架管理板,包括:According to another aspect of the present invention, an automatic switching device for the connection type of the external network port is further provided, which is applied to the first subrack management board, and includes:
监测模块,设置成监测处于连接状态的第一对外网口;The monitoring module is configured to monitor the first external network port in the connected state;
判断模块,设置成判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文;所述第二对外网口为外接设备处于连接状态的网口;The determining module is configured to determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period; the second external network port is the network in which the external device is in the connected state. mouth;
第一修改模块,设置成当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。The first modification module is configured to: when the first external network port obtains the device type notification message sent by the second external network port in the preset time period, modify the message according to the device type notification message The type of connection of the first external network port.
可选地,第二修改模块,设置成当所述第一对外网口在预设时间周期内未获取到所述第二对外网口发送的设备类型通知报文时,确定所述外接设备为网管服务器,修改所述第一对外网口的连接类型为连接网管服务器类型。Optionally, the second modifying module is configured to: when the first external network port does not obtain the device type notification message sent by the second external network port, the external device is determined to be The network management server modifies the connection type of the first external network port to connect to the network management server type.
可选地,所述第一修改模块包括:修改单元,设置成当所述设备类型通 知报文携带有子架管理板信息时,确定所述外接设备为第二子架管理板,根据所述设备类型通知报文修改所述第一对外网口的连接类型为连接子架类型。Optionally, the first modifying module includes: a modifying unit, configured to: when the device type is When the information about the subrack management board is carried, the connection device is determined to be the second subrack management board, and the connection type of the first external network port is modified according to the device type notification packet.
可选地,发送模块,设置成通过所述第一对外网口定时发送设备类型通知报文,以便所述第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。Optionally, the sending module is configured to periodically send the device type notification message by using the first external network port, so that the second external network port receives the device type notification message, and the second external network is modified. The type of connection for the port.
可选地,所述判断模块包括:Optionally, the determining module includes:
第一判断单元,设置成依次判断所述第一对外网口接收的多个报文的报文头是否为预设报文头;The first determining unit is configured to sequentially determine whether the header of the plurality of packets received by the first external network port is a preset packet header;
第二判断单元,设置成将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;The second determining unit is configured to select the packet whose header is the preset header, and determine whether the type field of the packet whose header is the preset header is a preset content;
获取单元,设置成当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的第二对外网口发送的设备类型通知报文。The obtaining unit is configured to: when the type field is the preset content, determine that the device type notification message sent by the second external network port that is connected to the external device is obtained.
可选地,所述第二修改模块修改所述第一对外网口的连接类型为连接网管服务器类型包括:Optionally, the second modification module modifies the connection type of the first external network port to connect to the network management server type, including:
判断所述第一对外网口的初始连接类型是否为连接网管服务器类型;Determining whether the initial connection type of the first external network port is a connection network management server type;
若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的虚拟局域网标识vlanid修改为外部vlanid;If the initial connection type of the first external network port is the connection subrack type, the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection type of the network management server, the connection type of the first external network port is not modified.
可选地,所述修改单元修改第一对外网口的连接类型为连接网管服务器包括:Optionally, the modifying unit modifying the connection type of the first external network port to connect to the network management server includes:
判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述 第一对外网口的连接类型。If the initial connection type of the first external network port is a connection subrack type, the modification is not performed. The type of connection of the first external network port.
依据本发明实施例的另一个方面,还提供了一种子架管理板,包括上述任一对外网口连接类型的自动切换装置。According to another aspect of the embodiments of the present invention, a seed shelf management board is provided, including any of the above-mentioned external network port connection type automatic switching devices.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例的对外网口连接类型的自动切换方法,通过子架管理板的对外网口定时向外发送设备类型通知报文,并在子架管理板的一个对外网口接收到该设备类型通知报文时,根据该设备类型通知报文对该对外网口进行修改,以此满足该网口需提供的连接网管服务器或连接其他子架管理板的功能特性,避免了相关技术中对子架管理板进行手动设置的繁琐。In the automatic switching method of the external network port connection type of the embodiment of the present invention, the device type notification packet is sent out through the external network port of the subrack management board, and the device type is received on an external network port of the subrack management board. When the packet is notified, the external network port is modified according to the device type notification packet, so as to meet the function of connecting the network management server or connecting the other subrack management boards provided by the network port, and avoiding the related technology. The cumbersome management board is cumbersome to set up manually.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1表示设备子架与网管服务器之间的连接示意图;Figure 1 is a schematic diagram showing the connection between the device subrack and the network management server;
图2表示本发明实施例的对外网口连接类型的自动切换方法流程示意图;2 is a schematic flowchart of a method for automatically switching an external network port connection type according to an embodiment of the present invention;
图3表示本发明实施例的对外网口连接类型的自动切换装置的结构框图;3 is a structural block diagram of an automatic switching device for an external network port connection type according to an embodiment of the present invention;
图4表示本发明实施例的第一修改模块的结构框图;4 is a structural block diagram of a first modification module according to an embodiment of the present invention;
图5表示本发明实施例的判断模块的结构框图。FIG. 5 is a block diagram showing the structure of a judging module according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下面结合附图对本发明实施例进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例一Embodiment 1
依据本发明实施例的一个方面,提供了一种对外网口连接类型的自动切换方法,应用于第一子架管理板,该方法首先,监测处于连接状态的第一对外网口;接着,判断所述第一对外网口在预设时间周期内是否获取到第二对 外网口发送的设备类型通知报文;最后,当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。According to an aspect of the embodiments of the present invention, an automatic switching method for an external network port connection type is provided, which is applied to a first subrack management board. The method first monitors a first external network port in a connected state; Whether the first external network port acquires the second pair within a preset time period The device type notification packet sent by the external network port; and finally, when the first external network port obtains the device type notification message sent by the second external network port in the preset time period, according to the device type The notification packet modifies the connection type of the first external network port.
因此,本发明实施例的对外网口连接类型的自动切换方法,能够自动识别对外网口连接的是网管服务器还是其他子架管理板,并自动对该网口进行参数设置,来满足该网口所需提供的连接网管服务器或连接其他子架管理板的功能特性,避免了相关技术中人工手动更改连接类型,并重新设置属性的繁琐。Therefore, the automatic switching method of the external network port connection type in the embodiment of the present invention can automatically identify whether the external network port is connected to the network management server or other subrack management board, and automatically set parameters of the network port to satisfy the network port. The required features of connecting to the network management server or connecting to other subrack management boards avoid the cumbersome manual change of the connection type and resetting the attributes in the related art.
如图2所示,该方法包括:As shown in Figure 2, the method includes:
步骤S21、监测处于连接状态的第一对外网口。Step S21: Monitor the first external network port in the connected state.
任一设备子架均包括一子架管理板,且设备子架连接网管和设备子架连接其他设备子架都是通过子架管理板上的对外网口与外部进行连接,如图1所示。然而,子架管理板上的多个对外网口与外部的连接关系在必要时候需要更改,例如,如图1所示的第二设备子架的子架管理板上与第三设备子架连接的对外网口可能需要断开连接,令其处于空闲状态。此外,处于空闲状态的对外网口无法发送和接收报文。因此,本发明实施例的方法有必要实时监测处于连接状态的网口,即及时获得哪些网口可发送和接收报文,为后续处理做准备。Any device subrack includes a subrack management board, and the device subrack connection network tube and the device subrack are connected to other device subracks through the external network port on the subrack management board, as shown in FIG. . However, the connection relationship between the multiple external network ports on the subrack management board and the external needs to be changed as necessary. For example, the subrack management board of the second device subrack connected to the third device subrack is connected as shown in FIG. The external network port may need to be disconnected to make it idle. In addition, the external network port in the idle state cannot send and receive packets. Therefore, it is necessary for the method in the embodiment of the present invention to monitor the network ports in the connected state in real time, that is, which network ports can receive and receive packets in time to prepare for subsequent processing.
步骤S23、判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文。可选地,第二对外网口为外接设备处于连接状态的网口;Step S23: Determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period. Optionally, the second external network port is a network port where the external device is in a connected state;
本发明实施例的对外网口连接类型的自动切换方法,通过外接设备处于连接状态的第二对外网口向第一子架管理板处于连接状态的第一对外网口发送设备类型通知报文,告知第一子架管理板外接设备的设备类型。The method for automatically switching the connection mode of the external network port in the embodiment of the present invention sends a device type notification message to the first external network port of the first subrack management board in the connected state by the second external network port in which the external device is connected. Inform the device type of the external device of the first subrack management board.
步骤S25、当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。可选地,在本发明实施例的对外网口连接类型的自动切换方法中,通过判断是否获取到外接设备处于连接状态的第二对外网口发 送的设备类型通知报文来更改第一对外网口的连接类型。即若所述设备类型通知报文携带有子架管理板信息,则当获取到时,确定所述外接设备为第二子架管理板,则修改所述第一对外网口的连接类型为连接子架类型;当未获取到时,确定所述外接设备为网管服务器,则修改所述第一对外网口的连接类型为连接网管服务器类型。Step S25: When the first external network port obtains the device type notification message sent by the second external network port in the preset time period, modify the first external network according to the device type notification message. The type of connection for the port. Optionally, in the method for automatically switching the connection mode of the external network port in the embodiment of the present invention, determining whether the second external network port in which the external device is in the connected state is obtained is obtained. The device type notification packet is sent to change the connection type of the first external network port. That is, if the device type notification packet carries the subrack management board information, the connection type of the first external network port is modified to be connected when the external device is determined to be the second subrack management board. If the external device is the network management server, the connection type of the first external network port is changed to the connection network management server type.
当然,本发明实施例中,对于更改连接类型的依据并不限于此。还可令网管服务器同样也发送设备类型通知报文,告知子架管理板其对端连接的是网管服务器,从而将相应的对外网口的连接类型修改为连接网管服务器类型。即,子架管理板和网管服务器均向外发送设备类型通知报文,当一子架管理板处于连接状态的第一对外网口接收的是携带子架管理板信息的设备类型通知报文时,则将第一对外网口的连接类型修改为连接子架类型;当一子架管理板处于连接状态的第一对外网口接收的是携带网管服务器信息的设备类型通知报文,则将第一对外网口的连接类型修改为连网管服务器类型。Of course, in the embodiment of the present invention, the basis for changing the connection type is not limited thereto. The network management server can also send the device type notification packet to notify the subrack management board that the peer end is connected to the network management server, thereby changing the connection type of the corresponding external network port to the connection network management server type. That is, the subrack management board and the network management server both send the device type notification message, and when the first external network port in the connected state of the subrack management board receives the device type notification message carrying the subrack management board information, The connection type of the first external network port is changed to the connection subrack type; when the first external network port in which the subrack management board is in the connection state receives the device type notification message carrying the network management server information, the The connection type of the external network port is changed to the network management server type.
可选地,步骤S21之后,所述方法还包括:Optionally, after step S21, the method further includes:
通过所述第一对外网口定时发送设备类型通知报文,以便外接设备处于连接状态的第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。The device sends a device type notification packet to the second external network port, so that the second external network port in which the external device is in the connected state receives the device type notification packet, and the connection type of the second external network port is modified.
可选地,步骤S23包括:Optionally, step S23 includes:
依次判断所述第一对外网口接收的多个报文的报文头是否为预设报文头;将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的第二对外网口发送的设备类型通知报文。Determining, in sequence, whether the packet header of the plurality of packets received by the first external network port is a preset packet header; selecting the packet whose header is the preset packet header, and determining the packet Whether the type field of the packet of the preset header is the preset content; when the type field is the preset content, it is determined that the device type sent by the second external network port to which the external device is connected is obtained. Notification message.
可选地,任一处于连接状态的对外网口,在接收报文的过程中,不仅仅会接收到设备类型通知报文,还会接收到一些其他业务报文。然而,本发明实施例的对外网口连接类型的自动切换方法需要的仅仅是设备类型通知报文,因此,有必要将设备类型通知报文从众多报文中筛选出来。可选地,设备类型报文具有特定的报文头和特定的内容,例如其报文帧可如下表所示:Optionally, any external network port that is in the connected state receives not only the device type notification packet but also some other service packets in the process of receiving the packet. However, the method for automatically switching the connection type of the external network port in the embodiment of the present invention requires only the device type notification message. Therefore, it is necessary to filter the device type notification message from a plurality of messages. Optionally, the device type message has a specific message header and specific content, for example, its message frame can be as shown in the following table:
表1设备类型通知报文帧格式 Table 1 Device Type Notification Message Frame Format
Figure PCTCN2016081165-appb-000001
Figure PCTCN2016081165-appb-000001
例如,从对外网络接口收到的报文中,首先识别BPDU报文头,然后判断报文的typeid字段,如果报文的typeid字段为0x4E435031,则此报文为设备类型通知报文。For example, the packet received from the external network interface first identifies the BPDU header and then determines the typeid field of the packet. If the typeid field of the packet is 0x4E435031, the packet is a device type notification packet.
可选地,修改所述第一对外网口的连接类型为连接网管服务器,包括:Optionally, modifying the connection type of the first external network port to connect to the network management server, including:
判断所述第一对外网口的初始连接类型是否为连接网管服务器类型;Determining whether the initial connection type of the first external network port is a connection network management server type;
若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的vlanid修改为外部vlanid;若所述第一对外网口的初始连接类型为连接网管服务器类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the network connection is changed to the network management server type, and the vlanid of the external network port in the connection state is changed to the external vlanid; If the initial connection type of the network port is the type of the network management server, the connection type of the first external network port is not modified.
可选地,所述修改所述第一对外网口的连接类型为连接子架类型,包括:Optionally, the modifying the connection type of the first external network port is a connection subrack type, including:
判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
本发明实施例的对外网口连接类型的自动切换方法中,在修改第一对外网口的连接类型的过程中,首先需要判断第一对外网口的初始连接类型与所需要修改的连接类型是否一致,若一致,则不予修改;若不一致,则修改为相应的连接类型。In the method for automatically switching the connection mode of the external network port in the embodiment of the present invention, in the process of modifying the connection type of the first external network port, first, it is necessary to determine whether the initial connection type of the first external network port and the connection type to be modified are Consistent, if they are consistent, they will not be modified; if they are inconsistent, they will be modified to the corresponding connection type.
实施例二Embodiment 2
依据本发明实施例的另一个方面,还提供了一种对外网口连接类型的自动切换装置,应用于第一子架管理板,如图3所示,该装置300包括: According to another aspect of the present invention, an automatic switching device for the connection type of the external network port is further provided, which is applied to the first subrack management board. As shown in FIG. 3, the device 300 includes:
监测模块301,设置成监测处于连接状态的第一对外网口;The monitoring module 301 is configured to monitor the first external network port in the connected state;
判断模块303,设置成判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文;The determining module 303 is configured to determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period;
第一修改模块305,设置成当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。The first modification module 305 is configured to notify the message modification device according to the device type when the first external network port obtains the device type notification message sent by the second external network port within a preset time period. The type of connection of the first external network port.
可选地,如图3所示,所述装置还包括:Optionally, as shown in FIG. 3, the apparatus further includes:
第二修改模块307,设置成当所述第一对外网口在预设时间周期内未获取到所述第二对外网口发送的设备类型通知报文时,确定所述外接设备为网管服务器,则修改所述第一对外网口的连接类型为连接网管服务器类型。The second modification module 307 is configured to determine that the external device is a network management server when the first external network port does not obtain the device type notification message sent by the second external network port in a preset time period. Then, the connection type of the first external network port is modified to be a connection network management server type.
可选地,如图4所示,所述第一修改模块305包括:Optionally, as shown in FIG. 4, the first modification module 305 includes:
修改单元3051,设置成当所述设备类型通知报文携带有子架管理板信息时,确定所述外接设备为第二子架管理板,则根据所述设备类型通知报文修改所述第一对外网口的连接类型为连接子架类型。The modifying unit 3051 is configured to: when the device type notification message carries the subrack management board information, determine that the external device is the second subrack management board, modify the first according to the device type notification message The connection type of the external network port is the connection subrack type.
可选地,如图3所示,所述装置还包括:Optionally, as shown in FIG. 3, the apparatus further includes:
发送模块309,设置成通过所述第一对外网口定时发送设备类型通知报文,以便外接设备处于连接状态的第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。The sending module 309 is configured to periodically send the device type notification message through the first external network port, so that the second external network port in which the external device is in the connected state receives the device type notification message, and the second external The connection type of the network port.
可选地,如图5所示,所述判断模块303包括:Optionally, as shown in FIG. 5, the determining module 303 includes:
第一判断单元3031,设置成依次判断所述第一对外网口接收的多个报文的报文头是否为预设报文头;The first determining unit 3031 is configured to determine, in sequence, whether a packet header of the plurality of packets received by the first external network port is a preset packet header;
第二判断单元3032,将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;The second determining unit 3032 selects the packet whose header is the preset header, and determines whether the type field of the packet whose header is the preset header is the preset content.
获取单元3033,设置成当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的第二对外网口发送的设备类型通知报文。The obtaining unit 3033 is configured to: when the type field is the preset content, determine that the device type notification message sent by the second external network port that is connected to the external device is obtained.
可选地,所述第二修改模块307设置成:Optionally, the second modification module 307 is configured to:
判断所述第一对外网口的初始连接类型是否为连接网管服务器类型; Determining whether the initial connection type of the first external network port is a connection network management server type;
若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的vlanid修改为外部vlanid;If the initial connection type of the first external network port is a connection subrack type, the network connection is changed to the network management server type, and the vlanid of the external network port in the connection state is changed to an external vlanid;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection type of the network management server, the connection type of the first external network port is not modified.
可选地,所述修改单元3051设置成:Optionally, the modifying unit 3051 is configured to:
判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
实施例三Embodiment 3
依据本发明实施例的另一个方面,还提供了一种子架管理板,包括上述所述的对外网口连接类型的自动切换装置。According to another aspect of the embodiments of the present invention, a seed shelf management board is further provided, including the automatic switching device of the external network port connection type described above.
以上所述的是本发明实施例的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明实施例所述的原理前提下还可以作出改进和润饰,这些改进和润饰也在本发明实施例的保护范围内。The above is a preferred embodiment of the embodiments of the present invention, and it should be noted that those skilled in the art can also make improvements and retouching without departing from the principles of the embodiments of the present invention. It is also within the scope of protection of embodiments of the invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并 作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。The device/function module/function unit in the above embodiment is implemented in the form of a software function module and When sold or used as a stand-alone product, it can be stored on a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例的方案,通过子架管理板的对外网口定时向外发送设备类型通知报文,并在子架管理板的一个对外网口接收到该设备类型通知报文时,根据该设备类型通知报文对该对外网口进行修改,以此满足该网口需提供的连接网管服务器或连接其他子架管理板的功能特性,避免了相关技术中对子架管理板进行手动设置的繁琐。 According to the solution of the embodiment of the present invention, when the device type notification packet is sent out through the external network port of the subrack management board, and the device type notification message is received on an external network port of the subrack management board, The device type notification packet is modified to the external network port to meet the functions of the network management server connected to the network port or other subrack management boards. This avoids the manual setting of the subrack management board in the related art. Cumbersome.

Claims (15)

  1. 一种对外网口连接类型的自动切换方法,应用于第一子架管理板,所述方法包括:An automatic switching method for the connection type of the external network port is applied to the first subrack management board, and the method includes:
    监测处于连接状态的第一对外网口;Monitoring the first external network port in the connected state;
    判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文;所述第二对外网口为外接设备处于连接状态的网口;Determining whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period; the second external network port is a network port in which the external device is in the connected state;
    当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修改所述第一对外网口的连接类型。When the first external network port obtains the device type notification message sent by the second external network port in the preset time period, the first external network port is modified according to the device type notification message. Types of.
  2. 如权利要求1所述的方法,其中,所述判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文之后还包括:The method of claim 1, wherein the determining, after the first external network port obtains the device type notification message sent by the second external network port, in the preset time period, further includes:
    当所述第一对外网口未在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,确定所述外接设备为网管服务器,则修改所述第一对外网口的连接类型为连接网管服务器类型。When the first external network port does not obtain the device type notification packet sent by the second external network port in the preset time period, and determines that the external device is the network management server, modify the first external network. The connection type of the port is the type of connected network management server.
  3. 如权利要求1所述的方法,其中,所述根据所述设备类型通知报文修改所述第一对外网口的连接类型包括:The method of claim 1, wherein the modifying the connection type of the first external network port according to the device type notification message comprises:
    当所述设备类型通知报文携带有子架管理板信息时,确定所述外接设备为第二子架管理板,根据所述设备类型通知报文修改所述第一对外网口的连接类型为连接子架类型。When the device type notification packet carries the subrack management board information, the external device is determined to be the second subrack management board, and the connection type of the first external network port is modified according to the device type notification packet. Connect the subrack type.
  4. 如权利要求1所述的方法,其中,所述监测处于连接状态的第一对外网口后还包括:The method of claim 1, wherein the monitoring the first external network port in the connected state further comprises:
    通过所述第一对外网口定时发送设备类型通知报文,以便所述第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。The device sends a device type notification packet to the second external network port, so that the second external network port receives the device type notification packet, and modifies the connection type of the second external network port.
  5. 如权利要求1所述的方法,其中,所述判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文,包括:The method of claim 1, wherein the determining whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period comprises:
    依次判断所述第一对外网口在预设时间周期内接收的多个报文的报文头是否为预设报文头; Determining, in sequence, whether the header of the plurality of packets received by the first external network port in the preset time period is a preset packet header;
    将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;And selecting, by the packet header, a packet of the preset packet header, and determining whether the type field of the packet whose header is the preset packet header is a preset content;
    当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的第二对外网口发送的设备类型通知报文。When the type field is the preset content, it is determined that the device type notification message sent by the second external network port to which the external device is connected is obtained.
  6. 如权利要求2所述的方法,其中,所述修改第一对外网口的连接类型为连接网管服务器包括:The method of claim 2, wherein the modifying the connection type of the first external network port to connect to the network management server comprises:
    判断所述第一对外网口的初始连接类型是否为连接网管服务器类型;Determining whether the initial connection type of the first external network port is a connection network management server type;
    若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的虚拟局域网标识vlanid修改为外部vlanid;If the initial connection type of the first external network port is the connection subrack type, the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
    若所述第一对外网口的初始连接类型为连接网管服务器类型,则不修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection type of the network management server, the connection type of the first external network port is not modified.
  7. 如权利要求3所述的方法,其中,所述修改所述第一对外网口的连接类型为连接子架类型包括:The method of claim 3, wherein the modifying the connection type of the first external network port to the connection subrack type comprises:
    判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
    若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
    若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
  8. 一种对外网口连接类型的自动切换装置,应用于第一子架管理板,包括:An automatic switching device for the connection type of the external network port is applied to the first subrack management board, including:
    监测模块,设置成监测处于连接状态的第一对外网口;The monitoring module is configured to monitor the first external network port in the connected state;
    判断模块,设置成判断所述第一对外网口在预设时间周期内是否获取到第二对外网口发送的设备类型通知报文;所述第二对外网口为外接设备处于连接状态的网口;The determining module is configured to determine whether the first external network port obtains the device type notification message sent by the second external network port in the preset time period; the second external network port is the network in which the external device is in the connected state. mouth;
    第一修改模块,设置成当所述第一对外网口在预设时间周期内获取到所述第二对外网口发送的设备类型通知报文时,根据所述设备类型通知报文修 改所述第一对外网口的连接类型。The first modification module is configured to: when the first external network port obtains the device type notification message sent by the second external network port within a preset time period, notify the message according to the device type Change the connection type of the first external network port.
  9. 如权利要求8所述的装置,还包括:The apparatus of claim 8 further comprising:
    第二修改模块,设置成当所述第一对外网口在预设时间周期内未获取到所述第二对外网口发送的设备类型通知报文时,确定所述外接设备为网管服务器,修改所述第一对外网口的连接类型为连接网管服务器类型。The second modification module is configured to: when the first external network port does not obtain the device type notification message sent by the second external network port, the external device is determined to be the network management server, and is modified. The connection type of the first external network port is a connection network management server type.
  10. 如权利要求8所述的装置,其中,所述第一修改模块包括:修改单元,设置成当所述设备类型通知报文携带有子架管理板信息时,确定所述外接设备为第二子架管理板,根据所述设备类型通知报文修改所述第一对外网口的连接类型为连接子架类型。The device of claim 8, wherein the first modifying module comprises: a modifying unit, configured to determine that the external device is the second child when the device type notification message carries the subrack management board information The shelf management board modifies the connection type of the first external network port according to the device type notification message to be a connection subrack type.
  11. 如权利要求8所述的装置,还包括:The apparatus of claim 8 further comprising:
    发送模块,设置成通过所述第一对外网口定时发送设备类型通知报文,以便所述第二对外网口接收所述设备类型通知报文,并修改所述第二对外网口的连接类型。The sending module is configured to periodically send the device type notification message by using the first external network port, so that the second external network port receives the device type notification message, and modifies the connection type of the second external network port .
  12. 如权利要求8所述的装置,其中,所述判断模块包括:The apparatus of claim 8 wherein said determining module comprises:
    第一判断单元,设置成依次判断所述第一对外网口接收的多个报文的报文头是否为预设报文头;The first determining unit is configured to sequentially determine whether the header of the plurality of packets received by the first external network port is a preset packet header;
    第二判断单元,设置成将所述报文头为预设报文头的报文选出,并判断所述报文头为预设报文头的报文的类型字段是否为预设内容;The second determining unit is configured to select the packet whose header is the preset header, and determine whether the type field of the packet whose header is the preset header is a preset content;
    获取单元,设置成当所述类型字段为预设内容时,判断为获取到外接设备处于连接状态的第二对外网口发送的设备类型通知报文。The obtaining unit is configured to: when the type field is the preset content, determine that the device type notification message sent by the second external network port that is connected to the external device is obtained.
  13. 如权利要求9所述的装置,其中,所述第二修改模块修改所述第一对外网口的连接类型为连接网管服务器类型包括:The device according to claim 9, wherein the second modification module modifies the connection type of the first external network port to connect to the network management server type, including:
    判断所述第一对外网口的初始连接类型是否为连接网管服务器类型;Determining whether the initial connection type of the first external network port is a connection network management server type;
    若所述第一对外网口的初始连接类型为连接子架类型,则修改为连接网管服务器类型,并将所述处于连接状态的对外网口的虚拟局域网标识vlanid修改为外部vlanid;If the initial connection type of the first external network port is the connection subrack type, the configuration is changed to connect to the network management server type, and the virtual local area network identifier vlanid of the external network port in the connected state is modified to an external vlanid;
    若所述第一对外网口的初始连接类型为连接网管服务器类型,则不予修 改所述第一对外网口的连接类型。If the initial connection type of the first external network port is connected to the network management server type, the repair is not performed. Change the connection type of the first external network port.
  14. 如权利要求10所述的装置,其中,所述修改单元修改第一对外网口的连接类型为连接网管服务器包括:The device of claim 10, wherein the modifying unit modifies the connection type of the first external network port to connect to the network management server comprises:
    判断所述第一对外网口的初始连接类型是否为连接子架类型;Determining whether the initial connection type of the first external network port is a connection subrack type;
    若所述第一对外网口的初始连接类型为连接网管服务器类型,则修改为连接子架类型,并将所述第一对外网口的vlanid修改为内部vlanid;If the initial connection type of the first external network port is connected to the network management server type, the configuration is changed to the connection subrack type, and the vlanid of the first external network port is changed to the internal vlanid;
    若所述第一对外网口的初始连接类型为连接子架类型,则不予修改所述第一对外网口的连接类型。If the initial connection type of the first external network port is the connection subrack type, the connection type of the first external network port is not modified.
  15. 一种子架管理板,其中,包括如权利要求8~14任意一项所述的对外网口连接类型的自动切换装置。 A subrack management board comprising the automatic switching device of the external network port connection type according to any one of claims 8 to 14.
PCT/CN2016/081165 2015-06-05 2016-05-05 Automatic switching method and apparatus for external network port connection type, and subrack management board WO2016192505A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510307005.3 2015-06-05
CN201510307005.3A CN106301854B (en) 2015-06-05 2015-06-05 Automatic switching method and device for external network port connection types and sub-rack management board

Publications (1)

Publication Number Publication Date
WO2016192505A1 true WO2016192505A1 (en) 2016-12-08

Family

ID=57440128

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081165 WO2016192505A1 (en) 2015-06-05 2016-05-05 Automatic switching method and apparatus for external network port connection type, and subrack management board

Country Status (2)

Country Link
CN (1) CN106301854B (en)
WO (1) WO2016192505A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064733A (en) * 2006-04-26 2007-10-31 上海贝尔阿尔卡特股份有限公司 Method and apparatus for controlling user equipment access based on data packet package types
CN101286900A (en) * 2008-05-14 2008-10-15 华为技术有限公司 Port fault detecting method, device, and access device
CN101388816A (en) * 2008-11-05 2009-03-18 深圳华为通信技术有限公司 Network interface mode switching method and device
CN102624532A (en) * 2012-03-09 2012-08-01 北京星网锐捷网络技术有限公司 Management arbitration card, rack equipment and service management method for rack equipment
WO2012175051A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Multi-subframe communications equipment, communication method and device
CN103152276A (en) * 2012-11-23 2013-06-12 华为技术有限公司 Port configuration method and Ethernet switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064733A (en) * 2006-04-26 2007-10-31 上海贝尔阿尔卡特股份有限公司 Method and apparatus for controlling user equipment access based on data packet package types
CN101286900A (en) * 2008-05-14 2008-10-15 华为技术有限公司 Port fault detecting method, device, and access device
CN101388816A (en) * 2008-11-05 2009-03-18 深圳华为通信技术有限公司 Network interface mode switching method and device
WO2012175051A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Multi-subframe communications equipment, communication method and device
CN102624532A (en) * 2012-03-09 2012-08-01 北京星网锐捷网络技术有限公司 Management arbitration card, rack equipment and service management method for rack equipment
CN103152276A (en) * 2012-11-23 2013-06-12 华为技术有限公司 Port configuration method and Ethernet switch

Also Published As

Publication number Publication date
CN106301854B (en) 2020-02-14
CN106301854A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US9553831B2 (en) Adaptive publish/subscribe system
WO2019033857A1 (en) Packet control method and network device
US9703747B2 (en) Remote console access of port extenders using protocol extension
WO2013115177A1 (en) Network system and topology management method
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
US9088477B2 (en) Distributed fabric management protocol
EP2974147B1 (en) Loop-free hybrid network
CN108632099B (en) Fault detection method and device for link aggregation
WO2017000832A1 (en) Mac address synchronization method, device and system
WO2018024121A1 (en) Network function (nf) management method and nf management device
EP3866393A1 (en) Data center traffic exchange method and apparatus, device and storage medium
US20200084304A1 (en) Auto-negotiation over extended backplane
US11483195B2 (en) Systems and methods for automated maintenance end point creation
WO2020078381A1 (en) Data aggregation method, device, equipment, storage medium and system
TWI740210B (en) Method for terminal device management and server
DE112013000469T5 (en) Switch discovery protocol for a distributed fabric system
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
WO2017054518A1 (en) Service board device resource management method and apparatus, main control board and framed device
CN104796340A (en) Multicast data transmission method and device
WO2014107836A1 (en) Network alarm method and device
WO2020119317A1 (en) Message forwarding method and apparatus, storage medium, and electronic apparatus
WO2016192505A1 (en) Automatic switching method and apparatus for external network port connection type, and subrack management board
WO2023011047A1 (en) Processing method and apparatus
JP6118464B2 (en) Port status synchronization method, related device, and system
US10291581B2 (en) Method and system for reducing PIM protocol DR change

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: 16802428

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: 16802428

Country of ref document: EP

Kind code of ref document: A1