CN109495285A - The configuration method and the network equipment of the network equipment - Google Patents

The configuration method and the network equipment of the network equipment Download PDF

Info

Publication number
CN109495285A
CN109495285A CN201710822403.8A CN201710822403A CN109495285A CN 109495285 A CN109495285 A CN 109495285A CN 201710822403 A CN201710822403 A CN 201710822403A CN 109495285 A CN109495285 A CN 109495285A
Authority
CN
China
Prior art keywords
network equipment
configuration file
network
file packet
packet
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
Application number
CN201710822403.8A
Other languages
Chinese (zh)
Other versions
CN109495285B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710822403.8A priority Critical patent/CN109495285B/en
Publication of CN109495285A publication Critical patent/CN109495285A/en
Application granted granted Critical
Publication of CN109495285B publication Critical patent/CN109495285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

This application provides a kind of configuration method of network equipment and the network equipments, wherein, the first configuration file packet that first network equipment obtains, including using first network equipment as the configuration file of all-network equipment in the branch of a network of root node, therefore, first network equipment can obtain the configuration file of itself from the first configuration file packet, realize the configuration of itself.Second configuration file packet includes using second network equipment as the configuration file of all-network equipment in the branch of a network of root node, and therefore, second network equipment can also obtain the configuration file of itself from the second configuration file packet, realizes the configuration of itself;And, second network equipment can also be made again from extraction in the second configuration file packet with the configuration file of all-network equipment in the branch of a network of the network equipment root node of itself connection, and the network equipment connected to it is sent, and realizes the configuration of the network equipment of its connection.

Description

The configuration method and the network equipment of the network equipment
Technical field
This application involves network technique field more particularly to the configuration technologies of the network equipment.
Background technique
Network establishment can be divided into two stages of network design and beginning.
Wherein, it in opening stage, needs for the network equipment to be installed to designated position, and complete the company of LA Management Room cable It connects, then every network equipment is configured, to complete network establishment.Accordingly, it is desirable to provide a kind of realization Configuration network equipment Scheme.
Summary of the invention
This application provides a kind of configuration method of network equipment and the network equipments, to realize the configuration to the network equipment.
To achieve the goals above, it is proposed that scheme it is as follows:
The first aspect of the application provides a kind of configuration method of network equipment, comprising: first network equipment obtains the One configuration file packet extracts the second configuration file packet from the first configuration file packet, and sends out to second network equipment Send the second configuration file packet;Wherein, the first configuration file packet includes using the first network equipment as root node The configuration file of all-network equipment in branch of a network;The second configuration file packet includes using second network equipment as root The configuration file of all-network equipment in the branch of a network of node;Second network equipment and the first network equipment phase Even;The first network equipment.
From the above process it can be seen that the first configuration file packet that first network equipment obtains, including is set with first network The configuration file of all-network equipment in the standby branch of a network for root node, therefore, first network equipment can be from the first configurations The configuration file that itself is obtained in file packet realizes the configuration of itself.Also, first network equipment is from the first configuration file packet The second configuration file packet is extracted, and the second configuration file packet includes using second network equipment to own in the branch of a network of root node The configuration file of the network equipment, therefore, first network equipment to second network equipment send the second configuration file packet it Afterwards, second network equipment can also obtain the configuration file of itself from the second configuration file packet, realize the configuration of itself.Again And the second configuration file packet for sending to second network equipment of first network equipment is not the configuration file of second network equipment, But including the second net can be made using second network equipment as the configuration file of all-network equipment in the branch of a network of root node Network equipment in the second configuration file packet again from extracting using all nets in branch of a network of the network equipment as root node itself connected The configuration file of network equipment, and the network equipment connected to it is sent, and realizes the configuration of the network equipment of its connection.
In one implementation, before sending the second configuration file packet, the method also includes: described first The network equipment is received from second network equipment and the message for requesting the configuration file of second network equipment. Thus process is it can be seen that first network equipment is needed by being used to request the message of the configuration file of second network equipment to identify The network equipment of configuration file is sought, then the second configuration file packet is sent to it, ensure that first network equipment is sent second The accuracy of configuration file packet.
In one implementation, the method also includes: the first network equipment is obtained to be set with the first network The topology of the standby branch of a network for root node;The second configuration file packet that extracts from the first configuration file packet includes: The first network equipment is configured according to using the first network equipment as the topology of the branch of a network of root node from described first The second configuration file packet is extracted in file packet.
In one implementation, second network equipment is with the first network equipment via at least two link phases Even, before sending the second configuration file packet, the method also includes: it is received via at least two link and comes from institute State at least two messages of second network equipment;The first network equipment sends described second to second network equipment and matches Setting file packet includes: only to send the second configuration file packet via a link at least two link.Thus it crosses Journey it can be seen that first network equipment via at least two links receive at least two messages from second network equipment, can To determine the connectivity port of first network equipment Yu second network equipment from the link of received message, it is ensured that first network Equipment uses the port connecting with second network equipment to send the second configuration file packet.Also, first network equipment uses one Link sends the second configuration file packet, realizes the message for simply and easily completing first network equipment and the second LA Management Room Communication.
In one implementation, the first network equipment sends the second configuration text to second network equipment Part packet include: the first network equipment to second network equipment send based on message length limit and after fragment described in Second configuration file packet.Thus process is it can be seen that first network equipment is sent based on message length limitation and the institute after fragment State the second configuration file packet, can be too long to avoid the second configuration file APMB package and cause to be unsatisfactory for asking for message protocol requirement Topic.
In one implementation, before sending the second configuration file packet, the first network equipment is also to institute It states second network equipment and sends the message for indicating that the first network equipment is capable of providing configuration file.Thus process can be seen Out: second network equipment can determine the connectivity port of second network equipment and first network equipment according to above-mentioned message, from The connectivity port receives the second configuration file packet that first network equipment is sent.
The second aspect of the application provides a kind of network equipment, and the network equipment is first network equipment, and described the One network equipment includes: first acquisition unit, and for obtaining the first configuration file packet, the first configuration file packet includes with institute State the configuration file of all-network equipment in the branch of a network that first network equipment is root node;Extraction unit is used for from described The second configuration file packet is extracted in first configuration file packet, the second configuration file packet includes being with second network equipment The configuration file of all-network equipment in the branch of a network of root node, second network equipment and the first network equipment phase Even;Transmission unit, for sending the second configuration file packet to second network equipment.
The third aspect of the application provides a kind of network equipment, and the network equipment is first network equipment, and described the One network equipment includes: processor and communication port;The processor is used for: the first configuration file packet is obtained, from described first The second configuration file packet is extracted in configuration file packet, and sends second configuration to second network equipment with the communication port File packet;Wherein, the first configuration file packet includes using the first network equipment to own in the branch of a network of root node The configuration file of the network equipment;The second configuration file packet includes using second network equipment as the branch of a network of root node The configuration file of middle all-network equipment;Second network equipment is connected with the first network equipment.
In one implementation, before the processor sends the second configuration file packet with the communication port, It is also used to the configuration with communication port reception from second network equipment and for requesting second network equipment The message of file.
In one implementation, the processor is also used to obtain using the first network equipment as the network of root node The topology of branch;When the processor execution extracts the second configuration file packet from the first configuration file packet, it is specifically used for: Described in being extracted from the first configuration file packet using the first network equipment as the topology of the branch of a network of root node Second configuration file packet.
In one implementation, at least two communication port of second network equipment and the first network equipment Before foundation has at least two links, the processor to send the second configuration file packet with the communication port, it is also used to At least two messages from second network equipment are received at least two link;Wherein, the processor executes With the communication port to second network equipment send the second configuration file packet when, be specifically used for: by it is described at least Second network equipment described in a chain road direction in two links sends the second configuration file packet.
In one implementation, the processor, which is executed, sends institute to second network equipment with the communication port When stating the second configuration file packet, it is specifically used for: is sent to second network equipment based on message length with the communication port It limits and the second configuration file packet after fragment.In one implementation, the processor is sent out with the communication port Before sending the second configuration file packet, it is also used to send instruction described the to second network equipment with the communication port One network equipment is capable of providing the message of configuration file.
The fourth aspect of the application provides a kind of configuration method of network equipment, comprising: first network equipment obtains whole Net configuration file packet, extracts the configuration file of second network equipment from the whole net configuration file packet, and sets to third network Preparation send the configuration file of second network equipment;Wherein, the whole net configuration file packet include in network all-network set Standby configuration file;Second network equipment includes any one network equipment in network in addition to first network equipment; The third network equipment connects between second network equipment and first network equipment, and with the first network equipment It connects.
From the above process it can be seen that the whole net configuration file packet that first network equipment obtains, including all nets in network The configuration file of network equipment, therefore, first network equipment can obtain the configuration file of itself from whole net configuration file packet, real The now configuration of itself.Also, first network equipment extracts the configuration file of second network equipment from whole net configuration file packet, and It is sent to the third network equipment, if the third network equipment and second network equipment are an equipment, that third network equipment The configuration file for receiving second network equipment realizes the configuration of itself, if the third network equipment is not with second network equipment The same equipment, that first network equipment send the configuration file of second network equipment to the third network equipment, can also make the Three network equipments send the configuration file of second network equipment to second network equipment.
In one implementation, before the configuration file for sending second network equipment, the method also includes: it is described First network equipment is received from the third network equipment and the report for requesting the configuration file of second network equipment Text.Thus process is it can be seen that first network equipment passes through the message identification for requesting the configuration file of second network equipment The network equipment of demand configuration file out, then the second configuration file packet is sent to it, it ensure that first network equipment was sent The accuracy of second configuration file packet.
In one implementation, the third network equipment is with the first network equipment via at least two link phases Even, before the configuration file for sending second network equipment, the method also includes: it is connect via at least two link Receive at least two messages from the third network equipment;The first network equipment sends described the to the third network equipment The configuration file of two network equipments includes: only to send second network via a link at least two link to set Standby configuration file.Thus process is it can be seen that first network equipment is set via the reception of at least two links from third network At least two standby messages can determine the company of first network equipment Yu the third network equipment from the link of received message Connect port, it is ensured that first network equipment uses the port connecting with the third network equipment to send the second configuration file packet.Also, the One network equipment sends the configuration file of second network equipment using a link, realizes and simply and easily completes first network The message communication of equipment and third LA Management Room.
In one implementation, the first network equipment sends second network equipment to the third network equipment Configuration file includes: that the first network equipment is sent based on message length limitation and after fragment to the third network equipment The configuration file of second network equipment.Thus process is it can be seen that first network equipment is sent based on message length limitation And the configuration file of second network equipment after fragment, it can be too long and cause to avoid the configuration file of second network equipment The problem of being unsatisfactory for message protocol requirement.
In one implementation, before the configuration file for sending second network equipment, the method also includes: The first network equipment is sent to the third network equipment indicates that the first network equipment is capable of providing second net The message of the configuration file of network equipment.Thus process is it can be seen that the third network equipment can determine according to above-mentioned message The connectivity port of three network equipments and first network equipment receives the second network that first network equipment is sent from the connectivity port The configuration file of equipment.
The 5th aspect of the application provides a kind of network equipment, and the network equipment is first network equipment, and described the One network equipment includes: acquiring unit, and for obtaining whole net configuration file packet, the whole net configuration file packet includes institute in network There is the configuration file of the network equipment;Extraction unit, for extracting matching for second network equipment from the whole net configuration file packet Set file, wherein second network equipment includes any one network equipment in network in addition to first network equipment;Hair Unit is sent, for sending the configuration file of second network equipment to the third network equipment, the third network equipment is located at Between second network equipment and first network equipment, and it is connect with the first network equipment.
In one implementation, the first network equipment further include: the first receiving unit, for single in the transmission Before member sends the configuration file of second network equipment, receive from the third network equipment and for requesting described second The message of the configuration file of the network equipment.
In one implementation, the third network equipment is with the first network equipment via at least two link phases Even, the first network equipment further include: the second receiving unit, for sending second network equipment in the transmission unit Configuration file before, via at least two link receive at least two messages from the third network equipment;Institute State transmission unit to execute when sending the configuration file of second network equipment to the third network equipment, be specifically used for: only via A link at least two link sends the configuration file of second network equipment.
In one implementation, the transmission unit executes to the third network equipment and sends second network equipment When configuration file, be specifically used for: the Xiang Suoshu third network equipment sends described second based on message length limitation and after fragment The configuration file of the network equipment.
In one implementation, the transmission unit is before the configuration file for sending second network equipment, also For:
It is sent to the third network equipment and indicates that the first network equipment is capable of providing second network equipment The message of configuration file.
The 6th aspect of the application provides a kind of network equipment, comprising: the network equipment is first network equipment, institute Stating first network equipment includes: processor and communication port;Wherein, the processor is used for: whole net configuration file packet is obtained, from The configuration file of second network equipment is extracted in the whole net configuration file packet, and is set by the communication port to third network Preparation send the configuration file of second network equipment;Wherein, the whole net configuration file packet include in network all-network set Standby configuration file;Second network equipment includes any one network equipment in network in addition to first network equipment; The third network equipment connects between second network equipment and first network equipment, and with the first network equipment It connects.
In one implementation, the processor sends the configuration text of second network equipment with the communication port Before part, it is also used to be received with the communication port from the third network equipment and for requesting second network to set The message of standby configuration file.
In one implementation, at least two communication port of the third network equipment and the first network equipment Foundation has at least two links, the processor with the communication port send second network equipment configuration file it Before, it is also used to receive at least two messages from the third network equipment at least two link;Wherein, the place When reason device execution sends the configuration file of second network equipment to the third network equipment with the communication port, specifically For: the third network equipment as described in a chain road direction at least two link sends matching for second network equipment Set file.
In one implementation, the processor, which is executed, sends institute to the third network equipment with the communication port When stating the configuration file of second network equipment, it is specifically used for: is based on the communication port to third network equipment transmission Message length limits and the configuration file of second network equipment after fragment.
In one implementation, the processor sends the configuration text of second network equipment with the communication port It before part, is also used to: being sent with the communication port to the third network equipment and indicate that the first network equipment can mention For the message of the configuration file of second network equipment.
The 7th aspect of the application provides a kind of computer program product, when the computer product is performed, uses The method performed by above-mentioned the introduced first network equipment of execution.
The eighth aspect of the application additionally provides a kind of computer readable storage medium, the computer readable storage medium In be stored with instruction, described instruction is for executing method performed by above-mentioned introduced first network equipment.
Detailed description of the invention
Fig. 1 is the system construction drawing that the network equipment in a kind of pair of network disclosed in the embodiment of the present application is configured;
Fig. 2 is the disclosed method timing diagram configured to overlay device and second network equipment of the embodiment of the present application;
Fig. 3 is a kind of display diagram of whole net configuration file packet disclosed in the embodiment of the present application;
Fig. 4 is the display diagram of the second configuration file packet disclosed in the embodiment of the present application;
Fig. 5 is the disclosed method timing diagram to overlay device and first device message interaction of the embodiment of the present application;
Fig. 6 is the display diagram of the whole net configuration file packet of another kind disclosed in the embodiment of the present application;
Fig. 7 is the system construction drawing that the network equipment in a kind of pair of network disclosed in the embodiment of the present application is configured;
Fig. 8 is the disclosed method timing diagram configured to secondary equipment and second network equipment of the embodiment of the present application;
Fig. 9 is the disclosed method timing configured to logic root device and the third network equipment of the embodiment of the present application Figure;
Figure 10 is the disclosed method to message interaction between overlay device, first device and secondary equipment of the embodiment of the present application Timing diagram;
Figure 11 is a kind of structural schematic diagram of the network equipment disclosed in the embodiment of the present application;
Figure 12 is a kind of structural schematic diagram of the network equipment disclosed in the embodiment of the present application;
Figure 13 is the structure chart of the network equipment disclosed in the embodiment of the present application.
Specific embodiment
In embodiments herein, the network equipment for being used to access external network in network is referred to as overlay device, it can Selection of land, the overlay device in network are one, and the network equipment being directly connected to overlay device is referred to as first device, will be with In the network equipment of the direct-connected connection of first device, the network equipment in addition to overlay device be referred to as secondary equipment, and so on, Until being in the network equipment of end in network.
Individually below by taking certain level-one network equipment of overlay device and non-top layer as an example, to net disclosed in the embodiment of the present application The configuration of network equipment is illustrated.Wherein, overlay device, also referred to as first network equipment, for obtaining the first configuration text Part packet;Wherein, the first configuration file packet includes using first network equipment as all-network equipment in the branch of a network of root node Configuration file.Optionally, overlay device can obtain the first configuration file packet from cloud management controller, can also use it certainly His mode obtains the first configuration file packet, such as: universal serial bus (English: Universa Seria Bus, USB) flash disk It is connected to the USB interface of overlay device, overlay device reads the first configuration file packet of USB flash drive storage.Its in network His network equipment obtains configuration file from the network equipment of its upper level connected, also, directly connects with overlay device The network equipment connect can be referred to as second network equipment.
Illustrate that overlay device obtains the first configuration file from cloud management controller below with a specific embodiment The scheme of packet.Referring to Fig. 1 and Fig. 2, in the present embodiment, the configuration method of overlay device, comprising:
S201, terminal 106 obtain the login parameters of cloud management controller 107.
Wherein, terminal 106 can obtain the login ginseng of the cloud management controller 107 of user's input or third party device transmission Number, is also mounted with the software of whole wet end administration function, after the login parameters for receiving cloud management controller 107, according to cloud pipe The login parameters for managing controller 107 execute the configuration method of the network equipment.If also, the landing approach of cloud management controller 107 User name cipher authentication, then the login parameters of cloud management server 107 include username and password.
Cloud management controller 107 is deployed on public network, can be used for generating the configuration file of the network equipment in network.Its In, be stored in cloud management controller 107: the geographical location of each network in multiple networks, network identity, network topology, with And the configuration file for the multiple network equipments in network including;Wherein, network topology includes: that each network for including is set in network The equipment Serial Number of standby, each network equipment, the equipment Serial Number connect for the unique identification network equipment and LA Management Room Relationship is connect, which can be logic connecting relation or physical couplings.
S202, terminal 106 and overlay device 101 establish connection.
Wherein, terminal 106 and overlay device 101 establish connection, trigger whole net configuration.Terminal 106 can pass through general serial Bus (English: Universa Seria Bus, USB) and overlay device 101 establish connection, in terminal 106 and overlay device 101 It is provided with USB interface, two USB interfaces are connected by USB connecting line.In addition, terminal 106 and overlay device 101 can also lead to It crosses bluetooth and establishes connection, bluetooth module, bluetooth module and top layer in terminal 106 are respectively provided in terminal 106 and overlay device 101 The bluetooth module of equipment 101 is based on Bluetooth protocol and establishes connection.In addition, terminal 106 and overlay device 101 can also be connect by USB Mouth turns network interface line and establishes connection, and terminal 106 connects the USB interface end that USB interface turns network interface line, and overlay device 101 connects USB and connects Mouth turns the network interface end of network interface line.
S203, terminal 106 log in cloud management controller 207 with the login parameters of cloud management controller 107, and request cloud pipe It manages controller 107 and sends configuration file.
The request message for the configuration file that terminal 106 is sent, for requesting configuration file to cloud management controller 107.Its In, the equipment Serial Number of overlay device 101 can be carried in the request message that terminal 106 is sent, as cloud management controller 107 Generate the authority of whole net configuration file packet.Also, the equipment Serial Number of overlay device 101 is if desired carried in request message, After then needing terminal 106 and overlay device 101 to establish connection, the equipment Serial Number of overlay device 101 is obtained.Terminal 106 is sent Request message in can also carry network identity or the geographical location of 101 place network of overlay device, be also used as cloud management control Device 107 processed generates the authority of whole net configuration file packet.Also, the network identity of 101 place network of overlay device can be by user It is inputted in the human-computer interaction module of terminal, the geography information of 101 place network of overlay device equally can also be defeated by user Enter, can also be terminal 106 detect obtain itself where geographical location.
S204, cloud management controller 107 generate the first configuration file packet;Wherein, the first configuration file packet includes with top layer Equipment 101 is the configuration file of all-network equipment in the branch of a network of root node.
Due to overlay device 101 be for will be used to access the network equipment of external network in network, set with top layer Standby 101 for root node branch of a network include: overlay device 101 all branch of a networks in a network, that first is configured File packet includes: the configuration file of the network equipment all in network.
After cloud management controller 107 receives the request message for the configuration file that terminal 106 is sent, according to the configuration file Request message finds the network where the network equipment that terminal 106 is connected, i.e. network where overlay device 101, and should The configuration file for the all-network equipment for including in network is packaged, and obtains the first configuration file packet.
If carrying the network mark of 101 place network of overlay device in the request message for the configuration file that terminal 106 is sent Know or geographical location, cloud management controller 107 read network identity or the geographical location of 101 place network of overlay device, foundation The network identity of 101 place network of overlay device or geographical location search and obtain the network where overlay device 101.If terminal The equipment Serial Number of overlay device 101 in the request message of 106 configuration files sent, then foundation should for cloud management controller 107 The equipment Serial Number of overlay device 101, lookup obtains network topology belonging to overlay device 101, then obtains 101 institute of overlay device The corresponding network of the network topology of category.
Optionally, cloud management controller 107 generates the first configuration file packet except the all-network including including in network is set It can also include: the network topology with overlay device 101 for the branch of a network of root node other than standby configuration file, and network Topology includes the connection relationship of each network equipment and LA Management Room that include in network.Optionally, network topology may be used also To include the equipment Serial Number of each network equipment.
It wherein, is the network topology of the branch of a network of root node with overlay device 101, the network topology of as whole net.And And first Management Controller 107 is in addition to being bundled to the first configuration file packet for the network topology of whole net, and by the first configuration file packet Other than sending to terminal 106, it can also be that cloud management controller 107 individually sends the network topology of whole net to terminal 106.
S205, cloud management controller 107 send the first configuration file packet to terminal 106.
First configuration file packet is transmitted to overlay device 101 by S206, terminal 106.
S207, overlay device 101 extract the configuration file of overlay device 101 from the first configuration file packet, and activate top The configuration file of layer equipment 101.
Wherein, in the first configuration file packet, preservation be each network equipment for including in network configuration file, because This, overlay device 101 needs to unpack the first configuration file packet, and parses and take out one's own configuration file.Top After layer equipment 101 extracts one's own configuration file, the configuration for completing itself is activated to configuration file.Generally For, configuration file activation is divided into two steps: configuration file being set as the configuration file used when starting next time;Restart.In net After network equipment is restarted, the configuration in configuration file can be executed one by one, after the completion of execution, configuration file is also activated by.
The mode that overlay device 101 parses one's own configuration file from the first configuration file packet can be, root Derive the position of overlay device 101 according to whole net topology, the corresponding configuration file for determining the position, as overlay device 101 Configuration file.In addition, overlay device 101 can also parse in the first configuration file packet according to the equipment Serial Number of itself The configuration file of itself.
It step S203, and step S205~S206, is that overlay device 101 cannot control cloud management in the present embodiment Device 107 is routed to be executed up in the case where.If overlay device 101 cloud management controller 107 can be routed it is reachable, for save eventually The flow at end 106, overlay device 101 is after executing the step S202, it is not necessary to step S203 is executed, but directly from terminal The login parameters that cloud management controller 107 is obtained in 106 log in cloud management controller 107 according to the login parameters, and ask to it Seek configuration file.Also, overlay device 101 need not also execute step S205~S206 after executing the step S204, but It receives and whole net configuration file packet is sent by cloud management controller 107, then execute step S207.
If also, overlay device 101 cloud management controller 107 can be routed it is reachable, that overlay device 101 for connecing Enter the parameter of outer net, such as: the point-to-point protocol (English: Point-to-Point Protocol Over on Ethernet Ethernet, PPPoE), static internet protocol (English: Internet Protocol Address, IP) address or dynamic IP address can be terminal 106 and after overlay device 101 establishes connection, be transferred to overlay device 101 by terminal 106, in this way, Overlay device 201 is the parameter access outer net that the accessing external network can be used, and realizes the communication between cloud management controller 107. And terminal 106 to the parameter for accessing external network that overlay device 101 is transmitted then can be by user terminal 106 man-machine friendship It is inputted in mutual module or after terminal 106 logs in cloud management controller 107 with the login parameters of cloud management controller 107, from It is obtained in cloud management controller 107.
In the present embodiment above-mentioned steps propose overlay device 101 cloud management controller 107 can be routed it is reachable Under scene, or in the case where reachable scene cannot be routed to cloud management controller 107, the scheme of the first configuration file packet is obtained, It is to belong to the specific embodiment that the first configuration file packet is obtained from cloud management controller, if overlay device 101 uses it His mode obtains the first configuration file packet, then step S201~S206 is optional content.
After step S206, following steps are can also be performed in addition to executing step S207 in overlay device 101:
S208, overlay device 101 extract the second configuration file packet from the first configuration file packet.
Second configuration file packet includes matching by all-network equipment in the branch of a network of root node of second network equipment File is set, second network equipment is connected with overlay device 101.Branch of a network is the tree topology for including some root node, should All-network equipment in tree topology is for the network equipment in the branch of a network.
As shown in Figure 1, second network equipment includes first device 102 and first device 103, therefore, in overlay device 101 After obtaining the first configuration file packet, the second configuration file packet that can be extracted from the first configuration file packet includes: with first device 102 for all-network equipment in the branch of a network of root node configuration file, and with first device 103 be the network of root node The configuration file of all-network equipment in branch.It also, is the network equipment in the branch of a network of root node with first device 102 Including first device 102, secondary equipment 104 and secondary equipment 105;With first device 103 in the branch of a network of root node The network equipment includes first device 103.
Optionally, overlay device 101 obtains the network topology of whole net, then the network topology according to whole net, determines with Two network equipments are the branch of a network of root node, and extract from the first configuration file packet using second network equipment as root node Branch of a network in all-network equipment configuration file.
Wherein, the connection relationship of the LA Management Room in the network topology of whole net, can be logical connection, is also possible to object Reason connection, the difference of logical AND physical connection are as follows:
Logical connection Physical connection
Link information Including Including
Connected port Do not include Including
If the connection relationship of the LA Management Room in network topology is physical connection, overlay device 101 can be according to net The link information of network equipment room extracts the second configuration file packet from the first configuration file packet, can also according to connected port, The second configuration file packet is extracted from the first configuration file packet.If the connection relationship of the LA Management Room in network topology is logic Connection, then overlay device 101 is only capable of the link information according to LA Management Room, and the second configuration is extracted from the first configuration file packet File packet.
By extract by taking first device 102 is the configuration file of the all-network equipment in the branch of a network of root node as an example into Row explanation.Referring to Fig. 3, the connection relationship of the LA Management Room in network topology is logical connection, and further includes in network topology The equipment Serial Number of each network equipment.Link information of the overlay device 101 according to the LA Management Room in network topology, in net The branch of a network with first device 102 for root node is found in network topology, and finds the network equipment included by the branch of a network Configuration file, the configuration file with first device 102 for the all-network equipment in the branch of a network of root node is packed into Second configuration file packet optionally, in the second configuration file packet can also include the network branch with first device 102 for root node The topology on road, as shown in Figure 4.
S209, overlay device 101 send the second configuration file packet to second network equipment.
Wherein, the second configuration file packet that overlay device 101 is sent to second network equipment can be the second configuration file Packet itself, is also possible in the second longer situation of configuration file packet, and based on message length limitation, second after fragment matches Set file packet.Certainly, even if in the second longer situation of configuration file packet, overlay device 101 can also be sent out using oversized frame Send second configuration file packet itself.
Also, the second configuration file packet is extracted in overlay device 101, directly can send second to second network equipment Configuration file packet itself, or send based on message length limitation and the second configuration file packet after fragment.It optionally, can be with Be: overlay device 101 receive from second network equipment and for request second network equipment configuration file message it Afterwards, the second configuration file packet, or the second configuration text after fragment based on message length limitation are sent to second network equipment Part packet.It is corresponding, it include: for requesting matching for second network equipment for requesting the message of configuration file of second network equipment Set the message of file, and the message for requesting the fragment of the configuration file of second network equipment.
Illustrate that overlay device 101 is being received from second network equipment and being used for below with a specific embodiment After the message for requesting the configuration file of second network equipment, the second configuration file packet, Huo Zheji are sent to second network equipment It is limited and the scheme of the second configuration file packet after fragment in message length.
Referring to Fig. 1 and Fig. 5, in the present embodiment, by taking first device 102 as an example, to first device 102 by with overlay device The process that interaction between 101 obtains the configuration file of first device 102 is illustrated.Specifically, the interactive process includes:
S501, first device 102 send multiple first two-layer protocol messages using multiple ports.
Wherein, first device 102 sends first two-layer protocol message, the first two-layer protocol message using a port For requesting to configure.
After first device 102 starts, find itself to be in empty configuration status, empty configuration status, that is, network equipment is without matching The state set then needs to obtain configuration file, completes configuration, therefore, can send the first two-layer protocol report for requesting configuration Text.
Also, there are multiple ports on first device 102, be connected respectively to overlay device 101, secondary equipment 104 and second level Equipment 105.First device 102 starts under empty configuration status, its own is not aware which port to be connected to top layer by sets Standby 101, therefore, the port that first device 102 has been connected using each sends the first two-layer protocol message respectively.Also, In Fig. 1, there are two connecting lines between overlay device 101 and first device 102, illustrates first device 102 using two ports and top Layer equipment 101 establishes connection.First device 102 can also use the two connectivity ports, send the first two-layer protocol message respectively.
Since the non-overlay device such as first device 102 is empty configuration equipment, three layers of communication can not be carried out, therefore only Message interaction can be carried out using two-layer protocol, specifically use agreement based on ethernet frame format and expansible, such as: chain Road floor finds agreement (English: Link Layer Discovery Protocol, LLDP), CISCO discovery protocol (English: Cisco Discovery Protocol, CDP), based on Bridge Protocol Data Unit (English: Bridge Protocol Data Unit, BPDU) the agreement encapsulated.
Sky configuration equipment is to use agreement progress message interaction based on ethernet frame format and expansible, i.e., for every A kind of agreement is required to extend the field in its frame format.By taking LLDP agreement as an example, in the agreement, specific Type can be passed through LLDP agreement is extended for 127 type-length-value (Type-Length-Value, TLV).
The format for the TLV that specific Type is 127 is as follows:
Type Length OUI Subtype Information string
7bits 9bits 24bits 8bits 0-507octets
The type of Type:TLV.Type is 127.
The length of Length:TLV.
OUI: tissue unique identification (English: Organizationally unique identifier), it is specific to belong to The unique identifier of tissue, such as 00-E0-FC.
Customized type in Subtype: this TLV.
The value of Information string: this TLV.
Subtype is defined as follows shown in table:
Subtype Meaning Frame direction information
1 Request configuration Request the deployment facility of equipment -> Equipment Serial Number
2 There are configuration files Deployment facility -> request equipment
The first two-layer protocol message that first device 102 is sent, Subtype 1.Optionally, first device 102 is sent The first two-layer protocol message in, the equipment Serial Number of first device 102 can also be carried.
Optionally, the step S208 of above-described embodiment, overlay device 101 extract the second configuration from the first configuration file packet File packet can be after overlay device 101 receives the first two-layer protocol message and execute.
Wherein, if overlay device 101 receives the first two-layer protocol message that first device 102 is sent, overlay device 101 The second configuration file packet can be extracted from the first configuration file packet according to connected port.Referring to Fig. 6, overlay device 101 from The receiving port of first two-layer protocol message, such as the port GE0/0/1 in figure, and the link information in network topology is combined, It is that first device 102 issues that this message, which can be extrapolated, is then found in network topology with first device 102 as root node Branch of a network topology, and find the configuration file of the network equipment included by the branch of a network, be root with first device 102 The configuration file of the network equipment included by the topology of the branch of a network of node and the branch of a network repacks to form second Configuration file packet, equally, in the second configuration file packet, the topology with first device 102 for the branch of a network of root node is optional Content.
S502, overlay device 101 send the second two-layer protocol message to first device 102.
Wherein, if being stored with the second configuration file packet in overlay device 101, that overlay device 101 is sent out to first device 102 The second two-layer protocol message is sent, which is used to indicate overlay device and is capable of providing configuration file.Also, top layer is set The mode of the second two-layer protocol message of standby 101 transmission is: using the port of the first two-layer protocol message of reception to first device 102 Send the second two-layer protocol message.
If also, first device 102 is connected with overlay device 101 via at least two links, overlay device as shown in figure 1 101 have two connecting lines with first device 102, and first device 102 sends the first two-layer protocol using two connectivity ports respectively Message, then overlay device 101 receives the first two-layer protocol message, then is sent out respectively using the port for receiving the first two-layer protocol message Send the second two-layer protocol message.
As sending the first two-layer protocol message with first device 102, overlay device 101 sends the second two-layer protocol message Using based on ethernet frame format and expansible agreement, if the second two-layer protocol message is sent using LLDP agreement, Subtype is 2.First device 102 sends agreement used by the second two-layer protocol message and overlay device 101 sends first The agreement of two-layer protocol message is the same agreement under normal circumstances, naturally it is also possible to use different agreements.
S503, first device 102 determine first device 102 and top according to the receiving port of the second two-layer protocol message The connectivity port of layer equipment 101.
First device 102 sends the port of the first two-layer protocol message and receives the port of the second two-layer protocol message, if For the same port, then illustrate the port that the port is first device 202 and overlay device 101 is attached.It is to be determined go out one After the connectivity port of grade equipment 102 and overlay device 201, first device 102 carries out second to overlay device 101 with this port The request and reception of configuration file packet.
Step S501 and S503 disclosure of that is the connection for determining first device 102 and overlay device 101 A kind of embodiment of port determines that first device 102 and the connectivity port of overlay device 101 also have others certainly Embodiment, such as: the information for illustrating the type of attachment of its port is stored in first device 102 in advance, in such feelings Under condition, the content of step S501~S503 is optional content.
Optionally, on the connectivity port for determining first device 102 and overlay device 101 using other embodiments, top After layer equipment 101 obtains the second configuration file packet, the second above-mentioned two-layer protocol report can also be sent to first device 102 Text, to illustrate that overlay device 101 is capable of providing configuration file.
S504, first device 102 use the connectivity port of first device 102 and overlay device 101, to overlay device 101 Send third two-layer protocol message, wherein third two-layer protocol message is used to request the length value of the second configuration file packet.
Wherein, in the present embodiment, first device 102 is preferentially completed based on the agreement encapsulated with BPDU and requests and receive second The communication process of configuration file packet, because BPDU has reserved the space of longer customized information.In addition using directly expansion It is to prevent from clashing with the transmission frequency of existing protocol that BPDU frame, which is opened up, without the use of the existing protocol encapsulated based on BPDU, to the greatest extent Amount does not influence existing protocol.
Also, BPDU defines one group of special purpose physical address (English: Media Access Control, MAC) Address, referred to as BPDU-MAC, feature are that will not broadcast, and do not learn source MAC, are by extending BPDU-MAC therefore The mode of subsequent field come carry the second configuration file packet distribution function.
The frame format of BPDU after extension is as follows:
The meaning of each field is as follows:
BPDU-MAC: multicast address;
SMAC: source MAC;
EthType: frame type;
VLAN-ID: the field is not used;
BPDU-Type:BPDU type;
Protocol-version: protocol version;
Magic: Magic number;
Encryption: encrypted indicia, 0 is does not encrypt, and 1 encrypts for OpenSSL certificate.If it is required, then encryption range For the subsequent content of length;
Length: the length terminated from Reserved to TLVs is indicated;
Reserved: reserved field;
Serial-number: transmitting Sequence Number, and one message of every transmission adds 1;
The data of TLVs:TLV encapsulation, are the main bodys of data interaction.
The format of TLV is defined as follows:
Type (Type) Length (Length) It is worth (Value)
2octets 2octets 0–1400octets
Detailed Type is defined as follows:
In the third two-layer protocol message that first device 102 is sent, type 1.Optionally, first device 102 is sent Third two-layer protocol message in, the equipment Serial Number of first device 102 can also be carried.
S505, overlay device 101 calculate the length value of the second configuration file packet according to the second configuration file packet.
When generating the second configuration file packet, need to create a description file, this describes file for describing network branch Offset and length of the configuration file of all network equipments included by road in packaging file.The second configuration is generated being packaged When file packet, description file is placed on file initial position.Therefore, the length of the second above-mentioned configuration file packet refers to: description The total length that the file size of file and all configuration files adds up.If the second configuration file packet further includes opening up for branch of a network Flutter, then the length of the second configuration file packet refers to: description file, branch of a network the file size of topological and all configuration file add The total length to get up.
S506, overlay device 101 send the 4th two-layer protocol message to first device 102, in the 4th two-layer protocol message Carry the length value of the second configuration file packet.
Wherein, the 4th two-layer protocol message that overlay device 101 is sent, the three or the two layer of association sent with first device 102 View message is identical, when being all made of the agreement based on BPDU encapsulation, type 2.
S507, first device 102 judge whether the length value in the 4th two-layer protocol message exceeds default maximum length value.
Wherein, the maximum length value that maximum length value can allow according to TLV specified in agreement is set, for example, being based on In the agreement of BPDU, the maximum length that TLV allows is 1400octets.
If judging, length value exceeds default maximum length value, thens follow the steps S508~S509, no to then follow the steps S510~S511.
Before first device 102 receives the second configuration file packet, first judges the length value of the second configuration file packet, can keep away Exempt to occur exceeding the requirement of maximum value due to the length value of the second configuration file packet, and leads to asking for the requirement for being unsatisfactory for agreement Topic.If also, judge that the length value in the 4th two-layer protocol message is more than default maximum length value, illustrate the second configuration file The length value of packet is more than the maximum value of protocol requirement, executes step S510~S511, is to carry out fragment to the second configuration file packet Request and reception, it is ensured that the length value of each fragment is no more than the maximum value of protocol requirement.
S508, first device 102 send the 5th two-layer protocol message to overlay device 101.
Wherein, the 5th two-layer protocol message is used to request the fragment of the second configuration file packet, type 3, and carries Offset and length value, the i.e. length value of the initial value of a certain fragment of the second configuration file packet and the fragment.
First device 102 calculates the quantity of fragment according to the length value in the 4th two-layer protocol message, ties according to calculating Fruit generates the 5th two-layer protocol message of the quantity of corresponding fragment, successively sends to overlay device 101.
Such as: the length of the second configuration file packet is 3000octets:
3000octets
Since 3000octets has exceeded primary permitted maximum length, it must fragment as follows It sends:
1400octets 1400octets 200octets
In the above-described example, the message for the first fragment for requesting the second configuration file packet that first device 102 is sent In, offset 0, length value 1400octets;In message for requesting the second fragment, offset 1401, length value For 1400octets;In message for requesting the second fragment, offset 2801, length value 200octets.
S509, overlay device 101 send the fragment of the second configuration file packet to first device 102.
First device 102 sends the message of the primary fragment for requesting the second configuration file packet, overlay device 101 to one Grade equipment 102 returns to the fragment of the solicited message of the corresponding fragment, and first device 102 saves after receiving fragment, retransmits one The message of the secondary fragment for requesting the second configuration file packet, so several times, first device 102 can get complete branch for interaction Configuration file packet.
Also, by the above-mentioned agreement based on BPDU it is found that the fragment for the second configuration file packet that overlay device 101 is sent In, type 4.
S510, first device 102 send the 6th two-layer protocol message to overlay device 101.
Wherein, for the 6th two-layer protocol message for requesting the second configuration file packet, type is also 3, and the length value carried Length value in as the 4th two-layer protocol message.
S511, overlay device 101 send the second configuration file packet to first device 102.
Wherein, after step S509 and step S511, executable step S512.
Scheme disclosed in step S509~S511 is to realize that overlay device 101 is sent to first device 102 based on message A kind of embodiment of length limitation and the second configuration file packet or the second configuration file packet itself after fragment.Another In kind embodiment, the second configuration file packet can be used defined message length by the second configuration file by overlay device 101 Packet carries out fragment, and the second configuration file packet after fragment is sent to first device 102.In another embodiment, top layer Equipment 101 is sent based on message length limitation and the second configuration file packet or the second configuration after fragment to first device 102 The mode of file packet itself, comprising:
S504', first device 102 use the connectivity port of first device 102 and overlay device 101, to overlay device 101 Send the 7th two-layer protocol message, wherein the maximum that first device 102 is allowed to use is carried in the 7th two-layer protocol message Length value.
The maximum length value that first device 102 is allowed to use sends the 7th two-layer protocol report according to first device 102 Maximum length value specified in agreement used in text.
S505', overlay device 101 calculate the length value of the second configuration file packet according to the second configuration file packet, and sentence Whether the length value of disconnected second configuration file packet is more than maximum length value that first device 102 is allowed to use.
If judging, the length value of the second configuration file packet exceeds the maximum length value that first device 102 is allowed to use, S506'~S507' is thened follow the steps, it is no to then follow the steps S508'.
The maximum length value that S506', overlay device 101 are allowed to use according to first device 102, calculates the number of fragment Amount.
S507', overlay device 101 successively send the fragment of the second configuration file packet to first device 102.
Overlay device 101 successively sends the fragment of each the second configuration file packet, first device to first device 102 102 receive, and the fragment of the second configuration file packet received is combined into the second configuration file packet.Overlay device 101 may be used also To be the primary fragment for sending a second configuration file packet, the fragment of the second configuration file packet is received to first device 102 Afterwards, message is sent to overlay device 101, to request next fragment, overlay device 101 sends to first device 102 next again The fragment of a second configuration file packet, repeatedly, until overlay device 101 has sent point of the second all configuration file packets Piece.
S508', overlay device 101 send the second configuration file packet to first device 102.
After step S507' and S508', it is performed both by S512.
If first device 102 is connected with overlay device 101 via at least two links, in order to be simply done the network equipment Between communication, first device 102 using the same link receive overlay device 101 send the second configuration file packet, optionally, Second configuration file packet is the fragment or the second configuration file packet itself of two configuration file packets.Even can step S504~ In S511 and S504'~S508', message communication process between first device 102 and overlay device 101 is based on use The same link carries out.
After first device 102 obtains the second configuration file packet, configuration text can be extracted again from the second configuration file packet Part packet, the configuration file packet include the network equipment that is connected using first device 102 to be all in the branch of a network of root node The configuration file of the network equipment, and sent the network equipment that obtained configuration file packet is connected to first device 102 is extracted, one The step of network equipment that grade network 102 connects executes extraction again and sends configuration file packet, and so on, until in network Until each network equipment receives the configuration file of oneself.
Optionally, each of network network equipment, extracted from the first configuration file packet the second configuration file packet it Before, it can also obtain using itself as the topology of the branch of a network of root node, and according to the topology from the first configuration file Bao Zhongti The second configuration file packet is taken, and the concrete mode extracted can be found in the content of step S208.
S512, first device 102 extract the configuration file of first device 102 from the second configuration file packet, and activate The configuration file of first device 102.
First device 102 can derive the position of first device 102, the corresponding position according to the topology of branch of a network It determines the configuration file of itself, the configuration file of itself can also be found according to the equipment Serial Number of itself.
First device 102 complete itself configuration file with postponing, and overlay device can also be by uplink port, i.e., The port of 101 connections, carries out record preservation, to guarantee to complete the communication process with overlay device 101 with this port later.
In another embodiment of the application, the network equipment that terminal 707 connects is not overlay device 701, but other nets Network equipment, such as the secondary equipment 704 in Fig. 7.Based on this, in the configuration method of the network equipment disclosed in the present embodiment, connection The configuration method of the network equipment (being specifically illustrated by taking secondary equipment 704 as an example) of terminal 707, referring to Fig. 8, comprising: step S801~S809.
Wherein, the specific implementation process of step S801~S803 can be found in the content of the embodiment of corresponding diagram 2, and difference is only It is that the equipment connecting with terminal 707 is changed to secondary equipment 704 by overlay device 701.
In the present embodiment, in the specific implementation of step S803, although secondary equipment 704 is not that top layer is set in a network It is standby, but the first configuration file packet that cloud management controller 107 generates for it, it also should include the network equipment all in network Configuration file.Therefore, when the network equipment of acquisition configuration file is non-overlay device from cloud management control, cloud management control Referred in the first configuration file packet that device 107 produces with secondary equipment 704 for the branch of a network of root node: setting second level is set It should be the branch of a network of root node with secondary equipment 704 in standby 704 logical network formed for logic overlay device;Wherein, Logic overlay device and it is non-network in real overlay device, do not have the function of real overlay device, and a top assumed that Layer equipment.
It is literary in the first configuration if secondary equipment 704 is according to equipment of itself sequence number in the specific implementation of step S807 The configuration file of itself is parsed in part packet, realizes that process is identical as the content of the embodiment of corresponding diagram 2.Secondary equipment 704 If parsing the configuration file of itself according to the mode of network topology, secondary equipment 704 needs to receive the two of the transmission of terminal 707 The station location marker of grade equipment 404, secondary equipment 704 is in the first configuration file packet, according to the station location marker of secondary equipment 704, Determine the configuration file of secondary equipment 704.
User specifies the network equipment of connection terminal 707 in terminal 707, and terminal 707 receives the specify information of user, hair Send the station location marker of the network equipment of connection terminal 707.
In the specific implementation of step S808, second network equipment, i.e., the network equipment being connected with secondary equipment 704 can The upper level equipment for thinking secondary equipment 704 can also be the next stage of secondary equipment 704 such as the first device 702 in Fig. 7 Equipment, such as the three-stage apparatus 706 in Fig. 7.Also, secondary equipment 704 can be in the network topology of whole net, by comparing second The receiving port of the equipment Serial Number of the network equipment or the first two-layer protocol message, to determine that second network equipment is second level The upper level network equipment or the next stage network equipment of equipment 704.
The case where for second network equipment being upper level equipment is with second network equipment in that the second configuration file packet The branch of a network of root node refers to: set second network equipment as in logic overlay device and the logical network that is formed, this Using second network equipment as the branch of a network of root node.
It also, may include: by the overlay device setting in network by the branch of a network of root node of second network equipment In the logical network formed for second network equipment, using second network equipment as the overall network branch of root node, substantially It is the all-network branch in script network.It can also include: to be formed as logic overlay device setting second network equipment Logical network in include being divided by secondary equipment 704 using second network equipment to go in the overall network branch of root node Branch of a network and remaining branch of a network in root node, as in Fig. 7 include first device 702, overlay device 701 and level-one The branch of a network of equipment 703, and the branch of a network including first device 702 and secondary equipment 705.
The case where for second network equipment being next stage equipment is with second network equipment in that the second configuration file packet What the branch of a network of root node referred to is exactly: using second network equipment as the overall network branch of root node in script network.
In the specific implementation of step S809, if secondary equipment 704 sends the second configuration file to second network equipment The mode of packet is: receive from second network equipment and for request second network equipment configuration file message and then The scheme of the second configuration file packet is sent to second network equipment, then the message between secondary equipment 704 and second network equipment Interactive process can be found in the content of the embodiment of corresponding diagram 5, and difference is: devices to be configured is changed to second level by overlay device Equipment 704, request equipment change are three-stage apparatus 706 or first device 702, and according to the rank of second network equipment, adjustment The configuration file for including in second configuration file packet.
Another embodiment of the application also discloses a kind of configuration method of network equipment.In the present embodiment, devices to be configured It can be divided into two kinds of roles: logic root device and agent equipment;Wherein, the whole net configuration file packet in cloud management controller is obtained The network equipment becomes logic root device, logic root device preserves whole net configuration file after to the activation of itself configuration file Packet.Agent equipment only has the configuration file of oneself, and the message for being used to request configuration for equipment will to be requested to send, agency arrives Logic root device is also used to the message for being used for response for sending logic root device, agency to request equipment.
Based on this, in the configuration method of the network equipment disclosed in the present embodiment, the configuration method of logic root device, referring to figure 9, comprising: step S901~S909.
Wherein, logic root device is overlay device or is non-overlay device, the specific implementation of step S901~S903 Cheng Jun can be found in the content of the embodiment of corresponding diagram 2.
In the specific implementation of step S904, cloud management controller is directed to the request message of configuration file, regardless of logic Whether root device is overlay device, and generation is whole net configuration file packet, the configuration text including all-network equipment in network Part.
In the specific implementation of step S908, logic root device is after receiving whole net configuration file packet, from whole net The configuration file of second network equipment is extracted in configuration file packet, wherein second network equipment includes in network except logical root is set Any one network equipment other than standby.
Since the network equipment that logic root device can only be connected to it sends configuration file, if second network equipment is and patrols When collecting the network equipment of root device connection, i.e. second network equipment is some network equipment in the third network equipment, that is patrolled The configuration file for second network equipment that volume root device is sent to the third network equipment, comprising: logic root device is to third network The configuration file for the third network equipment that equipment is sent.
If when the network equipment that second network equipment is not connect with logic root device, being set in network with third network Any one network equipment in the standby branch of a network for root node, that illustrates that the third network equipment is agent equipment, that logic The configuration file for second network equipment that root device is sent to the third network equipment, comprising:
The derivation configuration file for second network equipment that logic root device is sent to the third network equipment;
Wherein, the value and the value phase of the configuration file of second network equipment of second network equipment derived from configuration file Together, the difference of the two is, in the derivation configuration file of second network equipment, it includes that meaning configures for response that Type value, which is removed, Value further includes the value that meaning is agency.
In the specific implementation of step S909, logic root device sends matching for second network equipment to the third network equipment File is set, can be after the configuration file for extracting second network equipment, is directly sent to the third network equipment, it can also be with It is to receive from the third network equipment and after being used to request the message of configuration file of second network equipment, to third net Network equipment is sent.
The third network equipment is come from and for asking to illustrate logical root equipment in reception with a specific embodiment below After the message for seeking the configuration file of second network equipment, the configuration file of second network equipment is sent to the third network equipment Scheme, and in this scenario, the network equipment that second network equipment is not connect with logic root device, with third in network The network equipment is any one network equipment in the branch of a network of root node.
Referring to Fig. 1 and Figure 10, in the present embodiment, by taking the third network equipment is secondary equipment 104 as an example, to secondary equipment 104 by agent equipment-first device 102, and the process that configuration file is obtained from logic root device-overlay device 101 carries out Explanation.Specifically, including:
S1001, secondary equipment 104 send multiple first two-layer protocol messages using multiple ports.
Wherein, wherein secondary equipment 104 sends first two-layer protocol message, the one or two layer of association using a port Message is discussed for requesting configuration.Secondary equipment 104 is request equipment, and port can be separately connected other network equipments, need First two-layer protocol message is successively sent using the port in connection status, to determine to be attached with first device 102 Port.Also, secondary equipment 104 sends the specific implementation process of the first two-layer protocol message, reference can be made to the implementation of corresponding diagram 5 In example, the content of step S501, details are not described herein again.
S1002, first device 102 generate first and derive from two-layer protocol message according to the first two-layer protocol message.
Wherein, the equipment sequence of secondary equipment 104 can be carried in the first two-layer protocol message that secondary equipment 104 is sent Number.First device 102 receives the first two-layer protocol message, and the secondary equipment 104 carried according to the first two-layer protocol message is set Standby sequence number or secondary equipment 104 send the port of the first two-layer protocol message, judge that itself does not save secondary equipment 104 configuration file illustrates itself then for agent equipment, then generates first and derive from two-layer protocol message.
For the first two-layer protocol message generated using LLDP agreement, first device 102 receives the first two-layer protocol report Text adds Subtype again as 3 and (sets containing for Subtype3 for the value for the Subtype that the message recombinant meaning is agency Justice is proxy information), it forms first and derives from two-layer protocol message, the i.e. value of the Subtype of the first derivation two-layer protocol message For Subtype1 and Subtype3.Also, the first derivation two-layer protocol message can also carry the equipment sequence of secondary equipment 204 Row number.
Also, according to other two-layer protocols, for example, the agreement based on BPDU encapsulation, the derivation of uplink or downlink In message, the occurrence of Type also adds the value that meaning is agency again.
S1003, first device 102 send first to overlay device 101 and derive from two-layer protocol message.
After first device 102 requests itself configuration file to overlay device 101, itself and overlay device 101 will record Connectivity port receives the first two-layer protocol message of the transmission of secondary equipment 104 in first device 102, and generates first and derive from After two-layer protocol message, first is sent using the first device 102 of record and the connectivity port of overlay device 101 and derives from two layers of association Discuss message.
It is using the end also, in the step of following reflection first device 102 and overlay device 101 interact Mouthful, just do not illustrate one by one.
Optionally, overlay device 101 extracts the process of the configuration file of secondary equipment 104 from whole net configuration file packet, It can be and executed after overlay device 101 receives the first derivation two-layer protocol message.
Wherein, overlay device 101 preserves whole net configuration file packet, can be with according to the equipment Serial Number of secondary equipment 204 Determine the configuration file of secondary equipment 104, if overlay device 101 also preserves the network topology of network, that can also be used It is determined with the equipment account of the direct-connected network equipment of request equipment and line relationship.
Wherein, first device 102 takes oneself equipment account and the port numbers oneself connecting with secondary equipment 204 It takes in the first derivation two-layer protocol message, and is sent to overlay device 101.Overlay device 101 receives two layers of the first derivation Protocol massages determine the position of first device 102 in network topology according to the account of first device 102, set further according to level-one Standby 102 port numbers connecting with secondary equipment 204 can determine really request equipment (i.e. secondary equipment 104), then obtain The configuration file of secondary equipment 104.It further include each in network in this scheme, in the network topology that overlay device 101 obtains The account of the network equipment.
S1004, overlay device 101 send second to first device 102 and derive from two-layer protocol message.
Wherein, it if after overlay device 101 receives the first derivation two-layer protocol message, generates second and derives from two-layer protocol Message derives from two-layer protocol message for responding first.It is derived from two-layer protocol message according to LLDP agreement, second, The value of Subtype is Subtype2 and Subtype3.
S1005, first device 102 send second to secondary equipment 104 and derive from two-layer protocol message.
The receiving port that S1006, secondary equipment 104 derive from two-layer protocol message according to second, determines secondary equipment 104 With the connectivity port of first device 102.
Wherein, the detailed process of this step can be found in the content of step S503 in the embodiment of corresponding diagram 3, no longer superfluous herein It states.
S1007, secondary equipment 104 use the connectivity port of secondary equipment 104 and first device 102, to first device 102 Send third two-layer protocol message, wherein third two-layer protocol message is used to request the length of the configuration file of secondary equipment 104 Value.
S1008, first device 102 generate third and derive from two-layer protocol message according to third two-layer protocol message.
Wherein, according to the agreement encapsulated based on BPDU, third derives from two-layer protocol message, and the value of Type is 1 and 5 (setting the meaning of Type5 as proxy information).Also, in the derivation protocol massages referred in following steps, the value of Type exists Recombinant Type5 on the basis of the Type value of original information.
S1009, first device 102 send third to overlay device 101 and derive from two-layer protocol message.
Secondary equipment 104 is not aware that itself and logical root equipment interval what network equipment, secondary equipment 104 are only known Road can send or obtain protocol massages by the port being connected with first device 102.Therefore, secondary equipment 104 generates the After three two-layer protocol messages, sent by the connectivity port with first device 102 to first device 102.First device 102 receives It determines that it will be sent to logic root device after the protocol massages, after being parsed, generates after third derives from two-layer protocol message, by the Three, which derive from the network equipment that two-layer protocol message is connected to it, sends.
If there are also the networks of other middle layers between the agent equipment and logic root device of such as first device 102 etc Equipment, i.e. other agent equipments, these agent equipments receive the third two-layer protocol group that its direct-connected agent equipment is sent Raw message determines that the information wants sending logic root device after being parsed, can using communication port by it to the network of connection Equipment is sent.
S1010, overlay device 101 calculate the configuration file of secondary equipment 104 according to the configuration file of secondary equipment 104 Length value.
S1011, overlay device 101 send the 4th to first device 102 and derive from two-layer protocol message, and the 4th derives from two layers The length value of the configuration file of secondary equipment 104 is carried in protocol massages.
S1012, first device 102 send the 4th to secondary equipment 104 and derive from two-layer protocol message.
S1013, secondary equipment 104 judge the configuration text of the secondary equipment 104 carried in the 4th derivation two-layer protocol message The length value of part, if be more than default maximum length value.
If judging, length value exceeds default maximum length value, thens follow the steps S1014~S1018, no to then follow the steps S1019~S1023.
S1014, secondary equipment 104 send the 5th two-layer protocol message to first device 102;Wherein, the 5th two-layer protocol Message is used to request the fragment of the configuration file of secondary equipment 104.
S1015, first device 102 generate the 5th and derive from two-layer protocol message according to the 5th two-layer protocol message.
S1016, first device 102 send the 5th to overlay device 101 and derive from two-layer protocol message.
S1017, overlay device 101 send the fragment of the derivation configuration file of secondary equipment 104 to first device 102.
Wherein, the value of the configuration file of the value in the fragment of the derivation configuration file of secondary equipment 104 and secondary equipment 104 Identical, the two obtains difference and is, in the fragment of the derivation configuration file of secondary equipment 104, it is to answer that Type value, which is removed including meaning, The value for answering configuration further includes the value that meaning is agency.
S1018, first device 102 send the fragment of the derivation configuration file of secondary equipment 104 to secondary equipment 104.
S1019, secondary equipment 104 send the 6th two-layer protocol message to first device 102, wherein the 6th two-layer protocol Message is used to request the configuration file of secondary equipment 104.
S1020, first device 102 generate the 6th and derive from two-layer protocol message according to the 6th two-layer protocol message.
S1021, first device 102 send the 6th to overlay device 101 and derive from two-layer protocol message.
S1022, overlay device 101 send the derivation configuration file of secondary equipment 104 to first device 102.
Wherein, as step S1017, the Type value of the derivation configuration file of secondary equipment 104 further includes 5.
S1023, first device 102 send the derivation configuration file of secondary equipment 104 to secondary equipment 104.
S1024, secondary equipment 104 activate the derivation configuration file of secondary equipment 104.
Wherein, the specific implementation process of step S1007~S1024, reference can be made to the content of the embodiment of corresponding diagram 5, and Difference with the content of the embodiment of corresponding diagram 5 is that the protocol massages that first device 102 is sent according to secondary equipment 104 are raw At derivation protocol massages, and the derivation message that overlay device 101 is sent is sent to first device 102.
Another embodiment of the application also discloses a kind of network equipment, as first network equipment, referring to Figure 11, the first net Network equipment includes:
First acquisition unit 1101, for implementation disclosed in step S201 to S206 in the embodiment according to corresponding diagram 2 Embodiment disclosed in step S801 to S806 in the embodiment of mode or corresponding diagram 8 obtains the first configuration file packet, First configuration file packet includes using first network equipment as the configuration file of all-network equipment in the branch of a network of root node.
Extraction unit 1102, for embodiment disclosed in step S208 in the embodiment according to corresponding diagram 2 or right Embodiment disclosed in step S808 in the embodiment of Fig. 8 is answered, the second configuration file packet is extracted from the first configuration file packet, Second configuration file packet include using second network equipment as the configuration file of all-network equipment in the branch of a network of root node, In, second network equipment is connected with first network equipment.
Optionally, in one embodiment, still reference can be made to Figure 11, first network equipment further include: second acquisition unit 1103, for obtaining using first network equipment as the topology of the branch of a network of root node.Also, extraction unit 1102 is then according to right Optional embodiment disclosed in step S208 in the embodiment of Fig. 2 is answered, according to using first network equipment as the network of root node The topology of branch extracts the second configuration file packet from the first configuration file packet.
Transmission unit 1104, for embodiment disclosed in step S209 in the embodiment according to corresponding diagram 2, to second The network equipment the second configuration file packet;Perhaps for step S501 to S511 or corresponding diagram in the embodiment according to corresponding diagram 5 Embodiment disclosed in step S809 in 8 embodiment is sent based on message length limitation and fragment to second network equipment The second configuration file packet afterwards, and before sending the second configuration file packet, instruction first network is sent to second network equipment Equipment is capable of providing the message of configuration file.
Optionally, in one embodiment, still reference can be made to Figure 11, first network equipment further include: the first receiving unit 1105, for embodiment disclosed in step S510 in the embodiment according to corresponding diagram 5, second is sent in transmission unit 1104 Before configuration file packet, message from second network equipment and for requesting the configuration file of second network equipment is received.
Optionally, in one embodiment, second network equipment is with first network equipment via at least two link phases Even, first network equipment further include: the second receiving unit 1106, it is public for step S501 institute in the embodiment according to corresponding diagram 5 The embodiment opened is received via at least two links from the before transmission unit 1104 sends the second configuration file packet At least two messages of two network equipments.Also, transmission unit 1104 is used for according to step S511 institute in the embodiment of corresponding diagram 5 Disclosed embodiment only sends the second configuration file packet via a link at least two links.
Another embodiment of the application also discloses a kind of network equipment, as first network equipment, referring to Figure 12, the first net Network equipment includes:
Acquiring unit 1201, for embodiment disclosed in step S901 to S906 in the embodiment according to corresponding diagram 9, Whole net configuration file packet is obtained, whole net configuration file packet includes the configuration file of all-network equipment in network;
Extraction unit 1202, for embodiment disclosed in step S908 in the embodiment according to corresponding diagram 9, from whole net Extract the configuration file of second network equipment in configuration file packet, second network equipment include in network except first network equipment with Any one outer network equipment;
Transmission unit 1203, for embodiment disclosed in step S909 in the embodiment according to corresponding diagram 9, to third The network equipment sends the configuration file of second network equipment, and the third network equipment is located at second network equipment and first network equipment Between, and connect with first network equipment;Alternatively, for public according to step S1001 to S1023 institute in the embodiment of corresponding diagram 10 The embodiment opened is sent to the third network equipment and is limited and the configuration text of second network equipment after fragment based on message length Part, and before the configuration file for sending second network equipment, sending instruction first network equipment to the third network equipment can The message of the configuration file of second network equipment is provided.
Optionally, in one embodiment, still reference can be made to Figure 12, first network equipment further include: the first receiving unit 1204, for transmission unit 1203 send second network equipment configuration file before, in the embodiment according to corresponding diagram 10 Embodiment disclosed in step S1014 to S1016 or step S1019 to S1021, receive from the third network equipment and For requesting the message of the configuration file of second network equipment.
Optionally, in one embodiment, the third network equipment is with first network equipment via at least two link phases Even, still reference can be made to Figure 12, first network equipment further include the second receiving unit 1205, for sending second in transmission unit 1203 Before the configuration file of the network equipment, according to embodiment party disclosed in step S1001 to S1003 in the embodiment of corresponding diagram 10 Formula receives at least two messages from the third network equipment via at least two links.Also, transmission unit 1203, according to Embodiment disclosed in step S1004 to S1005 in the embodiment of corresponding diagram 10, only via one at least two links Link sends the configuration file of second network equipment.
Another embodiment of the application also discloses a kind of network equipment, as shown in figure 13, comprising:
Processing in processor 1301 (wherein, first network equipment 1300 (such as interchanger, router, firewall etc.)) The quantity of device 1301 can be one or more, take a processor as an example in Figure 13), as optional memory 1302, conduct The operation that the optional hardware configurations such as forwarding chip 1303 and communication port 1304 further include power supply and are mounted on hardware The parts such as system, specifically do not enumerate out in Figure 13, but do not constitute limit to the network equipment in the embodiment of the present application It is fixed.In some embodiments of the present application, processor 1301, memory 1302 and forwarding chip 1303 can by bus or its Its mode is attached, specifically herein without limitation.Wherein, connected with processor 1301 and memory 1302 by bus in Figure 13 It connects, forwarding chip 1303 is illustrated for connecting processor 1301.
Processor 1301 is used to control the operation of first network equipment 1300, and processor 1301 can also be known as central processing Unit (English: central processing unit, CPU).In specific application, each group of first network equipment 1300 Part is coupled by bus system, and wherein bus system can also include power bus, control in addition to including data/address bus Bus and status signal bus in addition processed etc., but for the sake of clear explanation, various buses are referred to as bus system in Figure 13.
Memory 1302 may include that read-only memory (English: read-only memory, ROM) and arbitrary access are deposited Reservoir (English: random access memory, RAM), can be with other memories either storage medium, and to processor 1301 provide instruction and data.Memory 1302 it is a part of can also include nonvolatile RAM (English: Non-volatile random access memory, NVRAM).Memory 1302 be stored with operating system and operational order, Executable modules or data structures perhaps their subset or their superset, wherein operational order may include each Kind operational order, various operational orders are for realizing various operations.Operating system may include various system programs, for realizing each Kind basic business and the hardware based task of processing.Memory 1302 be also stored with data involved in the embodiment of the present application, Program etc..Processor 1301 is by the program in run memory 1302, for completing first in each above-mentioned embodiment The method that the network equipment 1300 executes.
Processor 1301 can be a kind of IC chip, the processing capacity with signal.In the embodiment of the present application reality During now, each step performed by first network equipment 1300 can be by hard in processor 1301 in the embodiment of the present application The integrated logic circuit of part or the instruction of software form are completed.Above-mentioned processor 1301 can be general processor, number Signal processor (English: digital signal processing, DSP), specific integrated circuit (English: application- Specific integrated circuit, ASIC), field programmable gate array (English: field-programmable Gate array, FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components. It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present application.General processor can be Microprocessor or the processor are also possible to any conventional processor etc..The method in conjunction with disclosed in the embodiment of the present application Step can be embodied directly in hardware decoding processor and execute completion, or with the hardware and software module group in decoding processor Conjunction executes completion.Software module can be located at random access memory, flash memory, read-only memory, programmable read only memory or electricity In the storage medium of this fields such as erasable programmable memory, register maturation.The storage medium be located at memory 1302 or Person's processor 1301, processor 1301 read memory 1302 or the information in itself, complete the application in conjunction with its hardware and implement The step of configuration method of the network equipment of example.
Forwarding chip 1303 can be used for forwarding Ethernet and its above transmission control protocol (English: Transmission Control Protocol/Internet Protocol, TCP/IP) etc. agreements chip.
Communication port 1304 can be used for receiving or sending information/data.
In the above embodiments of the present application, it can be realized in whole or in part by software, hardware or a combination thereof. When implemented in software, it can realize in the form of a computer program product in whole or in part.The computer program Product includes one or more computer instruction.When loading on computers and executing the computer program instructions, all Or partly generate according to process or function described in the embodiment of the present application, the computer can be by computer, specially With computer, computer network or other editable devices.The computer instruction can store in computer-readable storage In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, such as: the meter The instruction of calculation machine can pass through wired (such as coaxial cable, multiple twin from a web-site, computer, server or data center Line, optical fiber) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or number It is transmitted according to center.The computer readable storage medium can be any usable medium that computer can access either The data storage devices such as server, the data center integrated including one or more usable medium.The usable medium can be with It is magnetic medium, (such as: floppy disk, hard disk, tape), optical medium (such as: CD) or semiconductor medium (such as solid-state is hard Disk (SSD)) etc..

Claims (21)

1. a kind of configuration method of the network equipment characterized by comprising
First network equipment obtains the first configuration file packet, and the first configuration file packet includes being with the first network equipment The configuration file of all-network equipment in the branch of a network of root node;
The first network equipment extracts the second configuration file packet, second configuration file from the first configuration file packet Packet includes using second network equipment as the configuration file of all-network equipment in the branch of a network of root node, wherein described Second network equipment is connected with the first network equipment;
The first network equipment sends the second configuration file packet to second network equipment.
2. the method according to claim 1, wherein before sending the second configuration file packet, the side Method further include:
The first network equipment is received from second network equipment and the configuration for requesting second network equipment The message of file.
3. method according to claim 1 or 2, which is characterized in that the method also includes the first network equipment to obtain It takes using the first network equipment as the topology of the branch of a network of root node;
The second configuration file packet that extracts from the first configuration file packet includes:
The first network equipment foundation is using the first network equipment as the topology of the branch of a network of root node, from described first The second configuration file packet is extracted in configuration file packet.
4. according to claim 1 to method described in 3 any one, which is characterized in that second network equipment with it is described First network equipment is connected via at least two links, before sending the second configuration file packet, the method also includes:
At least two messages from second network equipment are received via at least two link;
The first network equipment sends the second configuration file packet to second network equipment
Only the second configuration file packet is sent via a link at least two link.
5. according to claim 1 to method described in 4 any one, which is characterized in that the first network equipment is to described Second network equipment sends the second configuration file packet
The first network equipment sends described second based on message length limitation and after fragment to second network equipment Configuration file packet.
6. according to claim 1 to method described in 5 any one, which is characterized in that sending second configuration file Before packet, the method also includes:
The first network equipment is sent to second network equipment indicates that the first network equipment is capable of providing configuration text The message of part.
7. a kind of network equipment, which is characterized in that the network equipment is first network equipment, the first network equipment packet It includes:
First acquisition unit, for obtaining the first configuration file packet, the first configuration file packet includes with the first network Equipment is the configuration file of all-network equipment in the branch of a network of root node;
Extraction unit, for extracting the second configuration file packet, the second configuration file packet from the first configuration file packet Including using second network equipment as the configuration file of all-network equipment in the branch of a network of root node, wherein described Two network equipments are connected with the first network equipment;
Transmission unit, for sending the second configuration file packet to second network equipment.
8. the network equipment according to claim 7, which is characterized in that further include:
First receiving unit, for before the transmission unit sends the second configuration file packet, receiving from described the Two network equipments and for request second network equipment configuration file message.
9. the network equipment according to claim 7 or 8, which is characterized in that further include:
Second acquisition unit, for obtaining using the first network equipment as the topology of the branch of a network of root node;
When the extraction unit execution extracts the second configuration file packet from the first configuration file packet, it is specifically used for: foundation Using the first network equipment as the topology of the branch of a network of root node, described second is extracted from the first configuration file packet Configuration file packet.
10. according to the network equipment described in claim 7 to 9 any one, which is characterized in that second network equipment with The first network equipment is connected via at least two links, the first network equipment further include:
Second receiving unit is used for before the transmission unit sends the second configuration file packet, via described at least two A link receives at least two messages from second network equipment;
The transmission unit execute to second network equipment send the second configuration file packet when, be specifically used for: only passing through The second configuration file packet is sent by a link at least two link.
11. according to the network equipment described in claim 7 to 10 any one, which is characterized in that the transmission unit executes When sending the second configuration file packet to second network equipment, be specifically used for: second network equipment of Xiang Suoshu sends base It is limited and the second configuration file packet after fragment in message length.
12. according to the network equipment described in claim 7 to 11 any one, which is characterized in that the transmission unit is being sent out Before sending the second configuration file packet, be also used to: second network equipment of Xiang Suoshu, which is sent, indicates the first network equipment energy The message of configuration file is enough provided.
13. a kind of network equipment, which is characterized in that the network equipment is first network equipment, the first network equipment packet It includes: processor and communication port;Wherein,
The processor is used for: being obtained the first configuration file packet, is extracted the second configuration file from the first configuration file packet Packet, and the second configuration file packet is sent to second network equipment with the communication port;
Wherein, the first configuration file packet includes using the first network equipment as all-network in the branch of a network of root node The configuration file of equipment;The second configuration file packet includes using second network equipment as institute in the branch of a network of root node There is the configuration file of the network equipment;Second network equipment is connected with the first network equipment.
14. the network equipment according to claim 13, which is characterized in that the processor sends institute with the communication port Before stating the second configuration file packet, it is also used to be received with the communication port from second network equipment and for requesting The message of the configuration file of second network equipment.
15. the network equipment described in 3 or 14 according to claim 1, which is characterized in that the processor is also used to obtain with described First network equipment is the topology of the branch of a network of root node;
When processor execution extracts the second configuration file packet from the first configuration file packet, be specifically used for: according to The first network equipment is the topology of the branch of a network of root node, and described second is extracted from the first configuration file packet and is matched Set file packet.
16. the network equipment described in 3 to 15 any one according to claim 1, which is characterized in that second network equipment At least two communication port foundation with the first network equipment has at least two links, the processor communication ends Before mouth sends the second configuration file packet, it is also used to be received at least two link from second network equipment At least two messages;
Wherein, the processor, which is executed, sends the second configuration file packet to second network equipment with the communication port When, be specifically used for: second network equipment as described in a chain road direction at least two link sends second configuration File packet.
17. the network equipment described in 3 to 16 any one according to claim 1, which is characterized in that the processor executes use When the communication port sends the second configuration file packet to second network equipment, it is specifically used for:
With the communication port to second network equipment send based on message length limitation and described second after fragment matches Set file packet.
18. the network equipment described in 3 to 17 any one according to claim 1, which is characterized in that described in the processor is used Before communication port sends the second configuration file packet, it is also used to be sent with the communication port to second network equipment Indicate that the first network equipment is capable of providing the message of configuration file.
19. a kind of configuration method of the network equipment characterized by comprising
First network equipment obtains whole net configuration file packet, and the whole net configuration file packet includes all-network equipment in network Configuration file;
The first network equipment extracts the configuration file of second network equipment from the whole net configuration file packet, and described second The network equipment includes any one network equipment in network in addition to first network equipment;
The first network equipment sends the configuration file of second network equipment, the third network to the third network equipment Equipment is connect between second network equipment and first network equipment, and with the first network equipment.
20. a kind of network equipment, which is characterized in that the network equipment is first network equipment, the first network equipment packet It includes:
Acquiring unit, for obtaining whole net configuration file packet, the whole net configuration file packet includes all-network equipment in network Configuration file;
Extraction unit, for extracting the configuration file of second network equipment from the whole net configuration file packet, wherein described Two network equipments include any one network equipment in network in addition to first network equipment;
Transmission unit, for sending the configuration file of second network equipment to the third network equipment, the third network is set It is standby to be connect between second network equipment and first network equipment, and with the first network equipment.
21. a kind of network equipment characterized by comprising the network equipment is first network equipment, and the first network is set Standby includes: processor and communication port;Wherein,
The processor is used for: being obtained whole net configuration file packet, is extracted second network equipment from the whole net configuration file packet Configuration file, and the configuration file of second network equipment is sent by the communication port to the third network equipment;
Wherein, the whole net configuration file packet includes the configuration file of all-network equipment in network;Second network equipment Including any one network equipment in network in addition to first network equipment;The third network equipment is located at second net Between network equipment and first network equipment, and it is connect with the first network equipment.
CN201710822403.8A 2017-09-13 2017-09-13 Network equipment configuration method and network equipment Active CN109495285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710822403.8A CN109495285B (en) 2017-09-13 2017-09-13 Network equipment configuration method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710822403.8A CN109495285B (en) 2017-09-13 2017-09-13 Network equipment configuration method and network equipment

Publications (2)

Publication Number Publication Date
CN109495285A true CN109495285A (en) 2019-03-19
CN109495285B CN109495285B (en) 2020-12-15

Family

ID=65687378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710822403.8A Active CN109495285B (en) 2017-09-13 2017-09-13 Network equipment configuration method and network equipment

Country Status (1)

Country Link
CN (1) CN109495285B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102334310A (en) * 2011-07-12 2012-01-25 华为技术有限公司 Opening and arraning method, device and system of two-layer network equipment
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN104301141A (en) * 2014-10-10 2015-01-21 华为技术有限公司 Method, device and system for storing configuration information
CN104639348A (en) * 2013-11-07 2015-05-20 华为技术有限公司 Network device and configuration method thereof
US20160205553A1 (en) * 2015-01-09 2016-07-14 Comcast Cable Communications, Llc Secure wi-fi

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102334310A (en) * 2011-07-12 2012-01-25 华为技术有限公司 Opening and arraning method, device and system of two-layer network equipment
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN104639348A (en) * 2013-11-07 2015-05-20 华为技术有限公司 Network device and configuration method thereof
CN104301141A (en) * 2014-10-10 2015-01-21 华为技术有限公司 Method, device and system for storing configuration information
US20160205553A1 (en) * 2015-01-09 2016-07-14 Comcast Cable Communications, Llc Secure wi-fi

Also Published As

Publication number Publication date
CN109495285B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN109660443B (en) SDN-based physical device and virtual network communication method and system
CN104010049B (en) Ethernet ip message encapsulating method and Network Isolation and DHCP implementation methods based on SDN
WO2018040529A1 (en) Message processing method, device and system
CN106209553B (en) Message processing method, equipment and system
CN108092893B (en) Special line opening method and device
CN105591982B (en) A kind of method and apparatus of message transmissions
EP3073698A1 (en) Method for processing address resolution protocol message, forwarder and controller
WO2016086670A1 (en) Vxlan packet transmission method and apparatus, and storage medium
US20210044456A1 (en) Method for implementing gre tunnel, access point and gateway
US20200186389A1 (en) Virtual Extensible Local Area Network (VXLAN) Packet Encapsulation
CN107493185A (en) The configuration information notifying method and its device of a kind of Interface Expanding equipment
CN104283858A (en) Method, device and system for controlling user terminal access
WO2018188663A1 (en) Method and device for information notification
KR20070027523A (en) Access network system, subscriber station device, and network terminal device
WO2016180020A1 (en) Message processing method, device and system
EP2439888B1 (en) Apparatus and method for establishing pseudo wire
CN104135446A (en) System and method of implementing transition from IPv4 (Internet Protocol Version4) to IPv6 (Internet Protocol Version6) based on SDN (Software Defined Network)
CN107769939A (en) Network element management method, webmaster, Gateway Network Element and system in data communication network
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
CN103763676B (en) Communication means and equipment between AP and AC
CN107135190A (en) The data traffic ownership recognition methods connected based on Transport Layer Security and device
CN104254062B (en) A kind of direct connected link communication means and relevant device, system
CN107547467B (en) Circuit authentication processing method, system and controller
CN105610672B (en) A kind of method and device of information transmission
CN109495285A (en) The configuration method and the network equipment of the network equipment

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