[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101222526B - Method and apparatus for loading port driver of network appliance physical layer - Google Patents

Method and apparatus for loading port driver of network appliance physical layer Download PDF

Info

Publication number
CN101222526B
CN101222526B CN2008100041792A CN200810004179A CN101222526B CN 101222526 B CN101222526 B CN 101222526B CN 2008100041792 A CN2008100041792 A CN 2008100041792A CN 200810004179 A CN200810004179 A CN 200810004179A CN 101222526 B CN101222526 B CN 101222526B
Authority
CN
China
Prior art keywords
physical layer
port
job category
phy
registration table
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
CN2008100041792A
Other languages
Chinese (zh)
Other versions
CN101222526A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100041792A priority Critical patent/CN101222526B/en
Publication of CN101222526A publication Critical patent/CN101222526A/en
Application granted granted Critical
Publication of CN101222526B publication Critical patent/CN101222526B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a loading method for network equipment physical layer port driver, including a step S102 and a step S104, wherein the step S102 is that under the condition of the change of a first working type of a physical layer port which is connected with a media access control port of a switching chip, a changed second working type is obtained; the step S104 is that based on the obtained second working type, a corresponding physical layer driver is loaded; moreover, the invention also discloses a loading device for network equipment physical layer port driver; by adopting the invention, the defect existing in the related technique of single port configuration mode can be made up, and the dynamic loading of the physical layer driver can be realized, which lowers equipment cost and improves the flexibility of the configuration.

Description

The loading method of network appliance physical layer port driver and device
Technical field
The present invention relates to the communications field, and especially, relate to the loading method and the device of the PHY port driver under a kind of MAC (medium access control) port that is used for Ethernet switching chip and the environment that PHY (physical layer) port links to each other.
Background technology
At present, a lot of network equipments all have Ethernet interface, and are a variety of but the Ethernet interface type has, for example, and 100BASETX, 1000BASET, 100BASEFX, 1000BASEX etc.At different interfaces, these equipment often use interface card, and the interface of the interface of master control borad and interface card is to concern one to one.In this case, the PHY driver just can load initialized the time.For embedded system, this is a kind of collocation method commonly used.
But, in order to reduce cost or to increase port density or strengthen configuration flexibility, can correspond to several different interface card ports to a master control borad port, perhaps the port that directly goes out on the master control borad has the various configurations pattern.For example, in one case, the master control borad port one can be configured to 1000BASEX, and in another case, the master control borad port one be configured to 1000BASET or 100BASEFX.At this moment, if can not load corresponding driving, then can cause the equipment cisco unity malfunction.
Yet, the present technical scheme that proposes dynamically to drive loading as yet according to the difference that disposes.
Summary of the invention
Consider the problems referred to above and make the present invention, for this reason, main purpose of the present invention is to provide a kind of load mechanism of PHY port driver, can not be according to different PHY port arrangement and the problem of dynamic load respective drive to solve in the correlation technique.
According to embodiments of the invention, a kind of loading method of network appliance physical layer port driver is provided, be used for the environment that the medium access control port of Ethernet switching chip links to each other with physical layer port.
This method comprises: step S102, under the situation that first job category of the physical layer port that is connected with the medium access control port of described exchange chip changes, obtain second job category after the change; And step S104, load corresponding physical layer according to described second job category that obtains and drive.
Wherein, in described step S102, can further comprise: the configuration order that provides when described first job category being changed into described second job category is obtained described second job category.
On the other hand, in described step S102, can further comprise: obtain described second job category by described physical layer port is scanned and detects.
In addition, before described step S 102, can further comprise: the initialization physical layer drives registration table when system initialization, and drives the current job category corresponding physical layer driving of the described physical layer port of adding in the registration table in described physical layer.
And, in described step S104, can further comprise: unload the described first job category corresponding physical layer by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence and drive and load described second job category corresponding physical layer driving.
According to another embodiment of the present invention, the charger that provides a kind of physical layer port to drive is used for the environment that the medium access control port of exchange chip links to each other with physical layer port.
This device comprises: the port working type acquisition module, be used under the situation that first job category of the physical layer port that is connected with the medium access control port of described exchange chip changes, and obtain second job category after the change; And physical layer driving loading and unloading module, be used for loading corresponding physical layer and drive according to described second job category that described port working type acquisition module is obtained.
Wherein, the described port working type acquisition module configuration order that is used for providing when described first job category being changed into described second job category is obtained described second job category.
On the other hand, described port working type acquisition module can further comprise: physical layer port scanning and detection module are configured to obtain the current job category of described physical layer port by described physical layer port is scanned and detects.
In addition, this device can further comprise: initialization module is used for initialization physical layer driving registration table when system initialization, and drives the current job category corresponding physical layer driving of the described physical layer port of adding in the registration table in described physical layer.
Correspondingly, the processing of described physical layer driving loading and unloading module execution specifically comprises: load the described second job category corresponding physical layer by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence and drive.
By technique scheme of the present invention, can remedy the single shortcoming of correlation technique middle port configuration mode, realize that the physical layer Driven Dynamic loads, thereby can reduce cost, the increase configuration flexibility of equipment.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the loading method of the network equipment PHY port driver of the inventive method embodiment;
Fig. 2 is the flow chart according to the concrete treatment step of the loading method of the network equipment PHY port driver of the inventive method embodiment;
Fig. 3 is the block diagram according to the charger of the network equipment PHY port driver of apparatus of the present invention embodiment; And
Fig. 4 is the block diagram according to the structure example of the charger of the network equipment PHY port driver of apparatus of the present invention embodiment.
Embodiment
Exchange chip (comprise and have two layers of chip with the multilayer function of exchange) uses SERDES or SGMII interface to link the PHY chip or uses the SERDES interface to be connected optical module or other chips, and the PHY chip can light-emitting window or electricity mouth.Commonly used at present disposes following three kinds: (1) exchange chip uses the SERDES interface to connect optical module; (2) exchange chip uses SERDES or SGMII interface to link the PHY chip, can go out interfaces such as 100BASEFX, 1000BASET, 1000BASEX on the PHY chip; (3) exchange chip links to each other with other chips in the native system.
Carrying out Driven Dynamic when configuration, mainly needing to consider the following aspects: the external interface of exchange chip can be under the situation of not cutting off the power supply online dynamic-configuration, dynamic-configuration can be used the mode of manually issuing orders, and also can use the mode of automatic detection; New PHY drives along with the difference of configuration is carried out dynamic registration; To old PHY driving carrying out dynamic offloading.
The present invention just provides the mechanism that can realize the demand, makes and the use dynamic load PHY driving corresponding with polytype PHY port of a MAC port.
Method embodiment
In the present embodiment, provide a kind of loading method of network equipment PHY port driver, be used for the environment that the MAC port of Ethernet switching chip links to each other with the PHY port.
As shown in Figure 1, comprise according to the loading method of the PHY port driver of present embodiment: step S102, under the situation that first job category of the PHY port that is connected with the MAC port of described exchange chip changes, obtain second job category after the change; And step S104, load corresponding PHY according to described second job category that obtains and drive.
Wherein, in described step S102, can further comprise: the configuration order that provides when described first job category being changed into described second job category is obtained described second job category.
On the other hand, in described step S102, can further comprise: obtain described second job category by described port is scanned and detects.
In addition, before described step S102, can further comprise: initialization PHY drives registration table when system initialization, and adds the PHY driving of the current job category correspondence of described port in described PHY registration table.
And, in described step S104, can further comprise: the PHY that the PHY that unloads the described first job category correspondence by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence drove and loaded the described second job category correspondence drives.
Concrete processing procedure as shown in Figure 2, step is as follows: PHY drives the load-on module registration table that initialization PHY drives in system initialization, and loads corresponding driving according to the PHY TCP with the result that detection module scans; When the user changes ply-yarn drill or interface card (promptly, job category changes), the type (job category) of corresponding port is set by configuration order, the type (work) of corresponding port perhaps is set according to the result of TCP and detection module, drive load-on module to PHY under the order that is provided with, PHY drives load-on module and loads corresponding PHY driving, simultaneously driving is before unloaded.
Device embodiment
In the present embodiment, provide a kind of charger of network equipment PHY port driver, be used for the environment that the MAC port of exchange chip links to each other with the PHY port.
As shown in Figure 3, charger according to the PHY port driver of present embodiment comprises: port working type acquisition module 302, be used under the situation that first job category of the PHY port that is connected with the MAC port of described exchange chip changes, obtain second job category after the change; And PHY driving loading and unloading module 304, be used for loading corresponding PHY and drive according to described second job category that described port working type acquisition module 302 is obtained.
Wherein, described port working type acquisition module 302 configuration order that is used for providing when described first job category being changed into described second job category is obtained described second job category.
On the other hand, described port working type acquisition module 302 can further comprise: PHY TCP and detection module are configured to obtain the current job category of described port by described port is scanned and detects.
In addition, this device can further comprise: the initialization module (not shown) is used for initialization PHY driving registration table when system initialization, and adds the PHY driving of the current job category correspondence of described port in described PHY registration table.
Correspondingly, the processing of described PHY driving loading and unloading module execution specifically comprises: the PHY that loads the described second job category correspondence by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence drives.
When practical application, can be as shown in Figure 4 according to the structure of the charger of the PHY port driver of present embodiment.
As mentioned above, the port of exchange chip can be configured to multiple mode of operation usually, and first kind of pattern is directly to connect optical module, offers user 1000BASEX interface; Second kind of pattern is the external PHY of exchange chip, offers user 1000BASEX interface or 1000BASET interface or 100BASEFX interface by this PHY; The third pattern is that exchange chip is connected with intrasystem other chips by backboard or this plate.
When realizing dynamic-configuration, under first kind of pattern, exchange chip uses inner integrated SERDES PHY, by configuration module 402 or PHY TCP and detection module 406 notice PHY driving loading and unloading modules 404, the driving of SERDES PHY is loaded into this port; Under second kind of pattern, exchange chip is connected with PHY by SERDES or SGMII interface, drive loading and unloading module 404 by configuration module 402 or PHY TCP module 406 notice PHY, particular PHY is driven be loaded into this port, the driving of corresponding its coupling of each PHY; Under the third pattern, exchange chip can use inner integrated SERDES PHY, also can use external PHY, by configuration module 402 or PHY TCP and detection module 406 notice PHY driving loading and unloading modules 404, the driving of SERDES PHY or external PHY driving are loaded into this port.
PHY drives the load-on module (not shown) registration table that initialization PHY drives in system initialization, and loads corresponding driving according to the result of PHY TCP and detection module 406 scannings.When the user changes ply-yarn drill or interface card, the type of corresponding port is set by configuration order, the type of corresponding port perhaps is set according to the result of TCP and detection module, drive load-on module 404 to PHY under the order that is provided with, PHY driving load-on module 404 loads corresponding PHY and drives, and simultaneously driving is before unloaded.Going up course like this drives the relevant setting of the port send and querying command (speed, duplex, auto-negotiation etc.) and will and inquire about the register of new PHY by new driving setting.Concrete operating process no longer repeats its description here as shown in Figure 2.
In addition, agreement among Fig. 4 and the operating system module 408 main processing of being responsible for agreement and system operation aspect, the processing of its execution and the solution of the present invention relation are little, so omitted relative description at this.
In sum,, can remedy the single shortcoming of correlation technique middle port configuration mode, realize that the physical layer Driven Dynamic loads, thereby can reduce cost, the increase configuration flexibility of equipment by means of technical scheme of the present invention.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the loading method of a network appliance physical layer port driver is used for the environment that the medium access control port of Ethernet switching chip links to each other with physical layer port, it is characterized in that described loading method comprises:
Step S102 under the situation that first job category of the physical layer port that is connected with the medium access control port of described exchange chip changes, obtains second job category after the change; And
Step S104 loads corresponding physical layer according to described second job category that obtains and drives.
2. loading method according to claim 1 is characterized in that, in described step S102, further comprises:
The configuration order that provides when described first job category being changed into described second job category is obtained described second job category.
3. loading method according to claim 1 is characterized in that, in described step S102, further comprises:
By being scanned and detect, described physical layer port obtains described second job category.
4. loading method according to claim 1 is characterized in that, before described step S102, further comprises:
The initialization physical layer drives registration table when system initialization, and drives the current job category corresponding physical layer driving of the described physical layer port of adding in the registration table in described physical layer.
5. loading method according to claim 4 is characterized in that, in described step S104, further comprises:
Unload the described first job category corresponding physical layer by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence and drive and load described second job category corresponding physical layer driving.
6. the charger of a network appliance physical layer port driver is used for the environment that the medium access control port of exchange chip links to each other with physical layer port, it is characterized in that described charger comprises:
The port working type acquisition module is used under the situation that first job category of the physical layer port that is connected with the medium access control port of described exchange chip changes, and obtains second job category after the change; And
Physical layer drives the loading and unloading module, is used for loading corresponding physical layer according to described second job category that described port working type acquisition module is obtained and drives.
7. charger according to claim 6 is characterized in that, the configuration order that described port working type acquisition module is used for providing when described first job category being changed into described second job category is obtained described second job category.
8. charger according to claim 6 is characterized in that, described port working type acquisition module further comprises:
Physical layer port scanning and detection module are configured to obtain the current job category of described physical layer port by described physical layer port is scanned and detects.
9. charger according to claim 6, it is characterized in that, further comprise: initialization module, be used for initialization physical layer driving registration table when system initialization, and drive the current job category corresponding physical layer driving of the described physical layer port of adding in the registration table in described physical layer.
10. charger according to claim 9 is characterized in that, the processing that described physical layer drives the execution of loading and unloading module specifically comprises:
Loading the described second job category corresponding physical layer by the registration table of the registration table of the described second job category correspondence being replaced the described first job category correspondence drives.
CN2008100041792A 2008-01-23 2008-01-23 Method and apparatus for loading port driver of network appliance physical layer Expired - Fee Related CN101222526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100041792A CN101222526B (en) 2008-01-23 2008-01-23 Method and apparatus for loading port driver of network appliance physical layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100041792A CN101222526B (en) 2008-01-23 2008-01-23 Method and apparatus for loading port driver of network appliance physical layer

Publications (2)

Publication Number Publication Date
CN101222526A CN101222526A (en) 2008-07-16
CN101222526B true CN101222526B (en) 2011-08-10

Family

ID=39632091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100041792A Expired - Fee Related CN101222526B (en) 2008-01-23 2008-01-23 Method and apparatus for loading port driver of network appliance physical layer

Country Status (1)

Country Link
CN (1) CN101222526B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891813B (en) * 2012-09-05 2015-09-23 盛科网络(苏州)有限公司 Support the ethernet port framework of multiple transmission mode
CN109218110A (en) * 2018-10-22 2019-01-15 郑州云海信息技术有限公司 A kind of communication equipment and communication means
CN109787837A (en) * 2019-02-02 2019-05-21 视联动力信息技术股份有限公司 The configuration method and device of a kind of view networking port
CN111314140B (en) * 2020-02-19 2021-12-17 迈普通信技术股份有限公司 Method and device for improving stability of network equipment, network equipment and storage medium
CN117376126B (en) * 2023-09-28 2024-10-18 深圳市中微信息技术有限公司 Method for realizing forced communication of GMAC ports and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1347062A (en) * 2001-11-26 2002-05-01 北方交通大学 Gigabit IP network card
CN1384931A (en) * 1999-08-02 2002-12-11 计算机联合思想公司 Method, system and computer readable storage medium for automatic device driver
CN1606310A (en) * 2003-10-06 2005-04-13 安捷伦科技有限公司 Self-configuration communication module adapted to different host system types
CN1617515A (en) * 2003-10-27 2005-05-18 微软公司 Simple and dynamic configuration of network devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1384931A (en) * 1999-08-02 2002-12-11 计算机联合思想公司 Method, system and computer readable storage medium for automatic device driver
CN1347062A (en) * 2001-11-26 2002-05-01 北方交通大学 Gigabit IP network card
CN1606310A (en) * 2003-10-06 2005-04-13 安捷伦科技有限公司 Self-configuration communication module adapted to different host system types
CN1617515A (en) * 2003-10-27 2005-05-18 微软公司 Simple and dynamic configuration of network devices

Also Published As

Publication number Publication date
CN101222526A (en) 2008-07-16

Similar Documents

Publication Publication Date Title
CN101222526B (en) Method and apparatus for loading port driver of network appliance physical layer
CN102088411B (en) Integrated switch
CN101277219B (en) Communication device, communication system, and LAG management table management method used therefor
US7449796B2 (en) Power over ethernet controller suitable for multiple modes
CN101494602B (en) Energy-saving method and apparatus for communication equipment
CN202495966U (en) Embedded configurable multi-protocol communication network converter
CN101763099A (en) Networked industrial control and method for changing the operation mode of the same
CN101369899A (en) System and method for power over ethernet
CN102281254A (en) Design system and method of server serial port
WO2005024574A3 (en) Robotic data storage library with soft power on/off capability
CN102299807B (en) POE system realized on MicroTCA and management method thereof
CN102970146B (en) The power supply unit of a kind of POE and method of supplying power to
WO2012016463A1 (en) Method, apparatus and system for device management
CN101765179B (en) Router with online wake-up function and working method thereof
EP1742126A3 (en) Providing redundant i/o adapters in machine and process controllers
JP4971366B2 (en) Method and apparatus for transmitting medium busy signal to other devices
CN102478905B (en) Data center
CN101707797B (en) Method and device for reducing power consumption of double-mode single-standby mobile terminal
CN201287312Y (en) Electric screw locking apparatus
CN106326174B (en) A kind of two line telecommunication circuits
CN101640686B (en) Method and device for reusing in-band management interface
CN108255639A (en) A kind of server system
US10003517B2 (en) Wireless communication test system arrangement
CN220272901U (en) Equipment based on 485-CANFD communication port extension
TW200606655A (en) Computer system with multiple data access channels and control method thereof

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110810

Termination date: 20180123