WO2016065769A1 - 一种路由设备管理方法、主用主控单元和线卡单元 - Google Patents
一种路由设备管理方法、主用主控单元和线卡单元 Download PDFInfo
- Publication number
- WO2016065769A1 WO2016065769A1 PCT/CN2015/072449 CN2015072449W WO2016065769A1 WO 2016065769 A1 WO2016065769 A1 WO 2016065769A1 CN 2015072449 W CN2015072449 W CN 2015072449W WO 2016065769 A1 WO2016065769 A1 WO 2016065769A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- line card
- card unit
- telnet
- message
- control unit
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/34—Signalling channels for network management communication
Definitions
- the present invention relates to the field of data communications, and in particular, to a routing device management method, a main control unit, and a line card unit.
- the Layer 2 switch chip of the main control device in the existing routing device includes multiple ports, one of which is used to connect to a central processing unit (CPU), and the other ports are service ports, which are respectively used to connect different line cards;
- the routing device sends the packet to the network processor through the service port to access the internal control plane of the local routing device.
- access to the internal control plane of the local routing device will occupy a service port. Therefore, the current system usage resources are consumed; and the existing technical solution can only realize access to the internal control plane of the local routing device, and cannot implement communication with other routing device internal control planes, thereby failing to implement other routing devices. management.
- embodiments of the present invention are expected to provide a routing device management method, a main control unit, and a line card unit.
- the embodiment of the invention provides a routing device management method, and the method includes:
- the logical port on the first switch chip of the main control unit of the routing device receives the remote login telnet message
- the primary control unit sends the telnet message to a line card unit of the routing device.
- the method further includes:
- the main control unit receives the status information reported by the line card unit associated with the line card unit, and the status information includes: an online status of the line card unit, and a port of the service port connected to the first switch chip on the line card unit. status;
- the primary control unit After receiving the status information, the primary control unit writes the status information into the status information table of the local database.
- the main control unit sends the telnet packet to the line card unit of the routing device, including:
- the main control unit searches the status information table for status information of the line card unit associated with the first switch chip, and the online status is online, and the port status is available.
- One of the line card units is selected as the designated line card unit;
- the active main control unit sends the telnet message to the designated line card unit.
- the sending the telnet packet to the specified line card unit includes:
- the first switch chip and the second switch chip are both Layer 2 switch chips.
- the embodiment of the invention provides a routing device management method, and the method includes:
- the line card unit receives the remote login telnet message sent by the main control unit;
- the line card unit processes the received telnet packet to perform management of the local routing device or management of other routing devices.
- the line card unit processes the received telnet packet, including:
- the line card unit parses the telnet packet, and when the telnet packet is a packet that is managed by the local routing device, the line card unit sends the telnet packet to the main user.
- the CPU in the control unit when the telnet packet is confirmed as a packet for managing other routing devices, the line card unit forwards the telnet packet to other routing devices.
- the embodiment of the present invention provides a primary control unit, which is located on a routing device, where the primary control unit includes: a first switching chip subunit and a message sending subunit;
- the first switch chip subunit is provided with a logical port, and the logical port is configured to receive a remote login telnet message;
- the message sending subunit is configured to send the telnet message to a line card unit of the routing device.
- the main control unit further includes an information processing unit configured to receive a line associated with the local main control unit before the message sending subunit sends the telnet message to the line card unit.
- the information processing unit is further configured to: when receiving the telnet message, look up the status information of the line card unit associated with the local active main control unit in the status information table, and the online status is Select one of the line card units that are online and the port status is available as the specified line card unit;
- the message sending subunit is configured to send the telnet message to the specified line card unit.
- the message sending subunit sends the telnet message to the specified line card unit through a service port connected to the specified line card unit on the first switch chip.
- a service port connected to the first switch chip on the switch chip.
- the first switch chip and the second switch chip are both Layer 2 switch chips.
- the embodiment of the present invention provides a line card unit, which is located in a routing device, where the line card unit includes: a message receiving subunit and a message processing subunit;
- the message receiving subunit is configured to receive a remote login telnet message sent by the main control unit;
- the packet processing subunit is configured to process the received telnet packet to perform Management of local routing devices or management of other routing devices.
- the packet processing subunit is configured to process the received telnet packet by:
- the packet processing sub-unit parses the telnet packet, and when the telnet packet is confirmed as a packet for managing the local routing device, the line card unit sends the telnet packet to the main
- the CPU in the main control unit is configured to forward the telnet message to other routing devices when it is confirmed that the telnet packet is a packet for managing other routing devices.
- the embodiment of the invention further provides a computer storage medium, the storage medium comprising a set of computer executable instructions for executing a routing device management method of the primary control unit.
- Embodiments of the present invention also provide a computer storage medium, the storage medium comprising a set of computer executable instructions for executing a routing device management method of a line card unit.
- the logical port on the first switching chip of the main control unit of the routing device receives the remote login telnet message;
- the active main control unit sends the telnet message to the line card unit of the routing device.
- the telnet packet can be received through the logical port set on the first switch chip of the active main control unit, thereby saving one service port on the first switch chip compared to the prior art;
- the telnet packet cannot be forwarded to other line cards in the prior art, so that the telnet packet cannot be forwarded to other routing devices via other line cards, thereby implementing other A defect in the management of routing devices.
- FIG. 1 is a flowchart 1 of a routing device management method according to an embodiment of the present invention
- FIG. 2 is a flowchart 2 of a routing device management method according to an embodiment of the present invention.
- FIG. 3 is a third flowchart of a routing device management method according to an embodiment of the present invention.
- FIG. 4 is a basic structural diagram of a main control unit according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a line card unit according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a routing device according to an embodiment of the present invention.
- the logical port on the first switch chip of the main control unit of the routing device receives the remote login (telnet) message; the main control unit sends the telnet packet to the routing device.
- Line card unit the remote login (telnet) message
- a first embodiment of the present invention provides a routing device management method. As shown in FIG. 1 , the method includes the following steps:
- Step 101 The logical port on the first switch chip of the primary control unit of the routing device receives the telnet packet.
- a logical port needs to be set on the first switch chip of the routing device main control unit, and the logical port is used to receive the telnet packet; the telnet packet is triggered by the user operation.
- the message is used to implement access to the internal control plane of the routing device or access to the control plane of other routing devices; the primary control unit is associated with the line card unit, and the primary switching unit of the primary control unit is on the first switching chip.
- Each of the service ports is connected to a service port of the second switch chip in the line card unit.
- the first switch chip and the second switch chip are both Layer 2 switch chips.
- Step 102 The primary control unit sends the telnet packet to a line card unit of the routing device.
- the active main control unit sends the telnet message to a line card unit connected to the service port by using a service port on the first switch chip;
- the method further includes:
- the main control unit receives the status information reported by the line card unit associated with the line card unit, and the status information includes: an online status of the line card unit, and a port of the service port connected to the first switch chip on the line card unit. status;
- the primary control unit After receiving the status information, the primary control unit writes the status information to the local database;
- the main control unit searches for the status information of the associated line card unit in the local database, and the line card unit is online, and the line card unit is on the
- the port status of the service port connected to the switch chip is one of the available line card units as the designated line card unit; the selection may be a random selection, or may be found in the currently found line card unit in the satisfied condition The first or last line card unit as the specified line card unit;
- the main control unit configures a virtual local area network (VLAN) identifier of the port to which the line card unit is connected, and through the VLAN setting, The telnet packet may be sent out through the port configured with the VLAN identifier to reach the specified line card unit.
- VLAN virtual local area network
- Step 103 The line card unit processes the received telnet packet to perform management of the routing device or management of other routing devices.
- the line card unit After receiving the telnet packet, the line card unit parses the packet, so as to determine that the telnet packet is sent to the CPU of the routing device, or the telnet packet is forwarded to the cascading device. Other next level routing devices.
- the line card unit When the telnet packet is a telnet packet of the internal control plane of the device, the line card unit sends the telnet packet to the CPU of the local routing device for processing; when the telnet packet is used with other routes When the device control plane communicates with the telnet packet, the line card unit forwards the telnet packet to other routing devices; the telnet packet encapsulates the IP address of other routing devices to be forwarded, and the line card unit is based on The IP address can be forwarded.
- the user can implement access to the internal control plane of the routing device,
- the management of the local routing device is implemented; the communication between other routing devices connected to the routing device can also be implemented, thereby implementing management of other routing devices.
- the Internet Protocol (IP) address of the logical port needs to be pre-configured, and the user can remotely log in to the IP address, that is, use the telnet command to remotely log in to the IP address, and through this operation, the IP address will be sent.
- the telnet packet is sent to the logical port; and the telnet packet is a telnet packet that accesses an internal control plane of the local device;
- the telnet packet is a telnet packet that accesses the internal control plane of other routing devices. Therefore, the telnet packet needs to encapsulate the IP address of the corresponding routing device.
- the user can access the internal control plane of the local routing device or the internal control plane of other routing devices. From the user's point of view, you only need to use the telnet command to remotely log in to the corresponding IP address to easily access the internal control plane of the local routing device or the internal control plane of other routing devices, thus implementing local routing devices or implementing local routing devices. Management of other routing devices connected.
- the device management method provided by the embodiment of the present invention receives a telnet packet through a logical port on the first switch chip, thereby implementing management of the local routing device, that is, saving A service port on the Layer 2 switch chip of the original active control unit; on the other hand, the method provided by the embodiment of the present invention can implement communication between a routing device and other routing device control planes, thereby The user can implement management of other routing devices locally, and the implementation does not rely on the Layer 3 switching chip. Therefore, the functions of the original Layer 2 routing device are not realized, and the cost is saved.
- Embodiment 2 of the present invention provides a device management method, as shown in FIG. 2, the method includes The following steps:
- Step 201 The logical port on the first switch chip of the primary control unit of the routing device receives the telnet packet.
- a logical port needs to be set on the first switch chip, and the logical port is used to receive a telnet message; the first switch chip further includes other ports, one of which is connected to the CPU in the routing device, and the other For the service port, they are used to connect different line card units.
- Step 202 The main control unit sends the telnet packet to the line card unit of the routing device to implement management of the routing device or implement management of other routing devices.
- the method further includes:
- the main control unit receives the status information reported by the line card unit associated with the line card unit, and the status information includes: an online status of the line card unit, and a port of the service port connected to the first switch chip on the line card unit. status;
- the primary control unit After receiving the status information, the primary control unit writes the status information into the status information table of the local database.
- the main control unit sends the telnet packet to the line card unit of the routing device, including:
- the main control unit searches the status information table for status information of the line card unit associated with the first switch chip, and the online status is online, and the port status is available.
- One of the line card units is selected as the designated line card unit;
- the active main control unit sends the telnet message to the designated line card unit.
- Sending the telnet packet to the specified line card unit including:
- the first switch chip and the second switch chip are both Layer 2 switch chips.
- a third embodiment of the present invention provides a routing device management method. As shown in FIG. 3, the method includes:
- Step 301 The line card unit receives the telnet message sent by the main control unit.
- Step 302 The line card unit processes the received telnet packet to perform management of the local routing device or management of other routing devices.
- the line card unit processes the received telnet packet in the following manner:
- the line card unit parses the telnet packet, and when the telnet packet is a packet that is managed by the local routing device, the line card unit sends the telnet packet to the main user.
- the CPU in the control unit when the telnet packet is confirmed as a packet for managing other routing devices, the line card unit forwards the telnet packet to other routing devices.
- the fourth embodiment of the present invention provides a main control unit, which is located on the routing device.
- the main control unit includes: a first switching chip subunit 41 and a message sending subunit 42; among them,
- the first switch chip sub-unit 41 is provided with a logical port, and the logical port is configured to receive a telnet message;
- the message sending subunit 42 is configured to send the telnet message to a line card unit of the routing device.
- the main control unit further includes an information processing sub-unit 43.
- the information processing sub-unit 43 is implemented by the CPU and the storage unit, and is configured to receive before the message sending sub-unit sends the telnet message to the line card unit.
- Status information reported by the line card unit associated with the local master control unit and writing the status information to a status information table of the local storage unit, the status information including: an online status of the line card unit, and the The port status of the service port connected to the first switch chip on the line card unit.
- the information processing sub-unit 43 is further configured to: when receiving the telnet message received from the logical port, look up the status information of the line card unit associated with the local active main control unit in the status information table. And selecting one of the line card units whose online status is online and the port status is available as the designated line card unit;
- the message sending subunit 42 is configured to send the telnet message to the specified line card unit.
- the message sending subunit 42 sends the telnet message to the second switch chip in the specified line card unit through a service port connected to the specified line card unit on the first switch chip.
- a service port connected to the first switch chip.
- the first switch chip and the second switch chip are both Layer 2 switch chips.
- the information processing sub-unit 43 is further configured to receive the telnet message sent by the other line card unit, and process the telnet message by the CPU.
- the fifth embodiment of the present invention provides a line card unit, which is located in a routing device. As shown in FIG. 5, the line card unit includes: a message receiving subunit 51 and a message processing subunit 52;
- the message receiving subunit 51 is configured to receive a telnet message sent by the main control unit;
- the packet processing sub-unit 52 is configured to process the received telnet packet to perform management of the local routing device or management of other routing devices.
- the packet processing sub-unit 52 is configured to process the received telnet packet by:
- the packet processing sub-unit 52 parses the telnet packet, and when the telnet packet is sent to the local routing device, the line card unit sends the telnet packet to the packet.
- the CPU in the main control unit performs processing; when the telnet packet is confirmed as a packet for managing other routing devices, the line card unit forwards the telnet packet to other routing devices.
- the sixth embodiment of the present invention provides a routing device, which is shown in FIG. 6 and includes the main control unit provided in the fourth embodiment and the line card unit provided in the fifth embodiment.
- the first switch chip sub-unit 41, the message sending sub-unit 42, the message receiving sub-unit 51, and the message processing sub-unit 52 may be configured by a central processing unit (CPU, Central Processing Unit) in the routing device. ), Microprocessor (MPU), Digital Signal Processor (DSP) or Field-Programmable Gate Array (FPGA).
- CPU Central Processing Unit
- MPU Microprocessor
- DSP Digital Signal Processor
- FPGA Field-Programmable Gate Array
- the embodiment of the invention further provides a computer storage medium, the storage medium comprising a set of computer executable instructions for executing a routing device management method of the primary control unit.
- Embodiments of the present invention also provide a computer storage medium, the storage medium comprising a set of computer executable instructions for executing a routing device management method of a line card unit.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种路由设备管理方法,路由设备的主用主控单元的第一交换芯片上的逻辑端口接收远程登陆(telnet)报文;所述主用主控单元将所述telnet报文发送至路由设备的线卡单元。本发明同时还公开了一种主用主控单元和线卡单元。
Description
本发明涉及数据通信领域,具体涉及一种路由设备管理方法、主用主控单元和线卡单元。
现有的路由设备中主用主控的二层交换芯片上包括多个端口,其中一个端口用于连接中央处理器(CPU),其它端口为业务口,分别用于连接不同的线卡;为了实现对本地设备的管理和维护,通常路由设备是通过业务口上送报文到达网络处理器进而访问本地路由设备内部控制面,这样,为了实现对本地路由设备内部控制面的访问将占用一个业务口,从而耗费了当前系统的使用资源;而且现有的技术方案仅能实现对本地路由设备内部控制面的访问,而不能实现与其它路由设备内部控制面间通信,进而不能实现对其它路由设备的管理。
而为了实现路由设备内部控制面间通信,通常采用功能更强大的三层交换芯片替换原有的二层交换芯片,但这样将使成本更加高昂。
发明内容
为了解决现有存在的技术问题,本发明实施例期望提供一种路由设备管理方法、主用主控单元和线卡单元。
本发明实施例提供了一种路由设备管理方法,所述方法包括:
路由设备的主用主控单元的第一交换芯片上的逻辑端口接收远程登陆telnet报文;
所述主用主控单元将所述telnet报文发送至路由设备的线卡单元。
上述方案中,所述主用主控单元将所述telnet报文发送至线卡单元之前,
所述方法还包括:
主用主控单元接收与其相关联的线卡单元上报的状态信息,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态;
主用主控单元接收到所述状态信息后,将所述状态信息写入本地数据库的状态信息表中。
上述方案中,主用主控单元将所述telnet报文发送至路由设备的线卡单元,包括:
当收到telnet报文时,所述主用主控单元在所述状态信息表中查找与第一交换芯片相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;
所述主用主控单元将所述telnet报文发送给所述指定的线卡单元。
上述方案中,将所述telnet报文发送给所述指定的线卡单元,包括:
通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
上述方案中,所述第一交换芯片和第二交换芯片均为二层交换芯片。
本发明实施例提供了一种路由设备管理方法,所述方法包括:
线卡单元接收主用主控单元发送的远程登陆telnet报文;
所述线卡单元对接收到的telnet报文进行处理,以执行对本地路由设备的管理、或对其它路由设备的管理。
上述方案中,所述线卡单元对接收到的telnet报文进行处理,包括:
所述线卡单元对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
本发明实施例提供了一种主用主控单元,位于路由设备上,所述主用主控单元包括:第一交换芯片子单元和报文发送子单元;其中,
所述第一交换芯片子单元上设置有逻辑端口,所述逻辑端口配置为,接收远程登陆telnet报文;
所述报文发送子单元配置为,将所述telnet报文发送至所述路由设备的线卡单元。
上述方案中,所述主用主控单元还包括信息处理单元,配置为在报文发送子单元将所述telnet报文发送至线卡单元之前,接收与本地主用主控单元相关联的线卡单元上报的状态信息并将所述状态信息写入本地数据库的状态信息表中,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态。
上述方案中,所述信息处理单元还配置为,收到telnet报文时,在所述状态信息表中查找与本地主用主控单元相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;
所述报文发送子单元,配置为将所述telnet报文发送给所述指定的线卡单元。
上述方案中,所述报文发送子单元,通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
上述方案中,所述第一交换芯片和第二交换芯片均为二层交换芯片。
本发明实施例提供了一种线卡单元,位于路由设备中,所述线卡单元包括:报文接收子单元和报文处理子单元;其中,
所述报文接收子单元,配置为接收主用主控单元发送的远程登陆telnet报文;
所述报文处理子单元,配置为对接收到的telnet报文进行处理,以执行
对本地路由设备的管理、或对其它路由设备的管理。
上述方案中,所述报文处理子单元配置为通过以下方式对接收到的telnet报文进行处理:
所述报文处理子单元对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
本发明实施例还提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行主用主控单元的路由设备管理方法。
本发明实施例还提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行线卡单元的路由设备管理方法。
本发明实施例所提供的一种路由设备管理方法、主用主控单元和线卡单元,路由设备的主用主控单元的第一交换芯片上的逻辑端口接收远程登陆telnet报文;所述主用主控单元将所述telnet报文发送至路由设备的线卡单元。如此,能够通过主用主控单元的第一交换芯片上设置的逻辑端口接收telnet报文,从而相较于现有技术节省了第一交换芯片上的一个业务口;另一方面,在不借助于三层交换芯片的前提下,弥补了现有技术中不能将所述telnet报文转发至其它线卡,从而不能经由其它线卡将所述telnet报文转发至其它路由设备,从而实现对其它路由设备进行管理的缺陷。
图1为本发明实施例提供的路由设备管理方法流程图一;
图2为本发明实施例提供的路由设备管理方法流程图二;
图3为本发明实施例提供的路由设备管理方法流程图三;
图4为本发明实施例提供的主用主控单元的基本结构图;
图5为本发明实施例提供的线卡单元的基本结构图;
图6为本发明实施例提供的路由设备的基本结构图。
本发明实施例中,路由设备的主用主控单元的第一交换芯片上的逻辑端口接收远程登陆(telnet)报文;所述主用主控单元将所述telnet报文发送至路由设备的线卡单元。
下面通过附图及具体实施例对本发明做进一步的详细说明。
实施例一
本发明实施例一提供了一种路由设备管理方法,如图1所示,该方法包括以下步骤:
步骤101:路由设备的主用主控单元的第一交换芯片上的逻辑端口接收telnet报文;
在这一步骤之前,需要在路由设备主用主控单元的第一交换芯片上设置一个逻辑端口,所述逻辑端口用于接收telnet报文;所述telnet报文是通过用户操作来触发的telnet报文,用于实现对路由设备内部控制面的访问或对其它路由设备控制面的访问;所述主用主控单元关联至线卡单元,所述主用主控单元的第一交换芯片上设置有多个业务口,每个业务口分别与线卡单元中的第二交换芯片中的业务口相连接;其中,所述第一交换芯片和第二交换芯片均为二层交换芯片。
步骤102:所述主用主控单元将所述telnet报文发送至路由设备的线卡单元;
所述主用主控单元通过第一交换芯片上的业务口将所述telnet报文发送至与所述业务口相连接的线卡单元;
所述主用主控单元将所述telnet报文发送至线卡单元之前,所述方法还包括:
主用主控单元接收与其相关联的线卡单元上报的状态信息,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态;
主用主控单元接收到所述状态信息后,将所述状态信息写入本地数据库;
因此,每当收到一个telnet报文时,所述主用主控单元在本地数据库中查找相关联的线卡单元的状态信息,并从线卡单元在线、且所述线卡单元上与第一交换芯片相连接的业务口的端口状态为可用的线卡单元中选择一个作为指定的线卡单元;所述选择可以为随机选择,也可以将当前查找出的满足条件中的线卡单元中的第一个或最后一个线卡单元作为指定的线卡单元;
当确定了指定的线卡单元之后,所述主用主控单元对所述线卡单元与自身相连接的端口的虚拟局域网(VLAN,Virtual Local Area Network)标识进行配置,通过这种VLAN设置,可以使得所述telnet报文通过该配置了VLAN标识的端口发送出去,从而到达所述指定的线卡单元。
步骤103:所述线卡单元对接收到的telnet报文进行处理,以执行对所述路由设备的管理、或对其它路由设备的管理;
所述线卡单元接收到telnet报文之后,对所述报文进行解析,从而确定将所述telnet报文上送至所述路由设备的CPU,或者将所述telnet报文转发至与其级联的其它下一级路由设备。
当所述telnet报文为访问设备内部控制面的telnet报文时,所述线卡单元将所述telnet报文上送至本地路由设备的CPU进行处理;当所述telnet报文为与其它路由设备控制面进行通信的telnet报文时,所述线卡单元将所述telnet报文转发至其它路由设备;所述telnet报文中将封装待转发的其它路由设备的IP地址,线卡单元根据所述IP地址实现转发即可。
通过上述方案,用户可以实现对所述路由设备内部控制面的访问,从
而实现对本地路由设备的管理;也可以实现与所述路由设备相连接的其它路由设备之间的通信,从而实现对其它路由设备的管理。
步骤101之前,需要预先配置所述逻辑端口的网际协议(IP,InternetProtocol)地址,则用户可以远程登陆所述IP地址,即,使用telnet命令远程登陆所述IP地址,通过这一操作,将发送telnet报文至所述逻辑端口;且所述telnet报文为访问本地设备内部控制面的telnet报文;
当用户希望对其它路由设备进行管理时,只需要使用telnet命令远程登陆相应路由设备的IP地址即可,通过这一操作,也将发送telnet报文至所述逻辑端口,不同的是,所述telnet报文为访问其它路由设备内部控制面的telnet报文,因此,所述telnet报文中需要封装相应路由设备的IP地址。
从以上内容可以看出,通过本发明实施例提供的方法,用户既可以对本地路由设备的内部控制面进行访问,也可以对其它路由设备内部控制面进行访问。而从用户的角度来看,只需要使用telnet命令远程登陆相应IP地址即可轻松访问本地路由设备内部控制面或其它路由设备内部控制面,从而实现对本地路由设备或实现对与本地路由设备相连接的其它路由设备的管理。
而相较于现有技术,一方面来说,本发明实施例提供的设备管理方法,通过第一交换芯片上的逻辑端口接收telnet报文,从而实现对本地路由设备的管理,即,节省了原有的主用主控单元中二层交换芯片上的一个业务口;另一方面来说,本发明实施例提供的方法可以实现一台路由设备和其它路由设备控制面之间的通信,从而使用户可以从本地实现对其它路由设备的管理,而且这种实现并没有借助于三层交换芯片,因此,既实现了原有二层路由设备不具备的功能,又节省了成本。
实施例二
本发明实施例二提供了一种设备管理方法,如图2所示,该方法包括
以下步骤:
步骤201:路由设备的主用主控单元的第一交换芯片上的逻辑端口接收telnet报文;
在这一步骤之前,需要在第一交换芯片上设置逻辑端口,该逻辑端口用于接收telnet报文;所述第一交换芯片上还包括其它端口,其中一个端口连接路由设备中的CPU,其它为业务口,分别用于连接不同的线卡单元。
步骤202:所述主用主控单元将所述telnet报文发送至路由设备的线卡单元,以实现对所述路由设备的管理、或实现对其它路由设备的管理。
所述主用主控单元将所述telnet报文发送至线卡单元之前,所述方法还包括:
主用主控单元接收与其相关联的线卡单元上报的状态信息,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态;
主用主控单元接收到所述状态信息后,将所述状态信息写入本地数据库的状态信息表中。
主用主控单元将所述telnet报文发送至路由设备的线卡单元,包括:
当收到telnet报文时,所述主用主控单元在所述状态信息表中查找与第一交换芯片相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;
所述主用主控单元将所述telnet报文发送给所述指定的线卡单元。
将所述telnet报文发送给所述指定的线卡单元,包括:
通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
所述第一交换芯片和第二交换芯片均为二层交换芯片。
实施例三
本发明实施例三提供了一种路由设备管理方法,如图3所示,所述方法包括:
步骤301:线卡单元接收主用主控单元发送的telnet报文;
步骤302:所述线卡单元对接收到的telnet报文进行处理,以执行对本地路由设备的管理、或对其它路由设备的管理。
所述线卡单元通过以下方式对接收到的telnet报文进行处理:
所述线卡单元对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
实施例四
本发明实施例四提供了一种主用主控单元,位于路由设备上,如图4所示,所述主用主控单元包括:第一交换芯片子单元41和报文发送子单元42;其中,
所述第一交换芯片子单元41上设置有逻辑端口,所述逻辑端口配置为接收telnet报文;
所述报文发送子单元42配置为,将所述telnet报文发送至所述路由设备的线卡单元。
所述主用主控单元还包括信息处理子单元43,该信息处理子单元43通过CPU及存储单元实现,配置为在报文发送子单元将所述telnet报文发送至线卡单元之前,接收与本地主用主控单元相关联的线卡单元上报的状态信息并将所述状态信息写入本地存储单元的状态信息表中,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态。
所述信息处理子单元43还配置为,收到从所述逻辑端口接收到的telnet报文时,在所述状态信息表中查找与本地主用主控单元相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;
所述报文发送子单元42,配置为将所述telnet报文发送给所述指定的线卡单元。
所述报文发送子单元42,通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
所述第一交换芯片和第二交换芯片均为二层交换芯片。
所述信息处理子单元43,还配置为接收其它线卡单元发送的telnet报文,并通过CPU对所述telnet报文进行处理。
实施例五
本发明实施例五提供了一种线卡单元,位于路由设备中,如图5所示,所述线卡单元包括:报文接收子单元51和报文处理子单元52;其中,
所述报文接收子单元51,配置为接收主用主控单元发送的telnet报文;
所述报文处理子单元52,配置为对接收到的telnet报文进行处理,以执行对本地路由设备的管理、或对其它路由设备的管理。
所述报文处理子单元52配置为通过以下方式对接收到的telnet报文进行处理:
所述报文处理子单元52对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU进行处理;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
实施例六
本发明实施例六提供了一种路由设备,其结构如图6所示,包括上述实施例四提供的主用主控单元和实施例五提供的线卡单元。
在具体实施过程中,上述第一交换芯片子单元41、报文发送子单元42、报文接收子单元51和报文处理子单元52可以由路由设备内的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)来实现。
本发明实施例还提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行主用主控单元的路由设备管理方法。
本发明实施例还提供了一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行线卡单元的路由设备管理方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现
在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
Claims (16)
- 一种路由设备管理方法,所述方法包括:路由设备的主用主控单元的第一交换芯片上的逻辑端口接收远程登陆telnet报文;所述主用主控单元将所述telnet报文发送至路由设备的线卡单元。
- 根据权利要求1所述的方法,其中,所述主用主控单元将所述telnet报文发送至线卡单元之前,所述方法还包括:主用主控单元接收与其相关联的线卡单元上报的状态信息,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态;主用主控单元接收到所述状态信息后,将所述状态信息写入本地数据库的状态信息表中。
- 根据权利要求2所述的方法,其中,主用主控单元将所述telnet报文发送至路由设备的线卡单元,包括:当收到telnet报文时,所述主用主控单元在所述状态信息表中查找与第一交换芯片相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;所述主用主控单元将所述telnet报文发送给所述指定的线卡单元。
- 根据权利要求3所述的方法,其中,将所述telnet报文发送给所述指定的线卡单元,包括:通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
- 根据权利要求4所述的方法,其中,所述第一交换芯片和第二交换芯片均为二层交换芯片。
- 一种路由设备管理方法,所述方法包括:线卡单元接收主用主控单元发送的远程登陆telnet报文;所述线卡单元对接收到的telnet报文进行处理,以执行对本地路由设备的管理、或对其它路由设备的管理。
- 根据权利要求6所述的方法,其中,所述线卡单元对接收到的telnet报文进行处理,包括:所述线卡单元对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
- 一种主用主控单元,位于路由设备上,所述主用主控单元包括:第一交换芯片子单元和报文发送子单元;其中,所述第一交换芯片子单元上设置有逻辑端口,所述逻辑端口配置为,接收远程登陆telnet报文;所述报文发送子单元配置为,将所述telnet报文发送至所述路由设备的线卡单元。
- 根据权利要求8所述的装置,其中,所述主用主控单元还包括信息处理单元,配置为在报文发送子单元将所述telnet报文发送至线卡单元之前,接收与本地主用主控单元相关联的线卡单元上报的状态信息并将所述状态信息写入本地数据库的状态信息表中,所述状态信息包括:线卡单元的在线状态、及所述线卡单元上与第一交换芯片相连接的业务口的端口状态。
- 根据权利要求9所述的主用主控单元,其中,所述信息处理单元还配置为,收到telnet报文时,在所述状态信息表中查找与本地主用主控单元相关联的线卡单元的状态信息,并从在线状态为在线、且端口状态为可用的线卡单元中选择一个作为指定的线卡单元;所述报文发送子单元,配置为将所述telnet报文发送给所述指定的线卡单元。
- 根据权利要求10所述的主用主控单元,其中,所述报文发送子单元,通过第一交换芯片上与所述指定的线卡单元相连接的业务口,将所述telnet报文发送至所述指定的线卡单元中的第二交换芯片上与所述第一交换芯片相连接的业务口。
- 根据权利要求11所述的主用主控单元,其中,所述第一交换芯片和第二交换芯片均为二层交换芯片。
- 一种线卡单元,位于路由设备中,所述线卡单元包括:报文接收子单元和报文处理子单元;其中,所述报文接收子单元,配置为接收主用主控单元发送的远程登陆telnet报文;所述报文处理子单元,配置为对接收到的telnet报文进行处理,以执行对本地路由设备的管理、或对其它路由设备的管理。
- 根据权利要求13所述的线卡单元,其中,所述报文处理子单元配置为通过以下方式对接收到的telnet报文进行处理:所述报文处理子单元对所述telnet报文进行解析,当确认所述telnet报文为对本地路由设备进行管理的报文时,所述线卡单元将所述telnet报文上送至主用主控单元中的CPU;当确认所述telnet报文为对其它路由设备进行管理的报文时,所述线卡单元将所述telnet报文转发至其它路由设备。
- 一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行权利要求1-5任一项所述的路由设备管理方法。
- 一种计算机存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行权利要求6-7任一项所述的路由设备管理方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410596655.X | 2014-10-29 | ||
CN201410596655.XA CN105634769A (zh) | 2014-10-29 | 2014-10-29 | 一种路由设备管理方法、主用主控单元和线卡单元 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016065769A1 true WO2016065769A1 (zh) | 2016-05-06 |
Family
ID=55856488
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/072449 WO2016065769A1 (zh) | 2014-10-29 | 2015-02-06 | 一种路由设备管理方法、主用主控单元和线卡单元 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105634769A (zh) |
WO (1) | WO2016065769A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060165077A1 (en) * | 2005-01-25 | 2006-07-27 | Samsung Electronics Co., Ltd. | Apparatus and method for architecturally redundant ethernet |
CN101060460A (zh) * | 2006-06-09 | 2007-10-24 | 华为技术有限公司 | 防止以太网链路聚合逻辑端口报文丢失的方法及通信设备 |
CN101141402A (zh) * | 2007-09-30 | 2008-03-12 | 华为技术有限公司 | 串口复用的方法和装置 |
CN101247274A (zh) * | 2008-02-28 | 2008-08-20 | 华为技术有限公司 | 获取串口信息的方法和设备 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163093B (zh) * | 2006-10-12 | 2011-07-13 | 中兴通讯股份有限公司 | 在综合接入设备上实现集中组播管理的方法 |
CN1964286B (zh) * | 2006-12-13 | 2012-02-29 | 杭州华三通信技术有限公司 | 具有双cpu的主控设备 |
CN101110768B (zh) * | 2007-06-20 | 2010-10-06 | 杭州华三通信技术有限公司 | 数据通信方法、系统、主控卡及线卡 |
CN102968399A (zh) * | 2012-10-22 | 2013-03-13 | 华为技术有限公司 | 多核处理器及其管理网口的复用方法 |
-
2014
- 2014-10-29 CN CN201410596655.XA patent/CN105634769A/zh active Pending
-
2015
- 2015-02-06 WO PCT/CN2015/072449 patent/WO2016065769A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060165077A1 (en) * | 2005-01-25 | 2006-07-27 | Samsung Electronics Co., Ltd. | Apparatus and method for architecturally redundant ethernet |
CN101060460A (zh) * | 2006-06-09 | 2007-10-24 | 华为技术有限公司 | 防止以太网链路聚合逻辑端口报文丢失的方法及通信设备 |
CN101141402A (zh) * | 2007-09-30 | 2008-03-12 | 华为技术有限公司 | 串口复用的方法和装置 |
CN101247274A (zh) * | 2008-02-28 | 2008-08-20 | 华为技术有限公司 | 获取串口信息的方法和设备 |
Also Published As
Publication number | Publication date |
---|---|
CN105634769A (zh) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108243106B (zh) | 控制网络切片的方法、转发设备、控制设备和通信系统 | |
JP6490205B2 (ja) | フローエントリ構成の方法、装置及びシステム | |
CN107078974B (zh) | 网络交换机、由网络交换机执行的方法以及存储器资源 | |
US10587494B2 (en) | Network control method and apparatus | |
JP5792894B2 (ja) | ポート拡張トポロジ情報の取得用方法、システム及び制御ブリッジ並びにアップリンクポートの処理方法及びシステム | |
CN109361606B (zh) | 一种报文处理系统及网络设备 | |
CN104468368B (zh) | 配置bgp邻居的方法及装置 | |
US20170031704A1 (en) | Network port profile for virtual machines using network controller | |
JP5866083B1 (ja) | ソフトウェア定義ネットワークにおける制御方法、制御装置およびプロセッサ | |
CN104852840B (zh) | 一种控制虚拟机之间互访的方法及装置 | |
US10050859B2 (en) | Apparatus for processing network packet using service function chaining and method for controlling the same | |
EP3200399B1 (en) | Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling | |
WO2021128927A1 (zh) | 报文的处理方法及装置、存储介质和电子装置 | |
WO2016008379A1 (zh) | 存储阵列自动化配置方法、装置及存储系统 | |
WO2015106623A1 (zh) | 一种配置、下发流表项的方法及装置 | |
WO2018161795A1 (zh) | 一种路由优先级配置方法、设备以及控制器 | |
US20140301226A1 (en) | Apparatus and method for network monitoring and packet inspection | |
WO2014064976A1 (ja) | ネットワーク機器、制御方法、及びプログラム | |
CN108134705B (zh) | 一种dcn管理方法、网元及计算机存储介质 | |
CN109379239A (zh) | 一种OpenStack环境中配置接入交换机的方法及装置 | |
CN108512737B (zh) | 一种数据中心ip层互联的方法和sdn控制器 | |
WO2017114128A1 (zh) | 一种报文处理方法及装置 | |
CN104660506B (zh) | 一种数据包转发的方法、装置及系统 | |
WO2018001080A1 (zh) | 快速重路由的转发方法及装置、网络设备 | |
WO2016065769A1 (zh) | 一种路由设备管理方法、主用主控单元和线卡单元 |
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: 15854017 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: 15854017 Country of ref document: EP Kind code of ref document: A1 |