CN109783408A - Connectivity port localization method, device and electronic equipment - Google Patents

Connectivity port localization method, device and electronic equipment Download PDF

Info

Publication number
CN109783408A
CN109783408A CN201910061197.2A CN201910061197A CN109783408A CN 109783408 A CN109783408 A CN 109783408A CN 201910061197 A CN201910061197 A CN 201910061197A CN 109783408 A CN109783408 A CN 109783408A
Authority
CN
China
Prior art keywords
network equipment
connectivity port
processor
protocol massages
connection end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910061197.2A
Other languages
Chinese (zh)
Inventor
郭敏
廖北平
段文生
王斌
蒋汉柏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Hengmao Tech Ltd By Share Ltd
Original Assignee
Hunan Hengmao Tech Ltd By Share 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 Hunan Hengmao Tech Ltd By Share Ltd filed Critical Hunan Hengmao Tech Ltd By Share Ltd
Priority to CN201910061197.2A priority Critical patent/CN109783408A/en
Publication of CN109783408A publication Critical patent/CN109783408A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides a kind of connectivity port localization method, device and electronic equipments, it is related to Network Connection field, it include: that the protocol massages that the second connection end mouth on second network equipment is sent are received by the first connectivity port in the first network equipment;Target LED light device is controlled according to the protocol massages to open, wherein, the target LED light device is lighting device corresponding with the second connection end mouth, solves the more inconvenient technical problem of current cable connection relationship recognition methods existing in the prior art.

Description

Connectivity port localization method, device and electronic equipment
Technical field
The present invention relates to Network Connection fields, more particularly, to a kind of connectivity port localization method, device and electricity Sub- equipment.
Background technique
With the development of society, the progress of science and technology, network application is popularized, and the quantity of network center is growing day by day, this is just To the robustness of network center, stability, maintainable more stringent requirements are proposed.General small-scale network center, example Such as community network, the network computer room of enterprise network or campus network, network cable is all to facilitate management using banding formula cabling mode, Save space.
In network greatly universal today, we are higher and higher to the stability requirement of network, and a stable network, It is unable to do without to the maintenance in network.Traditional colour code band and digital buckle-type cable identification means, with network center's scale Increase, the inconvenience of identification increasingly highlights.
Currently, switching equipment wiring sometimes is complicated in computer room or network center, it is difficult to find this equipment by cable mark Port is specifically connected to which port of peer switches.Therefore, current cable connection relationship recognition methods is more inconvenient.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of connectivity port localization method, device and electronic equipment, with Solve the more inconvenient technical problem of current cable connection relationship recognition methods existing in the prior art.
In a first aspect, it is applied to LED processor the embodiment of the invention provides a kind of connectivity port localization method, it is described LED processor is set in first network equipment, which comprises
By the first connectivity port in the first network equipment, the second connection end mouth on second network equipment is received The protocol massages of transmission;
According to the protocol massages control target LED light device open, wherein the target LED light device be with The corresponding lighting device of the second connection end mouth.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein root It is opened according to protocol massages control target LED light device, comprising:
The protocol massages are parsed, parsing result is obtained;
Target LED light device is controlled according to the parsing result to open.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute State includes: the MAC Address of the first network equipment, the MAC Address of second network equipment and described in protocol massages At least one of the information of second network equipment.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein also Include:
Second connection end mouth based on the protocol massages on second network equipment sends response message, so that institute The lighting device corresponding with the second connection end mouth stated on second network equipment is run according to preset mode.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute State includes: the MAC Address of the first network equipment, the MAC Address of second network equipment, described first in response message At least one of the information of the information of the network equipment and second network equipment.
Second aspect, the embodiment of the present invention also provide a kind of connectivity port positioning device, are applied to LED processor, described Device includes:
Receiving unit, for receiving on second network equipment by the first connectivity port in the first network equipment Second connection end mouth send protocol massages;
Control unit is opened, wherein the target LED for controlling target LED light device according to the protocol massages Lighting device is lighting device corresponding with the second connection end mouth.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute Stating control unit includes:
Parsing module obtains parsing result for parsing to the protocol massages;
Control module is opened for controlling target LED light device according to the parsing result.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein also Include:
Transmission unit, for being answered based on second connection end mouth transmission of the protocol massages on second network equipment Message is answered, so that the lighting device corresponding with the second connection end mouth on second network equipment is transported according to preset mode Row.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program The step of stating method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor Calculation machine readable medium, said program code make the method for the processor execution as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention brings following the utility model has the advantages that connecting pin provided in an embodiment of the present invention Mouth localization method, device and electronic equipment.Firstly, by the first connectivity port in the first network equipment, the is received Then the protocol massages that second connection end mouth on two network equipments is sent control target LED illumination according to the protocol massages Device is opened, wherein the target LED light device is therefore lighting device corresponding with the second connection end mouth passes through The first connectivity port in first network equipment receives the protocol massages of the transmission of the second connection end mouth on second network equipment Afterwards, LED processor just can control lighting device corresponding with the second connection end mouth according to the protocol massages and open, with side Person who happens to be on hand for an errand person fast, easily determines the port position being connected with second connection end mouth, to solve existing in the prior art The more inconvenient technical problem of current cable connection relationship recognition methods.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows the flow chart of connectivity port localization method provided by the embodiment of the present invention one;
Fig. 2 shows the application scenario diagrams of connectivity port localization method provided by the embodiment of the present invention one;
Fig. 3 shows the flow chart of connectivity port localization method provided by the embodiment of the present invention two;
Fig. 4 shows the structure chart of proprietary protocol two layer message format provided by the embodiment of the present invention two;
Fig. 5 shows the structure chart of query message encapsulation format provided by the embodiment of the present invention two;
Fig. 6 shows the structure chart of response query message encapsulation format provided by the embodiment of the present invention two;
Fig. 7 shows another flow chart of connectivity port localization method provided by the embodiment of the present invention two;
Fig. 8 shows the stream that second network equipment is run in connectivity port localization method provided by the embodiment of the present invention two Cheng Tu;
Fig. 9 shows the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention four.
Icon: 4- electronic equipment;41- memory;42- processor;43- bus;44- communication interface.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, being distinguish identification by the way of colour code band or number buckle between cable.This mode is simply straight It sees, but there is also a problem, either colour code band and number buckle has its physical life, be used for a long time, and can have card Button falls off, and identifies the problems such as unclear, causes difficulty to network operation.Moreover, when network center's scale is slightly larger, network cable quantity Increase, the network equipment relatively far apart when, we are less susceptible to be recognized according to cable mark and certain one end of this interchanger sometimes The connected peer switches port numbers of mouth, this can be more difficult to network operation, expends the manpower and material resources in maintenance process.In machine In the case that room network layout is more, only go to distinguish that inter-exchange connected port is less susceptible to by mark, and this is also only It is only a small network, when network size increases, the difficulty of this identification will be bigger.Traditional colour code band and digital buckle-type Cable identification means, it is invisible to also increase net as the inconvenience of the increase of network center's scale, identification increasingly highlights The cost of network maintenance.Therefore, current cable connection relationship recognition methods is more inconvenient.
Based on this, a kind of connectivity port localization method, device and electronic equipment provided in an embodiment of the present invention can be solved The more inconvenient technical problem of current cable connection relationship recognition methods certainly existing in the prior art.
For convenient for understanding the present embodiment, first to a kind of connectivity port positioning side disclosed in the embodiment of the present invention Method, device and electronic equipment describe in detail.
Embodiment one:
A kind of connectivity port localization method provided in an embodiment of the present invention is applied to LED processor, the setting of LED processor In in first network equipment, as shown in Figure 1, method includes:
S11: by the first connectivity port in first network equipment, the second connection end mouth on second network equipment is received The protocol massages of transmission.
For example, second network equipment is interchanger, after interchanger unlatching port positioning function, it is connected to what will be positioned Port (the first connectivity port i.e. in first network equipment) sends proprietary protocol message.
S12: according to protocol massages control target LED light device open, wherein target LED light device be and second The corresponding lighting device in connectivity port.
In the application scenarios of connectivity port localization method, as shown in Fig. 2, Switch Group A and Switch Group B is two exchange groups of certain network center, wherein some port of 1 equipment of Switch of Group A, it is assumed that it is eth0/0/1, and 2 another port Switch of Group B is connected.
For the prior art, due to the complexity of network topology, system maintenance personnel can not be marked fast using cable It is fast easily to know, the another port being connected with certain port Switch 1.Automatic quickly positioning connected end in through this embodiment Mouthful, if No. 0/0/1 port eth is inquiry port on Switch 1,2 port Switch being connected with eth 0/0/1 is positioning Port, Switch1 and Switch 2 are respectively query facility and positioning device, when 2 port Switch (i.e. positioning port) receives To after specific proprietary protocol message, corresponding LED light can be lighted, to facilitate personnel fast, easily determining and Switch 1 connected port position.
Therefore, connectivity port localization method provided in this embodiment can also be used as a kind of quickly positioning interchanger network interface Between connecting line order relation method, based on the LED processor module that exchange chip carries, by two layers of privately owned message protocol, from And realize connecting line order relation between quickly positioning interchanger network interface.
In the present embodiment, without changing interchanger existing hardware equipment, using the existing LED processor module of exchange chip, It is completed by the way that software is i.e. controllable, and can be adapted to and be transplanted in different exchange chip products, easy to operate, operation is efficient.
Embodiment two:
A kind of connectivity port localization method provided in an embodiment of the present invention is applied to LED processor, the setting of LED processor In in first network equipment, as shown in figure 3, method includes:
S21: by the first connectivity port in first network equipment, the second connection end mouth on second network equipment is received The protocol massages of transmission.
Specifically, the LED processor starting port positioning function being set in positioning device (i.e. first network equipment), if Positioning device receives the vlan query protocol VLAN message issued from query facility (i.e. second network equipment), and enable port positions function Energy.
It should be noted that in protocol massages including: the MAC of the MAC Address of first network equipment, second network equipment At least one of location and the information of second network equipment.As shown in Figure 4 and Figure 5, purpose MAC is 6 bytes, including fixed The MAC Address of position equipment;Source MAC is 6 bytes, including the MAC Address of query facility;Protocol type is 2 bytes, is defaulted as 0x5352;Labeled as 2 bytes, marker bit can represent two kinds of message formats, such as query message and inquiry response message;For TLV data, mark 1 are 2 bytes, and identifying this information is inquiry apparatus information, and length is 2 bytes, and inquiry apparatus information can root According to length computation;TTL is 4 bytes, and time to live is every to subtract 1 by primary exchange data, if the TTL that interchanger receives is 0, Then abandon the message;FCS is 4 bytes, CRC-32 verification.
S22: parsing protocol massages, obtains parsing result.
S23: according to parsing result control target LED light device open, wherein target LED light device be and second The corresponding lighting device in connectivity port.
As the preferred embodiment of the present embodiment, the LED light of positioning port is lighted according to parsing result.
S24: response message is sent based on second connection end mouth of the protocol massages on second network equipment, so that the second net Lighting device corresponding with second connection end mouth in network equipment is run according to preset mode.
In this step, according to vlan query protocol VLAN message feedback query response message.It wherein, include: the first net in response message The MAC Address of network equipment, the MAC Address of second network equipment, the information of first network equipment and second network equipment letter At least one of breath.
As shown in fig. 6, purpose MAC is 6 bytes, including the MAC Address of query facility;Source MAC is 6 bytes, wherein MAC Address including positioning device;Protocol type is 2 bytes, is defaulted as 0x5352;Labeled as 2 bytes, marker bit can be represented Two kinds of message formats, such as query message and inquiry response message;For TLV data, mark 1 is 2 bytes, and identifying this information is to look into Facility information is ask, length is 2 bytes, and inquiry apparatus information can be according to length computation, and identifying 2 is 2 bytes, and identifying this information is Positioning device information, length are 2 bytes, and positioning device information can be according to length computation, and TTL is 4 bytes, time to live, often Subtract 1 by once exchanging data, if the TTL that interchanger receives is 0, abandons the message, FCS is 4 bytes, the school CRC-32 It tests.
As the another embodiment of the present embodiment, as shown in fig. 7, after the LED light for lighting positioning port, starting The port 30s timer no longer receives the vlan query protocol VLAN message from same port during this period.If receiving other ends in 30s The query message of mouth repeats step 2~4;If no, close port positioning function, equipment LED light is restored port linkup and is referred to Show state.
As shown in figure 8, for the second network equipment operational process: firstly, starting port positioning function, i.e., quickly press three Secondary reset key starts port positioning function.After the starting of port positioning function, all LED of equipment flashing three times, indicate starting at Function.It then, selection inquiry port can be by pressing reset key, selection inquiry port that is, after starting port positioning function.First It is secondary that the LED light of port 1 is bright, presses every time later, and LED light is moved back to lower Single port when pressing, until behind the last one port, then It is secondary to press, a port is returned to, is so recycled.When the LED light of some port is always on greater than 2s, expression confirmation selects this end Mouth is inquiry port.Later, vlan query protocol VLAN message is sent to inquiry port.This protocol massages is per second to be sent once, sends three altogether Secondary, after first time sends, port starts 30s timer.If not receiving the response message of opposite equip. in 30s, then inquiring LED light flashing in port selects other ports to be inquired until there is button operation, at this time repeatedly step 1~3;If 30s is overtime, Close port positioning function.Finally, close port positioning function, equipment LED light restores port linkup instruction state.
Embodiment three:
A kind of connectivity port positioning device provided in an embodiment of the present invention, is applied to LED processor, and device includes: to receive Unit and control unit.
Wherein, receiving unit is used to receive on second network equipment by the first connectivity port in first network equipment Second connection end mouth send protocol massages.Control unit is used to control target LED light device according to protocol massages and open, Wherein, target LED light device is lighting device corresponding with second connection end mouth.
Further, control unit includes: parsing module and control module.Parsing module be used for protocol massages into Row parsing, obtains parsing result.Control module is used to control target LED light device according to parsing result and open.
In practical applications, connectivity port positioning device further include: transmission unit, for being based on protocol massages to the second net Second connection end mouth in network equipment sends response message, so that the illumination corresponding with second connection end mouth on second network equipment Device is run according to preset mode.
Example IV:
A kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 9, electronic equipment 4 includes memory 41, processor 42, the computer program that can be run on the processor is stored in the memory, the processor executes the calculating The step of method that above-described embodiment one or embodiment two provide is realized when machine program.
Referring to Fig. 9, electronic equipment further include: bus 43 and communication interface 44, processor 42, communication interface 44 and memory 41 are connected by bus 43;Processor 42 is for executing the executable module stored in memory 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random AccessMemory), can also It can further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Pass through at least one A communication interface 44 (can be wired or wireless) realizes the communication link between the system network element and at least one other network element It connects, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.
Bus 43 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 9, it is not intended that an only bus or A type of bus.
Wherein, memory 41 is for storing program, and the processor 42 executes the journey after receiving and executing instruction Sequence, method performed by the device that the process that aforementioned any embodiment of the present invention discloses defines can be applied in processor 42, Or it is realized by processor 42.
Processor 42 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 42 or the instruction of software form.Above-mentioned Processor 42 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory 41, and processor 42 reads the information in memory 41, in conjunction with Its hardware completes the step of above method.
Embodiment five:
It is provided in an embodiment of the present invention it is a kind of with processor can be performed non-volatile program code it is computer-readable Medium, said program code make the method that the processor executes above-described embodiment one or embodiment two provides.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
The computer-readable medium of the non-volatile program code provided in an embodiment of the present invention that can be performed with processor, With connectivity port localization method provided by the above embodiment, device and electronic equipment technical characteristic having the same, so It can solve identical technical problem, reach identical technical effect.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.
In addition, term " first ", " second ", " third " are used for description purposes only, it is not understood to indicate or imply phase To importance.
It is attached the computer program product of port localization method provided by the embodiment of the present invention, including stores place The computer readable storage medium of the executable non-volatile program code of device is managed, the instruction that said program code includes can be used for Previous methods method as described in the examples is executed, specific implementation can be found in embodiment of the method, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection 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, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of connectivity port localization method is applied to LED processor, the LED processor is set in first network equipment, It is characterized in that, which comprises
By the first connectivity port in the first network equipment, the second connection end mouth received on second network equipment is sent Protocol massages;
According to the protocol massages control target LED light device open, wherein the target LED light device be with it is described The corresponding lighting device of second connection end mouth.
2. connectivity port localization method according to claim 1, which is characterized in that control target according to the protocol massages LED light device is opened, comprising:
The protocol massages are parsed, parsing result is obtained;
Target LED light device is controlled according to the parsing result to open.
3. connectivity port localization method according to claim 1, which is characterized in that include: described in the protocol massages In the information of the MAC Address of first network equipment, the MAC Address of second network equipment and second network equipment It is at least one.
4. connectivity port localization method according to claim 1, which is characterized in that further include:
Response message is sent based on second connection end mouth of the protocol massages on second network equipment, so that described the Lighting device corresponding with the second connection end mouth on two network equipments is run according to preset mode.
5. connectivity port localization method according to claim 4, which is characterized in that include: described in the response message The MAC Address of first network equipment, the MAC Address of second network equipment, the information of the first network equipment and institute State at least one of the information of second network equipment.
6. a kind of connectivity port positioning device, it is applied to LED processor, which is characterized in that described device includes:
Receiving unit, for by the first connectivity port in the first network equipment, receiving the on second network equipment The protocol massages that two connectivity ports are sent;
Control unit is opened, wherein the target LED illumination for controlling target LED light device according to the protocol massages Device is lighting device corresponding with the second connection end mouth.
7. connectivity port positioning device according to claim 6, which is characterized in that described control unit includes:
Parsing module obtains parsing result for parsing to the protocol massages;
Control module is opened for controlling target LED light device according to the parsing result.
8. connectivity port positioning device according to claim 6, which is characterized in that further include:
Transmission unit, for sending response report based on second connection end mouth of the protocol massages on second network equipment Text, so that the lighting device corresponding with the second connection end mouth on second network equipment is run according to preset mode.
9. a kind of electronic equipment, including memory, processor, be stored in the memory to run on the processor Computer program, which is characterized in that the processor realizes that the claims 1 to 5 are any when executing the computer program The step of method described in item.
10. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described Program code makes the processor execute described any the method for claim 1 to 5.
CN201910061197.2A 2019-01-24 2019-01-24 Connectivity port localization method, device and electronic equipment Pending CN109783408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910061197.2A CN109783408A (en) 2019-01-24 2019-01-24 Connectivity port localization method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910061197.2A CN109783408A (en) 2019-01-24 2019-01-24 Connectivity port localization method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109783408A true CN109783408A (en) 2019-05-21

Family

ID=66501114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910061197.2A Pending CN109783408A (en) 2019-01-24 2019-01-24 Connectivity port localization method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109783408A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422345A (en) * 2021-12-21 2022-04-29 深圳市飞速创新技术股份有限公司 Port positioning method and network equipment
CN116760749A (en) * 2023-08-15 2023-09-15 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201262638Y (en) * 2008-09-25 2009-06-24 万崇 Device for determining corresponding relation of network layout terminal and machinery room terminal cable
CN102298106A (en) * 2011-05-19 2011-12-28 河海大学 FPGA (field programmable gate array)-based arc monitoring system in valve hall
CN102684784A (en) * 2012-05-30 2012-09-19 华为技术有限公司 Jumper fiber connection detection method and jumper fiber connection detection device
CN102726056A (en) * 2009-08-21 2012-10-10 北卡罗来纳科姆斯科普公司 Systems for automatically tracking patching connections to network devices using a separate control channel and related patching equipment and methods
CN105530721A (en) * 2015-12-30 2016-04-27 北京经纬恒润科技有限公司 Light-emitting control method, apparatus and system for LED (light emitting diode) lamp
CN206533369U (en) * 2017-03-23 2017-09-29 中国工商银行股份有限公司 Optical fiber jumper connection system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201262638Y (en) * 2008-09-25 2009-06-24 万崇 Device for determining corresponding relation of network layout terminal and machinery room terminal cable
CN102726056A (en) * 2009-08-21 2012-10-10 北卡罗来纳科姆斯科普公司 Systems for automatically tracking patching connections to network devices using a separate control channel and related patching equipment and methods
CN102298106A (en) * 2011-05-19 2011-12-28 河海大学 FPGA (field programmable gate array)-based arc monitoring system in valve hall
CN102684784A (en) * 2012-05-30 2012-09-19 华为技术有限公司 Jumper fiber connection detection method and jumper fiber connection detection device
CN105530721A (en) * 2015-12-30 2016-04-27 北京经纬恒润科技有限公司 Light-emitting control method, apparatus and system for LED (light emitting diode) lamp
CN206533369U (en) * 2017-03-23 2017-09-29 中国工商银行股份有限公司 Optical fiber jumper connection system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422345A (en) * 2021-12-21 2022-04-29 深圳市飞速创新技术股份有限公司 Port positioning method and network equipment
CN116760749A (en) * 2023-08-15 2023-09-15 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC
CN116760749B (en) * 2023-08-15 2023-10-17 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC

Similar Documents

Publication Publication Date Title
CN106878459B (en) Self-adaptive Internet of things intelligent gateway implementation method and equipment thereof
CN110401568A (en) A kind of method for discovering network topology and equipment
CN104660498A (en) Gateway equipment and information processing method
CN106652415A (en) Processing method and device of protocol for concentrated reading of multiple meters
CN106452891B (en) VLAN method of automatic configuration, device and interchanger based on SCD file
CN108259209A (en) Method for configuring network equipment and device
CN109783408A (en) Connectivity port localization method, device and electronic equipment
CN106982222A (en) The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment
US11349565B2 (en) Method and apparatus for establishing optical cable connection
CN102663458B (en) Multi-core UHF RFID reader-writer realized by application software
CN109618250B (en) Optical fiber network node management method and system
CN110121121A (en) Fiber resource management system and method
CN108243407A (en) A kind of method and terminal device of multiple wireless module device network interface managements
CN109309595A (en) Data transmission method, device and electronic equipment based on Ethernet
CN107888519A (en) A kind of local gigabit ethernet switch
CN101977142A (en) Simple network management method and device based on multiple routing protocol instances
CN103873369B (en) Gateway and method for supporting interaction of heterogeneous network
CN110737660A (en) data processing method, device and computer readable storage medium
CN100463426C (en) Sevice quality control/device and method based on virtual network marker
CN106506409B (en) A kind of management method and network management exchange of network management exchange
CN106130799B (en) Family gateway equipment and its switching method with multi-operator handoff functionality
CN109428824A (en) Host Topology g eneration method and system
CN100479577C (en) Method for operating resource in device management
CN102610078A (en) Communication implementation method of intelligent power consumption system
CN109687985B (en) Automatic configuration method and system for process level network of transformer substation

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521