CN109561019A - Establish method, Graceful Restart communication equipment and the storage medium of session - Google Patents

Establish method, Graceful Restart communication equipment and the storage medium of session Download PDF

Info

Publication number
CN109561019A
CN109561019A CN201811472361.0A CN201811472361A CN109561019A CN 109561019 A CN109561019 A CN 109561019A CN 201811472361 A CN201811472361 A CN 201811472361A CN 109561019 A CN109561019 A CN 109561019A
Authority
CN
China
Prior art keywords
session
main control
control card
neighbor device
address cluster
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
CN201811472361.0A
Other languages
Chinese (zh)
Other versions
CN109561019B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811472361.0A priority Critical patent/CN109561019B/en
Publication of CN109561019A publication Critical patent/CN109561019A/en
Application granted granted Critical
Publication of CN109561019B publication Critical patent/CN109561019B/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/46Cluster building
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides method, Graceful Restart communication equipment and the storage medium for establishing session, belongs to the communications field.By this method can guarantee include primary main control card and spare main control card communication equipment after master-slave swap occurs, identical address cluster establishes session before being still able to use master-slave swap between neighbor device, and then overcome the technical issues of MPLS forwarding caused by LDP GR failure is interrupted, after realizing primary main control card and spare main control card progress master-slave swap in a communications device, it is still able to use address identical with the first session cluster and establishes the second session, make it possible to continue the technical effect of MPLS forwarding, and improves the reliability of equipment.

Description

Establish method, Graceful Restart communication equipment and the storage medium of session
Technical field
The present invention relates to the communications fields, in particular to method, Graceful Restart communication equipment and the storage for establishing session Medium.
Background technique
At present in LDP (Label Distribution Protocol, tag distribution protocol) double stack session GR When (Graceful Restart, Graceful Restart), after master-slave swap occurs for one of equipment, when re-establishing session, It directly can carry out establishing session according to the conversation message being currently received, to greatly may result in newly-built session and principal and subordinate The address cluster of session before switching is inconsistent, causes LDP GR to fail, and then lead to MPLS (Multiprotocol Label Switching, multiprotocol label switching) forwarding interruption, the business generation of user is seriously affected.
Summary of the invention
To solve the above problems, the method for session is established in offer of the embodiment of the present invention, agreement restarts communication equipment and storage Medium.
In a first aspect, the embodiment of the invention provides a kind of method for establishing session, be applied to include primary main control card and In the communication equipment of spare main control card, which comprises the first session that the primary main control card will be established with neighbor device Corresponding session label information and session address cluster are synchronized to the spare main control card;It is described spare after master-slave swap occurs Main control card receives the conversation message that the neighbor device is sent as new primary main control card;The new primary main control card inquiry Whether have and the matched matching list item of the conversation message;If so, the new primary main control card determines the conversation message institute Whether corresponding address cluster matches with the session address cluster matched in list item;If so, the new primary main control card according to Second session of address the cluster creation and the neighbor device.In embodiments of the present invention, by primary main control card by first The corresponding session label information of session and session address cluster are synchronized to spare main control card;It is described spare after master-slave swap occurs Main control card receives the conversation message that the neighbor device is sent as new primary main control card;The new primary main control card inquiry Whether have and the matched matching list item of the conversation message;If have with the matched matching list item of the conversation message, it is described new Primary main control card determines whether address cluster corresponding to the conversation message matches with the session address cluster matched in list item; If address cluster corresponding to conversation message is matched with the session address cluster matched in list item, the new primary main control card root According to the second session of address cluster creation and the neighbor device, and then guarantee that primary main control card and spare main control card are occurring Identical address cluster establishes session before being still able to use master-slave swap after master-slave swap between neighbor device, and then overcomes The technical issues of MPLS forwarding caused by LDP GR failure is interrupted, realizes and is led in primary main control card and spare main control card After switching, be still able to use the technical effect that address identical with the first session cluster establishes the second session, make it possible to after The technical effect of continuous MPLS forwarding, and effectively increase the reliability of equipment.
Further, the primary main control card by session label information corresponding with the first session that neighbor device is established with Session address cluster is synchronized to the spare main control card, comprising: the primary main control card believes the corresponding session identification of the first session Breath is synchronized to the spare main control card with mapping relations corresponding to the cluster of session address, and the spare main control card by described for reflecting The relationship of penetrating is stored into mapping table.
Further, in the new primary main control card according to the second meeting of address cluster creation and the neighbor device After words, the method also includes: in mapping table described in the new primary master control card removal and corresponding to first session The matching list item.
Further, the new primary main control card inquiry whether have with the conversation message it is matched match list item it Afterwards, further includes: if the new primary main control card inquire with the matched matching list item of the conversation message, determine the session Whether the address cluster that message uses is consistent with the matching session address cluster of list item, if inconsistent, deletes the conversation message. In embodiments of the present invention, when new primary main control card inquires and the matched matching list item of the conversation message, but the matching When the session address cluster of list item and the inconsistent address cluster of the conversation message, by deleting conversation message, and then avoid triggering It establishes and carries out the inconsistent session of the preceding address cluster of master-slave swap with primary main control card and spare main control card, so that will not be because of foundation The inconsistent session of address cluster and cause original session content relevant with the original session be deleted caused by MPLS forward Flow interrupt, and then effectively MPLS converting flow is avoided to interrupt.
Further, in the new primary main control card according to the second meeting of address cluster creation and the neighbor device After words, the method also includes: the new primary main control card is sent successfully to be led to for characterizing second session establishment Information is known to the neighbor device, and the neighbor device is used to delete the history in the neighbor device based on the notification information Timer.
Second aspect, the embodiment of the invention provides a kind of Graceful Restart communication equipment, including primary main control card and spare Main control card, the primary main control card include the first synchronization module, and the spare main control card includes that the second synchronization module and session are logical Believe module, in which:
First synchronization module, for by session label information corresponding with the first session that neighbor device is established and meeting Words address cluster is synchronized to second synchronization module;
Second synchronization module, the first meeting established with neighbor device sent for receiving first synchronization module Talk about corresponding session label information and session address cluster;
The session communication module, the conversation message sent for after master-slave swap occurs, receiving the neighbor device; Whether inquiry has and the matched matching list item of the conversation message;If so, determining that address cluster corresponding to the conversation message is It is no to be matched with the session address cluster matched in list item;If so, according to address cluster creation and the of the neighbor device Two sessions.
Further, first synchronization module is specifically for by the corresponding session label information of the first session and conversationally Mapping relations corresponding to the cluster of location are synchronized to second synchronization module;
The session communication module is also used to store the mapping relations into mapping table.
Further, the session communication module is also used to according to address cluster creation and the of the neighbor device After two sessions, delete in the mapping table with the matching list item corresponding to first session.
Further, the session communication module is also used to inquiring and the matched matching list item of the conversation message When, determine whether the address cluster that the conversation message uses is consistent with the session address cluster in the matching list item, if inconsistent, Delete the conversation message.
Further, the session communication module is also used to according to address cluster creation and the neighbor device After second session, send for characterizing the successful notification information of the second session establishment to the neighbor device, the neighbour Equipment is occupied for deleting the history timer in the neighbor device based on the notification information.
The third aspect, a kind of storage medium provided in an embodiment of the present invention, on the storage medium for storing instruction, when When described instruction is run on computers, so that the computer executes such as the described in any item sides for establishing session of first aspect Method.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, 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 bis- stack session GR failure instance graphs of LDP in the prior art;
Fig. 2 is a kind of flow chart for method for establishing session that first embodiment of the invention provides;
Fig. 3 is the instance graph of the bis- stack session GR of LDP in the method for establish shown in 2 session;
Fig. 4 is the structural block diagram for the Graceful Restart communication equipment that second embodiment of the invention provides.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
As shown in Figure 1, in the prior art, there is two communication equipments Router-A and Router-B, wherein Router-A is (the bis- stack capabilities of LDP refer to for all global enabled LDP GR ability of dual master control equipment, Router-A and Router-B and double stack capabilities In same equipment LDP simultaneously support IPv4 (Internet Protocol version 4, internet protocol version four) and Two kinds of address clusters of IPv6 (Internet Protocol version 6, IPv 6)), Router-A is connect by G1 Mouth is connected with the G1 interface of Router-B.When starting, Router-A can send LDP IPv4 hello by G1 interface and disappear Breath, similarly Router-B also can send LDP IPv4 hello message by G1 interface.Router-A and Router-B are respective G1 interface receive the LDP IPv4 hello message of opposite end, then begin setting up LDP IPv4 session, due to Router-A and Router-B enables GR ability, so can negotiate GR ability when establishing IPv4 session.After session establishment success, Router-A and Router-B enables LDP IPv6 ability in respective G1 interface, then sends LDP by respective G1 interface IPv6 hello message, after receiving the LDP IPv6 hello message of opposite end mutually, due in Router-A and Router-B Between be successfully established LDP IPv4 session, so LDP IPv6 session will not be established.Principal and subordinate occurs in Router-A to cut When changing, Helper (assist complete the agreement equipment that restarts) of the Router-B as GR, Router-B can retain the session and The relevant forwarding-table item of the session, and start a history timer for deleting the information retained after time-out.Router- A master-slave swap complete after, if first receive Router-B transmission LDP IPv6 hello message, can attempt with Router-B establishes LDP IPv6 session, when receiving the LDP IPv4 hello message that subsequent Router-B is sent, no longer builds Vertical LDP IPv4 session.Since the LDP IPv4 session between Router-A and Router-B will not be successfully established again, so After the history timer of Router-B is overtime, original LDP IPv4 session forwarding-table item relevant with the session will be deleted, Cause LDP GR to fail, MPLS converting flow is caused to interrupt.
Therefore, exist to solve the MPU in communication equipment in the prior art (Main ProcessingUnit, main control card) Occur master-slave swap after, cause LDP GR fail the problem of, the embodiment of the invention provides a kind of methods for establishing session.
First embodiment
Referring to figure 2., Fig. 2 is a kind of flow chart for the method for establishing session provided in an embodiment of the present invention, the method Applied in the communication equipment including primary main control card and spare main control card, described method includes following steps:
Step S110: the primary main control card by session label information corresponding with the first session that neighbor device is established with Session address cluster is synchronized to the spare main control card.
Optionally, the primary main control card can be MPU (Main ProcessingUnit, master control in distributed apparatus Card), it is also possible to the CPU (Central Processing Unit, central processing unit) of the member device in stacking system.? This, is not especially limited.Spare main control card is mutually backups with the primary main control card, and the spare main control card can be MPU (Main Processing Unit, main control card) is also possible to CPU (Central Processing Unit, central processing Device).Here, being not especially limited.
Optionally, communication equipment can be router, be also possible to interchanger.
Wherein, the first session is the session established for the first time when communication equipment is communicated with neighbor device.It is logical for distribution Believe for equipment, the session usually established by line card (LPU card) and neighbor device.
Optionally, session label information includes the facility information of the neighbor device.For example, facility information includes the neighbours The Label space information that the IP address and neighbor device of equipment use.
Session address cluster for characterize the first session used in Internet Protocol Version, for example, it may be IPv4 or It is IPv6.
As an implementation, step S110 includes: the primary main control card by the corresponding session identification of the first session Mapping relations corresponding to information and session address cluster are synchronized to the spare main control card, and the spare main control card is used for will be described Mapping relations are stored into mapping table.
Wherein, mapping relations refer to the corresponding relationship of session label information Yu session address cluster.
Optionally, mapping table can be a currently newly-built tables of data for storage mapping relationship of spare main control card.
Certainly, in actual use, mapping table is also possible to pre-establish.
Step S120: after master-slave swap occurs, the spare main control card receives the neighbour as new primary main control card Occupy the conversation message of equipment transmission.
Wherein, the conversation message carries session label information.For example, the Hello that session information can be LDP disappears Breath, wherein LDP id information (i.e. session label information) is carried in Hello message.
Step S130: whether the new primary main control card inquiry has and the matched matching list item of the conversation message.
Wherein, matching list item includes session label information and session address cluster.
As an implementation, step S130 includes: that the new primary main control card is taken according to the conversation message The session label information of band is inquired and the matching list item of session identification information match in the mapping table.
For example, as shown in figure 3, after master-slave swap occurs for Router-A, new primary main control card is from Router-B After receiving LDP hello message, first reflected using the LDP ID (i.e. session label information) carried in the hello message received List item is searched in firing table.
Step S140: if so, the new primary main control card determine address cluster corresponding to the conversation message whether with Session address cluster matching in the matching list item.
If find the matching list item with session match messages, the new primary main control card determines that the session disappears Whether address cluster used in ceasing matches with the session address cluster matched in list item, that is, judges ground used in conversation message Whether location cluster is identical as the session address cluster of the first session stored in matching list item.For example, working as the address that conversation message uses When cluster is IPv6, and when the session address cluster of the first session is IPv4, by comparing, address cluster is identical.Assuming that session disappears The address cluster of breath is IPv4, and the session address cluster of the first session is IPv4, the then meeting of the address cluster of conversation message and the first session It is identical to talk about address cluster.
In a possible embodiment, if the new primary main control card inquires and the matched matching of the conversation message List item, address cluster corresponding to the conversation message be it is inconsistent with the session address cluster matched in list item, described in deletion Conversation message.
In embodiments of the present invention, when the new primary main control card inquires and the matched matching list of the conversation message , but the conversation message use address cluster and the not identical address cluster matched in list item when, by deletion conversation message, And then avoid triggering from establishing and carry out the inconsistent session of the preceding address cluster of master-slave swap with primary main control card and spare main control card, so that Original session content relevant with the original session will not be caused to be deleted and lead because the inconsistent session of address cluster is established The MPLS converting flow of cause interrupts, and then effectively MPLS converting flow is avoided to interrupt.
Continue for by taking above-mentioned example as an example, as shown in figure 3, if when finding the matching list item with session match messages, Then check whether the session address cluster of matching list item record is identical with the address cluster that the Router-B hello message sent uses.
In a possible embodiment, if the new primary main control card do not inquire it is matched with the conversation message List item is matched, establishes new session using the conversation message.
Step S150: if so, the new primary main control card is according to the of address cluster creation and the neighbor device Two sessions.
If new primary main control card determines address cluster corresponding to the conversation message and the meeting matched in list item The matching of address cluster is talked about, new primary main control card creates the second session with the neighbor device according to the address cluster.
Optionally, new primary main control card creates the second session with the neighbor device according to the address cluster, comprising: New primary main control card obtains IP address corresponding with the address cluster in neighbor device, root by tag distribution protocol (LDP) The second session with the neighbor device is established according to IP address.To establish the by using address identical with the first session cluster Two sessions, so overcome LDP GR failure caused by MPLS forwarding interrupt the technical issues of, realize primary main control card with After spare main control card carries out master-slave swap, still it is able to use address identical with the first session cluster and establishes the second session, so that It can continue to the technical effect of MPLS forwarding, and improve the reliability of equipment.
In a possible embodiment, in new primary main control card according to address cluster creation and the neighbor device After second session, the method for establishing session further include: in mapping table described in new primary master control card removal with first meeting The corresponding matching list item of words.What those skilled in the art will be apparent that knows matching list item corresponding to the first session at this time It is the corresponding matching list item of the second session.
It in embodiments of the present invention, will be in mapping table and corresponding to first session after establishing the second session The matching list item is deleted, it is possible to reduce the memory footprint of new primary main control card.
In a possible embodiment, is created in the new primary main control card according to the address cluster and set with the neighbours After the second standby session, the method for establishing session further include: the new primary main control card is sent for characterizing described second To the neighbor device, the neighbor device is used for based on described in notification information deletion the successful notification information of session establishment History timer in neighbor device.
In embodiments of the present invention, by sending notification information to the neighbor device, so that neighbor device deleting history Content relevant to the first session and the first session can be deleted by timer to avoid when history timer time-out.In turn It effectively avoids MPLS converting flow from interrupting either data forwarding to lose.
In a possible embodiment, the method for establishing session further include: the timing in the new primary main control card After device time-out, the mapping table for being stored with session label information and session address cluster is deleted.
Continue for by taking above-mentioned example as an example, as shown in figure 3, if new primary main control card determines the conversation message institute Corresponding address cluster is matched with the session address cluster matched in list item, just establishes the second session, i.e. Router-A is being received The hello message can be deleted because address cluster is not identical when the IPv6LDP hello message of Router-B, received Creation LDP IPv4 session can be triggered because address cluster is identical when the IPv4 LDP hello message of Router-B, and deleting should Matching list item of the session in LDP ID and mapping table.To guarantee that LDP IPv4 session can between Router-A and Router-B To rebuild successfully, LDP GR function correctly comes into force.After the success of LDP IPv4 session rebuilding, neighbor device deleting history timing Device.After GR timer expiry in the new primary main control card, session label information and session address cluster will be stored with Mapping table is deleted.
The method provided in an embodiment of the present invention for establishing session, first will established with neighbor device by primary main control card The corresponding session label information of session and session address cluster are synchronized to spare main control card;It is described spare after master-slave swap occurs Main control card receives the conversation message that the neighbor device is sent as new primary main control card;The new primary main control card inquiry Whether have and the matched matching list item of the conversation message;If have with the matched matching list item of the conversation message, it is described new Primary main control card determines whether address cluster corresponding to the conversation message matches with the session address cluster matched in list item; If address cluster corresponding to conversation message is matched with the session address cluster matched in list item, the new primary main control card root According to the second session of address cluster creation and the neighbor device, and then guarantee that primary main control card and spare main control card are occurring Identical address cluster establishes session before being still able to use master-slave swap after master-slave swap between neighbor device, and then overcomes The technical issues of MPLS forwarding caused by LDP GR failure is interrupted, realizes and is led in primary main control card and spare main control card After switching, be still able to use the technical effect that address identical with the first session cluster establishes the second session, make it possible to after The technical effect of continuous MPLS forwarding, and effectively increase the reliability of equipment.
Second embodiment
As shown in figure 4, being the schematic diagram of Graceful Restart communication equipment.The Graceful Restart communication equipment 400 includes primary Main control card 410 and spare main control card 420, the primary main control card 410 include the first synchronization module, the spare main control card 420 Including the second synchronization module and session communication module, in which:
First synchronization module, for by session label information corresponding with the first session that neighbor device is established and meeting Words address cluster is synchronized to second synchronization module.
The second communication module, the established with neighbor device for receiving that first synchronization module synchronizes The corresponding session label information of one session and session address cluster.
Optionally, first synchronization module is specifically used for the corresponding session label information of the first session and session address Mapping relations corresponding to cluster are synchronized to second synchronization module;
The session communication module is also used to store the mapping relations into mapping table.
After master-slave swap occurs, the spare main control card 420 is as new primary main control card, the session communication module Whether the conversation message sent for receiving the neighbor device, inquiry have and the matched matching list item of the conversation message;If Inquiry has to be used to determine ground corresponding to the conversation message with the matched matching list item of the conversation message, the processing module Whether location cluster matches with the session address cluster matched in list item.
Optionally, the session communication module is also used to be created in the session communication module according to the address cluster and institute After the second session for stating neighbor device, delete in the mapping table with the matching list item corresponding to second session.
Optionally, the session communication module be also used to inquire with the conversation message is matched match list item when, Determine whether the address cluster that the conversation message uses is consistent with the session address cluster in the matching list item, if inconsistent, deletes Except the conversation message.
Optionally, the session communication module is also also used to do not inquiring and the matched matching list of the conversation message Xiang Shi establishes new session using the conversation message.
If address cluster corresponding to the conversation message is matched with the session address cluster matched in list item, the session Communication module is used for the second session according to address cluster creation and the neighbor device.
In a possible embodiment, the session communication module is also used to be created and the neighbour according to the address cluster After the second session for occupying equipment, sends and set for characterizing the successful notification information of the second session establishment to the neighbours Standby, the neighbor device is used to delete the history timer in the neighbor device based on the notification information.
Optionally, the Graceful Restart communication equipment 400 can also include: at least one communication interface 430, at least one Memory 440 and at least one communication bus 450.Wherein, communication bus 450 directly connects logical for realizing these components Letter.
Memory 440 may be, but not limited to, random access memory (Random Access Memory, RAM), only It reads memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) Deng.
Wherein, the communication interface 430 of equipment is used to carry out signaling or data with other node devices in the embodiment of the present invention Communication.Computer-readable instruction fetch is stored in memory 440, when the computer-readable instruction fetch is communicated by Graceful Restart Equipment 400 executes method process shown in above-mentioned Fig. 1.
In the present embodiment, Graceful Restart communication equipment 400 can be router, be also possible to interchanger.
It is understood that structure shown in Fig. 4 is only a kind of structural schematic diagram of Graceful Restart communication equipment 400, it is excellent It is refined that restart communication equipment 400 can also include than more or fewer components shown in Fig. 4.Each component shown in Fig. 4 can be adopted It is realized with hardware, software, or its combination.
3rd embodiment
The embodiment of the present invention also provides a kind of storage medium, on the storage medium for storing instruction, works as described instruction The side for establishing session in first embodiment is realized when running on computers, when the computer program is executed by processor Method, to avoid repeating, details are not described herein again.
In conclusion the embodiment of the present invention provides method, neighbor device and the storage medium for establishing session, pass through primary master The corresponding session label information of first session and session address cluster are synchronized to spare main control card by control card;Master-slave swap is occurring Afterwards, the spare main control card receives the conversation message that the neighbor device is sent as new primary main control card;The new master Whether have and the matched matching list item of the conversation message with main control card inquiry;If having and the matched matching list of the conversation message , the new primary main control card determine address cluster corresponding to the conversation message whether with the session matched in list item The matching of address cluster;It is described new if address cluster corresponding to conversation message is matched with the session address cluster that matches in list item Primary main control card guarantees primary main control card and spare according to address cluster creation and the second session of the neighbor device Identical address cluster establishes meeting before main control card is still able to use master-slave swap after master-slave swap occurs between neighbor device Words, so overcome LDP GR failure caused by MPLS forwarding interrupt the technical issues of, realize primary main control card with it is spare After main control card carries out master-slave swap, it is still able to use the technology effect that address identical with the first session cluster establishes the second session Fruit, makes it possible to continue the technical effect of MPLS forwarding, and effectively increases the reliability of equipment.
In several embodiments provided by the present invention, it should be understood that disclosed system and method can also pass through Other modes are realized.System embodiment described above is only schematical, for example, flow chart and block diagram in attached drawing Show the system of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the 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, technical solution of the present invention 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 a computer equipment (can be a People's computer, server or communication equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (11)

1. a kind of method for establishing session, which is characterized in that set applied to the communication for including primary main control card and spare main control card In standby, which comprises
The primary main control card is same by session label information corresponding with the first session that neighbor device is established and session address cluster It walks to the spare main control card;
After master-slave swap occurs, the spare main control card receives the meeting that the neighbor device is sent as new primary main control card Talk about message;
Whether the new primary main control card inquiry has and the matched matching list item of the conversation message;If so, the new master With main control card determine the conversation message corresponding to address cluster whether match with the session address cluster that matches in list item;If It is that the new primary main control card creates the second session with the neighbor device according to the address cluster.
2. the method according to claim 1, wherein the primary main control card will be established with neighbor device first The corresponding session label information of session and session address cluster are synchronized to the spare main control card, comprising:
The primary main control card is same by the corresponding session label information of the first session and mapping relations corresponding to the cluster of session address Step is to the spare main control card, and the spare main control card is for storing the mapping relations into mapping table.
3. according to the method described in claim 2, it is characterized in that, being created in the new primary main control card according to the address cluster It builds after the second session with the neighbor device, the method also includes:
In mapping table described in the new primary master control card removal with the matching list item corresponding to first session.
4. the method according to claim 1, wherein the new primary main control card inquiry whether have with it is described After the matched matching list item of conversation message, further includes:
If the new primary main control card inquire with the matched matching list item of the conversation message, determine that the conversation message makes Whether address cluster is consistent with the matching session address cluster of list item, if inconsistent, deletes the conversation message.
5. the method according to claim 1, wherein being created in the new primary main control card according to the address cluster It builds after the second session with the neighbor device, the method also includes:
The new primary main control card, which is sent, to be set for characterizing the successful notification information of the second session establishment to the neighbours Standby, the neighbor device is used to delete the history timer in the neighbor device based on the notification information.
6. a kind of Graceful Restart communication equipment, which is characterized in that including primary main control card and spare main control card, the primary master control Card includes the first synchronization module, and the spare main control card includes the second synchronization module and session communication module, in which:
First synchronization module, for by session label information corresponding with the first session that neighbor device is established and conversationally Location cluster is synchronized to second synchronization module;
Second synchronization module, described the established with the neighbor device for receiving that first synchronization module sends The corresponding session label information of one session and session address cluster;
The session communication module, the conversation message sent for after master-slave swap occurs, receiving the neighbor device;Inquiry Whether have and the matched matching list item of the conversation message;If so, determine address cluster corresponding to the conversation message whether with Session address cluster matching in the matching list item;If so, according to the second meeting of address cluster creation and the neighbor device Words.
7. communication equipment according to claim 6, which is characterized in that first synchronization module is specifically used for: by first Mapping relations corresponding to the corresponding session label information of session and session address cluster are synchronized to second synchronization module;
The session communication module is also used to store the mapping relations into mapping table.
8. communication equipment according to claim 7, which is characterized in that the session communication module is also used to according to Cluster creation in address is deleted in the mapping table and corresponding to first session with after the second session of the neighbor device The matching list item.
9. communication equipment according to claim 6, which is characterized in that the session communication module is also used to inquiring With the conversation message is matched match list item when, determine address cluster that the conversation message uses whether with the matching list item In session address cluster it is consistent, if inconsistent, delete the conversation message.
10. communication equipment according to claim 6, which is characterized in that the session communication module is also used to according to With after the second session of the neighbor device, transmission successfully notifies the creation of address cluster for characterizing second session establishment To the neighbor device, it is fixed that the neighbor device is used to delete the history in the neighbor device based on the notification information information When device.
11. a kind of storage medium, which is characterized in that the storage medium for storing instruction, when described instruction on computers When operation, so that the computer executes such as the method described in any one of claim 1 to 5 for establishing session.
CN201811472361.0A 2018-12-03 2018-12-03 Method for establishing session, graceful restart communication device and storage medium Active CN109561019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811472361.0A CN109561019B (en) 2018-12-03 2018-12-03 Method for establishing session, graceful restart communication device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811472361.0A CN109561019B (en) 2018-12-03 2018-12-03 Method for establishing session, graceful restart communication device and storage medium

Publications (2)

Publication Number Publication Date
CN109561019A true CN109561019A (en) 2019-04-02
CN109561019B CN109561019B (en) 2021-02-19

Family

ID=65868787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811472361.0A Active CN109561019B (en) 2018-12-03 2018-12-03 Method for establishing session, graceful restart communication device and storage medium

Country Status (1)

Country Link
CN (1) CN109561019B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056270A (en) * 2007-05-18 2007-10-17 华为技术有限公司 A route convergence method and routing device
CN101179446A (en) * 2006-11-10 2008-05-14 华为技术有限公司 Method and router for reducing continuous duration of error smoothness rebooting status
CN102315969A (en) * 2011-09-22 2012-01-11 中兴通讯股份有限公司南京分公司 Neighbor discovery protocol graceful restart (GR) processing method and device
US20140173133A1 (en) * 2012-12-17 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and system for efficient graceful restart in an open shortest path first (ospf) network
CN107995117A (en) * 2017-12-13 2018-05-04 迈普通信技术股份有限公司 A kind of message forwarding method and board

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179446A (en) * 2006-11-10 2008-05-14 华为技术有限公司 Method and router for reducing continuous duration of error smoothness rebooting status
CN101056270A (en) * 2007-05-18 2007-10-17 华为技术有限公司 A route convergence method and routing device
CN102315969A (en) * 2011-09-22 2012-01-11 中兴通讯股份有限公司南京分公司 Neighbor discovery protocol graceful restart (GR) processing method and device
US20140173133A1 (en) * 2012-12-17 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and system for efficient graceful restart in an open shortest path first (ospf) network
CN107995117A (en) * 2017-12-13 2018-05-04 迈普通信技术股份有限公司 A kind of message forwarding method and board

Also Published As

Publication number Publication date
CN109561019B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US10298436B2 (en) Arbitration processing method after cluster brain split, quorum storage apparatus, and system
CN105933253B (en) Interchanger configuration recovery method under a kind of SDN network
CN102123105B (en) Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP
CN101951345B (en) Message transmitting method and equipment
CN109660639B (en) Data uploading method, device, system and medium
CN106453657A (en) Status information update method and device of smart home equipment
US10813156B2 (en) Method and apparatus for processing network connection
CN106878072B (en) Message transmission method and device
CN106330475A (en) Method and device for managing main and standby nodes in communication system and high availability cluster
CN106412960A (en) Control method for realizing Wi-Fi (Wireless-Fidelity) network configuration
CN105119997A (en) Data processing method of cloud computing system
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN107623703A (en) Global transaction identifies GTID synchronous method, apparatus and system
CN105933379B (en) A kind of method for processing business, equipment and system
CN103152420A (en) Method for avoiding single-point-of-failure of Ovirt virtual management platform
CN109561019A (en) Establish method, Graceful Restart communication equipment and the storage medium of session
CN106169982B (en) Method, device and system for processing expansion port
US20230144294A1 (en) Method for data transmission of audio and video in end-to-end system
CN102946332B (en) A kind of reverse path forwarding check method and apparatus
CN101800700B (en) LSP pre-deleting method based on MPLS and device
CN110109933B (en) Information maintenance method, configuration management database system and storage medium
CN102404228A (en) GR processing method and equipment based on OSPF protocol
RU2675050C1 (en) Method and device for selecting access control address to mac environment
CN102361474B (en) Method and equipment for realizing GR (Graceful Restart) treatment
CN109600256A (en) State switching method and device

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