CN110213176A - Message processing method, device, equipment and the medium of interchanger - Google Patents

Message processing method, device, equipment and the medium of interchanger Download PDF

Info

Publication number
CN110213176A
CN110213176A CN201910578146.7A CN201910578146A CN110213176A CN 110213176 A CN110213176 A CN 110213176A CN 201910578146 A CN201910578146 A CN 201910578146A CN 110213176 A CN110213176 A CN 110213176A
Authority
CN
China
Prior art keywords
message
exit port
sent
work
protection
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
CN201910578146.7A
Other languages
Chinese (zh)
Other versions
CN110213176B (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.)
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
Beijing Dongtu Jinyue 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 Beijing Dongtu Jinyue Technology Co Ltd filed Critical Beijing Dongtu Jinyue Technology Co Ltd
Priority to CN201910578146.7A priority Critical patent/CN110213176B/en
Publication of CN110213176A publication Critical patent/CN110213176A/en
Application granted granted Critical
Publication of CN110213176B publication Critical patent/CN110213176B/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
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3027Output queuing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Abstract

The embodiment of the invention discloses a kind of message processing method of interchanger, device, equipment and media.This method comprises: sending processing sequence in the work exit port failure for detecting interchanger according to message, being cached to the object message matched, to be sent with the work exit port;If it is determined that protection exit port corresponding with the work exit port operates normally, then the object message for controlling caching is sent by the protection exit port.Above-mentioned technical proposal, in the network switching equipment, there is no the discardings to message to operate within the link switching period, considerably reduce the packet loss quantity within the link switching period, it even is that of avoiding the packet loss phenomenon within the link switching period, and then ensure that the integrality of the business datum of network switch transmission.

Description

Message processing method, device, equipment and the medium of interchanger
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of message processing method of interchanger, device, set Standby and medium.
Background technique
Existing link protection mode is usually to provide backup link for active link, when active link breaks down or deteriorates When, it is switched to backup link as early as possible and carries out data forwarding, to reduce the loss of data.
The network equipment is generally tens to several hundred milliseconds by the switching time of active link successful switch to backup link, cuts The length for changing the time depends primarily on communication service complexity and link switching speed.Currently, in this section of switching time Interior, the message in queue to be forwarded still can continue team out, search forward-path and be forwarded.But in this section of switching time Interior, message can be dropped because can not correctly be forwarded.
Summary of the invention
The embodiment of the present invention provides message processing method, device, equipment and the medium of a kind of interchanger, to reduce network friendship The packet loss quantity that exchange device causes due to link switching.
In a first aspect, the embodiment of the invention provides a kind of message processing methods of interchanger, comprising:
In the work exit port failure for detecting interchanger, processing sequence is sent according to message, is gone out to the work Port match, to be sent object message is cached;
If it is determined that protection exit port corresponding with the work exit port operates normally, then the target of caching is controlled Message is sent by the protection exit port.
Second aspect, the embodiment of the invention also provides a kind of message process devices of interchanger, comprising:
Packet buffer module, for it is suitable to send processing according to message in the work exit port failure for detecting interchanger Sequence caches the object message matched, to be sent with the work exit port;
Message restores sending module, for if it is determined that protection exit port corresponding with the work exit port is normally transported Row, the then object message for controlling caching are sent by the protection exit port.
The third aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor realize that the present invention is any when executing described program The message processing method of interchanger described in embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the message processing method of interchanger described in any embodiment of that present invention when the program is executed by processor.
In the embodiment of the present invention, interchanger configures inlet side mouthful, work exit port and protection corresponding with work exit port Exit port receives message especially by inlet side mouthful, and by working, exit port is sent out message, when detecting one of interchanger When the exit port failure that works, according to the transmission processing sequence of message, by with the matched target report to be sent of the work exit port Text is cached, until determining that protection exit port corresponding with the work exit port is fully usable, the mesh of just control caching Mark message is sent by the protection exit port.As a result, in the network switching equipment within the link switching period there is no pair The discarding of message operates, and considerably reduces the packet loss quantity within the link switching period, or even be that of avoiding and cut in link The packet loss phenomenon in the period is changed, and then ensure that business (business especially sensitive to the packet loss) number of network switch transmission According to integrality.
Detailed description of the invention
Fig. 1 is the flow chart of the message processing method of one of the embodiment of the present invention one interchanger;
Fig. 2 is the flow chart of the message processing method of one of the embodiment of the present invention two interchanger;
Fig. 3 is the structural schematic diagram of the message process device of one of the embodiment of the present invention three interchanger;
Fig. 4 is the hardware structural diagram of one of the embodiment of the present invention four computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, Many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be pacified again Row.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing.Institute Stating processing can correspond to method, function, regulation, subroutine, subprogram etc..
In order to clearly describe the technical solution of various embodiments of the present invention, the port of interchanger is explained first It is bright.
The network equipment, e.g. interchanger, including inbound port and exit port, wherein inbound port is for receiving message, outlet For being sent out message, different messages may be sent out mouth by different exit ports.
In order to active link provide backup link, by exit port be divided into work exit port and with work exit port it is corresponding Protection exit port, active link be by inbound port to work exit port link, backup link i.e. be by inbound port to protect Protect the link of exit port.
Specifically, protection exit port can be a work exit port and individually correspond to.For example, interchanger include inbound port A, Work exit port B, work exit port C, protection exit port E and protection exit port F, protection exit port E and B pairs of exit port of work It answers, for serving as the backup exit port of work exit port B, protection exit port F and work exit port when working exit port B failure C is corresponding, for serving as the backup exit port of work exit port C when working exit port C failure.
Specifically, protection exit port can also be corresponding with multiple work exit ports.For example, interchanger includes inbound port A, work exit port B, work exit port C and protection exit port E, protection exit port E and work exit port B and work outlet The two work exit ports of mouthful C are corresponding, serve as work for corresponding when working exit port B and/or work exit port C failure and go out The backup exit port of port B and/or the exit port C that works.
Embodiment one
Fig. 1 is a kind of flow chart of the message processing method for interchanger that the embodiment of the present invention one provides, and the present embodiment can The case where need to carrying out link switching due to active link failure suitable for interchanger, this method can be provided by the embodiment of the present invention The message process device of interchanger execute, the mode which can be used software and/or hardware is realized, and can generally integrate In the processor.
As shown in Figure 1, the method for the present embodiment specifically includes:
S110, in the work exit port failure for detecting interchanger, according to message send processing sequence, to work out Port match, to be sent object message is cached.
After interchanger receives message by inbound port sequence, and processing sequence is sent according to message, each message is sent out Send processing, wherein the working port for sending each message is not necessarily identical.Wherein, message, which sends processing sequence, can be basis What the reception sequence of each message determined, it e.g. arrives first and first sends out, be also possible to be determined according to the transmission priority of each message , the high preferential transmission of priority.
In a work exit port failure for detecting interchanger, generally physical fault, e.g. port go offline, Assuming that work exit port B failure, then will need the message sent by work exit port B to cache, that is, will be with Matched, the to be sent object message of the working port of failure is cached.
Specifically, processing sequence is sent according to message, when successively one message of acquisition is handled, if it is determined that the message It needs to be sent by work exit port B, then caches the message, if it is determined that the message is not required to pass through Work exit port B is sent, then is normally sent the message by other matched work exit ports.
Typically, fault detection unit can be set, for detecting the working condition of each work exit port, and detecting To there are when the exit port of failure, processor is informed, so that the message that processor is sent in process demand failure exit port When, message is cached, rather than due to can not normally send packet loss.
S120, if it is determined that protection exit port corresponding with the work exit port operate normally, then control the institute of caching Object message is stated to be sent by the protection exit port.
After detecting work exit port B failure, random detection protection exit port E corresponding with work exit port B is It is no to operate normally, just need work exit port B to carry out caching until ensuring to protect exit port E that can be fully usable, The object message of transmission is successively taken out, and is sent these object messages by protection exit port E.
As a kind of specific embodiment of the present embodiment, after S110, further includes:
Whether structural exploration message, the probe message are normal for detecting protection exit port corresponding with the exit port that works Operation.
Probe message is a kind of information of specific type, does not have substantive message content, is only intended to detect Whether port can be used, and can not only detect whether protection exit port can be used, and can also visit after the exit port fault recovery that works Survey whether work exit port can be used.
After the equipment of network switch next node receives the detection information, held after can identifying type of message Row ignores discard processing, can also return to confirmation to the network switch and receive feedback, the present embodiment is not specifically limited in this embodiment.
Further, it can will determine that protection exit port corresponding with the work exit port operates normally, specifically: control Probe message processed is by protecting exit port to be sent;If it is determined that probe message is sent successfully, it is determined that with work exit port Corresponding protection exit port operates normally.
After probe message is carried out format encapsulation, whether detection forwarding-table item be can be used, and then find the work with failure The corresponding protection exit port of exit port, control probe message is by protecting exit port to be sent.If it is determined that probe message is sent out Success is sent, after e.g. detecting that physical layer is used to indicate the successful signal of message transmission, then it is assumed that the protection exit port is in object Reason level is available, and physical fault is not present, and then determines that the protection exit port operates normally, and is completely available.
It, can be by caching after confirming that protection exit port corresponding with the work exit port of failure can be used completely Object message is successively taken out, and control object message is sent by the protection exit port.
In the embodiment of the present invention, interchanger configures inlet side mouthful, work exit port and protection corresponding with work exit port Exit port receives message especially by inlet side mouthful, and by working, exit port is sent out message, when detecting one of interchanger When the exit port failure that works, according to the transmission processing sequence of message, by with the matched target report to be sent of the work exit port Text is cached, until determining that protection exit port corresponding with the work exit port is fully usable, the mesh of just control caching Mark message is sent by the protection exit port.As a result, in the network switching equipment within the link switching period there is no pair The discarding of message operates, and considerably reduces the packet loss quantity within the link switching period, or even be that of avoiding and cut in link The packet loss phenomenon in the period is changed, and then ensure that business (business especially sensitive to the packet loss) number of network switch transmission According to integrality.
Embodiment two
Fig. 2 is a kind of flow chart of the message processing method of interchanger provided by Embodiment 2 of the present invention.The present embodiment with It is optimized based on above-described embodiment, wherein processing sequence will be sent according to message, and be matched to the work exit port , object message to be sent is cached, specifically: go out team's sequence according to message, successively obtains in message queue to be sent A message to be sent as currently processed message;If currently processed message matches with the work exit port, really Settled pre-treatment message is the object message, and sequence is added in object message buffer queue.
It is corresponding, the object message of control caching is sent by the protection exit port, specifically: successively An object message in the object message buffer queue is obtained, and controls the object message and passes through the protection exit port It is sent.
As shown in Fig. 2, the method for the present embodiment specifically includes:
S210, in the work exit port failure for detecting interchanger, according to message go out team sequence, successively obtain to be sent A message to be sent in message queue is as currently processed message.
In the present embodiment, the interchanger to be sent message new by inbound port real-time reception, and message to be sent is pressed Sequence is added in message queue to be sent.
Wherein, no matter whether there is the work exit port of failure in interchanger, " pass through new pending of inbound port real-time reception Deliver newspaper text, and message sequence to be sent be added in message queue to be sent " operation it is unaffected.For example, even if handing over Work exit port B in changing planes breaks down, and is remained unchanged the new message to be sent of real-time reception by inbound port, message to be sent can To be sent by the exit port B that works, can also be will be sent by other work exit ports.
Interchanger goes out team's sequence according to the message in message queue to be sent, generally just with the sequence of message enqueue On the contrary, obtaining a message to be sent as currently processed message carries out transmission processing.
If S220, currently processed message match with the work exit port, it is determined that currently processed message is described Object message, and sequence is added in object message buffer queue.
Judge whether currently processed message is the message to be sent by the work exit port of failure, if it is not, Currently processed message is then controlled to be sent by other matched work exit ports;If it is, currently processed message For the message cached, and then currently processed message sequence is added in object message buffer queue.
Wherein, object message buffer queue is for temporary cache object message corresponding with the work exit port of failure Queue.It, can be corresponding by the work exit port with each failure when the quantity of the work exit port of failure is more than one Object message is cached into the same object message buffer queue, can also be corresponding by the work exit port with each failure Object message is cached respectively into different object message buffer queues namely the work exit port of a failure corresponds to one In object message buffer queue, moreover, object message buffer queue can be and be pre-created, it is also possible to detect failure Work exit port after it is newly created, the present embodiment is not specifically limited this.
S230, structural exploration message, and probe message is controlled by protecting exit port to be sent.
S240, if it is determined that probe message is sent successfully, it is determined that it is normal with the corresponding protection exit port of work exit port Operation.
S250, successively an object message in acquisition object message buffer queue, and control the object message and pass through The protection exit port is sent.
It is added to the sequencing of target cache queue according to object message, successively an object message of team out, is based on Protection exit port sends the object message.
It is worth noting that protecting exit port when determining in the case where interchanger includes at least two work exit port The object message in target cache queue can be executed when sending operation by being fully usable, pending in message queue to be sent Text of delivering newspaper is also execute sending operation, at this point it is possible to according to default rule sequence to the report in two queues Text carries out transmission processing, such as can be the message in wheel two queues of stream process, handles a report in message queue to be sent Wen Hou reprocesses a message in object message queue, takes turns stream process with this.
The present embodiment does not explain in detail to the greatest extent place and refers to previous embodiment, and details are not described herein.
In above-mentioned technical proposal, in the network switching equipment, there is no the discardings to message to grasp within the link switching period Make, considerably reduces the packet loss quantity within the link switching period, or even be that of avoiding within the link switching period Packet loss phenomenon, and then ensure that the integrality of business (business especially sensitive to packet loss) data of network switch transmission.
Further, the message processing method of interchanger provided in this embodiment, further includes:
When detecting the work exit port fault recovery, according to default rule, controls the object message and pass through The work exit port is sent, alternatively, controlling the object message still by guarantor corresponding with the work exit port Shield exit port is sent.
It detects whether the work exit port failure is restored, can also specifically be detected by detection information and determine work outlet Whether the failure of mouth is restored, and details are not described herein.
When determining the fault recovery of work exit port, can remain unchanged through protection outlet corresponding with the work exit port Mouth sends object message corresponding with work exit port, can also restore to send corresponding target report to by the work exit port Text can specifically set this according to the actual situation, and the present embodiment is not specifically limited in this embodiment.
Specifically, when detecting the work exit port fault recovery, such as can be, setting passes through preset one After period, communication link is back switched into work exit port from protection exit port.That is, being reached until the preset period When, the message corresponding with the work exit port not only obtained in message queue to be sent is sent out by the work exit port Processing is sent, the object message obtained in object message queue carries out transmission processing also by the work exit port.
It is also possible that setting protection exit port and work exit port can send target corresponding with the work exit port Message, until the object message cached in object message queue is all disposed, communication link is complete from protection exit port Switch to work exit port.That is, when the currently processed message obtained in message queue to be sent is and the work exit port It is corresponding, then transmission processing is directly carried out by the work exit port, meanwhile, the object message obtained in object message queue Still by protecting exit port to carry out transmission processing.
Embodiment three
Fig. 3 show a kind of structural schematic diagram of the message process device of interchanger of the offer of the embodiment of the present invention three, this Embodiment is applicable to the case where interchanger need to carry out link switching due to active link failure, the device can be used software and/ Or the mode of hardware is realized, and generally can be integrated in the processor.
As shown in figure 3, the message process device of the interchanger specifically includes: packet buffer module 310 and message restore hair Send module 320.Wherein,
Packet buffer module 310, for being handled according to message transmission in the work exit port failure for detecting interchanger Sequentially, the object message matched, to be sent with the work exit port is cached;
Message restores sending module 320, for if it is determined that protection exit port corresponding with the work exit port is normal Operation, the then object message for controlling caching are sent by the protection exit port.
In the embodiment of the present invention, interchanger configures inlet side mouthful, work exit port and protection corresponding with work exit port Exit port receives message especially by inlet side mouthful, and by working, exit port is sent out message, when detecting one of interchanger When the exit port failure that works, according to the transmission processing sequence of message, by with the matched target report to be sent of the work exit port Text is cached, until determining that protection exit port corresponding with the work exit port is fully usable, the mesh of just control caching Mark message is sent by the protection exit port.As a result, in the network switching equipment within the link switching period there is no pair The discarding of message operates, and considerably reduces the packet loss quantity within the link switching period, or even be that of avoiding and cut in link The packet loss phenomenon in the period is changed, and then ensure that business (business especially sensitive to the packet loss) number of network switch transmission According to integrality.
Further, the packet buffer module, specifically for pressing in the work exit port failure for detecting interchanger Go out team's sequence according to message, successively obtains a message to be sent in message queue to be sent as currently processed message;If The currently processed message matches with the work exit port, it is determined that and the currently processed message is the object message, And sequence is added in object message buffer queue;
Corresponding, the message restores sending module, is specifically used for if it is determined that guarantor corresponding with the work exit port It protects exit port to operate normally, then successively obtains an object message in the object message buffer queue, and control institute Object message is stated to be sent by the protection exit port.
Further, the message process device of the interchanger, further includes:
Message receiving module to be sent, for the to be sent message new by inbound port real-time reception, and will be described pending Text of delivering newspaper is added sequentially in the message queue to be sent.
Further, the message process device of the interchanger, further includes:
Probe message constructing module is used for structural exploration message, wherein the probe message is for detecting and the work The corresponding protection exit port of exit port is whether normal operation;
Corresponding, message restores sending module 320, is specifically used for the control probe message and passes through the protection exit port It is sent;If it is determined that the probe message is sent successfully, it is determined that protection exit port corresponding with the work exit port It operates normally, and the object message for controlling caching is sent by the protection exit port.
Further, the message process device of the interchanger, further includes:
Petri Nets module, for when detecting the work exit port fault recovery, according to default rule, The object message is controlled to be sent by the work exit port, alternatively, control the object message still by with institute The corresponding protection exit port of work exit port is stated to be sent.
Specifically, in embodiment, the protection exit port and the work exit port are individually corresponding;Alternatively, the guarantor It is corresponding with multiple work exit ports to protect exit port.
The message process device of above-mentioned interchanger can be performed at the message of interchanger provided by any embodiment of the invention Reason method has the corresponding functional module of message processing method and beneficial effect of the interchanger of execution.
Example IV
Fig. 4 is a kind of hardware structural diagram for computer equipment that the embodiment of the present invention four provides, as shown in figure 4, should Equipment includes:
One or more processors 410, in Fig. 4 by taking a processor 410 as an example;
Memory 420;
The computer equipment can also include: input unit 430 and output device 440.
Processor 410, memory 420, input unit 430 and output device 440 in the computer equipment can lead to It crosses bus or other modes connects, in Fig. 4 for being connected by bus.
Memory 420 be used as a kind of non-transient computer readable storage medium, can be used for storing software program, computer can Program and module are executed, such as the corresponding program instruction of the message processing method of interchanger in the embodiment of the present invention/module (example Such as, attached packet buffer module 310 shown in Fig. 3 and message restore sending module 320).Processor 410 is stored in by operation Software program, instruction and module in reservoir 420, at the various function application and data of computer equipment Reason, the i.e. message processing method of interchanger in realization above method embodiment.
Memory 420 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area can be stored to be created according to using for computer equipment Data etc..In addition, memory 420 may include high-speed random access memory, it can also include non-transitory memory, such as At least one disk memory, flush memory device or other non-transitory solid-state memories.In some embodiments, it stores Optional device 420 includes the memory remotely located relative to processor 410, these remote memories can be by being connected to the network extremely Terminal device.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and its group It closes.
Input unit 430 can be used for receiving the number or character information of input, and generate the user with computer equipment Setting and the related key signals input of function control.Output device 440 may include that display screen etc. shows equipment.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row is instructed when being executed by computer processor for executing a kind of message processing method of interchanger, this method comprises:
In the work exit port failure for detecting interchanger, processing sequence is sent according to message, is gone out to the work Port match, to be sent object message is cached;
If it is determined that protection exit port corresponding with the work exit port operates normally, then the target of caching is controlled Message is sent by the protection exit port.
Optionally, which can be also used for executing the present invention times when being executed by computer processor A kind of technical solution of the message processing method of interchanger provided by embodiment of anticipating.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the message process device of above-mentioned interchanger, included each unit and mould Block is only divided according to the functional logic, but is not limited to the above division, and is as long as corresponding functions can be realized It can;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection model being not intended to restrict the invention It encloses.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of message processing method of interchanger characterized by comprising
In the work exit port failure for detecting interchanger, according to message send processing sequence, to the work exit port Object message matched, to be sent is cached;
If it is determined that protection exit port corresponding with the work exit port operates normally, then the object message of caching is controlled It is sent by the protection exit port.
2. going out the method according to claim 1, wherein sending processing sequence according to message to the work Port match, object message to be sent is cached, comprising:
Go out team's sequence according to message, successively obtains a message to be sent in message queue to be sent as currently processed report Text;
If the currently processed message matches with the work exit port, it is determined that the currently processed message is the mesh Message is marked, and sequence is added in object message buffer queue;
The object message of control caching is sent by the protection exit port, comprising:
An object message in the object message buffer queue is successively obtained, and controls the object message and passes through institute Protection exit port is stated to be sent.
3. according to the method described in claim 2, it is characterized by further comprising:
By the new message to be sent of inbound port real-time reception, and the message to be sent is added sequentially to described to be sent In message queue.
4. the method according to claim 1, wherein to matched, to be sent with the work exit port After object message is cached, further includes:
Structural exploration message, wherein the probe message, which is used to detect protection exit port corresponding with the work exit port, is No normal operation;
Determine that protection exit port corresponding with the work exit port operates normally, comprising:
The probe message is controlled to be sent by the protection exit port;
If it is determined that the probe message is sent successfully, it is determined that protection exit port corresponding with the work exit port is normally transported Row.
5. method according to claim 1-4, which is characterized in that further include:
When detecting the work exit port fault recovery, according to default rule, the object message is controlled described in Work exit port is sent,
It is still sent by protection exit port corresponding with the work exit port alternatively, controlling the object message.
6. method according to claim 1-4, which is characterized in that further include:
The protection exit port and the work exit port are individually corresponding;Alternatively, the protection exit port and multiple work outlets Mouth is corresponding.
7. a kind of message process device of interchanger characterized by comprising
Packet buffer module is right for sending processing sequence according to message in the work exit port failure for detecting interchanger Matched, to be sent object message is cached with the work exit port;
Message restores sending module, is used for if it is determined that protection exit port corresponding with the work exit port operates normally, then The object message of control caching is sent by the protection exit port.
8. device according to claim 7, which is characterized in that
The packet buffer module, specifically for it is suitable to go out team according to message in the work exit port failure for detecting interchanger Sequence successively obtains a message to be sent in message queue to be sent as currently processed message;If described currently processed Message matches with the work exit port, it is determined that the currently processed message is the object message, and sequence is added to In object message buffer queue;
The message restores sending module, is specifically used for if it is determined that protection exit port corresponding with the work exit port is normal Operation, then successively obtain an object message in the object message buffer queue, and it is logical to control the object message The protection exit port is crossed to be sent.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes such as side as claimed in any one of claims 1 to 6 when executing described program Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as method as claimed in any one of claims 1 to 6 is realized when execution.
CN201910578146.7A 2019-06-28 2019-06-28 Message processing method, device, equipment and medium of switch Active CN110213176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578146.7A CN110213176B (en) 2019-06-28 2019-06-28 Message processing method, device, equipment and medium of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578146.7A CN110213176B (en) 2019-06-28 2019-06-28 Message processing method, device, equipment and medium of switch

Publications (2)

Publication Number Publication Date
CN110213176A true CN110213176A (en) 2019-09-06
CN110213176B CN110213176B (en) 2022-03-29

Family

ID=67795456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578146.7A Active CN110213176B (en) 2019-06-28 2019-06-28 Message processing method, device, equipment and medium of switch

Country Status (1)

Country Link
CN (1) CN110213176B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113193995A (en) * 2021-04-22 2021-07-30 深圳市信锐网科技术有限公司 Communication apparatus, control method thereof, and computer-readable storage medium
CN115695343A (en) * 2022-09-21 2023-02-03 华北电力大学(保定) Method for realizing dynamic energy saving of equipment by intelligently sensing network service flow

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104489A (en) * 2009-12-16 2011-06-22 中兴通讯股份有限公司 Method, device and system for protecting communication link
CN102238069A (en) * 2010-04-29 2011-11-09 杭州华三通信技术有限公司 Data processing method and device for link switching process
CN103888303A (en) * 2014-04-21 2014-06-25 国家电网公司 Method and device for controlling data messages
CN103957155A (en) * 2014-05-06 2014-07-30 华为技术有限公司 Message transmission method and device and interconnection interface
CN104618266A (en) * 2015-02-09 2015-05-13 浪潮集团有限公司 Method and device for transferring messages among a plurality of ports

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104489A (en) * 2009-12-16 2011-06-22 中兴通讯股份有限公司 Method, device and system for protecting communication link
CN102238069A (en) * 2010-04-29 2011-11-09 杭州华三通信技术有限公司 Data processing method and device for link switching process
CN103888303A (en) * 2014-04-21 2014-06-25 国家电网公司 Method and device for controlling data messages
CN103957155A (en) * 2014-05-06 2014-07-30 华为技术有限公司 Message transmission method and device and interconnection interface
CN104618266A (en) * 2015-02-09 2015-05-13 浪潮集团有限公司 Method and device for transferring messages among a plurality of ports

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113193995A (en) * 2021-04-22 2021-07-30 深圳市信锐网科技术有限公司 Communication apparatus, control method thereof, and computer-readable storage medium
CN115695343A (en) * 2022-09-21 2023-02-03 华北电力大学(保定) Method for realizing dynamic energy saving of equipment by intelligently sensing network service flow

Also Published As

Publication number Publication date
CN110213176B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
WO2009090723A1 (en) Packet transmission device and its control circuit
CN110213176A (en) Message processing method, device, equipment and the medium of interchanger
CN106936662A (en) A kind of method for realizing heartbeat mechanism, apparatus and system
CN104852828A (en) Network delay detection method, device and system
US20160057043A1 (en) Diagnostic routing system and method for a link access group
US20080056160A1 (en) Information processing system, information processing apparatus, information processing method and program
CN106656807A (en) Message forwarding method and SDN switch
JP2008283608A (en) Computer, program and method for switching redundant communication path
US20160205047A1 (en) Hierarchical caching system for lossless network packet capture applications
CN110855566B (en) Method and device for dragging upstream flow
CN110138656A (en) Method for processing business and device
CN206317552U (en) Regeneration chip
US10129147B2 (en) Network-on-chip flit transmission method and apparatus
CN105335217A (en) Server quiescing method and system
CN107733695A (en) A kind of VXLAN tunnels optimization method and device during ISSU
CN111654547B (en) Data transmission method, device, equipment and storage medium
JP2008136081A (en) Data transfer device and data transfer method
CN105530158B (en) The control system of isomery optical-fiber network inter-domain intercommunicate
CN110138819B (en) Host state detection method and system of network switch
EP2922244B1 (en) Media access control filtering apparatus for high speed switching and operating method thereof
US7577958B1 (en) Expediting an operation in a computer system
CN104506331A (en) Multicast message transmission method and multi-core network equipment
CN110417573A (en) A kind of method and system of data transmission
CN103561007B (en) The method and device that a kind of message forwards
US10536552B2 (en) Systems and methods to relocate live compute assets

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