CN106911533A - The detection method and device of a kind of Link State - Google Patents

The detection method and device of a kind of Link State Download PDF

Info

Publication number
CN106911533A
CN106911533A CN201710076590.XA CN201710076590A CN106911533A CN 106911533 A CN106911533 A CN 106911533A CN 201710076590 A CN201710076590 A CN 201710076590A CN 106911533 A CN106911533 A CN 106911533A
Authority
CN
China
Prior art keywords
port number
source port
business
link
logic source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710076590.XA
Other languages
Chinese (zh)
Other versions
CN106911533B (en
Inventor
郑磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710076590.XA priority Critical patent/CN106911533B/en
Publication of CN106911533A publication Critical patent/CN106911533A/en
Application granted granted Critical
Publication of CN106911533B publication Critical patent/CN106911533B/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
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of detection method and device of Link State, and in the application, source device makes this equipment upper layer entity all possess observability to each physical port by cancelling the aggregation configuration to institute's detecting link.Under this condition, at least one logic source port number is associated by for each physical port, and by each associated logic source port number, the purpose equipment transmission link probe messages of institute's pre-association from the physical port to business, source device just can to each with physical port as one end, physical link of the pre-association purpose equipment as the other end carry out accessibility detection, so as to ensure that the equipment upper layer entity is known to the reliability of above-mentioned each physical link accessibility.

Description

The detection method and device of a kind of Link State
Technical field
The application is related to network communication technology field, more particularly to a kind of Link State detection method and device.
Background technology
With the fast development of network technology, transmitted data on network is significantly increased.To effectively improve the transmission bandwidth of data And link utilization, one can be formed by way of configuration link is polymerized by a plurality of physical member's link aggregation together Logical links, so that these physical member's links can be with the data transfer task of one or more business of shared.
To realize the transmitting of data message, have been configured with link aggregation equipment still need data message transmission it Before, by way of transmission link probe messages, the accessibility of snooping logic link.And in implementing, due to logic chain Road has single observability for the upper-layer protocol that the upper layer entity such as message transmissions of equipment are used, i.e., the upper-layer protocol is simultaneously Which the physical member's link for being indifferent to participation link detection message transmissions specifically has, then in this case, if logic chain The result of detection on road is reachable, then the logical links appoints the transmission regarded as by upper-layer protocol as that can undertake data message Business, and now, the physical member's link being assigned to if some data messages is unreachable and the link is in fact unassigned To the link detection message for detecting link accessibility, then the loss of these data messages will be caused.
The content of the invention
In view of this, the application provides a kind of detection method and device of Link State, to ensure the reliability of data message Transmission.
According to the first aspect of the embodiment of the present application, there is provided a kind of detection method of Link State, methods described is related to one Transaction processing system comprising source device and purpose equipment, methods described is applied to the source device;For each business, source sets Standby is in advance one group of logic source port number of the traffic assignments;The logic source port number that will be distributed, according to pre-defined algorithm associate to It is the pre-assigned physical port of the business, and each physical port at least associates a logic source port number, methods described bag Include:
It is header source port with the logic source port number for being the pre-assigned each logic source port number of each business Number, by the physical port associated by the logic source port number, detected to the purpose equipment transmission link of the business institute pre-association Message;
Judge whether to receive the corresponding link detection response message of the link detection message in default time-out duration;Such as Fruit receive, it is determined that as defined in the logic source port number, connection pre-association purpose equipment link it is reachable;If do not connect Receive, it is determined that as defined in the logic source port number, connection pre-association purpose equipment link it is unreachable.
According to the second aspect of the embodiment of the present application, there is provided a kind of detection device of Link State, described device is related to one Transaction processing system comprising source device and purpose equipment, described device is applied to the source device, and described device includes:
Allocation unit, for being in advance one group of logic source port number of the traffic assignments for each business;
Associative cell, for the logic source port number for being distributed allocation unit, according to pre-defined algorithm association most industry It is engaged in pre-assigned physical port, and each physical port at least associates a logic source port number;
Transmitting element, for for being the pre-assigned each logic source port number of each business, with the logic source port Number be header source port number, by the physical port associated by the logic source port number, set to the purpose of the business institute pre-association Preparation send link detection message;
Judging unit, for judging whether that receiving the corresponding link of the link detection message in default time-out duration visits Survey response message;
Determining unit, during for the judged result in the judging unit to be, it is determined that being determined by the logic source port number Justice, connection pre-association purpose equipment link is reachable;When the judged result of the judging unit is no, it is determined that by the logic Source port number is defined, the link of connection pre-association purpose equipment is unreachable.
In the application, source device makes this equipment upper layer entity to each by cancelling the aggregation configuration to institute's detecting link Physical port all possesses observability.Under this condition, at least one logic source port is associated by for each physical port Number, and by each associated logic source port number, the purpose equipment send chain of institute's pre-association from the physical port to business Road probe messages, source device just can to each with physical port as one end, physics of the pre-association purpose equipment as the other end Link carries out accessibility detection, so as to ensure that the equipment upper layer entity is known the reliability of above-mentioned each physical link accessibility Know.And, it is that the logic source port number of each physical port association is more to a certain extent, the physical port for being obtained The result of detection of corresponding physical link is also more reliable.In fact, under this condition, each associated by physical port patrols Volume source port number by it is above-mentioned with physical port as one end, physical link of the pre-association purpose equipment as the other end, be virtually Some as defined in the logic source port number, the logical links of connection pre-association purpose equipment, now, as long as source device It is that reachable above-mentioned logical links sends datagram by result of detection, just can ensures the transmission reliability of sent out data message Property.
Brief description of the drawings
Fig. 1 is a kind of detection method flow chart of Link State of the application;
Fig. 2 is a kind of the first structure chart of the detection device of Link State of the application;
Fig. 3 is a kind of second structure chart of the detection device of Link State of the application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
A kind of detection method of Link State of the application, be related to one comprising source device and purpose equipment, can process many The transaction processing system of item business.Wherein, source device can connect the source device institute pre-association by local physical port Purpose equipment, and thereby determine that a plurality of physical link between source device and pre-association purpose equipment.As an example, above-mentioned source Equipment can be interchanger, and purpose equipment can be server, and can also have various centres to set between interchanger and server It is standby, such as various network equipments and access switch in multiplexing switches, go-between etc., and in view of above-mentioned centre sets Standby being had no with the application purport is again, therefore it will not go into details.It is existing for the accessibility detection of link between source device and purpose equipment Technology has still been multiplexed the technical background of link aggregation.Wherein, link aggregation specifically refers to condense together a plurality of physical link, A logical links is formed, and is used to access logical links the logic port of source device, be to be distinguished by above-mentioned each physical link Corresponding physical port is polymerized.However, because under the conditions of link aggregation, the upper layer entity of source device is to above-mentioned logic chain Road and logic port are respectively provided with single observability, even if so detect the logical links by link detection message can Up to property, accessibility detection is all not equivalent to also carried out to all physical links in the logical links, even if that is, logic Link has passed through above-mentioned accessibility detection, and all physical links being also not equivalent in the logical links can be by above-mentioned Accessibility is detected, and, under the conditions of link aggregation, when the detection of above-mentioned logical links is reachable, upper layer entity will be by data Message unification is driven into the logical links and is transmitted, and the message for being not relevant for each physical link in logical links shares feelings Condition, this will bury major hidden danger for the loss of data message.
Therefore for this problem, the application provides a kind of detection method and device of Link State, to ensure data message Transmitting.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present application, and make the application reality Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present application Case is described in further detail.
Referring to Fig. 1, Fig. 1 is a kind of detection method flow chart of Link State of the application, and the flow chart can include following Step:
Step 101:It is the pre-assigned each logic source port number of each business that source device is directed to, with the logic source port Number be header source port number, by the physical port associated by the logic source port number, set to the purpose of the business institute pre-association Preparation send link detection message.
In this method embodiment, the method be related to one comprising source device and purpose equipment, multinomial business can be processed Transaction processing system.For each business handled by the system, source device can be in advance one group of logical source of the traffic assignments Port numbers, and the logic source port number that will be distributed, according to the pre-defined algorithm association most pre-assigned physical port of the business, And need to ensure that each physical port at least associates a logic source port number.
In a kind of implementation of this step, when the quantity of each business institute pre-association purpose equipment is n (n >=2), It is the pre-assigned each logic source port number of each business that source device can be traveled through gradually, and for traveling through each time, successively Using each logic source port number as header source port number, by the physical port associated by the logic source port number, to the industry M (1≤m≤n) platform pre-association purpose equipment transmission link probe messages of business.
In another implementation of this step, equally in these cases, source device can also be directed to and be traversed Each business under each logic source port number, be header source port number with the logic source port number, by the logic source Physical port associated by slogan, to each purpose equipment transmission link probe messages of the business institute pre-association.
Step 102:Whether source device judges receive the corresponding link of link detection message in default time-out duration Detection response message;If received, it is determined that as defined in the logic source port number, the chain of connection pre-association purpose equipment Road is reachable;If do not received, it is determined that as defined in the logic source port number, connection pre-association purpose equipment link not It is reachable.
In this method embodiment, the corresponding link detection response message of above-mentioned link detection message refers to:Comprising with it is right Answer logic source port number identical logic source port number contained by link detection message and comprising with corresponding link detection message institute Link detection response message containing purpose equipment mark identical purpose equipment mark.
In this method embodiment, for each business, when source device and pre-association purpose equipment is determined by this method Between reachable link after, source device just can by the identified data message up to corresponding to the link transmission business, And the transmission reliability of the data message can be ensured.Specifically, source device can be by the identified logic source up to link The device identification of the pre-association purpose equipment that slogan and the link are led to is sent to the logical forwarding list of this equipment lower floor Unit, is packaged, and the data message is transmitted with by logical forwarding unit to the data message of required transmission.
In this method embodiment, source device makes this equipment upper layer entity by cancelling the aggregation configuration to institute's detecting link All possesses observability to each physical port.Under this condition, at least one logic is associated by for each physical port Source port number, and by each associated logic source port number, the purpose equipment of institute's pre-association from the physical port to business Transmission link probe messages, source device just can to each with physical port as one end, pre-association purpose equipment is as the other end Physical link carry out accessibility detection, so as to ensure that the equipment upper layer entity to above-mentioned each physical link accessibility can By knowing.And, it is that the logic source port number of each physical port association is more to a certain extent, the physics for being obtained The result of detection of physical link corresponding to port is also more reliable.In fact, under this condition, it is every associated by physical port One logic source port number by it is above-mentioned with physical port as one end, physical link of the pre-association purpose equipment as the other end, it is empty Be intended to be some as defined in the logic source port number, connection pre-association purpose equipment logical links, now, source device As long as being that reachable above-mentioned logical links sends datagram by result of detection, the transmission of sent out data message just can be ensured Reliability.
The application will be below described in detail by a specific embodiment, the present embodiment and above method embodiment Difference be:The present embodiment is explained with specific example to part steps, possesses stronger practical operation meaning. The present embodiment may comprise steps of:
Step 1:It is the pre-assigned each logic source port number of each business that source device is directed to, with the logic source port number It is header source port number, by the physical port associated by the logic source port number, to the purpose equipment of the business institute pre-association Transmission link probe messages.
The present embodiment is related to above-mentioned Business Processing system comprising source device and purpose equipment, can processing multinomial business System, and for each business handled by the system, source device can be in advance one group of logic source port number of the traffic assignments, and The logic source port number that will be distributed, according to the pre-defined algorithm association most pre-assigned physical port of the business, and needs to ensure Each physical port at least associates a logic source port number.In a kind of implementation of the present embodiment, source device can be with root According to the port number for the pre-assigned physical port of the business, the logic source port number that will be distributed uses the side rounded by business Method is averagely associated to each physical port, and the remaining logic source port number of institute is associated to any of which physical port.Wherein, it is above-mentioned The method rounded by business is specifically referred to, if the physical port number for assuming the source device is 10, and is the logical source of the traffic assignments Port number is 92, then can first for above-mentioned each physical port associates 10 logic source port numbers, and by remaining 2 logical sources Port numbers associate any one into above-mentioned 10 physical ports.
In the present embodiment, source device can be by setting up the side of mapping relations between logic source port number group and service identification Formula, this business is given by each logical source port number assignment in logic source port number group.Specifically, working as above-mentioned logic source port When number group is preserved with an array form, can be by using service identification as each logic source port number institute in logic source port number group The lower target mode of correspondence array element, sets up the mapping of each logic source port number and service identification in logic source port number group Relation.
In the present embodiment, for each business, in the purpose equipment transmission link probe messages to the business institute pre-association Before, source device can in advance for each link detection message that will be sent matches a session entry, session entry record Characteristic value in its probe messages for being matched in different characteristic field, these characteristic values can be:In probe messages header Logic source port number and the device identification of purpose equipment that will be sent to of the probe messages, so that source device is according to above-mentioned Session entry determines the link detection response message corresponding to each link detection message, and its specific determination process will be in following step Described in detail in rapid 2, will not be repeated here.
It is pointed out that because the transaction processing system involved by the present embodiment may need while processing many industry Business, then in order to better discriminate between the service message under these business, source device can this equipment be different for these business associations Device identification.Wherein, above-mentioned service message can include:Link detection message and data message;The said equipment is identified IP (Internet Protocol, the agreement interconnected between network) address of loopback interface etc. in this equipment.And it is same in order to distinguish The different data message of function is undertaken in one business, local physical port also can be divided into different ends by source device in advance Mouth group, and be that each port set associates different protocol listening ports, so as to realize difference in functionality at corresponding purpose equipment end The classification transmission of data message, improves the function identification degree of data message.
Step 2:Whether source device judges receive the corresponding link of the link detection message in default time-out duration is visited Response message is surveyed, if received, step 303 is performed;Otherwise, step 304 is performed.
In the present embodiment, because link detection response message is included and the link detection message identical feature corresponding to it Field, so for each link detection response message received in default time-out duration, source device can be visited to the link The feature field for surveying response message is parsed, and the characteristic value in the feature field that will be parsed, with it is above-mentioned be each link The session entry of probe messages matching is matched, and thus judges whether to receive the link corresponding to a link detection message Detection response message.Wherein, different feature fields can respectively preserve its institute right with the discrete diverse location in message The characteristic value answered.But for the ease of parsing, and in order to determine detecting link according to the characteristic value for parsing faster, also can be by this A little eigenvalue clusters are combined, as a characteristic value for new uniquely determined detecting link, what write-in one was opened up in advance Feature field.Wherein the feature field opened up in advance is normally at the data field of message, and according to the custom art of this area Language, commonly referred to as crucial value field.
As a preferred embodiment, it is contemplated that in the application method, the chain between source device and pre-association purpose equipment Road can be uniquely determined by the combination of logic source port number and the device identification of pre-association purpose equipment the two characteristic values, then in tool During body is realized, can be using the session identification corresponding to the above-mentioned session entry for the matching of each link detection message as above-mentioned key Value field, is respectively written into the corresponding link detection response message of link detection message.Specifically, illustrative showing as one Example, is the business if the purpose equipment for assuming this business institute pre-association is purpose equipment 1, purpose equipment 2 and purpose equipment 3 The logic source port number for being pre-allocated is logic source port number 1 and logic source port number 2, then under the business, it may be determined that six Logical links, this six logical links also can respectively by session 11, session 12, session 21, session 22, session 31, session 32 and Uniquely determine, for details, reference can be made to such as table 1 below.Then in this case, if the link corresponding to link detection message and its Detection response message adds identical session identification respectively, and source device just can be each for what is received in default time-out duration Link detection response message, determines the reachable chain between source device and pre-association purpose equipment by way of matching session identification Road.
Pre-association mesh device identification/session identification/logic source port number Logic source port number 1 Logic source port number 2
Purpose equipment 1 Session 11 Session 12
Purpose equipment 2 Session 21 Session 22
Purpose equipment 3 Session 31 Session 32
Table 1
Step 3:Source device is determined as defined in the logic source port number, the link of connection pre-association purpose equipment can Reach.
Step 4:Source device is determined as defined in the logic source port number, the link of connection pre-association purpose equipment can not Reach.
In the present embodiment, source device can associate at least one logic source port number for each physical port, and this aspect is carried The reliability of physical link detection high:If such as by detecting determination, the logic source port associated by this physical port Number only part is available, then the available logic source port number in this part can be only issued to logical forwarding unit by source device, so that Logical forwarding unit utilizes these available logic source port number data message transmissions;On the other hand, in view of source device and purpose The complexity of link connection between equipment room, also for the midway shunting of data message in this case provides advantage.
As can be seen from the above embodiments, source device is made in this equipment by cancelling the aggregation configuration to institute's detecting link Layer entity all possesses observability to each physical port.Under this condition, at least one is associated by for each physical port Individual logic source port number, and by each associated logic source port number, the mesh of institute's pre-association from the physical port to business Equipment transmission link probe messages, source device just can to each with physical port as one end, pre-association purpose equipment be The physical link of the other end carries out accessibility detection, reachable to above-mentioned each physical link so as to ensure that the equipment upper layer entity The reliability of property is known.And, it is that the logic source port number of each physical port association is more to a certain extent, obtained The result of detection of physical link is also more reliable corresponding to the physical port.In fact, under this condition, physical port is closed Connection each logic source port number by it is above-mentioned with physical port as one end, physics chain of the pre-association purpose equipment as the other end Road, virtually in order to some as defined in the logic source port number, connection pre-association purpose equipment logical links, now, As long as source device is that reachable above-mentioned logical links sends datagram by result of detection, sent out data message just can be ensured Transmission reliability.
It is corresponding with a kind of foregoing embodiment of the detection method of Link State, present invention also provides a kind of Link State Detection method embodiment.
Referring to Fig. 2, Fig. 2 is a kind of the first structure chart of the detection device of Link State of the application, and said apparatus are related to One transaction processing system comprising source device and purpose equipment, said apparatus are applied to above-mentioned source device, can include:Distribution is single Unit 210, associative cell 220, transmitting element 230, judging unit 240, determining unit 250.
Wherein, allocation unit 210, for being in advance one group of logic source port number of the traffic assignments for each business;
Associative cell 220, for the logic source port number for being distributed allocation unit 210, according to pre-defined algorithm associate to It is the pre-assigned physical port of the business, and each physical port at least associates a logic source port number;
Transmitting element 230, for for being the pre-assigned each logic source port number of each business, with the logic source Slogan is header source port number, by the physical port associated by the logic source port number, to the purpose of the business institute pre-association Equipment transmission link probe messages;
Judging unit 240, for judging whether to receive the corresponding chain of link detection message in default time-out duration Road detection response message;
Determining unit 250, during for the judged result in above-mentioned judging unit to be, it is determined that by the logic source port number institute Definition, connection pre-association purpose equipment link is reachable;When the judged result of above-mentioned judging unit is no, it is determined that being patrolled by this The link for collecting defined in source port number, connecting pre-association purpose equipment is unreachable.
In the first implementation of present apparatus embodiment, above-mentioned associative cell 220 can be specifically for:According to be should The quantity of the pre-assigned physical port of business, the logic source port number that will be distributed uses the method rounded by business averagely to associate To each physical port, and the remaining logic source port number of institute is associated to any of which physical port.
In second implementation of present apparatus embodiment, when the quantity of the purpose equipment of the business institute pre-association is n When (n >=2), above-mentioned transmitting element 230 can be specifically for:Gradually traversal is the pre-assigned each logic source of each business Slogan, for traveling through each time, successively using each logic source port number as header source port number, by the logic source port number Associated physical port, to m (1≤m≤n) platform pre-association purpose equipment transmission link probe messages of the business.
In the third implementation of present apparatus embodiment, the corresponding link detection response of the above-mentioned link detection message Message, can specifically include:With logic source port number identical logic source port number, Yi Jiyu contained by corresponding link detection message Purpose equipment mark identical purpose equipment mark contained by corresponding link detection message.
In the 4th kind of implementation of present apparatus embodiment, said apparatus can also include:Transmission unit 260, is used for For each business, by the data message corresponding to identified reachable link transmission business, Fig. 3, Fig. 3 are for details, reference can be made to It is a kind of second structure chart of the detection device of Link State of the application.
From apparatus above embodiment, source device is made in this equipment by cancelling the aggregation configuration to institute's detecting link Layer entity all possesses observability to each physical port.Under this condition, at least one is associated by for each physical port Individual logic source port number, and by each associated logic source port number, the mesh of institute's pre-association from the physical port to business Equipment transmission link probe messages, source device just can to each with physical port as one end, pre-association purpose equipment be The physical link of the other end carries out accessibility detection, reachable to above-mentioned each physical link so as to ensure that the equipment upper layer entity The reliability of property is known.And, it is that the logic source port number of each physical port association is more to a certain extent, obtained The result of detection of physical link is also more reliable corresponding to the physical port.In fact, under this condition, physical port is closed Connection each logic source port number by it is above-mentioned with physical port as one end, physics chain of the pre-association purpose equipment as the other end Road, virtually in order to some as defined in the logic source port number, connection pre-association purpose equipment logical links, now, As long as source device is that reachable above-mentioned logical links sends datagram by result of detection, sent out data message just can be ensured Transmission reliability.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein above-mentioned as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (10)

1. a kind of detection method of Link State, methods described is related to a Business Processing system comprising source device and purpose equipment System, methods described is applied to the source device, it is characterised in that be in advance one group of logic of the traffic assignments for each business Source port number;The logic source port number that will be distributed, according to the pre-defined algorithm association most pre-assigned physical port of the business, And each physical port at least associates a logic source port number, methods described includes:
It is header source port number with the logic source port number for being the pre-assigned each logic source port number of each business, By the physical port associated by the logic source port number, report is detected to the purpose equipment transmission link of the business institute pre-association Text;
Judge whether to receive the corresponding link detection response message of the link detection message in default time-out duration;If connect Receive, it is determined that as defined in the logic source port number, connection pre-association purpose equipment link it is reachable;If do not received Arrive, it is determined that as defined in the logic source port number, connection pre-association purpose equipment link it is unreachable.
2. method according to claim 1, it is characterised in that the logic source port number that will be distributed, according to predetermined The algorithm association most pre-assigned physical port of the business, and each physical port at least associates a logic source port number, Including:
According to the quantity for the pre-assigned physical port of the business, the logic source port number that will be distributed uses what is rounded by business Method is averagely associated to each physical port, and the remaining logic source port number of institute is associated to any of which physical port.
3. method according to claim 1, it is characterised in that when the quantity of the purpose equipment of the business institute pre-association is n It is described for being the pre-assigned each logic source port number of each business when (n >=2), with the logic source port number as header Source port number, by the physical port associated by the logic source port number, to the purpose equipment send chain of the business institute pre-association Road probe messages, including:
Gradually traversal is the pre-assigned each logic source port number of each business, for traveling through each time, is patrolled each successively Source port number is collected as header source port number, by the physical port associated by the logic source port number, to the m (1 of the business ≤ m≤n) platform pre-association purpose equipment transmission link probe messages.
4. method according to claim 1, it is characterised in that the corresponding link detection response of the described link detection message Message, specifically includes:
Visited with logic source port number identical logic source port number contained by corresponding link detection message and with corresponding link Observe and predict purpose equipment mark identical purpose equipment mark contained by text.
5. method according to claim 1, it is characterised in that also include after methods described:For each business, pass through Data message corresponding to identified reachable link transmission business.
6. a kind of detection device of Link State, described device is related to a Business Processing system comprising source device and purpose equipment System, described device is applied to the source device, it is characterised in that described device includes:
Allocation unit, for being in advance one group of logic source port number of the traffic assignments for each business;
Associative cell, for the logic source port number for being distributed allocation unit, associates the most business pre- according to pre-defined algorithm The physical port for first distributing, and each physical port at least associates a logic source port number;
Transmitting element, for for being the pre-assigned each logic source port number of each business, being with the logic source port number Header source port number, by the physical port associated by the logic source port number, sends out to the purpose equipment of the business institute pre-association Send link detection message;
Judging unit, for judging whether that receiving the corresponding link detection of the link detection message in default time-out duration rings Answer message;
Determining unit, during for the judged result in the judging unit to be, it is determined that as defined in the logic source port number, The link for connecting pre-association purpose equipment is reachable;When the judged result of the judging unit is no, it is determined that by the logic source Slogan is defined, the link of connection pre-association purpose equipment is unreachable.
7. device according to claim 6, it is characterised in that the associative cell, is particularly used in:
According to the quantity for the pre-assigned physical port of the business, the logic source port number that will be distributed uses what is rounded by business Method is averagely associated to each physical port, and the remaining logic source port number of institute is associated to any of which physical port.
8. device according to claim 6, it is characterised in that when the quantity of the purpose equipment of the business institute pre-association is n When (n >=2), the transmitting element, specifically for:
Gradually traversal is the pre-assigned each logic source port number of each business, for traveling through each time, is patrolled each successively Source port number is collected as header source port number, by the physical port associated by the logic source port number, to the m (1 of the business ≤ m≤n) platform pre-association purpose equipment transmission link probe messages.
9. device according to claim 6, it is characterised in that the corresponding link detection response of the described link detection message Message, specifically includes:
Visited with logic source port number identical logic source port number contained by corresponding link detection message and with corresponding link Observe and predict purpose equipment mark identical purpose equipment mark contained by text.
10. device according to claim 6, it is characterised in that described device also includes:
Transmission unit, for for each business, by the data message corresponding to identified reachable link transmission business.
CN201710076590.XA 2017-02-13 2017-02-13 Link state detection method and device Active CN106911533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076590.XA CN106911533B (en) 2017-02-13 2017-02-13 Link state detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076590.XA CN106911533B (en) 2017-02-13 2017-02-13 Link state detection method and device

Publications (2)

Publication Number Publication Date
CN106911533A true CN106911533A (en) 2017-06-30
CN106911533B CN106911533B (en) 2020-01-03

Family

ID=59208152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076590.XA Active CN106911533B (en) 2017-02-13 2017-02-13 Link state detection method and device

Country Status (1)

Country Link
CN (1) CN106911533B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4044510A4 (en) * 2019-10-31 2022-11-16 Huawei Technologies Co., Ltd. Method and apparatus for detecting link states
CN115550456A (en) * 2022-09-13 2022-12-30 中国联合网络通信集团有限公司 Service scheduling method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848768A (en) * 2005-04-12 2006-10-18 富士通株式会社 Characteristic identifying message for link aggregation marker protocol
CN101110663A (en) * 2007-08-31 2008-01-23 华为技术有限公司 Method, system and device for implementing periodic line failure processing
CN101217424A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A detecting method and device of aggregated link failures
CN101286899A (en) * 2007-04-12 2008-10-15 株式会社日立制作所 Network system and node apparatus
CN103457759A (en) * 2012-05-29 2013-12-18 株式会社日立制作所 Communication device and method of controlling the same
JP5459094B2 (en) * 2010-06-18 2014-04-02 沖電気工業株式会社 Link aggregation communication device
CN104917624A (en) * 2014-03-10 2015-09-16 华耀(中国)科技有限公司 Health check system and method for link aggregation path

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848768A (en) * 2005-04-12 2006-10-18 富士通株式会社 Characteristic identifying message for link aggregation marker protocol
CN101286899A (en) * 2007-04-12 2008-10-15 株式会社日立制作所 Network system and node apparatus
CN101110663A (en) * 2007-08-31 2008-01-23 华为技术有限公司 Method, system and device for implementing periodic line failure processing
CN101217424A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A detecting method and device of aggregated link failures
JP5459094B2 (en) * 2010-06-18 2014-04-02 沖電気工業株式会社 Link aggregation communication device
CN103457759A (en) * 2012-05-29 2013-12-18 株式会社日立制作所 Communication device and method of controlling the same
CN104917624A (en) * 2014-03-10 2015-09-16 华耀(中国)科技有限公司 Health check system and method for link aggregation path

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4044510A4 (en) * 2019-10-31 2022-11-16 Huawei Technologies Co., Ltd. Method and apparatus for detecting link states
CN115550456A (en) * 2022-09-13 2022-12-30 中国联合网络通信集团有限公司 Service scheduling method and device

Also Published As

Publication number Publication date
CN106911533B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN104301184B (en) The health examination method and device of link
CN102067533B (en) Port grouping for association with virtual interfaces
EP1482712B1 (en) Virtual network addresses
US7983175B2 (en) System and method for detecting a network failure
US8295163B1 (en) Reassigning signals to cable channels
CN104618521B (en) For carrying out the method, apparatus and computer-readable medium of node duplicate removal in a network
CN104601394B (en) A kind of method, apparatus and system of business chain detection of connectivity
CN108667747A (en) The method, apparatus and computer readable storage medium of network flow application type identification
CN107547488A (en) A kind of DNS tunnel detection methods and DNS tunnel detectors
CN107547240A (en) A kind of chain circuit detecting method and device
CN106911533A (en) The detection method and device of a kind of Link State
CN102201982A (en) Application identification method and equipment thereof
Pedretti et al. Using the Cray Gemini Performance Counters.
CN111092782B (en) Tested communication equipment, communication equipment port data forwarding test system and method
CN110113260A (en) A kind of forwarding table updating method and device
CN101606357A (en) The obstruction access list ID in the network and the automatic discovery of match statement
CN102164059B (en) Method and device for detecting connection error of stacked aggregated links
CN105743739A (en) Symmetrical NAT port predicting method, detection server and detected-end device
CN100531192C (en) System and method port and protocol sharing
CN108494625A (en) A kind of analysis system on network performance evaluation
CN106230726A (en) The detection method of forward-path and device
CN108234202B (en) Method for discovering network topology based on life span
CN102387025B (en) Method for collecting service data packet log information and service logic processing system
CN106506375A (en) A kind of route renewing method and device
CN106936651A (en) The determination method and controller of a kind of data flow

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