CN104852868A - Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device - Google Patents

Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device Download PDF

Info

Publication number
CN104852868A
CN104852868A CN201510250355.0A CN201510250355A CN104852868A CN 104852868 A CN104852868 A CN 104852868A CN 201510250355 A CN201510250355 A CN 201510250355A CN 104852868 A CN104852868 A CN 104852868A
Authority
CN
China
Prior art keywords
sfp
module
interface
information
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510250355.0A
Other languages
Chinese (zh)
Inventor
祝金忠
龚尧文
石宝霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Double-Vane Science And Technology Ltd Of Shenzhen
Original Assignee
Double-Vane Science And Technology Ltd Of Shenzhen
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 Double-Vane Science And Technology Ltd Of Shenzhen filed Critical Double-Vane Science And Technology Ltd Of Shenzhen
Priority to CN201510250355.0A priority Critical patent/CN104852868A/en
Publication of CN104852868A publication Critical patent/CN104852868A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/102Packet switching elements characterised by the switching fabric construction using shared medium, e.g. bus or ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method, which is characterized by comprising the following steps: a SFP quick recognition module recognizes a SFP module; a port rate adapter switching module switches a switch chip port mode according to the SFP module; and an upper-layer application program interface is configured. The invention also provides a gigabit switch SFP interface rate self-adaptation device. The SFP quick recognition module is used for recognizing whether the SFP module is plugged and information is read after plugging, the type of a SFP light module is read, whether the interface needed for the SFP light module is in a SGMII (Serial Gigabit Media Independent Interface) mode or in a SERDES (SERializer/DESerializer) mode is obtained, an API interface capable of configuration and information reading is provided for a command line and network management, the SFP module can be compatible with multiple gigabit switch interfaces, interface configuration conversion does not need to be carried out again, and the use efficiency is improved.

Description

A kind of adaptive approach of SFP interface rate of gigabit switch and device
Technical field
The invention belongs to Ethernet Exchanger Technology field, particularly relate to adaptive approach and the device of the SFP interface rate of gigabit switch.
Background technology
Ethernet switch is the switch based on Ethernet transmission data, and Ethernet adopts the local area network (LAN) of shared-bus transmission medium mode.To be that each port is direct be connected with main frame the structure of Ethernet switch, and be generally all operated in full duplex mode.Exchange function is communicated with many to port simultaneously, makes every main frame mutually communicated for a pair as exclusive communication medium, can carry out ensuring escapement from confliction transmission data.
Gigabit ethernet switch refers to that the first line of a couplet and second line of a couplet mouth are all the switches of gigabit mouth, also can be regarded as switch ports themselves and supports 1000M or 10/100/1000M transmission.Gigabit Ethernet is with IEEE802.3 ethernet standard for standard, and gigabit ethernet interface is divided into 1000BASE-SX gigabit ethernet interface and 1000BASE-T gigabit ethernet interface according to interface standard is different.1000BASE-SX and 1000BASE-T are gigabit Ethernet PHY (Physical Layer, physical layer) layer standard, gigabit Ethernet PHY layer will with gigabit Ethernet MAC (Media Access Control, medium access control) layer is connected, and could realize the function of gigabit ethernet switch.In general, the physical interface that PHY and the MAC of 1000BASE-SX is connected is SERDES (SERializer/DESerializer, parallel series and staticizer), and the physical interface that PHY and the MAC of 1000BASE-T is connected is SGMII (Serial Gigabit Media Independent Interface, Serial Gigabit Media stand-alone interface).
1000BASE-SX gigabit ethernet interface and 1000BASE-T gigabit ethernet interface can make SFP (Small Form-factor Pluggable transceiver, small package pluggable transceiver) module, thus cause the technology of SFP module application different, different with the interface of the MAC chip of switch inside after inserting gigabit switch, thus need the MAC chip of switch inside to carry out the switching of interface, to adapt to different SFP modules, the switching of mode for different SFP module of hardware is changed in current employing, realize the problem of Interface Matching, but this substitute mode is complicated, need to be equipped with different volume interface module, install and use inconvenience.
Summary of the invention
The object of the present invention is to provide a kind of adaptive approach and device of SFP interface rate of gigabit switch, be intended to solve in prior art and develop gigabit switch and use the problem that SFP module can not be compatible.
The technical scheme that the present invention takes is: a kind of adaptive approach of SFP interface rate of gigabit switch, is characterized in that, comprise the following steps:
The quick identification module of SFP identifies SFP module;
The adaptive handover module of port speed switches switching chip port pattern according to SFP module;
Upper level applications interface is configured.
Further, the quick identification module of described SFP identifies SFP module, specifically comprises: identify SFP module insert state, and reads the SFP module information inserted.
Further, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
Further, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
Further, described upper level applications interface to be configured, specifically to comprise: for order line CLI and webmaster provide configurable and the api interface of the information of reading.
The present invention also provides a kind of rate adaptation device of switch gigabit SFP interface, comprising:
The quick identification module of SFP, for identifying whether SFP inserts and insert rear reading information;
The adaptive handover module of port speed, carries out the switching of switching chip port pattern according to the interface requirement of SFP module;
Upper level applications interface module, for CLI (command-line interface, Command Line Interface) and SNMP Agent (Simple Network Management Protocol Agent, webmaster) provides configurable and the api interface of the information of reading.
Further, the quick identification module of described SFP comprises SFP module insert state detection module and SFP module information read module.
Further, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
Further, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
Beneficial effect of the present invention is: whether the present invention inserts and insert rear reading information by SFP quick identification module identification SFP module, by reading the type of SFP optical module, thus to obtain this interface required for SFP optical module be SGMII pattern or SERDES pattern, recognized the interface type of SFP needs by the quick identification module of SFP by the adaptive handover module of port speed, determine that between MAC and PHY, interface modes is the need of switching, if need to switch, software module to exchange chip issues switching command, interface modes between MAC and PHY is switched, for order line and webmaster provide configurable and the api interface of the information of reading, make the compatible multiple gigabit switch interface of SFP module energy, do not need to re-start interface configuration conversion, improve service efficiency.
Accompanying drawing explanation
Fig. 1 is the adaptive approach flow chart of the SFP interface rate of a kind of gigabit switch provided by the invention;
Fig. 2 is the annexation schematic diagram between SFP and CPLD that provide provided by the invention and CPU;
Fig. 3 is the self-reacting device structure chart of the SFP interface rate of a kind of gigabit switch provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be described in detail.
It is a kind of adaptive approach flow chart of SFP interface rate of gigabit switch see Fig. 1.
As shown in Figure 1, a kind of adaptive approach of SFP interface rate of gigabit switch, is characterized in that, comprise the following steps:
Step 101, the quick identification module of SFP identifies SFP module;
Step 102, the adaptive handover module of port speed switches switching chip port pattern according to SFP module;
Step 103, is configured upper level applications interface.
In embodiments of the present invention, CPU obtains SFP module by the interruption of the quick identification module of SFP arranged and inserts, by IIC (Inter-Integrated Circuit, integrated circuit (IC) bus) interface starts the information reading SFP, by reading SFP module information, docking port pattern switches, and the SFP module of interface modes and insertion is matched, make transfer of data Lothrus apterus, improve efficiency of transmission.
In a step 101, the quick identification module of described SFP identifies SFP module, specifically comprises: identify SFP module insert state, and reads the SFP module information inserted.
Further, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
In a step 102, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
In step 103, described upper level applications interface to be configured, specifically to comprise: for order line CLI and webmaster provide configurable and the api interface of the information of reading.
See Fig. 2, the annexation schematic diagram between SFP and CPLD provided for the embodiment of the present invention and CPU;
In the embodiment of the present invention, identify rear reading information is inserted and inserted to SFP module whether, after SFP module is inserted, the corresponding pin of CPLD logic chip can be dragged down, CPLD logic chip is by an interrupt pin of this signal notice CPU; CPU by interrupting learning the insertion of SFP, thus starts the operation being inquired about SFP information by IIC, and by reading the type of SFP optical module, thus to obtain this interface required for SFP optical module be SGMII pattern or SERDES pattern.
In embodiments of the present invention, CPU obtains SFP module by interruption and inserts, the information reading SFP is started by IIC interface, by reading the Base ID Fields district of SFP inside, obtain the company-information of SFP, producer's coding and the information such as speed, thus lay the first stone for the port of next step exchange chip switches.
In the embodiment of the present invention, the adaptive handover module of described port speed recognizes the interface type of SFP needs by the quick identification module of SFP, determine that between MAC and PHY, interface modes is the need of switching, if need to switch, software module to exchange chip issues switching command, switches interface modes between MAC and PHY.
After CPU reads these information, according to these information (needing SGMII or SERDES interface between MAC and PHY) the need of switching, if needed, software module to exchange chip issues switching command, thus the pattern of port corresponding for exchange chip is switched to SERDES from SGMII or switches to SGMII from SERDES, and the negotiation again between MAC and PHY, thus PHY can work in a normal mode.
For the interface comprising order line and webmaster to upper layer application, mainly provide and read present port whether LINK, consult the API of the information such as the speed arrived, the API of unsteady state operation is provided simultaneously.
See Fig. 3, it is the self-reacting device structure chart of the SFP interface rate of a kind of gigabit switch provided by the invention.
As shown in Figure 3, the invention provides a kind of rate adaptation device of switch gigabit SFP interface, comprising:
The quick identification module 301 of SFP, for identifying whether SFP inserts and insert rear reading information;
The adaptive handover module 302 of port speed, carries out the switching of switching chip port pattern according to the interface requirement of SFP module;
Upper level applications interface module 303, for CLI and SNMP Agent provides configurable and the api interface of the information of reading.
Further, the quick identification module of described SFP comprises SFP module insert state detection module and SFP module information read module.
Further, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
The adaptive handover module of port speed carries out the switching of switching chip port pattern according to the interface requirement of SFP module; Recognized interface type and the rate information of SFP needs by the quick identification module of SFP, need and require to carry out the switching of switching chip port pattern according to SFP.
Further, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
After CPU reads SFP module information, according to needing SGMII or SERDES interface the need of switching between MAC and PHY, if needed, software module to exchange chip issues switching command, thus the pattern of port corresponding for exchange chip is switched to SERDES from SGMII or switches to SGMII from SERDES, and the negotiation again between MAC and PHY, thus PHY can work in a normal mode.
Above to invention has been detailed introduction, but the invention is not restricted to above-mentioned execution mode, in the ken that those of ordinary skill in the art possess, can also make a variety of changes under the prerequisite not departing from present inventive concept.Do not depart from the spirit and scope of the present invention and can make other changes many and remodeling.Should be appreciated that and the invention is not restricted to specific execution mode, scope of the present invention is defined by the following claims.

Claims (9)

1. an adaptive approach for the SFP interface rate of gigabit switch, is characterized in that, comprise the following steps:
The quick identification module of SFP identifies SFP module;
The adaptive handover module of port speed switches switching chip port pattern according to SFP module;
Upper level applications interface is configured.
2. method according to claim 1, is characterized in that, the quick identification module of described SFP identifies SFP module, specifically comprises: identify SFP module insert state, and reads the SFP module information inserted.
3. method according to claim 2, is characterized in that, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
4. method according to claim 1, is characterized in that, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
5. method according to claim 1, is characterized in that, is describedly configured upper level applications interface, specifically comprises: for order line and webmaster provide configurable and the api interface of the information of reading.
6. a rate adaptation device for switch gigabit SFP interface, is characterized in that, comprising:
The quick identification module of SFP, for identifying whether SFP inserts and insert rear reading information;
The adaptive handover module of port speed, carries out the switching of switching chip port pattern according to the interface requirement of SFP module;
Upper level applications interface module, for order line and webmaster provide configurable and the api interface of the information of reading.
7. device according to claim 6, is characterized in that, the quick identification module of described SFP comprises SFP module insert state detection module and SFP module information read module.
8. device according to claim 7, is characterized in that, described SFP module information is the Base ID Fields district of SFP inside, comprises the company-information of SFP module, producer's coding and rate information.
9. device according to claim 6, is characterized in that, described switching chip port pattern comprises SGMII pattern and SERDES pattern.
CN201510250355.0A 2015-05-15 2015-05-15 Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device Pending CN104852868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510250355.0A CN104852868A (en) 2015-05-15 2015-05-15 Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510250355.0A CN104852868A (en) 2015-05-15 2015-05-15 Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device

Publications (1)

Publication Number Publication Date
CN104852868A true CN104852868A (en) 2015-08-19

Family

ID=53852230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510250355.0A Pending CN104852868A (en) 2015-05-15 2015-05-15 Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device

Country Status (1)

Country Link
CN (1) CN104852868A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553859A (en) * 2015-12-09 2016-05-04 上海斐讯数据通信技术有限公司 System and method for enabling SFP modules to be adaptive to interfaces
CN105610741A (en) * 2016-03-03 2016-05-25 山东超越数控电子有限公司 Optical module based optical port rate adaptation method
CN106656871A (en) * 2017-01-11 2017-05-10 深圳市立全鼎盛科技有限公司 Universal gigabit switch with eight optical ports
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
CN111786912A (en) * 2020-05-18 2020-10-16 深圳震有科技股份有限公司 Switch port mode switching method, switch and storage medium
CN111835569A (en) * 2020-07-17 2020-10-27 上海博达数据通信有限公司 Optical interface rate and mode self-adapting method, system and storage medium
CN112787886A (en) * 2020-12-30 2021-05-11 长沙湘计海盾科技有限公司 Processing method, device driver, readable storage medium and computer for real-time system network device auto-negotiation
CN115460161A (en) * 2022-08-05 2022-12-09 深圳市飞速创新技术股份有限公司 Optical module code changing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1484874A2 (en) * 2003-06-05 2004-12-08 Broadcom Corporation System for interfacing media access control module to small form factor pluggable module
CN201994948U (en) * 2010-12-31 2011-09-28 深圳市普联技术有限公司 Switchboard
CN102694603A (en) * 2012-05-14 2012-09-26 中兴通讯股份有限公司 Method and device for integrating interfaces of optical modules with different speed rates
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1484874A2 (en) * 2003-06-05 2004-12-08 Broadcom Corporation System for interfacing media access control module to small form factor pluggable module
CN201994948U (en) * 2010-12-31 2011-09-28 深圳市普联技术有限公司 Switchboard
CN102694603A (en) * 2012-05-14 2012-09-26 中兴通讯股份有限公司 Method and device for integrating interfaces of optical modules with different speed rates
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董春利: "《建筑智能化系统工程设计手册》", 31 October 2012 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553859A (en) * 2015-12-09 2016-05-04 上海斐讯数据通信技术有限公司 System and method for enabling SFP modules to be adaptive to interfaces
CN105610741A (en) * 2016-03-03 2016-05-25 山东超越数控电子有限公司 Optical module based optical port rate adaptation method
CN106656871A (en) * 2017-01-11 2017-05-10 深圳市立全鼎盛科技有限公司 Universal gigabit switch with eight optical ports
CN110880952A (en) * 2019-10-23 2020-03-13 浪潮思科网络科技有限公司 Switch interface rate self-adaptive tuning system, method, equipment and medium
CN111786912A (en) * 2020-05-18 2020-10-16 深圳震有科技股份有限公司 Switch port mode switching method, switch and storage medium
CN111835569A (en) * 2020-07-17 2020-10-27 上海博达数据通信有限公司 Optical interface rate and mode self-adapting method, system and storage medium
CN112787886A (en) * 2020-12-30 2021-05-11 长沙湘计海盾科技有限公司 Processing method, device driver, readable storage medium and computer for real-time system network device auto-negotiation
CN115460161A (en) * 2022-08-05 2022-12-09 深圳市飞速创新技术股份有限公司 Optical module code changing method, device, equipment and storage medium
CN115460161B (en) * 2022-08-05 2024-01-05 深圳市飞速创新技术股份有限公司 Optical module code changing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104852868A (en) Gigabit switch SFP (Small Form-factor Pluggable transceiver) interface rate self-adaptation method and device
US10180927B2 (en) Device, system and method for communication with heterogeneous physical layers
US8069293B1 (en) Flexible server network connection upgrade systems and methods
US8897313B2 (en) Out-of-band signaling support over standard optical SFP
US10515043B2 (en) Smart interface card control method and apparatus through a virtualized management interface
US20150220140A1 (en) Device, method and system for operation of a low power phy with a pcie protocol stack
CN113227991B (en) Alternative protocol selection
CN105718408A (en) Hot-pluggable computing system, computer-implemented method and system
US11277308B2 (en) Technologies for autonegotiating 10G and 1G serial communications over copper cable
CN111919402B (en) Optical communication device, optical line terminal and optical communication processing method
TWI730124B (en) Ethernet auto-negotiation with parallel detect for 10g dac or other non-auto-negotiated modes
CN104901859A (en) AXI/PCIE bus converting device
CN104615572A (en) Hot-plug processing system and method
CN105635176A (en) Network data transmission method based on RapidIO
US6725310B2 (en) Scalable docking architecture to support various bandwidth
CN103997448A (en) Method and system for carrying out automatic configuration of transmission modes on basis of physical layer chip
CN107181702B (en) Device for realizing RapidIO and Ethernet fusion exchange
CN108132898A (en) Multiplex communication control method and communication box
CN102253686B (en) Server system and switching method thereof
US8904077B1 (en) Power management for host bus adapters
CN101247235B (en) Rack type equipment and its master control module and sub-module
CN108847947A (en) A kind of network interface card for supporting multiple network transmission rate
CN113485957B (en) Multi-protocol system control device and multi-protocol system control method for physical layer suitable for industrial-level application scene
CN212660174U (en) Network card and network equipment
US9588920B1 (en) Method and system for port trunking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150819