CN103957079A - Negotiation method and equipment in HDLC network - Google Patents

Negotiation method and equipment in HDLC network Download PDF

Info

Publication number
CN103957079A
CN103957079A CN201410181618.2A CN201410181618A CN103957079A CN 103957079 A CN103957079 A CN 103957079A CN 201410181618 A CN201410181618 A CN 201410181618A CN 103957079 A CN103957079 A CN 103957079A
Authority
CN
China
Prior art keywords
local device
opposite equip
keepalive message
holding time
hdlc
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.)
Pending
Application number
CN201410181618.2A
Other languages
Chinese (zh)
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 CN201410181618.2A priority Critical patent/CN103957079A/en
Publication of CN103957079A publication Critical patent/CN103957079A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a negotiation method and equipment in an HDLC network. The negotiation method comprises the steps that a local end device receives a first keepalive message from an opposite end device; the local end device selects first maintenance time configured on the opposite end device or second maintenance time configured on the local end device as a negotiated maintenance time; the local end device sends a second keepalive message carrying the negotiated maintenance time to the opposite end device so that the opposite end device can obtain the negotiated maintenance time from the second keepalive message; the local end device sends a third keepalive message to the opposite end device by using the negotiated maintenance time and receives a fourth keepalive message sent by the opposite end device to the local end device through the negotiated maintenance time. By means of the negotiation method and equipment in the HDLC network, data message loss on an HDLC link can be avoided, and retransmission frequency of data messages is reduced.

Description

Machinery of consultation and equipment in a kind of HDLC network
Technical field
The present invention relates to communication technical field, machinery of consultation and equipment in especially a kind of HDLC network.
Background technology
HDLC (High-level Data Link Control, High-Level Data Link Control) be a kind of at WAN (Wide Area Network, wide area network) the data communication packaged type on link, and HDLC agreement be one in Synchronization Network for transmitting data, and bit-oriented data link layer protocol.
In order to detect the state of HDLC link, local device can periodically send keepalive (keep-alive) message to opposite equip., and opposite equip. can periodically send keepalive message to local device.The reception condition of the keepalive message of local device based on opposite equip., determine HDLC link normally or fault, and when HDLC link is normal, keeping corresponding interface is UP state, and when HDLC link failure, keeping corresponding interface is DOWN state; In like manner, the reception condition of the keepalive message of opposite equip. based on local device, determines HDLC link normally or fault; and when HDLC link is normal; keeping corresponding interface is UP state, and when HDLC link failure, keeping corresponding interface is DOWN state.
In prior art, the time interval that local device sends keepalive message to opposite equip. is first hold time (hold Time), and the time interval that opposite equip. sends keepalive message to local device is second to hold time, this first is held time and second holds time by user's arbitrary disposition, and user configured first, hold time and second hold time when unreasonable, can cause the loss of data message.
Suppose that first holds time as 10s, second holds time into 100s: local device sends keepalive message every 10s to opposite equip., and opposite equip. sends keepalive message every 100s to local device.Because local device or opposite equip. are sending after 5 keepalive messages continuously, if do not receive the keepalive message of opposite equip. or local device response, think HDLC link failure; Therefore, after local device sends 5 keepalive messages to opposite equip., opposite equip. can be received the keepalive message from local device, determines that HDLC link is normal, and to keep corresponding interface be UP state; Local device is not received the keepalive message from opposite equip., determines HDLC link failure, and to keep corresponding interface be DOWN state.In the case, the interface of local device is DOWN state, and the interface of opposite equip. is UP state; Now opposite equip. can send datagram by HDLC chain road direction local device, but local device cannot receiving data packets, thereby causes the data message transmitting on HDLC link to be lost.
Summary of the invention
The embodiment of the present invention provides machinery of consultation and the equipment in a kind of HDLC network, and holding time between local device and opposite equip. avoids the data message transmitting on HDLC link to lose through consultation.
In order to achieve the above object, the embodiment of the present invention provides the machinery of consultation in a kind of High-Level Data Link Control HDLC network, comprising: local device receives the keepalive message from opposite equip.; In a described keepalive message, carried first holding time of configuring on described opposite equip.; Described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting; Described local device sends and has carried the 2nd keepalive message of holding time after described negotiation to described opposite equip., so that described opposite equip. obtains holding time after described negotiation from described the 2nd keepalive message; Described local device utilizes holding time after described negotiation to send the 3rd keepalive message to described opposite equip., and receives described opposite equip. and utilize the 4th keepalive message holding time and sending to described local device after described negotiation.
Described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as the process of holding time after consulting, specifically comprise: described local device selects described first to hold time and the described second maximum time value holding time after as described negotiation in holding time; Or described local device selects described first to hold time and the described second minimum time value in holding time holding time after as described negotiation.
Described local device, after the 2nd keepalive message of holding time after described negotiation has been carried in described opposite equip. transmission, also comprises: described local device receives the 5th keepalive message for sniffing interface state from described opposite equip.; Wherein, described the 5th keepalive message is that described opposite equip. is being received described the 2nd keepalive message, and arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be to send to described local device after UP;
Described local device after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described local device to described opposite equip. send carried on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN;
So that described opposite equip. is after receiving described the 6th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, and make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram, or, make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
Described local device determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, comprising:
Described local device postpones Preset Time, and after postponing described Preset Time on definite described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN.
The embodiment of the present invention provides the consulting device in a kind of High-Level Data Link Control HDLC network, described consulting device at described HDLC network as local device, described local device specifically comprises: receiver module, for receiving the keepalive message from opposite equip.; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip.; Select module, for select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting; Sending module for sending and carried the 2nd keepalive message of holding time after described negotiation to described opposite equip., obtains holding time after described negotiation by described opposite equip. from described the 2nd keepalive message; Communication module, for utilizing holding time after described negotiation to send the 3rd keepalive message to described opposite equip., and receives described opposite equip. and utilizes the 4th keepalive message holding time and sending to described local device after described negotiation.
Described selection module specifically for: select described first to hold time and the described second maximum time value holding time after as described negotiation in holding time; Or, select described first to hold time and the described second minimum time value in holding time holding time after as described negotiation.
Described receiver module, also, for after the 2nd keepalive message of holding time after described negotiation has been carried in described opposite equip. transmission, receives the 5th keepalive message for sniffing interface state from described opposite equip.; Wherein, described the 5th keepalive message is that described opposite equip. is being received described the 2nd keepalive message, and arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be to send to described local device after UP; Described equipment also comprises: determination module, for after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described sending module, also for to described opposite equip., send carried on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN, so that described opposite equip. is after receiving described the 6th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, and make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram, or, make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
Described determination module specifically for: postpone Preset Time, and after postponing described Preset Time on definite described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN.
The embodiment of the present invention provides the consulting device in a kind of High-Level Data Link Control HDLC network, and described consulting device is at described HDLC network as opposite equip., and described opposite equip. specifically comprises:
Sending module, for sending a keepalive message to local device; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip. so that described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting; Receiver module, for having received from carrying of described local device the 2nd keepalive message of holding time after consulting, described the 2nd keepalive message carries holding time after described negotiation; Communication module, for utilizing holding time after described negotiation to send the 4th keepalive message to described local device, and receives described local device and utilizes the 3rd keepalive message holding time and sending to described opposite equip. after described negotiation.
Described equipment also comprises: module is set, for after receiving described the 2nd keepalive message, arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be UP; Described sending module, also for sending the 5th keepalive message for sniffing interface state to described local device, so that described local device after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described receiver module, also for received from carrying of local device on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN; Described sending module, also on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram; On described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, between local device and opposite equip., hold time through consultation, and holding time after local device utilization negotiation sends keepalive message to opposite equip., and holding time after opposite equip. utilization negotiation sends keepalive message to local device, thereby holding time between local device and opposite equip. avoids the data message transmitting on HDLC link to lose through consultation, reduces the number of retransmissions of data message.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of the HDLC network of embodiment of the present invention proposition;
Fig. 2 is the machinery of consultation flow chart in a kind of HDLC network of providing of the embodiment of the present invention;
Fig. 3 is the consulting device structure chart in a kind of HDLC network of providing of the embodiment of the present invention;
Fig. 4 is the consulting device structure chart in the another kind of HDLC network that provides of the embodiment of the present invention;
Fig. 5 is the consulting device structure chart in another HDLC network of providing of the embodiment of the present invention;
Fig. 6 is the consulting device structure chart in another HDLC network of providing of the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides the machinery of consultation in a kind of HDLC network, with holding time between local device and opposite equip. through consultation, avoids the loss of the data message that transmits on HDLC link.Wherein, in this HDLC network, at least comprise local device and opposite equip., local device is relative with opposite equip., as: in the application scenarios of the HDLC network as shown in Fig. 1, device A is local device, and equipment B is opposite equip.; Or device A is opposite equip., equipment B is local device.Wherein, the interface 1 in device A is connected with the interface 2 in equipment B, and the link between the interface in the interface in device A 1 and equipment B 2 is HDLC link.
Under above-mentioned application scenarios, as shown in Figure 2, the method at least can comprise the following steps:
Step 201, device A sends and has carried the first keepalive message of holding time configuring in device A to equipment B.Wherein, this first to hold time be user's arbitrary disposition according to actual needs.
In the embodiment of the present invention, by existing keepalive message is modified, to increase new link-quality TLV (Type Length Value, type lengths values) field in this keepalive message, and the relevant information of holding time by the carrying of this link-quality TLV field.For example, when the Type in link-quality TLV field is the first sign (as 0x00), what represent to carry in the Value in link-quality TLV field is holding time of configuring on this equipment, and what in device A, configure first holds time.
Wherein, having carried the first keepalive message of holding time is a keepalive message.
As shown in table 1, example for an a kind of keepalive message, the type field in this table 1, Length field and Value field are the link-quality TLV field proposing in the embodiment of the present invention, other field is the field in existing keepalive message, in the embodiment of the present invention, this is repeated no longer in detail.
Table 1
Address (address) 8bits
Control (control) 8bits
Protocol Code (agreement code) 16bits(0x0835)
Op-Code (command code) 32bits
Sender Sequence (transmit leg sequence number) 32bits
Last Received Sequence (last receive sequence number) 32bits
Type (type) 2 bytes
Length (length) 2 bytes
Value (value) Occurrence
Step 202, equipment B after having received from carrying of device A the first keepalive message of holding time configuring in device A, select to configure in device A first hold time or equipment B on configure second hold time (arbitrary disposition according to actual needs) as holding time after consulting.
In the embodiment of the present invention, equipment B select to configure in device A first hold time or equipment B on configure second hold time as the process of holding time after consulting, specifically include but not limited to: if in device A, configure first hold time from equipment B, configure second hold time differently, equipment B selects first to hold time and the second maximum time value holding time after as negotiation in holding time; Or, equipment B select first hold time and the second minimum time value in holding time as holding time after consulting; Or equipment B directly selects first to hold time as holding time after consulting; Or equipment B directly selects second to hold time as holding time after consulting.If in device A, configure first hold time with in equipment B, configure second hold time identically, equipment B directly selects first to hold time (or second hold time) as holding time after consulting.
Step 203, equipment B sends the 2nd keepalive message of holding time having carried after consulting to device A.Wherein, the keepalive message of holding time having carried after consulting is the 2nd keepalive message.
In the embodiment of the present invention, by existing keepalive message is modified, to increase new link-quality TLV field in this keepalive message, and the relevant information of holding time by the carrying of this link-quality TLV field.For example, keepalive message based on shown in table 1, when the Type in link-quality TLV field is the second sign (as 0x01), what represent to carry in the Value in link-quality TLV field is holding time after consulting, and what equipment B was selected first holds time or second hold time.
Step 204, device A receive from equipment B carry the 2nd keepalive message of holding time after negotiation after, holding time after consulting from the 2nd keepalive message.
Step 205, holding time after device A utilization negotiation sends the 3rd keepalive message to equipment B, and holding time after equipment B utilization negotiation sends the 4th keepalive message to device A.
Wherein, the 3rd keepalive message and the 4th keepalive message are existing keepalive message.
After the relevant treatment through above-mentioned steps 201-step 204, between device A and equipment B, consulted and held time.Therefore, device A can utilize holding time after negotiation to send the 3rd keepalive message to equipment B, and equipment B can utilize holding time after negotiation to send the 4th keepalive message to device A.Based on this, device A and equipment B will send keepalive message to opposite equip. based on identical holding time (holding time after consulting), thereby by avoiding the data message transmitting on HDLC link to lose with identical holding time, and reduce the number of retransmissions of data message.
In above-mentioned processing procedure, device A is sending a keepalive message (step 201) before to equipment B, can judgment device A and equipment B between whether consulted to hold time; If current, consulted to hold time, above-mentioned steps 201-step 204 had been carried out in explanation, now can directly perform step 205; If current, do not consult to hold time, carry out above-mentioned steps 201-step 205.In step 205, device A will utilize holding time after negotiation periodically to equipment B, to send the 3rd keepalive message, and the time interval of transmission the 3rd keepalive message is holding time after consulting; Equipment B holding time after utilize consulting periodically sends the 4th keepalive message to device A, and the time interval that sends the 4th keepalive message is holding time after consulting.In addition, in the 3rd keepalive message that device A sends to equipment B, go back the sequence number of the equipment B of carrying in the sequence number of Portable device A and the last keepalive message from equipment B, in the keepalive message that equipment B sends to device A, go back the sequence number of the device A of carrying in the sequence number of Portable device B and the last keepalive message from device A.The sequence number information of carrying in the transmission situation based on keepalive message, reception condition and keepalive message, device A and equipment B can determine HDLC link failure or HDLC link is normal; When HDLC link is normal, it is UP state that device A and equipment B keep corresponding interface, and device A utilizes this HDLC chain road direction equipment B to send datagram; When HDLC link failure, it is DOWN state that device A and equipment B keep corresponding interface, and device A stops utilizing this HDLC chain road direction equipment B to send datagram, to avoid data message to lose.
In the embodiment of the present invention, in order consulting between device A and equipment B, to hold time, can also in device A and equipment B, to distinguish configuration order Time-hold auto, this order Time-hold auto shows to agree to consult to hold time.If that is: configuration order Time-hold auto in device A, allows device A to consult to hold time, carry out above-mentioned steps 201-step 204; If configuration order Time-hold auto in equipment B, allows equipment B to consult to hold time, carry out above-mentioned steps 201-step 204.
In a concrete example, suppose that first holds time as 10s (configuring the timer of 10s in device A), second holds time as 100s (configuring the timer of 100s in equipment B), and the local sequence number of device A is 100, and the local sequence number of equipment B is 50.That: in step 201, in the keepalive message that device A sends to equipment B, Sender Sequence field is that 100, Last Received Sequence field is 50, in link-quality TLV field, carries first holds time as 10s.In step 203, in the 2nd keepalive message that equipment B sends to device A, Sender Sequence field is 50, Last Received Sequence field is 101 (local sequence number+1 of device A), holding time as 100s (selection second is held time 100s for holding time after consulting) after the negotiation of carrying in link-quality TLV field.
In the embodiment of the present invention, after step 204, before step 205, device A can also arrange in device A with equipment B between Interface status corresponding to HDLC link be UP, and can send the 5th keepalive message for sniffing interface state to equipment B.Wherein, by existing keepalive message is modified, to increase new link-quality TLV field in this keepalive message, and the relevant information of holding time by the carrying of this link-quality TLV field.For example, keepalive message based on shown in table 1, when the Type in link-quality TLV field is the 3rd sign (as 0x02), represent that the content of carrying in the Value in link-quality TLV field is for sniffing interface state, for Interface status corresponding to HDLC link on detecting devices B.Wherein, the keepalive message for sniffing interface state is the 5th keepalive message.
Concrete, device A is after the 2nd keepalive message of holding time of having received from carrying of equipment B after consulting, when the sequence number (101) that carries in finding the Last Received Sequence field of the 2nd keepalive message is larger than current local sequence number (100), device A arrange in this device A with equipment B between Interface status corresponding to HDLC link be UP, and the sequence number of recording equipment B is the sequence number (50) carrying in the Sender Sequence field of the 2nd keepalive message, and send the 5th keepalive message for sniffing interface state to equipment B, the Interface status of equipment B is surveyed by the 5th keepalive message.For make equipment B can arrange as early as possible in equipment B with device A between Interface status corresponding to HDLC link be UP, the 5th keepalive message for sniffing interface state that device A sends to equipment B, Sender Sequence field is 101, Last Received Sequence field is 51 (to be the sequence number 50+1 of equipment B, when the sequence number in Last Received Sequence field is greater than the local current sequence number of equipment B, equipment B can arrange as early as possible in equipment B with device A between Interface status corresponding to HDLC link be UP).
In the embodiment of the present invention, equipment B is after the 5th keepalive message for sniffing interface state (being interface 2 states) of receiving from device A, determine in equipment B with device A between Interface status corresponding to HDLC link, in this equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN.Afterwards, equipment B to device A send carried in equipment B with device A between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN.
Wherein, by existing keepalive message is modified, to increase new link-quality TLV field in this keepalive message, and the relevant information of holding time by the carrying of this link-quality TLV field.For example, keepalive message based on shown in table 1, when the Type in link-quality TLV field is the 4th sign (as 0x03), represent that the content of carrying in the Value in link-quality TLV field is Interface status, in equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN.Wherein, carried in equipment B with device A between Interface status corresponding to HDLC link be that the keepalive message of UP or DOWN is the 6th keepalive message.
Concrete, equipment B is after the 5th keepalive message for sniffing interface state of receiving from device A, when the sequence number (51) that carries in the Last Received Sequence field in finding the 5th keepalive message is larger than the local sequence number of current device B (50), equipment B determine in equipment B with device A between Interface status (as the state of interface 2 in network layer) corresponding to HDLC link be UP or DOWN, and the sequence number of recording equipment A is the sequence number (101) carrying in the Sender Sequence field of the 5th keepalive message, and to device A send carried in equipment B with device A between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN.In equipment B, to device A, send carried in equipment B with device A between Interface status corresponding to HDLC link be in the 6th keepalive message of UP or DOWN, Sender Sequence field is that 51, Last Received Sequence field is 102.
In the embodiment of the present invention, equipment B determine in equipment B with device A between Interface status corresponding to HDLC link be the process of UP or DOWN, specifically comprise: equipment B postpones Preset Time (as 1s), and after postponing Preset Time, determine in equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN.That is: equipment B is after the 5th keepalive message of receiving for sniffing interface state, after postponing Preset Time, just can go to determine in equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN, and to device A send carried in equipment B with device A between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN.Wherein, equipment B postpone just to go after Preset Time in definite equipment B with device A between Interface status corresponding to HDLC link be that the reason of UP or DOWN is: equipment B is after the 5th keepalive message of receiving for sniffing interface state, if go at once to determine in equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN, may obtain wrong result, if and after postponing Preset Time, just go in definite equipment B with device A between Interface status corresponding to HDLC link be UP or DOWN, can obtain correct result.
Equipment B to device A send carried in equipment B with device A between Interface status corresponding to HDLC link be after the 6th keepalive message of UP or DOWN, device A received from carrying of equipment B in equipment B with device A between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN after, equipment B upper with device A between Interface status corresponding to HDLC link be UP or DOWN (state that is interface 2 is UP or DOWN).
In equipment B with device A between Interface status corresponding to HDLC link while being UP, device A confirms that current this HDLC chain road direction equipment B of can utilizing sends datagram, device A can be utilized this HDLC chain road direction equipment B forwarding data packets immediately.In equipment B with device A between Interface status corresponding to HDLC link while being DOWN, device A is confirmed can to utilize this HDLC chain road direction equipment B to send datagram after holding time after two negotiations, be that device A is waited for after holding time after two negotiations, just can utilize this HDLC chain road direction equipment B to send datagram.
Wherein, device A waits for that the reason just sending datagram to equipment B of holding time after two negotiations is: due in equipment B with device A between Interface status corresponding to HDLC link be DOWN, therefore device A need to wait until in equipment B with device A between Interface status corresponding to HDLC link be UP, just can send datagram to equipment B, and in equipment B with device A between Interface status corresponding to HDLC link by DOWN, switch to UP, the longlyest need to wait for holding time after two negotiations, therefore, in equipment B with device A between Interface status corresponding to HDLC link while being DOWN, after device A is waited for holding time after two negotiations, just to equipment B, send datagram, to avoid traffic loss.
In sum, by utilizing the machinery of consultation in a kind of HDLC network that the embodiment of the present invention provides, between local device and opposite equip., hold time through consultation, and holding time after local device utilization negotiation sends keepalive message to opposite equip., and holding time after opposite equip. utilization negotiation sends keepalive message to local device, thereby holding time between local device and opposite equip. avoids the data message transmitting on HDLC link to lose through consultation, reduces the number of retransmissions of data message.
Inventive concept based on same with said method, consulting device in a kind of High-Level Data Link Control HDLC network is also provided in the embodiment of the present invention, described consulting device at described HDLC network as local device, as shown in Figure 3, described local device specifically comprises: receiver module 11, for receiving the keepalive message from opposite equip.; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip.; Select module 12, for select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting; Sending module 13 for sending and carried the 2nd keepalive message of holding time after described negotiation to described opposite equip., obtains holding time after described negotiation by described opposite equip. from described the 2nd keepalive message; Communication module 14, for utilizing holding time after described negotiation to send the 3rd keepalive message to described opposite equip., and receives described opposite equip. and utilizes the 4th keepalive message holding time and sending to described local device after described negotiation.
Described selection module 12 specifically for: select described first to hold time and the described second maximum time value holding time after as described negotiation in holding time; Or, select described first to hold time and the described second minimum time value in holding time holding time after as described negotiation.
Described receiver module 11, also, for after the 2nd keepalive message of holding time after described negotiation has been carried in described opposite equip. transmission, receives the 5th keepalive message for sniffing interface state from described opposite equip.; Wherein, described the 5th keepalive message is that described opposite equip. is being received described the 2nd keepalive message, and arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be to send to described local device after UP;
As shown in Figure 4, described equipment also comprises:
Determination module 15, for after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described sending module 13, also for to described opposite equip., send carried on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN, so that described opposite equip. is after receiving described the 6th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, and make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram, or, make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
Described determination module 15 specifically for: postpone Preset Time, and after postponing described Preset Time on definite described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separatedly dispose.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
In sum, by utilizing the consulting device in a kind of HDLC network that the embodiment of the present invention provides, between local device and opposite equip., hold time through consultation, and holding time after local device utilization negotiation sends keepalive message to opposite equip., and holding time after opposite equip. utilization negotiation sends keepalive message to local device, thereby holding time between local device and opposite equip. avoids the data message transmitting on HDLC link to lose through consultation, reduces the number of retransmissions of data message.
Inventive concept based on same with said method, consulting device in a kind of HDLC network is also provided in the embodiment of the present invention, described consulting device at described HDLC network as opposite equip., as shown in Figure 5, described opposite equip. comprises: sending module 21, for sending a keepalive message to local device; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip. so that described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting; Receiver module 22, for having received from carrying of described local device the 2nd keepalive message of holding time after consulting, described the 2nd keepalive message carries holding time after described negotiation; Communication module 23, for utilizing holding time after described negotiation to send the 4th keepalive message to local device, and receives described local device and utilizes the 3rd keepalive message holding time and sending to described opposite equip. after described negotiation.
As shown in Figure 6, described equipment also comprises: module 24 is set, for after receiving described the 2nd keepalive message, arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be UP; Described sending module 21, also for sending the 5th keepalive message for sniffing interface state to described local device, so that described local device after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described receiver module 22, also for received from carrying of local device on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN; Described sending module 21, also on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram; On described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separatedly dispose.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
In sum, by utilizing the consulting device in a kind of HDLC network that the embodiment of the present invention provides, between local device and opposite equip., hold time through consultation, and holding time after local device utilization negotiation sends keepalive message to opposite equip., and holding time after opposite equip. utilization negotiation sends keepalive message to local device, thereby holding time between local device and opposite equip. avoids the data message transmitting on HDLC link to lose through consultation, reduces the number of retransmissions of data message.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Disclosed is above only several specific embodiment of the present invention, and still, the present invention is not limited thereto, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. the machinery of consultation in High-Level Data Link Control HDLC network, is characterized in that, comprising:
Local device receives the keepalive message from opposite equip.; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip.;
Described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting;
Described local device sends and has carried the 2nd keepalive message of holding time after described negotiation to described opposite equip., so that described opposite equip. obtains holding time after described negotiation from described the 2nd keepalive message;
Described local device utilizes holding time after described negotiation to send the 3rd keepalive message to described opposite equip., and receives described opposite equip. and utilize the 4th keepalive message holding time and sending to described local device after described negotiation.
2. the method for claim 1, is characterized in that, described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as the process of holding time after consulting, specifically comprise:
Described local device selects described first to hold time and the described second maximum time value holding time after as described negotiation in holding time; Or described local device selects described first to hold time and the described second minimum time value in holding time holding time after as described negotiation.
3. the method for claim 1, is characterized in that, described local device, after the 2nd keepalive message of holding time after described negotiation has been carried in described opposite equip. transmission, also comprises:
Described local device receives the 5th keepalive message for sniffing interface state from described opposite equip.; Wherein, described the 5th keepalive message is that described opposite equip. is being received described the 2nd keepalive message, and arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be to send to described local device after UP;
Described local device after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described local device to described opposite equip. send carried on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN, so that described opposite equip. is after receiving described the 6th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, and make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram, or, make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
4. method as claimed in claim 3, is characterized in that, described local device determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, comprising:
Described local device postpones Preset Time, and after postponing described Preset Time on definite described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN.
5. the consulting device in High-Level Data Link Control HDLC network, described consulting device, is characterized in that as local device at described HDLC network, described local device specifically comprises:
Receiver module, for receiving the keepalive message from opposite equip.; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip.;
Select module, for select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting;
Sending module for sending and carried the 2nd keepalive message of holding time after described negotiation to described opposite equip., obtains holding time after described negotiation by described opposite equip. from described the 2nd keepalive message;
Communication module, for utilizing holding time after described negotiation to send the 3rd keepalive message to described opposite equip., and receives described opposite equip. and utilizes the 4th keepalive message holding time and sending to described local device after described negotiation.
6. equipment as claimed in claim 5, is characterized in that, described selection module specifically for: select described first to hold time and the described second maximum time value holding time after as described negotiation in holding time; Or, select described first to hold time and the described second minimum time value in holding time holding time after as described negotiation.
7. equipment as claimed in claim 5, it is characterized in that, described receiver module, also, for after the 2nd keepalive message of holding time after described negotiation has been carried in described opposite equip. transmission, receive the 5th keepalive message for sniffing interface state from described opposite equip.; Wherein, described the 5th keepalive message is that described opposite equip. is being received described the 2nd keepalive message, and arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be to send to described local device after UP;
Described equipment also comprises:
Determination module, for after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described sending module, also for to described opposite equip., send carried on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN, so that described opposite equip. is after receiving described the 6th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN, and make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram, or, make described opposite equip. on described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
8. equipment as claimed in claim 7, it is characterized in that, described determination module specifically for: postpone Preset Time, and after postponing described Preset Time on definite described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN.
9. the consulting device in High-Level Data Link Control HDLC network, described consulting device, is characterized in that as opposite equip. at described HDLC network, described opposite equip. specifically comprises:
Sending module, for sending a keepalive message to local device; Wherein, in a described keepalive message, carried first holding time of configuring on described opposite equip. so that described local device select to configure on described opposite equip. first hold time or described local device on configure second hold time as holding time after consulting;
Receiver module, for having received from carrying of described local device the 2nd keepalive message of holding time after consulting, described the 2nd keepalive message carries holding time after described negotiation;
Communication module, for utilizing holding time after described negotiation to send the 4th keepalive message to described local device, and receives described local device and utilizes the 3rd keepalive message holding time and sending to described opposite equip. after described negotiation.
10. equipment as claimed in claim 9, is characterized in that, described equipment also comprises:
Module is set, for after receiving described the 2nd keepalive message, arrange on described opposite equip. with described local device between Interface status corresponding to HDLC link be UP;
Described sending module, also for sending the 5th keepalive message for sniffing interface state to described local device, so that described local device after receiving described the 5th keepalive message, determine on described local device with opposite equip. between Interface status corresponding to HDLC link be UP or DOWN;
Described receiver module, also for received from carrying of local device on described local device with opposite equip. between Interface status corresponding to HDLC link be the 6th keepalive message of UP or DOWN;
Described sending module, also on described local device with opposite equip. between Interface status corresponding to HDLC link while being UP, to described local device, send datagram; On described local device with opposite equip. between Interface status corresponding to HDLC link while being DOWN, after holding time after two described negotiations, to described local device, send datagram.
CN201410181618.2A 2014-04-30 2014-04-30 Negotiation method and equipment in HDLC network Pending CN103957079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410181618.2A CN103957079A (en) 2014-04-30 2014-04-30 Negotiation method and equipment in HDLC network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410181618.2A CN103957079A (en) 2014-04-30 2014-04-30 Negotiation method and equipment in HDLC network

Publications (1)

Publication Number Publication Date
CN103957079A true CN103957079A (en) 2014-07-30

Family

ID=51334314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410181618.2A Pending CN103957079A (en) 2014-04-30 2014-04-30 Negotiation method and equipment in HDLC network

Country Status (1)

Country Link
CN (1) CN103957079A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161278A (en) * 2015-04-10 2016-11-23 中兴通讯股份有限公司 A kind of reduce the method and device of message congestion in LMP Link Manager Protocol
CN106941426A (en) * 2016-01-05 2017-07-11 中兴通讯股份有限公司 A kind of chain processing method and device
CN109218121A (en) * 2017-07-03 2019-01-15 中兴通讯股份有限公司 Machinery of consultation, device and the equipment of Air conduct measurement parameter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891766A (en) * 2012-09-25 2013-01-23 汉柏科技有限公司 Internet protocol security (IPSec) state recovery method
CN103227792A (en) * 2013-04-26 2013-07-31 杭州华三通信技术有限公司 Method and equipment for achieving GR in IS-IS network
CN103491011A (en) * 2013-09-05 2014-01-01 杭州华三通信技术有限公司 BGP conversation changing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891766A (en) * 2012-09-25 2013-01-23 汉柏科技有限公司 Internet protocol security (IPSec) state recovery method
CN103227792A (en) * 2013-04-26 2013-07-31 杭州华三通信技术有限公司 Method and equipment for achieving GR in IS-IS network
CN103491011A (en) * 2013-09-05 2014-01-01 杭州华三通信技术有限公司 BGP conversation changing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161278A (en) * 2015-04-10 2016-11-23 中兴通讯股份有限公司 A kind of reduce the method and device of message congestion in LMP Link Manager Protocol
CN106941426A (en) * 2016-01-05 2017-07-11 中兴通讯股份有限公司 A kind of chain processing method and device
WO2017117957A1 (en) * 2016-01-05 2017-07-13 中兴通讯股份有限公司 Link processing method and apparatus
CN106941426B (en) * 2016-01-05 2019-06-04 中兴通讯股份有限公司 A kind of chain processing method and device
CN109218121A (en) * 2017-07-03 2019-01-15 中兴通讯股份有限公司 Machinery of consultation, device and the equipment of Air conduct measurement parameter

Similar Documents

Publication Publication Date Title
US11096184B2 (en) Data processing method, terminal device, and base station
CN104412640B (en) High layer compression is carried out using low layer signaling
CN104469660B (en) Network-building method based on bluetooth
CN103916275A (en) BFD detection device and method
CN107465613B (en) Link aggregation interface communication state switching method and device
CN103973414B (en) A kind of data transmission method and device
US20090245225A1 (en) Method and Apparatus of Transmission Time Interval Bundling Management
CN105554175A (en) ARP backup method in PW (Pseudo-wires) redundancy scene
CN103516673A (en) Network data communication method, network data communication system, network data communication client and network data communication server
CN103686854A (en) Method and device for controlling AP
CN105282803A (en) Communication interface and information transfer method and system based on the same
CN103795518A (en) Method, device, and system for synchronizing port modes between devices
CN102780593A (en) BFD (Bidirectional Forwarding Detection) protocol-based link detection method and apparatus and network processor
CN102111728B (en) Network connection management module and method of mobile terminal
CN103957079A (en) Negotiation method and equipment in HDLC network
CN104580346B (en) Data transmission method and device
CN103825839A (en) Message transmission method and equipment based on aggregated link
CN102026215A (en) M2M network monitoring method, device and system
CN102752752B (en) base station maintenance method and apparatus
CN104797004B (en) The method that automatic network-building is realized between master-slave equipment
CN100592714C (en) Method for establishing a wireless network
CN102811153B (en) VLAN state negotiating method and edge device
CN104639356A (en) Failure recovery method and device
CN103227733A (en) Topology discovery method and topology discovery system
CN103428701A (en) Communication method, system and equipment based on security gateway

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

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.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140730