CN109039788A - Port configuration method, device and the storage medium of the network equipment - Google Patents
Port configuration method, device and the storage medium of the network equipment Download PDFInfo
- Publication number
- CN109039788A CN109039788A CN201811161574.1A CN201811161574A CN109039788A CN 109039788 A CN109039788 A CN 109039788A CN 201811161574 A CN201811161574 A CN 201811161574A CN 109039788 A CN109039788 A CN 109039788A
- Authority
- CN
- China
- Prior art keywords
- role
- port
- network equipment
- opposite equip
- equipment
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- 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/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
- H04L41/0843—Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
-
- 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/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
This application discloses a kind of port configuration method of network equipment, device and storage mediums, are related to Internet technical field, to realize automatically configuring for the network equipment.In this method, port to be configured can be determined by the device role of the device role of place equipment and opposite equip. oneself be which equipment which kind of port, that is, realize the confirmation of network topology.Corresponding port configuration template so can be got according to the port role of the network equipment to be configured.Since device role can characterize practical topology connection relationship at the port to be configured, so can be realized in the embodiment of the present application is configured according to actual topological connection relation automatically according to port configuration template.In this way, the embodiment of the present application configure for each port and manually guarantees port configuration and network topology without operation maintenance personnel in network-side.
Description
Technical field
This application involves the port configuration method of Internet technical field more particularly to the network equipment, device and storages to be situated between
Matter.
Background technique
The port configuration of the network equipment can be divided into configurations and port configuration.Such as device management configurations, configuration
The configuration of VLAN (Virtual Local Area Network, virtual LAN), the configuration etc. of static routing belong to basis and match
It sets.The configuration of port for example may include configuration port traffic, and whether trunk (relaying) mode and port protection function open.
The network equipment needs to configure could work normally after deployment.The port configuration of the network equipment needed artificial in the past
Manual operation causes the port configuration work of the network equipment numerous when due to needing site layout project, adding network topology complexity
It is miscellaneous, occupy more time and human cost.So proposing the scheme of automatic deployment configuration.
In the prior art, automatic configuration is usually completely to match the pre-configured each network equipment in network management end is corresponding
It sets.Then on network devices line when pass through DHCP (Dynamic Host Configuration Protocol, DynamicHost
Configuration protocol) request is automatically assigned to IP (Internet Protocol, the agreement interconnected between network) address, and passes through
DHCP Option 66 and DHCP Option 67 know server address and configuration file, then from server download configuration text
Part, to achieve the purpose that configuration issues automatically.
However, existing method, needs to be pre-configured in network-side, which has higher O&M to operation maintenance personnel
Skill requirement.
In addition, the complete configuration of the portion network equipment includes the configurations and port configuration of equipment as previously described.Wherein,
Configurations are generally easier to be realized with templating, and port configuration needs operation maintenance personnel to determine respectively.And port configuration is wanted
Depending on Topology connection based on equipment.If port configuration connect inconsistent, the business general on port with equipment practical topology
It can not correctly issue, leading to network, expectability is not online.Currently, port configuration needs artificial guarantee, this mistake with Topology connection
Journey is also comparatively laborious, once configuration error, investigation problem are also very inconvenient.
Summary of the invention
The embodiment of the present application provides the port configuration method, device and storage medium of a kind of network equipment, existing for solving
There is the configuration of technology middle port to require operation maintenance personnel high, and port configuration is easy to lead to port with the inconsistent problem of network topology
The problem that business can not be normally carried out etc..
In a first aspect, the embodiment of the present application provides a kind of port configuration method of network equipment, this method comprises:
Obtain the device role for the opposite equip. that port to be configured in the network equipment is connected;
According to the device role of the device role of the network equipment and opposite equip., the end of the port to be configured is determined
Bicker color;
According to the corresponding relationship of preset port role and port configuration template, the end to be configured is obtained from server
The corresponding port configuration template of mouth;
According to the port configuration module of acquisition, the port to be configured is configured.
Second aspect, provides a kind of port configuration device of network equipment, and described device includes:
Device role obtains module, for obtaining setting for opposite equip. that port to be configured in the network equipment is connected
Standby role;
Port role determining module, for according to the device role of the network equipment and the device role of opposite equip.,
Determine the port role of the port to be configured;
Port configuration template obtains module, for the corresponding relationship according to preset port role and port configuration template,
The corresponding port configuration template in the port to be configured is obtained from server;
Configuration module configures the port to be configured for the port configuration module according to acquisition.
Another embodiment of the application additionally provides a kind of computing device, including at least one processor;And with it is described extremely
The memory of few processor communication connection;Wherein, the memory, which is stored with, to be executed by least one described processor
Instruction, described instruction is executed by least one described processor, so that at least one described processor is able to carry out the application
The port configuration method for any network equipment that embodiment provides.
Another embodiment of the application additionally provides a kind of computer storage medium, wherein the computer storage medium is deposited
Computer executable instructions are contained, the computer executable instructions are for making computer execute any in the embodiment of the present application
The port configuration method of the network equipment.
Port configuration method, device and the storage medium of the network equipment provided by the embodiments of the present application, the embodiment of the present application
In, port to be configured can determine it oneself is which sets by the device role of place equipment and the device role of opposite equip.
Which kind of standby port, that is, realize the confirmation of network topology.It can so be got pair according to the port role of the network equipment
The port configuration template answered is configured.Since device role can characterize practical topology connection relationship at the port to be configured,
So can be realized in the embodiment of the present application is matched according to actual topological connection relation automatically according to port configuration template
It sets.In this way, the embodiment of the present application is that each port configure and manually guarantees that port configures in network-side without operation maintenance personnel
And network topology.In addition, operation maintenance personnel only needs to carry out corresponding configuration for each generic port.Primary configuration, it is subsequent
The template of configuration may be reused.To simplify the operation that the port of the network equipment configures, the port of the network equipment is improved
The efficiency of configuration.
Other features and advantage will illustrate in the following description, also, partly become from specification
It obtains it is clear that being understood and implementing the application.The purpose of the application and other advantages can be by written explanations
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow diagram of the port configuration method of the network equipment in the embodiment of the present application;
Fig. 2 is the schematic diagram of the determination port role in the embodiment of the present application;
Fig. 3 is the port configuration device schematic diagram of the network equipment in the embodiment of the present application;
Fig. 4 is the structural schematic diagram according to the computing device of the application embodiment.
Specific embodiment
For the ease of carrying out port configuration, port configuration method, the dress of a kind of network equipment are provided in the embodiment of the present application
It sets and storage medium.In order to better understand technical solution provided by the embodiments of the present application, here to the basic principle of the program
It does and briefly describes:
For ease of understanding, first noun involved in the embodiment of the present application is illustrated here, comprising:
Device role: partitioning the network into out different levels, and the equipment under different levels has different device roles, different
Equipment under level has different function.I.e. in network topology connection relationship, according to the angle of the function division of the network equipment out
Color.Such as device role can be divided into equipment of the core network, convergence device and access device.
Port role: port role is divided according to place device role difference.Such as access device second line of a couplet mouth,
Upper united mouth, the second line of a couplet mouth of convergence device and upper united mouth etc..
Role's upper limit: for limiting the upper limit of the device role that can serve as of the network equipment in network topology, such as
Role's upper limit of convergence device is convergence device and cannot be equipment of the core network, and role's upper limit of access device is access device.
It is different role in the embodiment of the present application to can accurately configure port device in network equipment
Port configure different port configuration templates.It, can be with after determining its port role in this way, port to be configured for one
By network, downloads corresponding port configuration template and carry out port configuration.
When it is implemented, the equipment at port both ends to be configured can be with intercommunication device role.In this way, port to be configured passes through certainly
The device role of equipment where body and the device role of opposite equip. can determine oneself be which equipment which kind of port, i.e.,
Realize the confirmation of network topology.Corresponding port configuration template so can be got according to port role to be configured.
Since device role can characterize the practical topology connection relationship at the port to be configured, so can be real in the embodiment of the present application
Now configured according to actual topological connection relation automatically according to port configuration template.In this way, the embodiment of the present application is without fortune
Dimension personnel configure for each port and manually guarantee port configuration and network topology in network-side.In addition, O&M people
Member only needs to carry out corresponding configuration for each generic port.Primary configuration, the subsequent template that configuration may be reused.To
The operation for simplifying the port configuration of the network equipment improves the efficiency of the port configuration of the network equipment.
The port configuration method of the network equipment provided by the embodiments of the present application is described further with reference to the accompanying drawing, such as
It is the flow diagram of the port configuration method of the network equipment shown in Fig. 1, comprising the following steps:
Step 101: obtaining the device role for the opposite equip. that port to be configured in the network equipment is connected.
When it is implemented, can by port to be configured initiate request device role message to opposite equip., then by
The device role of opposite equip. informing network equipment.
But above-mentioned implementation method, need the function of interaction between independent developing network equipment.In order to existing skill
Art is compatible, and more easy knows device role.Inventor after study, proposes the extension word for passing through Network Topology Discovery Protocol
Section carrys out Portable device Role Information.When it is implemented, can receive the Link Layer Discovery Protocol LLDP that the opposite equip. is sent
Message;The LLDP message is parsed, the device role in specified extended field is read.Since LLDP is common network discovery association
View, by the way that device role information is added in its extended field, in this way, can be obtained while specific determining network topology
Know the device role of opposite equip..
When it is implemented, the configurations of the network equipment can be realized according to the prior art.Device role information can match
It sets in configurations template.In this way, the equipment that opposite equip. can obtain the network equipment from the configuration template of the network equipment
Role is then added in the specified extended field of LLDP message.It can receive what the opposite equip. was sent when in this way, realizing
LLDP message;Then it parses the LLDP message, reads the device role in specified extended field you can learn that opposite equip.
Device role.
Step 102: according to the device role of the device role of the network equipment and opposite equip., determining the port to be configured
Port role.
For the configuration that the device role of itself can issue in advance according to network management, configurations template is obtained, from basis
The device role of itself is read in configuration template.Further, it is also possible to be obtained by study, the method for study will below in detail
It states, wouldn't introduce here.
Step 103: according to the corresponding relationship of preset port role and port configuration template, from server described in acquisition
The corresponding port configuration template in port to be configured.
Step 104: according to the port configuration module of acquisition, the port to be configured being configured.
For example, the second line of a couplet mouth of access device generally all connects the terminal of the miniport service, it is possible to according to actual industry
Business demand configures the generic port, in order to realize the configuration to port.Certainly, when it is implemented, the terminal traffic of service is different,
The port configuration template of the second line of a couplet mouth of access device can also be different.
It further, can be according to opposite equip. as previously mentioned, the device role of the network equipment can be obtained by study
Device role and preset interconnection equipment between device role corresponding relationship, to determine itself device role.This is right
Should be related to can be set according to real network topology.
In order to which itself device role is determined more accurately, every kind of device type can have role's upper limit,
For example role's upper limit of core equipment is exactly DSW (core equipment), role's upper limit of convergence device is PSW (convergence device), is connect
The role's upper limit for entering equipment is ASW (access device).Role's upper limit can be pre-configured in configurations template, be matched from basis
Set reading role's upper limit in template.Wherein, a purpose for role's upper limit being arranged is to support the direct-connected core of access device to set
It will not be mistaken as converging in the case where standby.Specifically learning method includes:
1), when equipment of itself role is unknown role and the device role upper limit is convergence device, if opposite equip. is set
Standby role is core equipment, it is determined that the device role of itself is convergence device.
2), when equipment of itself role is unknown role and the device role upper limit is access device, if opposite equip. is set
Standby role is core equipment or convergence device, it is determined that the device role of itself is access device.
3), when equipment of itself role is access device and the device role upper limit is convergence device, if opposite equip. is set
Standby role is core equipment, then the device role for updating itself is convergence device.
Such case may be as caused by network topology interconnection error.For example, convergence is set in network topology before
It is standby to be connected to convergence device, convergence device is used as access device then being considered as, leads to the device role of convergence device
It is considered as access device.After network topological change (i.e. convergence device is connected to core equipment), it can be relearned in the application
The device role of itself is corrected afterwards.
4), when equipment of itself role is unknown role, if the device role of opposite equip. is access device, it is determined that net
The device role of network equipment is access device.
In this way, by above-mentioned learning method, as long as obtaining the device role of opposite equip., can determining or updating itself
Device role.
As previously described, because network topology may change, if the device role of itself is setting according to opposite equip.
What the device role corresponding relationship between standby role and preset interconnection equipment determined, it can also be weighed in the embodiment of the present application
New facility for study role is to adapt to network topology change.It is specific: according to the device role of opposite equip. and preset interconnection
Device role corresponding relationship between equipment, after the device role for determining itself, then record itself the device role is
Learn;Then monitor itself all of the port and opposite equip. connection status;When the owned all of the port
When disconnecting with opposite equip., the device role of itself is changed to unknown role;Then when monitoring itself at least
When a port and opposite equip. establish connection, the port for being connected with opposite equip. is determined as port to be configured, and return and hold
Row obtains the step of device role for the opposite equip. that port to be configured is connected.
Certainly it should be noted that configurations template may also be simultaneously without configuration role's upper limit, then can also root
The device role of itself, including (1)-(3) are determined according to opposite equip. role:
It (1), is core equipment for the device role of unknown role and opposite equip. in equipment of itself role, it is determined that itself
Device role be convergence device.
It (2), is core equipment or convergence device in the device role that equipment of itself role is unknown role and opposite equip.,
The device role for then determining itself is access device.
It (3), is access device for the device role of unknown role and opposite equip. in equipment of itself role, it is determined that network
The device role of equipment is access device.
Further, when it is implemented, as shown in Fig. 2, the port role of itself can be determined according to the following method:
1) it is convergence device that, if the device role of itself, which is the device role of core equipment and opposite equip., it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of core equipment;
2) it is core equipment that, if the device role of itself, which is the device role of convergence device and opposite equip., it is determined that institute
The port role for stating port to be configured is the upper united mouth of convergence device;
3) it is access device that, if the device role of itself, which is the device role of convergence device and opposite equip., it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of convergence device;
4) it is convergence device that, the device role of itself, which is the device role of access device and opposite equip., it is determined that described
The port role of port to be configured is the upper united mouth of access device;
5), if the device role of itself and opposite equip. device role be access device, if determine it is described to be configured
The port role of port is the cascade port of access device;
6), if the device role of itself and opposite equip. device role be convergence device, if determine it is described to be configured
The port role of port is the second line of a couplet mouth of convergence device;
7) it is unknown role that, if the device role of itself, which is the device role of access device and opposite equip., it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of access device.
In conclusion by device role and the above-mentioned corresponding relationship of itself and opposite equip., it can easily really
The port role of fixed port to be configured, it is then available to carry out port configuration to correct port configuration template.
In the following, technical solution provided by the embodiments of the present application for ease of understanding, illustrates to this by taking access device as an example
Explanation.
Firstly, configuring configurations template for access device, have in configurations template for indicating the access device
Device role information and role's upper limit.Role Information default uses if its device role information is not configured
Unkown is (unknown) to be indicated, role's upper limit is access device, then the access device obtains configurations template by the prior art
Afterwards, just learn that network device role can not be determined according to unkown.Then when being configured for the access device middle port 1, lead to
It crosses port 1 and knows that the device role of opposite equip. is convergence device, then can automatically determine the net of itself according to role's upper limit
The device role of network equipment is access device.The port role that can then determine port 1 is the first line of a couplet port of access device, and
The port configuration template for the first line of a couplet port that access device can be downloaded from server afterwards carries out port configuration.
Based on identical inventive concept, the embodiment of the present application also provides a kind of port configuration device of network equipment.Such as Fig. 3
Shown, which includes:
Device role obtains module 301, the opposite equip. connected for obtaining port to be configured in the network equipment
Device role;
Port role determining module 302, for according to the device role of the network equipment and the equipment angle of opposite equip.
Color determines the port role of the port to be configured;
Port configuration template obtains module 303, for being closed according to preset port role and the corresponding of port configuration template
System, obtains the corresponding port configuration template in the port to be configured from server;
Configuration module 304 configures the port to be configured for the port configuration module according to acquisition.
Further, the device role obtains module, specifically includes:
Message receiving unit, the Link Layer Discovery Protocol LLDP message sent for receiving the opposite equip.;
Resolution unit reads the device role in specified extended field for parsing the LLDP message.
Further, described device further include:
The device role determining module of the network equipment, for the setting according to the network equipment in port role determining module
For the device role of role and opposite equip., before the port role for determining the port to be configured, issued in advance according to network management
Configuration, obtain configurations template, the device role of the network equipment is read from configurations template.
Further, described device further include:
The device role study module of the network equipment, for the setting according to the network equipment in port role determining module
For the device role of role and opposite equip., before the port role for determining the port to be configured, according to setting for opposite equip.
Device role corresponding relationship between standby role and preset interconnection equipment, determines the device role of the network equipment.
Further, the device role study module of the network equipment, specifically includes:
First unit, for being unknown role in the network equipment device role and the device role upper limit is convergence
When equipment, determine that the device role of the network equipment is convergence device if being core equipment if the device role of opposite equip.;
Second unit, for being unknown role in the network equipment device role and the device role upper limit is access
When equipment, if the device role of opposite equip. is core equipment or convergence device, it is determined that the device role of the network equipment
It is access device;
Third unit, for being access device in the network equipment device role and the device role upper limit is convergence
When equipment, the device role that the network equipment is updated if being core equipment if the device role of opposite equip. is convergence device;
4th unit is used for when the network equipment device role is unknown role, if the equipment of opposite equip.
Role is that access device then determines that the device role of the network equipment is access device.
Further, described device further include:
Logging modle, for the device role study module in the network equipment according to the device role of opposite equip.,
And the device role corresponding relationship between preset interconnection equipment, after the device role for determining the network equipment, record
The device role study of the network equipment is arrived;
Monitoring modular, for monitoring all of the port of the network equipment and the connection status of opposite equip.;
Update module, when all of the port and opposite equip. for possessing when the network equipment disconnect, by institute
The device role for stating the network equipment is changed to unknown role;
Return module, for inciting somebody to action when monitoring that connection is established at least one port of the network equipment and opposite equip.
The port for being connected with opposite equip. is determined as port to be configured, and it is to be configured to trigger device role acquisition module return execution acquisition
The step of device role for the opposite equip. that port is connected.
Further, described device further include:
Confirmation module, if for being convergence device and the net in the device role of the third unit opposite equip.
Network equipment device role is access device, it is determined that before the device role of the network equipment is convergence device, described in determination
The device role upper limit of the network equipment is convergence device.
Further, port role determining module specifically includes:
First determination unit, if the device role for the network equipment is the equipment angle of core equipment and opposite equip.
Color is convergence device, it is determined that the port role of the port to be configured is the second line of a couplet mouth of core equipment;
Second determination unit, if the device role for the network equipment is the equipment angle of convergence device and opposite equip.
Color is core equipment, it is determined that the port role of the port to be configured is the upper united mouth of convergence device;
Third determination unit, if the device role for the network equipment is the equipment angle of convergence device and opposite equip.
Color is access device, it is determined that the port role of the port to be configured is the second line of a couplet mouth of convergence device;
4th determination unit, if the device role for the network equipment is the equipment angle of access device and opposite equip.
Color is convergence device, it is determined that the port role of the port to be configured is the second line of a couplet mouth of access device;
5th determination unit, if being access for the device role of the network equipment and the device role of opposite equip.
Equipment, the port role for then determining the port to be configured are the cascade port of access device;
6th determination unit, if being convergence for the device role of the network equipment and the device role of opposite equip.
Equipment, the port role for then determining the port to be configured are the second line of a couplet mouth of convergence device;
7th determination unit, if the device role for the network equipment is the equipment angle of access device and opposite equip.
Color is unknown role, it is determined that the port role of the port to be configured is the second line of a couplet mouth of access device.
After describing the port configuration method of the network equipment of the application illustrative embodiments and device, connect down
Come, introduces the computing device of the another exemplary embodiment according to the application.
Person of ordinary skill in the field it is understood that the various aspects of the application can be implemented as system, method or
Program product.Therefore, the various aspects of the application can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
In some possible embodiments, at least one processing can be included at least according to the computing device of the application
Device and at least one processor.Wherein, memory is stored with program code, when program code is executed by processor, so that
Processor executes the port configuration of the network equipment according to the various illustrative embodiments of the application of this specification foregoing description
Step in method.For example, processor can execute step 101-104 as shown in Figure 2.
The computing device 130 of this embodiment according to the application is described referring to Fig. 4.The calculating that Fig. 4 is shown
Device 130 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in figure 4, computing device 130 is showed in the form of general-purpose calculating appts.The component of computing device 130 can wrap
Include but be not limited to: at least one above-mentioned processor 131, above-mentioned at least one processor 132, the different system components of connection (including
Memory 132 and processor 131) bus 133.
Bus 133 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Memory 132 may include the readable medium of form of volatile memory, such as random access memory (RAM)
1321 and/or cache memory 1322, it can further include read-only memory (ROM) 1323.
Memory 132 can also include program/utility 1325 with one group of (at least one) program module 1324,
Such program module 1324 includes but is not limited to: operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.
Computing device 130 can also be communicated with one or more external equipments 134 (such as keyboard, sensing equipment etc.), also
Can be enabled a user to one or more equipment interacted with computing device 130 communication, and/or with make the computing device
The 130 any equipment (such as router, modem etc.) that can be communicated with one or more of the other computing device are led to
Letter.This communication can be carried out by input/output (I/O) interface 135.Also, computing device 130 can also be suitable by network
Orchestration 136 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy
Net) communication.As shown, network adapter 136 is communicated by bus 133 with other modules for computing device 130.It should
Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with computing device 130, including but unlimited
In: microcode, device driver, redundant processor, external disk drive array, RAID system, tape drive and data
Backup storage system etc..
In some possible embodiments, the various aspects of the port configuration method of the network equipment provided by the present application are also
It can be implemented as a kind of form of program product comprising program code, when program product is run on a computing device, journey
The net according to the various illustrative embodiments of the application that sequence code is used to that computer equipment to be made to execute this specification foregoing description
Step in the port configuration method of network equipment, for example, computer equipment can execute step 101-104 as shown in fig. 1.
Program product can be using any combination of one or more readable mediums.Readable medium can be readable signal Jie
Matter or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, infrared
The system of line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing is (non-
The list of exhaustion) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM),
Read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, the read-only storage of portable compact disc
Device (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product that the port for the network equipment of presently filed embodiment configures can use Portable, compact
Disk read-only memory (CD-ROM) and including program code, and can run on the computing device.However, the program of the application produces
Product are without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, which can
To be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying
Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter
Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can
Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or
Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to ---
Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the application operation program
Code, programming language include object oriented program language-Java, C++ etc., further include conventional process
Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user
It executes on device, partly execute on a user device, executing, as an independent software package partially in user's computing device
Upper part executes on remote computing device or executes on remote computing device or server completely.It is being related to remotely counting
In the situation for calculating device, remote computing device can pass through the network of any kind --- including local area network (LAN) or wide area network
(WAN)-it is connected to user's computing device, or, it may be connected to external computing device (such as provided using Internet service
Quotient is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke
It point is only exemplary not enforceable.In fact, according to presently filed embodiment, it is above-described two or more
The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can
It is to be embodied by multiple units with further division.
In addition, although describing the operation of the application method in the accompanying drawings with particular order, this do not require that or
Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one
Step is decomposed into execution of multiple steps.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application
Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies
Within, then the application is also intended to include these modifications and variations.
Claims (16)
1. a kind of port configuration method of the network equipment characterized by comprising
Obtain the device role for the opposite equip. that port to be configured in the network equipment is connected;
According to the device role of the device role of the network equipment and opposite equip., the port angle of the port to be configured is determined
Color;
According to the corresponding relationship of preset port role and port configuration template, the port pair to be configured is obtained from server
The port configuration template answered;
According to the port configuration module of acquisition, the port to be configured is configured.
2. the method according to claim 1, wherein described obtain company of port institute to be configured in the network equipment
The device role of the opposite equip. connect, specifically includes:
Receive the Link Layer Discovery Protocol LLDP message that the opposite equip. is sent;
The LLDP message is parsed, the device role in specified extended field is read.
3. the method according to claim 1, wherein according to the device role and opposite equip. of the network equipment
Device role, before the port role for determining the port to be configured, the method also includes:
The configuration issued in advance according to network management obtains configurations template, and setting for the network equipment is read from configurations template
Standby role.
4. the method according to claim 1, wherein according to the device role and opposite equip. of the network equipment
Device role, before the port role for determining the port to be configured, the method also includes:
According to the device role corresponding relationship between the device role of opposite equip. and preset interconnection equipment, determine described in
The device role of the network equipment.
5. according to the method described in claim 4, it is characterized in that, according to the device role of opposite equip. and preset mutual
Device role corresponding relationship between attached device, determines the device role of the network equipment, specifically includes:
When the device role of the network equipment is unknown role and the device role upper limit is convergence device, if opposite equip.
Device role is core equipment, it is determined that the device role of the network equipment is convergence device;
When the device role of the network equipment is unknown role and the device role upper limit is access device, if opposite equip.
Device role is core equipment or convergence device, it is determined that the device role of the network equipment is access device;
When the device role of the network equipment is access device and the device role upper limit is convergence device, if opposite equip.
Device role is core equipment, then the device role for updating the network equipment is convergence device;
When the device role of the network equipment is unknown role, if the device role of opposite equip. is access device, really
The device role of the fixed network equipment is access device.
6. according to the method described in claim 5, it is characterized in that, according to the device role of opposite equip. and preset mutual
Device role corresponding relationship between attached device, after the device role for determining the network equipment, the method also includes:
The device role study for recording the network equipment is arrived;
Monitor all of the port of the network equipment and the connection status of opposite equip.;
When all of the port and opposite equip. that the network equipment possesses disconnect, by the equipment angle of the network equipment
Color is changed to unknown role;
When connection is established at least one port and opposite equip. for monitoring the network equipment, opposite equip. will be connected with
Port is determined as port to be configured, and returns to the step for executing the device role for obtaining the opposite equip. that port to be configured is connected
Suddenly.
7. any method in -6 according to claim 1, which is characterized in that the equipment angle according to the network equipment
The device role of color and opposite equip. determines the port role of the port to be configured, specifically includes:
If the device role that the device role of the network equipment is core equipment and opposite equip. is convergence device, it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of core equipment;
If the device role that the device role of the network equipment is convergence device and opposite equip. is core equipment, it is determined that institute
The port role for stating port to be configured is the upper united mouth of convergence device;
If the device role that the device role of the network equipment is convergence device and opposite equip. is access device, it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of convergence device;
If the device role that the device role of the network equipment is access device and opposite equip. is convergence device, it is determined that institute
The port role for stating port to be configured is the upper united mouth of access device;
If the device role of the network equipment and the device role of opposite equip. be access device, if determine it is described to be configured
The port role of port is the cascade port of access device;
If the device role of the network equipment and the device role of opposite equip. be convergence device, if determine it is described to be configured
The port role of port is the second line of a couplet mouth of convergence device;
If the device role that the device role of the network equipment is access device and opposite equip. is unknown role, it is determined that institute
The port role for stating port to be configured is the second line of a couplet mouth of access device.
8. a kind of port configuration device of network equipment, which is characterized in that described device includes:
Device role obtains module, for obtaining the equipment angle for the opposite equip. that port to be configured in the network equipment is connected
Color;
Port role determining module, for determining according to the device role of the network equipment and the device role of opposite equip.
The port role of the port to be configured;
Port configuration template obtains module, for the corresponding relationship according to preset port role and port configuration template, from clothes
The corresponding port configuration template in the port to be configured is obtained in business device;
Configuration module configures the port to be configured for the port configuration module according to acquisition.
9. device according to claim 8, which is characterized in that the device role obtains module, specifically includes:
Message receiving unit, the Link Layer Discovery Protocol LLDP message sent for receiving the opposite equip.;
Resolution unit reads the device role in specified extended field for parsing the LLDP message.
10. device according to claim 8, which is characterized in that described device further include:
The device role determining module of the network equipment, for the equipment angle in port role determining module according to the network equipment
The device role of color and opposite equip. before the port role for determining the port to be configured, is matched according to what network management issued in advance
It sets, obtains configurations template, the device role of the network equipment is read from configurations template.
11. device according to claim 8, which is characterized in that described device further include:
The device role study module of the network equipment, for the equipment angle in port role determining module according to the network equipment
The device role of color and opposite equip., before the port role for determining the port to be configured, according to the equipment angle of opposite equip.
Device role corresponding relationship between color and preset interconnection equipment, determines the device role of the network equipment.
12. device according to claim 11, which is characterized in that the device role study module of the network equipment, it is specific to wrap
It includes:
First unit, for being unknown role in the network equipment device role and the device role upper limit is convergence device
When, determine that the device role of the network equipment is convergence device if being core equipment if the device role of opposite equip.;
Second unit, for being unknown role in the network equipment device role and the device role upper limit is access device
When, if the device role of opposite equip. is core equipment or convergence device, it is determined that the device role of the network equipment is to connect
Enter equipment;
Third unit, for being access device in the network equipment device role and the device role upper limit is convergence device
When, the device role that the network equipment is updated if being core equipment if the device role of opposite equip. is convergence device;
4th unit is used for when the network equipment device role is unknown role, if the device role of opposite equip.
It is that access device then determines that the device role of the network equipment is access device.
13. device according to claim 12, which is characterized in that described device further include:
Logging modle, for the device role study module in the network equipment according to the device role of opposite equip., and
Device role corresponding relationship between preset interconnection equipment, after the device role for determining the network equipment, described in record
The device role study of the network equipment is arrived;
Monitoring modular, for monitoring all of the port of the network equipment and the connection status of opposite equip.;
Update module sets network when all of the port and opposite equip. for possessing when the network equipment disconnect
Standby device role is changed to unknown role;
Return module, for that will connect when connection is established at least one port and opposite equip. for monitoring the network equipment
The port for being connected to opposite equip. is determined as port to be configured, and triggers device role and obtain module return execution acquisition end to be configured
The step of device role for the opposite equip. that mouth is connected.
14. according to the device any in claim 8-13, which is characterized in that port role determining module specifically includes:
First determination unit, if the device role that the device role for the network equipment is core equipment and opposite equip. is
Convergence device, it is determined that the port role of the port to be configured is the second line of a couplet mouth of core equipment;
Second determination unit, if the device role that the device role for the network equipment is convergence device and opposite equip. is
Core equipment, it is determined that the port role of the port to be configured is the upper united mouth of convergence device;
Third determination unit, if the device role that the device role for the network equipment is convergence device and opposite equip. is
Access device, it is determined that the port role of the port to be configured is the second line of a couplet mouth of convergence device;
4th determination unit, if the device role that the device role for the network equipment is access device and opposite equip. is
Convergence device, it is determined that the port role of the port to be configured is the upper united mouth of access device;
5th determination unit, if being that access is set for the device role of the network equipment and the device role of opposite equip.
Port role that is standby, then determining the port to be configured is the cascade port of access device;
6th determination unit, if being that convergence is set for the device role of the network equipment and the device role of opposite equip.
Port role that is standby, then determining the port to be configured is the second line of a couplet mouth of convergence device;
7th determination unit, if the device role that the device role for the network equipment is access device and opposite equip. is
Unknown role, it is determined that the port role of the port to be configured is the second line of a couplet mouth of access device.
15. a kind of computer-readable medium, is stored with computer executable instructions, which is characterized in that the computer is executable
Instruction is for executing the method as described in any claim in claim 1-7.
16. a kind of computing device characterized by comprising at least one processor;And it is logical at least one described processor
Believe the memory of connection;Wherein, the memory is stored with the instruction that can be executed by least one described processor, described instruction
It is executed by least one described processor, so that at least one described processor is able to carry out such as power any in claim 1-7
Benefit requires the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161574.1A CN109039788B (en) | 2018-09-30 | 2018-09-30 | Port configuration method and device of network equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161574.1A CN109039788B (en) | 2018-09-30 | 2018-09-30 | Port configuration method and device of network equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109039788A true CN109039788A (en) | 2018-12-18 |
CN109039788B CN109039788B (en) | 2022-02-25 |
Family
ID=64615597
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811161574.1A Active CN109039788B (en) | 2018-09-30 | 2018-09-30 | Port configuration method and device of network equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109039788B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019365A (en) * | 2019-05-31 | 2020-12-01 | 华为技术有限公司 | Method and device for determining port attribute |
CN113055232A (en) * | 2021-03-11 | 2021-06-29 | 浪潮思科网络科技有限公司 | Network configuration deployment method, device and equipment |
WO2021233150A1 (en) * | 2020-05-19 | 2021-11-25 | 中兴通讯股份有限公司 | Method and network device for resource configuration, and electronic device and computer-readable medium |
CN114338413A (en) * | 2021-12-30 | 2022-04-12 | 中国工商银行股份有限公司 | Method and device for determining topological relation of equipment in network and storage medium |
CN114520765A (en) * | 2022-01-13 | 2022-05-20 | 锐捷网络股份有限公司 | Automatic configuration method and device of equipment |
CN114697774A (en) * | 2022-04-11 | 2022-07-01 | 中国电信股份有限公司 | Port management method and device, computer-readable storage medium and electronic equipment |
CN115562738A (en) * | 2022-11-14 | 2023-01-03 | 苏州浪潮智能科技有限公司 | Port configuration method, component and hard disk expansion device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7380025B1 (en) * | 2003-10-07 | 2008-05-27 | Cisco Technology, Inc. | Method and apparatus providing role-based configuration of a port of a network element |
CN102123104A (en) * | 2011-04-14 | 2011-07-13 | 福建星网锐捷网络有限公司 | Network device configuration correcting method and network device |
CN106302071A (en) * | 2015-05-29 | 2017-01-04 | 华为技术有限公司 | A kind of adapter, the network equipment and the method for port configuration |
CN107911251A (en) * | 2017-12-08 | 2018-04-13 | 锐捷网络股份有限公司 | A kind of method for configuring network equipment, device and medium |
CN108234183A (en) * | 2016-12-22 | 2018-06-29 | 中国电信股份有限公司 | The configuration system and method for distal end business |
CN108259391A (en) * | 2017-06-29 | 2018-07-06 | 新华三技术有限公司 | A kind of port configuration method and device |
CN108334465A (en) * | 2018-02-06 | 2018-07-27 | 深圳壹账通智能科技有限公司 | Configuration method, device, equipment and the computer readable storage medium of communication interface |
CN108566296A (en) * | 2018-03-26 | 2018-09-21 | 新华三技术有限公司 | Network equipment layered approach, network management device and computer readable storage medium |
-
2018
- 2018-09-30 CN CN201811161574.1A patent/CN109039788B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7380025B1 (en) * | 2003-10-07 | 2008-05-27 | Cisco Technology, Inc. | Method and apparatus providing role-based configuration of a port of a network element |
CN102123104A (en) * | 2011-04-14 | 2011-07-13 | 福建星网锐捷网络有限公司 | Network device configuration correcting method and network device |
CN106302071A (en) * | 2015-05-29 | 2017-01-04 | 华为技术有限公司 | A kind of adapter, the network equipment and the method for port configuration |
CN108234183A (en) * | 2016-12-22 | 2018-06-29 | 中国电信股份有限公司 | The configuration system and method for distal end business |
CN108259391A (en) * | 2017-06-29 | 2018-07-06 | 新华三技术有限公司 | A kind of port configuration method and device |
CN107911251A (en) * | 2017-12-08 | 2018-04-13 | 锐捷网络股份有限公司 | A kind of method for configuring network equipment, device and medium |
CN108334465A (en) * | 2018-02-06 | 2018-07-27 | 深圳壹账通智能科技有限公司 | Configuration method, device, equipment and the computer readable storage medium of communication interface |
CN108566296A (en) * | 2018-03-26 | 2018-09-21 | 新华三技术有限公司 | Network equipment layered approach, network management device and computer readable storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019365A (en) * | 2019-05-31 | 2020-12-01 | 华为技术有限公司 | Method and device for determining port attribute |
WO2021233150A1 (en) * | 2020-05-19 | 2021-11-25 | 中兴通讯股份有限公司 | Method and network device for resource configuration, and electronic device and computer-readable medium |
CN113055232A (en) * | 2021-03-11 | 2021-06-29 | 浪潮思科网络科技有限公司 | Network configuration deployment method, device and equipment |
CN114338413A (en) * | 2021-12-30 | 2022-04-12 | 中国工商银行股份有限公司 | Method and device for determining topological relation of equipment in network and storage medium |
CN114338413B (en) * | 2021-12-30 | 2024-01-26 | 中国工商银行股份有限公司 | Method, device and storage medium for determining topological relation of equipment in network |
CN114520765A (en) * | 2022-01-13 | 2022-05-20 | 锐捷网络股份有限公司 | Automatic configuration method and device of equipment |
CN114697774A (en) * | 2022-04-11 | 2022-07-01 | 中国电信股份有限公司 | Port management method and device, computer-readable storage medium and electronic equipment |
CN114697774B (en) * | 2022-04-11 | 2023-10-03 | 中国电信股份有限公司 | Port management method and device, computer readable storage medium and electronic equipment |
CN115562738A (en) * | 2022-11-14 | 2023-01-03 | 苏州浪潮智能科技有限公司 | Port configuration method, component and hard disk expansion device |
Also Published As
Publication number | Publication date |
---|---|
CN109039788B (en) | 2022-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109039788A (en) | Port configuration method, device and the storage medium of the network equipment | |
CN106155260B (en) | The system and management method and computer readable storage medium of server | |
CN111835532B (en) | Network authentication method and device | |
CN105227344A (en) | Based on software defined network analogue system and the method for OpenStack | |
CN108667807A (en) | A kind of protocol self-adapting method and system based on monitoring cloud platform and gateway | |
JP6656612B2 (en) | Network service configuration method and network management device | |
CN106155264B (en) | Manage the computer approach and computer system of the power consumption of storage subsystem | |
CN105071948B (en) | The automatic deployment method and device of a kind of access switch | |
CN103501254B (en) | Multipurpose avionics relay network topology configuration management method and multipurpose avionics relay network topology configuration management system | |
US20190182106A1 (en) | Remote line integration | |
CN107911251A (en) | A kind of method for configuring network equipment, device and medium | |
US20140108000A1 (en) | Generate, Edit, and Automated Use of a Machine-Readable Cable Specification to Audit Cabling of a Converged Infrastructure | |
CN105027504A (en) | Programmable physical network topologies for datacenters | |
CN109284126A (en) | Class libraries automatic update method, device, electronic equipment, storage medium | |
CN113641591A (en) | Test case generation method and device and test method and device | |
CN106878095B (en) | Network configuration method based on scenario distributed simulation | |
CN103152756A (en) | Automation configuration method for wireless local area network access controller (WLAN AC) | |
CN114650223A (en) | Network configuration method and device of Kubernetes cluster and electronic equipment | |
Saha et al. | Intent-based industrial network management using natural language instructions | |
WO2014168164A1 (en) | Network verification device, network verification method, and program | |
CN115544968B (en) | Method, system, equipment and storage medium compatible with multi-project equipment tree | |
CN109167707A (en) | A kind of shunting device test macro, method, apparatus, server and storage medium | |
CN114756273A (en) | BPMN process engine adaptation establishing method and system | |
CN208316769U (en) | A kind of cloud network system applied to simple scenario | |
US20230208718A1 (en) | Network topology planning and validation |
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 |