CN108989069A - A kind of detection method of network linking, electronic equipment and computer storage medium - Google Patents
A kind of detection method of network linking, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN108989069A CN108989069A CN201710400663.6A CN201710400663A CN108989069A CN 108989069 A CN108989069 A CN 108989069A CN 201710400663 A CN201710400663 A CN 201710400663A CN 108989069 A CN108989069 A CN 108989069A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- network
- network linking
- attribute
- attribute information
- 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.)
- Granted
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/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- 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/0823—Errors, e.g. transmission errors
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of detection methods of network linking, comprising: the first electronic equipment receives the attribute information of the second electronic equipment;The attribute information of second electronic equipment includes at least: the location information of the port attribute of second electronic equipment or second electronic equipment;Based on the attribute information of second electronic equipment, the network linking between first electronic equipment and second electronic equipment is detected according to preset strategy.The present invention further simultaneously discloses a kind of electronic equipment and computer storage medium.
Description
Technical field
The present invention relates to network communication technology more particularly to a kind of detection methods of network linking, electronic equipment and calculating
Machine storage medium.
Background technique
With the rapid development of Internet technology, the application range of data center network is also increasingly extensive;Data center's net
Network is not only in large scale, structure is complicated, but also the network linking between internal each equipment is also countless, therefore, network linking
There is a situation where mistakes also to can hardly be avoided.
Existing data center network has the fixed network architecture, comprising: in the data of multi-layer framework as shown in Figure 1
Heart network, the data center network of fat tree (FATTREE) framework as shown in Figure 2, matrix data communication network as shown in Figure 3
The data center network of (Matrix DCN, Matrix Data Communication Network) framework, as shown in Figure 4
The data center network etc. of DCELL framework.Currently, the method master that there is the data center network of fixed network architectures to link for detection
It to include that artificial Determination and automatic comparison detect two kinds.
But when being linked using artificial Determination data center network in large scale, not only low efficiency, but also be easy
There is detection mistake;When being linked using automatic comparison detection data central site network, have the following problems: first is in automatic comparison
When detection data central site network links, network topology structure need to be pre-established, and establishes data center network in large scale
Workload is quite huge;Second is when being linked using automatic comparison detection data central site network, for each network equipment
Mark need to be cooperated and relatively difficult with control centre etc.;Third is to utilize automatic comparison detection data central site network chain
When connecing, identification code (ID, Identification) based on equipment is one-to-one to equipment progress with postponing, and configuration information cannot spirit
Change living, makes troubles to device configuration and maintenance.
Summary of the invention
In view of this, an embodiment of the present invention is intended to provide a kind of detection method of network linking, electronic equipment and computers
Storage medium, can without equipment is configured and is identified, without network topology structure is pre-established while, quickly
The mistake of ground detection network linking.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of detection method of network linking, comprising: the first electronic equipment receives the second electronics
The attribute information of equipment;The attribute information of second electronic equipment includes at least: the port attribute of second electronic equipment
Or the location information of second electronic equipment;
Based on the attribute information of second electronic equipment, first electronic equipment and institute are detected according to preset strategy
State the network linking between the second electronic equipment.
In above scheme, the attribute information based on second electronic equipment, according to described in preset strategy detection
Network linking between first electronic equipment and second electronic equipment, comprising:
First electronic equipment is according to preset strategy, by the category of the attribute information of itself and second electronic equipment
Property information is matched, and matching result is obtained;
The network linking between first electronic equipment and second electronic equipment is detected based on the matching result
Whether relationship is correct.
It is described that first electronic equipment and second electronic equipment are detected based on the matching result in above scheme
Between network linking it is whether correct, comprising:
The location information of location information and second electronic equipment based on first electronic equipment determines described
When being located on the same floor network with second electronic equipment for first electronic equipment with result, detects first electronics and set
The standby network linking relationship mistake between second electronic equipment;Or,
The port attribute of port attribute and second electronic equipment based on first electronic equipment determines described
When identical as the port attribute of second electronic equipment with the port attribute that result is first electronic equipment, described in detection
Network linking relationship mistake between first electronic equipment and second electronic equipment.
In above scheme, when carrying inspection policies in the attribute information of second electronic equipment, according to preset plan
Slightly detect the network linking between first electronic equipment and second electronic equipment, comprising:
First electronic equipment detects first electronic equipment according to the inspection policies and sets with second electronics
Network linking between standby;
When not carrying inspection policies in the attribute information of second electronic equipment, according to described in preset strategy detection
Network linking between first electronic equipment and second electronic equipment, comprising:
First electronic equipment detects first electronic equipment and described second according to the inspection policies itself stored
Network linking between electronic equipment.
In above scheme, the method also includes:
First electronic equipment reports the network linking of mistake.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes: receiving module and detection module;Its
In,
The receiving module, for receiving the attribute information of third electronic equipment;The attribute of the third electronic equipment is believed
Breath includes at least: the location information of the port attribute of the third electronic equipment or the third electronic equipment;
The detection module detects institute according to preset strategy for the attribute information based on the third electronic equipment
State the network linking between electronic equipment and the third electronic equipment.
In above scheme, the detection module is specifically used for believing the attribute of the electronic equipment according to preset strategy
Breath is matched with the attribute information of the third electronic equipment, obtains matching result;
Whether the network linking between the electronic equipment and the third electronic equipment is detected based on the matching result
Correctly.
In above scheme, the detection module, specifically for based on the electronic equipment location information and the third
The location information of electronic equipment determines that the matching result is that the electronic equipment is located on the same floor with the third electronic equipment
When network, the network linking relationship mistake between the electronic equipment and the third electronic equipment is detected;Or,
The port attribute of port attribute and the third electronic equipment based on the electronic equipment determines the matching knot
When fruit is that the port attribute of the electronic equipment is identical as the port attribute of the third electronic equipment, the electronic equipment is detected
Network linking relationship mistake between the third electronic equipment.
In above scheme, when carrying inspection policies in the attribute information of the third electronic equipment, the detection module,
Specifically for detecting the network linking between the electronic equipment and the third electronic equipment according to the inspection policies;
When not carrying inspection policies in the attribute information of the third electronic equipment, the detection module is specifically used for
It is detected between first electronic equipment and second electronic equipment according to the inspection policies stored in the electronic equipment
Network linking.
In above scheme, the electronic equipment further include:
Reporting module, for reporting the network linking of mistake.
The embodiment of the present invention also provides a kind of computer storage medium, is stored thereon with computer program, which is characterized in that
The step of above method is realized when the program is executed by processor.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory and can
The step of computer program run on a processor, the processor realizes the above method when executing described program.
Detection method, electronic equipment and the computer storage medium of network linking provided in an embodiment of the present invention, the first electricity
Sub- equipment obtains the attribute information of the second electronic equipment based on communication connection, and by the attribute information of the second electronic equipment and itself
Attribute information according between the first electronic equipment of rule detection of network linking in data center network and the second electronic equipment
Network linking;So that without being configured and being identified to equipment, without network topology structure is pre-established, it just being capable of speed ground
Detect the mistake of network linking.
Detailed description of the invention
Fig. 1 is the data center network schematic diagram of multi-layer framework of the present invention;
Fig. 2 is the data center network schematic diagram of FATTREE framework of the present invention;
Fig. 3 is the data center network schematic diagram of Matrix DCN framework of the present invention;
Fig. 4 is the data center network schematic diagram of DCELL framework of the present invention;
Fig. 5 is a kind of flow diagram of the detection method of the network linking of the embodiment of the present invention one;
Fig. 6 is the message format schematic diagram for the attribute information that the embodiment of the present invention carries the second electronic equipment;
Fig. 7 is the form schematic diagram of the LLDP message of extension of the embodiment of the present invention;
Fig. 8 is a kind of flow diagram of the detection method of the network linking of the embodiment of the present invention two;
Fig. 9 is a kind of flow diagram of the detection method of the network linking of the embodiment of the present invention three;
Figure 10 is a kind of flow diagram of the detection method of the network linking of the embodiment of the present invention four;
Figure 11 is a kind of flow diagram of the detection method of the network linking of the embodiment of the present invention five;
Figure 12 is the schematic diagram that decision system of the embodiment of the present invention sends configuration information to vSwitch;
Figure 13 is network linking of embodiment of the present invention schematic diagram one;
Figure 14 is network linking of embodiment of the present invention schematic diagram two;
Figure 15 is electronic equipment of embodiment of the present invention composed structure schematic diagram;
Figure 16 is the hardware composed structure schematic diagram of electronic equipment of the embodiment of the present invention.
Specific embodiment
The technical solution of embodiment for a better understanding of the present invention, below in the prior art using automatically to comparison inspection
The scheme of measured data central site network link is briefly introduced.
In the prior art, mainly include following several using the scheme that automatic comparison detection data central site network links: the
One is pre-establishing known network topological structure, and the network topology structure is digitized, is run in network topology structure
When collect dynamic network topology structure and carry out automatic comparison;It is for second to pre-establish known network topological structure, and to institute
It states network topology structure digitize, is graphical, collects dynamic network topology structure in network topology structure operation, then to institute
It is graphical to state dynamic network topology structure, manually to be compared;The third is to collect to move in network topology structure operation
The network topology structure of state is manually compared it with design planning figure;4th kind is that there is network linking to close for preparatory confirmation
The ID of two equipment of system, the ID based on two equipment carry out one-to-one configuration to equipment, then automatic detection network linking is closed
It whether correct is.
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to of the invention real
The realization for applying example is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the present invention.In addition, following
Provided embodiment is section Example for carrying out the present invention, rather than provides and implement whole embodiments of the invention,
In the case where not conflicting, the embodiment of the present invention record technical solution can mode in any combination implement.
It should be noted that term involved in the embodiment of the present invention " first second third the 4th " be only be area
Not similar object does not represent the particular sorted for object, it is possible to understand that ground, " first second third the 4th " allowing
In the case where specific sequence or precedence can be interchanged.It should be understood that " first second third the 4th " distinguish object
It is interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein can be in addition to illustrating herein or describing
Sequence other than those is implemented.
In embodiments of the present invention, the electronic equipment can include but is not limited to the core inside data center network and set
Any equipment with information or message transmission and receive capabilities such as standby, switching equipment, convergence device.
Embodiment one
As shown in figure 5, a kind of implementation process of the detection method of the network linking of the embodiment of the present invention one, including following step
It is rapid:
Step S101, the first electronic equipment receive the attribute information of the second electronic equipment;
Wherein, the port attribute includes at least: the type of port, such as up going port and down going port, line interface and column interface,
Inline mouth and external connection mouth etc.;The location information indicates that institute's location information is included at least with node coordinate X and node coordinate Y: electricity
Layer information or column information or row information of the sub- equipment locating for data center network.
Specifically, first electronic equipment receives the second electronic equipment and is set by the second electronics that message or information are sent
Standby attribute information.
By taking the second electronic equipment sends the attribute information of the second electronic equipment by message as an example, the format of the message,
As shown in Figure 6, comprising: network architecture type, port type, node coordinate X and node coordinate Y;Wherein, the network architecture class
Type includes: multi-layer framework, FATTREE, Matrix DCN and DCELL.The port type is in different network architecture types
Meaning it is not identical;In the data center network of multi-layer framework and the data center network of FATTREE, the port type
Including up going port and down going port;In the data center network of Matrix DCN, the port type includes that line interface and column connect
Mouthful;In the data center network of DCELL, the port type includes inline mouth and external connection button.The node coordinate X and node
Coordinate Y, for the location information of characterization of electronic equipment, the meaning in different network architecture types is not identical;In multilayer
In the data center network of framework and the data center network of FATTREE, node coordinate X includes: level and container identification, " layer
It is secondary " value range be 0-255,0 indicate host layer;The value range of " container identification " is 0-255;The value of node coordinate Y
Range is 0-65535.In the data center network of Matrix DCN, the value range of node coordinate X is 0-65535, and 0 indicates
Row head interchanger;The value range of node coordinate Y is 0-65535, and 0 indicates to arrange first interchanger.In the data center network of DCELL
In, node coordinate X includes: level and container identification, and the value range of " level " is 0-255, and 0 indicates the port of innermost layer, " is held
The value range of device mark " is 0-255;The value range of node coordinate Y is 0-65535.
The message can also be extended based on existing protocol massages, for being extended based on LLDP message,
The format of LLDP message is as shown in fig. 7, " self-defined information " is the expansion for carrying the attribute information of second electronic equipment
Open up message;Wherein, " network architecture type " and " port type " in the amplifying message occupies 1 byte, the extension
" node coordinate X " and " node coordinate Y " in message occupies 2 bytes.
Here, the attribute information of second electronic equipment can be directly configures on the second electronic equipment, can also
Administrative unit inside data center network or control unit to be independently of second electronic equipment etc. are sent to described
Second electronic equipment;The attribute information of second electronic equipment include at least second electronic equipment port attribute or
The location information of second electronic equipment.
Step S102, based on the attribute information of second electronic equipment, according to preset strategy detection first electricity
Network linking between sub- equipment and second electronic equipment;
Specifically, first electronic equipment is according to preset strategy, by the attribute information of itself and second electronics
The attribute information of equipment is matched, and matching result is obtained;First electronic equipment is based on described in matching result detection
Whether the network connection relation between the first electronic equipment and the second electronic equipment is correct.
Here, the preset strategy can be the detection carried in the attribute information of received second electronic equipment
Strategy, is also possible to the inspection policies of the first electronic equipment itself storage, and every kind of inspection policies correspond to a kind of network architecture
Type.
Wherein, the preset strategy include: port type having the same two electronic equipments between cannot have
Linking relationship cannot interconnect;There cannot be link to close between two electronic equipments of the same layer in data center network
System, i.e., cannot interconnect;Be unable to intercommunication between two electronic equipments of cross-layer, i.e., only positioned at the adjacent layer of data center network it
Between two electronic equipments could intercommunication;The electronic equipment first positioned at row can have with the electronic equipment for being located at the row links pass
System, the electronic equipment first positioned at column can have linking relationship with the electronic equipment for being located at the column;The preset strategy also wraps
The linking relationship between customized Y coordinate is included, e.g., defines and can have link pass between the electronic equipment that Y coordinate is odd number
System or definition Y coordinate can have linking relationship between the electronic equipment of even number, or define the electronics that Y coordinate is odd number and set
It is standby to can have linking relationship etc. between the electronic equipment of even number with Y coordinate.
By taking the attribute information of second electronic equipment is location information as an example, the position based on first electronic equipment
The location information of information and second electronic equipment determines that the matching result is first electronic equipment and described second
When electronic equipment is located on the same floor network, the network linking between first electronic equipment and second electronic equipment is detected
Relationship mistake.
By taking the attribute information of second electronic equipment is port attribute as an example, the port attribute is the type base of port
Determine the matching result for institute in the port attribute of first electronic equipment and the port attribute of second electronic equipment
State the first electronic equipment port attribute it is identical as the port attribute of second electronic equipment when, detect first electronics and set
The standby network linking relationship mistake between second electronic equipment;The port type of i.e. described first electronic equipment with it is described
The network linking when port type of second electronic equipment is identical, between first electronic equipment and second electronic equipment
Relationship mistake.
Attribute information with second equipment both includes location information, also include port attribute for, need to by first electricity
The location information of sub- equipment is matched with the location information of the second electronic equipment, obtains the first matching result;By the first electronics
The port attribute of equipment is matched with the port attribute of the second electronic equipment, obtains the second matching result;In conjunction with described
One matching result and second matching result determine the network linking relationship of first electronic equipment and the second electronic equipment.
First electronic equipment and second electricity are only characterized in first matching result and second matching result
When the network linking relationship of sub- equipment is correct, the lattice chain of first electronic equipment Yu second electronic equipment just can determine that
It is correct to connect relationship.Any one described first electronics of characterization in first matching result and second matching result is set
When the standby network linking relationship mistake with second electronic equipment, first electronic equipment and described second just can determine
The network linking relationship mistake of electronic equipment.
Embodiment two
It is and shown in fig. 5 as shown in figure 8, a kind of implementation process of the detection method of the network linking of the embodiment of the present invention two
Method is similar, the difference is that, in step s 102, the first electronic equipment detects first electronic equipment and described the
After network linking relationship mistake between two electronic equipments, the method also includes:
Step S103, the first electronic equipment report the network linking of mistake;
Specifically, first electronic equipment sends information to specified functional unit;The information is used to indicate described
The network linking relationship mistake of first electronic equipment and second electronic equipment;The information may be used to indicate that the net
The reason of network linking relationship mistake.
Wherein, the functional unit can be electronic equipment or module inside data center network, be also possible to independence
In the remote electronics or module of the data center network;The information can be warning information, be also possible to common
The communication information.
Embodiment three as shown in figure 9, a kind of detection method of the network linking of the embodiment of the present invention three implementation process, including
Following steps:
Step S201, the first electronic equipment receive the attribute information of the second electronic equipment;
Wherein, the port attribute includes at least: the type of port, such as up going port and down going port, line interface and column interface,
Inline mouth and external connection mouth etc.;The location information indicates that institute's location information is included at least with node coordinate X and node coordinate Y: electricity
Layer information or column information or row information of the sub- equipment locating for data center network.
Specifically, first electronic equipment receives the second electronic equipment and is set by the second electronics that message or information are sent
Standby attribute information.
By taking the second electronic equipment sends the attribute information of the second electronic equipment by message as an example, the format of the message,
As shown in Figure 6, comprising: network architecture type, port type, node coordinate X and node coordinate Y;Wherein, the network architecture class
Type includes: multi-layer framework, FATTREE, Matrix DCN and DCELL.The port type is in different network architecture types
Meaning it is not identical;In the data center network of multi-layer framework and the data center network of FATTREE, the port type
Including up going port and down going port;In the data center network of Matrix DCN, the port type includes that line interface and column connect
Mouthful;In the data center network of DCELL, the port type includes inline mouth and external connection button.The node coordinate X and node
Coordinate Y, for the location information of characterization of electronic equipment, the meaning in different network architecture types is not identical;In multilayer
In the data center network of framework and the data center network of FATTREE, node coordinate X includes: level and container identification, " layer
It is secondary " value range be 0-255,0 indicate host layer;The value range of " container identification " is 0-255;The value of node coordinate Y
Range is 0-65535.In the data center network of Matrix DCN, the value range of node coordinate X is 0-65535, and 0 indicates
Row head interchanger;The value range of node coordinate Y is 0-65535, and 0 indicates to arrange first interchanger.In the data center network of DCELL
In, node coordinate X includes: level and container identification, and the value range of " level " is 0-255, and 0 indicates the port of innermost layer, " is held
The value range of device mark " is 0-255;The value range of node coordinate Y is 0-65535.
The message can also be extended based on existing protocol massages, for being extended based on LLDP message,
The format of LLDP message is as shown in fig. 7, " self-defined information " is the expansion for carrying the attribute information of second electronic equipment
Open up message;Wherein, " network architecture type " and " port type " in the amplifying message occupies 1 byte, the extension
" node coordinate X " and " node coordinate Y " in message occupies 2 bytes.
Here, the attribute information of second electronic equipment can be directly configures on the second electronic equipment, can also
Administrative unit inside data center network or control unit to be independently of second electronic equipment etc. are sent to described
Second electronic equipment;The attribute information of second electronic equipment include at least second electronic equipment port attribute or
The location information of second electronic equipment.
Step S202, the attribute information of the attribute information of itself and the second electronic equipment is sent to by the first electronic equipment to be sentenced
Certainly system;
Here, the decision system be independently of the data center network, have communication function and information processing function
The electronic equipment or module or functional unit of energy.
Step S203, the decision system detect first electronic equipment and second electronics according to preset strategy
Network linking between equipment;
Specifically, the decision system sets the attribute information of the first electronic equipment with the second electronics according to preset strategy
Standby attribute information is matched, and matching result is obtained;Based on the matching result detect first electronic equipment with it is described
Whether the network linking relationship between the second electronic equipment is correct.
Wherein, the preset strategy can be sent to the decision system by first electronic equipment, can also be pre-
The mode that can be got to the decision system or other any decision systems is first stored, is not specifically limited here.
Here, the decision system detects the network linking between first electronic equipment and second electronic equipment
Specific implementation and step S102 in the first electronic equipment detect first electronic equipment and second electronic equipment
Between network linking specific implementation it is identical, which is not described herein again.
Example IV
As shown in Figure 10, the implementation process of the detection method of a kind of network linking of the embodiment of the present invention four, and it is shown in Fig. 9
Method is similar, the difference is that, in step S203 after, the method also includes:
Step S204, the decision system handle the network linking of mistake;
Specifically, the decision system is sent to data center network blocks instruction, and the blocking instruction is used to indicate institute
State the network linking for the mistake that data center network disconnection detection arrives;Or management of the decision system to data center network
Person sends a warning message, and the warning information is used to indicate the network linking of mistake;The warning information is also used to indicate network
The reason of linking relationship mistake.
Embodiment five
As shown in figure 11, the implementation process of the detection method of a kind of network linking of the embodiment of the present invention five, including following step
It is rapid:
Step S301, virtual switch (vSwitch) obtain the configuration information of itself;
Here, the configuration information can be directly configures on vSwitch, can also be sent by other function unit
To vSwitch;By taking decision system sends configuration information to vSwitch as an example, decision system sends configuration information to vSwitch
Schematic diagram, as shown in figure 12, the vSwitch are a forward node in Figure 12, and decision system is sent out to each forward node
Give the configuration information of the forward node;The configuration information of itself is sent by LLDP message between each forward node.
Step S302, vSwitch send detection messages to opposite equip.;
Here, vSwitch can periodically send detection messages, and the period can flexibly set as needed;
VSwitch can also send detection messages when meeting trigger condition;The trigger condition can be on the port of vSwitch
The configuration information of line (UP) or vSwitch change.
Step S303 carries out net based on the detection messages after opposite equip. receives the detection messages of vSwitch transmission
Network link detection;
Specifically, opposite equip. carries out step S102 in the specific implementation and above-described embodiment one of network linking detection
Identical, which is not described herein again.
In the embodiment of the present invention, the opposite equip. detects itself and vSwitch based on the vSwitch detection messages sent
Between network linking relationship after, can when meeting trigger condition to vSwitch send detection messages, or periodically to
VSwitch sends detection messages;Can also detection messages no longer be sent to vSwitch.
The detection method of the network linking based on the above embodiment, to mistake for the network architecture shown in Figure 13
Network linking relationship be described in detail.
The network architecture shown in Figure 13 is variant of the multi-layer framework in conjunction with the FATTREE network architecture, the network architecture
In existing layering, and have different container units (POD);
Preset strategy include: adjacent layer two equipment between can have network linking relationship;Positioned at setting for lower layer
Standby uplink port is connected between the downlink port on upper layer;Different POD is by carrying out phase with the network linking on upper layer
Even.
Network linking in the network architecture shown in Figure 13 uses dotted line and solid line respectively;Wherein, link 1, link 2,
Link 3 and the broken line representation of link 4, for the network linking of mistake;It is correct network linking with the network linking of solid line;
The reason of network linking mistake are as follows:
1) 1 linking between access device 1 (ac1) and core equipment 2 (core2) is linked, since ac1 is in the network
In framework locating layer and core2 it is locating in the network architecture layer it is non-conterminous;Therefore, link 1 is wrong link.
2) 2 linking between ac1 and ac2 are linked, since ac1 and ac2 is located at the same layer in the network architecture;Cause
This, link 2 is wrong link.
3) 3 linking between ac2 and convergence device 3 (ag3) are linked, since ac2 and ag3 is located in the network architecture
Different vessels, and cannot be connected directly between different containers;Therefore, link 3 is wrong link.
4) 4 linking between ac5 and ag6 are linked, since ac5 and ag6 is up going port, and same type of port is not
With connected;Therefore, link 4 is wrong link.
The detection method of the network linking based on the above embodiment, to mistake for the network architecture shown in Figure 14
Network linking relationship be described in detail.
Based on the DCELL network architecture shown in Figure 14, preset strategy includes: the equipment inside same unit can only be by interior
Join port to be connected, i.e., host can only be connected with interchanger;It is connected between different units by external connection port, i.e., can only passes through master
The external connection port of machine is connected with other units;Host inside same unit is all connected with interchanger;Outside same layer equipment
Connection port can interconnect.
Network linking in the network architecture shown in Figure 14 uses dotted line and solid line respectively;Wherein, link 1,2 and of link
The broken line representation of link 3, for the network linking of mistake;It is correct network linking with the network linking of solid line;Lattice chain
The reason of wrong misses are as follows:
1) link 1 is the inline port of interchanger 1 (sw1) and the inline port interconnection of sw2;Since sw1 and sw2 belong to respectively
In different containers, and inline port cannot across container connection;Therefore, link 1 is wrong link.
2) link 2 passes through linking between external connection port and host 2-1 for sw1;Since external connection port cannot connect this appearance
Equipment in device, therefore, link 2 are wrong link.
3) 3 host 0-0 of link pass through linking between 1 layer of external connection port by 0 layer of external connection port and host 0-1, due to
The external connection port of different layers cannot interconnect, and therefore, link 3 is wrong link.
To realize the above method, the embodiment of the invention also provides a kind of electronic equipment, and as shown in figure 15, the electronics is set
Standby includes: receiving module 10 and detection module 20;Wherein,
The receiving module 10, for receiving the attribute information of third electronic equipment;The attribute of the third electronic equipment
Information includes at least: the location information of the port attribute of the third electronic equipment or the third electronic equipment;
The detection module 20 is detected for the attribute information based on the third electronic equipment according to preset strategy
Network linking between the electronic equipment and the third electronic equipment.
In a specific embodiment, the detection module 20 is specifically used for setting the electronics according to preset strategy
Standby attribute information is matched with the attribute information of the third electronic equipment, obtains matching result;
Whether the network linking between the electronic equipment and the third electronic equipment is detected based on the matching result
Correctly.
In a specific embodiment, the detection module 20, specifically for the location information based on the electronic equipment
Determine that the matching result is the electronic equipment and the third electronic equipment with the location information of the third electronic equipment
When being located on the same floor network, the network linking relationship mistake between the electronic equipment and the third electronic equipment is detected;Or,
The port attribute of port attribute and the third electronic equipment based on the electronic equipment determines the matching knot
When fruit is that the port attribute of the electronic equipment is identical as the port attribute of the third electronic equipment, the electronic equipment is detected
Network linking relationship mistake between the third electronic equipment.
In a specific embodiment, described when carrying inspection policies in the attribute information of the third electronic equipment
Detection module 20, specifically for detecting the net between the electronic equipment and the third electronic equipment according to the inspection policies
Network link;
When not carrying inspection policies in the attribute information of the third electronic equipment, the detection module 20 is specific to use
The inspection policies stored according to the electronic equipment detect between first electronic equipment and second electronic equipment
Network linking.
In a specific embodiment, the electronic equipment further include: reporting module 30, for reporting the lattice chain of mistake
It connects.
It should be understood that electronic equipment provided by the above embodiment is when carrying out network linking detection, only with above-mentioned each
The division progress of program module can according to need for example, in practical application and distribute above-mentioned processing by different journeys
Sequence module is completed, i.e., the internal structure of device is divided into different program modules, to complete whole described above or portion
Divide processing.In addition, the detection method embodiment of electronic equipment provided by the above embodiment and network linking belongs to same design,
Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
In practical applications, the function that the receiving module 10, detection module 20, reporting module 30 execute can be by being located at
Central processing unit (CPU, Central Processing Unit), microprocessor (MPU, Micro on electronic equipment
Processor Unit), digital signal processor (DSP, Digital Signal Processor) or field-programmable gate array
(FPGA, Field Programmable Gate Array) etc. is arranged to realize.The function that the detection module 20 executes can also be by electricity
Sub- equipment with independently of cooperative achievements such as CPU, MPU, DSP or FPGA on the functional unit of electronic equipment.
The embodiment of the invention also provides a kind of electronic equipment, the hardware composed structure schematic diagram of the electronic equipment is such as schemed
Shown in 16, which includes: processor 701 and for storing the computer program that can be run on a processor
Memory 702;
Wherein, the processor is for executing when running the computer program:
Receive the attribute information of the second electronic equipment;The attribute information of second electronic equipment includes at least: described
The location information of the port attribute of two electronic equipments or second electronic equipment;
Based on the attribute information of second electronic equipment, first electronic equipment and institute are detected according to preset strategy
State the network linking between the second electronic equipment.
When the processor is also used to run the computer program, execute:
Equipment is according to preset strategy, by the progress of the attribute information of the attribute information of itself and second electronic equipment
Match, obtains matching result;
The network linking between first electronic equipment and second electronic equipment is detected based on the matching result
Whether relationship is correct.
When the processor is also used to run the computer program, execute:
The location information of location information and second electronic equipment based on first electronic equipment determines described
When being located on the same floor network with second electronic equipment for first electronic equipment with result, detects first electronics and set
The standby network linking relationship mistake between second electronic equipment;Or,
The port attribute of port attribute and second electronic equipment based on first electronic equipment determines described
When identical as the port attribute of second electronic equipment with the port attribute that result is first electronic equipment, described in detection
Network linking relationship mistake between first electronic equipment and second electronic equipment.
When the processor is also used to run the computer program, execute:
When carrying inspection policies in the attribute information of second electronic equipment, according to described in inspection policies detection
Network linking between first electronic equipment and second electronic equipment;
When not carrying inspection policies in the attribute information of second electronic equipment, according to the inspection policies of itself storage
Detect the network linking between first electronic equipment and second electronic equipment.
It when the processor is also used to run the computer program, executes: reporting the network linking of mistake.
It is appreciated that memory 702 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory
The storage of (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as
Static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir 702 is intended to include but is not limited to the memory of these and any other suitable type.
Memory 702 in the embodiment of the present invention is for storing various types of data to support the behaviour of electronic equipment 700
Make.The example of these data includes: any computer program for operating on electronic equipment 700, such as operating system 7021
With application program 7022.Wherein, operating system 7021 includes various system programs, such as ccf layer, core library layer, driving layer
Deng for realizing various basic businesses and the hardware based task of processing.Application program 7022 may include various using journey
Sequence realizes that the program of present invention method is also contained in application program 7022.
In the exemplary embodiment, the embodiment of the invention also provides a kind of computer readable storage medium, for example including
The memory 702 of computer program, above-mentioned computer program can be executed by the processor 701 of electronic equipment, to complete aforementioned side
Step described in method.Computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic
The memories such as memory surface, CD or CD-ROM;It is also possible to include that one of above-mentioned memory or the various of any combination set
It is standby, such as interchanger, the host network equipment.
The embodiment of the present invention also provides a kind of computer storage medium, is stored thereon with computer program, which is located
The step of reason device realizes the detection method of above-mentioned network linking when executing.
A kind of computer readable storage medium, is stored thereon with computer program, which is run by processor
When, it executes:
Receive the attribute information of the second electronic equipment;The attribute information of second electronic equipment includes at least: described
The location information of the port attribute of two electronic equipments or second electronic equipment;
Based on the attribute information of second electronic equipment, first electronic equipment and institute are detected according to preset strategy
State the network linking between the second electronic equipment.
When the computer program is run by processor, also execute:
The location information of location information and second electronic equipment based on first electronic equipment determines described
When being located on the same floor network with second electronic equipment for first electronic equipment with result, detects first electronics and set
The standby network linking relationship mistake between second electronic equipment;Or,
The port attribute of port attribute and second electronic equipment based on first electronic equipment determines described
When identical as the port attribute of second electronic equipment with the port attribute that result is first electronic equipment, described in detection
Network linking relationship mistake between first electronic equipment and second electronic equipment.
When the computer program is run by processor, also execute:
According to preset strategy, the attribute information of itself is matched with the attribute information of second electronic equipment,
Obtain matching result;
The network linking between first electronic equipment and second electronic equipment is detected based on the matching result
Whether relationship is correct.
When the computer program is run by processor, also execute:
The location information of location information and second electronic equipment based on first electronic equipment determines described
When being located on the same floor network with second electronic equipment for first electronic equipment with result, detects first electronics and set
The standby network linking relationship mistake between second electronic equipment;Or,
The port attribute of port attribute and second electronic equipment based on first electronic equipment determines described
When identical as the port attribute of second electronic equipment with the port attribute that result is first electronic equipment, described in detection
Network linking relationship mistake between first electronic equipment and second electronic equipment.
When the computer program is run by processor, also execute:
The network linking between first electronic equipment and second electronic equipment is detected according to the inspection policies;
When not carrying inspection policies in the attribute information of second electronic equipment, according to described in preset strategy detection
Network linking between first electronic equipment and second electronic equipment, comprising:
First electronic equipment detects first electronic equipment and described second according to the inspection policies itself stored
Network linking between electronic equipment.
It when the computer program is run by processor, also executes: reporting the network linking of mistake.
Upper described, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention, all at this
Made any modifications, equivalent replacements, and improvements etc., should be included in protection model of the invention within the spirit and principle of invention
Within enclosing.
Claims (12)
1. a kind of detection method of network linking, which is characterized in that the described method includes:
First electronic equipment receives the attribute information of the second electronic equipment;The attribute information of second electronic equipment at least wraps
It includes: the location information of the port attribute of second electronic equipment or second electronic equipment;
Based on the attribute information of second electronic equipment, first electronic equipment and described the are detected according to preset strategy
Network linking between two electronic equipments.
2. the method according to claim 1, wherein the attribute information based on second electronic equipment,
The network linking between first electronic equipment and second electronic equipment is detected according to preset strategy, comprising:
First electronic equipment believes the attribute of the attribute information of itself and second electronic equipment according to preset strategy
Breath is matched, and matching result is obtained;
The network linking relationship between first electronic equipment and second electronic equipment is detected based on the matching result
It is whether correct.
3. according to the method described in claim 2, it is characterized in that, described detect first electronics based on the matching result
Whether the network linking between equipment and second electronic equipment is correct, comprising:
The location information of location information and second electronic equipment based on first electronic equipment determines the matching knot
When fruit is that first electronic equipment and second electronic equipment are located on the same floor network, detect first electronic equipment with
Network linking relationship mistake between second electronic equipment;Or,
The port attribute of port attribute and second electronic equipment based on first electronic equipment determines the matching knot
When fruit is that the port attribute of first electronic equipment is identical as the port attribute of second electronic equipment, detection described first
Network linking relationship mistake between electronic equipment and second electronic equipment.
4. the method according to claim 1, wherein carrying inspection in the attribute information of second electronic equipment
When surveying strategy, the network linking between first electronic equipment and second electronic equipment is detected according to preset strategy,
Include:
First electronic equipment according to the inspection policies detect first electronic equipment and second electronic equipment it
Between network linking;
When not carrying inspection policies in the attribute information of second electronic equipment, according to preset strategy detection described first
Network linking between electronic equipment and second electronic equipment, comprising:
First electronic equipment detects first electronic equipment and second electronics according to the inspection policies itself stored
Network linking between equipment.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
First electronic equipment reports the network linking of mistake.
6. a kind of electronic equipment, which is characterized in that the electronic equipment includes: receiving module and detection module;Wherein,
The receiving module, for receiving the attribute information of third electronic equipment;The attribute information of the third electronic equipment is extremely
It less include: the port attribute of the third electronic equipment or the location information of the third electronic equipment;
The detection module detects the electricity according to preset strategy for the attribute information based on the third electronic equipment
Network linking between sub- equipment and the third electronic equipment.
7. electronic equipment according to claim 6, which is characterized in that the detection module is specifically used for according to preset
Strategy matches the attribute information of the electronic equipment with the attribute information of the third electronic equipment, obtains matching knot
Fruit;
It is whether correct that the network linking between the electronic equipment and the third electronic equipment is detected based on the matching result.
8. electronic equipment according to claim 7, which is characterized in that the detection module is specifically used for being based on the electricity
The location information of the location information of sub- equipment and the third electronic equipment determine the matching result be the electronic equipment with
When the third electronic equipment is located on the same floor network, the network between the electronic equipment and the third electronic equipment is detected
Linking relationship mistake;Or,
The port attribute of port attribute and the third electronic equipment based on the electronic equipment determines that the matching result is
When the port attribute of the electronic equipment is identical as the port attribute of the third electronic equipment, the electronic equipment and institute are detected
State the network linking relationship mistake between third electronic equipment.
9. electronic equipment according to claim 6, which is characterized in that carried in the attribute information of the third electronic equipment
When having inspection policies, the detection module is specifically used for detecting the electronic equipment and the third according to the inspection policies
Network linking between electronic equipment;
When not carrying inspection policies in the attribute information of the third electronic equipment, the detection module, be specifically used for according to
The inspection policies stored in the electronic equipment detect the network between first electronic equipment and second electronic equipment
Link.
10. electronic equipment according to claim 8, which is characterized in that the electronic equipment further include:
Reporting module, for reporting the network linking of mistake.
11. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
The step of Shi Shixian claim 1 to 5 the method.
12. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the step of processor realizes claim 1 to 5 the method when executing described program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400663.6A CN108989069B (en) | 2017-05-31 | 2017-05-31 | Network link detection method, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710400663.6A CN108989069B (en) | 2017-05-31 | 2017-05-31 | Network link detection method, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108989069A true CN108989069A (en) | 2018-12-11 |
CN108989069B CN108989069B (en) | 2022-11-15 |
Family
ID=64500897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710400663.6A Active CN108989069B (en) | 2017-05-31 | 2017-05-31 | Network link detection method, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989069B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019365A (en) * | 2019-05-31 | 2020-12-01 | 华为技术有限公司 | Method and device for determining port attribute |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024874A (en) * | 2011-09-21 | 2013-04-03 | ***通信集团山东有限公司 | Method and device for selecting network access |
CN103501254A (en) * | 2013-10-23 | 2014-01-08 | 北京旋极信息技术股份有限公司 | Multipurpose avionics relay network topology configuration management method and multipurpose avionics relay network topology configuration management system |
CN104283738A (en) * | 2014-10-11 | 2015-01-14 | 杭州华三通信技术有限公司 | Link detecting method and device |
CN104518927A (en) * | 2014-12-15 | 2015-04-15 | 清华大学 | Detecting method and device of error connection in data center network |
US20160014693A1 (en) * | 2014-07-09 | 2016-01-14 | Qualcomm Incorporated | Traffic advertisement and scheduling in a neighbor aware network data link |
CN105630894A (en) * | 2015-12-18 | 2016-06-01 | 北京奇虎科技有限公司 | Processing method and system of network link |
CN106452880A (en) * | 2016-10-19 | 2017-02-22 | 深圳市深信服电子科技有限公司 | Network wiring detection method and apparatus thereof |
-
2017
- 2017-05-31 CN CN201710400663.6A patent/CN108989069B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024874A (en) * | 2011-09-21 | 2013-04-03 | ***通信集团山东有限公司 | Method and device for selecting network access |
CN103501254A (en) * | 2013-10-23 | 2014-01-08 | 北京旋极信息技术股份有限公司 | Multipurpose avionics relay network topology configuration management method and multipurpose avionics relay network topology configuration management system |
US20160014693A1 (en) * | 2014-07-09 | 2016-01-14 | Qualcomm Incorporated | Traffic advertisement and scheduling in a neighbor aware network data link |
CN104283738A (en) * | 2014-10-11 | 2015-01-14 | 杭州华三通信技术有限公司 | Link detecting method and device |
CN104518927A (en) * | 2014-12-15 | 2015-04-15 | 清华大学 | Detecting method and device of error connection in data center network |
CN105630894A (en) * | 2015-12-18 | 2016-06-01 | 北京奇虎科技有限公司 | Processing method and system of network link |
CN106452880A (en) * | 2016-10-19 | 2017-02-22 | 深圳市深信服电子科技有限公司 | Network wiring detection method and apparatus thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019365A (en) * | 2019-05-31 | 2020-12-01 | 华为技术有限公司 | Method and device for determining port attribute |
EP3968571A4 (en) * | 2019-05-31 | 2022-06-22 | Huawei Technologies Co., Ltd. | Method and apparatus for determining port attribute |
Also Published As
Publication number | Publication date |
---|---|
CN108989069B (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109089398A (en) | The system for determining the slot position of equipment rack | |
CN104617665B (en) | Intelligent auxiliary monitoring system and method for substation | |
CN209118416U (en) | Intelligence tool management equipment | |
CN104040529A (en) | Iterative simulation of requirement metrics for assumption and schema-free configuration management | |
CN109863517A (en) | Rack checklist administration system based on RFID | |
CN109617765A (en) | A kind of prediction technique and device of Internet of Things quality of connection | |
CN104144180A (en) | Internet-of-things management method, internet-of-things client side and internet-of-things platform | |
CN107423791A (en) | Luggage trolley and its intelligent management system | |
CN108540541A (en) | Information processing method, information processing unit and interchanger | |
CN109862112A (en) | A kind of rescue mode and equipment | |
CN108989069A (en) | A kind of detection method of network linking, electronic equipment and computer storage medium | |
CN109756382A (en) | fault locating method and device | |
CN107637017A (en) | The method automatically configured for IED | |
CN107403227A (en) | A kind of equipment O&M Synergistic method, apparatus and system across enterprise | |
CN109861869A (en) | A kind of generation method and device of configuration file | |
CN108429642A (en) | A kind of Topology identification method, system, equipment and computer storage media | |
CN206381382U (en) | Medicine box | |
CN109445975A (en) | Abnormality eliminating method, logic device and member device | |
CN104852849B (en) | A kind of OSPF configuration methods and relevant apparatus | |
CN107862426A (en) | Condition detection method and equipment based on Internet of Things | |
CN104809593B (en) | Electric system Distributed Parallel Computing management method | |
CN109831573A (en) | False-touch prevention method, electronic equipment, anti-error-touch device and storage medium | |
CN107972024A (en) | Robot and apply data processing method and system in robot | |
CN108107778A (en) | A kind of intelligent management system towards laboratory safety | |
CN109275125A (en) | Resource share method and relevant apparatus |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |