WO2010115329A1 - Photoelectric interface automatic switching method and device - Google Patents

Photoelectric interface automatic switching method and device Download PDF

Info

Publication number
WO2010115329A1
WO2010115329A1 PCT/CN2009/073601 CN2009073601W WO2010115329A1 WO 2010115329 A1 WO2010115329 A1 WO 2010115329A1 CN 2009073601 W CN2009073601 W CN 2009073601W WO 2010115329 A1 WO2010115329 A1 WO 2010115329A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical module
interface
module
switching
optical
Prior art date
Application number
PCT/CN2009/073601
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 WO2010115329A1 publication Critical patent/WO2010115329A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for automatically switching an optical interface.
  • an Ethernet switching device needs to provide both optical port and electrical port interface types.
  • the existing Ethernet switching device adopts two PHYs (physical layer, ie, physical interface transceiver) chips to provide optical ports and electrical ports respectively, or uses a PHY chip with photoelectric properties to perform photoelectric switching by software. Provide optical and electrical ports.
  • FIG. 1 is a schematic diagram showing a design scheme corresponding to a media interface type for each interface in the prior art.
  • FIG. 2 is a schematic diagram showing a design scheme for using two interface types corresponding to each interface in the prior art.
  • the design uses software management for optoelectronic interface conversion to provide optoelectronic interface support.
  • the present invention is directed to a method and apparatus for automatically switching an optical interface, which is used to solve the problem that the total number of optical interfaces existing in the prior art is uncertain, and thus cannot meet the diversification requirements of interfaces in a real network. problem.
  • the object of the present invention is mainly achieved by the following technical solutions: According to an aspect of the present aspect, a method for automatically switching an optical interface is provided.
  • the method for automatically switching the photoelectric interface of the present invention comprises the following steps: Step A: Creating and starting an optical interface automatic switching detection task, periodically detecting the type of the in-situ optical module; Step B: according to the detected in-situ light
  • the type of the module is used to switch the photoelectric attribute of the physical interface where the in-situ optical module is located.
  • the above photoelectric interface is an Ethernet photoelectric interface.
  • step A specifically includes: creating and starting an automatic switching detection task of the Ethernet optical interface; performing round robin on multiple physical interfaces to determine whether the current physical interface has an optical module in place: if the current physical interface has an optical module In position, it is determined whether the in-situ optical module is a normal optical module or an electro-optical module, and then step B is performed; if no optical module is in place on the current physical interface, the round robin is continued.
  • the step B includes: if the in-situ optical module is an electro-optic module, configuring the attribute of the physical interface where the in-situ optical module is located as an electrical port; if the in-situ optical module is a common optical module, The attribute of the physical interface where the in-situ optical module resides is configured as an optical interface.
  • an apparatus for automatically switching an optical interface is also provided.
  • the device for automatically switching the photoelectric interface comprises: an optical interface automatic detection module and a photoelectric property switching module, wherein the photoelectric interface automatic detection module is used for creating and starting an optical interface automatic switching detection task, and timing detection In the type of the bit optical module, and notifying the detected type of the in-situ optical module to the optoelectronic attribute switching module; the optoelectronic attribute switching module, configured to: according to the type of the received in-situ optical module, the in-situ optical module The physical interface on which the optical interface is switched.
  • the above photoelectric interface is an Ethernet photoelectric interface.
  • the optical interface automatic detection module specifically includes: a detecting unit and a notification sending unit, and a towel detecting unit configured to create and start an automatic switching detection task of the Ethernet optical interface, and perform round robining on multiple physical interfaces. If the current physical interface has an optical module in place, it is determined whether the optical module is in the normal optical module or the electro-optical module, and the notification sending unit is triggered; if the current physical interface has no optical module In the bit, the rotation is continued; the notification sending unit is configured to notify the photoelectric attribute switching module of the type of the in-situ optical module.
  • the photoelectric property switching module specifically includes: a notification receiving unit and a switching unit, wherein the notification receiving unit is configured to receive the notification of the type of the in-situ optical module, and trigger the switching unit; and the switching unit, if the in-situ optical module It is an electro-optical module, and the switching unit is configured to configure an attribute of the physical interface where the in-situ optical module is located as an electrical port; if the in-situ optical module is a common optical module, the switching unit is configured to use the physical interface where the in-situ optical module is located The properties are configured as optical ports.
  • FIG. 1 is a schematic diagram of a design scheme corresponding to a media interface type using each interface in the prior art
  • 2 is a schematic diagram of a design scheme for using two interface types corresponding to each interface in the prior art
  • FIG. 3 is a schematic flowchart of a method for automatically switching an optical interface according to an embodiment of the present invention
  • FIG. 4 is a photoelectric interface according to an embodiment of the present invention
  • Schematic diagram of the device for automatic switching. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the embodiment of the present invention, a detection task is automatically switched by creating and starting an optoelectronic interface, and the type of the in-situ optical module is periodically detected; and then the type of the in-situ optical module detected is detected.
  • Step 301 Create an Ethernet optical interface automatic switching detection task, and detect the switching of the Ethernet optical interface.
  • the detection time of the task can be set according to the actual performance requirements of the device.
  • Step 302 Start the photoelectric attribute switching process, and prepare to switch the photoelectric interface;
  • Step 303 In the process of automatically detecting the photoelectric interface, the round-robin The physical interface determines whether an optical module is in place.
  • Step 304 Is the optical module in place?
  • Step 305 Read the type of the in-situ optical module inserted into the physical interface; Step 306: Is the current in-situ optical module an ordinary optical module or an electro-optical module? If it is an electro-optical module, go to step 307; if it is a normal optical module, go to step 308; Step 307: Configure the physical interface attribute of the in-situ optical module as an electrical port; Step 308: Place the in-situ optical module The physical interface attribute is configured as an optical port.
  • FIG. 4 The device according to the embodiment of the present invention will be described in detail below with reference to FIG. As shown in FIG. 4, FIG.
  • FIG. 4 is a schematic structural diagram of an apparatus for automatically switching an optical interface according to an embodiment of the present invention, which may specifically include: an optical interface automatic detection module and a photoelectric attribute switching module, wherein an optical interface automatic detection module is created and A timing detection task is started, and the type of the in-situ optical module is detected in the task, and then the photoelectric attribute switching module is notified to switch the interface type; the photoelectric attribute switching module automatically detects the type of the in-situ optical module notified by the module according to the photoelectric interface, The optical interface of the physical interface where the optical module is located is switched, and an appropriate interface type is provided.
  • the photoelectric interface automatic detecting unit specifically includes: a detecting unit and a notification sending unit.
  • the photoelectric attribute switching module specifically includes: a notification receiving unit and a switching unit.
  • the detecting unit creates an Ethernet optical interface automatic switching detection task to detect the switching of the Ethernet optical interface, and the detection time of the task can be set according to the actual performance requirements of the device; If the optical module is in the current physical interface, the current optical module is in the position of the optical module. The current optical module is in the normal optical module or the electro-optical module.
  • the notification sending unit will be in the current position. The type of the optical module is notified to the notification receiving unit of the optoelectronic attribute switching module; if no optical module is in place on the current physical interface, the round robin is continued.
  • the embodiments of the present invention provide a method and an apparatus for automatically switching an optical interface. On the basis of the existing Ethernet switching device, the function of automatically switching the optical interface is added, which not only ensures that multiple devices are provided on a limited device panel.
  • the photoelectric interface, and the actual number of photoelectric interfaces can be changed according to the needs of the site, which is convenient and flexible. Since the embodiment of the present invention is implemented on the basis of the existing hardware device, the cost of the software is not increased greatly without adding additional cost, but the purpose of flexibly providing the optical interface of the device is flexibly adapted to the optical interface of the engineering site. The number of uncertain requirements. P
  • WO 2010/115329 is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily within the technical scope disclosed by the present invention. All changes or substitutions are contemplated to be within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Abstract

A photoelectric interface automatic switching method and device are provided. The method comprises: creating and starting up a photoelectric interface automatic switching detection task for periodically detecting the type of an in-situation optical module; according to the detected type of the in-situation optical module, performing the photoelectric attribute switching for the physical interface where the in-situation optical module is positioned. The device is simple and flexible in configuration, easy to be expanded and be maintained, not need to increase the additional hardware cost and the software cost, thereby improving the capability and the quantity of the photoelectric interfaces provided by a communication device.

Description

光电接口自动切换的方法及装置  Method and device for automatically switching photoelectric interface
技术领域 本发明涉及通信技术领域,尤其涉及一种光电接口自动切换的方法及装 置。 背景技术 目前, 为了满足传输的要求, 以太网交换设备需要同时提供光口和电口 两种接口类型。 现有以太网交换设备的做法是使用两个 PHY (物理层 , 即物理接口收 发器) 芯片分别提供光口和电口, 或是使用一个同时具备光电属性的 PHY 芯片, 通过软件进行光电切换来提供光口和电口。 图 1 示出了现有技术中使用每个接口对应一种媒体接口类型的设计方 案示意图。 该方案虽然提供了光电接口的支持, 但是成本增加, 同时由于不 知道设备运行网络中所需要的光口和电口的数量 , 导致设计的光口和电口数 量在实际网络中存在浪费或是不足的潜在缺陷。 图 2 示出了现有技术中使用每个接口对应两种接口类型的设计方案示 意图。该设计方案使用软件管理进行光电接口转换,从而提供光电接口支持。 该方案虽然成本没有提高 , 但是由于交换设备的面板所能容纳的接口总数一 定 , 并且一个接口只能使用一种接口类型与其他设备连接 , 导致该设备能与 其他设备连接的实际接口总数减少了一半。 总之, 现有设备所使用的设计方案, 没有充分考虑到与其他设备互连使 用的光电接口总数是变化的 ,这样就无法满足现实网络中的接口多样化需要。 发明内容 鉴于上述的分析, 本发明旨在提供一种光电接口自动切换的方法及装 置, 用以解决现有技术中存在的光电接口总数不确定, 从而无法满足现实网 络中的接口多样化需要的问题。 本发明的目的主要是通过以下技术方案实现的: 根据本方面的一个方面, 提供了一种光电接口自动切换的方法。 居本发明的光电接口自动切换的方法, 包括以下步骤: 步骤 A: 创建并启动光电接口自动切换侦测任务, 定时侦测在位光模块 的类型; 步骤 B: 根据侦测到的在位光模块的类型, 对该在位光模块所在的物理 接口进行光电属性切换。 优选地, 上述光电接口为以太网光电接口。 进一步地, 上述步骤 A具体包括: 创建并启动以太网光电接口自动切换侦测任务; 对多个物理接口依次进行轮循, 判断当前物理接口是否有光模块在位: 如果当前物理接口有光模块在位 , 判断该在位光模块是普通光模块还是电光 模块, 然后执行步骤 B; 如果当前物理接口没有光模块在位, 则继续轮循。 进一步地, 上述步骤 B具体包括: 如果该在位光模块是电光模块,则将该在位光模块所在的物理接口的属 性配置成电口; 如果该在位光模块是普通光模块, 则将该在位光模块所在的 物理接口的属性配置为光口。 才艮据本发明的另一个方面, 还提供了一种光电接口自动切换的装置。 根据本发明的光电接口自动切换的装置, 包括: 光电接口自动侦测模块 和光电属性切换模块, 其中, 光电接口自动侦测模块, 用于创建并启动光电接口自动切换侦测任务, 定时侦测在位光模块的类型 , 并将侦测到的在位光模块的类型通知给光电属 性切换模块; 光电属性切换模块, 用于根据接收到的在位光模块的类型, 对该在位光 模块所在的物理接口进行光电属性切换。 优选地, 上述光电接口为以太网光电接口。 进一步地,光电接口自动侦测模块具体包括:侦测单元和通知发送单元, 其巾, 侦测单元 , 用于创建并启动以太网光电接口自动切换侦测任务, 对多个 物理接口进行轮循, 判断当前物理接口是否有光模块在位: 如果当前物理接 口有光模块在位 , 则判断该在位光模块是普通光模块还是电光模块 , 并触发 通知发送单元; 如果当前物理接口没有光模块在位, 则继续轮循; 通知发送单元, 用于将该在位光模块的类型通知给光电属性切换模块。 进一步地, 光电属性切换模块具体包括: 通知接收单元和切换单元, 其 中, 通知接收单元,用于接收该在位光模块的类型的通知,并触发切换单元; 切换单元, 如果该在位光模块是电光模块, 切换单元用于将该在位光模 块所在的物理接口的属性配置成电口; 如果该在位光模块是普通光模块, 切 换单元用于将该在位光模块所在的物理接口的属性配置为光口。 本发明有益效果如下: 采用本发明这种技术方案, 配置筒单灵活, 易扩展和维护, 不需要增加 额外的硬件成本, 对软件成本增加也不大, 提高了以太网交换设备提供光电 接口的能力和数量。 本发明的其他特征和优点将在随后的说明书中阐述, 并且, 部分的从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。 附图说明 附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1为现有技术中 ,使用每个接口对应一种媒体接口类型的设计方案示 意图; 图 2 为现有技术中, 使用每个接口对应两种接口类型的设计方案示意 图; 图 3为本发明实施例的光电接口自动切换的方法的流程示意图; 图 4为本发明实施例的光电接口自动切换的装置的结构示意图。 具体实施方式 功能相克述 在本发明实施例中, 通过创建并启动光电接口自动切换侦测任务, 定时 侦测在位光模块的类型; 再才艮据侦测到的在位光模块的类型, 对该在位光模 块所在的物理接口进行光电属性切换 , 借助光电接口自动切换的装置 , 来满 足现实网络中的接口多样化需要。 下面结合附图来具体描述本发明的优先实施例, 其中, 附图构成本申请 一部分, 并与本发明的实施例一起用于阐释本发明的原理。 为了清楚和筒化 目的, 当其可能使本发明的主题模糊不清时, 将省略本文所描述的装置中已 知功能和结构的详细具体说明。 首先结合附图 3 对本发明实施例的光电接口自动切换的方法进行详细 描述。 图 3 为本发明实施例上述方法的流程示意图, 具体可以包括以下步骤 (步骤 301 -步骤 308 ): 步骤 301 : 创建以太网光电接口自动切换侦测任务, 对以太网光电接口 的切换进行侦测, 任务的侦测时间可以才艮据设备的实际性能要求进行设置; 步骤 302: 启动光电属性切换进程, 准备进行光电接口切换; 步骤 303: 在光电接口自动侦测进程中 , 对轮循到的物理接口判断是否 有光模块在位; 步骤 304:光模块是否在位? 如果是,执行步骤 305 ,否则转到步骤 303; 步骤 305: 读取插入该物理接口的在位光模块的类型; 步骤 306: 当前在位光模块是普通光模块还是电光模块? 如果是电光模 块, 则执行步骤 307; 如果是普通光模块, 则执行步骤 308; 步骤 307: 将该在位光模块所在的物理接口属性配置成电口; 步骤 308: 将该在位光模块所在的物理接口属性配置为光口。 下面结合附图 4对本发明实施例所述装置进行详细说明。 如图 4所示,图 4为本发明实施例的光电接口自动切换的装置的结构示 意图, 具体可以包括: 光电接口自动侦测模块和光电属性切换模块, 其中, 光电接口自动侦测模块创建并启动一个定时侦测任务,在任务内侦测在 位光模块的类型, 然后通知光电属性切换模块对接口类型进行切换; 光电属 性切换模块根据光电接口自动侦测模块通知的在位光模块类型, 对该在位光 模块所在的物理接口进行光电属性的切换, 提供适当的接口类型。 其中, 光电接口自动侦测单元具体包括: 侦测单元和通知发送单元; 光 电属性切换模块具体包括: 通知接收单元和切换单元。 首先, 侦测单元创建以太网光电接口自动切换侦测任务, 对以太网光电 接口的切换进行侦测, 任务的侦测时间可以根据设备的实际性能要求进行设 置; 对多个物理接口进行轮循, 判断当前物理接口上是否有光模块在位, 如 果当前物理接口上有光模块在位时 , 判断当前在位光模块的类型一普通光模 块还是电光模块 , 并由通知发送单元将当前在位光模块的类型通知给光电属 性切换模块的通知接收单元; 如果当前物理接口上没有光模块在位, 则继续 轮循。 通知接收单元接收当前在位光模块的类型的通知, 并触发切换单元; 如果当前在位光模块是电光模块, 切换单元将该在位光模块所在的物理接口 的属性配置成电口; 如果当前在位光模块是普通光模块 , 切换单元将该在位 光模块所在的物理接口的属性配置为光口。 总之, 本发明实施例提供了一种光电接口自动切换的方法及装置, 在现 有以太网交换设备基础上, 增加了光电接口自动切换的功能, 不但能够保证 在有限的设备面板上提供多个光电接口 , 而且光电接口的实际数量可以根据 现场的需求进行变化, 方便灵活。 由于本发明实施例是在现有的硬件设备基 础上实现的, 不增加额外的成本, 对软件的成本增加也不大, 但却有效的达 到灵活提供设备光电接口的目的,适应工程现场光电接口数量不确定的要求。 PThe present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for automatically switching an optical interface. At present, in order to meet the requirements of transmission, an Ethernet switching device needs to provide both optical port and electrical port interface types. The existing Ethernet switching device adopts two PHYs (physical layer, ie, physical interface transceiver) chips to provide optical ports and electrical ports respectively, or uses a PHY chip with photoelectric properties to perform photoelectric switching by software. Provide optical and electrical ports. FIG. 1 is a schematic diagram showing a design scheme corresponding to a media interface type for each interface in the prior art. Although the solution provides the support of the optoelectronic interface, but the cost increases, and because the number of optical ports and electrical ports required in the network of the device is not known, the number of optical ports and electrical ports designed is wasteful in the actual network or Insufficient potential defects. FIG. 2 is a schematic diagram showing a design scheme for using two interface types corresponding to each interface in the prior art. The design uses software management for optoelectronic interface conversion to provide optoelectronic interface support. Although the cost of the solution is not improved, the total number of interfaces that can be accommodated by the panel of the switching device is limited, and the total number of interfaces that can be connected to other devices can be reduced by using one interface type. half. In short, the design of the existing equipment does not fully take into account that the total number of optoelectronic interfaces used for interconnection with other devices is changed, so that the interface diversification needs in the real network cannot be met. SUMMARY OF THE INVENTION In view of the above analysis, the present invention is directed to a method and apparatus for automatically switching an optical interface, which is used to solve the problem that the total number of optical interfaces existing in the prior art is uncertain, and thus cannot meet the diversification requirements of interfaces in a real network. problem. The object of the present invention is mainly achieved by the following technical solutions: According to an aspect of the present aspect, a method for automatically switching an optical interface is provided. The method for automatically switching the photoelectric interface of the present invention comprises the following steps: Step A: Creating and starting an optical interface automatic switching detection task, periodically detecting the type of the in-situ optical module; Step B: according to the detected in-situ light The type of the module is used to switch the photoelectric attribute of the physical interface where the in-situ optical module is located. Preferably, the above photoelectric interface is an Ethernet photoelectric interface. Further, the foregoing step A specifically includes: creating and starting an automatic switching detection task of the Ethernet optical interface; performing round robin on multiple physical interfaces to determine whether the current physical interface has an optical module in place: if the current physical interface has an optical module In position, it is determined whether the in-situ optical module is a normal optical module or an electro-optical module, and then step B is performed; if no optical module is in place on the current physical interface, the round robin is continued. Further, the step B includes: if the in-situ optical module is an electro-optic module, configuring the attribute of the physical interface where the in-situ optical module is located as an electrical port; if the in-situ optical module is a common optical module, The attribute of the physical interface where the in-situ optical module resides is configured as an optical interface. According to another aspect of the present invention, an apparatus for automatically switching an optical interface is also provided. The device for automatically switching the photoelectric interface according to the present invention comprises: an optical interface automatic detection module and a photoelectric property switching module, wherein the photoelectric interface automatic detection module is used for creating and starting an optical interface automatic switching detection task, and timing detection In the type of the bit optical module, and notifying the detected type of the in-situ optical module to the optoelectronic attribute switching module; the optoelectronic attribute switching module, configured to: according to the type of the received in-situ optical module, the in-situ optical module The physical interface on which the optical interface is switched. Preferably, the above photoelectric interface is an Ethernet photoelectric interface. Further, the optical interface automatic detection module specifically includes: a detecting unit and a notification sending unit, and a towel detecting unit configured to create and start an automatic switching detection task of the Ethernet optical interface, and perform round robining on multiple physical interfaces. If the current physical interface has an optical module in place, it is determined whether the optical module is in the normal optical module or the electro-optical module, and the notification sending unit is triggered; if the current physical interface has no optical module In the bit, the rotation is continued; the notification sending unit is configured to notify the photoelectric attribute switching module of the type of the in-situ optical module. Further, the photoelectric property switching module specifically includes: a notification receiving unit and a switching unit, wherein the notification receiving unit is configured to receive the notification of the type of the in-situ optical module, and trigger the switching unit; and the switching unit, if the in-situ optical module It is an electro-optical module, and the switching unit is configured to configure an attribute of the physical interface where the in-situ optical module is located as an electrical port; if the in-situ optical module is a common optical module, the switching unit is configured to use the physical interface where the in-situ optical module is located The properties are configured as optical ports. The beneficial effects of the present invention are as follows: With the technical solution of the present invention, the configuration of the single package is flexible, easy to expand and maintain, and no additional hardware cost is required, and the software cost is not increased greatly, and the optical switch interface of the Ethernet switching device is provided. Ability and quantity. Other features and advantages of the invention will be set forth in the description in the description which follows. The objectives and other advantages of the invention will be realized and attained by the <RTI The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawings: FIG. 1 is a schematic diagram of a design scheme corresponding to a media interface type using each interface in the prior art; 2 is a schematic diagram of a design scheme for using two interface types corresponding to each interface in the prior art; FIG. 3 is a schematic flowchart of a method for automatically switching an optical interface according to an embodiment of the present invention; FIG. 4 is a photoelectric interface according to an embodiment of the present invention; Schematic diagram of the device for automatic switching. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the embodiment of the present invention, a detection task is automatically switched by creating and starting an optoelectronic interface, and the type of the in-situ optical module is periodically detected; and then the type of the in-situ optical module detected is detected. The photoelectric attribute switching of the physical interface where the in-situ optical module is located is performed, and the device that automatically switches by the photoelectric interface is used to meet the diversification requirements of the interface in the real network. The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings, in which FIG. Detailed descriptions of well-known functions and structures in the devices described herein will be omitted when they may obscure the subject matter of the present invention for the purpose of clarity and clarity. First, a method for automatically switching an optical interface according to an embodiment of the present invention will be described in detail with reference to FIG. FIG. 3 is a schematic flowchart of the foregoing method according to an embodiment of the present invention, which may specifically include the following steps (step 301 - step 308): Step 301: Create an Ethernet optical interface automatic switching detection task, and detect the switching of the Ethernet optical interface. The detection time of the task can be set according to the actual performance requirements of the device. Step 302: Start the photoelectric attribute switching process, and prepare to switch the photoelectric interface; Step 303: In the process of automatically detecting the photoelectric interface, the round-robin The physical interface determines whether an optical module is in place. Step 304: Is the optical module in place? If yes, go to step 305, otherwise go to step 303; Step 305: Read the type of the in-situ optical module inserted into the physical interface; Step 306: Is the current in-situ optical module an ordinary optical module or an electro-optical module? If it is an electro-optical module, go to step 307; if it is a normal optical module, go to step 308; Step 307: Configure the physical interface attribute of the in-situ optical module as an electrical port; Step 308: Place the in-situ optical module The physical interface attribute is configured as an optical port. The device according to the embodiment of the present invention will be described in detail below with reference to FIG. As shown in FIG. 4, FIG. 4 is a schematic structural diagram of an apparatus for automatically switching an optical interface according to an embodiment of the present invention, which may specifically include: an optical interface automatic detection module and a photoelectric attribute switching module, wherein an optical interface automatic detection module is created and A timing detection task is started, and the type of the in-situ optical module is detected in the task, and then the photoelectric attribute switching module is notified to switch the interface type; the photoelectric attribute switching module automatically detects the type of the in-situ optical module notified by the module according to the photoelectric interface, The optical interface of the physical interface where the optical module is located is switched, and an appropriate interface type is provided. The photoelectric interface automatic detecting unit specifically includes: a detecting unit and a notification sending unit. The photoelectric attribute switching module specifically includes: a notification receiving unit and a switching unit. First, the detecting unit creates an Ethernet optical interface automatic switching detection task to detect the switching of the Ethernet optical interface, and the detection time of the task can be set according to the actual performance requirements of the device; If the optical module is in the current physical interface, the current optical module is in the position of the optical module. The current optical module is in the normal optical module or the electro-optical module. The notification sending unit will be in the current position. The type of the optical module is notified to the notification receiving unit of the optoelectronic attribute switching module; if no optical module is in place on the current physical interface, the round robin is continued. Notifying the receiving unit of the notification of the type of the current in-situ optical module, and triggering the switching unit; if the current in-situ optical module is an electro-optic module, the switching unit configures the attribute of the physical interface where the in-situ optical module is located as an electrical port; The in-situ optical module is a common optical module, and the switching unit configures the attribute of the physical interface where the in-situ optical module is located as an optical port. In summary, the embodiments of the present invention provide a method and an apparatus for automatically switching an optical interface. On the basis of the existing Ethernet switching device, the function of automatically switching the optical interface is added, which not only ensures that multiple devices are provided on a limited device panel. The photoelectric interface, and the actual number of photoelectric interfaces can be changed according to the needs of the site, which is convenient and flexible. Since the embodiment of the present invention is implemented on the basis of the existing hardware device, the cost of the software is not increased greatly without adding additional cost, but the purpose of flexibly providing the optical interface of the device is flexibly adapted to the optical interface of the engineering site. The number of uncertain requirements. P
WO 2010/115329 以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应该以权利要求书的保护范围为准。 WO 2010/115329 is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily within the technical scope disclosed by the present invention. All changes or substitutions are contemplated to be within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claim
1. 一种光电接口自动切换的方法, 其特征在于, 所述方法包括: A method for automatically switching an optical interface, the method comprising:
步骤 A: 创建并启动光电接口自动切换侦测任务, 定时侦测在位 光模块的类型;  Step A: Create and start an optical interface automatic switching detection task, and periodically detect the type of the in-situ optical module;
步骤 B: 才艮据侦测到的在位光模块的类型, 对该在位光模块所在 的物理接口进行光电属性切换。  Step B: The photoelectric attribute switching of the physical interface where the in-situ optical module is located is performed according to the detected type of the in-situ optical module.
2. 根据权利要求 1所述的方法, 其特征在于, 所述光电接口为以太网光 电接口。 2. The method according to claim 1, wherein the photoelectric interface is an Ethernet optical interface.
3. 才艮据权利要求 2所述的方法, 其特征在于, 3. The method according to claim 2, characterized in that
所述步骤 A具体包括:创建并启动以太网光电接口自动切换侦测 任务; 对多个物理接口依次进行轮循 , 判断当前物理接口是否有光模 块在位: 如果当前物理接口有光模块在位 , 判断该在位光模块是普通 光模块还是电光模块, 然后执行步骤 B; 如果当前物理接口没有光模 块在位, 则继续轮循。  The step A includes: creating and starting an Ethernet optical interface automatic switching detection task; performing round robin on multiple physical interfaces to determine whether the current physical interface has an optical module in place: if the current physical interface has an optical module in place And determining whether the in-situ optical module is an ordinary optical module or an electro-optical module, and then performing step B; if the current physical interface has no optical module in place, continuing the round robin.
4. 根据权利要求 2或 3所述的方法, 其特征在于 , 所述步骤 B具体包括: 如果该在位光模块是电光模块 , 则将该在位光模块所在的物理接 口的属性配置成电口; 如果该在位光模块是普通光模块 , 则将该在位 光模块所在的物理接口的属性配置为光口。 The method according to claim 2 or 3, wherein the step B specifically includes: if the in-situ optical module is an electro-optical module, configuring the attribute of the physical interface where the in-situ optical module is located to be electrical If the in-situ optical module is a common optical module, configure the attribute of the physical interface where the in-situ optical module is located as an optical port.
5. 一种光电接口自动切换的装置, 其特征在于, 所述装置包括: 光电接 口自动侦测模块和光电属性切换模块, 其中, The device for automatically switching the photoelectric interface, wherein the device comprises: a photoelectric interface automatic detecting module and a photoelectric property switching module, wherein
所述光电接口自动侦测模块, 用于创建并启动光电接口自动切换 侦测任务, 定时侦测在位光模块的类型, 并将侦测到的在位光模块的 类型通知给所述光电属性切换模块; 所述光电属性切换模块 , 用于根据接收到的在位光模块的类型, 对该在位光模块所在的物理接口进行光电属性切换。  The photoelectric interface automatic detecting module is configured to create and activate an optical interface automatic switching detection task, periodically detect the type of the in-situ optical module, and notify the photoelectric property of the detected type of the in-situ optical module. The switching module is configured to perform photoelectric attribute switching on the physical interface where the in-situ optical module is located according to the type of the received in-situ optical module.
6. 根据权利要求 5所述的方法, 其特征在于, 所述光电接口为以太网光 电接口。 The method according to claim 5, wherein the photoelectric interface is an Ethernet photoelectric interface.
7. 根据权利要求 6所述的装置 , 其特征在于 , 所述光电接口自动侦测模 块具体包括: 侦测单元和通知发送单元, 其中, The apparatus according to claim 6, wherein the optical interface automatic detection module specifically includes: a detecting unit and a notification sending unit, where
所述侦测单元, 用于创建并启动以太网光电接口自动切换侦测任 务, 对多个物理接口进行轮循 , 判断当前物理接口是否有光模块在位: 如果当前物理接口有光模块在位 , 则判断该在位光模块是普通光模块 还是电光模块, 并触发所述通知发送单元; 如果当前物理接口没有光 模块在位, 则继续轮循;  The detecting unit is configured to create and start an automatic switching detection task of the Ethernet optical interface, and perform round robin on multiple physical interfaces to determine whether the current physical interface has an optical module in place: if the current physical interface has an optical module in place And determining whether the in-situ optical module is an ordinary optical module or an electro-optical module, and triggering the notification sending unit; if the current physical interface has no optical module in place, continuing the round robin;
所述通知发送单元, 用于将该在位光模块的类型通知给所述光点 属性切换模块。  The notification sending unit is configured to notify the spot attribute switching module of the type of the in-situ optical module.
8. 才艮据权利要求 6或 7所述的装置, 其特征在于, 所述光点属性切换模 块具体包括: 通知接收单元和切换单元, 其中, The apparatus according to claim 6 or 7, wherein the optical spot attribute switching module specifically includes: a notification receiving unit and a switching unit, where
所述通知接收单元, 用于接收该在位光模块的类型的通知, 并触 发所述切换单元;  The notification receiving unit is configured to receive a notification of the type of the in-position optical module, and trigger the switching unit;
所述切换单元, 如果该在位光模块是电光模块, 所述切换单元用 于将该在位光模块所在的物理接口的属性配置成电口; 如果该在位光 模块是普通光模块, 所述切换单元用于将该在位光模块所在的物理接 口的属性配置为光口。  The switching unit, if the in-situ optical module is an electro-optic module, the switching unit is configured to configure an attribute of a physical interface where the in-situ optical module is located as an electrical port; if the in-situ optical module is an ordinary optical module, The switching unit is configured to configure an attribute of the physical interface where the bit optical module is located as an optical port.
PCT/CN2009/073601 2009-04-08 2009-08-28 Photoelectric interface automatic switching method and device WO2010115329A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200910131586 CN101527639B (en) 2009-04-08 2009-04-08 Optic electric interface automatic switching method and device thereof
CN200910131586.4 2009-04-08

Publications (1)

Publication Number Publication Date
WO2010115329A1 true WO2010115329A1 (en) 2010-10-14

Family

ID=41095347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073601 WO2010115329A1 (en) 2009-04-08 2009-08-28 Photoelectric interface automatic switching method and device

Country Status (2)

Country Link
CN (1) CN101527639B (en)
WO (1) WO2010115329A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006653A (en) * 2021-10-29 2022-02-01 锐捷网络股份有限公司 Equipment compatible with different types of optical modules, control method thereof and storage medium
CN114553695A (en) * 2022-01-27 2022-05-27 新华三技术有限公司合肥分公司 Chip configuration method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527639B (en) * 2009-04-08 2012-05-23 中兴通讯股份有限公司 Optic electric interface automatic switching method and device thereof
CN103701723A (en) * 2013-12-19 2014-04-02 上海斐讯数据通信技术有限公司 Structure and method for being self-adapted to Ethernet gigabit optical module and electrical module for COMBO interface
CN103701724A (en) * 2013-12-19 2014-04-02 上海斐讯数据通信技术有限公司 Self-adaptive method and system of upper connection port photoelectric module on OLT (optical line terminal) equipment
CN106330488A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Method and device for configuring attribute
CN105553789A (en) * 2015-11-30 2016-05-04 国家电网公司 PTN packet transport device and method for automatic switch of optic electric interfaces thereof
CN112230189A (en) * 2020-09-15 2021-01-15 北京无线电测量研究所 Special radar array plane remote debugging device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534932A (en) * 2003-03-27 2004-10-06 华为技术有限公司 Method of supporting multi kilomega ethernet terminal photoelectric multiplex
CN101141347A (en) * 2007-05-24 2008-03-12 中兴通讯股份有限公司 Multi-path ethernet signal gathering apparatus and method
CN101527639A (en) * 2009-04-08 2009-09-09 中兴通讯股份有限公司 Optic electric interface automatic switching method and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100349436C (en) * 2005-02-20 2007-11-14 黄炜 Optical/electric interface module space multiplexing method and apparatus used for Ethernet SFP interface
CN101072073A (en) * 2007-07-17 2007-11-14 武汉烽火网络有限责任公司 Self-defined Ethernet optronic interface performance test method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534932A (en) * 2003-03-27 2004-10-06 华为技术有限公司 Method of supporting multi kilomega ethernet terminal photoelectric multiplex
CN101141347A (en) * 2007-05-24 2008-03-12 中兴通讯股份有限公司 Multi-path ethernet signal gathering apparatus and method
CN101527639A (en) * 2009-04-08 2009-09-09 中兴通讯股份有限公司 Optic electric interface automatic switching method and device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006653A (en) * 2021-10-29 2022-02-01 锐捷网络股份有限公司 Equipment compatible with different types of optical modules, control method thereof and storage medium
CN114553695A (en) * 2022-01-27 2022-05-27 新华三技术有限公司合肥分公司 Chip configuration method and device
CN114553695B (en) * 2022-01-27 2024-02-09 新华三技术有限公司合肥分公司 Chip configuration method and device

Also Published As

Publication number Publication date
CN101527639A (en) 2009-09-09
CN101527639B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
WO2010115329A1 (en) Photoelectric interface automatic switching method and device
CN101640643B (en) Method for energy efficient Ethernet and physical layer equipment for enery efficient ethernet
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
US20150288561A1 (en) Computer network method and device using link aggregation
WO2007002434A3 (en) Methods and apparatus for network address change for mobile devices
RU2012106126A (en) METHOD AND DEVICE FOR JOINT USE OF THE EXTERNAL DEVICE FUNCTION THROUGH A COMPLEX NETWORK
CN104796329B (en) A kind of link automatic switching method and device
CN106487679A (en) The active-standby switch system of Ethernet switch and changing method
CN101197733A (en) Automatic detection method and device for network connectivity
CN101018183A (en) A topology notification method, system and device based on L2VPN
CN101039172B (en) Ethernet ring network system and its protection method and standby host node
WO2014114094A1 (en) Optical interface rate self-adapting method and optical network device
CN103957138B (en) A kind of method for monitoring network, device and its system
WO2012075743A1 (en) Method and device for link protection switching in an ethernet ring
CN104283712B (en) The network equipment and the management network port collocation method for the network equipment
CN101958888A (en) Configuration method of port negotiation capacity, communication port and communication device
US20120069741A1 (en) Method and apparatus for detecting ethernet operation, administration and maintenance (oam)
CN202042898U (en) Program controlled bypass protection circuit of network equipment
CN106445046B (en) A kind of computer equipment and computer equipment method for start-up and shutdown
CN101179451A (en) Transmission path connectivity detecting method, system, head end equipment and tail end equipment
EP2422486B1 (en) Method and device for reducing the electricity consumption of an ethernet interface
US8520566B2 (en) Network connection method with auto-negotiation mechanism, network apparatus having auto-negotiation mechanism and network connection method
CN103685050A (en) Router and standby method thereof
CN104038355A (en) Communication device and main/standby switchover method thereof
CN101291204B (en) Host-slave protection method in single board communication and single board

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

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

Country of ref document: EP

Kind code of ref document: A1