CN105591938A - Keep-alive message processing method and device - Google Patents

Keep-alive message processing method and device Download PDF

Info

Publication number
CN105591938A
CN105591938A CN201510656568.3A CN201510656568A CN105591938A CN 105591938 A CN105591938 A CN 105591938A CN 201510656568 A CN201510656568 A CN 201510656568A CN 105591938 A CN105591938 A CN 105591938A
Authority
CN
China
Prior art keywords
layer message
neighborhood
relation information
opposite equip
module
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
CN201510656568.3A
Other languages
Chinese (zh)
Other versions
CN105591938B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510656568.3A priority Critical patent/CN105591938B/en
Publication of CN105591938A publication Critical patent/CN105591938A/en
Application granted granted Critical
Publication of CN105591938B publication Critical patent/CN105591938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

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

Abstract

The present invention discloses a keep-alive message processing method and device. The method comprises: recoding the relation information of the neighborship after a neighborship is built with an opposite device, stopping sending the keep-alive message of a route protocol aiming at the neighborship to the opposite device, and adding the recorded neighborship information to the secondary layer of message to send the message to the opposite device. The number of sending the keep-alive message is reduced, and the network bandwidth resource is saved.

Description

Keep-alive message processing method and device
Technical field
The application relates to network communications technology field, particularly a kind of keep-alive message processing method and device.
Background technology
At present, at OSPF (OpenShortestPathFirst, Open Shortest Path First), IS-IS(IntermediateSystem-to-IntermediateSystem, Intermediate System-to-Intermediate System), BGPIn Routing Protocols such as (BorderGatewayProtocol, Border Gateway Protocols), two network equipments are builtAfter having found neighborhood, neighbours' the network equipment needs mutually periodically to send keep-alive message each otherMaintenance of neighbor relation, for example, the Hello of ospf protocol and Intermediate System to Intermediate System (shaking hands) message, BGPKeepalive (keep-alive) message.
Like this, if two network equipments have been set up neighborhood for multiple Routing Protocol, these twoThe network equipment just need to be for each Routing Protocol wherein, periodically sends mutually this route associationThe keep-alive message of view, a large amount of keep-alive messages have taken more network bandwidth resources.
Summary of the invention
In view of this, the application provides a kind of keep-alive message processing method and device.
The application's technical scheme is as follows:
On the one hand, provide a kind of keep-alive message processing method, having comprised:
After having set up neighborhood with opposite equip., record the relation information of this neighborhood;
Stop to this opposite equip. send this neighborhood for the keep-alive message of Routing Protocol;
This relation information of record is added to and in two layer message, sends to this opposite equip..
On the other hand, also provide a kind of keep-alive message process device, having comprised:
Preserve module, for after having set up neighborhood with opposite equip., record the relation of this neighborhoodInformation;
Sending module, at the relation information of the neighborhood set up with this opposite equip. of having preserved module recordsAfterwards, stop to this opposite equip. send this neighborhood for the keep-alive message of Routing Protocol; Also useIn adding to and send to this opposite equip. in two layer message preserving the relation information of module records.
In the application's above technical scheme, after having set up neighborhood with opposite equip., this equipmentCan record the relation information of this neighborhood, no longer to this opposite equip. send this neighborhood forThe keep-alive message of Routing Protocol, and the relation information of this neighborhood of record is added in two layer message and sent outGive this opposite equip., like this, if two network equipments have been set up neighbours pass for multiple Routing ProtocolSystem, does not need to have sent the keep-alive message of this multiple Routing Protocol again, and only need send a two layer message, that is, this multiple Routing Protocol has been shared this two layer message as keep-alive message, thereby, reduceThe quantity forwarded of keep-alive message, has saved network bandwidth resources.
Brief description of the drawings
Fig. 1 be the embodiment of the present application set up neighborhood first time the flow process of keep-alive message processing methodFigure;
Fig. 2 be the embodiment of the present application again set up neighborhood time the flow process of keep-alive message processing methodFigure;
Fig. 3 be the embodiment of the present application receive two layer message time the flow process of keep-alive message processing methodFigure;
Fig. 4 is a kind of real network schematic diagram;
Fig. 5 is a kind of structural representation of the keep-alive message process device of the embodiment of the present application;
Fig. 6 is the another kind of structural representation of the keep-alive message process device of the embodiment of the present application;
Fig. 7 is another structural representation of the keep-alive message process device of the embodiment of the present application.
Detailed description of the invention
In prior art, if two network equipments have been set up neighborhood for multiple Routing Protocol,These two network equipments need to, for each Routing Protocol wherein, periodically send this road mutuallyBy the keep-alive message of agreement, a large amount of keep-alive messages have taken more network bandwidth resources. In order to solveThe above-mentioned problems in the prior art, provides the processing of a kind of keep-alive message in the application's following examplesMethod, and a kind of keep-alive message process device that can apply the method.
The keep-alive message processing method of the embodiment of the present application comprises following content:
As shown in Figure 1, after this device first and opposite equip. are set up neighborhood, need to carry out withLower step:
Step S102, records the relation information of this neighborhood;
Wherein, in the relation information of this neighborhood, can comprise: the address of this equipment, opposite equip.Address and this neighborhood for the mark of Routing Protocol. In actual implementation process, above-mentionedAddress can be IP (Internet Protocol) address, and the mark of Routing Protocol can be protocol number.
Step S104, stop to this opposite equip. send this neighborhood for the keep-alive of Routing ProtocolMessage;
For example, in the time that this Routing Protocol is ospf protocol or Intermediate System to Intermediate System, the keep-alive message of this Routing ProtocolBe hello packet, in the time that this Routing Protocol is BGP, the keep-alive message of this Routing Protocol is Keepalive reportLiterary composition.
Step S106, adds this relation information of record in two layer message, to send to this opposite equip. to;
Concrete, the above-mentioned two layer message that carries relation information is taken by TLV (type lengths values)Band relation information. For example, this two layer message can be LLDP (LinkLayerDiscoveryProtocol,Link Layer Discovery Protocol) message or OAM (OperationAdministrationandMaintenance,Operation management maintain) message. TLV in this two layer message comprises: Type (type) field, Length(length) field, Value field, wherein, Value field is used for carrying relation information.
Because two layer message is processed without transmitted to CPU, therefore, reduce cpu resource occupancy,Improve network stabilization.
Step S108, opens corresponding to two layer message transmission timer and the two layer message of this opposite equip. and receivesTimer carries out timing;
Whether then step S110, judge two layer message transmission timer, if so, performs step S112,Otherwise, execution step S110;
Step S112, sends to this opposite equip. by the two layer message of this relation information that carries record, andTwo layer message transmission timer is restarted to timing, perform step afterwards S110.
The not specific successively execution sequence of above-mentioned step S104~step S108.
By step S108~step S112, this equipment is being set up after neighborhood with this opposite equip. first,Can periodically send the two layer message of the relation information that carries this neighborhood to this opposite equip..
Follow-up, this equipment also may be set up neighborhood with this opposite equip. again, now, and each time with thisAfter opposite equip. has been set up neighborhood, this equipment also can be carried out following steps, as shown in Figure 2:
Step S202, records the relation information of this neighborhood;
Step S204, stop to this opposite equip. send this neighborhood for the keep-alive report of Routing ProtocolLiterary composition;
Step S206, adds this relation information of record in two layer message, to send to this opposite equip. to, andTwo layer message transmission timer is restarted to timing;
Because this equipment and this opposite equip. have been set up neighborhood for multiple Routing Protocol, therefore, this equipmentOn recorded the relation information of these neighborhoods, set up a neighborhood, two layers of report of transmission more at every turnIn literary composition, will increase the relation information of this neighborhood newly.
Whether then step S208, judge two layer message transmission timer, if so, performs step S210,Otherwise, execution step S208;
Step S210, will carry the relation of all neighborhoods of setting up between this equipment and this opposite equip.The two layer message of information sends to this opposite equip., and two layer message transmission timer is restarted to timing,Perform step afterwards S208.
In actual implementation process, the relation information of the neighborhood of setting up between this equipment and opposite equip. is sent outAfter changing, by the timing of the timing time of two layer message transmission timer and two layer message reception timerSet of time is, be not more than current all neighborhoods for the keep-alive message of Routing Protocol send the cycleMinimum of a value.
That is:
In the time having set up neighborhood with opposite equip. first, by the timing time of two layer message transmission timer andTwo layer message receives the timing time of timer and is set to, be not more than this neighborhood for Routing ProtocolKeep-alive message send the minimum of a value in cycle.
Or,
And opposite equip. between the neighborhood set up change (newly-increased or reduce) afterwards, by two layers of reportThe timing time that the timing time of literary composition transmission timer and two layer message receive timer is updated to, and is not more than neighbourOccupy all neighborhoods after relationship change for the keep-alive message of Routing Protocol send the minimum in cycleValue.
Wherein, the timing time of two layer message transmission timer and two layer message receive the timing time of timerAny in can be in the following ways of set-up mode:
Mode one, manual static state setting
The timing time of the timing time of two layer message transmission timer and two layer message reception timerValue can manually arrange.
Can be in advance the timing time of two layer message transmission timer and two layer message be received to timerTiming time is set to fixed value, and wherein, the timing time of two layer message transmission timer is not more than differenceThe keep-alive message of Routing Protocol sends the minimum of a value in cycle, and the timing time of two layer message reception timer is notBe less than the timing time of two layer message transmission timer. Follow-up, keeper can be according to actual needs, rightThe timing time that the timing time of two layer message transmission timer and two layer message receive timer carries out moreNewly.
Or, also can be after this equipment and the neighborhood of opposite equip. change, manually by twoThe timing time that the timing time of layer message transmission timer and two layer message receive timer is set to: noBe greater than current all neighborhoods for the keep-alive message of Routing Protocol send the minimum of a value in cycle.
Mode two, equipment are dynamically adjusted
Owing to can setting up neighborhood for multiple Routing Protocol between this equipment and this opposite equip., theseThe keep-alive message of Routing Protocol sends the cycle may be different, therefore, and when employing mode two, along with what set upThe increase of neighborhood or minimizing, the timing time of two layer message transmission timer and two layer message receive fixedTime device timing time can dynamically adjust.
In the time of occupation mode two, in the relation information of neighborhood, also need to comprise: this neighborhood institute pinThe keep-alive message of right Routing Protocol sends the cycle.
This device first is set up neighborhood with this opposite equip. and has been recorded the relation letter of this neighborhoodAfter breath, can be by the timing of the timing time of two layer message transmission timer and two layer message reception timerSet of time is: the keep-alive message being not more than in this relation information sends the cycle, afterwards, again right with thisEnd equipment can be sent out two layer message after setting up neighborhood and having recorded the relation information of this neighborhoodSend the timing time of timer and the timing time of two layer message reception timer to be updated to: to be not more than newly-increasedKeep-alive message in all relation informations after relation information send the minimum of a value in cycle.
Employing mode two, the transmission cycle of two layer message may be along with setting up between this equipment and this opposite equip.The increase of neighborhood or minimizing and constantly changing.
In addition, after this equipment removes to have enabled a Routing Protocol, this equipment can deletion record for this routeThe relation information of neighborhood that agreement is set up, from two layer message, delete this equipment for this Routing Protocol withThe relation information of the neighborhood that this opposite equip. is set up, sends to this opposite end to establish the two layer message after upgradingStandby, and two layer message transmission timer is restarted to timing. When arranging two layer message, employing mode two sendsWhen the timing time of timer and two layer message receive the timing time of timer, deleted relation information itAfter, also can be by the timing time of the timing time of two layer message transmission timer and two layer message reception timerBe updated to: be not more than and send the cycle having deleted keep-alive message in all relation informations after relation informationMinimum of a value.
Therefore, set up neighborhood with opposite equip. first, and recording the relation information of this neighborhoodAfterwards, periodically send to this opposite equip. the two layer message that carries this relation information, follow-up, increase at every turnAdd deduct after a few relation information (relation information of the neighborhood of setting up with this opposite equip.), no matter twoThen whether layer message transmission timer, all can send and carry and this opposite equip. to this opposite equip. immediatelyThe two layer message of the relation information of all neighborhoods of setting up, and again periodically send this two layer message.
The relation information of all neighborhoods of obviously, setting up between this equipment and this opposite equip. is all deletedAfterwards, this equipment can not send two layer message to this opposite equip. again.
In like manner, opposite equip. also can be carried out the operation shown in above-mentioned Fig. 1 and Fig. 2, and like this, this equipment can receiveThe two layer message of sending to this opposite equip., now, as shown in Figure 3, the step that this equipment need to be carried out asUnder:
Step S302, judges that before two layer message receives timer expiry, whether having received opposite equip. sends outThe two layer message coming, if so, performs step S304, otherwise, execution step S316;
Whether step S304, for the relation information i carrying in the two layer message receiving, judge on this equipmentThere is identical relation information, if so, perform step S306, otherwise, execution step S308;
Wherein, the numbering of the relation information carrying in the two layer message that i represents to receive, the initial value of i is 0.
Step S306, determines that the corresponding neighborhood of this relation information on this equipment is normal, makes i=i+1,J=j+1, performs step S310 afterwards;
Wherein, j is variable, and the initial value of j is that 0, j exists for the judged result of statistic procedure S304Number of times.
Further, in step S306, in the corresponding neighbours of this relation information pass of determining on this equipmentWhile being normal, refresh the keep-alive timer of this neighborhood.
Step S308, determines that the corresponding neighborhood of this relation information on this equipment disconnects, and makes i=i+1,Perform step afterwards S310;
Step S310, judges whether i equals M, if so, performs step S312, otherwise, return to stepS304;
The quantity of the relation information carrying in the two layer message that wherein, M-1 represents to receive.
Step S312, judges whether j is greater than 0, if so, performs step S314, otherwise, execution stepS316;
Step S314, receives timer by two layer message and restarts timing, returns to step S302;
Step S316, determines that all neighborhoods of setting up between this equipment and this opposite equip. disconnect.
By above-mentioned steps S302~step S314, if received before two layer message receives timer expiryThe two layer message sent of this opposite equip., for each relation of carrying in the two layer message receivingInformation, judges on this equipment, whether there is identical relation information; If exist, determine this relation information instituteCorresponding neighborhood is normal, if do not exist, determines that the corresponding neighborhood of this relation information disconnects;After all relation informations that carry in the two layer message receiving have all judged, if at least one relationThe judged result of information is to have (that is, j is greater than 0), two layer message is received to timer reclocking.
In the method for the above embodiments of the present application, after having set up neighborhood with opposite equip., the meeting of this equipmentRecord the relation information of this neighborhood, no longer to this opposite equip. send this neighborhood for routeThe keep-alive message of agreement, and this relation information of record is added to and in two layer message, sends to this opposite equip.,Like this, if two network equipments have been set up neighborhood for multiple Routing Protocol, do not need to send out againGiven the keep-alive message of this multiple Routing Protocol, and only need send a two layer message, that is, this is multipleRouting Protocol has been shared this two layer message as keep-alive message, thereby, reduce the transmission number of keep-alive messageAmount, has saved network bandwidth resources.
In addition, because two layer message is processed without transmitted to CPU, therefore, reduced cpu resourceOccupancy, has improved network stabilization.
Taking the network shown in Fig. 4 as example, said method is elaborated below.
In Fig. 4, the interface P1 of router R1 is connected with the interface P2 of router R2, the IP of P1Address is 1.1.1.1, and the IP address of P2 is 1.1.1.2. Adopt the mode of static state setting in advance, arrange twoThe timing time that layer message transmission timer and two layer message receive timer is 30s. The upper bag of R1 and R2Draw together: ethernet module, for carrying out ospf protocol module, the Yi Jiyong of ospf protocol correlation functionIn the Intermediate System to Intermediate System module of carrying out Intermediate System to Intermediate System correlation function.
Ospf protocol module on ospf protocol module and R2 on R1 is set up for ospf protocolNeighborhood, afterwards, ospf protocol module on R1 is registered this neighborhood to ethernet moduleRelation information, ethernet module records relation information as shown in table 1; Ethernet module stops to R2Send the hello packet of ospf protocol; The relation information in table 1 is carried at two layers by ethernet moduleIn the TLV of message, send to R2, open two layer message transmission timer and two layer message corresponding to R2Receive timer, if this two layer message transmission timer then, send and carry shown in table 1 to R2The two layer message of relation information, and two layer message transmission timer is restarted to timing.
Equally, the upper OSPF module of R2 and ethernet module also can be carried out similar operations, are on R2The relation information of ethernet module record is as shown in table 2.
Table 1
Table 2
After R2 receives the two layer message of R1 transmission, the ethernet module on R2 is resolved and is obtained these two layersRelation information 1:1.1.1.1,1.1.1.2 in the TLV of message, 30s, 89, mate with table 2,Concrete, the IP of the opposite equip. in the IP address of this equipment in this relation information 1 and table 2 the 2nd rowMate address, originally establishing in the IP address of opposite equip. in this relation information 1 and table 2 the 2nd rowMate standby IP address, and the keep-alive message in this relation information 1 sends in cycle and table 2 the 2nd rowThe keep-alive message transmission cycle mate, in the protocol number in this relation information 1 and table 2 the 2nd rowProtocol number mates, and matching result is that all the match is successful, that is, the upper existence of R2 is identical with relation information 1Relation information, ethernet module determines that the corresponding neighborhood of relation information 1 is normal, makes j=J+1=0+1=1 (initial value of j is 0), notice ospf protocol module refreshes the guarantor with the neighborhood of R1Active timer is normal with maintenance of neighbor relation; Ethernet module judges whether j is greater than 0, and judged result isJ=1 > 0, ethernet module receives timer by two layer message and restarts timing. Equally, R1 also canCarry out similar operations.
Follow-up, the Intermediate System to Intermediate System module on R1 and R2 has also been set up neighborhood, afterwards, on R1Intermediate System to Intermediate System module is registered the relation information of this neighborhood to ethernet module, ethernet module is by this passBe information recording in table 1, now, table 1 is updated to as shown in table 3; Ethernet module stops to R2Send the hello packet of Intermediate System to Intermediate System; Ethernet module adds the relation information in table 3 the 3rd row toIn the TLV of two layer message, send to R2, and two layer message transmission timer is restarted to timing; IfThis two layer message transmission timer then, sends and carries two layers of the relation information shown in table 3 to R2Message, and two layer message transmission timer is restarted to timing.
Equally, the upper OSPF module of R2 and ethernet module also can be carried out similar operations, are on R2Table 2 on ethernet module is updated to as shown in table 4.
Table 3
Table 4
After R2 receives the two layer message of R1 transmission, the ethernet module on R2 is resolved and is obtained these two layersRelation information 1:1.1.1.1,1.1.1.2 in the TLV of message, 30s, 89, and, relation information 2:1.1.1.1,1.1.1.2,30s, 17, relation information 1 is mated with table 4, matching result is relationThe match is successful for information 1, that is, and and the upper relation information identical with relation information 1, the Ethernet mould of existing of R2Piece determines that the corresponding neighborhood of relation information 1 is normal, makes j=j+1=0+1=1, notice ospf protocolModule refreshes the keep-alive timer with the neighborhood of R1, normal with maintenance of neighbor relation; Then, pinRelation information 2 is mated with table 4, matching result be relation information 2 the match is successful, that is, and R2The relation information that upper existence is identical with relation information 2, ethernet module is determined 2 correspondences of relation informationNeighborhood normal, make j=j+1=1+1=2, notice Intermediate System to Intermediate System module refreshes with the neighbours of R1 closesThe keep-alive timer of system is normal with maintenance of neighbor relation; Ethernet module judges whether j is greater than 0, judgementResult is j=2 > 0, two layer message is received to timer and restart timing. Equally, R1 also can carry outSimilar operations.
For the method in above-described embodiment, in the embodiment of the present application, also provide a kind of the method for can applyingKeep-alive message process device, this device can be applied in the network equipments such as router.
As shown in Figure 5, this keep-alive message process device comprises with lower module: preserve module 401, send mouldPiece 402, opening module 403 and timer replacement module 404, wherein:
Preserve module 401, for after having set up neighborhood with opposite equip., record this neighborhoodRelation information;
Sending module 402, for the pass of having recorded the neighborhood of setting up with opposite equip. in preservation module 401Be after information, stop to this opposite equip. send this neighborhood for the keep-alive message of Routing Protocol;Also add two layer message to for this relation information that preservation module 401 is recorded and send to this opposite equip.;
Opening module 403, for having recorded the neighbour of this device first with opposite equip. foundation in preservation module 401After occupying the relation information of relation, open two layer message transmission timer;
Timer replacement module 404, for preserve module 401 recorded this equipment again with this opposite equip.After the relation information of the neighborhood of setting up, two layer message transmission timer is restarted to timing.
In addition, preserve module 401, also for after removing to have enabled a Routing Protocol at this equipment, deletion recordThe relation information of the neighborhood of setting up for this Routing Protocol;
Sending module 402, also for preserve module 401 deleted record for the Routing Protocol that goes to enableAfter the relation information of the neighborhood of setting up, from two layer message, delete this equipment for the route of going to enableThe relation information of the neighborhood that agreement and this opposite equip. are set up, sends to this by the two layer message after upgradingOpposite equip.;
Timer replacement module 404, also for preserve module 401 deleted record for the road of going to enableAfter the relation information of the neighborhood of being set up by agreement, two layer message transmission timer is restarted to timing.
In addition, sending module 402, if also for two layer message transmission timer then, will carry preservationTwo of the relation information of all neighborhoods of setting up between this equipment of record and opposite equip. in module 401Layer message sends to opposite equip.;
Timer replacement module 404, if also for two layer message transmission timer then, send out two layer messageSend timer to restart timing.
As shown in Figure 6, in this keep-alive message process device, can also comprise with lower module: receiver module 405,Judge module 406 and determination module 407, wherein:
Opening module 403, also in the time opening two layer message transmission timer, opens two layer message reception and determinesTime device;
Receiver module 405, for receiving two layer message;
Judge module 406, if received before two layer message receives timer expiry for receiver module 405The two layer message sent of opposite equip., for each relation letter carrying in the two layer message receivingBreath, judges and preserves in module 401 whether have identical relation information;
Determination module 407, if the two layer message receiving for receiver module 405 for judge module 406The arbitrary relation information carrying, judges in preservation module 401 and has identical relation information, and determining shouldThe corresponding neighborhood of relation information is normal, preserves in module 401 and does not have identical relation if judgeInformation, determines that the corresponding neighborhood of this relation information disconnects; If also for receiver module 405 twoAfter layer message receives timer expiry, do not receive yet the two layer message that opposite equip. is sent, determine this equipmentAnd all neighborhoods of setting up between opposite equip. disconnect;
Timer replacement module 404, also for receive for receiver module 405 at judge module 406 twoAfter all relation informations that carry in layer message have all judged, if the judgement of at least one relation information knotFruit is to exist, and two layer message is received to timer reclocking.
Wherein, the relation information of neighborhood comprises: this neighborhood for the keep-alive report of Routing ProtocolThe literary composition transmission cycle; , as shown in Figure 7, in this keep-alive message process device, also comprise:
Set timer module 408, becomes for the neighborhood of setting up between this equipment and opposite equip.After change, by the timing time of the timing time of two layer message transmission timer and two layer message reception timerBe set to, be not more than current all neighborhoods for the keep-alive message of Routing Protocol send the cycleLittle value.
To sum up, the above embodiment of the application can reach following technique effect:
In the technical scheme of the above embodiments of the present application, after having set up neighborhood with opposite equip., originally establishThe standby relation information that can record this neighborhood, no longer to this opposite equip. send this neighborhood forThe keep-alive message of Routing Protocol, and this relation information of record is added to and in two layer message, sends to this opposite endEquipment, like this, if two network equipments have been set up neighborhood for multiple Routing Protocol, does not needTo send again the keep-alive message of this multiple Routing Protocol, and only need send a two layer message, that is,This multiple Routing Protocol shared this two layer message as keep-alive message, thereby, reduce keep-alive messageQuantity forwarded, has saved network bandwidth resources.
In addition, because two layer message is processed without transmitted to CPU, therefore, reduced cpu resourceOccupancy, has improved network stabilization.
The foregoing is only the application's preferred embodiment, not in order to limit the application, all at thisWithin the spirit and principle of application, any amendment of making, be equal to replacement, improvement etc., all should be included inWithin the scope of the application's protection.

Claims (12)

1. a keep-alive message processing method, is characterized in that, comprising:
After having set up neighborhood with opposite equip., record the relation information of this neighborhood;
Stop to described opposite equip. send this neighborhood for the keep-alive message of Routing Protocol;
This relation information of record is added to and in two layer message, sends to described opposite equip..
2. method according to claim 1, is characterized in that, if first with described opposite equip.Set up neighborhood,, after recording the relation information of this neighborhood, also comprise: open two layer messageTransmission timer;
If not setting up neighborhood with described opposite equip. first, recording the relation letter of this neighborhoodAfter breath, also comprise: described two layer message transmission timer is restarted to timing.
3. method according to claim 2, is characterized in that, also comprises:
After this equipment removes to have enabled a Routing Protocol, the neighbours that set up for this Routing Protocol of deletion recordThe relation information of relation;
From described two layer message, deleting this equipment sets up for the Routing Protocol that goes to enable and described opposite equip.The relation information of neighborhood, the two layer message after upgrading is sent to described opposite equip., and will described inTwo layer message transmission timer restarts timing.
4. according to the method in claim 2 or 3, it is characterized in that, also comprise:
If described two layer message transmission timer then, will carry between this equipment and described opposite equip. and buildThe two layer message of the relation information of vertical all neighborhoods sends to described opposite equip., and by described two layersMessage transmission timer restarts timing.
5. according to the method in claim 2 or 3, it is characterized in that, send out at the described two layer message of unlatchingWhile sending timer, open two layer message and receive timer; Described method also comprises:
If received two layers that described opposite equip. is sent before described two layer message receives timer expiryWhether message, for each relation information carrying in the two layer message receiving, judge on this equipmentThere is identical relation information; If exist, determine that the corresponding neighborhood of this relation information is normal, ifDo not exist, determine that the corresponding neighborhood of this relation information disconnects; In the two layer message receiving, takeAfter all relation informations of band have all judged, if the judged result of at least one relation information is to exist,Described two layer message is received to timer reclocking;
If described two layer message receives timer expiry and does not receive yet the two layer message that described opposite equip. is sent,Determine that all neighborhoods of setting up between this equipment and described opposite equip. disconnect.
6. method according to claim 1, is characterized in that, described method also comprises:
After the neighborhood of setting up between this equipment and described opposite equip. changes, two layer message is sent outSend the timing time of timer and the timing time of two layer message reception timer to be set to, be not more than current instituteHave neighborhood for the keep-alive message of Routing Protocol send the minimum of a value in cycle.
7. a keep-alive message process device, is characterized in that, comprising:
Preserve module, for after having set up neighborhood with opposite equip., record the relation of this neighborhoodInformation;
Sending module, in described preservation module records the pass of the neighborhood set up with described opposite equip.Be after information, stop to described opposite equip. send this neighborhood for the keep-alive report of Routing ProtocolLiterary composition; Also for this relation information of described preservation module records is added to two layer message send to described rightEnd equipment.
8. device according to claim 7, is characterized in that, also comprises:
Opening module, in described preservation module records the neighbour that sets up of this device first and described opposite equip.After occupying the relation information of relation, open two layer message transmission timer;
Timer replacement module, in described preservation module records this equipment again build with described opposite equip.After the relation information of vertical neighborhood, described two layer message transmission timer is restarted to timing.
9. device according to claim 8, is characterized in that,
Described preservation module, also for after removing to have enabled a Routing Protocol at this equipment, deletion record forThe relation information of the neighborhood that this Routing Protocol is set up;
Described sending module, also for deleted in described preservation module record for the Routing Protocol that goes to enableAfter the relation information of the neighborhood of setting up, from described two layer message, delete this equipment and make for described goingThe relation information of the neighborhood that the Routing Protocol of energy and described opposite equip. are set up, by two layers of report after upgradingLiterary composition sends to described opposite equip.;
Described timer replacement module, also for deleted in described preservation module record for the road of going to enableAfter the relation information of the neighborhood of being set up by agreement, described two layer message transmission timer is restartedTiming.
10. device according to claim 8 or claim 9, is characterized in that,
Described sending module, if also for described two layer message transmission timer then, will carry described guarantorThe relation information of all neighborhoods of setting up between this equipment recording in storing module and described opposite equip.Two layer message sends to described opposite equip.;
Described timer replacement module, if also for described two layer message transmission timer then, by described twoLayer message transmission timer restarts timing.
11. devices according to claim 8 or claim 9, is characterized in that, also comprise: receiver module, sentenceDisconnected module and determination module, wherein:
Described opening module, also in the time opening described two layer message transmission timer, opens two layer message and connectsReceive timer;
Described receiver module, for receiving two layer message;
Described judge module, if connect before described two layer message receives timer expiry for described receiver moduleReceived the two layer message that described opposite equip. is sent, in the two layer message receiving, carry eachIndividual relation information, judges in described preservation module whether have identical relation information;
Described determination module, if the two layer message receiving for described receiver module for described judge moduleThe arbitrary relation information carrying, judges in described preservation module and has identical relation information, and determining shouldThe corresponding neighborhood of relation information is normal, does not have identical relation if judge in described preservation moduleInformation, determines that the corresponding neighborhood of this relation information disconnects; If also for described receiver module in instituteState after two layer message receives timer expiry and do not receive yet the two layer message that described opposite equip. is sent, trueAll neighborhoods of setting up between fixed this equipment and described opposite equip. disconnect;
Described timer replacement module, also for receive for described receiver module at described judge module twoAfter all relation informations that carry in layer message have all judged, if the judgement of at least one relation information knotFruit is to exist, and described two layer message is received to timer reclocking.
12. devices according to claim 7, is characterized in that, described device also comprises:
Set timer module, becomes for the neighborhood of setting up between this equipment and described opposite equip.After change, by the timing time of the timing time of two layer message transmission timer and two layer message reception timerBe set to, be not more than current all neighborhoods for the keep-alive message of Routing Protocol send the cycleLittle value.
CN201510656568.3A 2015-10-12 2015-10-12 Keep alive Packet processing method and processing device Active CN105591938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510656568.3A CN105591938B (en) 2015-10-12 2015-10-12 Keep alive Packet processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510656568.3A CN105591938B (en) 2015-10-12 2015-10-12 Keep alive Packet processing method and processing device

Publications (2)

Publication Number Publication Date
CN105591938A true CN105591938A (en) 2016-05-18
CN105591938B CN105591938B (en) 2019-05-17

Family

ID=55931172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510656568.3A Active CN105591938B (en) 2015-10-12 2015-10-12 Keep alive Packet processing method and processing device

Country Status (1)

Country Link
CN (1) CN105591938B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911696A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of keep Alive Packet transmission method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094186A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method and interface board of retaining neighbourhood
CN102769573A (en) * 2012-08-01 2012-11-07 杭州华三通信技术有限公司 Method for sending BGP (border gateway protocol) keep-alive information by the aid of BFD (bidirectional forwarding detection) messages and routing devices
CN102904817A (en) * 2012-10-24 2013-01-30 福建星网锐捷网络有限公司 Transmitting method for link state advertisement (LSA), OSPF (open shortest path first interior gateway protocol) equipment and network system
CN103001887A (en) * 2012-11-22 2013-03-27 中兴通讯股份有限公司 Link keeping alive method, controller and switchboard
CN103209134A (en) * 2013-04-22 2013-07-17 杭州华三通信技术有限公司 Method and equipment for multicast forwarding
CN103763207A (en) * 2014-01-29 2014-04-30 杭州华三通信技术有限公司 In-band control connection establishment method and device in SDN

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094186A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method and interface board of retaining neighbourhood
CN102769573A (en) * 2012-08-01 2012-11-07 杭州华三通信技术有限公司 Method for sending BGP (border gateway protocol) keep-alive information by the aid of BFD (bidirectional forwarding detection) messages and routing devices
CN102904817A (en) * 2012-10-24 2013-01-30 福建星网锐捷网络有限公司 Transmitting method for link state advertisement (LSA), OSPF (open shortest path first interior gateway protocol) equipment and network system
CN103001887A (en) * 2012-11-22 2013-03-27 中兴通讯股份有限公司 Link keeping alive method, controller and switchboard
CN103209134A (en) * 2013-04-22 2013-07-17 杭州华三通信技术有限公司 Method and equipment for multicast forwarding
CN103763207A (en) * 2014-01-29 2014-04-30 杭州华三通信技术有限公司 In-band control connection establishment method and device in SDN

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911696A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of keep Alive Packet transmission method and device
CN106911696B (en) * 2017-02-28 2020-06-09 新华三技术有限公司 Keep-alive message transmission method and device

Also Published As

Publication number Publication date
CN105591938B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
US8885562B2 (en) Inter-chassis redundancy with coordinated traffic direction
US9521659B2 (en) Methods and apparatuses for communicating content data to a communications terminal from a local data store
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
CN105357146B (en) Buffer queue saturation attack defence method, apparatus and system in egress gateways
CN107852362A (en) Trellis paths select
US11831537B2 (en) Remotely and dynamically injecting routes into an IP network
CN106878072B (en) Message transmission method and device
US20130188598A1 (en) Local storage of content in a wireless network
CN103152284B (en) A kind of router multipath exports method and the router of intelligent load equilibrium
CN106059793B (en) Routing information processing method and device based on graceful restart
WO2013038155A1 (en) Communications terminal and method
CN103560947B (en) A kind of method and device avoiding intermediate system neighborhood to shake
CN101730062A (en) Method for processing exception between nonadjacent nodes
CN103188171B (en) A kind of method for dispatching message and equipment
EP2775663B1 (en) Method and device for recovering customer service
CN102546409B (en) Method and RB (route bridge) for processing message based on TRILL (Transparent Interconnection of Lots of Links) network
CN102611632A (en) VPLS (Virtual Private LAN Service) output route filtering method and device based on BGP (Border Gateway Protocol)
CN104796340A (en) Multicast data transmission method and device
CN104243303A (en) Updating message transmitting method and device in autonomous system loop networking
CN108234358B (en) Multicast message transmission method, device and machine readable storage medium
CN105591938A (en) Keep-alive message processing method and device
KR20210117305A (en) Resource cycle configuration method and device, link processing and establishment method and device
CN101179504B (en) Method, system and network appliance to restrain routing
CN101730125A (en) Method for carrying out node detection between nonadjacent nodes
CN107409100B (en) Method, device and communication system for communication in software defined network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant