CN106209561A - The sending method of loop detection message and device - Google Patents

The sending method of loop detection message and device Download PDF

Info

Publication number
CN106209561A
CN106209561A CN201610601349.XA CN201610601349A CN106209561A CN 106209561 A CN106209561 A CN 106209561A CN 201610601349 A CN201610601349 A CN 201610601349A CN 106209561 A CN106209561 A CN 106209561A
Authority
CN
China
Prior art keywords
contract
project
port
time
batch
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
CN201610601349.XA
Other languages
Chinese (zh)
Other versions
CN106209561B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610601349.XA priority Critical patent/CN106209561B/en
Publication of CN106209561A publication Critical patent/CN106209561A/en
Application granted granted Critical
Publication of CN106209561B publication Critical patent/CN106209561B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of loop monitoring sending method of message and device, and method includes: for each port, obtains a random number, and utilizes what random number determined port to start the time of giving out a contract for a project;The time time-out if the starting of certain Single port is given out a contract for a project, then all VLAN utilizing certain Single port corresponding determine the batch of giving out a contract for a project of certain Single port, and send loop detection message according to batch of giving out a contract for a project;Create an intervalometer for certain Single port, and the time-out time of intervalometer is set to the first predetermined interval, so that certain Single port sends loop detection message every the time of the first predetermined interval according to batch of giving out a contract for a project.The application obtains different starting the time of giving out a contract for a project by different randoms number, and the most each port sends the time of loop detection message and is just dispersed, and decreases the same time and sends the quantity of loop detection message.And the loop detection message of each port is sent by the network equipment according to batch, further reduce the quantity of transmission of same time loop detection message.

Description

The sending method of loop detection message and device
Technical field
The application relates to network communication technology field, particularly relates to sending method and the device of a kind of loop detection message.
Background technology
In current network, generally utilize whether loop detection agreement, the port of the detection network equipment exist loop, work as inspection Measure certain Single port when there is loop, according to the configuration of user, this port is performed corresponding action, so that this network equipment Business is properly functioning.Therefore, the network equipment will travel through the detection of all operating loops at set intervals (such as, every 10 seconds) The port of agreement, utilizes all VLAN (Virtual Local Area Network, VLAN) that this port is corresponding to send out Send loop detection message.But, when the port number of operating loop detection protocol is more, and VLAN corresponding to each port is the most more In the case of, in the same time, the network equipment needs to send substantial amounts of loop detection message, this to the network equipment be one bigger Load, may result in the network equipment run make mistakes.
Summary of the invention
In view of this, the application provides sending method and the device of a kind of loop detection message, to solve existing transmission Mode is easily caused the network equipment and runs the problem made mistakes.
First aspect according to the embodiment of the present application, it is provided that the sending method of a kind of loop monitoring message, described method should For the network equipment, the described network equipment includes that multiple port, each port include at least one VLAN, described method bag Include:
For each port, obtain a random number, and utilize described random number to determine when starting to give out a contract for a project of described port Between;
The time time-out if the starting of certain Single port is given out a contract for a project, then all VLAN utilizing certain Single port described corresponding determine described The batch of giving out a contract for a project of certain Single port, and send loop detection message according to described batch of giving out a contract for a project;One is created for certain Single port described Intervalometer, and the time-out time of described intervalometer is set to the first predetermined interval, so that certain Single port described is preset every first Interlude sends loop detection message according to described batch of giving out a contract for a project.
Second aspect according to the embodiment of the present application, it is provided that the dispensing device of a kind of loop monitoring message, described device should For the network equipment, the described network equipment includes that multiple port, each port include at least one VLAN, described device bag Include:
Determine unit, for for each port, obtain a random number, and utilize described random number to determine described port Start the time of giving out a contract for a project;
Give out a contract for a project unit, if for the time time-out of giving out a contract for a project that starts of certain Single port, then utilizing the institute that certain Single port described is corresponding There is VLAN to determine the batch of giving out a contract for a project of certain Single port described, and send loop detection message according to described batch of giving out a contract for a project;
Create timer units, for creating an intervalometer for certain Single port described, and by the time-out of described intervalometer Time is set to the first predetermined interval, so that certain Single port described was sent out according to described batch of giving out a contract for a project every the time of the first predetermined interval Send loop detection message.
Application the embodiment of the present application, the network equipment, for each port, obtains a random number, and utilizes random number to determine This port start the time of giving out a contract for a project;When certain Single port start to give out a contract for a project time time-out time, utilize corresponding all of this certain Single port VLAN determines the batch of giving out a contract for a project of this certain Single port, and sends loop detection message according to batch of giving out a contract for a project, and is this certain one end the most again Mouth creates an intervalometer, and the time-out time of intervalometer is set to the first predetermined interval, so that this certain Single port is every first The time of predetermined interval sends loop detection message according to batch of giving out a contract for a project.Based on above-mentioned implementation, owing to random number does not has Sequence, therefore the network equipment is that random number that each port obtains can be different, thus starting of obtaining gives out a contract for a project the time the most not With, so, the time of each port transmission loop detection message of the network equipment is just dispersed, and decreases in the same time Send the quantity of loop detection message, therefore can avoid sending the loop detection message of all of the port in the same time and causing The network equipment runs the problem made mistakes.Loop detection message, the i.e. network equipment is sent according to batch of giving out a contract for a project again due to each port Batch of send a collection of for the loop detection message of this port, so further reduce and send loop inspection in the same time Observe and predict the quantity of literary composition, and also will not congested a lot of messages in port, it is possible to increase the efficiency of port transmitting-receiving message.
Accompanying drawing explanation
Figure 1A is the application enforcement according to the sending method of a kind of loop detection message shown in an exemplary embodiment Example flow chart;
Figure 1B is that a kind of exemplary loop detection message in Figure 1A illustrated embodiment sends time sequencing figure;
Fig. 2 is the application hardware structure diagram according to a kind of network equipment shown in an exemplary embodiment;
Fig. 3 is the application embodiment according to the dispensing device of a kind of loop detection message shown in an exemplary embodiment Structure chart.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application. " a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
Figure 1A is the application enforcement according to the sending method of a kind of loop detection message shown in an exemplary embodiment Example flow chart, this embodiment is applied on the network equipment, for example, it is possible to application is on switches, it is also possible to apply at router On, in the embodiment of the present application, the network equipment includes multiple port, and each port includes multiple VLAN, therefore may be used With by the time of giving out a contract for a project of each operating loop detection protocol port is staggered, to reduce this network equipment of same time transmission ring The quantity of road detection messages.As shown in Figure 1A, this embodiment comprises the following steps:
Step 101: for each port, obtains a random number, and utilize this random number determine this port start send out The bag time.
Performing before step 101, the network equipment can first obtain the port of all operating loop detection protocol, and for The port of off-duty loop detection agreement is left intact.
For the process of one random number of acquisition, the network equipment can obtain from the kernel entropy pool of this equipment, or also Generating Random Number can be utilized to obtain.Kernel entropy pool compared with Generating Random Number, random due in kernel entropy pool Number is produced by facility environment noise, and such as, the network equipment occurs the time interrupted, user to click on time etc. of mouse to be all Environment noise, it is thus achieved that the randomness of random number bigger, order is poor, the random number therefore obtained from kernel entropy pool is true Positive random number.In the embodiment of the present application, it is recommended to use obtain random number from kernel entropy pool.
For the process of time of starting to give out a contract for a project utilizing this random number to determine this port, the network equipment can be by this random number The time of giving out a contract for a project is started with the second predetermined interval sum is defined as this port;Or, this random number is defined as opening of this port Originate the bag time.
Wherein, the second predetermined interval can be 5 seconds, and the time that starts to give out a contract for a project refers to this port and starts to send after how long Loop detection message.
Starting to give out a contract for a project as a example by the time and illustrating, such as of port is determined below by random number and the second predetermined interval sum The network equipment includes port 1, port 2 and port 3, and the second predetermined interval is 5 seconds, and the random number got for port 1 is 0, The random number 3 got for port 2, the random number got for port 3 is 2, then can obtain port 1 starts the time of giving out a contract for a project Being 5 seconds, the starting of port 2 time of giving out a contract for a project is 8 seconds, and the starting of port 3 time of giving out a contract for a project is 7 seconds.
Description based on step 101 understands, and does not have sequence due to random number, and therefore, the network equipment is that each port obtains The random number taken can be different, thus the time of giving out a contract for a project being obtained by random number is also the most different, so, and the network equipment each The time of port transmission loop detection message is just dispersed, and decreases the number at transmission of same time loop detection message Amount, therefore can avoid the same time send all of the port loop detection message and cause the network equipment run make mistakes ask Topic.
Step 102: if certain Single port start give out a contract for a project the time time-out, then utilize all VLAN that this certain Single port is corresponding true The batch of giving out a contract for a project of this certain Single port fixed, and send loop detection message according to this batch of giving out a contract for a project.
For the process of batch of giving out a contract for a project utilizing all VLAN that this certain Single port is corresponding to determine this certain Single port, network sets The standby quantity that can first determine all VLAN that this certain Single port is corresponding, and by true to the quantity of all VLAN and the business of default value It is set to the batch of giving out a contract for a project of this certain Single port.
Wherein, being provided with every batch maximum number of giving out a contract for a project in the network equipment is default value, and this default value refers to net The maximum message segment number that network equipment once can send, if this default value is excessive, the loop detection message number that every batch sends The most more, affect the performance of the network equipment, and if this preset data is the least, in the case of there is loop in a network, net Network equipment needs to expend longer time transmission loop detection message, causes can't detect loop, makes service operation make mistakes, and this is pre- If data need to be configured according to practical experience.Each interval time given out a contract for a project between batch can be Preset Time, such as, 10 milliseconds.As described in step 101, for example, it is assumed that default value is 10, the VLAN that the port 1 of the network equipment includes is VLAN 0 To VLAN 15, then the quantity of the VLAN of port 1 correspondence is 16, and by 16/10 ≈ 2, the batch of giving out a contract for a project that can obtain port 1 is two Batch, i.e. port 1 need a point loop detection message of two batch transmission VLAN 0 to VLAN 15;The VLAN that port 2 includes is VLAN 16 to VLAN 20, then the batch of giving out a contract for a project that can obtain port 2 is a batch;The VLAN that port 3 includes be VLAN 17 to VLAN 46, then the batch of giving out a contract for a project that can obtain port 2 is also three batches.
For the process according to this batch transmission loop detection message of giving out a contract for a project, the network equipment can be by corresponding for this certain Single port Corresponding for all VLAN VLAN mark be ranked up from small to large;Give out a contract for a project in batch each, according to the sequence of VLAN mark Send loop detection message, and record this batch and send the VLAN mark that last loop detection message carries, with at next Batch of giving out a contract for a project starts to send loop detection message from the next VLAN mark that the VLAN mark of record is corresponding.
Wherein, owing to the loop detection message that the network equipment sends carrying VLAN mark, i.e. the numbering of VLAN, in order to Ensureing that the loop detection message of the VLAN that each port is corresponding can send, the network equipment can identify from little according to VLAN Send loop detection message to big sequence, and give out a contract for a project in batch at next, from the next one that the VLAN mark of record is corresponding VLAN mark starts to send loop detection message, when being sent to last VLAN mark, represents the VLAN that this port is corresponding Loop detection message all distribute.
Integrating step 101 is with described in step 102, and Figure 1B is a kind of exemplary loop detection in Figure 1A illustrated embodiment Message sends time sequencing figure, as shown in Figure 1B, time all quilts of giving out a contract for a project of port 1, port 2 and the port 3 on the network equipment It is distributed to different time transmissions.
Description based on step 102 understands, owing to each port sends loop detection message according to batch of giving out a contract for a project, i.e. at end Mouthful start to give out a contract for a project after time time-out, loop detection message batch of is sent out by this port so that prefixed time interval is a collection of Go, so further reduce the network equipment and send the quantity of loop detection message in the same time, and will not in port Congested a lot of message, it is possible to increase the efficiency of port transmitting-receiving message.
Step 103: create an intervalometer for this certain Single port, and the time-out time of this intervalometer is set to first presets Interval, so that this certain Single port sends loop detection message every the time of the first predetermined interval according to this batch of giving out a contract for a project.
After this certain Single port has been given out a contract for a project for the first time, the network equipment can be that this certain Single port creates a timing Device, and the time-out time of this intervalometer is the first predetermined interval, and this certain Single port just can be every the first predetermined interval later Time according to this give out a contract for a project batch send loop detection message.
It follows that after the time given out a contract for a project due to the first time of all of the port staggers, later each port give out a contract for a project Time all will not coincide together.
It should be noted that the loop detection message of network equipment transmission all carries the device token of the network equipment, The renewal time of the device token of this network equipment is the 3rd predetermined interval.In order to ensure when network exists loop, network sets One loop detection message of standby just transmission is gone out, and this loop detection message is also without being forwarded back to this equipment, this equipment in network Device token be just updated, in this case, the device token that loop detection message carries is old, though the network equipment Receive the loop detection message self sent out, as device token is inconsistent and can't detect the existence of loop.Therefore, It is default with first that the renewal time of device token needs the time-out time of the intervalometer equal to port, the i.e. the 3rd predetermined interval to need It is spaced equal.
From above-described embodiment, the network equipment, for each port, obtains a random number, and utilizes random number to determine This port start the time of giving out a contract for a project;When certain Single port start to give out a contract for a project time time-out time, utilize corresponding all of this certain Single port VLAN determines the batch of giving out a contract for a project of this certain Single port, and sends loop detection message according to batch of giving out a contract for a project, and is this certain one end the most again Mouth creates an intervalometer, and the time-out time of intervalometer is set to the first predetermined interval, so that this certain Single port is every first The time of predetermined interval sends loop detection message according to batch of giving out a contract for a project.Based on above-mentioned implementation, owing to random number does not has Sequence, therefore the network equipment is that random number that each port obtains can be different, thus starting of obtaining gives out a contract for a project the time the most not With, so, the time of each port transmission loop detection message of the network equipment is just dispersed, and decreases in the same time Send the quantity of loop detection message, therefore can avoid sending the loop detection message of all of the port in the same time and causing The network equipment runs the problem made mistakes.Loop detection message, the i.e. network equipment is sent according to batch of giving out a contract for a project again due to each port Batch of send a collection of for the loop detection message of this port, so further reduce and send loop inspection in the same time Observe and predict the quantity of literary composition, and also will not congested a lot of messages in port, it is possible to increase the efficiency of port transmitting-receiving message.
Corresponding with the embodiment of the sending method of aforementioned loop monitoring message, present invention also provides loop monitoring message The embodiment of dispensing device.
The embodiment of the dispensing device of the application loop monitoring message can be applied on network devices.Device embodiment can To be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as one Device on logical meaning, is that computer program corresponding in nonvolatile memory is referred to by the processor by its place equipment Order reads and runs formation in internal memory.For hardware view, as in figure 2 it is shown, be that the application is according to an exemplary embodiment The hardware structure diagram of a kind of network equipment illustrated, except the processor shown in Fig. 2, internal memory, network interface and non-volatile Outside memorizer, in embodiment, the equipment at device place is generally according to the actual functional capability of this equipment, it is also possible to include other hardware, This is repeated no more.
Fig. 3 is the application embodiment according to the dispensing device of a kind of loop detection message shown in an exemplary embodiment Structure chart, the described network equipment includes that multiple port, each port include at least one VLAN, and this device is applied to the network equipment On, as it is shown on figure 3, this device comprises determining that unit 310, unit 320 of giving out a contract for a project, creates timer units 330.
Wherein it is determined that unit 310, for for each port, obtain a random number, and utilize described random number to determine Described port start the time of giving out a contract for a project;
Give out a contract for a project unit 320, if for the time time-out of giving out a contract for a project that starts of certain Single port, then utilizing certain Single port described corresponding All VLAN determine the batch of giving out a contract for a project of certain Single port described, and send loop detection message according to described batch of giving out a contract for a project;
Create timer units 330, for creating an intervalometer, and surpassing described intervalometer for certain Single port described Time the time be set to the first predetermined interval so that certain Single port described every time of the first predetermined interval according to described batch of giving out a contract for a project Send loop detection message.
In an optional implementation, described determine unit 310, specifically for utilizing described random number to determine institute State port start to give out a contract for a project during the time, described random number and the second predetermined interval sum are defined as opening of described port Originate the bag time;Or, what described random number was defined as described port starts the time of giving out a contract for a project.
In another optional implementation, it is default that the described network equipment is provided with the maximum of every batch number of giving out a contract for a project Numerical value, described in give out a contract for a project unit 320, specifically for utilizing all VLAN that certain Single port described is corresponding to determine certain Single port described Batch of giving out a contract for a project during, determine the quantity of all VLAN that certain Single port described is corresponding;Quantity by described all VLAN With the batch of giving out a contract for a project that the business of described default value is defined as certain Single port described.
In another optional implementation, described loop detection message carries VLAN mark, described in give out a contract for a project list Unit 320, specifically for during sending loop detection message according to described batch of giving out a contract for a project, by corresponding for certain Single port described VLAN mark corresponding for all VLAN is ranked up from small to large;Give out a contract for a project in batch each, the row identified according to described VLAN Sequence sends loop detection message, and records this batch and send the VLAN mark that last loop detection message carries, with under One gives out a contract for a project starts to send loop detection message from the next VLAN mark that the VLAN mark of record is corresponding in batch.
In another optional implementation, described loop detection message carries the device token of the network equipment, The renewal time of the device token of the described network equipment is the 3rd predetermined interval;Described 3rd predetermined interval is preset with described first It is spaced equal.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
From above-described embodiment, the network equipment, for each port, obtains a random number, and utilizes random number to determine This port start the time of giving out a contract for a project;When certain Single port start to give out a contract for a project time time-out time, utilize corresponding all of this certain Single port VLAN determines the batch of giving out a contract for a project of this certain Single port, and sends loop detection message according to batch of giving out a contract for a project, and is this certain one end the most again Mouth creates an intervalometer, and the time-out time of intervalometer is set to the first predetermined interval, so that this certain Single port is every first The time of predetermined interval sends loop detection message according to batch of giving out a contract for a project.Based on above-mentioned implementation, owing to random number does not has Sequence, therefore the network equipment is that random number that each port obtains can be different, thus starting of obtaining gives out a contract for a project the time the most not With, so, the time of each port transmission loop detection message of the network equipment is just dispersed, and decreases in the same time Send the quantity of loop detection message, therefore can avoid sending the loop detection message of all of the port in the same time and causing The network equipment runs the problem made mistakes.Loop detection message, the i.e. network equipment is sent according to batch of giving out a contract for a project again due to each port Batch of send a collection of for the loop detection message of this port, so further reduce and send loop inspection in the same time Observe and predict the quantity of literary composition, and also will not congested a lot of messages in port, it is possible to increase the efficiency of port transmitting-receiving message.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.

Claims (10)

1. the sending method of a loop monitoring message, it is characterised in that described method is applied on the network equipment, described network Equipment includes that multiple port, each port include that at least one virtual LAN VLAN, described method include:
For each port, obtain a random number, and utilize what described random number determined described port to start the time of giving out a contract for a project;
The time time-out if the starting of certain Single port is given out a contract for a project, then all VLAN utilizing certain Single port described corresponding determine described a certain The batch of giving out a contract for a project of port, and send loop detection message according to described batch of giving out a contract for a project;A timing is created for certain Single port described Device, and the time-out time of described intervalometer is set to the first predetermined interval, so that certain Single port described is every the first predetermined interval Time according to described give out a contract for a project batch send loop detection message.
Method the most according to claim 1, it is characterised in that the described beginning utilizing described random number to determine described port Give out a contract for a project the process of time, specifically include:
What described random number and the second predetermined interval sum were defined as described port starts the time of giving out a contract for a project;Or,
What described random number was defined as described port starts the time of giving out a contract for a project.
Method the most according to claim 1, it is characterised in that the described network equipment is provided with the maximum of every batch and gives out a contract for a project individual Number is default value, and all VLAN that certain Single port described in described utilization is corresponding determine the mistake of the batch of giving out a contract for a project of certain Single port described Journey, specifically includes:
Determine the quantity of all VLAN that certain Single port described is corresponding;
The quantity of described all VLAN and the business of described default value are defined as the batch of giving out a contract for a project of certain Single port described.
Method the most according to claim 1, it is characterised in that carry VLAN mark, institute in described loop detection message State the process sending loop detection message according to described batch of giving out a contract for a project, specifically include:
VLAN mark corresponding for all VLAN corresponding for certain Single port described is ranked up from small to large;
Giving out a contract for a project in batch each, the sequence identified according to described VLAN sends loop detection message, and records the transmission of this batch The VLAN mark that last loop detection message carries, to identify correspondence from the VLAN of record in giving out a contract for a project batch at next One VLAN mark starts to send loop detection message.
5. according to the arbitrary described method of Claims 1-4, it is characterised in that described loop detection message carries network The device token of equipment, the renewal time of the device token of the described network equipment is the 3rd predetermined interval;Between described 3rd presets Every equal with described first predetermined interval.
6. the dispensing device of a loop monitoring message, it is characterised in that described device is applied on the network equipment, described network Equipment includes that multiple port, each port include that at least one virtual LAN VLAN, described device include:
Determine unit, for for each port, obtain a random number, and utilize described random number to determine opening of described port Originate the bag time;
Give out a contract for a project unit, if for the time time-out of giving out a contract for a project that starts of certain Single port, then utilize corresponding all of certain Single port described VLAN determines the batch of giving out a contract for a project of certain Single port described, and sends loop detection message according to described batch of giving out a contract for a project;
Create timer units, for creating an intervalometer for certain Single port described, and by the time-out time of described intervalometer It is set to the first predetermined interval, so that certain Single port described sends ring every the time of the first predetermined interval according to described batch of giving out a contract for a project Road detection messages.
Device the most according to claim 6, it is characterised in that described determine unit, specifically for utilize described at random Number determine described port start to give out a contract for a project during the time, described random number and the second predetermined interval sum are defined as described in Port start the time of giving out a contract for a project;Or, what described random number was defined as described port starts the time of giving out a contract for a project.
Device the most according to claim 6, it is characterised in that the described network equipment is provided with the maximum of every batch and gives out a contract for a project individual Number for default value, described in give out a contract for a project unit, specifically for utilize all VLAN that certain Single port described is corresponding determine described certain During the batch of giving out a contract for a project of Single port, determine the quantity of all VLAN that certain Single port described is corresponding;By described all VLAN The business of quantity and described default value be defined as the batch of giving out a contract for a project of certain Single port described.
Device the most according to claim 6, it is characterised in that carry VLAN mark, institute in described loop detection message State unit of giving out a contract for a project, specifically for during sending loop detection message according to described batch of giving out a contract for a project, by certain Single port described Corresponding VLAN mark corresponding for all VLAN is ranked up from small to large;Give out a contract for a project in batch each, mark according to described VLAN The sequence known sends loop detection message, and records this batch and send the VLAN mark that last loop detection message carries, To start to send loop detection message from the next VLAN mark that the VLAN mark of record is corresponding in giving out a contract for a project batch at next.
10. according to the arbitrary described device of claim 6 to 9, it is characterised in that described loop detection message carries network The device token of equipment, the renewal time of the device token of the described network equipment is the 3rd predetermined interval;Between described 3rd presets Every equal with described first predetermined interval.
CN201610601349.XA 2016-07-26 2016-07-26 The sending method and device of loop detection message Active CN106209561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610601349.XA CN106209561B (en) 2016-07-26 2016-07-26 The sending method and device of loop detection message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610601349.XA CN106209561B (en) 2016-07-26 2016-07-26 The sending method and device of loop detection message

Publications (2)

Publication Number Publication Date
CN106209561A true CN106209561A (en) 2016-12-07
CN106209561B CN106209561B (en) 2019-06-07

Family

ID=57495404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610601349.XA Active CN106209561B (en) 2016-07-26 2016-07-26 The sending method and device of loop detection message

Country Status (1)

Country Link
CN (1) CN106209561B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245965A (en) * 2018-10-24 2019-01-18 新华三技术有限公司 A kind of method and apparatus of determining duration
CN109347678A (en) * 2018-11-06 2019-02-15 杭州迪普科技股份有限公司 A kind of determination method and device of route loop
CN110650086A (en) * 2018-06-27 2020-01-03 华为技术有限公司 Routing loop detection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056224A (en) * 2007-05-31 2007-10-17 杭州华三通信技术有限公司 A loop detection method and device for the network device
CN101179455A (en) * 2007-12-07 2008-05-14 中兴通讯股份有限公司 Method and system for implementing VLAN based port loop detection
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
JP4341918B2 (en) * 2005-02-28 2009-10-14 日本電信電話株式会社 Loop detection method and program for bridge device, and bridge device
CN102938722A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Method and device for sending network equipment protocol packages periodically
US20130258840A1 (en) * 2012-03-30 2013-10-03 Ciena Corporation Generalized service protection systems and methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4341918B2 (en) * 2005-02-28 2009-10-14 日本電信電話株式会社 Loop detection method and program for bridge device, and bridge device
CN101056224A (en) * 2007-05-31 2007-10-17 杭州华三通信技术有限公司 A loop detection method and device for the network device
CN101179455A (en) * 2007-12-07 2008-05-14 中兴通讯股份有限公司 Method and system for implementing VLAN based port loop detection
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
US20130258840A1 (en) * 2012-03-30 2013-10-03 Ciena Corporation Generalized service protection systems and methods
CN102938722A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Method and device for sending network equipment protocol packages periodically

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650086A (en) * 2018-06-27 2020-01-03 华为技术有限公司 Routing loop detection method and device
CN110650086B (en) * 2018-06-27 2020-12-15 华为技术有限公司 Routing loop detection method and device
CN109245965A (en) * 2018-10-24 2019-01-18 新华三技术有限公司 A kind of method and apparatus of determining duration
CN109347678A (en) * 2018-11-06 2019-02-15 杭州迪普科技股份有限公司 A kind of determination method and device of route loop
CN109347678B (en) * 2018-11-06 2021-05-25 杭州迪普科技股份有限公司 Method and device for determining routing loop

Also Published As

Publication number Publication date
CN106209561B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN108256002B (en) Cross-machine-room data synchronization method, device, system and server
EP1482712B1 (en) Virtual network addresses
CN108370341B (en) Resource allocation method, virtual network function manager and network element management system
CN104717107B (en) The method, apparatus and system of network equipment detection
CN109388213A (en) Server system, computer implemented method and non-transitory computer-readable medium
CN106470253B (en) IP address recovery method and device
US9515882B2 (en) Managing imaging of computing devices
CN106209561A (en) The sending method of loop detection message and device
CN109240796A (en) Virtual machine information acquisition methods and device
CN105592134B (en) A kind of method and apparatus of load balancing
CN108989476A (en) A kind of address distribution method and device
CN108650336A (en) IP address dynamic allocation method, device and storage medium, wireless relay apparatus
CN110213128A (en) Serve port detection method, electronic equipment and computer storage medium
CN111010343B (en) Method, device, network equipment and storage medium for forwarding multicast message
CN105939345A (en) Management method and device of protocol table item timer
CN110532096B (en) System and method for multi-node grouping parallel deployment
CN109542627A (en) Node switching method, device, supervisor, node device and distributed system
CN103995901B (en) A kind of method for determining back end failure
US10122602B1 (en) Distributed system infrastructure testing
CN112929206B (en) Method and device for configuring cloud physical machine in cloud network environment
TW200913573A (en) Method, apparatus, and computer program product for implementing bandwidth capping at logical port level for shared ethernet port
CN105939228B (en) A kind of health detecting method and device
CN110377616A (en) A kind of data-erasure method, device, electronic equipment and storage medium
CN109005122A (en) File transmitting method, device and the network equipment
CN109462617A (en) Device talk behavioral value method and device in a kind of local area network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant