CN105591951B - The BGP message processing methods and device of pile system - Google Patents

The BGP message processing methods and device of pile system Download PDF

Info

Publication number
CN105591951B
CN105591951B CN201510665365.0A CN201510665365A CN105591951B CN 105591951 B CN105591951 B CN 105591951B CN 201510665365 A CN201510665365 A CN 201510665365A CN 105591951 B CN105591951 B CN 105591951B
Authority
CN
China
Prior art keywords
bgp
messages
host apparatus
sent
notification message
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.)
Active
Application number
CN201510665365.0A
Other languages
Chinese (zh)
Other versions
CN105591951A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510665365.0A priority Critical patent/CN105591951B/en
Publication of CN105591951A publication Critical patent/CN105591951A/en
Application granted granted Critical
Publication of CN105591951B publication Critical patent/CN105591951B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

This application discloses the BGP message processing methods and device of a kind of pile system, wherein pile system runs bgp protocol, and pile system includes:Host apparatus and stand-by equipment, this method include:When as stand-by equipment, TCP agent function is enabled;After receiving the BGP messages that bgp peer is sent, the BGP messages received are cached, and send a notification message to host apparatus;After host apparatus has handled the notification message, the BGP messages of caching are deleted.The application has saved the spatial cache of host apparatus, reduces the occupancy of the cpu resource of host apparatus.

Description

The BGP message processing methods and device of pile system
Technical field
This application involves network communication technology field, more particularly to the BGP message processing methods and dress of a kind of pile system It sets.
Background technology
BGP (Border Gateway Protocol, Border Gateway Protocol) is that one kind both having can be used for different AS Between (Autonomous System, autonomous system), and it can be used for the dynamic routing protocol inside same AS.Run BGP associations The router of view is known as BGP speaker.Bgp neighbor relationship can be established between two BGP speaker, and is establishing bgp neighbor TCP (Transmission Control Protocol, transmission control protocol) connections are established in relational process, TCP connection is established After the completion, so that it may to be exchanged with each other routing iinformation, at this point, this two BGP speaker bgp peer each other.
Type of message in bgp protocol is mainly the following:
Open (opening):First message that TCP connection is sent after establishing, for establishing the connection between bgp peer Relationship.
Update (update):For exchanging routing iinformation between bgp peer.One Update message can issue tool There is a plurality of up to routing of same paths attribute, a plurality of unreachable routing can also be cancelled simultaneously.
Keepalive (keep-alive):BGP speaker periodically sends Keepalive messages to bgp peer, to keep The validity of connection.
Route-refresh (route refresh):The routing of address family is specified to believe for requiring bgp peer to retransmit Breath.
Notification (notice):When BGP speaker detects error condition, just sent out to bgp peer Notification messages, later BGP connections can be interrupted immediately.
Currently, virtualizing skill by IRF (Intelligent Resilient Framework, intelligent elastic framework) etc. Art can link together the more network equipments, form a virtual logical device, hereinafter referred to as pile system, stack Every equipment in system is referred to as member device, and member device is divided into two kinds of roles according to function difference:Host apparatus (Master) and stand-by equipment (Slave), wherein host apparatus is responsible for entire pile system, and stand-by equipment is as primary The alternate device of equipment is run.
When pile system has run bgp protocol, host apparatus and stand-by equipment in pile system can with positioned at BGP speaker outside pile system establishes bgp neighbor relationship, at this point, the TCP between stand-by equipment and external BGP spokesman (Transmission Control Protocol, transmission control protocol) connection is seen on the control plane, is host apparatus and this TCP connection is established between external BGP spokesman, therefore, stand-by equipment receives external BGP spokesman (at this point, outside this BGP speaker is the bgp peer of stand-by equipment) the BGP messages sent when, can directly on give host apparatus and handled.
In this way, when a large amount of BGP messages all directly on give host apparatus processing when, host apparatus needs to distribute larger Spatial cache caches these BGP messages, occupies larger spatial cache, and occupy a large amount of cpu resource to handle These BGP messages.
Invention content
In view of this, this application provides the BGP message processing methods and device of a kind of pile system.
The technical solution of the application is as follows:
On the one hand, a kind of BGP message processing methods of pile system are provided, pile system runs bgp protocol, stacks system System includes:Host apparatus and stand-by equipment, this method include:
When as stand-by equipment, TCP agent function is enabled;
After receiving the BGP messages that bgp peer is sent, the BGP messages received are cached, and send out to host apparatus Send notification message;
After host apparatus has handled notification message, the BGP messages of caching are deleted.
On the other hand, a kind of BGP message process devices of pile system are additionally provided, pile system runs bgp protocol, heap Folded system includes:Host apparatus and stand-by equipment, the device include:Enabled module, receiving module, cache module and transmission mould Block, wherein:
Enabled module, for when the device is located in stand-by equipment, enabling TCP agent function;
Receiving module, for when the device is located in stand-by equipment, receiving the BGP messages that bgp peer is sent;
Cache module, for after the BGP messages that receiving module receives that bgp peer is sent, caching BGP reports Text;It is additionally operable to after the notification message that host apparatus has handled sending module transmission, deletes the BGP messages of caching;
Sending module, for after the BGP messages that receiving module receives that bgp peer is sent, being sent out to host apparatus Send notification message.
In the above technical scheme of the application, stand-by equipment enables TCP agent function, is sent receiving bgp peer BGP messages after, cache the BGP messages received, and send a notification message to host apparatus, handled in host apparatus logical After knowing message, the BGP messages of caching are deleted.Due to caching the BGP messages from bgp peer by stand-by equipment, and nothing It needs host apparatus to cache, therefore spatial cache has been saved for host apparatus, moreover, stand-by equipment will not be straight by these BGP messages It connects and gives host apparatus processing, but send a notification message to host apparatus, the CPU of host apparatus is without directly handling these BGP messages reduce the occupancy of the cpu resource of host apparatus.
Description of the drawings
Fig. 1 is the flow chart of the BGP message processing methods of the pile system of the embodiment of the present application;
Fig. 2 is a kind of configuration diagram of the real network comprising pile system;
Fig. 3 is a kind of structural schematic diagram of the BGP message process devices of the pile system of the embodiment of the present application;
Fig. 4 is another structural schematic diagram of the BGP message process devices of the pile system of the embodiment of the present application;
Fig. 5 is another structural schematic diagram of the BGP message process devices of the pile system of the embodiment of the present application.
Specific implementation mode
In the prior art, stand-by equipment is after receiving the BGP messages that bgp peer is sent, directly on give primary set It is standby to be handled, in this way, host apparatus needs to occupy a large amount of cpu resource to handle these BGP messages, in order to solve existing skill The above problem present in art provides a kind of BGP message processing methods of pile system in the application following embodiment, and A kind of device that can apply this method.
In the method for the embodiment of the present application, stand-by equipment enables TCP agent function, is receiving what bgp peer was sent After BGP messages, the BGP messages received are cached, and send a notification message to host apparatus, it is logical to have handled this in host apparatus After knowing message, the BGP messages of caching are deleted.
Specifically, as shown in Figure 1, the BGP message processing methods of the pile system of the embodiment of the present application include the following steps:
Step S102, stand-by equipment enable TCP agent function;
It is without restriction to how it enables as long as stand-by equipment enables TCP agent function, can receive e.g. Notice to host apparatus is enabled, can also be enabled or other modes are enabled by human configuration.In actual implementation process In, it is main after perceiving stand-by equipment and its bgp peer (that is, external BGP speaker) establishes bgp neighbor relationship TCP connection information of the bgp neighbor relationship on host apparatus can be backed up to the stand-by equipment with equipment;Stand-by equipment The TCP connection information that host apparatus is sent is received and preserved, sets the state that sends and receivees of TCP connection to proxy (generations Reason), it distributes the transmission buffer area for caching BGP messages to be sent and the reception for caching the BGP messages received is slow Deposit area.
Wherein, TCP connection information includes:The address and port of port on stand-by equipment for connecting bgp peer Number, the address of the port on the bgp peer for connecting the stand-by equipment and port numbers, connection status are set to ESTABLISHED (has been established).
After stand-by equipment receives the BGP messages that the bgp peer is sent, it is since TCP sends and receivees state Proxy, therefore step S104 can be executed.
Step S104, stand-by equipment cache the BGP messages, really after receiving the BGP messages that bgp peer is sent The type of message of the fixed BGP messages, executes step S106 later;
At this point, the type of message of the BGP messages received can be Keepalive messages or Route-refresh reports Text or Update messages.
Step S106, stand-by equipment judge whether the BGP messages are Keepalive messages, if so, thening follow the steps Otherwise S108 executes step S114;
Step S108, stand-by equipment send the first notification message to host apparatus, execute step S110 later;
Wherein, the first notification message is used to indicate host apparatus and refreshes BGP between this stand-by equipment and the bgp peer The keepalive timer of neighborhood, for maintaining the bgp neighbor relationship.
Step S110, host apparatus refresh after receiving first notification message indicated by first notification message Bgp neighbor relationship keepalive timer, that is, enable the keepalive timer restart timing, refreshing finish after to stand-by equipment Send the deletion notice for being used to indicate the Keepalive messages for deleting caching;
Step S112 deletes the Keepalive messages of caching after stand-by equipment receives deletion notice;
Step S114, stand-by equipment judge whether the BGP messages are Route-refresh messages, if so, thening follow the steps Otherwise S116 executes step S122;
Step S116, stand-by equipment send third notice message to host apparatus, execute step S118 later;
Wherein, third notice message is used to indicate the routing iinformation that host apparatus needs are sent.
Step S118 after host apparatus receives the third notice message, is assembled and is carried the third notice message institute The Update messages for the routing iinformation that the needs of instruction are sent, and it is handed down to stand-by equipment, step S120 is executed later;
The Update messages after stand-by equipment receives the Update messages, are cached and are sent by step S120 It goes out, after being sent, deletes the Route-refresh messages and Update messages of caching;
Step S122, stand-by equipment judge whether the message is Update messages, if so, S124 is thened follow the steps, otherwise, Execute step S130;
Step S124, stand-by equipment send second notification message to host apparatus, execute step S126 later;
Wherein, second notification message is used to indicate this stand-by equipment and has received Update messages and host apparatus is needed to carry out Processing.
Step S126, the second notification message that host apparatus is sent according to default sequencing processing stand-by equipment, is locating When managing any second notification message, the stand-by equipment is given to receive on the stand-by equipment of the notice transmission second notification message Update messages receive and process the Update messages sent on the stand-by equipment, after having handled the second notification message, to The stand-by equipment sends the deletion notice for being used to indicate the Update messages for deleting caching;
Wherein, default sequencing includes but not limited to:The second notification message first received is first handled, after receive second Notification message post-processes, and the second notification message that receives simultaneously is handled according to preset rules, which can be with Be according to sending device number from big to small sequencing processing, can also be according to sending device number from small to large Sequencing processing.
In the actual implementation process, host apparatus can priority processing this equipment receive from bgp peer Update messages, then, the second notification message that reprocessing stand-by equipment is sent, stand-by equipment have handled any second notice and have disappeared After breath, in addition to notice send the second notification message stand-by equipment delete the Update messages of caching other than, can be with Stand-by equipment is notified to discharge the spatial cache for caching the Update messages.
Step S128 deletes the Update messages of caching after stand-by equipment receives deletion notice;
Step S130, stand-by equipment abandon the BGP messages.
It should be noted that the embodiment of the present invention to stand-by equipment judge the BGP messages whether be Keepalive messages, Route-refresh messages, the sequence of Update messages are without restriction, and above-described embodiment is only to first judging that Keepalive is reported Text, a kind of example for judging Route-refresh messages again, finally judging Update messages.
In the method for the above embodiments of the present application, stand-by equipment enables TCP agent function, is receiving bgp peer hair After the BGP messages come, the BGP messages received is cached, and send a notification message to host apparatus, handled in host apparatus After notification message, the BGP messages of caching are deleted.Due to caching the BGP messages from bgp peer by stand-by equipment, and It is cached without host apparatus, therefore spatial cache has been saved for host apparatus, moreover, stand-by equipment will not be by these BGP messages Host apparatus processing is given on directly, but is sent a notification message to host apparatus, and the CPU of host apparatus is without directly handling this A little BGP messages, reduce the occupancy of the cpu resource of host apparatus.
For the Keepalive messages from bgp peer received, stand-by equipment no longer reports the Keepalive Host apparatus is given on text is direct, but caches the Keepalive messages, and notifies that host apparatus refreshes this stand-by equipment and is somebody's turn to do The keepalive timer of bgp neighbor relationship between bgp peer, in this way, host apparatus no longer needs to caching Keepalive messages, The CPU of host apparatus only need to refresh corresponding keepalive timer, reduce primary without reprocessing Keepalive messages The occupancy of the spatial cache of equipment and the occupancy of cpu resource.
For the Update messages from peer-to-peer received, stand-by equipment no longer by the Update messages it is direct on give To host apparatus, but cache the Update messages and notify host apparatus, wait receive host apparatus report notice after, will receive To Update message up sending handled to host apparatus, and the Update messages are deleted after host apparatus is disposed, In this way, since elder generation is cached on stand-by equipment, then gradually handled by host apparatus, reduce the caching of host apparatus The occupancy in space alleviates the burden of the CPU of host apparatus.
For the Route-refresh messages from peer-to-peer received, stand-by equipment is no longer by the Route- Host apparatus is given on refresh messages are direct, but caches the Route-refresh messages and notifies host apparatus, is being connect After receiving the Update messages that host apparatus is sent for the notice, caches the Update messages and send, sending The Route-refresh messages and Update messages of caching are deleted after finishing, in this way, since host apparatus no longer needs to caching Route- The CPU of refresh messages, host apparatus need to only be assembled without reprocessing Route-refresh according to the notice of stand-by equipment Update messages reduce the occupancy of the spatial cache of host apparatus and the occupancy of cpu resource.
By taking real network as shown in Figure 2 as an example, method that above-described embodiment is described in detail.In fig. 2, router R1, R2, R3 and R4 constitute an annular pile system, wherein R1 is host apparatus, and R2, R3 and R4 are stand-by equipment.The stacking System operation bgp protocol, R2 and router R5 establish bgp neighbor.It is 10.1.1.1/ that the address of the interface P1 of R5 is connected on R2 It is 10.1.1.2/24 that the address of the interface P2 of R2 is connected on 24, R5.
R2 enables TCP agent function;
After perceiving R2 and R5 and establishing bgp neighbor relationship, R1 is by TCP of the bgp neighbor relationship in this equipment Link information is backed up to the R2;
After R2 receives the TCP connection information that R1 is sent, preserve the TCP connection information, and by the reception of TCP connection and Transmission state is set as proxy, distributes transmission buffer area for caching BGP messages to be sent and is received for caching The order caching area of BGP messages;Wherein, the TCP connection information of preservation is as shown in table 1:
Table 1
Local terminal interface IP address and port numbers Opposite end interface IP address and port numbers Connection status
10.1.1.1:179 10.1.1.2:11830 ESTABLISHED
Explanation:179 be the port numbers of BGP.
R5 sends Keepalive messages to R2;After R2 receives the Keepalive messages, the Keepalive messages are cached And send the first notification message to R1;After R1 receives first notification message, refresh the bgp neighbor relationship between R2 and R5 Keepalive timer after the completion of refreshing, sends to be used to indicate to R2 and deletes caching to maintain the bgp neighbor relationship normal The deletion of Keepalive messages notifies;After R2 receives deletion notice, the Keepalive messages of caching are deleted.
R5 sends Update messages to R2;After R2 receives the Update messages, caches the Update messages and sent out to R1 Send second notification message;After R1 receives the second notification message, it is logical that second sent on R3 and R4 has been had received before finding Know that message, the second notification message sent on R3 come number one, the second notification message sent on R4 comes No. second, then will be on R2 The third notice message sent comes third number, after the second notification message sent on having handled R3 and R4, is sent on processing R2 Second notification message notifies to send the Update reports from R5 received on R2 in the second notification message sent on handling R2 Text, after receiving and having handled the Update messages, the deletion that the Update messages for being used to indicate deletion caching are sent to R2 is logical Know;After R2 receives deletion notice, the Update messages of caching are deleted.
R5 sends Route-refresh messages to R2;After R2 receives the Route-refresh messages, caching should Route-refresh messages simultaneously send third notice message to R1;After R1 receives the third notice message, assembling carries this The Update messages for the routing iinformation that needs indicated by third notice message are sent, and it is handed down to R2;R2 is received and is cached this The Update messages are sent to R5 by Update messages, after being sent, delete caching Route-refresh messages and Update messages.
For the method in above-described embodiment, a kind of stacking that can apply this method is additionally provided in the embodiment of the present application The BGP message process devices of system.Pile system runs bgp protocol, and pile system includes:Host apparatus and stand-by equipment, The BGP message process devices can be applied in host apparatus or stand-by equipment.
As shown in figure 3, being comprised the following modules in the BGP message process devices:Enabled module 201, receiving module 202, hair Module 203 and cache module 204 are sent, wherein:
Enabled module 201, for when the device is located in stand-by equipment, enabling TCP agent function;
Receiving module 202, for when the device is located in stand-by equipment, receiving the BGP messages that bgp peer is sent;
Sending module 203, for after the BGP messages that receiving module 202 receives that bgp peer is sent, to primary Equipment dispatch order message;
Cache module 204, for after the BGP messages that receiving module 202 receives that bgp peer is sent, caching should BGP messages;It is additionally operable to after the notification message that host apparatus has handled the transmission of sending module 203, deletes the BGP reports of caching Text.
Wherein, if the BGP messages that receiving module 202 receives are Keepalive messages, sending module 203 is to primary What equipment was sent is the first notification message, and the first notification message is used to indicate host apparatus and refreshes this stand-by equipment and this BGP pairs The keepalive timer of bgp neighbor relationship between equal bodies;
At this point, receiving module 202, is additionally operable to receive bgp neighbor of the host apparatus indicated by the first notification message of refreshing The deletion notice sent after the keepalive timer of relationship;
Cache module 204 is specifically used for:Host apparatus, which is received, in receiving module 202 is refreshing the first notification message meaning After the deletion notice sent after the keepalive timer for the bgp neighbor relationship shown, the Keepalive messages of caching are deleted.
Wherein, as shown in figure 4, further including in the device:Refresh module 205, wherein:
Receiving module 202 is additionally operable to when the device is located in host apparatus, receives the first notice that stand-by equipment is sent Message;
Refresh module 205 refreshes first notice and disappears after receiving the first notification message in receiving module 202 The keepalive timer of the indicated bgp neighbor relationship of breath;
Sending module 203 is additionally operable to close in the bgp neighbor that refresh module 205 has refreshed indicated by first notification message After the keepalive timer of system, the deletion notice for being used to indicate the Keepalive messages for deleting caching is sent to stand-by equipment.
Wherein, if the BGP messages that receiving module 202 receives are Update messages, sending module 203 is to host apparatus What is sent is second notification message, and second notification message is used to indicate this stand-by equipment and has received Update messages and need primary Equipment is handled;
At this point, receiving module 202, is additionally operable to receive the deletion that host apparatus has been sent after having handled second notification message Notice;
Cache module 204 is specifically used for:Receiving module 202 receive host apparatus handled second notification message it After the deletion notice sent afterwards, the Update messages of caching are deleted.
As shown in figure 5, further including in the device:Processing module 206, wherein:
Processing module 206, for when the device is located in host apparatus, stand-by equipment to be handled according to default sequencing The second notification message sent;
Sending module 203 is additionally operable to after processing module 206 has handled any second notification message, to send this The stand-by equipment of two notification messages sends the deletion notice for being used to indicate the Update messages for deleting caching.
Wherein, processing module 206 includes:Notification unit and message receive processing unit, wherein:
Notification unit, for when processing is to any second notification message, notice to send the spare of the second notification message The Update messages that the stand-by equipment receives are given in equipment;
Message receives processing unit, for receiving and processing the Update messages sent on the stand-by equipment.
Wherein, if the BGP messages that receiving module 202 receives are Route-refresh messages, sending module 203 to What host apparatus was sent is third notice message, and third notice message is used to indicate host apparatus and needs the routing iinformation sent;
Receiving module 202, is additionally operable to receive carrying of sending of host apparatus and needs to send out indicated by third notice message The Update messages of the routing iinformation sent;
Cache module 204 is additionally operable to carry third notice message what receiving module 202 received that host apparatus sends After the Update messages for the routing iinformation that indicated needs are sent, which is cached, in sending module After 203 send the Update messages of caching, the Route-refresh messages and Update messages of caching are deleted;
Sending module 203 is additionally operable to send out the Update messages that the host apparatus cached in cache module 204 is sent It goes.
To sum up, the application above example can reach following technique effect:
Stand-by equipment enables TCP agent function, and after receiving the BGP messages that bgp peer is sent, caching receives BGP messages, and send a notification message to host apparatus, after host apparatus has handled notification message, delete the BGP of caching Message.It due to caching the BGP messages from bgp peer by stand-by equipment, is cached without host apparatus, therefore is primary Equipment has saved spatial cache, moreover, stand-by equipment will not by these BGP messages it is direct on give host apparatus processing, but It sends a notification message to host apparatus, the CPU of host apparatus reduces host apparatus without directly handling these BGP messages The occupancy of cpu resource.
For the Keepalive messages from bgp peer received, stand-by equipment no longer reports the Keepalive Host apparatus is given on text is direct, but caches the Keepalive messages, and notifies that host apparatus refreshes this stand-by equipment and is somebody's turn to do The keepalive timer of bgp neighbor relationship between bgp peer, in this way, host apparatus no longer needs to caching Keepalive messages, The CPU of host apparatus only need to refresh corresponding keepalive timer, reduce primary without reprocessing Keepalive messages The occupancy of the spatial cache of equipment and the occupancy of cpu resource.
For the Update messages from peer-to-peer received, stand-by equipment no longer by the Update messages it is direct on give To host apparatus, but cache the Update messages and notify host apparatus, wait receive host apparatus report notice after, will receive To Update message up sending handled to host apparatus, and the Update messages are deleted after host apparatus is disposed, In this way, since elder generation is cached on stand-by equipment, then gradually handled by host apparatus, reduce the caching of host apparatus The occupancy in space alleviates the burden of the CPU of host apparatus.
For the Route-refresh messages from peer-to-peer received, stand-by equipment is no longer by the Route- Host apparatus is given on refresh messages are direct, but caches the Route-refresh messages and notifies host apparatus, is being connect After receiving the Update messages that host apparatus is sent for the notice, caches the Update messages and send, sending The Route-refresh messages and Update messages of caching are deleted after finishing, in this way, since host apparatus no longer needs to caching Route- The CPU of refresh messages, host apparatus need to only be assembled without reprocessing Route-refresh according to the notice of stand-by equipment Update messages reduce the occupancy of the spatial cache of host apparatus and the occupancy of cpu resource.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.

Claims (14)

1. a kind of Border Gateway Protocol (BGP) message processing method of pile system, the pile system runs bgp protocol, described Pile system includes:Host apparatus and stand-by equipment, which is characterized in that the method includes:
When as stand-by equipment, TCP agent function is enabled;
After receiving the BGP messages that bgp peer is sent, the BGP messages received are cached, and send and lead to host apparatus Know message;
After host apparatus has handled the notification message, the BGP messages of caching are deleted.
2. if according to the method described in claim 1, it is characterized in that, the BGP messages received are keep-alive Keepalive Message, then what is sent to host apparatus is the first notification message, and first notification message is used to indicate host apparatus and refreshes this The keepalive timer of bgp neighbor relationship between stand-by equipment and the bgp peer;
After host apparatus has handled the notification message, the method for deleting the BGP messages of caching includes:
Host apparatus is received to send after the keepalive timer for refreshing the bgp neighbor relationship indicated by first notification message Deletion notice, delete the Keepalive messages of caching.
3. according to the method described in claim 2, it is characterized in that, as host apparatus when, the method further includes:
After receiving the first notification message that stand-by equipment is sent, refresh the BGP indicated by the first notification message received The keepalive timer of neighborhood refreshes after finishing and sends the Keepalive messages for being used to indicate and deleting and caching to stand-by equipment Deletion notice.
4. if according to the method described in claim 1, it is characterized in that, the BGP messages received are update Update reports Text, then what is sent to host apparatus is second notification message, and the second notification message is used to indicate this stand-by equipment and has received Update messages simultaneously need host apparatus to be handled;
After host apparatus has handled the notification message, the method for deleting the BGP messages of caching includes:
The deletion notice that host apparatus is sent after having handled the second notification message is received, the described of caching is deleted Update messages.
5. according to the method described in claim 4, it is characterized in that, as host apparatus when, the method further includes:
According to the second notification message sent of default sequencing processing stand-by equipment, after being disposed, spare set to this Preparation send the deletion notice for being used to indicate the Update messages for deleting caching.
6. according to the method described in claim 5, it is characterized in that, the method for processing second notification message includes:
Notice sends the stand-by equipment of the second notification message, and the Update messages for above giving the stand-by equipment to receive receive and locate Manage the Update messages sent on the stand-by equipment.
7. if according to the method described in claim 1, it is characterized in that, the BGP messages received are route refreshes Route-refresh messages, then what is sent to host apparatus is third notice message, and the third notice message is used to indicate master The routing iinformation for needing to send with equipment;
After host apparatus has handled the notification message, the method for deleting the BGP messages of caching includes:
Receive the routing iinformation that the needs carried indicated by the third notice message that host apparatus is sent are sent The Update messages are cached and are sent by Update messages;
After being sent, the Route-refresh messages of caching and the Update messages are deleted.
8. a kind of Border Gateway Protocol (BGP) message process device of pile system, the pile system runs bgp protocol, described Pile system includes:Host apparatus and stand-by equipment, which is characterized in that described device includes:Enabled module, receiving module, Cache module and sending module, wherein:
The enabled module, for when described device is located in stand-by equipment, enabling TCP agent function;
The receiving module, for when described device is located in stand-by equipment, receiving the BGP messages that bgp peer is sent;
The sending module, for after the BGP messages that the receiving module receives that bgp peer is sent, being set to primary It is standby to send a notification message;
The cache module, for after the BGP messages that the receiving module receives that bgp peer is sent, caching the BGP Message;It is additionally operable to after the notification message that host apparatus has handled that the sending module is sent, deletes the BGP messages of caching.
9. device according to claim 8, which is characterized in that if the BGP messages that the receiving module receives are keep-alives Keepalive messages, then what the sending module was sent to host apparatus is the first notification message, and first notification message is used Refresh the keepalive timer of the bgp neighbor relationship between this stand-by equipment and the bgp peer in instruction host apparatus;
The receiving module is additionally operable to receive bgp neighbor relationship of the host apparatus indicated by refreshing first notification message Keepalive timer after send deletion notice;
The cache module is specifically used for:Host apparatus, which is received, in the receiving module is refreshing the first notification message institute After the deletion notice sent after the keepalive timer of the bgp neighbor relationship of instruction, the Keepalive reports of caching are deleted Text.
10. device according to claim 9, which is characterized in that described device further includes:Refresh module, wherein:
The receiving module is additionally operable to when described device is located in host apparatus, receives the first notice that stand-by equipment is sent Message;
The refresh module refreshes first notification message after receiving the first notification message in the receiving module The keepalive timer of indicated bgp neighbor relationship;
The sending module is additionally operable to refresh the bgp neighbor relationship indicated by first notification message in the refresh module Keepalive timer after, to stand-by equipment send be used to indicate delete caching Keepalive messages deletion notice.
11. device according to claim 8, which is characterized in that if the BGP messages that the receiving module receives are updates Update messages, then what the sending module was sent to host apparatus is second notification message, and the second notification message is used for Indicate that this stand-by equipment has received Update messages and host apparatus is needed to be handled;
It is logical to be additionally operable to the deletion that reception host apparatus is sent after having handled the second notification message for the receiving module Know;
The cache module is specifically used for:Host apparatus, which is received, in the receiving module is handling the second notification message After the deletion notice sent later, the Update messages of caching are deleted.
12. according to the devices described in claim 11, which is characterized in that described device further includes:Processing module, wherein:
The processing module, for when described device is located in host apparatus, stand-by equipment to be handled according to default sequencing The second notification message sent;
The sending module is additionally operable to after the processing module has handled any second notification message, to send this second The stand-by equipment of notification message sends the deletion notice for being used to indicate the Update messages for deleting caching.
13. device according to claim 12, which is characterized in that the processing module includes:
Notification unit, for when handling any second notification message, notifying the stand-by equipment of the transmission second notification message, on Give the Update messages that the stand-by equipment receives;
Message receives processing unit, for receiving and processing the Update messages sent on the stand-by equipment.
14. device according to claim 8, which is characterized in that if the BGP messages that the receiving module receives are routings Refresh Route-refresh messages, then what the sending module was sent to host apparatus is third notice message, and the third is logical Know that message is used to indicate host apparatus and needs the routing iinformation sent;
The receiving module, is additionally operable to receive carrying of sending of host apparatus and needs to send out indicated by the third notice message The Update messages of the routing iinformation sent;
The cache module, is additionally operable to receive the third notice that carries that host apparatus is sent in the receiving module and disappears After the Update messages for the routing iinformation that the indicated needs of breath are sent, which is cached, in the hair After sending module to send the Update messages of caching, the Route-refresh messages of caching and described are deleted Update messages;
The sending module is additionally operable to send out the Update messages that the host apparatus cached in the cache module is sent It goes.
CN201510665365.0A 2015-10-15 2015-10-15 The BGP message processing methods and device of pile system Active CN105591951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510665365.0A CN105591951B (en) 2015-10-15 2015-10-15 The BGP message processing methods and device of pile system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510665365.0A CN105591951B (en) 2015-10-15 2015-10-15 The BGP message processing methods and device of pile system

Publications (2)

Publication Number Publication Date
CN105591951A CN105591951A (en) 2016-05-18
CN105591951B true CN105591951B (en) 2018-11-09

Family

ID=55931183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510665365.0A Active CN105591951B (en) 2015-10-15 2015-10-15 The BGP message processing methods and device of pile system

Country Status (1)

Country Link
CN (1) CN105591951B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206786B (en) * 2016-12-16 2021-01-26 新华三技术有限公司 Equipment stack establishing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889464A (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101072238A (en) * 2007-07-09 2007-11-14 中兴通讯股份有限公司 Method for realizing identical subnet communication for MPLS three-layer virtual special net
CN102957623A (en) * 2012-11-28 2013-03-06 杭州华三通信技术有限公司 Maintenance method and equipment of neighborhood of border gate protocol
CN103957161A (en) * 2014-04-04 2014-07-30 杭州华三通信技术有限公司 Packet forwarding method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8503289B2 (en) * 2010-03-19 2013-08-06 Brocade Communications Systems, Inc. Synchronizing multicast information for linecards

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889464A (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101072238A (en) * 2007-07-09 2007-11-14 中兴通讯股份有限公司 Method for realizing identical subnet communication for MPLS three-layer virtual special net
CN102957623A (en) * 2012-11-28 2013-03-06 杭州华三通信技术有限公司 Maintenance method and equipment of neighborhood of border gate protocol
CN103957161A (en) * 2014-04-04 2014-07-30 杭州华三通信技术有限公司 Packet forwarding method and device

Also Published As

Publication number Publication date
CN105591951A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN109842906B (en) Communication method, device and system
CN105024855B (en) Distributed type assemblies manage system and method
JP2577538B2 (en) Method and system for maintaining a routing path
CN106713084B (en) Multi-gateway system of Internet of things
CN105897486B (en) A kind of method of Stream Control Transmission Protocol Service hot backup
US11283730B2 (en) Data migration method and apparatus
US20170214609A1 (en) Forwarding method and forwarding device
CN102624745B (en) Method and device for establishing PCEP session
WO2016086713A1 (en) Equal-cost multi-path outbound interface update method and apparatus
JP5962676B2 (en) Information processing apparatus, information processing method, and program
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN106101297B (en) A kind of message answer method and device
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
CN103560962A (en) Method for automatically updating host routing table entries of Ethernet switch and switch
WO2018099308A1 (en) Method and apparatus for supporting address changes, and storage medium
CN106230870A (en) Proprietary protocol document transmission system and method
CN104601365A (en) Monitoring method and device for node device
JP2013175916A5 (en)
EP3291486B1 (en) Selective transmission of bidirectional forwarding detection (bfd) messages for verifying multicast connectivity
CN105591951B (en) The BGP message processing methods and device of pile system
CN103107942B (en) The tracking of a kind of static routing and equipment
CN107786654B (en) A kind of control message discontinuous communication means, apparatus and system
US8755319B2 (en) Host route convergence
CN105991629B (en) TCP connection method for building up and device
CN108259636A (en) A kind of message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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