CN104506551B - Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device - Google Patents
Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device Download PDFInfo
- Publication number
- CN104506551B CN104506551B CN201410855196.2A CN201410855196A CN104506551B CN 104506551 B CN104506551 B CN 104506551B CN 201410855196 A CN201410855196 A CN 201410855196A CN 104506551 B CN104506551 B CN 104506551B
- Authority
- CN
- China
- Prior art keywords
- main control
- sent
- protocol massages
- relay device
- control card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
- H04L2012/647—Frame Relay, X.25
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The embodiment of the present invention provides the data transmission method and equipment, line card of distributed dual master control Frame Relay Device, can solve the problem that the problem of agreement concussion, failure occurs in primary main control card and the switching of standby main control card.Distributed dual master control Frame Relay Device includes:Primary main control card, standby main control card and line card, this method include:If line card does not receive the protocol massages that primary main control card is sent in stipulated time section, the protocol massages that the protocol massages and the last opposite end Frame Relay Device received that the primary main control card that then line card receives according to the last time of storage is sent are sent, interim agreement message is generated, and interim agreement message is sent to opposite end Frame Relay Device.
Description
Technical field
The present invention relates to communication technical field, more particularly to the data transmission method of distributed dual master control Frame Relay Device and
Equipment, line card.
Background technology
Frame relay is a kind of wan protocol used in the packet switching network, can compared with common wan protocol
Shorten the time of processing frame, greatly improve the handling capacity of network.The Frame Relay Device of early stage is the Frame Relay Device of centralization, i.e.,
The protocol interaction and data transfer that source Frame Relay Device and opposite end Frame Relay Device are carried out all are in same CPU (Central
Processing Unit, central processing unit) on handle, thus the performance of this centralized Frame Relay Device is not high.
In the prior art, generally use distributed dual master control Frame Relay Device carries out protocol interaction and data transfer.Distribution
Formula dual master control Frame Relay Device includes primary main control card, standby main control card and line card, and primary main control card is completed in normal work
The management of system and control function, line card provide external network interface and complete data transfer, when event occurs in primary main control card
During barrier, standby main control card is enabled, management and the control function of system are completed by standby main control card.
However, when the Frame Relay Device of distributed dual master control framework realizes frame relay protocol, if by primary main control card or
The standby main control card of person carries out protocol interaction with opposite end Frame Relay Device, when primary main control card breaks down, enables standby master control
Card needs the regular hour, and standby main control card can not carry out protocol interaction with opposite end Frame Relay Device during this period, lead
Cause Frame Relay Device agreement concussion in opposite end even to fail, customer service is impacted.
The content of the invention
Embodiments of the invention provide the data transmission method and equipment, line card of distributed dual master control Frame Relay Device, with
Solve the problems, such as that agreement concussion, failure occurs in primary main control card and the switching of standby main control card.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of data transmission method of distributed dual master control Frame Relay Device, institute
Stating distributed dual master control Frame Relay Device includes:Primary main control card, standby main control card and line card, methods described include:
If the line card does not receive the protocol massages that the primary main control card is sent, the line in stipulated time section
Block protocol massages and the last opposite end frame relay received that the primary main control card received according to the last time of storage is sent
The protocol massages that equipment is sent, interim agreement message is generated, and the interim agreement message is sent to opposite end Frame Relay Device.
With reference in a first aspect, in the first possible implementation of first aspect, methods described also includes:
If the line card receives the protocol massages that the primary main control card is sent, the line card in stipulated time section
The protocol massages are stored, and forwarded to the opposite end Frame Relay Device.
With reference in a first aspect, in second of possible implementation of first aspect, the line card is according to the upper of storage
The agreement that the protocol massages and the last opposite end Frame Relay Device received that the primary main control card once received is sent are sent
Message, interim agreement message is generated, and the interim agreement message is sent to opposite end Frame Relay Device, specifically included:
The protocol massages and last time that the primary main control card that the last time that the line card obtains storage receives is sent receive
The protocol massages that the opposite end Frame Relay Device arrived is sent, and obtain the agreement that the primary main control card that the last time receives is sent
The data and local sequence number of message, and the local sequence of the protocol massages of the last opposite end Frame Relay Device transmission received
Row number;
The data and local sequence for the protocol massages that the primary main control card that the line card receives according to the last time is sent
Row number, and the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, generate interim agreement
Message, wherein, the data of the interim agreement message are the protocol massages that the primary main control card received the last time is sent
Data, the agreement report that the local sequence number of the interim agreement message sends for the primary main control card that the last time receives
The local sequence number of text adds 1, the last opposite end frame relay received described in the opposite end Serial No. of the interim agreement message
The local sequence number for the protocol massages that equipment is sent;
The line card sends the interim agreement message to opposite end Frame Relay Device;
After the line card sends the interim agreement message to opposite end Frame Relay Device, methods described also includes:
The line card resets timer.
With reference to the first possible implementation of first aspect, in the third possible implementation of first aspect
In, if the line card receives the protocol massages that primary main control card is sent in stipulated time section, the line card is by institute
State protocol massages storage, and to the opposite end Frame Relay Device forward after, methods described also includes:
The line card resets timer.
Second aspect, the embodiment of the present invention provide a kind of line card, and the line card includes:
Receiving module, the agreement report that protocol massages and opposite end Frame Relay Device for receiving primary main control card transmission are sent
Text;
Generation module, the protocol massages and last time that the primary main control card for being received according to the last time of storage is sent
The protocol massages that the opposite end Frame Relay Device received is sent, generate interim agreement message;
Sending module, for sending the interim agreement message to opposite end Frame Relay Device.
With reference to second aspect, in the first possible implementation of second aspect, the line card also includes:
Memory module, if receiving the association that the primary main control card is sent in stipulated time section for the receiving module
Message is discussed, then is stored the protocol massages;
The sending module, it is additionally operable to forward the receiving module in stipulated time section to the opposite end Frame Relay Device
Receive the protocol massages that the primary main control card is sent.
With reference to second aspect, in second of possible implementation of second aspect,
The generation module, is specifically included:
Acquisition submodule, the protocol massages and upper one that the primary main control card that the last time for obtaining storage receives is sent
The protocol massages that the secondary opposite end Frame Relay Device received is sent, and obtain the primary main control card that the last time receives and send
Protocol massages data and local sequence number, and the last opposite end Frame Relay Device received the protocol massages that send
Local sequence number;
Generate submodule, the data of the protocol massages sent for the primary main control card that is received according to the last time and
Local sequence number, and the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, generation are faced
When protocol massages, wherein, the association that the data of the interim agreement message send for the primary main control card that the last time receives
The data of message are discussed, the local sequence number of the interim agreement message is that the primary main control card received the last time is sent
The local sequence number of protocol massages adds 1, the last opposite end received described in the opposite end Serial No. of the interim agreement message
The local sequence number for the protocol massages that Frame Relay Device is sent;
The line card also includes:
Module is reset, after sending the interim agreement message to opposite end Frame Relay Device in the sending module,
Reset timer.
With reference to the first possible implementation of second aspect, in the third possible implementation of second aspect
In, the line card also includes:
Module is reset, for forwarding the receiving module providing to the opposite end Frame Relay Device in the sending module
After the protocol massages that the primary main control card is sent are received in period, timer is reset.
The third aspect, the embodiment of the present invention also provide a kind of data transmission set of distributed dual master control Frame Relay Device,
Including with the line card as described in second aspect, the primary main control card being connected with the line card, and with the primary main control card
The standby main control card of connection;
Wherein, the line card, sent if not receiving the primary main control card in stipulated time section for the line card
Protocol massages, then protocol massages that the primary main control card that is received according to the last time of storage is sent and last receive
The protocol massages that opposite end Frame Relay Device is sent, interim agreement message is generated, and it is described interim to the transmission of opposite end Frame Relay Device
Protocol massages.
The embodiment of the present invention provides the data transmission method and equipment, line card of distributed dual master control Frame Relay Device, distribution
Formula dual master control Frame Relay Device includes:Primary main control card, standby main control card and line card, method include:If line card is in the stipulated time
The protocol massages that primary main control card is sent, the then primary main control card that line card receives according to the last time of storage are not received in section
The protocol massages that the protocol massages of transmission and the last opposite end Frame Relay Device received are sent, generate interim agreement message,
And send interim agreement message to opposite end Frame Relay Device.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of stream of the data transmission method for distributed dual master control Frame Relay Device that the embodiment of the present invention one provides
Journey schematic diagram;
Fig. 2 is that a kind of data transmission method for distributed dual master control Frame Relay Device that the embodiment of the present invention two provides improves
The schematic flow sheet of the method for protocol reliability;
System architecture diagram when Fig. 3 is primary main control card normal work provided in an embodiment of the present invention;
Fig. 4 be primary main control card provided in an embodiment of the present invention break down active-standby switch when system architecture diagram;
Fig. 5 is the system architecture diagram that primary main control card provided in an embodiment of the present invention breaks down after the completion of active-standby switch;
Fig. 6 is a kind of stream of the data transmission method for distributed dual master control Frame Relay Device that the embodiment of the present invention three provides
Journey schematic diagram;
Fig. 7 is a kind of structural representation one for line card that the embodiment of the present invention four provides;
Fig. 8 is a kind of structural representation two for line card that the embodiment of the present invention four provides;
Fig. 9 is a kind of structural representation three for line card that the embodiment of the present invention four provides;
Figure 10 is a kind of structural representation four for line card that the embodiment of the present invention four provides;
Figure 11 is a kind of structural representation for primary main control card that the embodiment of the present invention five provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention provides a kind of data transmission method of distributed dual master control Frame Relay Device, as shown in figure 1, being
The schematic flow sheet of this method, including:
If S101, line card do not receive the protocol massages that primary main control card is sent in stipulated time section, line card according to
The protocol massages and the last opposite end Frame Relay Device hair received that the primary main control card that the last time of storage receives is sent
The protocol massages sent, interim agreement message is generated, and interim agreement message is sent to opposite end Frame Relay Device.
In the prior art, if carrying out protocol interaction with opposite end Frame Relay Device by primary main control card or standby main control card,
When primary main control card breaks down, enabling standby main control card needs the regular hour, and standby main control card is simultaneously during this period
Protocol interaction can not be carried out with opposite end Frame Relay Device, cause opposite end Frame Relay Device agreement concussion or even fail, to user's industry
Business impacts.Therefore, the present invention proposes a kind of method for improving protocol reliability, can be broken down in primary main control card
When, protocol interaction is carried out by line card and opposite end Frame Relay Device, improves the stability of protocol interaction.
First, line card is confirmed whether to receive the protocol massages that primary main control card is sent in stipulated time section.
Specifically, in local terminal Frame Relay Device, (that is mentioned in the embodiment of the present invention includes line card, primary main control card and standby
With the data transmission set of the distributed dual master control Frame Relay Device of main control card) with opposite end Frame Relay Device carry out protocol interaction
When, primary main control card completes management and the control function of system in normal work, and the external network interface of line card offer is simultaneously complete
Into data transfer, i.e., all protocol massages can be all sent to line card by primary main control card, then complete to send by line card.Therefore,
Line card whether can be received in stipulated time section the protocol massages that primary main control card is sent just become line card judge it is primary
The foundation whether main control card breaks down.
Specifically, how line card is confirmed whether to receive the protocol massages that primary main control card is sent in stipulated time section
Specific implementation may be referred to the associated description in the embodiment of the present invention two, and the embodiment of the present invention repeats no more herein.
If line card does not receive the protocol massages that primary main control card is sent in stipulated time section, illustrate main control card
Failure, now need to enable standby main control card.
It should be noted that when system sends active-standby switch instruction to primary main control card, primary main control card will be switched off and line
The connection of card, now, standby master control card start-up are simultaneously connected with line card, and send protocol massages to line card.
After system sends active-standby switch instruction to primary main control card, line card receives primary according to the last time of storage
The protocol massages that the protocol massages and the last opposite end Frame Relay Device received that main control card is sent are sent, generate interim agreement
Message, and send interim agreement message to opposite end Frame Relay Device.
It should be noted that in order to ensure within a period of time enabled needed for standby main control card local terminal Frame Relay Device with
The stability of opposite end Frame Relay Device agreement, line card need the association that the primary main control card received according to the last time of storage is sent
The protocol massages that view message and the last opposite end Frame Relay Device received are sent, generate interim agreement message, to replace leading
The protocol massages sent with main control card, and send interim agreement message to opposite end Frame Relay Device.
Specifically, the specific implementation how line card generates interim agreement message may be referred to phase in the embodiment of the present invention two
Description is closed, the embodiment of the present invention repeats no more herein.
The embodiment of the present invention provides the data transmission method of distributed dual master control Frame Relay Device, in distributed dual master control frame
Include after equipment:Primary main control card, standby main control card and line card, method include:If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then the agreement report that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages that text and the last opposite end Frame Relay Device received are sent, generate interim agreement message, and into opposite end frame
Interim agreement message is sent after equipment.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Embodiment two
The embodiment of the present invention provides a kind of data transmission method of distributed dual master control Frame Relay Device, as shown in Fig. 2 being
The schematic flow sheet of this method, including:
S201, line card are confirmed whether to receive the protocol massages that primary main control card is sent in stipulated time section.
The present invention proposes a kind of method for improving protocol reliability, can pass through line when primary main control card breaks down
Card and opposite end Frame Relay Device carry out protocol interaction, improve the stability of protocol interaction.
Specifically, first, line card is confirmed whether to receive the protocol massages that primary main control card is sent in stipulated time section.
If line card does not receive the protocol massages that primary main control card is sent in stipulated time section, illustrate main control card
Failure, now need to enable standby main control card.
If S202, the line card do not receive the protocol massages that the primary main control card is sent in stipulated time section,
In protocol massages and the last opposite end frame received that the primary main control card that line card receives according to the last time of storage is sent
After the protocol massages that equipment is sent, interim agreement message is generated, and interim agreement message is sent to opposite end Frame Relay Device.
Exemplary, line card is confirmed whether to receive the side for the protocol massages that primary main control card is sent in stipulated time section
Whether method is overtime to confirm timer, wherein, the time that timer is set is stipulated time section.Timer is provided with line card,
If primary main control card does not break down, timer is not time out, i.e., when the time that timer is recorded is less than or equal to regulation
Between section;If primary main control card breaks down, timer expiry, i.e., the time that timer is recorded is more than stipulated time section.
You need to add is that when local terminal Frame Relay Device and opposite end Frame Relay Device carry out protocol interaction for the first time, it is fixed
When time for being recorded of device be 0, in the state having not timed out.
Specifically, the stipulated time section of timer can be set according to user's request.
Specifically, step S202 includes S202a-S202c:
The protocol massages and last time that the primary main control card that the last time that S202a, line card obtain storage receives is sent connect
The protocol massages that the opposite end Frame Relay Device received is sent, and obtain the agreement report that the last primary main control card received is sent
The data and local sequence number of text, and the local sequence of the protocol massages of the last opposite end Frame Relay Device transmission received
Number.
The method of line card generation interim agreement message specifically includes:The last time that line card reads storage from line card receives
The protocol massages that send of primary main control card and the protocol massages that send of the last opposite end Frame Relay Device received, and obtain
The data and local sequence number for the protocol massages that the primary main control card that last time receives is sent, and last pair received
Hold the local sequence number of the protocol massages of Frame Relay Device transmission.Wherein, the primary master that the last time of line card memory storage receives
The protocol massages that control card is sent are sent to the protocol massages of line card when not broken down for primary main control card.
The data and local sequence for the protocol massages that the primary main control card that S202b, line card receive according to the last time is sent
Number and the local sequence number of protocol massages that sends of the last opposite end Frame Relay Device received, generate interim agreement report
Text.
Wherein, the number for the protocol massages that the data of interim agreement message send for the last primary main control card received
According to the local sequence number of interim agreement message is the local sequence for the protocol massages that the last primary main control card received is sent
Number plus 1, the protocol massages that the opposite end Frame Relay Device that opposite end Serial No. last time of interim agreement message receives is sent
Local sequence number.
Because interim agreement message is that the primary main control card that line card receives according to the last time of line card memory storage is sent
Protocol massages, and the protocol massages generation that sends of the last opposite end Frame Relay Device received, therefore, interim agreement report
The data for the protocol massages that the data of text send for the last primary main control card received, the local sequence of interim agreement message
The local sequence number of number protocol massages sent for the last primary main control card received adds 1, the opposite end of interim agreement message
The local sequence number for the protocol massages that the opposite end Frame Relay Device that the Serial No. last time receives is sent.
S202c, line card send interim agreement message to opposite end Frame Relay Device.
S203, line card reset timer.
It should be noted that protocol massages that the primary main control card that line card was received according to the last time of storage is sent and upper
The protocol massages that the opposite end Frame Relay Device once received is sent, generate interim agreement message, to replace primary main control card to send out
After the protocol massages sent, line card resets timer, and now, local terminal Frame Relay Device and the entrance of opposite end Frame Relay Device are assisted next time
Discuss interaction flow.
If S204, line card receive the protocol massages that primary main control card is sent in stipulated time section, line card is by agreement
Packet storage, and forwarded to opposite end Frame Relay Device.
If line card receives the protocol massages that primary main control card is sent in stipulated time section, illustrate primary main control card not
Break down, line card stores protocol massages, and is forwarded to opposite end Frame Relay Device.
It should be noted that line card stores the protocol massages that primary main control card is sent, if for next time with the frame of opposite end
When equipment carries out protocol interaction, main control card breaks down, and line card can read the protocol massages.
S205, line card reset timer.
It should be noted that the protocol massages that line card sends primary main control card store, and turn to opposite end Frame Relay Device
After hair, line card resets timer, and now, local terminal Frame Relay Device and opposite end Frame Relay Device enter protocol interaction stream next time
Journey.
You need to add is that although step S203 and step S205, which are line cards, resets timer, step S203 is
Line card resets timer after sending interim agreement message to opposite end Frame Relay Device, step S205 is that line card sends out primary main control card
The protocol massages storage sent, and reset timer after being forwarded to opposite end Frame Relay Device.
It is exemplary, as shown in figure 3, for primary main control card normal work when system architecture diagram, now primary main control card
It is connected with line card, primary main control card sends protocol massages to line card, and line card sends protocol massages to opposite end Frame Relay Device (as schemed
Shown in direction pointed by middle arrow), now, primary main control card and opposite end Frame Relay Device progress protocol interaction are (empty in such as figure
Shown in line, primary main control card and opposite end Frame Relay Device are simultaneously not connected with);As shown in figure 4, it is active and standby to be broken down for primary main control card
System architecture diagram during switching, now primary main control card disconnected with line card, system switches to standby main control card, line card generation
Interim agreement message, and interim agreement message is sent to opposite end Frame Relay Device (as indicated by the arrows in the figure to direction shown in),
Now, line card carries out protocol interaction (as shown in phantom in FIG.) with opposite end Frame Relay Device;As shown in figure 5, it is primary main control card
The system architecture diagram to break down after the completion of active-standby switch, now standby main control card be connected with line card, standby main control card sends association
Message is discussed to line card, line card sends protocol massages to opposite end Frame Relay Device (as indicated by the arrows in the figure to direction shown in), this
When, standby main control card carries out protocol interaction (as shown in phantom in FIG., in standby main control card and opposite end frame with opposite end Frame Relay Device
After equipment and it is not connected with).
You need to add is that the protocol massages and interim agreement message that are previously mentioned in the embodiment of the present invention can be DTE
(Data Terminal Equipment, data terminal equipment) protocol massages or (Data Circuit-
Terminating Equipment, Digital Circuit-terminating Equipment) protocol massages, it is of the invention not to be limited.
The embodiment of the present invention provides the data transmission method of distributed dual master control Frame Relay Device, in distributed dual master control frame
Include after equipment:Primary main control card, standby main control card and line card, method include:If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then the agreement report that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages that text and the last opposite end Frame Relay Device received are sent, generate interim agreement message, and into opposite end frame
Interim agreement message is sent after equipment.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Embodiment three
The embodiment of the present invention provides a kind of data transmission method of distributed dual master control Frame Relay Device, as shown in fig. 6, being
The schematic flow sheet of this method, including:
The active-standby switch instruction that S301, primary main control card reception system are sent.
If primary main control card breaks down, now need to enable standby main control card.
S302, primary main control card disconnect the connection with line card, to cause standby master control card start-up and be connected with line card, concurrently
Protocol massages are sent to line card.
It should be noted that after standby master control card start-up, standby main control card substitutes the work of primary main control card, sends association
Message is discussed to line card.
The embodiment of the present invention provides the data transmission method of distributed dual master control Frame Relay Device, in distributed dual master control frame
Include after equipment:Primary main control card, standby main control card and line card, method include:Primary main control card reception system is sent active and standby
Switching command;Primary main control card disconnects the connection with line card, and standby master control card start-up is simultaneously connected with line card, and sends protocol massages
To line card.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Example IV
The embodiment of the present invention provides a kind of line card, as shown in fig. 7, be the structural representation of the device, including:
Receiving module 10, the agreement that protocol massages and opposite end Frame Relay Device for receiving primary main control card transmission are sent
Message.
Generation module 11, the protocol massages and upper one that the primary main control card for being received according to the last time of storage is sent
The protocol massages that the secondary opposite end Frame Relay Device received is sent, generate interim agreement message.
Sending module 12, for sending the interim agreement message to opposite end Frame Relay Device.
Further, as shown in figure 8, line card also includes:
Memory module 13, if receiving the agreement report that primary main control card is sent in stipulated time section for receiving module 10
Text, then protocol massages are stored.
Sending module 12, be additionally operable to opposite end Frame Relay Device forwarding receiving module received in stipulated time section it is primary
The protocol massages that main control card is sent.
Further, as shown in figure 9, generation module 11, is specifically included:
Acquisition submodule 110, protocol massages that the primary main control card that receives of last time for obtaining storage is sent and
The protocol massages that the opposite end Frame Relay Device that last time receives is sent, and obtain the last primary main control card received and send
Protocol massages data and local sequence number, and the last opposite end Frame Relay Device received the protocol massages that send
Local sequence number.
Generate submodule 111, for the data of protocol massages that are sent according to the primary main control card that receives of last time and
Local sequence number, and the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, generation are faced
When protocol massages, wherein, the protocol massages that the data of interim agreement message send for the last primary main control card received
Data, the local sequence number of interim agreement message are the local sequence for the protocol massages that the last primary main control card received is sent
Row number adds 1, the protocol massages that the opposite end Frame Relay Device that opposite end Serial No. last time of interim agreement message receives is sent
Local sequence number.
As shown in Figure 10, line card also includes:
Module 14 is reset, after sending interim agreement message to opposite end Frame Relay Device in sending module 12, is reset
Timer.
Further, module 14 is reset, is additionally operable to opposite end Frame Relay Device forwarding receiving module exist in sending module 12
After the protocol massages that primary main control card is sent are received in stipulated time section, timer is reset.
The embodiment of the present invention provides a kind of line card, including receiving module, the agreement report sent for receiving primary main control card
The protocol massages that text and opposite end Frame Relay Device are sent;Generation module, for the primary master received according to the last time of storage
The protocol massages that the protocol massages and the last opposite end Frame Relay Device received that control card is sent are sent, generate interim agreement report
Text;Sending module, for sending the interim agreement message to opposite end Frame Relay Device.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Embodiment five
The embodiment of the present invention provides a kind of primary main control card, as shown in figure 11, for the structural representation of the device, including:
Receiving module 20, the active-standby switch instruction sent for reception system.
Processing module 21, for disconnecting the connection with line card, to cause standby master control card start-up and be connected with line card, concurrently
Protocol massages are sent to line card.
The embodiment of the present invention provides a kind of primary main control card, including receiving module 20, is sent for reception system active and standby
Switching command.Processing module 21, for disconnecting the connection with line card, to cause standby master control card start-up and be connected with line card, and
Protocol massages are sent to line card.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
Embodiment six
The embodiment of the present invention provides a kind of data transmission set of distributed dual master control Frame Relay Device, including with strictly according to the facts
The line card of example four is applied, what is be connected with line card has the primary main control card such as embodiment five, and is connected with primary main control card standby
Use main control card.
Wherein, line card, if not receiving the protocol massages that primary main control card is sent in stipulated time section for line card,
The protocol massages and the last opposite end frame relay received that the primary main control card received according to the last time of storage is sent are set
The protocol massages that preparation is sent, interim agreement message is generated, and interim agreement message is sent to opposite end Frame Relay Device.
Description based on above-described embodiment, the present invention are confirmed whether to receive primary master in stipulated time section by line card
The protocol massages that control card is sent, to judge whether primary main control card breaks down.If line card does not receive in stipulated time section
The protocol massages that primary main control card is sent, then it represents that there occurs failure, system to send active-standby switch to primary main control card for main control card
Instruction, then start standby main control card, the protocol massages that the primary main control card that line card receives according to the last time of storage is sent
The protocol massages sent with the opposite end Frame Relay Device that the last time receives, generate interim agreement message, and to opposite end frame relay
Equipment sends interim agreement message.With in the prior art when primary main control card breaks down, enable standby main control card when
Interior to cause opposite end Frame Relay Device agreement concussion or even failure to be compared, technical solution of the present invention can occur in primary main control card
During failure, interim agreement message is generated by line card and opposite end Frame Relay Device carries out protocol interaction, improves protocol interaction
Stability.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, it may be referred to corresponding in preceding method embodiment
Journey, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the module or unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (9)
1. a kind of data transmission method of distributed dual master control Frame Relay Device, the distributed dual master control Frame Relay Device bag
Include:Primary main control card, standby main control card and line card, it is characterised in that methods described includes:
If the line card does not receive the protocol massages that the primary main control card is sent, the line card root in stipulated time section
The data and local sequence number for the protocol massages that the primary main control card received according to the last time of storage is sent, and last time connect
The local sequence number for the protocol massages that the opposite end Frame Relay Device received is sent, generates interim agreement message, and into opposite end frame
The interim agreement message is sent after equipment, wherein, the data of the interim agreement message are the master received the last time
The data of the protocol massages sent with main control card, the local sequence number last time of the interim agreement message receive
The local sequence number for the protocol massages that primary main control card is sent adds 1, described in the opposite end Serial No. of the interim agreement message on
The local sequence number for the protocol massages that the opposite end Frame Relay Device once received is sent.
2. the data transmission method of distributed dual master control Frame Relay Device according to claim 1, it is characterised in that described
Method also includes:
If the line card receives the protocol massages that the primary main control card is sent in stipulated time section, the line card is by institute
Protocol massages storage is stated, and is forwarded to the opposite end Frame Relay Device.
3. the data transmission method of distributed dual master control Frame Relay Device according to claim 1, it is characterised in that described
The data and local sequence number for the protocol massages that the primary main control card that line card receives according to the last time of storage is sent, Yi Jishang
The local sequence number for the protocol massages that the opposite end Frame Relay Device once received is sent, generates interim agreement message, and to right
Frame Relay Device is held to send the interim agreement message, wherein, the data of the interim agreement message are the last reception
The data for the protocol massages that the primary main control card arrived is sent, the local sequence number of the interim agreement message connect for the last time
The local sequence number for the protocol massages that the primary main control card received is sent adds 1, the opposite end Serial No. of the interim agreement message
The local sequence number for the protocol massages that the opposite end Frame Relay Device that the last time receives is sent, is specifically included:
What the protocol massages and last time that the primary main control card that the last time that the line card obtains storage receives is sent received
The protocol massages that opposite end Frame Relay Device is sent, and obtain the protocol massages that the primary main control card that the last time receives is sent
Data and local sequence number, and the local sequence of protocol massages that the last opposite end Frame Relay Device received is sent
Number;
The data and local sequence number for the protocol massages that the primary main control card that the line card receives according to the last time is sent,
And the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, interim agreement message is generated,
Wherein, the data of the interim agreement message are the number for the protocol massages that the primary main control card received the last time is sent
According to the local sequence number of the interim agreement message is the protocol massages that the primary main control card received the last time is sent
Local sequence number adds 1, the last opposite end Frame Relay Device received described in the opposite end Serial No. of the interim agreement message
The local sequence number of the protocol massages of transmission;
The line card sends the interim agreement message to opposite end Frame Relay Device;
After the line card sends the interim agreement message to opposite end Frame Relay Device, methods described also includes:
The line card resets timer.
4. the data transmission method of distributed dual master control Frame Relay Device according to claim 2, it is characterised in that described
If the line card receives the protocol massages that primary main control card is sent in stipulated time section, the line card is by the agreement report
Text storage, and to the opposite end Frame Relay Device forward after, methods described also includes:
The line card resets timer.
5. a kind of line card, it is characterised in that the line card includes:
Receiving module, the protocol massages that protocol massages and opposite end Frame Relay Device for receiving primary main control card transmission are sent;
Generation module, if not receiving the agreement report that the primary main control card is sent in stipulated time section for the line card
Text, the then data for the protocol massages that the primary main control card that the generation module receives according to the last time of storage is sent and local
Sequence number, and the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, generate interim association
Message is discussed, wherein, the data of the interim agreement message are the agreement report that the primary main control card received the last time is sent
The data of text, the local sequence number of the interim agreement message are the agreement that the primary main control card received the last time is sent
The local sequence number of message adds 1, in the last opposite end frame received described in the opposite end Serial No. of the interim agreement message
After the local sequence number for the protocol massages that equipment is sent;
Sending module, for sending the interim agreement message to opposite end Frame Relay Device.
6. line card according to claim 5, it is characterised in that the line card also includes:
Memory module, if receiving the agreement report that the primary main control card is sent in stipulated time section for the receiving module
Text, then the protocol massages are stored;
The sending module, it is additionally operable to forward the receiving module to receive in stipulated time section to the opposite end Frame Relay Device
The protocol massages sent to the primary main control card.
7. line card according to claim 5, it is characterised in that
The generation module, is specifically included:
Acquisition submodule, the protocol massages and last time that the primary main control card that the last time for obtaining storage receives is sent connect
The protocol massages that the opposite end Frame Relay Device received is sent, and obtain the association that the primary main control card that the last time receives is sent
The data and local sequence number of message are discussed, and the local of the protocol massages of the last opposite end Frame Relay Device transmission received
Sequence number;
Submodule is generated, the data for the protocol massages that the primary main control card for being received according to the last time is sent and local
Sequence number, and the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, generate interim association
Message is discussed, wherein, the data of the interim agreement message are the agreement report that the primary main control card received the last time is sent
The data of text, the local sequence number of the interim agreement message are the agreement that the primary main control card received the last time is sent
The local sequence number of message adds 1, in the last opposite end frame received described in the opposite end Serial No. of the interim agreement message
After the local sequence number for the protocol massages that equipment is sent;
The line card also includes:
Module is reset, after sending the interim agreement message to opposite end Frame Relay Device in the sending module, is reset
Timer.
8. line card according to claim 6, it is characterised in that the line card also includes:
Module is reset, for forwarding the receiving module in the stipulated time to the opposite end Frame Relay Device in the sending module
After the protocol massages that the primary main control card is sent are received in section, timer is reset.
9. a kind of data transmission set of distributed dual master control Frame Relay Device, it is characterised in that including with such as claim
Line card in 5-8 described in any one, the primary main control card being connected with the line card, and be connected with the primary main control card
Standby main control card;
Wherein, the line card, if not receiving the association that the primary main control card is sent in stipulated time section for the line card
Discuss message, then the data and local sequence number of the protocol massages that the primary main control card received according to the last time of storage is sent,
And the local sequence number of the protocol massages of the last opposite end Frame Relay Device transmission received, interim agreement message is generated,
And the interim agreement message is sent to opposite end Frame Relay Device, wherein, the data of the interim agreement message are described upper one
The data for the protocol massages that the secondary primary main control card received is sent, the local sequence number of the interim agreement message is on described
The local sequence number for the protocol massages that the primary main control card once received is sent adds 1, the opposite end sequence of the interim agreement message
Row number is the local sequence number for the protocol massages that the opposite end Frame Relay Device received the last time is sent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855196.2A CN104506551B (en) | 2014-12-31 | 2014-12-31 | Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410855196.2A CN104506551B (en) | 2014-12-31 | 2014-12-31 | Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104506551A CN104506551A (en) | 2015-04-08 |
CN104506551B true CN104506551B (en) | 2018-01-26 |
Family
ID=52948266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410855196.2A Active CN104506551B (en) | 2014-12-31 | 2014-12-31 | Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506551B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110099007B (en) * | 2018-01-30 | 2021-11-30 | 中兴通讯股份有限公司 | Switching control method and device, switch and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6032194A (en) * | 1997-12-24 | 2000-02-29 | Cisco Technology, Inc. | Method and apparatus for rapidly reconfiguring computer networks |
CN101378338A (en) * | 2008-09-24 | 2009-03-04 | 中兴通讯股份有限公司 | Method and apparatus for implementing bidirectional transmit-receive detection |
CN101510890A (en) * | 2009-03-31 | 2009-08-19 | 华为技术有限公司 | Method and communication equipment for holding protocol state |
CN101964719A (en) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | Data processing method based on operating/standby switch of master control boards, line card and master control boards |
CN102075580A (en) * | 2011-01-20 | 2011-05-25 | 迈普通信技术股份有限公司 | Method and system for storing synchronous data in distributive network equipment |
CN102347855A (en) * | 2011-07-21 | 2012-02-08 | 福建星网锐捷网络有限公司 | Method, device and network equipment for realizing bidirectional forwarding detection |
-
2014
- 2014-12-31 CN CN201410855196.2A patent/CN104506551B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6032194A (en) * | 1997-12-24 | 2000-02-29 | Cisco Technology, Inc. | Method and apparatus for rapidly reconfiguring computer networks |
CN101378338A (en) * | 2008-09-24 | 2009-03-04 | 中兴通讯股份有限公司 | Method and apparatus for implementing bidirectional transmit-receive detection |
CN101510890A (en) * | 2009-03-31 | 2009-08-19 | 华为技术有限公司 | Method and communication equipment for holding protocol state |
CN101964719A (en) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | Data processing method based on operating/standby switch of master control boards, line card and master control boards |
CN102075580A (en) * | 2011-01-20 | 2011-05-25 | 迈普通信技术股份有限公司 | Method and system for storing synchronous data in distributive network equipment |
CN102347855A (en) * | 2011-07-21 | 2012-02-08 | 福建星网锐捷网络有限公司 | Method, device and network equipment for realizing bidirectional forwarding detection |
Also Published As
Publication number | Publication date |
---|---|
CN104506551A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5995228B2 (en) | Method, system, and computer program for monitoring and controlling multiple devices | |
CN103902486B (en) | System, device and method for implementation of remote direct memory access | |
CN101894092B (en) | Multi-core CPU and inter-core communication method thereof | |
CN104281511A (en) | Intelligent platform management interface system, substrate management controller and implementation method | |
CN103399546A (en) | Method and system for controlling triple redundancy | |
CN103944974A (en) | Method for processing protocol messages, method for processing faults of controllers and related device | |
CN109426631A (en) | A kind of communication means based on RDMA, device and storage medium | |
CN101808010A (en) | Equipment management method and equipment management device and main control board | |
CN104506551B (en) | Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device | |
CN102185727B (en) | System and method for writing serial numbers to product firmware in batches | |
CN103685083A (en) | Communication method in asynchronous management network | |
CN101808037B (en) | Method and device for traffic management in switch network | |
CN109327383A (en) | A kind of fault handling method and equipment | |
US20110196951A1 (en) | Computer managing method | |
CN103634209A (en) | Method and equipment for data transmission | |
CN102123079A (en) | Method and device for processing transaction message | |
CN106488429A (en) | The processing method and processing device of client identification module SIM | |
CN105591902A (en) | Main-standby switching method and device | |
CN105183373A (en) | Data processing method and network device | |
CN105208556A (en) | Authentication management method, device, WLAN access apparatus and communication system | |
CN106911557B (en) | Message transmission method and device | |
CN104793896A (en) | Single-control and double-control switching method and device of double-control equipment | |
CN104281558B (en) | The method and chip of a kind of online upgrading | |
EP2693703A1 (en) | Transfer control device, integrated circuit thereof, transfer control method, and transfer control system | |
CN103858105A (en) | Connection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |