CN106059934A - Routing information processing method and device - Google Patents
Routing information processing method and device Download PDFInfo
- Publication number
- CN106059934A CN106059934A CN201610510316.4A CN201610510316A CN106059934A CN 106059934 A CN106059934 A CN 106059934A CN 201610510316 A CN201610510316 A CN 201610510316A CN 106059934 A CN106059934 A CN 106059934A
- Authority
- CN
- China
- Prior art keywords
- bgp neighbor
- message
- neighbours
- core router
- bgp
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
Abstract
The invention provides a routing information processing method and device. The method comprises the steps of: receiving a border gateway protocol (BGP) neighbor message sent by a core router, wherein the BGP neighbor message is sent by the core router according to target BGP neighbor equipment; and if determining the frequency that the core router sends the BGP neighbor message satisfies a preset condition, not processing the BGP neighbor message, and otherwise, processing the BGP neighbor message. By adopting the method and the device, abnormal neighbor routing information can be prevented from influencing the processing of other normal neighbor routing information by a monitoring server, and the load of the monitoring server is reduced.
Description
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of RI-Pro method and device.
Background technology
BGP (Border Gateway Protocol, Border Gateway Protocol) is that one both may be used for difference
Between AS (Autonomous System, autonomous system), may be used for again within same AS is dynamic
Routing Protocol.AS is to have same routing policy, belongs to the set of router of same technical management department.
Currently used bgp version is BGP-4.BGP-4 is as Internet exterior routing protocol standard, quilt
ISP (Internet Service Provider, ISP) extensively applies.
By configuring BMP (BGP Monitoring Protocol, BGP monitoring protocol) characteristic, monitoring
Server (hereinafter referred to as BMP monitoring server) can be to the fortune of the bgp session on equipment in network
Row state monitors in real time, including foundation and releasing, the routing iinformation etc. of peer relationship.
At present, the major function of BMP monitoring server is to collect connection equipment (core router (core
Router)) neighbours' route messages, and the quantity of BGP route is generally the hugest, if BMP
Neighbours are shaken, can cause substantial amounts of route repeatedly be sent to BMP monitoring server, may lead
Cause computing CPU (Center Process Unit, the CPU) load of BMP monitoring server
Overweight, and then cause BMP monitoring server to be paralysed.
Summary of the invention
The present invention provides a kind of RI-Pro method and device, to solve bgp neighbor in prior art
Concussion can cause the problem that the load of BMP monitoring server is excessive.
First aspect according to embodiments of the present invention, it is provided that a kind of RI-Pro method, described method
Being applied in monitoring server, described method includes:
Receive Border Gateway Protocol (BGP) neighbours' message that core router sends, described bgp neighbor report
Literary composition is that described core router sends according to target bgp neighbor equipment;
If it is determined that the number of times that described core router sends described bgp neighbor message meets pre-conditioned,
The most do not process described bgp neighbor message, otherwise process described bgp neighbor message.
Second aspect according to embodiments of the present invention, it is provided that a kind of RI-Pro device, described device
Being applied in monitoring server, described device includes:
Receive unit, for receiving Border Gateway Protocol (BGP) neighbours' message that core router sends, institute
Stating bgp neighbor message is that described core router sends according to target bgp neighbor equipment;
Determine unit, for determining whether the number of times of the core router described bgp neighbor message of transmission meets
Pre-conditioned;
For described, processing unit, if determining that unit determines that core router sends described bgp neighbor message
Number of times when meeting pre-conditioned, do not process described bgp neighbor message;Otherwise, described BGP is processed
Neighbours' message.
Application the embodiment of the present invention, when monitoring server receive core router send for target
During the bgp neighbor message that bgp neighbor equipment sends, monitoring server needs first to determine core router
Whether the number of times sending this bgp neighbor message meets pre-conditioned, and when meeting, does not process this BGP
Neighbours' message, compared with prior art, the technical scheme that the embodiment of the present invention provides is by routeing core
Device transmission times meets pre-conditioned bgp neighbor message and do not processes, it is to avoid this part neighbours roads
Monitoring server, impact monitoring service repeatedly it is sent to due to reasons such as bgp neighbor equipment concussions by information
The device process to other normal neighbours' routing iinformation, and reduce the load of monitoring server.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of RI-Pro method that the embodiment of the present invention provides;
Fig. 2 is the structural representation of a kind of RI-Pro device that the embodiment of the present invention provides;
Fig. 3 is the structural representation of the another kind of RI-Pro device that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of RI-Pro device that the embodiment of the present invention provides.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the embodiment of the present invention, and make
The above-mentioned purpose of the embodiment of the present invention, feature and advantage can become apparent from understandable, the most right
In the embodiment of the present invention, technical scheme is described in further detail.
Refer to Fig. 1, for the flow process signal of a kind of RI-Pro method that the embodiment of the present invention provides
Figure, as it is shown in figure 1, this RI-Pro method may comprise steps of:
It should be noted that the executive agent of step 101~step 103 can be BMP monitoring server
Or the processor of BMP monitoring server, such as CPU, for the ease of describing, below with step 101~step
The executive agent of rapid 103 is to illustrate as a example by BMP monitoring server (referred to as monitoring server).
The bgp neighbor message that step 101, reception core router send, this bgp neighbor message is
Core router sends according to target bgp neighbor equipment.
Concrete, when between core router and this target bgp neighbor neighborhood (such as routing relation)
When sending change, then core router will send bgp neighbor message to monitoring server.
In the embodiment of the present invention, target bgp neighbor equipment is also not specific to a certain fixing bgp neighbor and sets
Standby, but may refer to arbitrary bgp neighbor equipment of core router, the embodiment of the present invention is follow-up no longer
Repeat.
In the embodiment of the present invention, monitoring server can be added up and receive core router for target BGP
The number of times of bgp neighbor message that neighbor device sends, when monitoring server receive core router for
During the bgp neighbor message that target bgp neighbor equipment sends, monitoring server may determine that core route
Device sends whether the number of times of this bgp neighbor message meets pre-conditioned.
Such as, monitoring server may determine that whether core router sends the number of times of this bgp neighbor message
Reach preset times threshold value (this preset times threshold value can set) according to actual scene, if reaching default time
Number threshold value, it is determined that core router sends the number of times of this bgp neighbor message and meets pre-conditioned;Otherwise,
Determine that core router sends the number of times of this bgp neighbor message and is unsatisfactory for pre-conditioned.
Step 102 if it is determined that the number of times that core router sends this bgp neighbor message meets pre-conditioned,
The most do not process bgp neighbor message.
In the embodiment of the present invention, when monitoring server determines that core router sends this bgp neighbor message
When number of times meets pre-conditioned, it is abnormal that monitoring server thinks that target bgp neighbor equipment occurs, as occurred
Concussion, now, monitoring server does not process this bgp neighbor message, does not the most process this bgp neighbor report
The neighbours' routing iinformation carried in literary composition, to avoid the neighbours' routing iinformation shadow carried in this bgp neighbor message
Ring the process of other normal neighbours' routing iinformation.
As the optional embodiment of one, in embodiments of the present invention, when determining that core router sends
When the number of times of this bgp neighbor message meets pre-conditioned, arrange for this bgp neighbor message and preset mark,
This default mark is used for indicating monitoring server not process this bgp neighbor message.
In this embodiment, can preset a mark, this default mark is used for indicating monitoring clothes
Business device does not process and is provided with this bgp neighbor message presetting mark.
Correspondingly, determine that what core router sent sets for target bgp neighbor first when monitoring server
When the number of times of standby bgp neighbor message meets pre-conditioned, monitoring server needs for this bgp neighbor
Message arranges above-mentioned default mark, does not process this bgp neighbor message;When monitoring server again
Secondary receive that core router sends for the bgp neighbor message of target bgp neighbor equipment time, by
Being that this bgp neighbor message is provided with above-mentioned default mark in monitoring server, monitoring server will not be to this
Bgp neighbor message processes.
As the optional embodiment of another kind, in embodiments of the present invention, when determining that core router is sent out
When the number of times giving this bgp neighbor message meets pre-conditioned, the neighbour that will carry in this bgp neighbor message
Occupying during routing iinformation record caches first, the first caching is for neighbours' message of not processing of record.
In this embodiment, one piece of region can be marked off in advance in the caching of monitoring server, should
Region the neighbours of normal process cannot route letter for caching due to what the reasons such as bgp neighbor concussion caused
Breath, the neighbours' routing iinformation in this region (the referred to herein as first caching) does not processes.
Correspondingly, determine that what core router sent sets for target bgp neighbor first when monitoring server
When the number of times of standby bgp neighbor message meets pre-conditioned, monitoring server needs this bgp neighbor
The neighbours' routing iinformation carried in message recorded in the first caching;When monitoring server receives core again
Heart router send for the bgp neighbor message of target bgp neighbor equipment time, owing to this BGP is adjacent
Occupy during neighbours' routing iinformation record of carrying in the neighbours' routing iinformation carried in message caches first, because of
This, monitoring server does not process this bgp neighbor message.
Step 103 is if it is determined that the number of times that core router sends this bgp neighbor message is unsatisfactory for presetting bar
Part, then process bgp neighbor message.
In the embodiment of the present invention, when monitoring server determines that core router sends this bgp neighbor message
Number of times is unsatisfactory for pre-conditioned, as monitoring server determines that core router sends this bgp neighbor message
When number of times is not up to preset times threshold value, monitoring server needs to process this bgp neighbor message.
As the optional embodiment of one, in embodiments of the present invention, the caching of monitoring server except
Outside the first caching, also include the second caching, this second caching for monitoring server caching in remove
Part or all of region outside first caching, this second caching is for preserving pending neighbours' route
Information, if receive a large amount of bgp neighbor message, monitoring server can be adjacent by the BGP received
Occupy packet storage second cache in, prevent the loss of bgp neighbor message.
Correspondingly, in this embodiment, determine that needs are to the bgp neighbor received when monitoring server
When message processes, monitoring server determines whether currently whether there are other neighbours processed
Routing iinformation, if existing, then monitoring server needs the neighbours' route will carried in this bgp neighbor message
During information record caches second, and the neighbours' routing iinformation in the second caching is processed;Otherwise,
I.e. there is currently no other neighbours' routing iinformation processed, monitoring server is directly to this bgp neighbor
The neighbours' routing iinformation carried in message processes.
Further, in this embodiment, it is contemplated that in neighbours' routing iinformation recorded the second caching
After, if the bgp neighbor of correspondence shakes, this neighbours' routing iinformation still may affect monitoring server
Normal process to other neighbours' routing iinformation.
Correspondingly, in this embodiment, neighbours' routing iinformation be recorded the second caching by monitoring server
After in, it is also possible to including:
When determining that described core router sends the number of times of the bgp neighbor message for target bgp neighbor
When meeting pre-conditioned, by neighbours' routing iinformation corresponding for target bgp neighbor equipment from the second caching transfer
Move in the first caching.
Specifically, in this embodiment, target bgp neighbor equipment neighbours are route letter by monitoring server
After breath recorded in the second caching, when monitoring server determine that core router sends for target
When the number of times of the bgp neighbor message of bgp neighbor equipment meets pre-conditioned, monitoring server need by
Neighbours' routing iinformation that this target bgp neighbor equipment is corresponding is transferred in the first caching from the second caching,
With avoid neighbours' routing iinformation of target bgp neighbor equipment affect monitoring server to second caching in its
The normal process of its neighbours' routing iinformation.
Alternatively, in embodiments of the present invention, determine that core router sends the number of times of bgp neighbor message
Meet pre-conditioned, may include that
Receive this bgp neighbor message number of times reach preset times threshold value;Or,
The concussion receiving the identification information carrying target bgp neighbor equipment that core router sends is led to
Know message;Wherein, this concussion notification message is the shake that core router detects target bgp neighbor equipment
Swing number of times and reach transmission during preset times threshold value.
Specifically, in an embodiment of the present invention, monitoring server can receive core road by statistics
The mode of the number of times of the bgp neighbor message for target bgp neighbor equipment sent by device, determines and connects
Whether receive the number of times of the bgp neighbor message for target bgp neighbor equipment that core router sends
Meet pre-conditioned;When monitoring server receives setting for target bgp neighbor of core router transmission
When the number of times of standby bgp neighbor message reaches preset times threshold value (can set) according to actual scene,
Monitoring server think meet pre-conditioned, thus, monitoring server is by the neighbours of this target bgp neighbor
Routing iinformation is transferred to the first caching from the second caching.
In another embodiment of the invention, core router can monitor the concussion feelings of bgp neighbor equipment
Condition, and add up the concussion number of times of bgp neighbor equipment;When core router determines that target bgp neighbor sets
When standby concussion number of times reaches preset times threshold value, core router sends concussion notice to monitoring server
Message, carries the identification information of target bgp neighbor equipment in this concussion notification message;Work as monitoring server
When receiving the concussion notification message that core router sends, monitoring server can notify according to this concussion
The identification information of the target bgp neighbor equipment carried in message inquires about the neighbours of correspondence from the second caching
Routing iinformation, and this neighbours' routing iinformation is transferred to the first caching from the second caching.
Further, in this embodiment, by neighbours' routing iinformation corresponding for target bgp neighbor from
After two cachings are transferred in the first caching, it is also possible to including:
Disappear when the concussion for target bgp neighbor equipment receiving core router transmission releases notice
During breath, neighbours' routing iinformation corresponding for target bgp neighbor equipment is transferred to the second caching from the first caching;
Or,
Judge whether target bgp neighbor equipment shakes releasing every preset duration, the most then by this target
Neighbours' routing iinformation that bgp neighbor equipment is corresponding is transferred to the second caching from the first caching.
Specifically, in an embodiment of the present invention, target bgp neighbor equipment is monitored when core router
(when target bgp neighbor equipment becomes in Preset Time when being changed into, by concussion state, the state no longer shaken
When the number of times changed is less than preset times threshold value, then it is believed that this target bgp neighbor equipment no longer shakes),
Core router needs to send concussion to monitoring server and releases notification message, and this concussion releases notification message
In carry the identification information of target bgp neighbor equipment;Notice is released when monitoring server receives concussion
During message, monitoring server can release, according to this concussion, the target bgp neighbor carried in notification message and set
Standby identification information, by neighbours' routing iinformation corresponding for target bgp neighbor equipment from the first caching release also
Processing this neighbours' routing iinformation, wherein, the method processing this bgp neighbor equipment includes routeing these neighbours
Information is stored in the second caching.
In another embodiment of the present invention, monitoring server can judge concussion state every Preset Time
Whether bgp neighbor equipment shakes releasing, and such as, monitoring server can be by sending to core router
Concussion status poll instruction, the concussion state of inquiry target bgp neighbor equipment, to determine target BGP
Whether neighbor device shakes releasing, or, when monitoring server does not receives core road in Preset Time
By device send for the bgp neighbor message of target bgp neighbor equipment time, monitoring server thinks mesh
Mark bgp neighbor equipment concussion releases, and then, monitoring server discharges and processes this neighbours' routing iinformation.
By above-described embodiment, monitoring server can be no longer on concussion at target bgp neighbor equipment
In the case of process in time neighbours' routing iinformation of storage in the first caching.
Further, as the optional embodiment of one, in embodiments of the present invention, neighbours are route
Information recorded the second caching, may include that
Determine the packet belonging to neighbours' routing iinformation;
Neighbours' routing iinformation be recorded in the second caching corresponding according to the packet belonging to neighbours' routing iinformation
In cache blocks;Wherein, the different cache blocks in corresponding second caching of different grouping.
In this embodiment, can in advance the second caching of monitoring server be divided into multiple different
Cache blocks, different cache blocks are for recording neighbours' routing iinformation of different grouping.
Correspondingly, neighbours' routing iinformation can be grouped by monitoring server or core router, works as prison
When control server receives bgp neighbor message, monitoring server can be according in this bgp neighbor message
The packet belonging to neighbours' routing iinformation carried, it is right to be recorded in the second cache blocks by this neighbours' routing iinformation
In the cache blocks answered.
Specifically, in an embodiment of the present invention, monitoring server can route letter according to receiving neighbours
Neighbours' routing iinformation is grouped by the sequencing of breath, or the type of service according to bgp neighbor equipment
Neighbours' routing iinformation is grouped, or according to the network segment belonging to bgp neighbor equipment to neighbours' routing iinformation
It is grouped, or at random bgp neighbor equipment is grouped.
For example, with monitoring server according to receiving the sequencing of neighbours' routing iinformation to neighbours road
As a example by being grouped by information, monitoring server can according to the time of the neighbours' routing iinformation received from
Every 100 neighbours' routing iinformations are divided into a packet by the order after arriving first, as will receive
Receive the 101st~200 neighbours, as the first packet, are route letter by 1~100 neighbours' routing iinformation
Breath is as the second packet etc..
In this case, after monitoring server receives bgp neighbor message, monitoring server needs really
This packet belonging to neighbours' routing iinformation fixed, and according to the packet belonging to this neighbours' routing iinformation by neighbours road
Cache blocks corresponding in the second caching is recorded by information.
In an alternative embodiment of the invention, core router can be set up according to each bgp neighbor equipment
Bgp neighbor equipment is grouped by the time sequencing that BGP connects, or according to bgp neighbor equipment
Neighbours' routing iinformation is grouped by type of service, or according to the network segment belonging to bgp neighbor equipment to neighbours
Routing iinformation is grouped, or is grouped bgp neighbor equipment at random.
For example, set up, according to each bgp neighbor equipment, the time that BGP is connected with core router
As a example by neighbours' routing iinformation is grouped by order, core router is set up according to each bgp neighbor equipment
The neighbours of every 100 bgp neighbor equipment are route letter by the time that BGP connects order after arriving first
Breath is divided into a packet, as bgp neighbor equipment 1~bgp neighbor equipment 100 (connect by setting up
Time order and function order be numbered) neighbours' routing iinformation belong to same packet, bgp neighbor equipment
101~neighbours' routing iinformation of bgp neighbor equipment 200 belong to same packet.
In this case, core router is when monitoring server sends bgp neighbor message, in addition it is also necessary to
Bgp neighbor message carries the information of packet belonging to neighbours' routing iinformation, thus, when monitoring server connects
When receiving bgp neighbor message, monitoring server is according to the neighbours' route carried in this bgp neighbor message
Described in information, the information of packet determines the packet belonging to neighbours' routing iinformation, and according to neighbours' routing iinformation institute
Neighbours' routing iinformation be recorded cache blocks corresponding in the second caching by the packet belonged to.
Further, in this embodiment, the bgp routing information in the second caching is processed,
May include that
Neighbours' routing iinformation in each cache blocks that parallel processing the second caching includes.
Specifically, in this embodiment, monitoring server can start multiple process, and parallel processing is each
Neighbours' routing iinformation in cache blocks.
For example, it is assumed that bgp neighbor equipment is divided into 4 packets (packet 1~packet 4), correspondingly,
The cache blocks that the neighbours' routing iinformation got is saved in each packet corresponding by monitoring server is (the most slow
Counterfoil 1~cache blocks 4) in after, 4 processes (process 1~process 4) can be started, process 1 is used
In the neighbours' routing iinformation processed in cache blocks 1, process 2 is for processing the neighbours' route in cache blocks 2
Information ... process 4, for processing the neighbours' routing iinformation in cache blocks 4, does not interfere with each other between each process,
When neighbours' routing iinformation in arbitrary cache blocks occurs extremely to cause processing, do not interfere with other caching
The normal process of the neighbours' routing iinformation in block, on the one hand, improve the treatment effeciency of neighbours' routing iinformation,
On the other hand, reduce further neighbours' routing iinformation that the reasons such as bgp neighbor concussion cause abnormal to it
The normal process of its neighbours' routing iinformation.
Further, in an embodiment of the present invention, for neighbours' route of same packet in the second caching
Information, it is also possible to further it is carried out partition of the level, and distribute priority for it;Wherein, same point
In group, the priority of neighbours' routing iinformation of different stage is different, the neighbours road of same levels in same packet
Identical by the priority of information.
In this embodiment, monitoring server or core router can stablizing according to bgp neighbor equipment
Degree carries out partition of the level to corresponding neighbours' routing iinformation, or, according to the network segment of bgp neighbor equipment
Corresponding neighbours' routing iinformation is carried out partition of the level etc..
For example, with core router according to the degree of stability of bgp neighbor equipment to corresponding neighbours road
As a example by being carried out partition of the level by information, core router is each bgp neighbor equipment in can adding up Preset Time
There is the number of times of concussion, and occur the number of times of concussion that each bgp neighbor is set according to each bgp neighbor equipment
Standby corresponding neighbours' routing iinformation carries out partition of the level, and the bgp neighbor equipment that the number of times of concussion is identical occurs
Corresponding neighbours' routing iinformation is divided into same rank, and the bgp neighbor equipment that the number of times of concussion is the fewest occurs
The priority that the rank of corresponding neighbours' routing iinformation is corresponding is the highest.
Correspondingly, in this embodiment, when monitoring server receives bgp neighbor message, except needing
Outside packet belonging to neighbours' routing iinformation to be determined, in addition it is also necessary to determine the rank of neighbours' routing iinformation, enter
And, according to the packet belonging to neighbours' routing iinformation and rank, neighbours' routing iinformation be recorded the second caching
Sub-cache blocks corresponding in the cache blocks of middle correspondence;Wherein, in same cache blocks, different sub-cache blocks are corresponding
The rank that neighbours' routing iinformation is different.
When the neighbours' routing iinformation during monitoring server needs each cache blocks to the second caching processes,
For neighbours' routing iinformation of same cache blocks (the most same packet), monitoring server can be according to neighbours
Each neighbours' routing iinformation is processed by the priority of routing iinformation order from high to low.
Wherein, when monitoring server determines that certain bgp neighbor equipment shakes, but this bgp neighbor sets
When standby concussion number of times is unsatisfactory for pre-conditioned, it is corresponding that monitoring server can reduce this bgp neighbor equipment
The priority of neighbours' routing iinformation.
By above description it can be seen that in the technical scheme that the embodiment of the present invention provides, take when monitoring
Business device receives the bgp neighbor message sent for target bgp neighbor equipment that core router sends
Time, monitoring server needs first to determine that core router sends the number of times of this bgp neighbor message and whether meets
Pre-conditioned, and when meeting, do not process this bgp neighbor message, compared with prior art, the present invention
The technical scheme that embodiment provides is adjacent by core router transmission times meets pre-conditioned BGP
Occupy message not process, it is to avoid this part neighbours' routing iinformation is due to bgp neighbor equipment concussion etc. former
Because being repeatedly sent to monitoring server, affect the monitoring server process to other normal neighbours' routing iinformation,
And reduce the load of monitoring server.
Based on the inventive concept as said method, the embodiment of the present invention also provides for a kind of RI-Pro
Device, applies on monitoring server.This RI-Pro device can 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 on a logical meaning
Device, be the processor of monitoring server by its place, corresponding in reading non-volatile storage
Computer program instructions is formed.For hardware view, in addition to processor, nonvolatile memory,
Monitoring server can also include other hardware, such as the forwarding chip of responsible process message, network interface, interior
Deposit;From the point of view of from hardware configuration, this monitoring server, it is also possible that distributed apparatus, potentially includes multiple
Interface card, in order to carry out the extension of Message processing at hardware view.
Refer to Fig. 2, for the structural representation of a kind of RI-Pro device that the embodiment of the present invention provides
Figure, wherein, described RI-Pro device can apply to the monitoring service in said method embodiment
Device, as in figure 2 it is shown, this RI-Pro device can include
Receive unit 210, for receiving Border Gateway Protocol (BGP) neighbours' message that core router sends,
Described bgp neighbor message is that described core router sends according to target bgp neighbor equipment;
Determine unit 220, for determining whether core router sends the number of times of described bgp neighbor message
Meet pre-conditioned;
For described, processing unit 230, if determining that unit 220 determines that core router sends described BGP
When the number of times of neighbours' message meets pre-conditioned, do not process described bgp neighbor message;Otherwise, institute is processed
State bgp neighbor message.
See also Fig. 3, for the knot of the another kind of RI-Pro device that the embodiment of the present invention provides
Structure schematic diagram, on the basis of RI-Pro device shown in Fig. 2, at the routing iinformation shown in Fig. 3
Reason device also includes:
Unit 240 is set, described for described determining that unit 220 determines that described core router sends
When the number of times of bgp neighbor message meets pre-conditioned, arrange for described bgp neighbor message and preset mark,
Described default mark is used for indicating described monitoring server not process described bgp neighbor message.
See also Fig. 4, for the knot of the another kind of RI-Pro device that the embodiment of the present invention provides
Structure schematic diagram, on the basis of RI-Pro device shown in Fig. 2, at the routing iinformation shown in Fig. 4
Reason device also includes:
Record unit 250, described for described determining that unit 220 determines that described core router sends
When the number of times of bgp neighbor message meets pre-conditioned, the neighbours that will carry in described bgp neighbor message
During routing iinformation record caches first, neighbours' message information that described first caching does not processes for record.
In an alternative embodiment, record unit 250, be additionally operable to the neighbour carried by described bgp neighbor message
Occupying during routing iinformation record caches second, described second caching route letter for preserving pending neighbours
Breath;
Processing unit 230, is additionally operable to process the neighbours' routing iinformation in described second caching.
In an alternative embodiment, described record unit 250, it is additionally operable to described to determine that unit 220 determines
When the number of times of the described core router described bgp neighbor message of transmission meets pre-conditioned, by described neighbours
Routing iinformation is transferred in the first caching from the second caching.
In an alternative embodiment, described unit 220 is determined, specifically for connecing when described reception unit 210
Receive the number of times of described bgp neighbor message when reaching preset times threshold value, determine that described core router is sent out
The number of times sending described bgp neighbor message meets pre-conditioned;Or, when described reception unit 210 receives
The concussion notification message of the identification information carrying described target bgp neighbor equipment that core router sends
Time, determine that the number of times of the described core router described bgp neighbor message of transmission meets pre-conditioned;Wherein,
Described concussion notification message is the concussion number of times that core router detects described target bgp neighbor equipment
Reach transmission during preset times threshold value.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding
Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng
See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically,
The wherein said unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole module of person realizes the purpose of the present invention program.Those of ordinary skill in the art are not paying creativeness
In the case of work, i.e. it is appreciated that and implements.
As seen from the above-described embodiment, when monitoring server receive core router send for target
During the bgp neighbor message that bgp neighbor equipment sends, monitoring server needs first to determine core router
Whether the number of times sending this bgp neighbor message meets pre-conditioned, and when meeting, does not process this BGP
Neighbours' message, compared with prior art, the technical scheme that the embodiment of the present invention provides is by routeing core
Device transmission times meets pre-conditioned bgp neighbor message and do not processes, it is to avoid this part neighbours roads
Monitoring server, impact monitoring service repeatedly it is sent to due to reasons such as bgp neighbor equipment concussions by information
The device process to other normal neighbours' routing iinformation, and reduce the load of monitoring server.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this
Other embodiment of invention.The application is intended to any modification, purposes or the adaptability of the present invention
Change, these modification, purposes or adaptations are followed the general principle of the present invention and include this
Bright undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, true scope and spirit of the invention are pointed out by claim below.
It should be appreciated that the invention is not limited in described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by institute
Attached claim limits.
Claims (12)
1. a RI-Pro method, it is characterised in that described method is applied in monitoring server,
Described method includes:
Receive Border Gateway Protocol (BGP) neighbours' message that core router sends, described bgp neighbor report
Literary composition is that described core router sends according to target bgp neighbor equipment;
If it is determined that the number of times that described core router sends described bgp neighbor message meets pre-conditioned,
The most do not process described bgp neighbor message, otherwise process described bgp neighbor message.
2. the method for claim 1, it is characterised in that when determining that described core router sends
When the number of times of described bgp neighbor message meets pre-conditioned, arrange default for described bgp neighbor message
Mark, described default mark is used for indicating described monitoring server not process described bgp neighbor message.
3. the method for claim 1, it is characterised in that when determining that described core router sends
When the number of times of described bgp neighbor message meets pre-conditioned, by what described bgp neighbor message carried
During neighbours' routing iinformation record caches first, neighbours' message that described first caching does not processes for record
Information.
4. method as claimed in claim 3, it is characterised in that described process described bgp neighbor report
Literary composition, including:
During the neighbours' routing iinformation record carried by described bgp neighbor message caches second, described second
Caching is for preserving pending neighbours' routing iinformation;
Neighbours' routing iinformation in described second caching is processed.
5. method as claimed in claim 4, it is characterised in that when determining that described core router sends
When the number of times of described bgp neighbor message meets pre-conditioned, described method also includes:
Described neighbours' routing iinformation is transferred in the first caching from the second caching.
Method the most according to claim 1, it is characterised in that determine that described core router sends
The number of times of described bgp neighbor message meets pre-conditioned, including:
The number of times receiving described bgp neighbor message reaches preset times threshold value;
Or,
Receive the shake of the identification information carrying described target bgp neighbor equipment that core router sends
Swing notification message;Wherein, described concussion notification message is that core router detects described target BGP
The concussion number of times of neighbor device reaches transmission during preset times threshold value.
7. a RI-Pro device, it is characterised in that described device is applied in monitoring server,
Described device includes:
Receive unit, for receiving Border Gateway Protocol (BGP) neighbours' message that core router sends, institute
Stating bgp neighbor message is that described core router sends according to target bgp neighbor equipment;
Determine unit, for determining whether the number of times of the core router described bgp neighbor message of transmission meets
Pre-conditioned;
For described, processing unit, if determining that unit determines that core router sends described bgp neighbor message
Number of times when meeting pre-conditioned, do not process described bgp neighbor message;Otherwise, described BGP is processed
Neighbours' message.
Device the most according to claim 7, it is characterised in that described device also includes:
Unit is set, for described determining that unit determines that described core router sends described bgp neighbor
When the number of times of message meets pre-conditioned, arrange for described bgp neighbor message and preset mark, described default
Mark is used for indicating described monitoring server not process described bgp neighbor message.
Device the most according to claim 7, it is characterised in that described device also includes:
Record unit, for described determining that unit determines that described core router sends described bgp neighbor
When the number of times of message meets pre-conditioned, the neighbours' routing iinformation note will carried in described bgp neighbor message
Record in caching first, neighbours' message information that described first caching does not processes for record.
Device the most according to claim 9, it is characterised in that
Described record unit, the neighbours' routing iinformation record being additionally operable to carry described bgp neighbor message exists
In second caching, described second caching is for preserving pending neighbours' routing iinformation;
Described processing unit, is additionally operable to process the neighbours' routing iinformation in described second caching.
11. devices according to claim 10, it is characterised in that
Described record unit, is additionally operable to described determine that unit determines that described core router sends described
When the number of times of bgp neighbor message meets pre-conditioned, by described neighbours' routing iinformation from the second caching transfer
Move in the first caching.
12. devices according to claim 7, it is characterised in that
Described determine unit, specifically for when described reception unit receive described bgp neighbor message time
When number reaches preset times threshold value, determine that described core router sends the number of times of described bgp neighbor message
Meet pre-conditioned;Or, when described reception unit receive core router send carry described target
During the concussion notification message of the identification information of bgp neighbor equipment, determine that described core router sends described
The number of times of bgp neighbor message meets pre-conditioned;Wherein, described concussion notification message is core router
Detect that the concussion number of times of described target bgp neighbor equipment reaches transmission during preset times threshold value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610510316.4A CN106059934B (en) | 2016-06-27 | 2016-06-27 | Routing information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610510316.4A CN106059934B (en) | 2016-06-27 | 2016-06-27 | Routing information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106059934A true CN106059934A (en) | 2016-10-26 |
CN106059934B CN106059934B (en) | 2020-01-03 |
Family
ID=57201607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610510316.4A Active CN106059934B (en) | 2016-06-27 | 2016-06-27 | Routing information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106059934B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506376A (en) * | 2016-10-27 | 2017-03-15 | 杭州华三通信技术有限公司 | A kind of initial routing iinformation sending method of monitored neighbours and device |
CN110708207A (en) * | 2018-12-24 | 2020-01-17 | 新华三技术有限公司 | Route oscillation positioning method, server and machine readable storage medium |
WO2020057475A1 (en) * | 2018-09-19 | 2020-03-26 | 华为技术有限公司 | Method for determining routing oscillation information and related device therefor |
CN113572685A (en) * | 2020-04-29 | 2021-10-29 | 华为技术有限公司 | Information reporting method, information processing method, device and equipment |
CN116760830A (en) * | 2023-08-14 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Method and device for processing routing information, computer readable medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431427A (en) * | 2007-11-05 | 2009-05-13 | 华为技术有限公司 | Method and apparatus for restraining route oscillation |
US20100080115A1 (en) * | 2008-09-30 | 2010-04-01 | Chen-Yui Yang | Methods and apparatus to monitor border gateway protocol sessions |
CN102594714A (en) * | 2012-03-29 | 2012-07-18 | 杭州华三通信技术有限公司 | BGP (Border Gateway Protocol) routing processing method and BGP routing equipment |
CN103746964A (en) * | 2013-12-19 | 2014-04-23 | 柳州职业技术学院 | Prevention method aiming at BGP routing protocol avalanche type attack |
-
2016
- 2016-06-27 CN CN201610510316.4A patent/CN106059934B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431427A (en) * | 2007-11-05 | 2009-05-13 | 华为技术有限公司 | Method and apparatus for restraining route oscillation |
US20100080115A1 (en) * | 2008-09-30 | 2010-04-01 | Chen-Yui Yang | Methods and apparatus to monitor border gateway protocol sessions |
CN102594714A (en) * | 2012-03-29 | 2012-07-18 | 杭州华三通信技术有限公司 | BGP (Border Gateway Protocol) routing processing method and BGP routing equipment |
CN103746964A (en) * | 2013-12-19 | 2014-04-23 | 柳州职业技术学院 | Prevention method aiming at BGP routing protocol avalanche type attack |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506376A (en) * | 2016-10-27 | 2017-03-15 | 杭州华三通信技术有限公司 | A kind of initial routing iinformation sending method of monitored neighbours and device |
WO2020057475A1 (en) * | 2018-09-19 | 2020-03-26 | 华为技术有限公司 | Method for determining routing oscillation information and related device therefor |
CN110932921A (en) * | 2018-09-19 | 2020-03-27 | 华为技术有限公司 | Method for determining route oscillation information and related equipment thereof |
CN110932921B (en) * | 2018-09-19 | 2022-10-11 | 华为技术有限公司 | Method for determining route oscillation information and related equipment thereof |
US11489759B2 (en) | 2018-09-19 | 2022-11-01 | Huawei Technologies Co., Ltd. | Method for determining route flapping information and related device |
CN110708207A (en) * | 2018-12-24 | 2020-01-17 | 新华三技术有限公司 | Route oscillation positioning method, server and machine readable storage medium |
CN113572685A (en) * | 2020-04-29 | 2021-10-29 | 华为技术有限公司 | Information reporting method, information processing method, device and equipment |
CN113572685B (en) * | 2020-04-29 | 2023-03-10 | 华为技术有限公司 | Information reporting method, information processing method, device and equipment |
US11916783B2 (en) | 2020-04-29 | 2024-02-27 | Huawei Technologies Co., Ltd. | Information reporting method, information processing method, apparatus, and device |
CN116760830A (en) * | 2023-08-14 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Method and device for processing routing information, computer readable medium and electronic equipment |
CN116760830B (en) * | 2023-08-14 | 2024-03-01 | 腾讯科技(深圳)有限公司 | Method and device for processing routing information, computer readable medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106059934B (en) | 2020-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106059934A (en) | Routing information processing method and device | |
US8989002B2 (en) | System and method for controlling threshold testing within a network | |
TWI713501B (en) | Method, device, flow cleaning equipment and system for identifying network loop | |
US9585175B2 (en) | Methods and systems for transmitting packets through aggregated end-to-end connection | |
CN106656857B (en) | Message speed limiting method and device | |
CN109936514A (en) | A kind of message processing method and device | |
US9935883B2 (en) | Determining a load distribution for data units at a packet inspection device | |
US20200076724A1 (en) | Path management for segment routing based mobile user-plane using seamless bfd | |
US10530681B2 (en) | Implementing forwarding behavior based on communication activity between a controller and a network device | |
CN111431871B (en) | Processing method and device of TCP (Transmission control protocol) semi-transparent proxy | |
CN109088822B (en) | Data flow forwarding method, device, system, computer equipment and storage medium | |
CN108833149A (en) | Method and system for monitoring network availability and self-healing of express delivery cabinet | |
CN105119993A (en) | Virtual machine deployment method and apparatus | |
US10291518B2 (en) | Managing flow table entries for express packet processing based on packet priority or quality of service | |
TW201941569A (en) | Message cache management in a mesh network | |
CN106534301A (en) | Method and device for balancing network outbound load | |
CN108235800A (en) | A kind of network failure probing method and control centre's equipment | |
US10547560B1 (en) | Monitoring network communications queues | |
CN115885502A (en) | Diagnosing intermediate network nodes | |
EP3544235A1 (en) | A method for resetting a packet processing component to an operational state | |
US10498591B1 (en) | Isolating service faults using loopbacks | |
CN105704057B (en) | The method and apparatus for determining the type of service of burst port congestion packet loss | |
CN106357688B (en) | A kind of method and apparatus for defending ICMP flood attack | |
CN108322402B (en) | Message processing method, device and system | |
CN102891799B (en) | Method and device for choosing routing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |