CN108933712A - A kind of acquisition methods and device of network connection state - Google Patents
A kind of acquisition methods and device of network connection state Download PDFInfo
- Publication number
- CN108933712A CN108933712A CN201810792261.XA CN201810792261A CN108933712A CN 108933712 A CN108933712 A CN 108933712A CN 201810792261 A CN201810792261 A CN 201810792261A CN 108933712 A CN108933712 A CN 108933712A
- Authority
- CN
- China
- Prior art keywords
- network connection
- control signal
- connection state
- led control
- network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
This application discloses a kind of acquisition methods of network connection state, including obtaining the LED control signal between network interface connector and PHY chip;According to the mapping relations between the LED control signal and the state of connection status lamp, network connection state is obtained.This method utilizes the connection status lamp of the network interface connector interacted with PHY chip by data-signal and LED control signal to determine network connection state, specifically, first obtain LED control signal, then according to the mapping relations between LED control signal and the state of connection status lamp, LED control signal is decoded and obtains network connection state.This method is independent of SMI bus, even if MAC is not supported with the SMI bus connection between PHY chip, also network connection state can be obtained by LED control signal, in the type selecting for doing PHY chip, as long as network protocol meets, this method realizes that simply cost is relatively low, is not restricted because client specifies PHY chip.Disclosed herein as well is a kind of acquisition device of network connection state.
Description
Technical field
This application involves network connection detection field more particularly to the acquisition methods and device of a kind of network connection state.
Background technique
In internet area, equipment, which is linked into internet, to be needed to detect its network connection state.Ordinary circumstance
Under, when network connection state on mainboard integrated platform control bridge piece (Platform Controller Hub, PCH) data-link
Road (Media Access Control, MAC) layer, by serial management interface (SerialManagement Interface,
SMI) bus is linked up with external physical layer (Physical Layer Protocol, PHY) chip, to get network company
Connect state.
In the design of actual route, client may specify external PHY chip model, and specified PHY chip
Model may cause MAC layer SMI bus can not be with external network PHY chip not in the list that the MAC layer of PCH is supported
Interconnection, the end PHY can not be obtained with the connection status of extraneous network in real time by also having led to MAC layer, and can only be by with PHY chip
Network protocol interaction to obtain PHY chip with the connection status of extraneous network.
But this mode for obtaining network connection state has very big in the case where route design timing is unreasonable
Probability occurs obtaining the situation of network connection state mistake, for example, there is no insertions for cable, but system may be mistaken for net
Line has accessed, and then client is caused to export transmission fault.
Therefore, a kind of method that can obtain accurately, in real time network connection state is needed, to avoid mistake is got
Network connection state, or network connection state can not be got in real time, influence service operation.
Summary of the invention
In view of this, this application provides a kind of acquisition methods of network connection state and devices, so that in MAC and PHY
Between do not have SMI bus connection when, can also obtain network connection state in real time, upper layer application is avoided to judge by accident, so influence industry
Business operation.
The application first aspect provides a kind of acquisition methods of network connection state, which comprises
The Light-emitting diode LED obtained between network interface connector and PHY chip controls signal;
According to the mapping relations between the LED control signal and the state of connection status lamp, network connection state is obtained;
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
Optionally, the method also includes:
According to the mapping relations between the LED control signal and the state of speed light, network connection rate is obtained.
Optionally, the LED control signal obtained between network interface connector and PHY chip:
Network interface connector and PHY core are obtained by complex programmable logic device (CPLD) or baseboard management controller BMC
LED control signal between piece.
Optionally, the method also includes:
The register value of connection status register in Data Link/MAC layer is updated according to the network connection state.
Optionally, the method also includes:
Compare the register value in the network connection state and the MAC layer in connection status register;
If the network connection state is different from the network connection state that the register value characterizes, then executes according to institute
State the step of network connection state updates the register value of connection status register in MAC layer.
Optionally, the LED control signal obtained between network interface connector and PHY chip:
In system boot, the LED control signal between PHY chip is obtained.
Optionally, the method also includes:
When the network connection state changes, report network connection status modification information.
The application second aspect provides a kind of acquisition device of network connection state, and described device includes:
First obtains module, for obtaining the LED control signal between network interface connector and PHY chip;
Second obtains module, for according to the mapping relations between the LED control signal and the state of connection status lamp,
Obtain network connection state;
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
Optionally, described device further include:
Third obtains module, for according to the mapping relations between the LED control signal and the state of speed light,
Obtain network connection rate.
Optionally, the first acquisition module is specifically used for:
Network interface connector and PHY core are obtained by complex programmable logic device (CPLD) or baseboard management controller BMC
LED control signal between piece.
Optionally, described device further include:
Update module, for updating connection status register in Data Link/MAC layer according to the network connection state
Register value.
Optionally, described device further include:
Comparison module, for the deposit in connection status register in the network connection state and the MAC layer
Device value;
Update module, if different from the network connection state that the register value characterizes for the network connection state,
The step of register value of connection status register in MAC layer is updated according to the network connection state is then executed again.
Optionally, the first acquisition module is specifically used for:
In system boot, the LED control signal between PHY chip is obtained.
Optionally, the first acquisition module is specifically used for:
In system boot, the state of the connection status lamp of network interface connector is obtained;
Then described device further include:
Reporting module, for when the network connection state changes, report network connection status modification information.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
A kind of acquisition methods of network connection state are provided in the embodiment of the present application, this method utilizes logical with PHY chip
The connection status lamp for crossing the network interface connector of data-signal and LED control signal interaction determines network connection state, specifically, first
LED control signal is obtained, then according to the mapping relations between LED control signal and the state of connection status lamp, LED is controlled
Signal decoding obtains network connection state.This method is independent of SMI bus, even if MAC is not supported between PHY chip
The connection of SMI bus also can obtain network connection state by LED control signal, in the type selecting for doing PHY chip, as long as network
Agreement meets, and this method realizes that simply cost is relatively low, is not restricted because client specifies PHY chip.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Figure 1A and Figure 1B is respectively that MAC obtains network connection state when PHY chip and MAC being supported not to support PHY chip
Schematic diagram;
Fig. 2 is a kind of flow chart of the acquisition methods of network connection state in the embodiment of the present application;
Fig. 3 is the connection schematic diagram of PHY chip and RJ45 network interface connector in the embodiment of the present application;
Fig. 4 is the schematic diagram for obtaining LED control signal in the embodiment of the present application by BMC;
Fig. 5 is a kind of flow chart of the acquisition methods of network connection state in the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of the acquisition device of network connection state in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
The acquisition methods of traditional network connection state are that realization, Figure 1A and figure are interacted with PHY chip based on SMI bus
1B respectively illustrates the schematic diagram that network connection state is obtained when MAC supports PHY chip and MAC not to support PHY chip.Such as Figure 1A
Shown, MAC is with other than the connection of data, there are also the connections of SMI bus, i.e. metadata controller (Meta Data between PHY
Controller, MDC) and two letters of management data input and output (Management Data Input/Output, MDIO)
The connection of number line, in this case, MAC can be by SMI bus real-time, interactive PHY with the connection shape of RJ45 network interface with PHY
State makes upper layer application obtain correct network connection state information.
In some cases, as shown in Figure 1B, because MAC is not supported with the SMI bus connection between PHY chip, just not
The connection status that network can be obtained by SMI bus in real time, only obtains status information by the interaction between data, if
Interactive is out of turn, it is possible to cause obtain status information be it is wrong, cause the erroneous judgement of upper layer application, influence client's
Business encounters this failure conditions on actual product, can cause the extension of project.
For the acquisition methods of traditional network connection state, do not support in MAC with the SMI bus connection between PHY chip
When, it is difficult to the technical issues of obtaining network connection state accurately, in real time, this application provides a kind of network connection states
Acquisition methods.This method utilizes the connection shape of the network interface connector interacted with PHY chip by data-signal and LED control signal
State lamp determines network connection state, specifically, LED control signal is first obtained, then according to LED control signal and connection status lamp
State between mapping relations, to LED control signal decode obtain network connection state.This method independent of SMI bus,
Even if MAC does not support that also network connection state can be obtained by LED control signal with the SMI bus connection between PHY chip,
In the type selecting for doing PHY chip, as long as network protocol meets, this method realizes that simply cost is relatively low, not because client is specified
PHY chip and be restricted.
Next, will be carried out to the acquisition methods of network connection state provided by the embodiments of the present application detailed in conjunction with attached drawing
Explanation.
Fig. 2 is a kind of flow chart of the acquisition methods of the network connection state provided of the embodiment of the present application, referring to fig. 2, should
Method includes:
S201: the LED control signal between network interface connector and PHY chip is obtained.
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
Network interface connector can be RJ45 network interface connector.Network interface connector has connection status lamp, the connection status lamp
Network connection state can be characterized.Specifically, when the state of the connection status lamp is bright, characterization network is normally connected, when this
The state of connection status lamp is when going out, and characterization network is not connected.Further, network interface connector can also include that speed indicates
Lamp is used to indicate network rate and/or whether has data transmission.In order to distinguish connection status and heterogeneous networks rate, may be used also
Connection status and heterogeneous networks rate are characterized with the lamp using different colours.
In some possible implementations, connection status can be characterized using amber light, green light and orange lamp characterize not respectively
Same network rate.Wherein, the bright characterization network of amber light normally connects, and amber light goes out, and to characterize network not connected;Green light characterizes 1000Mb/
The network rate of s, the network rate of the orange bright characterization 100Mb/s of lamp.Further, there can also be data by flashing state representation
Transmission.Table 1 shows the definition of each LED light of RJ45 network interface connector, specifically may refer to table 1, as follows:
The LED light of 1 RJ45 network interface connector of table defines
It can not only be interacted by data-signal between network interface connector and PHY chip, LED control signal can also be passed through
Interaction.By obtaining the LED control signal between network interface connector and PHY chip, it can be used for decoding and obtain connection status lamp
State.Based on this, in order to obtain network connection state, the LED control between network interface connector and PHY chip can be first obtained
Signal.
In order to make it easy to understand, being illustrated by taking RJ45 network interface as an example.Fig. 3 shows PHY chip and RJ45 network interface connector
Connection schematic diagram, as shown in figure 3, PHY chip and RJ45 network interface connector by MDIO 0, MDIO 1, MDIO 2 and
Equal four signal lines of MDIO 3 transmit data-signal, separately transmit LED control by 3 signal lines such as LED0, LED1 and LED2
Signal, and the signal wire of this 3 transmission LED control signals is separately connected 3 LED light, including connection status lamp and 2 speed
Indicator light.Based on this, available LED control signal, to obtain network connection state.
It should be noted that LED control signal can be through complex programmable logic logical device (Complex
Programmable Logic Device, CPLD) or baseboard management controller Baseboard (Management
Controller, BMC) acquire.Fig. 4 shows the schematic diagram that LED control signal is obtained by BMC.As shown in figure 4,
BMC is connect with LED0, LED1 and LED2 signal wire, by 3 signal wires to obtain LED control signal, in addition, BMC respectively
It is also connected with PCH by IC bus (Inter-Integrated Circuit, IIC), is used for interaction data.
S202: according to the mapping relations between the LED control signal and the state of connection status lamp, network connection is obtained
State.
There are mapping relations between LED control signal and the state of connection status lamp, be based on this, can be controlled according to LED
Signal determines the state of connection status status lamp, and then determines network connection state.
Further, there is also mapping relations between LED control signal and the state of speed light, are based on this, may be used also
To determine the state of speed light according to LED control signal, and then determine the connection speed of network.Certainly network company is being determined
When connecing rate, whether can also be flashed according to speed light to determine whether that data are transmitted.
In order to make it easy to understand, indicating by taking RJ45 network interface connector as an example LED control signal and connection status lamp, speed
The mapping relations of the state of lamp are introduced.Table 2 is PHY chip LED control signal and RJ45 network interface connector LED light state pair
It is as follows referring to table 2 according to table:
2 PHY chip LED control signal of table and the RJ45 network interface connector LED state table of comparisons
LED0 | LED1 | LED2 | The state of RJ45 network interface connector LED light |
0 | 1 | x | Green light |
0 and 1 alternating | 1 | x | Green light flashing |
1 | 0 | x | Orange lamp is bright |
1 | 0 and 1 alternating | x | Orange lamp flashing |
x | x | 0 | Amber light is bright |
Wherein, 1 characterization high level, 0 characterization low level, x indicate hanging.
It in this example, can be according to LED control signal and company if LED2 is low level in the LED control signal obtained
The mapping relations between the state of status lamp are connect, as shown in table 2, determine that connection status lamp amber light is bright, this is based on, can determine net
Network connection status is that network connection is normal.Similar, if getting LED0 is low level, LED1 is high level, then can be according to LED
The mapping relations between signal and the state of speed light are controlled, as shown in table 2, determine that network rate is 1000Mb/s.
It should be noted that this step can be executed by CPLD or BMC, CPLD or BMC have decoding LED control signal
Ability, therefore can according to the mapping relations between LED control signal and the state of connection status lamp, determine network connection shape
State.As an extension of the embodiment of the present application, CPLD or BMC can also be according to the shapes of LED control signal and speed light
Mapping relations between state determine network connection rate.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of acquisition methods of network connection state, this method utilizes and PHY
Chip determines network connection state by the connection status lamp of data-signal and the network interface connector of LED control signal interaction, has
Body, LED control signal is first obtained, it is right then according to the mapping relations between LED control signal and the state of connection status lamp
LED control signal decoding obtains network connection state.This method is independent of SMI bus, even if MAC is not supported with PHY chip
Between SMI bus connection, also can by LED control signal obtain network connection state, in the type selecting for doing PHY chip, only
Network protocol is wanted to meet, this method realizes that simply cost is relatively low, is not restricted because client specifies PHY chip.
It is appreciated that the MAC layer of PCH includes connection status register, the register value characterization network in the register connects
State is connect, after obtaining network connection state by LED control signal, MAC layer can also be updated according to the network connection state
The register value of middle connection status register.
It, can be by comparing connection status deposit in network connection state and MAC layer in some possible implementations
Register value in device, if it is different, updating register value again.In order to make it easy to understand, below in conjunction with specific embodiment, to this Shen
Please a kind of acquisition methods of network connection state that provide of embodiment be introduced.
Fig. 5 is a kind of flow chart of the acquisition methods of the network connection state provided of the embodiment of the present application, should referring to Fig. 5
Method includes:
S501: the LED control signal between network interface connector and PHY chip is obtained.
S502: according to the mapping relations between the LED control signal and the state of connection status lamp, network connection is obtained
State.
The specific implementation of S501 and S502 may refer to the related content description of S201, S202, and the present embodiment is herein no longer
It repeats.
S503: the register value in the network connection state and the MAC layer in connection status register;If institute
It is different from the network connection state that the register value characterizes to state network connection state, then executes S504.
For obtaining network connection state by CPLD, which can be stored the net to CPLD by CPLD
In network connection status register, PCH can read the network connection state register value in CPLD, and should by iic bus
Network connection state register value compares with connection status register value in the MAC layer in PCH, to realize that the network connects
State is connect compared with the register value in the MAC layer in connection status register.
It should be noted that if being to obtain network connection state by BMC, then comparison procedure may refer to CPLD and obtain net
Manner of comparison when network connection status.
S504: the register value of connection status register in MAC layer is updated according to the network connection state.
It is appreciated that the network connection state that CPLD or BMC are obtained be in real time, therefore, when the network connection state with
It, can be according to the network connection shape in MAC layer when the network connection state difference of the register value characterization of connection status register
State updates the register value of connection status register in MAC layer.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of acquisition methods of network connection state, this method utilizes and PHY
Chip determines network connection state by the connection status lamp of data-signal and the network interface connector of LED control signal interaction, has
Body, LED control signal is first obtained, it is right then according to the mapping relations between LED control signal and the state of connection status lamp
LED control signal decoding obtains network connection state.Then it is posted by comparing the network connection state with connection status in MAC layer
The register value of storage realizes the real-time update of MAC layer network connection state.This method is independent of SMI bus, even if MAC
It does not support to obtain network connection state with the SMI bus connection between PHY chip by LED control signal yet, be PHY
When the type selecting of chip, as long as network protocol meets, this method realizes that simply cost is relatively low, not because client specifies PHY chip
And it is restricted.
It is appreciated that PCH is interacted by iic bus with CPLD or BMC, acquisition network connection state can cause certain
System pressure, thus can be using the strategy for reading register information incessantly in real time.In some possibility of the embodiment of the present application
Implementation in, the LED control signal between network interface connector and PHY chip can be obtained in system boot, to obtain
It is connected to the network Ei state.That is, doing primary reading and synchronizing information in system boot, it is dynamic not execute reading in remaining period
Make.When network connection state changes, active reporting network connection state modification information.Specifically, as CPLD or BMC
It grabs network connection state to change, such as becomes not connected from normally connecting, or be changed to normally connect by not connected
It connects, then network connection state modification information actively can be reported to PCH by CPLD or BMC.
The above are a kind of specific implementations of the acquisition methods of network connection state provided by the embodiments of the present application, are based on
This, the embodiment of the present application also provides a kind of acquisition device of network connection state, next will be from the angle of function modoularization
The acquisition device of network connection state provided by the embodiments of the present application is introduced.
Fig. 6 is a kind of structural schematic diagram of the acquisition device of network connection state provided by the embodiments of the present application, referring to figure
6, described device includes:
First obtains module 610, for obtaining the LED control signal between network interface connector and PHY chip;
Second obtains module 620, for being closed according to the mapping between the LED control signal and the state of connection status lamp
System obtains network connection state;
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
Optionally, described device further include:
Third obtains module, for according to the mapping relations between the LED control signal and the state of speed light,
Obtain network connection rate.
Optionally, the first acquisition module 610 is specifically used for:
Network interface connector and PHY core are obtained by complex programmable logic device (CPLD) or baseboard management controller BMC
LED control signal between piece.
Optionally, described device further include:
Update module, for updating connection status register in Data Link/MAC layer according to the network connection state
Register value.
Optionally, described device further include:
Comparison module, for the deposit in connection status register in the network connection state and the MAC layer
Device value;
Update module, if different from the network connection state that the register value characterizes for the network connection state,
The step of register value of connection status register in MAC layer is updated according to the network connection state is then executed again.
Optionally, the first acquisition module 610 is specifically used for:
In system boot, the LED control signal between PHY chip is obtained.
Optionally, the first acquisition module 610 is specifically used for:
In system boot, the state of the connection status lamp of network interface connector is obtained;
Then described device further include:
Reporting module, for when the network connection state changes, report network connection status modification information.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of acquisition device of network connection state, which utilizes and PHY
Chip determines network connection state by the connection status lamp of data-signal and the network interface connector of LED control signal interaction, has
Body, LED control signal is first obtained, it is right then according to the mapping relations between LED control signal and the state of connection status lamp
LED control signal decoding obtains network connection state.This method is independent of SMI bus, even if MAC is not supported with PHY chip
Between SMI bus connection, also can by LED control signal obtain network connection state, in the type selecting for doing PHY chip, only
Network protocol is wanted to meet, which realizes that simply cost is relatively low, is not restricted because client specifies PHY chip.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only
Memory, english abbreviation: ROM), random access memory (full name in English: Random Access Memory, english abbreviation:
RAM), the various media that can store program code such as magnetic or disk.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two
More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner
It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word
Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to
Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c
(a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also
To be multiple.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of acquisition methods of network connection state, which is characterized in that the described method includes:
The Light-emitting diode LED obtained between network interface connector and PHY chip controls signal;
According to the mapping relations between the LED control signal and the state of connection status lamp, network connection state is obtained;
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
2. the method according to claim 1, wherein the method also includes:
According to the mapping relations between the LED control signal and the state of speed light, network connection rate is obtained.
3. the method according to claim 1, wherein the LED obtained between network interface connector and PHY chip
Control signal:
By complex programmable logic device (CPLD) or baseboard management controller BMC obtain network interface connector and PHY chip it
Between LED control signal.
4. according to claim 1 to method described in 3 any one, which is characterized in that the method also includes:
The register value of connection status register in Data Link/MAC layer is updated according to the network connection state.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Compare the register value in the network connection state and the MAC layer in connection status register;
If the network connection state is different from the network connection state that the register value characterizes, then executes according to the net
Network connection status updates the step of register value of connection status register in MAC layer.
6. according to claim 1 to method described in 3 any one, which is characterized in that the acquisition network interface connector and PHY core
LED control signal between piece:
In system boot, the LED control signal between PHY chip is obtained.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
When the network connection state changes, report network connection status modification information.
8. a kind of acquisition device of network connection state, which is characterized in that described device includes:
First obtains module, for obtaining the LED control signal between network interface connector and PHY chip;
Second obtains module, for obtaining according to the mapping relations between the LED control signal and the state of connection status lamp
Network connection state;
Wherein, the network interface connector is interacted by data-signal and LED control signal with PHY chip.
9. device according to claim 8, which is characterized in that described device further include:
Comparison module, for the register value in connection status register in the network connection state and the MAC layer;
Update module, if it is different from the network connection state that the register value characterizes for the network connection state, then
Execute the step of register value of connection status register in MAC layer is updated according to the network connection state.
10. device according to claim 8, which is characterized in that the first acquisition module is specifically used for:
In system boot, the LED control signal between network interface connector and PHY chip is obtained;
Then described device further include:
Reporting module, for when the network connection state changes, report network connection status modification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810792261.XA CN108933712A (en) | 2018-07-18 | 2018-07-18 | A kind of acquisition methods and device of network connection state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810792261.XA CN108933712A (en) | 2018-07-18 | 2018-07-18 | A kind of acquisition methods and device of network connection state |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108933712A true CN108933712A (en) | 2018-12-04 |
Family
ID=64447345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810792261.XA Pending CN108933712A (en) | 2018-07-18 | 2018-07-18 | A kind of acquisition methods and device of network connection state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933712A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324568A (en) * | 2020-02-20 | 2020-06-23 | 深圳震有科技股份有限公司 | Multidata MDIO bus |
CN111416754A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Method, device, equipment and medium for restoring storage network port rate |
CN111897582A (en) * | 2020-09-25 | 2020-11-06 | 广州朗国电子科技有限公司 | All-in-one machine Ethernet refreshing method and device, storage medium and all-in-one machine equipment |
CN112087377A (en) * | 2020-08-16 | 2020-12-15 | 苏州浪潮智能科技有限公司 | Blade server node network port control system and method |
CN113726543A (en) * | 2020-05-26 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Operation and maintenance service processing method, device, system, server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005004399A (en) * | 2003-06-11 | 2005-01-06 | Funai Electric Co Ltd | Equipment for connection with serial bus |
CN201583940U (en) * | 2010-01-08 | 2010-09-15 | 深圳市同洲电子股份有限公司 | Device for indicating running state of network and network terminal |
CN104618141A (en) * | 2014-12-27 | 2015-05-13 | 中国船舶重工集团公司第七一一研究所 | Dual-network switching device based on FPGA (field programmable gate array) and dual-network switching method thereof |
CN108198405A (en) * | 2018-03-23 | 2018-06-22 | 无锡市海鹰加科海洋技术有限责任公司 | Sounding instrument and acoustic profile instrument data Transmission system based on wireless telecommunications |
-
2018
- 2018-07-18 CN CN201810792261.XA patent/CN108933712A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005004399A (en) * | 2003-06-11 | 2005-01-06 | Funai Electric Co Ltd | Equipment for connection with serial bus |
CN201583940U (en) * | 2010-01-08 | 2010-09-15 | 深圳市同洲电子股份有限公司 | Device for indicating running state of network and network terminal |
CN104618141A (en) * | 2014-12-27 | 2015-05-13 | 中国船舶重工集团公司第七一一研究所 | Dual-network switching device based on FPGA (field programmable gate array) and dual-network switching method thereof |
CN108198405A (en) * | 2018-03-23 | 2018-06-22 | 无锡市海鹰加科海洋技术有限责任公司 | Sounding instrument and acoustic profile instrument data Transmission system based on wireless telecommunications |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324568A (en) * | 2020-02-20 | 2020-06-23 | 深圳震有科技股份有限公司 | Multidata MDIO bus |
CN111416754A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Method, device, equipment and medium for restoring storage network port rate |
CN113726543A (en) * | 2020-05-26 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Operation and maintenance service processing method, device, system, server and storage medium |
CN113726543B (en) * | 2020-05-26 | 2023-05-02 | 北京达佳互联信息技术有限公司 | Operation and maintenance service processing method, device, system, server and storage medium |
CN112087377A (en) * | 2020-08-16 | 2020-12-15 | 苏州浪潮智能科技有限公司 | Blade server node network port control system and method |
CN112087377B (en) * | 2020-08-16 | 2022-05-31 | 苏州浪潮智能科技有限公司 | Blade server node network port control system and method |
CN111897582A (en) * | 2020-09-25 | 2020-11-06 | 广州朗国电子科技有限公司 | All-in-one machine Ethernet refreshing method and device, storage medium and all-in-one machine equipment |
CN111897582B (en) * | 2020-09-25 | 2021-10-08 | 广州朗国电子科技有限公司 | All-in-one machine Ethernet refreshing method and device, storage medium and all-in-one machine equipment |
CN111897582B8 (en) * | 2020-09-25 | 2023-06-20 | 广州朗国电子科技有限公司 | Integrated machine Ethernet refreshing method and device, storage medium and integrated machine equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933712A (en) | A kind of acquisition methods and device of network connection state | |
CN106603265B (en) | Management method, network device, and non-transitory computer-readable medium | |
US10080312B2 (en) | Patch panel for QSFP+ cable | |
CN107766213A (en) | A kind of method and system for realizing NVME hard disk lightings | |
CN102301356A (en) | Universal Serial Bus Host To Host Communications | |
CN109298703A (en) | Fault diagnosis system and method | |
CN104881382A (en) | Master and slave equipment connection device and address recognition method thereof | |
US20140098702A1 (en) | Position discovery by detecting irregularities in a network topology | |
CN109600430A (en) | A kind of data managing method, system and electronic equipment and storage medium | |
CN106294040A (en) | The acquisition methods of optical module status information and device | |
CN108780430B (en) | Sending Universal Serial Bus (USB) data over an alternate mode connection | |
CN103279434A (en) | Method and device for modifying address of slave unit | |
CN109446003A (en) | A kind of method of state instruction, controller and storage medium | |
CN105357207B (en) | Synchronous writing method, mobile terminal, server and system | |
CN109656964A (en) | The method, apparatus and storage medium of comparing | |
CN101661453A (en) | Method for identifying blade sequence number in blade server | |
CN113110978A (en) | Hard disk backboard lamp control device and method | |
CN102841838A (en) | Device, system and method for automatically detecting inter-integrated circuit (I2C) and SGPIO (serious general-purpose input/output) | |
CN109510750B (en) | Circuit board, server and server network | |
CN115037651B (en) | RDMA bandwidth transmission test method, system and storage medium | |
US20100229041A1 (en) | Device and method for expediting feedback on changes of connection status of monitioring equipments | |
CN106993068B (en) | A kind of auto-allocation method of blade server managing intranet IP | |
CN107515958A (en) | Wiring inspection method and device | |
CN109739857A (en) | Data distribution formula wiring method, device, terminal and storage medium under high concurrent | |
CN205068372U (en) | Principal and subordinate's equipment connecting device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181204 |
|
RJ01 | Rejection of invention patent application after publication |