CN105656665A - Switch port configuring method and switch - Google Patents

Switch port configuring method and switch Download PDF

Info

Publication number
CN105656665A
CN105656665A CN201510990700.4A CN201510990700A CN105656665A CN 105656665 A CN105656665 A CN 105656665A CN 201510990700 A CN201510990700 A CN 201510990700A CN 105656665 A CN105656665 A CN 105656665A
Authority
CN
China
Prior art keywords
port
configuration data
data document
key
key assignments
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510990700.4A
Other languages
Chinese (zh)
Inventor
郝鹏
于治楼
郑亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Group Co Ltd
Original Assignee
Inspur Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510990700.4A priority Critical patent/CN105656665A/en
Publication of CN105656665A publication Critical patent/CN105656665A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a switch port configuring method and a switch. The method comprises following steps: defining a data document template, wherein the data document template comprises key value pairs; determining each contained port; building corresponding configuring data documents for each port according to the data document template and the contained key value pairs; setting the key values in the key value pairs in the configuring data documents as default values; storing the configuring data documents; determining all configuring information and a first port in each port connected with a first node; modifying the key values in the configuring data file corresponding to the first port according to the port configuring information in the configuring information related to the first port. Through the method and the switch provided by the invention, the switch port configuring efficiency is effectively improved.

Description

The method of a kind of switch ports themselves configuration and switch
Technical field
The present invention relates to application technical field, a kind of method configured particularly to switch ports themselves and switch.
Background technology
Multiple ports that switch can pass through himself to exist provide pathway for electrical signals for the network node being connected with these multiple ports. In order to ensure signal of telecommunication normal transmission, it is necessary to each port being connected with node is configured.
At present, configuration information, mainly by setting up multiple tables of data, is stored in these multiple tables of data by the mode of switch ports themselves configuration, and builds in these multiple tables of data the incidence relation between data. Such as: a switch has 10 ports, wherein, 5 ports are had to be connected with node, so, being stored in tables of data 1 by essential informations such as these 10 port numbers, and store in tables of data 2 by the IP of be connected with node 5 ports, the configuration attribute such as mode of operation of 5 ports being connected with node stores in table 3 etc., then, the incidence relation between the configuration attribute of the essential information of tables of data 1 middle port a and the IP of tables of data 2 middle port a and tables of data 2 middle port a is set up. So, when tables of data number is more, the foundation of incidence relation will consume the long period, cause that switch ports themselves allocative efficiency reduces.
Summary of the invention
The present invention provides a kind of method and switch that switch ports themselves configures, it is possible to be effectively improved switch ports themselves allocative efficiency.
The method of a kind of switch ports themselves configuration, defines data file template, and described data file template comprises key-value pair, and determines each port comprised; Also include:
According to described data file template and the key-value pair comprised, set up corresponding configuration data document for each port described;
The key assignments that will be present in the key-value pair in described configuration data document uses as default, and stores described configuration data document;
Determine all configuration informations and the first port in each port described in being connected with primary nodal point;
According to port configuration information relevant to described first port in described configuration information, change the key assignments in the configuration data document that described first port is corresponding.
Preferably, the method farther includes:
When the second port failure being connected with secondary nodal point, described secondary nodal point is connected to the 3rd port;
Key assignments in configuration data document corresponding for described second port is write the key-value pair in the configuration data document that described 3rd port is corresponding.
Preferably, the method farther includes:
Obtain the port list comprising each port information described;
After key assignments in the described key-value pair that will be present in described configuration data document uses as default, before the described configuration data document of described storage, farther include: by configuration data document corresponding for port numbers write each port described of each port in described port list;
After described the first port determined in each port described in primary nodal point connection, before the key assignments in the configuration data document that described first port of described change is corresponding, farther include: according to the port numbers in each configuration data document, it is determined that the configuration data document that described first port is corresponding.
Preferably, described described secondary nodal point is connected to the 3rd port before, farther include: determine the situation that takies of each port described, and take situation according to described, it is provided that idle port or standby port;
Described described secondary nodal point is connected to the 3rd port, including: described secondary nodal point is connected to the 3rd port in described idle port or described standby port.
Preferably, described described secondary nodal point is connected to the 3rd port after, described key assignments in configuration data document corresponding for described second port write the key-value pair in the configuration data document that described 3rd port is corresponding after, farther include:
Receive connection switching command;
Resolve the port numbers of the second port and described 3rd port described in described connection switching command;
And according to described port numbers, it is determined that the configuration data document that configuration data document that described second port is corresponding is corresponding with described 3rd port.
Preferably, the method farther includes: mark off public buffer area;
Described by key-value pair in configuration data document corresponding for key assignments described 3rd port of write in configuration data document corresponding for described second port, including:
Key assignments in configuration data document corresponding for described second port is stored described public buffer area, and the key assignments in configuration data document corresponding for described second port is reverted to default value;
Read the key assignments that in described public buffer area, the second port is corresponding;
Utilize the key assignments that described second port is corresponding, update key-value pair in the configuration data document that described 3rd port is corresponding.
A kind of switch, is connected with the node of peripheral hardware by each port, including:
Arranging unit, be used for defining data file template, described data file template comprises key-value pair;
Dispensing unit, for determining each port comprised, according to the key-value pair that the described data file template arranging unit definition and described data file template comprise, set up corresponding configuration data document for each port described, and the key assignments that will be present in the key-value pair in described configuration data document uses as default;
Non-relational database, for storing the configuration data document of described dispensing unit configuration;
Determine unit, for the first port determining all configuration informations and in each port described in being connected with primary nodal point;
Amendment unit, for determining port configuration information relevant to described first port in the configuration information that unit is determined according to described, changes the key assignments in the configuration data document that the first port in described non-relational database is corresponding.
Preferably, described amendment unit, it is further used for:
When the second port failure being connected with the secondary nodal point of peripheral hardware, determining when the secondary nodal point of described peripheral hardware is connected to three ports, the key assignments in the configuration data document that the second port of described non-relational database being stored is corresponding writes the key-value pair in the configuration data document that described 3rd port is corresponding.
Preferably, above-mentioned switch farther includes: acquiring unit, wherein,
Described acquiring unit, for obtaining the port list comprising each port information described;
Described dispensing unit, is used in the configuration data document that each port described in the port numbers write of each port in the port list obtained by described acquiring unit is corresponding;
Described amendment unit, is further used for the port numbers in each configuration data document write according to described dispensing unit, it is determined that the configuration data document that described first port is corresponding.
Preferably, above-mentioned switch farther includes: provide unit, wherein,
Described offer unit, for determining the situation that takies of each port described, and takies situation according to described, it is provided that idle port or standby port;
Described amendment unit, for determining the 3rd port in the idle port or standby port that the secondary nodal point of described peripheral hardware is connected to the offer of described offer unit.
Preferably, described amendment unit, it is used for receiving connection switching command, resolves the port numbers of the second port and described 3rd port described in described connection switching command; And according to described port numbers, it is determined that the configuration data document that configuration data document that described second port is corresponding is corresponding with described 3rd port.
Preferably, above-mentioned switch farther includes: public buffer area, wherein,
Described public buffer area, for when the second port failure being connected with the secondary nodal point of peripheral hardware, receives and stores the key assignments in the configuration data document that the second port that described non-relational database stores is corresponding;
Described amendment unit, for the key assignments in configuration data document corresponding for described second port reverts to default value, and reads the key assignments that in described public buffer area, the second port is corresponding; Utilize the key assignments that described second port is corresponding, update key-value pair in the configuration data document that described 3rd port is corresponding.
Embodiments provide method and the switch of the configuration of a kind of switch ports themselves, the method includes: definition data file template, described data file template comprises key-value pair, sets up configuration data document for port and provides the template of standard, and determines each port comprised; According to described data file template and the key-value pair comprised, set up corresponding configuration data document for each port described; The key assignments that will be present in the key-value pair in described configuration data document uses as default, and stores described configuration data document; Achieve and set up a configuration data document for each port, without making the corresponding multiple relation database tables of each port, it is determined that all configuration informations and the first port in each port described in being connected with primary nodal point; According to port configuration information relevant to described first port in described configuration information, change the key assignments in the configuration data document that described first port is corresponding, due to each port all only corresponding configuration data document, so, the configuration information relevant to port can all store in corresponding configuration data document, without configuration information being distributed to multiple tables of data, it is effectively improved switch ports themselves allocative efficiency.
Accompanying drawing explanation
The flow chart of the method for a kind of switch ports themselves configuration that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the method for a kind of switch ports themselves configuration that Fig. 2 provides for another embodiment of the present invention;
The structural representation of a kind of switch that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of switch that Fig. 4 provides for another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described. Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The method of a kind of switch ports themselves configuration that Fig. 1 provides for the embodiment of the present invention, the method may include that
Step 101: definition data file template, data file template comprises key-value pair, and determines each port comprised;
Step 102: according to data file template and the key-value pair comprised, set up corresponding configuration data document for each port;
Step 103: the key assignments that will be present in the key-value pair in configuration data document uses as default, and store configuration data document;
Step 104: determine the first port in all configuration informations and each port of being connected with primary nodal point;
Step 105: according to port configuration information relevant to the first port in configuration information, change the key assignments in the configuration data document that the first port is corresponding.
In an embodiment of the invention, in order to realize the fast transferring of port configuration, the method farther includes: when the second port failure being connected with secondary nodal point, secondary nodal point is connected to the 3rd port; Key assignments in configuration data document corresponding for second port is write the key-value pair in the configuration data document that the 3rd port is corresponding.
In an embodiment of the invention, in order to the configuration data file that location port is corresponding exactly, the method farther includes: obtain the port list comprising each port information; In step 103, after the key assignments in key-value pair in will be present in configuration data document uses as default, before storage configuration data document, farther include: the port numbers of each port in port list is write in the configuration data document that each port is corresponding; After step 104, before step 105, farther include: according to the port numbers in each configuration data document, it is determined that the configuration data document that the first port is corresponding.
In an embodiment of the invention, orienting idle port or standby port, quickly to replace non-working port, the method farther includes: determine the situation that takies of each port, and according to taking situation, it is provided that idle port or standby port; Secondary nodal point is connected to the 3rd port in idle port or standby port.
In an embodiment of the invention, in order to ensure the accuracy of port configuration emigration, the method farther includes: receive connection switching command; Resolve and connect the port numbers of the second port and the 3rd port in switching command; And according to port numbers, it is determined that configuration data document that the second port is corresponding and configuration data document corresponding to the 3rd port.
In an embodiment of the invention, makeing mistakes in order to avoid port configuration emigration and cause configuration data to lose, the method farther includes: mark off public buffer area; Key assignments in configuration data document corresponding for second port is stored public buffer area, and the key assignments in configuration data document corresponding for the second port is reverted to default value; Read the key assignments that in public buffer area, the second port is corresponding; Utilize the key assignments that the second port is corresponding, update key-value pair in the configuration data document that the 3rd port is corresponding.
As in figure 2 it is shown, the method that another embodiment of the present invention provides the configuration of a kind of switch ports themselves, the method may include steps of:
Step 201: definition data file template, data file template comprises key-value pair, and determines each port comprised, and marks off public buffer area;
Including multiple port in switch, each port is all assigned a port numbers, in this step, marks off in public buffer area mainly internal memory in a switch and marks off a region as public buffer area.
Step 202: obtain the port list comprising each port information;
Step 203: according to data file template and the key-value pair comprised, set up corresponding configuration data document for each port;
In this step, configuration data document can be made to have unified form, the convenient management to configuration data document by data file template.
Step 204: the key assignments that will be present in the key-value pair in configuration data document uses as default;
Such as: the key-value pair comprised in data file: port numbers: ������; Port IP: ������; Port essential information: ������ etc., in this step, passes through default settings, it is to avoid the blank of key assignments, facilitates the amendment of subsequent step, as: the default value of Port IP could be arranged to 0.0.0.0; The default value of port numbers could be arranged to 000000 etc.
Step 205: the port numbers of each port in port list is write in the configuration data document that each port is corresponding, and stores configuration data document;
In this step, by using the port numbers of port as key assignments, it is filled up in the port numbers key-value pair of correspondence, so, when user inquires about configuration data document corresponding to port, it is possible to determine configuration data document according to the port numbers in configuration data document, additionally, in this step, it is possible to configuration data document is stored in MongoDB non-relational database.
Step 206: determine the first port in all configuration informations and each port of being connected with primary nodal point;
This configuration information can be that user is manually entered, it is also possible to is that switch automatically generates.
Step 207: according to the port numbers in each configuration data document, it is determined that the configuration data document that the first port is corresponding;
Step 208: according to port configuration information relevant to the first port in configuration information, change the key assignments in the configuration data document that the first port is corresponding;
Such as: determine in configuration information, the IP of port a is 112.168.0.1, then, in the configuration data document that this port a is corresponding, IP default value 0.0.0.0 can be revised as 112.168.0.1.
Above-mentioned steps is principally for the process of each port configuration data document, and work as port failure, the node by the port that breaks down connects is needed to reconnect to idle port or standby port, so, the migration pattern of the configuration data that non-working port is corresponding, will directly influence the recovery of network. In embodiments of the present invention, idle port or the standby port of new connection is set up with node by directly being copied to by the key assignments in configuration data document corresponding for non-working port, the port configuration of idle port or standby port can be completed rapidly, then can be completed by step 209 to step 216 from lookup idle port or standby port to the process of the migration of configuration data configuration data document.
Step 209: when the second port failure being connected with secondary nodal point, it is determined that the situation that takies of each port, and according to taking situation, it is provided that idle port or standby port;
In this step, when port failure, switch can give a warning to notify user. The situation that takies of each port, user can by checking that the order of port obtains, for instance: user can pass through to input showport at command window, switch provide the user each port take, fault or free time etc.
Step 210: secondary nodal point is connected to the 3rd port in idle port or standby port;
This step can pass through the physical connection of user's concept transfer and port, makes node be connected with idle port or standby port.
Step 211: receive connection switching command;
After the physical connection between node and port is changed by user, by command window, this change is informed to switch in the way of connecting switching command.
Step 212: resolve and connect the port numbers of the second port and the 3rd port in switching command;
Step 213: according to port numbers, it is determined that configuration data document that the second port is corresponding and configuration data document corresponding to the 3rd port;
Step 214: the key assignments in configuration data document corresponding for the second port is stored public buffer area, and the key assignments in configuration data document corresponding for the second port is reverted to default value;
By this public buffer area, it is possible to avoid the direct interaction between configuration documentation, it is to avoid between configuration data document, directly transmission data procedures causes error in data or loss, and affects network and connect.
Step 215: read the key assignments that in public buffer area, the second port is corresponding;
Step 216: utilize the key assignments that the second port is corresponding, updates key-value pair in the configuration data document that the 3rd port is corresponding.
As it is shown on figure 3, the embodiment of the present invention provides a kind of switch, it is connected with the node of peripheral hardware by each port, including:
Arranging unit 301, be used for defining data file template, data file template comprises key-value pair;
Dispensing unit 302, for determining each port comprised, according to the key-value pair that the data file template and data document template that arrange unit 301 definition comprise, set up corresponding configuration data document for each port, and the key assignments that will be present in the key-value pair in configuration data document uses as default;
Non-relational database 303, for storing the configuration data document of dispensing unit 302 configuration;
Determine unit 304, for determining the first port in all configuration informations and each port of being connected with primary nodal point;
Amendment unit 305, for the key assignments according to determining port configuration information relevant to the first port in the configuration information that unit 304 is determined, in the configuration data document that in change non-relational database 303, first port is corresponding.
In an alternative embodiment of the invention, amendment unit 305, it is further used for when the second port failure being connected with the secondary nodal point of peripheral hardware, determine when the secondary nodal point of peripheral hardware is connected to three ports, the key-value pair in the configuration data document that key assignments write the 3rd port in the configuration data document that the second port of non-relational database 303 being stored is corresponding is corresponding.
In an alternative embodiment of the invention, above-mentioned switch, farther include: acquiring unit (not shown), wherein,
Acquiring unit, for obtaining the port list comprising each port information;
Dispensing unit 302, for writing in the configuration data document that each port is corresponding by the port numbers of each port in the port list of acquiring unit acquisition;
Amendment unit 305, is further used for the port numbers in each configuration data document according to dispensing unit 302 write, it is determined that the configuration data document that described first port is corresponding.
As shown in Figure 4, in an alternative embodiment of the invention, above-mentioned switch, farther include: unit 401 is provided, wherein,
There is provided unit 401, for determining the situation that takies of each port, and according to taking situation, it is provided that idle port or standby port;
Amendment unit 305, for determining the 3rd port being connected to by the secondary nodal point of peripheral hardware in the idle port or standby port providing unit 401 to provide.
In an alternative embodiment of the invention, revise unit, be used for receiving connection switching command, resolve and connect the port numbers of the second port and the 3rd port in switching command; And according to port numbers, it is determined that configuration data document that the second port is corresponding and configuration data document corresponding to the 3rd port.
In still another embodiment of the process, above-mentioned switch, farther include: public buffer area (not shown), wherein,
Public buffer area, for when the second port failure being connected with the secondary nodal point of peripheral hardware, receives and stores the key assignments in the configuration data document that the second port that non-relational database stores is corresponding;
Amendment unit 305, for the key assignments in configuration data document corresponding for the second port is reverted to default value, and reads the key assignments that in public buffer area, the second port is corresponding; Utilize the key assignments that the second port is corresponding, update key-value pair in the configuration data document that the 3rd port is corresponding.
What deserves to be explained is, above-mentioned non-relational data base can be MongoDB data base.
The scheme that the embodiment of the present invention provides, at least can reach following beneficial effect:
1. by defining data file template, data file template comprises key-value pair, sets up configuration data document for port and provides the template of standard, and determines each port comprised; According to data file template and the key-value pair comprised, set up corresponding configuration data document for each port; The key assignments that will be present in the key-value pair in configuration data document uses as default, and stores configuration data document; Achieve and set up a configuration data document for each port, without making the corresponding multiple relation database tables of each port, it is determined that the first port in all configuration informations and each port of being connected with primary nodal point; According to port configuration information relevant to the first port in configuration information, change the key assignments in the configuration data document that the first port is corresponding, due to each port all only corresponding configuration data document, so, the configuration information relevant to port can all store in corresponding configuration data document, without configuration information being distributed to multiple tables of data, it is effectively improved switch ports themselves allocative efficiency.
2. in embodiments of the present invention, owing to the configuration information of each port is present in the configuration data document of correspondence, so, have only to navigate to configuration data document and can all get the configuration information of port, compared with just getting complete port configuration information with the mode passing through multi-table query in prior art, it is effectively improved the search efficiency of port configuration information.
3., when the second port failure being connected with secondary nodal point, secondary nodal point is connected to the 3rd port; Key assignments in configuration data document corresponding for second port is write the key-value pair in the configuration data document that the 3rd port is corresponding, without the data searched successively and revise in multiple tables of data, effectively raise the migration rate of port configuration, thus realizing stability and the availability of network system.
4. by obtaining the port list comprising each port information, the port numbers of each port in port list is write in the configuration data document that each port is corresponding, according to the port numbers in each configuration data document, determine the configuration data document that the first port is corresponding, make configuration data document management more preferably specification.
5. in embodiments of the present invention, mark off public buffer area;Key assignments in configuration data document corresponding for second port is stored public buffer area, and the key assignments in configuration data document corresponding for the second port is reverted to default value; Read the key assignments that in public buffer area, the second port is corresponding; Utilize the key assignments that the second port is corresponding, update key-value pair in the configuration data document that the 3rd port is corresponding, it is to avoid key assignments transition process is made mistakes or loses and cause the confusion that in configuration data document, key assignments is arranged, make configuration data document management specification more.
It should be noted that, in this article, the relational terms of such as first and second etc is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially. And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment. When there is no more restriction, statement " including " key element limited, it is not excluded that there is also other same factor in including the process of described key element, method, article or equipment.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.

Claims (10)

1. the method for a switch ports themselves configuration, it is characterised in that definition data file template, described data file template comprises key-value pair, and determines each port comprised; Also include:
According to described data file template and the key-value pair comprised, set up corresponding configuration data document for each port described;
The key assignments that will be present in the key-value pair in described configuration data document uses as default, and stores described configuration data document;
Determine all configuration informations and the first port in each port described in being connected with primary nodal point;
According to port configuration information relevant to described first port in described configuration information, change the key assignments in the configuration data document that described first port is corresponding.
2. method according to claim 1, it is characterised in that farther include:
When the second port failure being connected with secondary nodal point, described secondary nodal point is connected to the 3rd port;
Key assignments in configuration data document corresponding for described second port is write the key-value pair in the configuration data document that described 3rd port is corresponding.
3. method according to claim 1, it is characterised in that farther include:
Obtain the port list comprising each port information described;
After key assignments in the described key-value pair that will be present in described configuration data document uses as default, before the described configuration data document of described storage, farther include: by configuration data document corresponding for port numbers write each port described of each port in described port list;
After described the first port determined in each port described in primary nodal point connection, before the key assignments in the configuration data document that described first port of described change is corresponding, farther include: according to the port numbers in each configuration data document, it is determined that the configuration data document that described first port is corresponding.
4. method according to claim 2, it is characterised in that
Described described secondary nodal point is connected to the 3rd port before, farther include: determine the situation that takies of each port described, and take situation according to described, it is provided that idle port or standby port;
Described described secondary nodal point is connected to the 3rd port, including: described secondary nodal point is connected to the 3rd port in described idle port or described standby port;
And/or,
Described described secondary nodal point is connected to the 3rd port after, described key assignments in configuration data document corresponding for described second port write the key-value pair in the configuration data document that described 3rd port is corresponding after, farther include:
Receive connection switching command;
Resolve the port numbers of the second port and described 3rd port described in described connection switching command;
And according to described port numbers, it is determined that the configuration data document that configuration data document that described second port is corresponding is corresponding with described 3rd port.
5. the method according to claim 2 or 4, it is characterised in that
Farther include: mark off public buffer area;
Described by key-value pair in configuration data document corresponding for key assignments described 3rd port of write in configuration data document corresponding for described second port, including:
Key assignments in configuration data document corresponding for described second port is stored described public buffer area, and the key assignments in configuration data document corresponding for described second port is reverted to default value;
Read the key assignments that in described public buffer area, the second port is corresponding;
Utilize the key assignments that described second port is corresponding, update key-value pair in the configuration data document that described 3rd port is corresponding.
6. a switch, it is characterised in that be connected with the node of peripheral hardware by each port, including:
Arranging unit, be used for defining data file template, described data file template comprises key-value pair;
Dispensing unit, for determining each port comprised, according to the key-value pair that the described data file template arranging unit definition and described data file template comprise, set up corresponding configuration data document for each port described, and the key assignments that will be present in the key-value pair in described configuration data document uses as default;
Non-relational database, for storing the configuration data document of described dispensing unit configuration;
Determine unit, for the first port determining all configuration informations and in each port described in being connected with primary nodal point;
Amendment unit, for determining port configuration information relevant to described first port in the configuration information that unit is determined according to described, changes the key assignments in the configuration data document that the first port in described non-relational database is corresponding.
7. switch according to claim 6, it is characterised in that described amendment unit, is further used for:
When the second port failure being connected with the secondary nodal point of peripheral hardware, determining when the secondary nodal point of described peripheral hardware is connected to three ports, the key assignments in the configuration data document that the second port of described non-relational database being stored is corresponding writes the key-value pair in the configuration data document that described 3rd port is corresponding.
8. switch according to claim 6, it is characterised in that farther include: acquiring unit, wherein,
Described acquiring unit, for obtaining the port list comprising each port information described;
Described dispensing unit, is used in the configuration data document that each port described in the port numbers write of each port in the port list obtained by described acquiring unit is corresponding;
Described amendment unit, is further used for the port numbers in each configuration data document write according to described dispensing unit, it is determined that the configuration data document that described first port is corresponding.
9. switch according to claim 7, it is characterised in that farther include: unit is provided, wherein,
Described offer unit, for determining the situation that takies of each port described, and takies situation according to described, it is provided that idle port or standby port;
Described amendment unit, for determining the 3rd port in the idle port or standby port that the secondary nodal point of described peripheral hardware is connected to the offer of described offer unit;
And/or,
Described amendment unit, is used for receiving connection switching command, resolves the port numbers of the second port and described 3rd port described in described connection switching command; And according to described port numbers, it is determined that the configuration data document that configuration data document that described second port is corresponding is corresponding with described 3rd port.
10. the switch according to claim 7 or 9, it is characterised in that farther include: public buffer area, wherein,
Described public buffer area, for when the second port failure being connected with the secondary nodal point of peripheral hardware, receives and stores the key assignments in the configuration data document that the second port that described non-relational database stores is corresponding;
Described amendment unit, for the key assignments in configuration data document corresponding for described second port reverts to default value, and reads the key assignments that in described public buffer area, the second port is corresponding; Utilize the key assignments that described second port is corresponding, update key-value pair in the configuration data document that described 3rd port is corresponding.
CN201510990700.4A 2015-12-24 2015-12-24 Switch port configuring method and switch Pending CN105656665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510990700.4A CN105656665A (en) 2015-12-24 2015-12-24 Switch port configuring method and switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510990700.4A CN105656665A (en) 2015-12-24 2015-12-24 Switch port configuring method and switch

Publications (1)

Publication Number Publication Date
CN105656665A true CN105656665A (en) 2016-06-08

Family

ID=56476825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510990700.4A Pending CN105656665A (en) 2015-12-24 2015-12-24 Switch port configuring method and switch

Country Status (1)

Country Link
CN (1) CN105656665A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204864A (en) * 2016-03-16 2017-09-26 北大方正集团有限公司 Application method, management method, terminal and the server of the network port
CN108833611A (en) * 2018-08-01 2018-11-16 中国联合网络通信集团有限公司 A kind of distribution method of method NAT address conversion
CN111314198A (en) * 2020-02-06 2020-06-19 苏州浪潮智能科技有限公司 Method and equipment for setting port IP of white box switch
CN112612455A (en) * 2020-12-04 2021-04-06 潍柴动力股份有限公司 Method and system for distinguishing communication modes
CN113553297A (en) * 2021-06-08 2021-10-26 优刻得科技股份有限公司 Management method and system for switch configuration information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101202671A (en) * 2007-12-20 2008-06-18 华为技术有限公司 Method and apparatus for terminal port allocating
CN101335737A (en) * 2008-08-05 2008-12-31 中兴通讯股份有限公司 Network processor and data processing method thereof
CN101582806A (en) * 2009-06-17 2009-11-18 杭州华三通信技术有限公司 Method for MIB management of multi-vendor equipment and device
US20120201169A1 (en) * 2011-02-05 2012-08-09 Force 10 Networks, Inc. Method & apparatus for provisioning a network switch port
CN102932161A (en) * 2011-08-11 2013-02-13 中兴通讯股份有限公司 Template-based configuration method and device
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101202671A (en) * 2007-12-20 2008-06-18 华为技术有限公司 Method and apparatus for terminal port allocating
CN101335737A (en) * 2008-08-05 2008-12-31 中兴通讯股份有限公司 Network processor and data processing method thereof
CN101582806A (en) * 2009-06-17 2009-11-18 杭州华三通信技术有限公司 Method for MIB management of multi-vendor equipment and device
US20120201169A1 (en) * 2011-02-05 2012-08-09 Force 10 Networks, Inc. Method & apparatus for provisioning a network switch port
CN102932161A (en) * 2011-08-11 2013-02-13 中兴通讯股份有限公司 Template-based configuration method and device
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204864A (en) * 2016-03-16 2017-09-26 北大方正集团有限公司 Application method, management method, terminal and the server of the network port
CN107204864B (en) * 2016-03-16 2020-09-04 北大方正集团有限公司 Application method, management method, terminal and server of network port
CN108833611A (en) * 2018-08-01 2018-11-16 中国联合网络通信集团有限公司 A kind of distribution method of method NAT address conversion
CN111314198A (en) * 2020-02-06 2020-06-19 苏州浪潮智能科技有限公司 Method and equipment for setting port IP of white box switch
CN112612455A (en) * 2020-12-04 2021-04-06 潍柴动力股份有限公司 Method and system for distinguishing communication modes
CN112612455B (en) * 2020-12-04 2023-08-18 潍柴动力股份有限公司 Method and system for distinguishing communication modes
CN113553297A (en) * 2021-06-08 2021-10-26 优刻得科技股份有限公司 Management method and system for switch configuration information

Similar Documents

Publication Publication Date Title
CN105656665A (en) Switch port configuring method and switch
CN100409618C (en) Technique of determining connectivity solutions for network elements
CN101217763B (en) An expanding device and method from logic tree to physical tree in fault analysis
EP3477914A1 (en) Data recovery method and device, and cloud storage system
CN107545046A (en) A kind of fusion method and device of multi-source heterogeneous data
CN102185706B (en) Method for generating IEEE1394 (Institute of Electrical and Electronics Engineers 1394) network topological graph
EP1650897A1 (en) Element management method and system in multiple networks
CN104408174A (en) Database routing device and method
CN108694218A (en) A kind of method and apparatus data write-in and read
CN106294299A (en) A kind of report form generation method and device
CN105247814B (en) The method and apparatus for managing the physical location of the network equipment
CN110048896A (en) A kind of company-data acquisition methods, device and equipment
CN110297867A (en) Data-base cluster operation method and system based on domestic CPU and distributed container cluster
CN101567014B (en) Equipment information retrieval method, device and cable fastener
CN1326363C (en) Network management configuration method and apparatus thereof
CN105718209A (en) Method and device for naming multipath device, host and communication system
CN106055582A (en) Method and apparatus for replacing table name of database
CN104951565A (en) XML configuration maintenance method and system based on memory database
CN105677805A (en) Data storing and reading method and device using protobuf
CN101621396B (en) Single board automatic management device and method
CN201975047U (en) Intelligent storage system and LED (light-emitting diode) display panel and display thereof
CN114579596B (en) Method and system for updating index data of search engine in real time
CN101426220A (en) Method, apparatus and system for base station cutover
CN107315674A (en) A kind of storing system information display methods and system
CN103677649B (en) Data access method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160608

WD01 Invention patent application deemed withdrawn after publication