CN108933818A - Communication means and device - Google Patents

Communication means and device Download PDF

Info

Publication number
CN108933818A
CN108933818A CN201810644985.XA CN201810644985A CN108933818A CN 108933818 A CN108933818 A CN 108933818A CN 201810644985 A CN201810644985 A CN 201810644985A CN 108933818 A CN108933818 A CN 108933818A
Authority
CN
China
Prior art keywords
active
communication
communication equipment
switched
standby process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810644985.XA
Other languages
Chinese (zh)
Other versions
CN108933818B (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 CN201810644985.XA priority Critical patent/CN108933818B/en
Publication of CN108933818A publication Critical patent/CN108933818A/en
Application granted granted Critical
Publication of CN108933818B publication Critical patent/CN108933818B/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/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Communication means and device provided by the present application, are related to data communication technology field.Communication control unit is monitored the current state of the routing protocol process in two communication equipments for establishing neighborhood, when the active and standby process of routing protocol process generation for monitoring any communication equipment is switched, send control instruction, so as to which the opposite end communication equipment for the communication equipment that active and standby process is switched occurs using the default connection retention time, maintain the neighborhood between two communication equipments, message reception, caused communication disruption are carried out using the original connection retention time to avoid opposite end communication equipment.Wherein, the connection retention time is preset greater than two communication equipments when establishing neighborhood, the determining original connection retention time.When the active and standby process of routing protocol process generation is switched, it is elongated that the retention time will be connected, it is possible to prevente effectively from switched because active and standby process occurs for routing protocol process, and opposite end communication equipment receives message time-out, caused communication disruption.

Description

Communication means and device
Technical field
This application involves data communication technology fields, in particular to a kind of communication means and device.
Background technique
Routing Protocol (for example, boundary network management protocol (English: Border Gateway Protocol, referred to as: BGP)) After establishing neighborhood between communication equipment (for example, router or interchanger), Routing Protocol is quick induction network change, if It has counted keep alive Packet (Keepalive information), survival timer and has kept timer.Wherein, keep alive Packet is for safeguarding communication Neighborhood between equipment, and detect the validity of connection.After establishing Routing Protocol connection between communication equipment, communication is set Keep alive Packet is sent to opposite end communication equipment according to survival timer timing between standby, to prevent opposite end communication equipment from thinking to route Agreement disconnecting.Specifically, if opposite end communication equipment is within the connection retention time (Hold time) for keeping timer setting Keep alive Packet or the message of any other type are not received, then it is assumed that Routing Protocol disconnecting, to exit connection.In this feelings Under condition, reduces time-to-live and connection retention time, can more be quickly detected the failure of communication link, and be conducive to road By the fast convergence of agreement.
Meanwhile being kept for the Connection Time is to be determined in the neighborhood establishment process of Routing Protocol by message negotiation. Once therefore neighborhood is established, kept for the Connection Time cannot change.It is kept for the Connection Time if changed, communication is needed to set It is standby disconnect after reconnect.
On distributed apparatus usually using Routing Protocol it is uninterrupted routing (English: Nonstop Routing, abbreviation: NSR) function establishes the communication connection having between the communication equipment of neighborhood to guarantee in software upgrading or abnormal restarting It does not turn off, routes and forward and do not interrupt.It is carried out in active and standby process reversed process in communication equipment, standby process originally can upgrade into Host process, if hardware performance is insufficient or routing quantity is larger, the data backed up before have not been handled also, and standby process is needed these Data processing is complete, can just upgrade to host process, if this escalation process takes long time, will lead to opposite end communication equipment may be The keep alive Packet in message is not received in the connection retention time, this results in opposite end communication equipment to receive message time-out, neighbours Routing failure is not interrupted between communication equipment.
Summary of the invention
Embodiments herein describes a kind of communication means and device, and active and standby process occurs to solve routing protocol process When switching, because opposite end communication equipment receives message time-out, caused communication disruption.
In a first aspect, the embodiment of the present application provides a kind of communication means, it is applied to communication control unit, the communication control Equipment is established with two communication equipments for establishing neighborhood and is communicated, which comprises
The current state of routing protocol process in described two communication equipments is monitored;
When the routing protocol process for monitoring any communication equipment occurs active and standby process and switches, to leading The opposite end communication equipment for the communication equipment that standby process is switched sends the first control instruction, so that the opposite end communication equipment is according to institute The first control instruction is stated, the neighborhood between described two communication equipments is maintained using the default connection retention time;
Wherein, the default connection retention time is greater than described two communication equipments when establishing neighborhood, determines The original connection retention time.
Optionally, in the present embodiment, the method also includes:
After first control instruction is sent to the opposite end communication equipment, detects the active and standby process of generation and switch Communication equipment the active and standby process of the routing protocol process whether be completed switch;
It is switched in the active and standby process that the routing protocol process is completed in the communication equipment that the active and standby process of generation is switched When, the second control instruction is sent to the opposite end communication equipment, so that the opposite end communication equipment refers to according to second control It enables, the neighborhood between described two communication equipments is maintained using the original connection retention time.
Optionally, in the present embodiment, the detection is described occurs whether the communication equipment that active and standby process is switched is completed The step of active and standby process of the routing protocol process is switched include:
Detect whether that receiving the communication equipment that the active and standby process of generation is switched passes through network protocol configuration interface transmission Active and standby process switch the notice of completion;
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion;
If not receiving the notice, it is unfinished to determine that the active and standby process of the routing protocol process is switched.
Optionally, in the present embodiment, it is described whether the communication equipment that the active and standby process of the detection generation is switched is completed The step of active and standby process of routing protocol process is switched include:
Detect it is described occur communication equipment that active and standby process is switched whether within the default connection retention time to described Opposite end communication equipment sends message;
Described communication equipment that active and standby process is switched occurs within the default connection retention time to described detecting When the message that opposite end communication equipment is sent, determine that the active and standby process of the routing protocol process switches completion, no person, described in judgement The active and standby process of routing protocol process is switched unfinished.
Optionally, in the present embodiment, the current state to the routing protocol process in described two communication equipments into Before row monitoring, the method also includes:
Receive the session negotiation information that described two communication equipments report after establishing neighborhood, the session negotiation letter Breath includes the original connection retention time;
The original connection retention time is stored in the communication control unit.
Second aspect, the embodiment of the present application also provide a kind of communication device, are applied to communication control unit, the communication control Control equipment is established with two communication equipments for establishing neighborhood and is communicated, and described device includes:
Monitoring modular is monitored for the current state to the routing protocol process in described two communication equipments;
First sending module, for monitor any communication equipment the routing protocol process occur it is active and standby into When journey is switched, the first control instruction is sent to the opposite end communication equipment that the communication equipment that active and standby process is switched occurs, so that described Opposite end communication equipment is according to first control instruction, before the described two communication equipments of maintenance of default connection retention time Neighborhood;
Wherein, the default connection retention time is greater than described two communication equipments when establishing neighborhood, determines The original connection retention time.
Optionally, in the present embodiment, described device further include:
Detection module, after first control instruction is sent to the opposite end communication equipment, detection is led The active and standby the process whether communication equipment that standby process is switched is completed the routing protocol process is switched;
Second sending module, for it is described occur the communication equipment that active and standby process is switched be completed the Routing Protocol into When the active and standby process of journey is switched, the second control instruction is sent to the opposite end communication equipment, so that the opposite end communication equipment root According to second control instruction, the neighborhood between described two communication equipments is maintained using the original connection retention time.
Optionally, in the present embodiment, the detection module is specifically used for:
Detect whether that receiving the communication equipment that the active and standby process of generation is switched passes through network protocol configuration interface transmission Active and standby process switch the notice of completion;
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion;
If not receiving the notice, it is unfinished to determine that the active and standby process of the routing protocol process is switched.
Optionally, in the present embodiment, the detection module is specifically used for:
Detect it is described occur communication equipment that active and standby process is switched whether within the default connection retention time to described Opposite end communication equipment sends keep alive Packet;
Described communication equipment that active and standby process is switched occurs within the default connection retention time to described detecting When the keep alive Packet that opposite end communication equipment is sent, determine that the active and standby process of the routing protocol process switches completion, no person determines The active and standby process of the routing protocol process is switched unfinished.
Optionally, in the present embodiment, described device further include:
Receiving module, the session negotiation information reported after establishing neighborhood for receiving described two communication equipments, The session negotiation information includes the original connection retention time;
Memory module, for the original connection retention time to be stored in the communication control unit.
The third aspect, the embodiment of the present application also provide a kind of communication control unit, and the communication control unit includes processing Device and the nonvolatile memory for being stored with several computer instructions, when the computer instruction is executed by the processor, institute It states communication control unit and executes communication means described in first aspect.
Fourth aspect, the embodiment of the present application also provide a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes calculating Machine program, communication control unit executes first aspect institute the computer program controls the readable storage medium storing program for executing when running where The communication means stated.
In terms of existing technologies, the application has the advantages that
Communication means and device provided by the embodiments of the present application, two communications of the communication control unit to neighborhood is established The state of the routing protocol process of equipment is monitored.If it is active and standby to monitor that the routing protocol process of a wherein communication equipment occurs Process is switched, and communication control unit sends control instruction, makes the opposite end communication equipment that the communication equipment that active and standby process is switched occurs Using the default connection retention time longer than the original connection retention time, the neighborhood between two communication equipments is maintained, And then the opposite end communication equipment is avoided to carry out message reception, caused communication disruption using the original connection retention time.
In embodiments of the present invention, neighborhood is being established since the default connection retention time is greater than two communication equipments When, the original connection retention time determined, therefore, when the active and standby process of routing protocol process generation is switched, when will connect holding Between it is elongated, it is possible to prevente effectively from switch because active and standby process occurs for routing protocol process, and opposite end communication equipment receives message time-out, Caused communication disruption.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the applied environment figure of communication control unit provided by the embodiments of the present application;
Fig. 2 is the structural block diagram of communication control unit provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of communication means provided by the embodiments of the present application;
Fig. 4 is another flow diagram of communication means provided by the embodiments of the present application;
Fig. 5 is a kind of functional block diagram of communication device provided by the embodiments of the present application;
Fig. 6 is another functional block diagram of communication device provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.
Fig. 1 is please referred to, Fig. 1 is the application scenario diagram of communication control unit provided by the embodiments of the present application, as shown, logical Letter control equipment 100 and the first communication equipment 200 and the second communication equipment 300 communicate to connect, wherein the first communication equipment 200 It can be router or interchanger with the second communication equipment 300.
First communication equipment 200 and the second communication equipment 300 are communicated by Routing Protocol (for example, BGP), by taking BGP as an example, First communication equipment 200 and the second communication equipment 300 can be based on transmission control protocol (Transmission Control Protocol, abbreviation TCP) neighborhood is established, after establishing neighborhood, the first communication equipment 200 and the second communication equipment Opposite end communication equipment each other between 300.
Referring to figure 2., Fig. 2 is the structural schematic diagram of communication control unit 100 in Fig. 1 provided by the embodiments of the present application.Institute Stating communication control unit 100 includes communication device 110, memory 111, processor 112 and communication unit 113.
Each element of memory 111, processor 112 and communication unit 113 between each other can directly or indirectly electrically Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other Number line, which is realized, to be electrically connected.
Wherein, the memory 111 may be, but not limited to, random access memory (English: Random Access Memory, referred to as: RAM), read-only memory (English: Read Only Memory, referred to as: ROM), programmable read only memory (English: Programmable Read-Only Memory, referred to as: PROM), erasable read-only memory (English: Erasable Programmable Read-Only Memory, referred to as: EPROM), electricallyerasable ROM (EEROM) (English: Electric Erasable Programmable Read-Only Memory, referred to as: EEPROM) etc..Wherein, memory 111 is for storing Program, the processor 112 execute described program after receiving and executing instruction.The communication unit 113 is for passing through network The communication connection between the communication control unit 100 and the first communication equipment 200 and the second communication equipment 300 is established, is used in combination In sending and receiving by network progress data.
Communication device 110 includes that at least one can be stored in the memory in the form of software or firmware (firmware) In 111 or it is solidificated in the operating system (English: Operating System, abbreviation: OS) of the communication control unit 100 Software function module.The processor 112 is for executing the executable module stored in the memory 111, such as communication dress Software function module included by setting 110 and computer program etc..
It should be understood that structure shown in Fig. 2 is only to illustrate, the communication control unit 100 may also include than in Fig. 2 Shown more perhaps less component or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use Hardware, software, or its combination is realized.
Referring to figure 3., Fig. 3 is the communication party provided by the embodiments of the present application applied to the communication control unit 100 in Fig. 2 The flow chart of method, below by Routing Protocol be BGP for, to the method includes each step illustrated in detail.
Step S310 is monitored the current state of the routing protocol process in two communication equipments.
After establishing bgp neighbor relationship between the first communication equipment 200 and the second communication equipment 300, communication control is set The state of the routing protocol process (hereinafter referred to as bgp process) of standby 100 pair of first communication equipment 200 and the second communication equipment 300 It is monitored, wherein the state of bgp process includes switching for the active and standby process of BGP.
In this step, monitoring bgp process condition mode can be passive monitoring mode, be also possible to actively monitoring side Formula.
In passive monitoring mode, the first communication equipment 200 or the second communication equipment 300 become in bgp process state When change, by the changed communication equipment of bgp process state in a manner of sending notice, communication control unit 100 is notified.
In actively monitoring mode, communication control unit 100 can be set by the first communication equipment 200 or the second communication Standby 300 network configuration protocol interface actively obtains the bgp process state of the first communication equipment 200 and the second communication equipment 300.
Step S320, when the active and standby process of routing protocol process generation for monitoring any communication equipment is switched, to Occur the communication equipment that active and standby process is switched opposite end communication equipment send the first control instruction so that opposite end communication equipment according to First control instruction maintains the neighborhood between described two communication equipments using the default connection retention time.
In this step, active and standby process occurs with the first communication equipment 200 to switch, and using for passive monitoring mode. The bgp process of first communication equipment 200 passes through network configuration protocol interface notification communication control after active and standby process occurs and switches Equipment 100, communication control unit 100 send the first control instruction to opposite end communication equipment (second after receiving the notice Communication equipment 300).
It wherein, include the preset connection retention time in first control instruction, which is greater than When first communication equipment 200 and the second communication equipment 300 establish neighborhood, the determining original connection retention time.
Second communication equipment 300 is maintained after receiving the first control instruction using the preset connection retention time Neighborhood between first communication equipment 200 and the second communication equipment 300, when can specifically be kept using the connection of setting Between to the first communication equipment 200 send keep alive Packet receive.
Since the preset connection retention time is longer relative to the original connection retention time, can be to avoid due to For one communication equipment 200 when carrying out the conversion of active and standby process, because of hardware or time delay caused by routing the factors such as quantity is elongated, and in original Begin not receiving keep alive Packet in the connection retention time, in the communication for causing the first communication equipment 200 and the second communication equipment 300 It is disconnected.
In the above scheme, communication control unit 100 can occur to protect connection when active and standby process is switched in communication equipment It is elongated to hold the time, to solve communication equipment when carrying out active and standby process and switching, the communication disruption that may cause.However, if only It will connect that the retention time is elongated, and will lead to the failure inspection of communication link between the first communication equipment 200 and the second communication equipment 300 Survey fast convergence that is slack-off, while being also unfavorable for Routing Protocol between the first communication equipment 200 and the second communication equipment 300.
To solve the above-mentioned problems, referring to figure 4., in the application implementation, the method is after executing step S320 It can also include step S330 and step S340.Step S330 and step S340 can be after the completion of active and standby process be switched, will even Connecing the retention time shortens, and the failure for being conducive to communication link between the first communication equipment 200 and the second communication equipment 300 is quickly examined The fast convergence of Routing Protocol between survey and the first communication equipment 200 and the second communication equipment 300.
Step S330 and step S340 particular content are as follows:
The master whether communication equipment that active and standby process is switched is completed the routing protocol process occurs for step S330, detection Standby process is switched.
In the present embodiment, communication control unit 100 can be realized using following two mode and be switched to active and standby process Performance is detected.
First way detects whether that receiving the communication equipment that the active and standby process of generation is switched passes through network protocol configuration (Netconf) the active and standby process for the routing protocol process that interface is sent switches the notice of completion.
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion, if not receiving It is unfinished then to determine that the active and standby process of the routing protocol process is switched for the notice.
The second way, detection occur whether the communication equipment that active and standby process is switched connects in the retention time default to right Communication equipment is held to send keep alive Packet.
Detecting that the communication equipment that active and standby process is switched, which occurs, to be connected in the retention time default to opposite end communication equipment When the keep alive Packet of transmission, determine that the active and standby process of the routing protocol process switches completion, no person determines the Routing Protocol The active and standby process of process is switched unfinished.
Optionally, in the present embodiment, communication control unit 100 can be by capturing the first communication equipment 200 and second Keep alive Packet between communication equipment 300 on communication link realizes the detection to keep alive Packet;It can also be set by the first communication Standby 200 or second communication equipment 300 keep alive Packet is mirrored in communication control unit 100, realize the detection to keep alive Packet.
The active and standby process of the routing protocol process is completed in the communication equipment that the active and standby process of generation is switched in step S340 When switching, the second control instruction is sent to opposite end communication equipment, so that the opposite end communication equipment refers to according to second control It enables, the neighborhood between described two communication equipments is maintained using the original connection retention time.
In this step, determine that the communication equipment that active and standby process is switched, which occurs, completes routing association in communication control unit 100 When the active and standby process of view process is switched, the second control instruction is sent to opposite end communication equipment, wherein including in the second control instruction There is the original connection retention time.
Opposite end communication equipment is kept when receiving the second control instruction, by the connection retention time by preset connection Time is changed to the original connection retention time.Opposite end communication equipment maintains described two communications to set using the original connection retention time Neighborhood between standby, specifically, opposite end communication equipment switch the active and standby process of generation by the original connection retention time The keep alive Packet that communication equipment is sent is received.
The above method can monitor the active and standby process switching of routing protocol process, and move when carrying out active and standby process switching The state adjustment connection retention time, it is ensured that under the premise of being not in communication disruption, can quickly detect communication link fails, and road It is restrained by the acceleration of agreement.
Optionally, in the present embodiment, before step S310, the method can also include:
Receive the session negotiation information that two communication equipments report after establishing neighborhood, the session negotiation packet Include the original connection retention time;
The original connection retention time is stored in communication control unit 100.
After first communication equipment 200 and the second communication equipment 300 establish neighborhood, respectively to communication control unit 100 Report session negotiation information.Communication control unit 100 safeguards the meeting between the first communication equipment 100 and the second communication equipment 200 Talk about negotiation information.The time-to-live of IP address, negotiation in the session negotiation information including communication equipment and original connection are kept Time etc., in the present embodiment, communication control unit 100 can save session negotiation information in the form of a table.
In the first communication equipment 200 or the second communication equipment 300 when the active and standby process that routing protocol process occurs is switched, Communication control unit 100 can be obtained by way of tabling look-up, and opposite end corresponding with the communication equipment that the active and standby process of generation is switched is logical Believe the IP address of equipment, and the original connection retention time that two communication equipments of preservation are determined when connecting neighborhood is led to The IP address for crossing opposite end communication equipment is sent to the opposite end communication equipment.At the same time it can also by the IP of two communication equipments Location monitors the communication link between two communication equipments with the presence or absence of keep alive Packet.
Communication means provided in this embodiment, when the active and standby process of routing protocol process generation is switched, when will connect holding Between it is elongated, it is possible to prevente effectively from switch because active and standby process occurs for routing protocol process, and opposite end communication equipment receives message time-out, Caused communication disruption.Simultaneously when active and standby process switches completion, the connection retention time is shortened, it is ensured that be not in communication Under the premise of interruption, communication link fails can be quickly detected, accelerate convergence.
The embodiment of the present application also provides a kind of communication device 110, unlike above example, this communication device 110 It is to describe application scheme from the angle of virtual bench.Referring to figure 5., communication device 110 may include with lower module.
Monitoring modular 1101 is monitored for the current state to the routing protocol process in two communication equipments.
After establishing bgp neighbor between the first communication equipment 200 and the second communication equipment 300, monitoring modular 1101 is right The state of routing protocol process (hereinafter referred to as bgp process) in first communication equipment 200 and the second communication equipment 300 is supervised It surveys, wherein the state of bgp process includes switching for the active and standby process of BGP.
Monitoring modular 1101, which monitors bgp process condition mode, can be passive monitoring mode, be also possible to actively monitoring side Formula.In passive monitoring mode, the first communication equipment 200 or the second communication equipment 300 when bgp process state changes, Monitoring modular 1101 receives the notice sent by the changed communication equipment of bgp process state, obtains bgp process state.? In actively monitoring mode, monitoring modular 1101 can pass through the network configuration of the first communication equipment 200 or the second communication equipment 300 Protocol interface actively obtains the first communication equipment and the second communication equipment bgp process state.
First sending module 1102 is switched for active and standby process to occur in the routing protocol process for monitoring any communication equipment When, the first control instruction is sent to the opposite end communication equipment that the communication equipment that active and standby process is switched occurs, so that opposite end communication is set For according to the first control instruction, the neighborhood between described two communication equipments is maintained using the default connection retention time.
First sending module 1102 sends the first control instruction to opposite end after monitoring modular 1101 receives the notice Communication equipment (the second communication equipment 300), wherein it include the preset connection retention time in first control instruction, When the connection retention time establishes neighborhood greater than the first communication equipment 200 and the second communication equipment 300, determining original company Connect the retention time.So that the second communication equipment 300 is after receiving the first control instruction, when being kept using preset connection Between to the first communication equipment 200 send keep alive Packet receive.Since the preset connection retention time is relative to original Begin connection the retention time it is longer, can to avoid due to the first communication equipment 200 carry out active and standby process conversion when, because of hardware or road The time delay as caused by the factors such as quantity is elongated, and message is not received within the original connection retention time, and the first communication is caused to set Standby 200 and second communication equipment 300 communication disruption.
Fig. 6 is please referred to, in the present embodiment, communication device 110 can also include:
Detection module 1103, after first control instruction is sent to opposite end communication equipment, detection is led The active and standby the process whether communication equipment that standby process is switched is completed the routing protocol process is switched.
In an embodiment of the present embodiment, detection module 1103 is specifically used for:
It detects whether to receive and the master that the communication equipment that active and standby process is switched configures interface transmission by network protocol occurs Standby process switches the notice of completion.
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion;If not receiving It is unfinished then to determine that the active and standby process of the routing protocol process is switched for the notice.
In the another embodiment of the present embodiment, detection module 1103 is specifically used for:
Detection occurs whether the communication equipment that active and standby process is switched connects in the retention time default to opposite end communication equipment Send keep alive Packet.
Detecting that the communication equipment that active and standby process is switched, which occurs, to be connected in the retention time default to opposite end communication equipment When the keep alive Packet of transmission, determine that the active and standby process of the routing protocol process switches completion, no person determines the Routing Protocol The active and standby process of process is switched unfinished.
Second sending module 1104, for occur the communication equipment that active and standby process is switched be completed the Routing Protocol into When the active and standby process of journey is switched, the second control instruction is sent to opposite end communication equipment, so that the opposite end communication equipment is according to institute The second control instruction is stated, the neighborhood between described two communication equipments is maintained using the original connection retention time.
Referring once again to Fig. 6, in the present embodiment, communication device 110 can also include:
Receiving module 1105, the session negotiation letter reported after establishing neighborhood for receiving described two communication equipments Breath, the session negotiation information includes the original connection retention time.
Memory module 1106, for the original connection retention time to be stored in the communication control unit.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that communication control unit 100 executes this Shen Please each embodiment the method all or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only deposits Reservoir (English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, referred to as: RAM), the various media that can store program code such as magnetic or disk.
In conclusion communication means provided by the embodiments of the present application and device.Communication control unit is to establishing neighborhood The routing protocol process states of two communication equipments be monitored.If monitoring the routing protocol process of a wherein communication equipment Active and standby process occurs to switch, communication control unit sends control instruction, makes the opposite end that the communication equipment that active and standby process is switched occurs Communication equipment uses the default connection retention time longer than the original connection retention time, maintains the neighbour between two communication equipments Relationship is occupied, and then avoids the opposite end communication equipment using the progress message reception of original connection retention time, in caused communication It is disconnected.When the active and standby process of routing protocol process generation is switched, it is elongated that the retention time will be connected, it is possible to prevente effectively from because of Routing Protocol Process occurs active and standby process and switches, and opposite end communication equipment receives message time-out, caused communication disruption.Simultaneously in active and standby process When switching completion, the connection retention time is restored, it is ensured that the acceleration that can quickly detect communication link fails and Routing Protocol is received It holds back.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of communication means, which is characterized in that be applied to communication control unit, the communication control unit is closed with neighbours are established Two communication equipments of system establish communication, which comprises
The current state of routing protocol process in described two communication equipments is monitored;
When the active and standby process of routing protocol process generation for monitoring any communication equipment is switched, fallen to active and standby process occurs The opposite end communication equipment of the communication equipment changed sends the first control instruction, so that the opposite end communication equipment is according to first control System instruction, maintains the neighborhood between described two communication equipments using the default connection retention time;
Wherein, the default connection retention time is greater than described two communication equipments when establishing neighborhood, and what is determined is original Connect the retention time.
2. the method as described in claim 1, which is characterized in that described to the opposite end that the communication equipment that active and standby process is switched occurs After communication equipment sends the first control instruction, the method also includes:
It detects and described the communication equipment that active and standby process is switched occurs the active and standby process of the routing protocol process whether is completed to fall It changes;
When the active and standby process that the routing protocol process is completed in the communication equipment that the active and standby process of generation is switched is switched, to It includes original second control instruction for connecting the retention time that the opposite end communication equipment, which is sent, so that opposite end communication is set For according to second control instruction, the neighbours between described two communication equipments are maintained using the original connection retention time Relationship.
3. method according to claim 2, which is characterized in that the detection communication equipment that active and standby process occurs and switches The active and standby process that the routing protocol process whether is completed is switched, comprising:
It detects whether to receive the master that the communication equipment that active and standby process is switched occurs and configures interface transmission by network protocol Standby process switches the notice of completion;
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion;
If not receiving the notice, it is unfinished to determine that the active and standby process of the routing protocol process is switched.
4. method according to claim 2, which is characterized in that whether the communication equipment that the active and standby process of the detection generation is switched The active and standby process that the routing protocol process is completed is switched, comprising:
Detect it is described occur communication equipment that active and standby process is switched whether within the default connection retention time to the opposite end Communication equipment sends keep alive Packet;
Described communication equipment that active and standby process is switched occurs within the default connection retention time to the opposite end detecting When the keep alive Packet that communication equipment is sent, determine that the active and standby process of the routing protocol process switches completion, no person, described in judgement The active and standby process of routing protocol process is switched unfinished.
5. method according to claim 2, the current state to the routing protocol process in described two communication equipments Before being monitored, the method also includes:
Receive the session negotiation information that described two communication equipments report after establishing neighborhood, the session negotiation packet Include the original connection retention time;
The original connection retention time is stored in the communication control unit.
6. a kind of communication device, which is characterized in that be applied to communication control unit, the communication control unit is closed with neighbours are established Two communication equipments of system establish communication, and described device includes:
Monitoring modular is monitored for the current state to the routing protocol process in described two communication equipments;
First sending module is switched for active and standby process to occur in the routing protocol process for monitoring any communication equipment When, the first control instruction is sent to the opposite end communication equipment that the communication equipment that active and standby process is switched occurs, so that the opposite end is logical Believe that equipment according to first control instruction, maintains the neighbours before described two communication equipments using the default connection retention time Relationship;
Wherein, the default connection retention time is greater than described two communication equipments when establishing neighborhood, and what is determined is original Connect the retention time.
7. device as claimed in claim 6, which is characterized in that described device further include:
Detection module, after first control instruction is sent to the opposite end communication equipment, detection occur it is active and standby into The active and standby the process whether communication equipment that journey is switched is completed the routing protocol process is switched;
The routing protocol process is completed in second sending module, the communication equipment for switching in the active and standby process of generation When active and standby process is switched, sending to the opposite end communication equipment includes original second control instruction for connecting the retention time, So that the opposite end communication equipment maintains described two communications according to second control instruction, using the original connection retention time Neighborhood between equipment.
8. device as claimed in claim 7, which is characterized in that the detection module is specifically used for:
It detects whether to receive the master that the communication equipment that active and standby process is switched occurs and configures interface transmission by network protocol Standby process switches the notice of completion;
If receiving the notice, determine that the active and standby process of the routing protocol process switches completion;
If not receiving the notice, it is unfinished to determine that the active and standby process of the routing protocol process is switched.
9. device as claimed in claim 7, which is characterized in that the detection module is specifically used for:
Detect it is described occur communication equipment that active and standby process is switched whether within the default connection retention time to the opposite end Communication equipment sends keep alive Packet;
Described communication equipment that active and standby process is switched occurs within the default connection retention time to the opposite end detecting When the keep alive Packet that communication equipment is sent, determine that the active and standby process of the routing protocol process switches completion, no person, described in judgement The active and standby process of routing protocol process is switched unfinished.
10. device as claimed in claim 7, described device further include:
Receiving module, the session negotiation information reported after establishing neighborhood for receiving described two communication equipments are described Session negotiation information includes the original connection retention time;
Memory module, for the original connection retention time to be stored in the communication control unit.
CN201810644985.XA 2018-06-21 2018-06-21 Communication method and device Active CN108933818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810644985.XA CN108933818B (en) 2018-06-21 2018-06-21 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810644985.XA CN108933818B (en) 2018-06-21 2018-06-21 Communication method and device

Publications (2)

Publication Number Publication Date
CN108933818A true CN108933818A (en) 2018-12-04
CN108933818B CN108933818B (en) 2021-09-07

Family

ID=64446185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810644985.XA Active CN108933818B (en) 2018-06-21 2018-06-21 Communication method and device

Country Status (1)

Country Link
CN (1) CN108933818B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371680A (en) * 2020-03-04 2020-07-03 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN112583708A (en) * 2020-12-25 2021-03-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN113726649A (en) * 2021-09-07 2021-11-30 新华三大数据技术有限公司 Routing information processing method and system
CN114338505A (en) * 2021-12-01 2022-04-12 杭州迪普科技股份有限公司 Route calculation method, device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197697A (en) * 2006-12-04 2008-06-11 华为技术有限公司 Method and device for restraining virtual local area network interface state change
US7406030B1 (en) * 2003-08-25 2008-07-29 Juniper Networks, Inc. Dynamic renegotiation of graceful restart time to avoid double-failure traffic loss
CN102170399A (en) * 2011-05-17 2011-08-31 中兴通讯股份有限公司 Keep-alive time regulation method, device and system
CN104539530A (en) * 2015-01-13 2015-04-22 重庆金美通信有限责任公司 Host/standby switching uninterrupted forwarding method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7406030B1 (en) * 2003-08-25 2008-07-29 Juniper Networks, Inc. Dynamic renegotiation of graceful restart time to avoid double-failure traffic loss
CN101197697A (en) * 2006-12-04 2008-06-11 华为技术有限公司 Method and device for restraining virtual local area network interface state change
CN102170399A (en) * 2011-05-17 2011-08-31 中兴通讯股份有限公司 Keep-alive time regulation method, device and system
CN104539530A (en) * 2015-01-13 2015-04-22 重庆金美通信有限责任公司 Host/standby switching uninterrupted forwarding method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371680A (en) * 2020-03-04 2020-07-03 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN111371680B (en) * 2020-03-04 2022-04-29 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN112583708A (en) * 2020-12-25 2021-03-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN112583708B (en) * 2020-12-25 2022-08-30 新华三技术有限公司 Connection relation control method and device and electronic equipment
CN113726649A (en) * 2021-09-07 2021-11-30 新华三大数据技术有限公司 Routing information processing method and system
CN114338505A (en) * 2021-12-01 2022-04-12 杭州迪普科技股份有限公司 Route calculation method, device, storage medium and computer equipment
CN114338505B (en) * 2021-12-01 2023-06-27 杭州迪普科技股份有限公司 Route calculation method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN108933818B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN108512703B (en) Backup method, device and equipment for BRAS transfer control separation and machine readable storage medium
CN108933818A (en) Communication means and device
CN102281199B (en) Route equipment, route reflector and route information processing method and system
CN102546222B (en) Backup system and fault detection and processing method
CN106533736B (en) Network equipment restarting method and device
CN106603261B (en) Hot backup method, first main device, standby device and communication system
CN102098201A (en) Method for realizing L2TP user access backup and network system
CN103384212A (en) Double-machine high availability scheme for communication application system and implementation thereof
CN102195861A (en) Method and device for establishing BFD (bidirectional forwarding detection) session in route switching process
US20140050092A1 (en) Load sharing method and apparatus
CN107241208B (en) Message forwarding method, first switch and related system
JP2019511861A (en) Basic service set identifier BSSID update
CN111698028A (en) FC link detection method, device, equipment and machine readable storage medium
CN102136947A (en) Method and device for processing link faults
EP2613477B1 (en) Method for triggering route switching and service provider-end provider edge device
US8935564B2 (en) Method for backing up user information and apparatus in standby service node for backing up user information
CN109302328B (en) Hot standby switching method and system for VXLAN (virtual extensible local area network)
CN101909006A (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
US10164823B2 (en) Protection method and system for multi-domain network, and node
CN106487696B (en) Link failure detection method and device
CN114124667A (en) Dual-network-port redundancy backup method and system
CN109787860A (en) Two-way conversion link detection method and device
CN102752159A (en) Link connectivity detection method and equipment
CN112838982B (en) Message transmission path switching method, device and system
CN113037622B (en) System and method for preventing BFD from vibrating

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant