CN106941426B - A kind of chain processing method and device - Google Patents

A kind of chain processing method and device Download PDF

Info

Publication number
CN106941426B
CN106941426B CN201610005907.6A CN201610005907A CN106941426B CN 106941426 B CN106941426 B CN 106941426B CN 201610005907 A CN201610005907 A CN 201610005907A CN 106941426 B CN106941426 B CN 106941426B
Authority
CN
China
Prior art keywords
terminal equipment
negotiation information
negotiation
member interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610005907.6A
Other languages
Chinese (zh)
Other versions
CN106941426A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610005907.6A priority Critical patent/CN106941426B/en
Priority to PCT/CN2016/089806 priority patent/WO2017117957A1/en
Publication of CN106941426A publication Critical patent/CN106941426A/en
Application granted granted Critical
Publication of CN106941426B publication Critical patent/CN106941426B/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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5006Creating or negotiating SLA contracts, guarantees or penalties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13567Indexing scheme relating to selecting arrangements in general and for multiplex systems negotiation, management policy, goals

Abstract

The invention discloses a kind of chain processing method and devices.Chain processing method in the present invention includes: first terminal equipment by executing the second member interface in the first member interface and second terminal equipment of negotiate process conducting first terminal equipment with the first member interface physical connection;First terminal equipment receives second terminal equipment and repeats the send first extension keep alive Packet according to preset time interval; it include the first negotiation information and the second negotiation information in second terminal equipment in first extension keep alive Packet, the content of the second negotiation information changes in the second member interface exception;First terminal equipment closes the first member interface when determining the first negotiation information and the second negotiation information difference in received the first negotiation information and the second negotiation information and first terminal equipment.The present invention solves in the chain circuit detecting method of prior art offer, the poor problem of link reliability.

Description

A kind of chain processing method and device
Technical field
The present invention relates to field of communication technology, espespecially a kind of chain processing method and device.
Background technique
High-Level Data Link Control (High-Level Data Link Control, referred to as HDLC) is one kind in synchronization The Link Access Procedure on D channel of transfers on network data, Bit Oriented, HDLC can provide transparent point-to-point for upper-layer protocol Between transmission.
User can realize the data transmission and link detecting function of low-load by HDLC.Specifically, HDLC protocol Heading only take up four bytes, therefore in identical maximum receiving unit (Maximum-Receive-Unit, referred to as MRU) In the case where, bigger data message can be transmitted, particularly with short message transmission the case where, such as link detection message, With bigger superiority.HDLC provides timing detection function for link, can pass through the keep alive Packet in standard agreement (keepalive message) Lai Shixian, as long as the member interface being physically connected in terminal device all agreement conductings (UP), Jiu Huiding When trigger keep alive Packet, to opposite end notice local terminal member interface be agreement conducting, if the keep-alive of opposite end can be received simultaneously Message, the member interface for being considered as opposite end is also what agreement was connected, that is, thinks that link is normally, to can communicate, such as Fig. 1 It is shown, the schematic illustration of link is detected for keep alive Packet in HDLC protocol in the prior art, router A and router B are chain The terminal device on road, Fig. 2 show the form schematic diagram of keep alive Packet in standard agreement;In the concrete realization, if local terminal is super Cross the keep alive Packet that the regular hour do not receive opposite end, it is considered that the member interface of opposite end be it is abnormal, then can disconnect Link.However, if opposite end is in the state of sending normal, reception exception, local terminal equally may be used in above-mentioned link detecting mode To receive the keep alive Packet of opposite end transmission, at this point, abnormality of the local terminal perception less than opposite end, it may appear that flow single-pass shows As.
However, chain circuit detecting method in the prior art, since one end of link may perceive the abnormal shape less than opposite end State and there is the phenomenon that flow single-pass, so as to cause the problem that link reliability is poor.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of chain processing method and devices, to solve existing skill , since one end of link may perceive the abnormality less than opposite end and there is showing for flow single-pass in chain circuit detecting method in art As so as to cause the problem that link reliability is poor.
In a first aspect, the present invention provides a kind of chain processing method, comprising:
First terminal equipment is by executing the first member interface and second negotiated process and the first terminal equipment is connected With the second member interface of the first member interface physical connection in terminal device, the first terminal for negotiating process is completed All had in equipment and second terminal equipment first member interface the first negotiation information and second member interface Second negotiation information;
The first terminal equipment receives the second terminal equipment and repeats send first according to preset time interval Keep alive Packet is extended, includes the first negotiation information and second in the second terminal equipment in the first extension keep alive Packet The content of negotiation information, second negotiation information changes in the second member interface exception;
The first terminal equipment is determining received the first negotiation information and the second negotiation information and described first When the first negotiation information in terminal device is with the second negotiation information difference, first member interface is closed.
In the first possible implementation of the first aspect, the first timing is provided in the first terminal equipment The first member interface and second of the first terminal equipment is connected eventually by executing negotiation process in device, the first terminal equipment In end equipment and after the second member interface of the first member interface physical connection, further includes:
First timer described in the first terminal opening of device;
After the first terminal equipment receives the first extension keep alive Packet that the second terminal equipment is sent, also wrap It includes:
The first terminal equipment is determining received the first negotiation information and the second negotiation information and described first When the first negotiation information in terminal device is identical with the second negotiation information, first timer is set and is started from scratch timing.
In the second possible implementation of the first aspect, the first terminal equipment is according to preset time interval It repeats to send the second extension keep alive Packet to the second terminal equipment, includes described first in the second extension keep alive Packet The content of the first negotiation information and the second negotiation information in terminal device, first negotiation information connects in first member Change when mouthful abnormal, the second extension keep alive Packet be used to indicate the second terminal equipment determine it is received The first negotiation information and the second negotiation information in first negotiation information and the second negotiation information and the second terminal equipment are not Meanwhile closing second member interface.
According to second of possible implementation of first aspect, in the third possible implementation, described second The second timer is provided in terminal device, second timer starts timing after second member interface conducting, institute It states the second extension keep alive Packet and is also used to indicate that the second terminal equipment is determining received the first negotiation information and the When two negotiation informations are with the first negotiation information and identical the second negotiation information in the second terminal equipment, setting described second Timer is started from scratch timing.
According to the first possible implementation of first aspect, in the fourth possible implementation, the method Further include:
The first terminal equipment is when the clocking value for detecting first timer is greater than first threshold, described in closing First member interface;
The first terminal equipment sends third to the second terminal equipment and extends keep alive Packet, and the third extension is protected First negotiation information is not carried in message living or carries the first negotiation information after content change, the third extension is protected Message living is used to indicate the second terminal equipment and closes second member interface;
The first terminal equipment executes the negotiation process with the second terminal equipment again.
According to first aspect, first aspect the first into the 4th kind of possible implementation any one, the 5th It further include third meter in the first extension keep alive Packet that the first terminal equipment receives in the possible implementation of kind When device, third timer timing since when the first extension keep alive Packet issues, the first terminal equipment receives The second terminal equipment is repeated according to preset time interval after the send first extension keep alive Packet, further includes:
The first terminal equipment is less than or equal to the second threshold in the clocking value of the third timer, and determines institute The first negotiation information and second in the first negotiation information and the second negotiation information and the first terminal equipment received is assisted When quotient's information is identical, the current state of first member interface is kept;Alternatively,
The first terminal equipment closes described the first one-tenth when the clocking value of the third timer is greater than second threshold Member's interface;
The first terminal equipment sends the 4th extension keep alive Packet to the second terminal equipment, and the 4th extension is protected First negotiation information is not carried in message living or carries the first negotiation information after content change, the 4th extension is protected Message living is used to indicate the second terminal equipment and closes second member interface;
The first terminal equipment executes the negotiation process with the second terminal equipment again.
According to first aspect, first aspect the first into the 4th kind of possible implementation any one, the 6th In the possible implementation of kind, the first terminal equipment is connected the first of the first terminal equipment by executing negotiation process In member interface and second terminal equipment with the second member interface of the first member interface physical connection, comprising:
The first terminal equipment sends first negotiation information to the second terminal equipment, and indicates described second Terminal device stores first negotiation information;
The first terminal equipment receives and stores second negotiation information that the second terminal equipment is sent;
The first terminal equipment sends the first negotiation packet to the second terminal equipment, in first negotiation packet Including the first negotiation information and the second negotiation information in the first terminal equipment, first negotiation packet is used to indicate institute Second terminal equipment is stated in determining received the first negotiation information and the second negotiation information and the second terminal equipment The first negotiation information it is identical with the second negotiation information when, second member interface is connected;
The first terminal equipment receives the second negotiation packet that the second terminal equipment is sent, and described second negotiates report It include the second negotiation information and the first negotiation information in the second terminal equipment in text;
The first terminal equipment is determining received the first negotiation information and the second negotiation information and described first When the first negotiation information in terminal device is identical with the second negotiation information, first member interface is connected.
According to the 6th of first aspect the kind of possible implementation, in the 7th kind of possible implementation, described first The 4th member interface physical connection in third member interface and the second terminal equipment in terminal device, and the third The third negotiation information of member interface is identical as first negotiation information;
The first terminal equipment by execute negotiate process be connected the first terminal equipment the first member interface and In second terminal equipment and after the second member interface of the first member interface physical connection, further includes:
Fourth negotiation information and the second negotiation information phase of the first terminal equipment in the 4th member interface Meanwhile it executing the negotiation process and the third member interface and the 4th member interface is connected;Alternatively,
The first terminal equipment the 4th member interface the 4th negotiation information and second negotiation information not Meanwhile executing the negotiation process failure.
Second aspect, the present invention provide a kind of link processing device, are set in first terminal equipment, the link processing Device includes:
Negotiation module, for by executing the first member interface and second negotiated process and the first terminal equipment is connected With the second member interface of the first member interface physical connection in terminal device, the first terminal for negotiating process is completed All had in equipment and second terminal equipment first member interface the first negotiation information and second member interface Second negotiation information;
Receiving module repeats the send first extension according to preset time interval for receiving the second terminal equipment Keep alive Packet, described first extends in keep alive Packet including the first negotiation information and the second negotiation in the second terminal equipment The content of information, second negotiation information changes in the second member interface exception;
Processing module, in the first negotiation information and the second negotiation information and institute for determining that the receiving module receives When stating the first negotiation information in first terminal equipment with the second negotiation information difference, first member interface is closed.
In the first possible implementation of the second aspect, the first timing is provided in the first terminal equipment Device, the link processing device further include: opening module 18 is negotiating process conducting institute by executing for the negotiation module State second with the first member interface physical connection in the first member interface and second terminal equipment of first terminal equipment After member interface, first timer is opened;
The processing module is also used in the first negotiation information and the second negotiation letter for determining that the receiving module receives When breath is with the first negotiation information and identical the second negotiation information in the first terminal equipment, setting first timer from Zero starts timing.
In a second possible implementation of the second aspect, the link processing device further include: sending module is used In repeating transmission the second extension keep alive Packet to the second terminal equipment according to preset time interval, second extension is protected It include the first negotiation information and the second negotiation information in the first terminal equipment in message living, first negotiation information Content changes in the first member interface exception, and the second extension keep alive Packet is used to indicate the second terminal Equipment is determining that first in received the first negotiation information and the second negotiation information and the second terminal equipment negotiates When information and the second negotiation information difference, second member interface is closed.
According to second of possible implementation of second aspect, in the third possible implementation, described second The second timer is provided in terminal device, second timer starts timing after second member interface conducting, institute It states the second extension keep alive Packet and is also used to indicate that the second terminal equipment is determining received the first negotiation information and the When two negotiation informations are with the first negotiation information and identical the second negotiation information in the second terminal equipment, setting described second Timer is started from scratch timing.
According to the first possible implementation of second aspect, in the fourth possible implementation, the processing Module is also used to close first member interface when the clocking value for detecting first timer is greater than first threshold;
The link processing device further include: sending module is protected for sending third extension to the second terminal equipment Message living, the third extend the first association for not carrying first negotiation information in keep alive Packet or carrying after content change Quotient's information, the third extension keep alive Packet are used to indicate the second terminal equipment and close second member interface;
The negotiation module is also used to execute the negotiation process with the second terminal equipment again.
According to second aspect, second aspect the first into the 4th kind of possible implementation any one, the 5th It further include third timing in the first extension keep alive Packet that the receiving module receives in the possible implementation of kind Device, third timer timing since when the first extension keep alive Packet issues, the processing module are also used in institute The clocking value for stating third timer is less than or equal to the second threshold, and determines that the receiving module receives first negotiates letter When breath and the second negotiation information are with the first negotiation information and identical the second negotiation information in the first terminal equipment, institute is kept State the current state of the first member interface;Alternatively,
The processing module is also used to close described the when the clocking value of the third timer is greater than second threshold One member interface;
The sending module is also used to send the 4th extension keep alive Packet to the second terminal equipment, and the described 4th expands First negotiation information is not carried in exhibition keep alive Packet or carries the first negotiation information after content change, the described 4th expands Exhibition keep alive Packet is used to indicate the second terminal equipment and closes second member interface;
The negotiation module is also used to execute the negotiation process with the second terminal equipment again.
According to second aspect, second aspect the first into the 4th kind of possible implementation any one, the 6th In the possible implementation of kind, the negotiation module includes:
Transmission unit for sending first negotiation information to the second terminal equipment, and indicates that described second is whole End equipment stores first negotiation information;
Receiving unit, second negotiation information sent for receiving and storing the second terminal equipment;
The transmission unit is also used to send the first negotiation packet to the second terminal equipment, and described first negotiates report It include the first negotiation information and the second negotiation information in the first terminal equipment in text, first negotiation packet is for referring to Show that first negotiation information and second negotiation information of the second terminal equipment received by determining are set with the second terminal When the first negotiation information in standby is identical with the second negotiation information, second member interface is connected;
The receiving unit is also used to receive the second negotiation packet that the second terminal equipment is sent, second association It include the second negotiation information and the first negotiation information in the second terminal equipment in Business's text;
Processing unit, the first negotiation information and the second negotiation information received used in the determination receiving unit with it is described When the first negotiation information in first terminal equipment is identical with the second negotiation information, first member interface is connected.
According to the 6th of second aspect the kind of possible implementation, in the 7th kind of possible implementation, described first The 4th member interface physical connection in third member interface and the second terminal equipment in terminal device, and the third The third negotiation information of member interface is identical as first negotiation information;
The processing module is also used to negotiate the process conducting first terminal equipment by executing in the negotiation module The first member interface and second terminal equipment in after the second member interface of the first member interface physical connection, and When the 4th negotiation information of the 4th member interface is identical as second negotiation information, the negotiation process conducting is executed The third member interface and the 4th member interface;Alternatively,
The processing module is also used to negotiate the process conducting first terminal equipment by executing in the negotiation module The first member interface and second terminal equipment in after the second member interface of the first member interface physical connection, and In the 4th negotiation information and the second negotiation information difference of the 4th member interface, executes the negotiation process and lose It loses.
Chain processing method and device provided by the invention, first terminal equipment is by executing negotiation with second terminal equipment The first member interface and the second member interface of physical connection is connected in process, by receiving second terminal after the completion of negotiating process Equipment repeats the send first extension keep alive Packet, and it is different to determine whether the state of the second member interface of second terminal equipment occurs Often, two terminal devices are realized after establishing completion link connection, whether can be occurred with the member interface of real-time perception opposite end It is abnormal, and close the member interface of local terminal when abnormal, the phenomenon that so as to avoid link flow single-pass;It is provided by the invention Method solves chain circuit detecting method in the prior art, the abnormality less than opposite end may be perceived due to one end of link and There is the phenomenon that flow single-pass, so as to cause the problem that link reliability is poor.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 detects the schematic illustration of link for keep alive Packet in HDLC protocol in the prior art;
Fig. 2 is the form schematic diagram of keep alive Packet in standard agreement;
Fig. 3 is a kind of flow chart of chain processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of application scenarios schematic diagram for the chain processing method that embodiment illustrated in fig. 3 provides;
Negotiate the schematic diagram of process in the chain processing method that Fig. 5 provides for embodiment illustrated in fig. 3;
Fig. 6 is the flow chart of another chain processing method provided in an embodiment of the present invention;
Fig. 7 is the flow chart of another chain processing method provided in an embodiment of the present invention;
Fig. 8 is that the one kind first for the chain processing method that embodiment illustrated in fig. 7 provides extends the format signal of keep alive Packet Figure;
Fig. 9 is a kind of application scenarios schematic diagram of chain processing method provided by the embodiment of the present invention;
Figure 10 is another application scenarios schematic diagram of chain processing method provided by the embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of link processing device provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another link processing device provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another link processing device provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Technical solution of the present invention is described in detail below by specific embodiment, the following embodiment of the present invention In first terminal equipment and second terminal equipment for example can be router, the member interface of any terminal equipment can be same Walk fiber optic network (Synchronous Optical Network, referred to as are as follows: SONET)/synchronous digital system (Synchronous Digital Hierarchy, referred to as are as follows: SDH) carrying packet signal (Packet Over SONET/SDH, referred to as are as follows: POS) Interface.The present invention provides following specific embodiment and can be combined with each other, can for the same or similar concept or process It can be repeated no more in some embodiments.
Fig. 3 is a kind of flow chart of chain processing method provided in an embodiment of the present invention.At link provided in this embodiment In the case where reason method is suitable for carrying out link detecting by HDLC protocol, this method can be executed by link processing device, should Link processing device can realize that the device can integrate in first terminal equipment hardware and software in conjunction with by way of In processor, calls and use for processor.As shown in figure 3, the method for the present embodiment may include:
S110, first terminal equipment is by executing the first member interface and the negotiated process and the first terminal equipment is connected With the second member interface of the first member interface physical connection in two terminal devices, the first terminal equipment for negotiating process is completed With the second negotiation information of the first negotiation information and the second member interface that all have the first member interface in second terminal equipment.
As described in Figure 4, a kind of application scenarios schematic diagram of the chain processing method provided for embodiment illustrated in fig. 3, in Fig. 4 Router A be first terminal equipment, router B be second terminal equipment, A1 be the first member interface, B1 be the second member connect Mouthful, wherein A1 and B1 is above-mentioned pos interface, and A1 and B1 are physical connections.In the present embodiment, first terminal is set It is standby to negotiate process the first member interface of conducting and the second member interface by executing, at this point, the first member interface and the second member Link between interface is conducting, can be carried out data transmission, and negotiates process in the detailed description below embodiment of the present invention Detailed process.
As shown in figure 5, negotiating the schematic diagram of process in the chain processing method provided for embodiment illustrated in fig. 3;That is this reality The S110 applied in example is specifically included:
S1101, first terminal equipment sends the first negotiation information to second terminal equipment, and indicates that second terminal equipment is deposited Store up first negotiation information.
S1102, first terminal equipment receive and store the second negotiation information of second terminal equipment transmission.
In the present embodiment, the first negotiation information can be the local negotiation information (Local of the first member interface Consultation information, referred to as are as follows: LCI), if the first member interface does not configure LCI, the first negotiation information is also It can be the Hostname (hostname) or interface name (interface name) of the first member interface;Similarly, second Negotiation information may be the LCI of the second member interface, or be the Hostname or interface name of the first member interface.
S1103, first terminal equipment send the first negotiation packet to second terminal equipment, include in first negotiation packet The first negotiation information and the second negotiation information in first terminal equipment, first negotiation packet are used to indicate second terminal equipment Determining the first negotiation information in received the first negotiation information and the second negotiation information and second terminal equipment and the When two negotiation informations are identical, the second member interface is connected.
S1104, first terminal equipment receives the second negotiation packet that second terminal equipment is sent, in second negotiation packet Including the second negotiation information and the first negotiation information in second terminal equipment.
S1105, first terminal equipment are determining received the first negotiation information and the second negotiation information with first eventually When the first negotiation information in end equipment is identical with the second negotiation information, the first member interface is connected.
In the present embodiment, it is explained by taking first terminal equipment as an example, after it receives the second negotiation packet, but deposits When storing up the failure of the second negotiation information, it can start to execute above-mentioned negotiation process with accent.Also, in above-mentioned steps, do not limit S1101's and S1102 and S1103 and S1104~S1105 executes sequence, i.e., does not limit negotiation information or negotiation packet is Which first sent by terminal device, as long as may be implemented to all have the first negotiation information and the second negotiation in each terminal device Information, and the member interface of local terminal can be connected after the negotiation packet for receiving other side's transmission, so that it may complete above-mentioned association Commodity-circulate journey.
It should be noted that conducting member interface described in various embodiments of the present invention or closing member interface refer both to agreement (Up) is connected or agreement closes (Down), is that progress agreement conducting or agreement are closed on the basis of physical connection.
S120, first terminal equipment receive second terminal equipment and repeat the send first extension according to preset time interval Keep alive Packet, this first extension keep alive Packet in include second terminal equipment in the first negotiation information and the second negotiation information, The content of second negotiation information changes in the second member interface exception.
S130, first terminal equipment are determining received the first negotiation information and the second negotiation information and first terminal When the first negotiation information in equipment is with the second negotiation information difference, the first member interface is closed.
In the present embodiment, it after the link protocol conducting between the first member interface and the second member interface, needs to hold Whether the interaction of row extension keep alive Packet, have abnormality with the member interface of real-time detection terminal device.In the concrete realization, If abnormality occurs in the second member interface, such as transmission described in background technique is normal, reception is abnormal, passes through the prior art In link detecting mode, abnormality of the first terminal device-aware less than the second member interface in second terminal equipment, chain There is the phenomenon that flow single-pass in road, i.e., first terminal equipment be to the data that second terminal equipment is sent can not be received;It compares Under, in the present embodiment, when the second member interface exception, can change the content of the second negotiation information, i.e., second terminal is sent at this time The first extension keep alive Packet in the second negotiation information and first terminal equipment in the content of the second negotiation information that stores not Together, at this point, first terminal equipment can close the first member interface, i.e. disconnecting link.After link disconnects, first terminal equipment can be with Again it is executed with second terminal equipment shown in above-mentioned Fig. 5 and negotiates process.
Similarly, first terminal equipment can also be by sending the second side for extending keep alive Packet to second terminal equipment Formula, so that second terminal equipment knows the state of the first member interface, concrete mode are as follows: first terminal equipment according to it is preset when Between be spaced to second terminal equipment repeat send second extension keep alive Packet, this second extension keep alive Packet in include first terminal The content of the first negotiation information and the second negotiation information in equipment, first negotiation information is sent out in the first member interface exception Changing, the second extension keep alive Packet are used to indicate second terminal equipment and are determining received the first negotiation information and the When the first negotiation information and the second negotiation information difference in two negotiation informations and second terminal equipment, closes the second member and connect Mouth, i.e. disconnecting link, after link disconnection, first terminal equipment equally can execute above-mentioned Fig. 5 with second terminal equipment again Shown negotiation process.
Chain processing method provided by the present embodiment, first terminal equipment negotiate stream by executing with second terminal equipment The first member interface and the second member interface of physical connection is connected in journey, is set after the completion of negotiating process by receiving second terminal It is standby to repeat the send first extension keep alive Packet, it is different to determine whether the state of the second member interface of second terminal equipment occurs Often, two terminal devices are realized after establishing completion link connection, whether can be occurred with the member interface of real-time perception opposite end It is abnormal, and close the member interface of local terminal when abnormal, the phenomenon that so as to avoid link flow single-pass;The present embodiment provides Method solve chain circuit detecting method in the prior art, the abnormality less than opposite end may be perceived due to one end of link And there is the phenomenon that flow single-pass, so as to cause the problem that link reliability is poor.
Further, Fig. 6 is the flow chart of another chain processing method provided in an embodiment of the present invention, in the present embodiment First terminal equipment in be additionally provided with the first timer, also wrapped on the basis of above-mentioned embodiment illustrated in fig. 3, after S110 It includes: S111, the first timer of first terminal opening of device;It can also include: S140 after S120, first terminal equipment is in determination The first negotiation information and second in received the first negotiation information and the second negotiation information and first terminal equipment are negotiated When information is identical, which is set and is started from scratch timing.It should be noted that S130 and S140 is choosing in the present embodiment What selecting property executed.
The first timer in the present embodiment is used for first terminal equipment after receiving the first extension keep alive Packet, and When determining that the second member interface state is normal, timing of starting from scratch, as long as i.e. the first timer circulation executes above-mentioned steps, Its clocking value will be in a certain range;Correspondingly, again may be by when the abnormal state of the second member interface this first The clocking value of timer embodies, and specific implementation can be with are as follows: S150, first terminal equipment are detecting the first timer Clocking value be greater than first threshold when, close the first member interface;S160, first terminal equipment send the to second terminal equipment Three extension keep alive Packets, the third extension keep alive Packet in do not carry the first negotiation information or carry content change after first Negotiation information, third extension keep alive Packet are used to indicate second terminal equipment and close the second member interface;S170, first terminal Equipment is executed with second terminal equipment again negotiates process.First threshold can be for example 3 meters of timer in the present embodiment When the period, which can be arranged according to the sensibility demand to link for designer, if time-count cycle does not have There is setting, can be defaulted as the time-count cycle of the protection message in HDLC protocol, usually 10 seconds (s).
When the first terminal equipment in the present embodiment does not receive the first extension keep-alive of second terminal equipment transmission for a long time Message, it is believed that abnormal problem occurs in link, when it sends third extension keep alive Packet to second terminal equipment, can not carry First negotiation information, or change the content of the first negotiation information, in this way, second terminal equipment receives third extension keep-alive report Wen Shi, the result of acquisition be necessarily the first negotiation information for receiving and the first negotiation information stored in second terminal equipment not Together, therefore, second terminal equipment is also switched off the second member interface.The present embodiment passes through the first timing being arranged in terminal device Device, after the link negotiation success of the first member interface and the second member interface, and the first member interface for some reason When being in close state, it may be implemented to give the state notifying to second terminal equipment, then can close the second member interface, in this way The state consistency for ensuring that the member interface both ends of physical connection further avoids link that single-pass phenomenon occurs;And When the member interface of both link ends is all closed state, initial negotiation process can be reentered.
It should be noted that S150~S170 in the present embodiment can be and execute after S111, first terminal equipment It is possible that the clocking value time-out of the first timer is checked after repeating to have received multiple first extension keep alive Packet, it can also be with After completing to negotiate process and the first timer and opening, just do not receive the first extension keep alive Packet, thereby executing S150~ S170.Embodiment illustrated in fig. 6 is shown so that S150~S170 is executed after S140 as an example.And in embodiment illustrated in fig. 6 S130, S140 and S150~S170 selectively execute, S170 can be equally executed after S130.
Further, on the basis of the various embodiments described above, the state of link can also pass through extension keep alive Packet Content informs terminal device, as shown in fig. 7, be the flow chart of another chain processing method provided in an embodiment of the present invention, Fig. 7 is shown on the basis of above-mentioned embodiment illustrated in fig. 3, and first terminal equipment receives in the S120 of the present embodiment To first extension keep alive Packet further include third timer, the third timer since first extension keep alive Packet issue when Timing, in one possible implementation, method provided in this embodiment is after S120 further include: S140, first terminal Equipment is less than or equal to second threshold in the clocking value of third timer, and determines received the first negotiation information and the second association When quotient's information is with the first negotiation information and identical the second negotiation information in first terminal equipment, kept for working as the first member interface Preceding state, if there is the first timer, and first timer has turned on, and the first meter equally can be set in first terminal equipment When device start from scratch timing;In alternatively possible implementation, method provided in this embodiment is after S120 further include: S150, first terminal equipment close the first member interface when the clocking value of third timer is greater than second threshold;S160, the One terminal device sends the 4th extension keep alive Packet to second terminal equipment, does not carry the first negotiation in the 4th extension keep alive Packet Information carries the first negotiation information after content change, and the 4th extension keep alive Packet is used to indicate the closing of second terminal equipment Second member interface;S170, first terminal equipment is executed with second terminal equipment again negotiates process.
As shown in figure 8, being that the one kind first for the chain processing method that embodiment illustrated in fig. 7 provides extends the lattice of keep alive Packet Formula schematic diagram includes local terminal negotiation information (i.e. the second negotiation information), opposite end in the first extension keep alive Packet in the present embodiment Negotiation information (i.e. the first negotiation information) and timer, wherein each content is all by type (Type), length (Length) and value (Value) it (referred to as are as follows: TLV) forms, for example, local terminal negotiation information is preset in second terminal equipment, Peer Negotiation Information is that second terminal equipment is filled when executing and negotiating process, is 0 if being not filled by successfully, timer is whole second End equipment starts timing when sending the first extension keep alive Packet;The first extension keep alive Packet further includes in standard agreement simultaneously Keep alive Packet reference format, i.e., content shown in Fig. 2.
It should be noted that the reality of S150~S170 and S150~S170 in embodiment illustrated in fig. 6 in the present embodiment Existing mode is identical with technical effect, therefore details are not described herein;In addition, S130, S140 and S150~S170 in the present embodiment are Selectively execute, specially first terminal equipment is selected according to the difference that the content in the first extension keep alive Packet is made, And S170 can be equally executed after S130.
Similarly, the second timer can be set in the second terminal equipment in the present embodiment, which exists Start timing after the conducting of second member interface, the second extension keep alive Packet that first terminal equipment is sent is also used to indicate that second is whole End equipment is determining that first in received the first negotiation information and the second negotiation information and second terminal equipment negotiates to believe When ceasing identical with the second negotiation information, the second timer is set and is started from scratch timing.In addition, the second terminal in the present embodiment is set It is standby to judge whether outgoing link abnormality, also, the second extension keep-alive report occurs according to the clocking value of the second timer Also timer can be set in text, the executive mode of second terminal equipment and the side handled link in the present embodiment The content and effect of formula and the second extension keep alive Packet are identical as first terminal equipment in above-described embodiment, therefore herein not It repeats again.
Multiple pos interfaces in the concrete realization, in order to improve the communication capacity of link, can be tied to one by the present invention Interface, referred to as member's group (POS-Group) interface (hereinafter referred to as PG interface), the summation of PG interface are the bands of each member interface The sum of width can increase the bandwidth of interface in this way;Such as also there is third member interface in first terminal equipment, The 4th member interface and third member interface physical connection in second terminal equipment, and the third of third member interface is negotiated Information is identical as the first negotiation information, then has been set up the first member interface and the second member interface in the above-described embodiments In link basis, if the 4th negotiation information of the 4th member interface is identical as the second negotiation information, first terminal equipment can be with It executes again and negotiates process conducting third member interface and the 4th member interface;If the 4th negotiation information and the second negotiation information are not Meanwhile it then cannot achieve the foundation of link between third member interface and the 4th member interface.
It should be noted that the first member interface in the present embodiment is that the PG bundled connects with third member interface Mouthful, the second member interface and the 4th member interface are the PG interface bundled, and load balancing, PG may be implemented by PG interface Flow is distributed to different chain roads by interface, is finally reached unified destination, can all be walked the same road to avoid flow in this way Blocked-flow caused by diameter.In addition, PG interface can also improve the reliability of link, in PG interface, if some member connects Mouth abnormal state, flow can also be transmitted by other member interfaces.
The application of PG interface is specifically described below by way of some specific examples.For example, as shown in figure 9, being A kind of application scenarios schematic diagram of chain processing method provided by the embodiment of the present invention, such as router A in Fig. 9 are first Terminal device, router B are second terminal equipment, and the binding mouth PG1 of the HDLC of router A includes three member interfaces A1, A2 And the binding mouth PG2 of A3, the HDLC of router B include three member interfaces B1, B2 and B3, physical couplings are that A1 connects B1, A2 connects B2, and A3 connects B3, wherein member interface A1, A2 are identical with the LCI information of A3, and the LCI information of B1 and B2 is identical, the LCI of B3 Information is not equal to the LCI information of B1.On the one hand, it is assumed that the link between A1 and B1 first negotiates success, and B2 is sent to the LCI letter of A2 Breath, equal to the LCI information of activation member interface B1, then the link negotiation success between A2 and B2, B3 issue the LCI information of A3, no Link negotiation failure equal to the LCI information of activation member interface B1, between A3 and B3.On the other hand, in above-mentioned application scenarios The LCI information of modification B2 member interface is the LCI information not equal to B1, hereafter, the first extension keep-alive that the B2 that A2 is received is sent The LCI information of B2 saved in the LCI information at the end B2 in message and router A is different, and router A agreement closes member interface A2, and remove the information of the LCI of the B2 saved;Likewise, if the information for the LCI that the A2 that B2 is received is sent also with router B The LCI information of the A2 of middle preservation is different, and router B agreement closes member interface B2, and removes the letter of the LCI of the A2 saved Breath, subsequently enters initial negotiation process and re-starts link negotiation.
It again for example, as shown in Figure 10, is another application of chain processing method provided by the embodiment of the present invention Router A in schematic diagram of a scenario, such as Figure 10 is first terminal equipment, and router B and router C are that second terminal is set Standby, the binding mouth PG1 of the HDLC of router A includes four member interfaces A1, A2, A3 and A4, the binding mouth of the HDLC of router B PG2 includes two member interfaces B1 and B2, and the binding mouth PG3 of the HDLC of router C includes two member interfaces C1 and C2, physics Connection relationship is that A1 connects B1, and A2 connects B2, and A3 connects C1, A4 connection C2, and A1, A2, A3 are identical with the LCI information of A4, B1 and B2's LCI information is identical, and the LCI information of C1 and C2 is identical, but the LCI information of router B and router C is different.If three equipment The negotiation process provided through the invention simultaneously carries out link negotiation, and router A receives the LCI that router B and router C are sent Information takes competition mechanism, and the sublink of which equipment of router B and router C first completes the negotiation process in above-mentioned Fig. 5, The member interface of which equipment first negotiates success, such as router C first completes above-mentioned negotiation process with router A, then router B Link cannot negotiate success.
It should be noted that the chain processing method that various embodiments of the present invention provide, can meet the member of terminal device Mouth or PG interface setting Extended Protocol switch, and when Extended Protocol switch is opening, execute described in the various embodiments described above Chain processing method, when the Extended Protocol switch for close when, can using method in the prior art carry out link establishment and Detection.In addition, the second terminal equipment in various embodiments of the present invention, which executes, negotiates process, and carried out after link negotiation success The mode of link detecting is identical as the executive mode of first terminal equipment, and details are not described herein.
Figure 11 is a kind of structural schematic diagram of link processing device provided in an embodiment of the present invention.Chain provided in this embodiment In the case where road processing unit is suitable for carrying out link detecting by HDLC protocol, which passes through hardware and software In conjunction with mode realize that the device can integrate in the processor of first terminal equipment, call and use for processor.Such as figure Shown in 11, the link processing device of the present embodiment is specifically included: negotiation module 11, receiving module 12, processing module 13 and transmission Module 14.
Wherein, negotiation module 11, for by execute negotiate process be connected first terminal equipment the first member interface and With the second member interface of the first member interface physical connection in second terminal equipment, the first terminal equipment for negotiating process is completed With the second negotiation information of the first negotiation information and the second member interface that all have the first member interface in second terminal equipment.
The present embodiment can be applied equally in application scenarios shown in Fig. 4, in the present embodiment, execute negotiation process Afterwards, the link between the first member interface and the second member interface is that agreement is connected, and can be carried out data transmission, in following reality Apply the detailed process for illustrating in example and negotiating process in the present embodiment.
It should be noted that conducting member interface described in various embodiments of the present invention or closing member interface refer both to agreement Conducting or agreement are closed, and are that progress agreement conducting or agreement are closed on the basis of physical connection.
Receiving module 12 repeats the send first extension guarantor according to preset time interval for receiving second terminal equipment Message living, includes the first negotiation information and the second negotiation information in second terminal equipment in the first extension keep alive Packet, the The content of two negotiation informations changes in the second member interface exception.
Processing module 13, for determining the first negotiation information that receiving module 12 receives and the second negotiation information and the When the first negotiation information in one terminal device is with the second negotiation information difference, the first member interface is closed.
In the present embodiment, the content of the second negotiation information can be changed when the second member interface exception, i.e., at this time second eventually The second negotiation information stored in the second negotiation information and first terminal equipment in the first extension keep alive Packet that end is sent Content is different, at this point, first terminal equipment can close the first member interface, i.e. disconnecting link.After link disconnects, negotiation module 11 It can be executed again with second terminal equipment shown in above-mentioned Fig. 5 and negotiate process.
Similarly, first terminal equipment can also be by sending the second side for extending keep alive Packet to second terminal equipment Formula, so that second terminal equipment knows the state of the first member interface, concrete mode are as follows: link processing dress provided in this embodiment It sets further include: sending module 14 sends the second extension keep-alive for repeating according to preset time interval to second terminal equipment Message, this second extension keep alive Packet in include first terminal equipment in the first negotiation information and the second negotiation information, first The content of negotiation information changes in the first member interface exception, which is used to indicate second terminal Equipment is determining the first negotiation information in received the first negotiation information and the second negotiation information and second terminal equipment When different with the second negotiation information, the second member interface is closed.
Link processing device provided in an embodiment of the present invention is used to execute at the link that embodiment illustrated in fig. 3 of the present invention provides Reason method has corresponding functional module, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Figure 12 is the structural schematic diagram of another link processing device provided in an embodiment of the present invention, by real shown in Figure 12 It applies example and illustrates the implementation procedure for negotiating process in various embodiments of the present invention, negotiation module 11 includes: transmission unit 15, for the Two terminal devices send the first negotiation information, and indicate that second terminal equipment stores first negotiation information.
Receiving unit 16, for receiving and storing the second negotiation information of second terminal equipment transmission.
Transmission unit 15 is also used to send the first negotiation packet to second terminal equipment, includes in first negotiation packet The first negotiation information and the second negotiation information in first terminal equipment, first negotiation packet are used to indicate second terminal equipment Determining the first negotiation information in received the first negotiation information and the second negotiation information and second terminal equipment and the When two negotiation informations are identical, the second member interface is connected.
Receiving unit 16 is also used to receive the second negotiation packet of second terminal equipment transmission, in second negotiation packet Including the second negotiation information and the first negotiation information in second terminal equipment.
Processing unit 17, used in the first negotiation information and the second negotiation information and first for determining that receiving unit 16 receives When the first negotiation information in terminal device is identical with the second negotiation information, the first member interface is connected.
In the present embodiment, first terminal equipment is after receiving the second negotiation packet, but stores the second negotiation information and lose When losing, it can start to execute above-mentioned negotiation process with accent.Also, during above-mentioned negotiation process, do not limit negotiation information Or negotiation packet is first to be sent by which terminal device, as long as may be implemented to all have the first negotiation in each terminal device Information and the second negotiation information, and the member interface of local terminal can be connected after the negotiation packet for receiving other side's transmission, just It can complete above-mentioned negotiation process.
It should be noted that module and unit in various embodiments of the present invention be all realize specific function virtual module and Unit, the sending module 14 in transmission unit 15 and Figure 11 in the present embodiment, receiving unit 16 and receiving module 12, processing are single Member 17 can be with processing module 13 and be realized by identical hardware, be also possible to be realized by different hardwares; Such as transmission unit 15 and sending module 14 can be the same transmitter, receiving unit 16 and receiving module 12 may be same One receiver, processing unit 17 and processing module 13 can also be same processor.
Further, Figure 13 is the structural schematic diagram of another link processing device provided in an embodiment of the present invention, this reality It applies in the first terminal equipment in example and is additionally provided with the first timer, on the basis of above-mentioned embodiment illustrated in fig. 11, this implementation Link processing device in example further include: opening module 18 is negotiating process conducting first by executing for negotiation module 11 In the first member interface and second terminal equipment of terminal device with the second member interface of the first member interface physical connection it Afterwards, the first timer is opened;Processing module 13 is also used in the first negotiation information and second for determining that receiving module 12 receives When negotiation information is with the first negotiation information and identical the second negotiation information in first terminal equipment, the first timer is set from zero Start timing.It should be noted that processing module 13 closes the first member interface and the setting of processing module 13 the in the present embodiment The timing of starting from scratch of one timer selectively executes.
The first timer in the present embodiment is used for first terminal equipment after receiving the first extension keep alive Packet, and When determining that the second member interface state is normal, timing of starting from scratch, as long as i.e. the first timer circulation executes above-mentioned steps, Its clocking value will be in a certain range;Correspondingly, again may be by when the abnormal state of the second member interface this first The clocking value of timer embodies, and specific implementation can be with are as follows: processing module 13 is also used to detecting the first timer Clocking value be greater than first threshold when, close the first member interface;Sending module 14, for sending third to second terminal equipment Keep alive Packet is extended, do not carry the first negotiation information in third extension keep alive Packet or carries the first association after content change Quotient's information, third extension keep alive Packet are used to indicate second terminal equipment and close the second member interface;Negotiation module 11, is also used Negotiate process in executing again with second terminal equipment.It should be noted that above-mentioned treatment process is specifically opened in the first timer It is executed after opening.
Link processing device provided in an embodiment of the present invention is used to execute at the link that embodiment illustrated in fig. 6 of the present invention provides Reason method has corresponding functional module, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Further, on the basis of the various embodiments described above, the state of link can also pass through extension keep alive Packet Content informs terminal device, further includes third timing in the first extension keep alive Packet that receiving module 12 receives specifically Device, third timer timing since when the first extension keep alive Packet issues;In the first possible implementation, it handles Module 13 is also used to be less than or equal to second threshold in the clocking value of third timer, and determines receiving module 12 receives the When one negotiation information and the second negotiation information are with the first negotiation information and identical the second negotiation information in first terminal equipment, protect The current state for holding the first member interface equally can be set in the case where having the first timer in first terminal equipment First timer is started from scratch timing;In the second possible implementation, processing module 13 are also used in third timer Clocking value be greater than second threshold when, close the first member interface;At this point, sending module 14, is also used to second terminal equipment The 4th extension keep alive Packet is sent, after not carrying the first negotiation information in the 4th extension keep alive Packet or carry content change The first negotiation information, the 4th extension keep alive Packet is used to indicate second terminal equipment close the second member interface;Negotiate mould Block 11 is also used to execute with second terminal equipment again and negotiates process.It should be noted that the first extension in the present embodiment is protected The format of message living is also referred to format shown in Fig. 8, and content and effect are same as the previously described embodiments, therefore no longer superfluous herein It states.
Link processing device provided in an embodiment of the present invention is used to execute at the link that embodiment illustrated in fig. 7 of the present invention provides Reason method has corresponding functional module, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Similarly, the second timer can be set in the second terminal equipment in the present embodiment, which exists Start timing after the conducting of second member interface, the second extension keep alive Packet that first terminal equipment is sent is also used to indicate that second is whole End equipment is determining that first in received the first negotiation information and the second negotiation information and second terminal equipment negotiates to believe When ceasing identical with the second negotiation information, the second timer is set and is started from scratch timing.In addition, the second terminal in the present embodiment is set It is standby to judge whether outgoing link abnormality, also, the second extension keep-alive report occurs according to the clocking value of the second timer Also timer can be set in text, the executive mode of second terminal equipment and the side handled link in the present embodiment The content and effect of formula and the second extension keep alive Packet are identical as first terminal equipment in above-described embodiment, therefore herein not It repeats again.
Multiple pos interfaces in the concrete realization, in order to improve the communication capacity of link, can be equally tied to by the present invention One PG interface;Such as also there is third member interface in first terminal equipment, the 4th member interface in second terminal equipment With third member interface physical connection, and the third negotiation information of third member interface is identical as the first negotiation information, then exists In the link basis for having been set up the first member interface and the second member interface in above-described embodiment, on the one hand, processing module 13, it is also used to when the 4th negotiation information of the 4th member interface is identical as the second negotiation information, executes and negotiate process conducting the Three member interfaces and the 4th member interface;On the other hand, processing module 13 are also used to negotiate letter the 4th of the 4th member interface When breath is with the second negotiation information difference, executes and negotiate process failure.The concrete application of PG interface can refer to upper in the present embodiment Each application scenarios and executive mode shown in Fig. 9 and Figure 10 are stated, therefore details are not described herein.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (16)

1. a kind of chain processing method characterized by comprising
First terminal equipment is by executing the first member interface and second terminal negotiating process and the first terminal equipment is connected With the second member interface of the first member interface physical connection in equipment, the first terminal equipment for negotiating process is completed With the second of the first negotiation information and second member interface that all have first member interface in second terminal equipment Negotiation information;
The first terminal equipment receives the second terminal equipment and repeats the send first extension according to preset time interval Keep alive Packet, described first extends in keep alive Packet including the first negotiation information and the second negotiation in the second terminal equipment The content of information, second negotiation information changes in the second member interface exception;
The first terminal equipment is determining received the first negotiation information and the second negotiation information and the first terminal When the first negotiation information in equipment is with the second negotiation information difference, first member interface is closed.
2. chain processing method according to claim 1, which is characterized in that be provided with first in the first terminal equipment Timer, the first terminal equipment is by executing the first member interface and the negotiated process and the first terminal equipment is connected In two terminal devices and after the second member interface of the first member interface physical connection, further includes:
First timer described in the first terminal opening of device;
The first terminal equipment receives after the first extension keep alive Packet that the second terminal equipment is sent, further includes:
The first terminal equipment is determining received the first negotiation information and the second negotiation information and the first terminal When the first negotiation information in equipment is identical with the second negotiation information, first timer is set and is started from scratch timing.
3. chain processing method according to claim 1, which is characterized in that the first terminal equipment according to it is preset when Between be spaced to the second terminal equipment repeat send second extension keep alive Packet, it is described second extension keep alive Packet in include institute The first negotiation information and the second negotiation information in first terminal equipment are stated, the content of first negotiation information is described first It changes when member interface exception, the second extension keep alive Packet is used to indicate the second terminal equipment and is connect in determination The first negotiation information and second in the first negotiation information and the second negotiation information and the second terminal equipment received is negotiated When information difference, second member interface is closed.
4. chain processing method according to claim 3, which is characterized in that be provided with second in the second terminal equipment Timer, second timer start timing after second member interface conducting, and the second extension keep alive Packet is also It is used to indicate the second terminal equipment and is determining received the first negotiation information and the second negotiation information and described second When the first negotiation information in terminal device is identical with the second negotiation information, second timer is set and is started from scratch timing.
5. chain processing method according to claim 2, which is characterized in that the method also includes:
The first terminal equipment closes described first when the clocking value for detecting first timer is greater than first threshold Member interface;
The first terminal equipment sends third to the second terminal equipment and extends keep alive Packet, and the third extends keep-alive report First negotiation information is not carried in text or carries the first negotiation information after content change, the third extends keep-alive report Text is used to indicate the second terminal equipment and closes second member interface;
The first terminal equipment executes the negotiation process with the second terminal equipment again.
6. chain processing method according to any one of claims 1 to 5, which is characterized in that the first terminal equipment It further include third timer in the first extension keep alive Packet received, the third timer is protected from first extension Message living starts timing when issuing, and the first terminal equipment receives the second terminal equipment according to preset time interval weight After the first extension keep alive Packet that recurrence is sent, further includes:
The first terminal equipment is less than or equal to second threshold in the clocking value of the third timer, and received by determination First negotiation information and the second negotiation information and the first negotiation information and the second negotiation information phase in the first terminal equipment Meanwhile keeping the current state of first member interface;Alternatively,
The first terminal equipment closes described the first one-tenth when the clocking value of the third timer is greater than the second threshold Member's interface;
The first terminal equipment sends the 4th extension keep alive Packet, the 4th extension keep-alive report to the second terminal equipment First negotiation information is not carried in text or carries the first negotiation information after content change, the 4th extension keep-alive report Text is used to indicate the second terminal equipment and closes second member interface;
The first terminal equipment executes the negotiation process with the second terminal equipment again.
7. chain processing method according to any one of claims 1 to 5, which is characterized in that the first terminal equipment Negotiate process by executing and be connected in the first member interface and second terminal equipment of the first terminal equipment with described first Second member interface of member interface physical connection, comprising:
The first terminal equipment sends first negotiation information to the second terminal equipment, and indicates the second terminal Equipment stores first negotiation information;
The first terminal equipment receives and stores second negotiation information that the second terminal equipment is sent;
The first terminal equipment sends the first negotiation packet to the second terminal equipment, includes in first negotiation packet The first negotiation information and the second negotiation information in the first terminal equipment, first negotiation packet are used to indicate described Two terminal devices are determining the in received the first negotiation information and the second negotiation information and the second terminal equipment When one negotiation information is identical with the second negotiation information, second member interface is connected;
The first terminal equipment receives the second negotiation packet that the second terminal equipment is sent, in second negotiation packet Including the second negotiation information and the first negotiation information in the second terminal equipment;
The first terminal equipment is determining received the first negotiation information and the second negotiation information and the first terminal When the first negotiation information in equipment is identical with the second negotiation information, first member interface is connected.
8. chain processing method according to claim 7, which is characterized in that the third member in the first terminal equipment The 4th member interface physical connection in interface and the second terminal equipment, and the third of the third member interface negotiates letter It ceases identical as first negotiation information;
The first terminal equipment is by executing the first member interface and second negotiated process and the first terminal equipment is connected In terminal device and after the second member interface of the first member interface physical connection, further includes:
The first terminal equipment when the 4th negotiation information of the 4th member interface is identical as second negotiation information, It executes the negotiation process and the third member interface and the 4th member interface is connected;Alternatively,
The first terminal equipment in the 4th negotiation information of the 4th member interface and when the second negotiation information difference, Execute the negotiation process failure.
9. a kind of link processing device, is set in first terminal equipment, which is characterized in that the link processing device includes:
Negotiation module, for by executing the first member interface and second terminal negotiating process and the first terminal equipment is connected With the second member interface of the first member interface physical connection in equipment, the first terminal equipment for negotiating process is completed With the second of the first negotiation information and second member interface that all have first member interface in second terminal equipment Negotiation information;
Receiving module repeats the send first extension keep-alive according to preset time interval for receiving the second terminal equipment Message, described first extends in keep alive Packet including the first negotiation information and the second negotiation letter in the second terminal equipment Breath, the content of second negotiation information change in the second member interface exception;
Processing module, for determining the first negotiation information that the receiving module receives and the second negotiation information and described the When the first negotiation information in one terminal device is with the second negotiation information difference, first member interface is closed.
10. link processing device according to claim 9, which is characterized in that be provided in the first terminal equipment One timer, the link processing device further include: opening module 18 is negotiating process by executing for the negotiation module Be connected in the first member interface and second terminal equipment of the first terminal equipment with the first member interface physical connection The second member interface after, open first timer;
The processing module, be also used to determine the first negotiation information that the receiving module receives and the second negotiation information with When the first negotiation information in the first terminal equipment is identical with the second negotiation information, first timer is set and is opened from zero Beginning timing.
11. link processing device according to claim 9, which is characterized in that further include: sending module, for according to pre- The time interval set repeats to send the second extension keep alive Packet to the second terminal equipment, and described second extends in keep alive Packet Including the first negotiation information and the second negotiation information in the first terminal equipment, the content of first negotiation information is in institute It changes when stating the first member interface exception, the second extension keep alive Packet is used to indicate the second terminal equipment true The first negotiation information in fixed received the first negotiation information and the second negotiation information and the second terminal equipment and the When two negotiation information differences, second member interface is closed.
12. link processing device according to claim 11, which is characterized in that be provided in the second terminal equipment Two timers, second timer start timing, the second extension keep alive Packet after second member interface conducting It is also used to indicate that the second terminal equipment is determining received the first negotiation information and the second negotiation information and described the When the first negotiation information in two terminal devices is identical with the second negotiation information, second timer is set and is started from scratch meter When.
13. link processing device according to claim 10, which is characterized in that the processing module is also used to detecting When being greater than first threshold to the clocking value of first timer, first member interface is closed;
The link processing device further include: sending module extends keep-alive report for sending third to the second terminal equipment Text, the third extend the first negotiation letter for not carrying first negotiation information in keep alive Packet or carrying after content change Breath, the third extension keep alive Packet are used to indicate the second terminal equipment and close second member interface;
The negotiation module is also used to execute the negotiation process with the second terminal equipment again.
14. the link processing device according to any one of claim 9~13, which is characterized in that the receiving module connects It further include third timer in the first extension keep alive Packet received, the third timer extends keep-alive from described first Message starts timing when issuing, the processing module is also used to be less than or equal to the second threshold in the clocking value of the third timer Value, and determine in the first negotiation information and the second negotiation information and the first terminal equipment that the receiving module receives When first negotiation information is identical with the second negotiation information, the current state of first member interface is kept;Alternatively,
The processing module is also used to close described the when the clocking value of the third timer is greater than the second threshold One member interface;
The sending module, is also used to send the 4th extension keep alive Packet to the second terminal equipment, and the 4th extension is protected First negotiation information is not carried in message living or carries the first negotiation information after content change, the 4th extension is protected Message living is used to indicate the second terminal equipment and closes second member interface;
The negotiation module is also used to execute the negotiation process with the second terminal equipment again.
15. the link processing device according to any one of claim 9~13, which is characterized in that the negotiation module packet It includes:
Transmission unit for sending first negotiation information to the second terminal equipment, and indicates that the second terminal is set It is standby to store first negotiation information;
Receiving unit, second negotiation information sent for receiving and storing the second terminal equipment;
The transmission unit is also used to send the first negotiation packet to the second terminal equipment, in first negotiation packet Including the first negotiation information and the second negotiation information in the first terminal equipment, first negotiation packet is used to indicate institute Second terminal equipment is stated in determining received the first negotiation information and the second negotiation information and the second terminal equipment The first negotiation information it is identical with the second negotiation information when, second member interface is connected;
The receiving unit is also used to receive the second negotiation packet that the second terminal equipment is sent, and described second negotiates report It include the second negotiation information and the first negotiation information in the second terminal equipment in text;
Processing unit, the first negotiation information and the second negotiation information and described first received used in the determination receiving unit When the first negotiation information in terminal device is identical with the second negotiation information, first member interface is connected.
16. link processing device according to claim 15, which is characterized in that third in the first terminal equipment at The 4th member interface physical connection in member's interface and the second terminal equipment, and the third of the third member interface is negotiated Information is identical as first negotiation information;
The processing module is also used in the negotiation module by executing negotiate that the first terminal equipment is connected in process the In one member interface and second terminal equipment and after the second member interface of the first member interface physical connection, and in institute State the 4th member interface the 4th negotiation information it is identical as second negotiation information when, execute described in the negotiations process is connected Third member interface and the 4th member interface;Alternatively,
The processing module is also used in the negotiation module by executing negotiate that the first terminal equipment is connected in process the In one member interface and second terminal equipment and after the second member interface of the first member interface physical connection, and in institute When stating the 4th negotiation information and the second negotiation information difference of the 4th member interface, the negotiation process failure is executed.
CN201610005907.6A 2016-01-05 2016-01-05 A kind of chain processing method and device Active CN106941426B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610005907.6A CN106941426B (en) 2016-01-05 2016-01-05 A kind of chain processing method and device
PCT/CN2016/089806 WO2017117957A1 (en) 2016-01-05 2016-07-12 Link processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610005907.6A CN106941426B (en) 2016-01-05 2016-01-05 A kind of chain processing method and device

Publications (2)

Publication Number Publication Date
CN106941426A CN106941426A (en) 2017-07-11
CN106941426B true CN106941426B (en) 2019-06-04

Family

ID=59273120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610005907.6A Active CN106941426B (en) 2016-01-05 2016-01-05 A kind of chain processing method and device

Country Status (2)

Country Link
CN (1) CN106941426B (en)
WO (1) WO2017117957A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128313A (en) * 1997-09-11 2000-10-03 Cisco Technology, Inc. Apparatus and method for filtering line noise and improper packet formatting
CN101047712A (en) * 2006-06-19 2007-10-03 华为技术有限公司 Device and method for detecting Ethernet interface configuration
CN101789954A (en) * 2009-01-24 2010-07-28 华为技术有限公司 Communication method, equipment and system in unicast environment
CN103440188A (en) * 2013-08-29 2013-12-11 福建星网锐捷网络有限公司 Method and device for detecting PCIE hardware faults
CN103957079A (en) * 2014-04-30 2014-07-30 杭州华三通信技术有限公司 Negotiation method and equipment in HDLC network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325086A (en) * 2006-08-02 2012-01-18 华为技术有限公司 Method for communicating media stream, communication detection methods and systems thereof
US8102630B2 (en) * 2008-07-22 2012-01-24 Sahul Hameed Abdul Kader Jailani Method for maintaining connectivity in failed switches of stack
CN102769573B (en) * 2012-08-01 2014-11-05 杭州华三通信技术有限公司 Method for sending BGP (border gateway protocol) keep-alive information by the aid of BFD (bidirectional forwarding detection) messages and routing devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128313A (en) * 1997-09-11 2000-10-03 Cisco Technology, Inc. Apparatus and method for filtering line noise and improper packet formatting
CN101047712A (en) * 2006-06-19 2007-10-03 华为技术有限公司 Device and method for detecting Ethernet interface configuration
CN101789954A (en) * 2009-01-24 2010-07-28 华为技术有限公司 Communication method, equipment and system in unicast environment
CN103440188A (en) * 2013-08-29 2013-12-11 福建星网锐捷网络有限公司 Method and device for detecting PCIE hardware faults
CN103957079A (en) * 2014-04-30 2014-07-30 杭州华三通信技术有限公司 Negotiation method and equipment in HDLC network

Also Published As

Publication number Publication date
CN106941426A (en) 2017-07-11
WO2017117957A1 (en) 2017-07-13

Similar Documents

Publication Publication Date Title
US11616696B2 (en) Transparent auto-negotiation of Ethernet
ES2662111T3 (en) Method and system to synchronize with a neighbor in a group of aggregation of interconnecting links of distributed resilient networks (DRNI)
CN105706393B (en) The method and system of operator's order is supported in link aggregation group
CN103475655B (en) A kind of method realizing IPSecVPN main/slave link switching at runtime
CN102624584B (en) Chain circuit detecting method and device
CN101729543B (en) Method for improving performance of mobile SSL VPN by utilizing remote Socks5 technology
CN104243259B (en) Collaboration method and system in distributed elastic network interconnection system
CN104518936B (en) Link dynamic aggregation method and apparatus
CN106803811A (en) The acquisition methods and device of a kind of routing iinformation
CN106982161A (en) The method and apparatus that label keeps and deleted in looped network protection
CN107396297A (en) Intelligent networking system and its method of controlling security based on bluetooth
CN104426732A (en) High-speed transmission tunnel realization method and system
CN104468168B (en) Network failure recovery method, control server and interchanger
CN103731303A (en) Method and device of vertical converged framework for achieving multi-active detection
CN103067956B (en) Ipsec tunnel backup and changing method and equipment in 3G network environment
CN104580346B (en) Data transmission method and device
CN106992931A (en) Interchanger redundancy backup method and dual homed loop system based on dual homed ring
CN104702478B (en) Virtual flow-line forwarding instance processing method and processing device
CN104040973B (en) Aggregation group link negotiation method, device and system
CN106941426B (en) A kind of chain processing method and device
CN106302146A (en) The convergence method of link aggregation and device
CN100438476C (en) Connecting method for multiplex VPN tunnel
CN104468386B (en) Flow equalization method and device in a kind of Ethernet virtualization internet network
US6456626B1 (en) Method of virtual circuit reconnection without loss of call session
CN104253756B (en) A kind of LAV switching methods and ED

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant