CN109451093A - A kind of loopback port address distribution method and device - Google Patents
A kind of loopback port address distribution method and device Download PDFInfo
- Publication number
- CN109451093A CN109451093A CN201811523413.2A CN201811523413A CN109451093A CN 109451093 A CN109451093 A CN 109451093A CN 201811523413 A CN201811523413 A CN 201811523413A CN 109451093 A CN109451093 A CN 109451093A
- Authority
- CN
- China
- Prior art keywords
- equipment
- port address
- loopback port
- spine equipment
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of loopback port address distribution method and device.The present invention keeps records of the record file of allocated loopback port address using tftp server.When the starting of main Spine equipment, record file is obtained from tftp server, to avoid allocated loopback port address distributing to the equipment newly accessed.Therefore, whole network equipment will not be triggered again to main Spine device request loopback port address, the related service based on loopback port address is avoided and interrupt.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of loopback port address distribution method and devices.
Background technique
In Spine (core)-Leaf (branch) networking, there are main Spine equipment.Main Spine equipment is responsible for network
Middle equipment (including Spine equipment and Leaf equipment) distribution ring is answered back address.
When needing to replace main Spine equipment, for example, main Spine equipment fault, then need user to specify new master
Spine equipment, the equipment distribution ring newly to access in network are answered back address.
Since main Spine equipment usually records allocated loopback port address in the buffer, when replacement is led
When Spine equipment, the loopback port address information recorded in former main Spine equipment can lose.This cause new main Spine equipment without
Method knows the former main allocated loopback port address of Spine equipment.
If allocated loopback port address is distributed to the equipment newly accessed by new main Spine equipment, will lead in network
Address conflict.The address conflict can trigger all devices again to main Spine device request loopback port address, cause based on loopback
The related service of port address interrupts.
Summary of the invention
The present invention proposes a kind of loopback to solve problem of service interruption present in existing loopback port address assigning process
Port address distribution method and device, to avoid service disconnection in loopback port address assigning process.
For achieving the above object, the present invention provides the following technical scheme that
In a first aspect, the present invention provides a kind of loopback port address distribution method, it is applied to Spine equipment, the method packet
It includes:
If the Spine equipment starts and the Spine equipment is main Spine equipment, to TFTP (Trivial File
Transfer Protocol, Simple File Transfer Protocol) server the first request message of transmission, the first request message use
In the record file for obtaining the tftp server preservation, the record file is for recording allocated first loopback mouth
Location;
Receive the first response message that the tftp server is responded according to first request message, first response
Message includes the record file;
According to the first loopback port address recorded in the record file, the equipment to access network distributes the second loopback mouth
Address, the second loopback port address are different from the first loopback port address.
Second aspect, the present invention provide a kind of loopback port address distribution method, are applied to tftp server, the method packet
It includes:
If receiving the first request message that main Spine equipment is sent, the record file locally saved, the record are obtained
File is for recording allocated first loopback port address;
The first response message is sent to the main Spine equipment, first response message includes the record file, with
Make the main Spine equipment according to the first loopback port address, the equipment to access network distributes the second loopback port address, institute
It is different from the first loopback port address to state the second loopback port address.
The third aspect, the present invention provide a kind of loopback port address distributor, are applied to Spine equipment, described device packet
It includes:
Transmission unit, if being used for, the Spine equipment starts and the Spine equipment is main Spine equipment, takes to TFTP
Business device sends the first request message, and first request message is used to obtain the record file that the tftp server saves, institute
Record file is stated for recording allocated first loopback port address;
Receiving unit is reported for receiving the tftp server according to the first response that first request message is responded
Text, first response message include the record file;
Allocation unit, for the equipment according to the first loopback port address recorded in the record file, to access network
The second loopback port address is distributed, the second loopback port address is different from the first loopback port address.
Fourth aspect, a kind of loopback port address distributor are applied to tftp server, and described device includes:
Acquiring unit, if the first request message sent for receiving main Spine equipment, obtains the record locally saved
File, the record file is for recording allocated first loopback port address;
Transmission unit, for sending the first response message to the main Spine equipment, first response message includes institute
Record file is stated, so that the main Spine equipment, according to the first loopback port address, the equipment to access network distributes second
Loopback port address, the second loopback port address are different from the first loopback port address.
The present invention keeps records of allocated loopback port address using tftp server it can be seen from above description
Record file.When the starting of main Spine equipment, record file is obtained from tftp server, to avoid allocated loopback
Port address distributes to the equipment newly accessed.Therefore, whole network equipment will not be triggered again to main Spine device request loopback mouth
Location avoids the related service based on loopback port address and interrupts.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of loopback port address distribution method flow chart shown in the embodiment of the present invention;
Fig. 2 is a kind of implementation process for determining main Spine equipment shown in the embodiment of the present invention;
Fig. 3 is a kind of implementation process of more new record file shown in the embodiment of the present invention;
Fig. 4 is another loopback port address distribution method flow chart shown in the embodiment of the present invention;
Fig. 5 is the implementation process that the another kind shown in the embodiment of the present invention determines main Spine equipment;
Fig. 6 is a kind of Spine-Leaf networking schematic diagram shown in the embodiment of the present invention;
Fig. 7 is the interaction flow between each equipment shown in the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of loopback port address distributor shown in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another loopback port address distributor shown in the embodiment of the present invention.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments in terminology used in the present invention.
It is also intended in the present invention and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the scope of the invention, negotiation information can also be referred to as the second information, and similarly, the second information, which can also be referred to as, assists
Quotient's information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
In Spine-Leaf networking, main Spine equipment is responsible for Spine equipment and Leaf equipment distribution ring in network
It answers back address, and after dispensing, allocated loopback port address is recorded in the caching of main Spine equipment.If main Spine is set
Standby failure, the address of answering back of the distribution ring in caching can lose.New main Spine equipment can not get allocated loopback mouth
Address information.
If allocated loopback port address is distributed to the Spine equipment newly accessed to new main Spine equipment or Leaf is set
It is standby, then it will lead to address conflict.The address conflict can trigger in network all devices again to main Spine device request loopback mouth
Address interrupts the business based on loopback port address.
In view of the above-mentioned problems, the embodiment of the present invention provides a kind of loopback port address distribution method, this method is taken using TFTP
Business device keeps records of the record file of allocated loopback port address.When the starting of main Spine equipment, obtained from tftp server
Allocated loopback port address is taken, to avoid allocated loopback port address distributing to new equipment.Therefore, it will not trigger
Whole network equipment avoids the related service based on loopback port address from interrupting again to main Spine device request loopback port address.
It is with reference to the accompanying drawing and specific real in order to keep the purposes, technical schemes and advantages of the embodiment of the present invention clearer
It applies example and detailed description is executed to the embodiment of the present invention:
It is a kind of flow chart of loopback port address distribution method provided in an embodiment of the present invention referring to Fig. 1.The process application
In Spine equipment.
As shown in Figure 1, the process can comprise the following steps that
Step 101, if Spine equipment starting and Spine equipment is main Spine equipment, Spine equipment is to tftp server
Send the first request message.
In Spine-Leaf networking, main Spine equipment is usually specified by user.After specifying main Spine equipment, need
Main Spine equipment is restarted, so that main Spine equipment comes into force.
For each Spine equipment, on startup, it is thus necessary to determine that whether itself is main Spine equipment.Spine equipment
The process for determining main Spine equipment, is described below, and wouldn't repeat here.
If Spine equipment, which determines, itself, for main Spine equipment, generates the first request message.First request message is used
In the record file for obtaining tftp server preservation.The record file is for recording main Spine equipment in Spine-Leaf networking
Allocated first loopback port address.
Spine equipment obtains the IP address of tftp server in advance.As one embodiment, Spine equipment can be from DHCP
(Dynamic Host Configuration Protocol, dynamic host configuration protocol) server obtains preconfigured
The IP address of tftp server.
The IP address of tftp server of the Spine equipment based on acquisition sends the first request message to tftp server.
Here, the name that the first request message, the first loopback port address only carry out for ease of description, is not intended to limit
It is fixed.
Step 102, the first response message that tftp server is responded according to the first request message is received.
In embodiments of the present invention, it after tftp server receives the first request message in step 101, requests first
Message is parsed, and determines that main Spine equipment needs to obtain record file (obtaining allocated loopback port address).
Tftp server obtains record file, and generates the first response message.It is understood that the first response message packet
Include record file.
Tftp server sends the first response message to main Spine equipment.
Here, the name that the first response message only carries out for ease of description, is not intended to limit.
Step 103, according to the first loopback port address recorded in record file, Spine equipment is the equipment for accessing network
Distribute the second loopback port address.
After Spine equipment receives the first response message, parses and therefrom obtain record file.
When accessing new equipment in Spine-Leaf networking, Spine equipment (as main Spine equipment) needs for access
Equipment distribution ring answer back address.At this point, Spine equipment obtains the allocated loopback port address (the recorded in record file
One loopback port address).The loopback port address range obtained according to allocated first loopback port address and in advance (obtains loopback
The process of port address range is described below, and wouldn't repeat here), determine unappropriated loopback port address, and then from unallocated
Loopback port address in, for access device distribute the second loopback port address.It is understood that the second loopback port address and first
Loopback port address is different, to avoid address conflict, original business based on loopback port address will not be interrupted.
Here, the name that the second loopback port address only carries out for ease of description, is not intended to limit.
So far, process shown in Fig. 1 is completed.
As can be seen from the flow chart shown in fig. 1, the present invention has kept records of allocated loopback mouth using tftp server
The record file of address.When the starting of main Spine equipment, file is recorded from tftp server, to avoid allocated ring
The equipment newly accessed is distributed in address of answering back.Therefore, whole network equipment will not be triggered again to main Spine device request loopback mouth
Location avoids the related service based on loopback port address from interrupting.
Whether itself, which is that the process of main Spine equipment is described, is determined to Spine equipment below.It referring to fig. 2, is this hair
A kind of bright implementation process for determining main Spine equipment for implementing to exemplify.
As shown in Fig. 2, the process can comprise the following steps that
Step 201, Spine equipment sends the second request message to tftp server.
As previously mentioned, user can specify the main Spine equipment in Spine-Leaf networking.
As one embodiment, user can above and below network management server hair in the instruction for specifying main Spine equipment,
It include the information of specified main Spine equipment in the instruction, for example, the bridge MAC Address of main Spine equipment.
After network management server receives instruction, the information of main Spine equipment is parsed and therefrom obtains, generating includes the master
The template file of the bridge MAC Address of Spine equipment, and the template file is sent to tftp server.
Tftp server saves the template file.
When the starting of Spine equipment, the second request message is generated.Second request message is for obtaining tftp server guarantor
The template file deposited.
Spine equipment sends the second request message to tftp server.
Here, the name that the second request message only carries out for ease of description, is not intended to limit.
Step 202, Spine equipment receives the second response message that tftp server is responded according to the second request message.
In embodiments of the present invention, it after tftp server receives the second request message in step 201, requests second
Message is parsed, and determines that Spine equipment needs to obtain the template file locally saved.
Tftp server obtains template file, and generates the second response message.It is understood that the second response message packet
Include template file.
Tftp server sends the second response message to Spine equipment.
Here, the name that the second response message only carries out for ease of description, is not intended to limit.
Step 203, if the bridge MAC Address phase of the bridge MAC Address of the main Spine equipment in template file and Spine equipment
Together, Spine equipment determines itself for main Spine equipment.
After Spine equipment receives the second response message in step 202, parses and therefrom obtain template file.
Spine equipment compares the bridge MAC Address of the main Spine equipment in template file and the bridge MAC Address of itself
Compared with.
If the bridge MAC Address of the main Spine equipment in template file is different from the bridge MAC Address of itself, it is determined that itself
It is not main Spine equipment.
If the bridge MAC Address of the main Spine equipment in template file is identical as the bridge MAC Address of itself, it is determined that itself
For main Spine equipment.
So far, process shown in Fig. 2 is completed.
By process shown in Fig. 2, Spine equipment can determine whether itself is main Spine equipment.And then itself it is determining
When main Spine equipment, 101~step 103 of abovementioned steps is executed.
As one embodiment, in step 201, user above and below network management server hair in specifying main Spine to set
When standby instruction, the information of the main Spine equipment in the instruction can also include loopback port address range.Network management server
It can include the loopback port address range in template file when generating template file.So that Spine equipment is obtained by step 202
Loopback port address range is got, and then when determining itself is main Spine equipment, based on the loopback port address range and has been divided
The the first loopback port address matched, the equipment newly to access distribute the second loopback port address.
As one embodiment, Spine equipment (as main Spine equipment) is executing step 103 (for setting for access network
Back-up matches the second loopback port address) after, it is also necessary to update the record file of tftp server preservation.Referring to Fig. 3, for the present invention
Implement the implementation process of a kind of more new record file exemplified.
As shown in figure 3, the process can comprise the following steps that
Step 301, the second loopback port address is recorded in record file by Spine equipment.
Step 302, Spine equipment sends third request message to tftp server.
Spine equipment generates third request message, which includes record file, for making tftp server
Save updated record file.
Spine equipment sends third request message to tftp server.
After tftp server receives third request message, parses and therefrom acquisition record file is saved.
So far, process shown in Fig. 3 is completed.
It can be seen that Spine equipment after completing the distribution of loopback port address by process shown in Fig. 3, timely update TFTP
Record file in server.If reassigning main Spine equipment, new main Spine equipment can be obtained from tftp server
To accurate loopback port address information.
It referring to fig. 4, is the flow chart of another loopback port address distribution method provided in an embodiment of the present invention.The process is answered
For tftp server.As one embodiment, which can be same equipment with network management server.
As shown in figure 4, the process can comprise the following steps that
Step 401, if receiving the first request message that main Spine equipment is sent, tftp server obtains local save
Record file.
In the embodiment of the present invention, main Spine equipment sends the process and previous embodiment step 101 phase of the first request message
Together, it no longer repeats herein.
After tftp server receives the first request message, the first request message is parsed, determines that main Spine equipment needs obtain
Record file is taken, therefore, tftp server obtains the record file locally saved.The record file is for recording allocated the
One loopback port address.
Step 402, tftp server sends the first response message to main Spine equipment.
Tftp server generates the first response message, which includes record file.
Tftp server sends the first response message to main Spine equipment.
Main Spine equipment is according to the first loopback port address obtained from record file, for the equipment distribution for accessing network
Second loopback port address, the second loopback port address are different from allocated first loopback port address.
The process that main Spine equipment distributes the second loopback port address is identical as previous embodiment step 103, no longer multiple herein
It states.
So far, process shown in Fig. 4 is completed.
It can be seen that the present invention by process shown in Fig. 4 and kept records of allocated loopback mouth using tftp server
The record file of address.When the starting of main Spine equipment, file is recorded from tftp server, to avoid allocated ring
The equipment newly accessed is distributed in address of answering back.Therefore, whole network equipment will not be triggered again to main Spine device request loopback mouth
Location avoids the related service based on loopback port address from interrupting.
As one embodiment, before step 401, tftp server can also carry out process shown in Fig. 5.Referring to Fig. 5, it is
Another kind shown in the embodiment of the present invention determines the implementation process of main Spine equipment.
As shown in figure 5, the process can comprise the following steps that
Step 501, if receiving the second request message of Spine equipment transmission, tftp server acquisition is locally saved
Template file.
In the embodiment of the present invention, Spine equipment sends the process and previous embodiment step 201 phase of the second request message
Together, it no longer repeats herein.
After tftp server receives the second request message, the second request message is parsed, determines that Spine equipment needs
The template file locally saved is obtained, therefore, tftp server obtains the template file locally saved.The template file is used for
The bridge MAC Address of the specified main Spine equipment of record.
Step 502, tftp server sends the second response message to Spine equipment.
Tftp server generates the second response message.Second response message includes template file.
Spine equipment determines whether itself is main Spine according to the bridge MAC Address of the main Spine equipment in template file
Equipment.
Spine equipment determines that the process of main Spine equipment is identical as previous embodiment step 203, no longer repeats herein.
So far, process shown in Fig. 5 is completed.
By process shown in Fig. 5, Spine equipment can determine whether itself is main Spine equipment.
As one embodiment, after step 402, if tftp server receive that main Spine equipment sends include
The third request message of file is recorded, then tftp server saves the record file.The record file includes that main Spine equipment is logical
Cross the second loopback port address of step 103 distribution.So that tftp server saves newest most accurate record file always.
Method provided in an embodiment of the present invention is described below by specific embodiment:
It is a kind of Spine-Leaf networking schematic diagram shown in the embodiment of the present invention referring to Fig. 6.The networking includes: Spine
Equipment 611, Spine equipment 612, Leaf 621~Leaf of equipment equipment 623, network management server 630, tftp server
640, Dynamic Host Configuration Protocol server 650.Wherein, Dynamic Host Configuration Protocol server 650 is provided with the IP address of tftp server 640 in advance.3 Leaf are set
In standby, only Leaf621 accessed network.Wherein, it should be noted that network management server 630 and tftp server 640
It can be same physical server, service provided by tftp server 640 can be by installing in network management server 630
The software module of webmastering software provides.
It is the interaction flow between each equipment shown in the embodiment of the present invention referring to Fig. 7.
Step 701, it after Spine equipment (Spine equipment 611, Spine equipment 612) starting, is sent out to Dynamic Host Configuration Protocol server 650
Send DHCP request message.
Step 702, Dynamic Host Configuration Protocol server 650 responds dhcp response message to Spine equipment.
After Dynamic Host Configuration Protocol server 650 receives the DHCP request message in step 701, preconfigured tftp server is obtained
The IP address of tftp server 640 is added to the Option field of dhcp response message by 640 IP address.
Dynamic Host Configuration Protocol server 650 responds dhcp response message to Spine equipment (Spine equipment 611, Spine equipment 612).
Step 703, network management server 630 receives the instruction for specifying main Spine equipment.
In specific implementation, main Spine equipment can be specified on network management server 630 by user.The present invention is implemented
In example, it is main Spine equipment that user, which specifies Spine equipment 611,.
Step 704, network management server 630 generates template file.
It include the bridge MAC Address (being denoted as MAC611) and loopback port address range of Spine equipment 611 in template file
(for example, IP1~IP50).
Step 705, network management server 630 sends request tftp server 640 to tftp server 640 and saves template
The request message of file.
It include template file in request message.
Step 706, tftp server 640 saves template file.
Step 707, Spine equipment 611 is restarted, the IP address based on the tftp server 640 that step 702 is got, to
Tftp server 640 sends the request message for obtaining template file.
Step 708, tftp server 640 is to 611 returning response message of Spine equipment.
It include template file in response message.
Step 709,611 resolution response message of Spine equipment obtains the template file in response message.
By the bridge MAC Address (MAC611) of the bridge MAC Address (MAC611) of the main Spine equipment in template file and itself
It is compared.Two bridge MAC Address are identical, accordingly, it is determined that itself is main Spine equipment.
Step 710, IP address of the Spine equipment 611 based on tftp server 640 is used for the transmission of tftp server 640
Obtain the request message of record file.
Step 711, tftp server 640 is to 611 returning response message of Spine equipment.
It include record file in response message.
Step 712,611 resolution response message of Spine equipment, keeps records of file.
Step 713, when Leaf equipment 622 accesses network, Spine equipment 611 is obtained from the record file locally saved
Take allocated loopback port address.
For example, the allocated loopback port address that Spine equipment 611 is got is IP1~IP3.Spine equipment 611
According to allocated loopback port address (IP1~IP3) and the loopback port address range obtained from template file (IP1~
IP50), it may be determined that unappropriated loopback port address is IP4~IP50.Spine equipment 611 from unappropriated loopback port address,
It answers back address for 622 distribution ring of Leaf equipment, for example, loopback port address of the distribution IP4 as Leaf622.
Step 714, the loopback port address of distribution is recorded in record file by Spine equipment 611.
That is, IP4 is recorded in record file.
Step 715, IP address of the Spine equipment 611 based on tftp server 640 sends to tftp server 640 and requests
Tftp server 640 keeps records of the request message of file.
It include record file in request message.
Step 716, tftp server 640 keeps records of file.
At this point, the allocated loopback port address recorded in record file includes IP1~IP4.
If 611 failure of Spine equipment, user reassigns main Spine equipment by step 703, for example, specified Spine
Equipment 612 is new main Spine equipment, then Spine equipment 612 is used as main Spine equipment, with network management server 630 and
The interactive process of the execution 704~step 716 of abovementioned steps of tftp server 640.
By above-mentioned interactive process, Spine equipment 612 can answer back for the distribution of Leaf equipment 623 of access with distribution ring
There is no the loopback port address of conflict for address, for example, using IP5 as the loopback port address of Leaf equipment 623.Specifically distributed
Journey repeats no more.
So far, the description to this specific embodiment is completed.
Method provided in an embodiment of the present invention is described above, below to device provided in an embodiment of the present invention into
Row description:
It is a kind of structural schematic diagram of device provided in an embodiment of the present invention referring to Fig. 8.The loopback port address distributor
Including transmission unit 801, receiving unit 802 and allocation unit 803, in which:
Transmission unit 801, if being used for, the Spine equipment starts and the Spine equipment is main Spine equipment, to
Tftp server sends the first request message, and first request message is used to obtain the record text that the tftp server saves
Part, the record file is for recording allocated first loopback port address;
Receiving unit 802, the first response responded for receiving the tftp server according to first request message
Message, first response message include the record file;
Allocation unit 803, for recording the first loopback port address recorded in file according to described, for setting for access network
Back-up matches the second loopback port address, and the second loopback port address is different from the first loopback port address.
As one embodiment, described device further include:
The transmission unit 801 is also used to send the second request message, the second request report to the tftp server
The template file that text is saved for obtaining the tftp server, the template file is for recording specified main Spine equipment
Bridge MAC Address;
The receiving unit 802 is also used to receive the tftp server is responded according to second request message
Two response messages, second response message include the template file;
Determination unit, if bridge MAC Address and the Spine equipment for the main Spine equipment in the template file
Bridge MAC Address it is identical, determine the Spine equipment be main Spine equipment.
As one embodiment, described device further include:
Recording unit, for the second loopback port address to be recorded in the record file;
The transmission unit 801, being also used to send to the tftp server includes the third request for recording file
Message, the third request message is for making the tftp server save the record file.
So far, the description of Fig. 8 shown device is completed.
The embodiment of the present invention keeps records of the record file of allocated loopback port address using tftp server.Work as master
When Spine equipment starts, record file is obtained from tftp server, to avoid distributing to allocated loopback port address newly
The equipment of access.Therefore, whole network equipment will not be triggered again to main Spine device request loopback port address, avoided based on ring
Answer back address related service interrupt.
Referring to Fig. 9, for the structural schematic diagram of another device provided in an embodiment of the present invention.Loopback port address distribution dress
It sets including acquiring unit 901 and transmission unit 902, in which:
Acquiring unit 901, if the first request message sent for receiving main Spine equipment, what acquisition locally saved
File is recorded, the record file is for recording allocated first loopback port address;
Transmission unit 902, for sending the first response message, the first response message packet to the main Spine equipment
The record file is included, so that the main Spine equipment, according to the first loopback port address, the equipment to access network is distributed
Second loopback port address, the second loopback port address are different from the first loopback port address.
As one embodiment, the acquiring unit 901, if being also used to receive the second request of Spine equipment transmission
Message, obtains the template file locally saved, and the template file is used to record the bridge MAC Address of specified main Spine equipment;
The transmission unit 902 is also used to send the second response message, the second response report to the Spine equipment
Text includes the template file, so that the Spine equipment is according to the bridge MAC of the main Spine equipment in the template file
Location, determines whether itself is main Spine equipment.
As one embodiment, described device further include:
Storage unit, if the third request including the record file sent for receiving the main Spine equipment
Message saves the record file, wherein the record file record has the second loopback port address.
So far, the description of system shown in Figure 9 is completed.
The embodiment of the present invention keeps records of the record file of allocated loopback port address using tftp server.Work as master
When Spine equipment starts, record file is obtained from tftp server, to avoid distributing to allocated loopback port address newly
The equipment of access.Therefore, whole network equipment will not be triggered again to main Spine device request loopback port address, avoided based on ring
Answer back address related service interrupt.
Another embodiment of the present invention additionally provides a kind of machine readable storage medium, storage in the machine readable storage medium
The instruction for having machine executable, described instruction is loaded and is executed by processor, to realize tftp server in the embodiment of the present invention
Performed method.
The foregoing is merely the preferred embodiments of the embodiment of the present invention, are not intended to limit the invention, all in this hair
Within the spirit and principle of bright embodiment, any modification, equivalent substitution, improvement and etc. done should be included in protection of the present invention
Within the scope of.
Claims (12)
1. a kind of loopback port address distribution method is applied to core Spine equipment, which is characterized in that the described method includes:
If the Spine equipment starting and the Spine equipment are main Spine equipment, association's TFTP service is transmitted to simple files
Device sends the first request message, and first request message is used to obtain the record file that the tftp server saves, described
Record file is for recording allocated first loopback port address;
Receive the first response message that the tftp server is responded according to first request message, first response message
Including the record file;
According to the first loopback port address recorded in the record file, the equipment to access network is with distributing the second loopback mouth
Location, the second loopback port address are different from the first loopback port address.
2. method as described in claim 1, which is characterized in that before first request message of transmission to tftp server, also
Include:
The second request message is sent to the tftp server, second request message is protected for obtaining the tftp server
The template file deposited, the template file are used to record the bridge medium access control MAC Address of specified main Spine equipment;
Receive the second response message that the tftp server is responded according to second request message, second response message
Including the template file;
If the bridge MAC Address of the main Spine equipment in the template file is identical as the bridge MAC Address of the Spine equipment, really
The fixed Spine equipment is main Spine equipment.
3. method as claimed in claim 1 or 2, which is characterized in that the equipment for access network is with distributing the second loopback mouth
After location, further includes:
The second loopback port address is recorded in the record file;
Sending to the tftp server includes the third request message for recording file, and the third request message is for making
The tftp server saves the record file.
4. a kind of loopback port address distribution method is applied to simple files transmission association tftp server, which is characterized in that the side
Method includes:
If receiving the first request message that main Spine equipment is sent, the record file locally saved, the record file are obtained
For recording allocated first loopback port address;
The first response message is sent to the main Spine equipment, first response message includes the record file, so that institute
Main Spine equipment is stated according to the first loopback port address, the equipment to access network distributes the second loopback port address, and described the
Two loopback port address are different from the first loopback port address.
5. method as claimed in claim 4, which is characterized in that in the first request message for receiving the main Spine equipment transmission
Before, further includes:
If receiving the second request message of Spine equipment transmission, the template file locally saved is obtained, the template file is used
In the bridge medium access control MAC Address of the specified main Spine equipment of record;
The second response message is sent to the Spine equipment, second response message includes the template file, so that described
Spine equipment determines whether itself is that main Spine is set according to the bridge MAC Address of the main Spine equipment in the template file
It is standby.
6. such as claim 4 or 5 the methods, which is characterized in that described to send the first response message to the main Spine equipment
Later, further includes:
If receiving the third request message including the record file that the main Spine equipment is sent, the record is saved
File, wherein the record file record has the second loopback port address.
7. a kind of loopback port address distributor, it is applied to core Spine equipment, which is characterized in that described device includes:
Transmission unit, if being used for, the Spine equipment starts and the Spine equipment is main Spine equipment, passes to simple files
Defeated association's tftp server sends the first request message, and first request message is used to obtain the note that the tftp server saves
File is recorded, the record file is for recording allocated first loopback port address;
Receiving unit, the first response message responded for receiving the tftp server according to first request message, institute
Stating the first response message includes the record file;
Allocation unit, for according to the first loopback port address recorded in the record file, the equipment to access network to be distributed
Second loopback port address, the second loopback port address are different from the first loopback port address.
8. device as claimed in claim 7, which is characterized in that described device further include:
The transmission unit is also used to send the second request message to the tftp server, and second request message is used for
The template file that the tftp server saves is obtained, the bridge that the template file is used to record specified main Spine equipment is situated between
Matter access control MAC addresses;
The receiving unit is also used to receive the tftp server and is reported according to the second response that second request message is responded
Text, second response message include the template file;
Determination unit, if for the bridge MAC Address of the main Spine equipment in the template file and the bridge of the Spine equipment
MAC Address is identical, determines that the Spine equipment is main Spine equipment.
9. such as claim 7 or 8 described devices, which is characterized in that described device further include:
Recording unit, for the second loopback port address to be recorded in the record file;
The transmission unit, being also used to send to the tftp server includes the third request message for recording file, institute
Third request message is stated for making the tftp server save the record file.
10. a kind of loopback port address distributor is applied to simple files transmission association tftp server, which is characterized in that described
Device includes:
Acquiring unit obtains the record text locally saved if the first request message sent for receiving main Spine equipment
Part, the record file is for recording allocated first loopback port address;
Transmission unit, for sending the first response message to the main Spine equipment, first response message includes the note
File is recorded, so that the main Spine equipment, according to the first loopback port address, the equipment to access network distributes the second loopback
Port address, the second loopback port address are different from the first loopback port address.
11. device as claimed in claim 10, it is characterised in that:
The acquiring unit obtains the template locally saved if being also used to receive the second request message of Spine equipment transmission
File, the template file are used to record the bridge medium access control MAC Address of specified main Spine equipment;
The transmission unit is also used to send the second response message to the Spine equipment, and second response message includes institute
Template file is stated, so that bridge MAC Address of the Spine equipment according to the main Spine equipment in the template file, determines certainly
Whether body is main Spine equipment.
12. such as claim 10 or 11 described devices, which is characterized in that described device further include:
Storage unit, if the third request message including the record file sent for receiving the main Spine equipment,
Save the record file, wherein the record file record has the second loopback port address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811523413.2A CN109451093B (en) | 2018-12-13 | 2018-12-13 | Loopback interface address allocation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811523413.2A CN109451093B (en) | 2018-12-13 | 2018-12-13 | Loopback interface address allocation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109451093A true CN109451093A (en) | 2019-03-08 |
CN109451093B CN109451093B (en) | 2022-01-28 |
Family
ID=65558444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811523413.2A Active CN109451093B (en) | 2018-12-13 | 2018-12-13 | Loopback interface address allocation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109451093B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242864A (en) * | 2022-06-28 | 2022-10-25 | 度小满科技(北京)有限公司 | Micro-service access method and device, electronic equipment and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101494669A (en) * | 2009-03-10 | 2009-07-29 | 华为技术有限公司 | Method and apparatus for distributing IP address for user terminal |
CN101951417A (en) * | 2010-09-21 | 2011-01-19 | 北京星网锐捷网络技术有限公司 | Method, system and trunk equipment for assigning multiple server addresses |
CN102833363A (en) * | 2012-08-20 | 2012-12-19 | 大唐移动通信设备有限公司 | IP (Internet Protocol) address allocation method, device and system |
CN103039059A (en) * | 2011-08-08 | 2013-04-10 | 北京华为数字技术有限公司 | IP address allocation method, system and device |
US20150124817A1 (en) * | 2013-11-05 | 2015-05-07 | Cisco Technology, Inc. | Ip-based forwarding of bridged and routed ip packets and unicast arp |
US20150131654A1 (en) * | 2013-11-14 | 2015-05-14 | Arista Networks, Inc. | Method and system for routing packets |
CN106131235A (en) * | 2016-06-28 | 2016-11-16 | 上海斐讯数据通信技术有限公司 | A kind of IP address configuration method |
CN106209643A (en) * | 2016-07-14 | 2016-12-07 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN106254571A (en) * | 2016-08-05 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of client ip address distribution method and device |
JP2017038209A (en) * | 2015-08-10 | 2017-02-16 | 日本電信電話株式会社 | Network management device, and address setting method |
EP3214828A1 (en) * | 2016-03-04 | 2017-09-06 | Imagine Communications Corp. | Device, system and method for network-based address translation for multiple recipients |
CN108259218A (en) * | 2017-10-30 | 2018-07-06 | 新华三技术有限公司 | A kind of IP address distribution method and device |
CN108989482A (en) * | 2018-07-26 | 2018-12-11 | 郑州云海信息技术有限公司 | One kind being based on DHCP protocol network deployment method, system and client and storage medium |
-
2018
- 2018-12-13 CN CN201811523413.2A patent/CN109451093B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101494669A (en) * | 2009-03-10 | 2009-07-29 | 华为技术有限公司 | Method and apparatus for distributing IP address for user terminal |
CN101951417A (en) * | 2010-09-21 | 2011-01-19 | 北京星网锐捷网络技术有限公司 | Method, system and trunk equipment for assigning multiple server addresses |
CN103039059A (en) * | 2011-08-08 | 2013-04-10 | 北京华为数字技术有限公司 | IP address allocation method, system and device |
CN102833363A (en) * | 2012-08-20 | 2012-12-19 | 大唐移动通信设备有限公司 | IP (Internet Protocol) address allocation method, device and system |
US20150124817A1 (en) * | 2013-11-05 | 2015-05-07 | Cisco Technology, Inc. | Ip-based forwarding of bridged and routed ip packets and unicast arp |
US20150131654A1 (en) * | 2013-11-14 | 2015-05-14 | Arista Networks, Inc. | Method and system for routing packets |
JP2017038209A (en) * | 2015-08-10 | 2017-02-16 | 日本電信電話株式会社 | Network management device, and address setting method |
EP3214828A1 (en) * | 2016-03-04 | 2017-09-06 | Imagine Communications Corp. | Device, system and method for network-based address translation for multiple recipients |
CN106131235A (en) * | 2016-06-28 | 2016-11-16 | 上海斐讯数据通信技术有限公司 | A kind of IP address configuration method |
CN106209643A (en) * | 2016-07-14 | 2016-12-07 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN106254571A (en) * | 2016-08-05 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of client ip address distribution method and device |
CN108259218A (en) * | 2017-10-30 | 2018-07-06 | 新华三技术有限公司 | A kind of IP address distribution method and device |
CN108989482A (en) * | 2018-07-26 | 2018-12-11 | 郑州云海信息技术有限公司 | One kind being based on DHCP protocol network deployment method, system and client and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242864A (en) * | 2022-06-28 | 2022-10-25 | 度小满科技(北京)有限公司 | Micro-service access method and device, electronic equipment and storage medium |
CN115242864B (en) * | 2022-06-28 | 2023-12-05 | 度小满科技(北京)有限公司 | Micro-service access method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109451093B (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7451071B2 (en) | Data model for automated server configuration | |
CN100407625C (en) | Method for providing business according to its type | |
US20130007253A1 (en) | Method, system and corresponding device for load balancing | |
CN106341438B (en) | Request processing method and device | |
US7587506B2 (en) | Computer system and data backup method in computer system | |
CN110505275A (en) | Data transmission method, system, server and computer readable storage medium | |
CN111327668B (en) | Network management method, device, equipment and storage medium | |
CN109547512A (en) | A kind of method and device of the distributed Session management based on NoSQL | |
CN112910685B (en) | Method and device for realizing unified management of container network | |
CN111585887B (en) | Communication method and device based on multiple networks, electronic equipment and storage medium | |
CN111953700A (en) | Session keeping method and device | |
CN112637332B (en) | Service registration discovery method and system | |
CN102413156A (en) | Distributed data storage system and method | |
CN112333733B (en) | Network connection establishing method and electronic equipment | |
US9819545B2 (en) | Telecommunications node configuration management | |
US9871699B2 (en) | Telecommunications node configuration management | |
US9612822B2 (en) | Telecommunications node configuration management | |
WO2016202016A1 (en) | Device management method, apparatus and system | |
CN105208137A (en) | Internet Protocol (IP) address allocation methods, device, server and terminal | |
CN109451093A (en) | A kind of loopback port address distribution method and device | |
CN107547674A (en) | Address distribution method and device | |
CN109067564B (en) | Distributed approach, device, computer equipment and storage medium | |
CN115242882A (en) | Method and device for accessing k8s container environment based on transport layer route | |
CN107493181B (en) | Indication method and device of virtual expansion port | |
CN111866200B (en) | MAC address segmentation management method and system |
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 |