CN100499535C - Method and device for supporting Ethernet self-consultation in medium access control - Google Patents

Method and device for supporting Ethernet self-consultation in medium access control Download PDF

Info

Publication number
CN100499535C
CN100499535C CNB031592066A CN03159206A CN100499535C CN 100499535 C CN100499535 C CN 100499535C CN B031592066 A CNB031592066 A CN B031592066A CN 03159206 A CN03159206 A CN 03159206A CN 100499535 C CN100499535 C CN 100499535C
Authority
CN
China
Prior art keywords
control module
module
serial
state information
medium access
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.)
Expired - Fee Related
Application number
CNB031592066A
Other languages
Chinese (zh)
Other versions
CN1592255A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031592066A priority Critical patent/CN100499535C/en
Publication of CN1592255A publication Critical patent/CN1592255A/en
Application granted granted Critical
Publication of CN100499535C publication Critical patent/CN100499535C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

This invention discloses a method and a device for supporting Ethernet interface self negotiation in medium access control. The method includes: a data input/output manage module and a serial irrelevant medium interface module synchronized to its interface/source fetch a first and second set of state information from each physical port and separately report them to a select and control module which selects one set of state information to its corresponding medium access control module to switch the working states. The device includes: a medium acc control module, a serial irrelevant, medium interface module synchronized to its interface/source, a module data input/output manage module and a selection control module.

Description

In medium access control, support the method and the device of Ethernet interface auto-negotiation
Technical field
Media Independent Interface technology in the present invention relates to communicate by letter, particularly a kind of method and device of in medium access control, supporting the Ethernet interface auto-negotiation.
Background technology
Auto-negotiation function in the Ethernet switch is realized by physical layer (PHY) chip.By auto-negotiation, two continuous PHY chips can be determined current working state, comprise linking status (linkup/link down), speed state (10M/100M) and duplex state (half duplex/full duplex).
Consult shown in Figure 1ly, when the operating state of the medium access control of Ethernet switch (MAC) has only the operating state with the PHY chip consistent, could guarantee normally carrying out of frame exchange.But MAC itself does not possess the auto-negotiation function, can only be obtained from the result of negotiation from the PHY chip, as the operating state of MAC, promptly by the method for MAC to the auto-negotiation support, guarantees the consistency of MAC and PHY chip operation state.
Mainly realize the auto-negotiation function in the prior art by the following two kinds of programs:
Technical scheme one, realize the support of MAC to auto-negotiation by the MDIO interface.
As shown in Figure 2, MAC links to each other with the PHY chip by Media Independent Interface (MII) interface, and wherein, data incoming/outgoing management module (MDIO) interface is the part of MII interface, is mainly used to finish the read-write capability to the PHY register.MAC can utilize the MDIO interface, reads the status register of PHY chip, obtains the work state information of port, gives MAC then.Come the switch operating state by MAC, thereby guarantee the consistency of the operating state of MAC and PHY.
As can be seen from Figure 2, a MDIO interface links to each other with a plurality of PHY, and MDIO interface repeating query successively reads the status register of PHY, feeds back to corresponding MAC then, makes MAC can not obtain the latest state information of PHY timely; In addition, single mode of operation, risk is bigger.If the MDIO module is wrong to the extraction of state information, can cause the operating state of MAC and PHY inconsistent, thereby switch can't operate as normal.
Technical scheme two, realize the support of MAC to auto-negotiation by the irrelevant Media Interface Connector (SMII) of serial/source irrelevant Media Interface Connector (SS-SMII) interface of synchronous serial.As shown in Figure 3, MAC links to each other with PHY by the SMII/SS-SMII interface.The SMII/SS-SMII interface is according to the SMII/SS-SMII interface specification, from the information that the PHY chip provides, extract the port working state information, give MAC then, come the switch operating state by MAC, and give SMII/SS-SMII, thereby guarantee the consistency of MAC, SMII/SS-SMII and PHY operating state with final state information loopback.
But the mode of operation of this scheme is single, and risk is bigger.If SMII/SS-SMII is wrong to the extraction of state information, can cause the operating state of MAC and PHY inconsistent, thereby switch can't operate as normal.
Summary of the invention
The object of the present invention is to provide a kind of method and device of in medium access control, supporting the Ethernet interface auto-negotiation, to solve the problem that has greater risk in the prior art because of operational module is single.
In order to address the above problem, the invention provides following technical proposals:
A kind of method of in medium access control, supporting the Ethernet interface auto-negotiation, the method comprising the steps of:
Data incoming/outgoing management (MDIO) module is obtained first group of state information and is reported to the selection control module from each physical port; The serial irrelevant Media Interface Connector module of the synchronous serial in Media Interface Connector/source that has nothing to do is obtained second group of state information and is reported to the selection control module from each physical port;
Select control module from described first, second group state information, to select one group of state information to deliver to corresponding medium access control (MAC) module;
The medium access control module is according to the state information switch operating state of selecting control module to provide.
According to said method:
Described selection control module also receives the 3rd group of state information of configuration, and selects one group of state information to deliver to corresponding medium access control module from described first, second and the 3rd group of state information.
Described selection control module is selected one group of state information according to controlled selection signal.
The state information of selecting the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of serial to report when described selection signal is default offers described medium access control module.
A kind of device, comprise medium access control (MAC) module, and the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of the serial that is connected with this medium access control module, the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of this serial is connected with external physical layer chip with described medium access control module; It is characterized in that, also comprise data incoming/outgoing management module and select control module; This data incoming/outgoing management module is used for obtaining state information from the physical chip that is connected with the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of serial; The synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of described serial is connected with selecting control module respectively with data incoming/outgoing management module, to report the state information of obtaining; This selects control module to be connected with described medium access control module, is used for selecting one group to offer the synchronous irrelevant Media Interface Connector module of serial of described medium access control module and the irrelevant Media Interface Connector/source of serial from many groups state information; The state information switch operating state that described medium access control module provides according to described selection control module.
According to said apparatus:
Described selection control module has a configuration interface, by this interface designated port operating state.
Described selection control module comprises one or more groups selection circuit, and every group selection circuit is selected many groups state information of a physical port correspondence.
Described medium access control module and corresponding irrelevant Media Interface Connector module are a plurality of, and the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of each serial is connected with described selection control module respectively.
The invention provides the approach of three kinds of definite medium access control (MAC) operating state, reduced risk; Default to from SMII/SS-SMII and obtain state information, guaranteed the promptness of state information updating.
Description of drawings
Fig. 1 is the Ethernet switch system block diagram;
Fig. 2 is for realizing that by the MDIO interface MAC supports schematic diagram to auto-negotiation;
Fig. 3 is for realizing that by the SMII/SS-SSMII interface MAC supports schematic diagram to auto-negotiation;
Fig. 4 is an apparatus structure block diagram of the present invention;
Fig. 5 is the structural representation of selection control module of the present invention.
Embodiment
Consult shown in Figure 4, the irrelevant Media Interface Connector module of serial (be the synchronous irrelevant Media Interface Connector module of serial in irrelevant Media Interface Connector of serial or source, be called for short the SMII/SS-SMII module), data incoming/outgoing management module (being called for short the MDIO module) and selection control module that the irrelevant Media Interface Connector/source of medium access control (MAC) module, serial that the inventive system comprises is synchronous.The serial irrelevant Media Interface Connector module of the synchronous serial in Media Interface Connector/source that has nothing to do is connected with external physical layer chip with the MAC module, data incoming/outgoing management module is connected with described external physical layer chip by interface, is used for obtaining state information from physical chip PHY; Irrelevant Media Interface Connector module is connected with selecting control module respectively with data incoming/outgoing management module, to report the state information of obtaining; Select control module to be connected, be used for selecting one group and offer the medium access control module from many groups state information with described medium access module.
The present invention utilizes newly-increased selection control module (MAC_CTRL module) to realize the function that the MAC module is supported auto-negotiation.
MDIO module and SMII/SS-SMII module report the MAC_CTRL module after obtaining state information according to agreement separately from PHY.
The MAC_CTRL module provides a configuration interface, can directly specify the operating state of certain port by software.
The MAC_CTRL module is collected the port status information that MDIO module, SMII/SS-SMII module and processor (operating state of the direct designated port of software) are sent here, chooses one group of state information then, gives MAC module.
Consulting Fig. 5, is the structure that the MAC_CTRL module is supported a port auto-negotiation function shown in the figure, wherein:
The port status information that linking status link_smii, speed state speed_smii and duplex state duplex_smii send here for the SMII/SS-SMII module;
The port status information that linking status link_mdio, speed state speed_mdio and duplex state duplex_mdio send here for the MDIO module;
Linking status link_cpu, speed state speed_cpu and duplex state duplex_cpu are the port status information that CPU sends here;
Linking status link_state, speed state speed_state and duplex state duplex_state are the selected port status information of MAC_CTRL module.
The MAC_CTRL module is chosen one group of state information according to the value of selecting signal sel, gives MAC module and SMII/SS-SMII module, selects signal to represent with two bits (bit).
For example: when sel is " 00 " (value of two bits of expression, aftermentioned is identical), choose the state information that the SMII/SS-SMII module provides; When sel is " 01 ", choose the state information that CPU provides; When sel is " 10 " or " 11 ", choose the state information that the MDIO module provides.Can dispose the value of sel by cpu i/f, default to " 00 ", promptly default setting is provided by the SMII/SS-SMII module.
The state information that MAC module and SMII/SS-SMII module provide according to the MAC_CTRL module, switch operating state, thereby the consistency of the operating state of assurance MAC, SMII/SS-SMII module and PHY.
As seen from Figure 4, generally comprise a plurality of ports in the switch, so have a plurality of selection circuit identical in the MAC_CTRL module, just select signal sel to have nothing in common with each other, can realize pressing the controlled purpose of port like this with Fig. 5.

Claims (8)

1, a kind of method of supporting the Ethernet interface auto-negotiation in medium access control is characterized in that comprising step:
Data incoming/outgoing management module is obtained first group of state information and is reported to the selection control module from each physical port; The serial irrelevant Media Interface Connector module of the synchronous serial in Media Interface Connector/source that has nothing to do is obtained second group of state information and is reported to the selection control module from each physical port;
Select control module from described first, second group state information, to select one group of state information to deliver to corresponding medium access control module;
The medium access control module is according to the state information switch operating state of selecting control module to provide.
2, the method for in medium access control, supporting the Ethernet interface auto-negotiation as claimed in claim 1, it is characterized in that, described selection control module also receives the 3rd group of state information of configuration, and selects one group of state information to deliver to corresponding medium access control module from described first, second and the 3rd group of state information.
3, the method for supporting the Ethernet interface auto-negotiation in medium access control as claimed in claim 1 or 2 is characterized in that described selection control module is selected one group of state information according to controlled selection signal.
4, the method for in medium access control, supporting the Ethernet interface auto-negotiation as claimed in claim 3, it is characterized in that the state information of selecting the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of serial to report offers described medium access control module when described selection signal is default.
5, a kind of device, comprise the medium access control module, and the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of the serial that is connected with this medium access control module, the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of this serial is connected with external physical layer chip with described medium access control module; It is characterized in that, also comprise data incoming/outgoing management module and select control module; This data incoming/outgoing management module is used for obtaining state information from the physical chip that is connected with the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of serial; The synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of described serial is connected with selecting control module respectively with data incoming/outgoing management module, to report the state information of obtaining; This selects control module to be connected with described medium access control module, is used for selecting one group to offer the synchronous irrelevant Media Interface Connector module of serial of described medium access control module and the irrelevant Media Interface Connector/source of serial from many groups state information; The state information switch operating state that described medium access control module provides according to described selection control module.
6, device as claimed in claim 5 is characterized in that, described selection control module has a configuration interface, by this interface designated port operating state.
7, device as claimed in claim 5 is characterized in that, described selection control module comprises one or more groups selection circuit, and every group selection circuit is selected many groups state information of a physical port correspondence.
8, as the arbitrary described device of claim 5 to 7, it is characterized in that, described medium access control module and the corresponding synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of serial are a plurality of, and the synchronous irrelevant Media Interface Connector module of serial in the irrelevant Media Interface Connector/source of each serial is connected with described selection control module respectively.
CNB031592066A 2003-09-02 2003-09-02 Method and device for supporting Ethernet self-consultation in medium access control Expired - Fee Related CN100499535C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031592066A CN100499535C (en) 2003-09-02 2003-09-02 Method and device for supporting Ethernet self-consultation in medium access control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031592066A CN100499535C (en) 2003-09-02 2003-09-02 Method and device for supporting Ethernet self-consultation in medium access control

Publications (2)

Publication Number Publication Date
CN1592255A CN1592255A (en) 2005-03-09
CN100499535C true CN100499535C (en) 2009-06-10

Family

ID=34598600

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031592066A Expired - Fee Related CN100499535C (en) 2003-09-02 2003-09-02 Method and device for supporting Ethernet self-consultation in medium access control

Country Status (1)

Country Link
CN (1) CN100499535C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881979B (en) * 2005-05-31 2010-11-10 杭州华三通信技术有限公司 Ethernet physical layer low-speed transmission realizing method and its applied network apparatus
CN101047712B (en) * 2006-06-19 2010-04-21 华为技术有限公司 Device and method for detecting Ethernet interface configuration
CN101163148B (en) * 2006-10-13 2010-12-01 杭州华三通信技术有限公司 Ethernet transmission method of supporting non-standard velocity and corresponding device and access equipment
US7830875B2 (en) * 2007-06-13 2010-11-09 Juniper Networks, Inc. Autonegotiation over an interface for which no autonegotiation standard exists
CN101360050B (en) * 2008-09-25 2010-12-08 福建星网锐捷网络有限公司 Method and apparatus setting flow control mode
CN103222251B (en) * 2012-11-29 2015-09-30 华为技术有限公司 A kind of method of ether port auto-negotiation and communication equipment
CN103501239B (en) * 2013-09-13 2017-01-04 华为技术有限公司 A kind of port status synchronous method, relevant device and system
CN115065615B (en) * 2022-08-17 2022-11-29 北京左江科技股份有限公司 FPGA-based network port state scanning system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
快速以太网技术-介质无关接口和自动协商. 刘琼,虞水俊,窦文华.微型机与应用,第1998年第9期. 1998
快速以太网技术-介质无关接口和自动协商. 刘琼,虞水俊,窦文华.微型机与应用,第1998年第9期. 1998 *

Also Published As

Publication number Publication date
CN1592255A (en) 2005-03-09

Similar Documents

Publication Publication Date Title
CN101922464B (en) Method, device and network equipment for adjusting fan speed
CN110266569B (en) IO-LINK port expansion device and method
CN101399700B (en) Apparatus, method and integrated circuit chip having on-line addressing bus type node
CN101262376A (en) A method and system for modifying configuration of network device in batch mode
US9019959B2 (en) Node, switch, and system
CN101610192A (en) A kind of communication slave, bus cascade method and system
CN104734998A (en) Network device and information transmission method
CN108462601B (en) Multi-protection-group switching method and device applied to optical transmission network and network element equipment
CN100499535C (en) Method and device for supporting Ethernet self-consultation in medium access control
CN103259733A (en) Daughter card unit dynamic adaptation method and line-card board
CN108415874B (en) Interface expansion device and method based on EIM bus
CN111324503B (en) Machine frame management device, method and computer readable storage medium
EP1988470B1 (en) Network device and transmission method thereof
CN101764696A (en) Distributed routing exchange equipment and implementation method thereof
CN113626359A (en) Signal switching device and method for flash memory chip of server
CN108132898A (en) Multiplex communication control method and communication box
CN101404609B (en) Data exchange method, apparatus and system
CN113407480A (en) Centralized management's frame switch
US6513078B1 (en) Data transfer control apparatus, data transfer control system and data transfer control method
CN112800001B (en) High-performance Internet of things hardware platform and method based on ARM platform architecture
CN217904426U (en) High-flexibility modularized field bus
CN112637197A (en) Multi-channel multiplexing based on HDLC controller
CN106294237A (en) A kind of multiplexing functions method and device of communication interface
CN102769538A (en) Port changing method, related device and system
CN113452538B (en) Control device, execution device, device management method, and device management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610

Termination date: 20190902

CF01 Termination of patent right due to non-payment of annual fee