CN106911533B - Link state detection method and device - Google Patents

Link state detection method and device Download PDF

Info

Publication number
CN106911533B
CN106911533B CN201710076590.XA CN201710076590A CN106911533B CN 106911533 B CN106911533 B CN 106911533B CN 201710076590 A CN201710076590 A CN 201710076590A CN 106911533 B CN106911533 B CN 106911533B
Authority
CN
China
Prior art keywords
source port
port number
link
service
logical
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
CN201710076590.XA
Other languages
Chinese (zh)
Other versions
CN106911533A (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

Images

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

Abstract

In the method, source equipment cancels aggregate configuration of a detected link, so that an upper-layer entity of the equipment has visibility to each physical port. Under the condition, by associating at least one logical source port number for each physical port, and sending a link detection message from the physical port to a destination device pre-associated with the service through each associated logical source port number, the source device can perform reachability detection on each physical link with the physical port as one end and the pre-associated destination device as the other end, thereby ensuring that an upper layer entity of the device can reliably know the reachability of each physical link.

Description

Link state detection method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for detecting a link state.
Background
With the rapid development of network technology, network transmission data is greatly increased. In order to effectively improve the transmission bandwidth and the link utilization rate of data, a plurality of physical member links can be aggregated together by configuring a link aggregation mode to form a logical link, so that the physical member links can jointly undertake the data transmission task of one or more services.
In order to realize reliable transmission of data packets, a device configured with link aggregation still needs to detect the accessibility of a logical link by sending a link detection packet before transmitting a data packet. In a specific implementation, since the logical link has a single visibility to an upper layer entity of the device, such as an upper layer protocol used for message transmission, that is, the upper layer protocol does not care which physical member links participating in link detection message transmission are specific, in this case, if the detection result of the logical link is reachable, the logical link will be seen by the upper layer protocol as being capable of undertaking the transmission task of the data message, and at this time, if the physical member link allocated to some data messages is not reachable and the link is not actually allocated to the link detection message for detecting link reachability, the data messages will be lost.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for detecting a link status to ensure reliable transmission of a data packet.
According to a first aspect of the embodiments of the present application, a method for detecting a link state is provided, the method relates to a service processing system including a source device and a destination device, and the method is applied to the source device; for each service, the source device allocates a group of logic source port numbers for the service in advance; associating the allocated logical source port numbers to physical ports pre-allocated for the traffic according to a predetermined algorithm, and associating at least one logical source port number to each physical port, the method comprising:
aiming at each logic source port number pre-distributed for each service, taking the logic source port number as a header source port number, and sending a link detection message to a destination device pre-associated with the service through a physical port associated with the logic source port number;
judging whether a link detection response message corresponding to the link detection message is received within a preset timeout duration; if so, determining that a link defined by the logical source port number and connecting the pre-associated destination device is reachable; if not, it is determined that the link defined by the logical source port number to connect the pre-associated destination device is not reachable.
According to a second aspect of the embodiments of the present application, there is provided a link state detection apparatus, the apparatus relates to a service processing system including a source device and a destination device, the apparatus is applied to the source device, and the apparatus includes:
the distribution unit is used for distributing a group of logic source port numbers for each service in advance;
the association unit is used for associating the logic source port number distributed by the distribution unit to a physical port pre-distributed for the service according to a preset algorithm, and each physical port is associated with at least one logic source port number;
a sending unit, configured to send a link detection packet to a destination device pre-associated with each service through a physical port associated with a logical source port number, where the logical source port number is used as a header source port number for each logical source port number pre-allocated to each service;
the judging unit is used for judging whether a link detection response message corresponding to the link detection message is received within a preset timeout duration;
a determining unit, configured to determine that a link defined by the logical source port number and connected to the pre-association destination device is reachable if the determination result of the determining unit is yes; and when the judgment result of the judgment unit is negative, determining that the link defined by the logic source port number and connected with the pre-associated destination equipment is unreachable.
In the present application, the source device cancels the aggregation configuration of the detected link, so that the upper layer entity of the device has visibility to each physical port. Under the condition, by associating at least one logical source port number for each physical port, and sending a link detection message from the physical port to a destination device pre-associated with the service through each associated logical source port number, the source device can perform reachability detection on each physical link with the physical port as one end and the pre-associated destination device as the other end, thereby ensuring that an upper layer entity of the device can reliably know the reachability of each physical link. Moreover, to a certain extent, the more logical source port numbers associated with each physical port, the more reliable the obtained detection result of the physical link corresponding to the physical port. In fact, under this condition, each logical source port number associated with a physical port already virtualizes the physical link, which uses the physical port as one end and the pre-association destination device as the other end, into a plurality of logical links defined by the logical source port number and connected to the pre-association destination device, and at this time, the source device can ensure the transmission reliability of the sent data packet as long as it sends the data packet through the logical link whose detection result is reachable.
Drawings
FIG. 1 is a flow chart of a link status detection method according to the present application;
FIG. 2 is a first block diagram of a link state detection apparatus according to the present application;
fig. 3 is a second structural diagram of a link status detection apparatus according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The application relates to a link state detection method, in particular to a service processing system which comprises source equipment and destination equipment and can process a plurality of services. The source device may connect to the destination device pre-associated with the source device through a local physical port, and thereby determine a plurality of physical links between the source device and the pre-associated destination device. As an example, the source device may be a switch, the destination device may be a server, and there may be multiple intermediate devices between the switch and the server, such as a multiplexer switch, various network devices in an intermediate network, and an access switch, and the details are not repeated since the intermediate devices are not overlapped with the gist of the present application. For the reachability detection of the link between the source device and the destination device, the prior art still multiplexes the technical background of link aggregation. The link aggregation specifically refers to aggregating a plurality of physical links together to form a logical link, and the logical port for accessing the logical link to the source device is aggregated by the physical ports corresponding to the physical links. However, since the upper layer entity of the source device has single visibility to both the logical link and the logical port under the link aggregation condition, even if the reachability of the logical link is detected by the link probing message, it is not equivalent to performing reachability probing on all physical links in the logical link, that is, even if the logical link passes through the reachability probing, it is not equivalent to performing reachability probing on all physical links in the logical link through the reachability probing, and under the link aggregation condition, when the logical link probing is reachable, the upper layer entity will uniformly pump the data message into the logical link for transmission without considering the message sharing condition of each physical link in the logical link, which will pose a significant risk for loss of the data message.
Therefore, in order to solve the problem, the present application provides a method and an apparatus for detecting a link state, so as to ensure reliable transmission of a data packet.
In order to make the technical solutions in the embodiments of the present application better understood and make the above objects, features and advantages of the embodiments of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a link status detection method according to the present application, where the flowchart may include the following steps:
step 101: the source device sends a link detection message to a destination device pre-associated with each service through a physical port associated with the logical source port number by taking the logical source port number as a header source port number for each logical source port number pre-allocated for each service.
In the embodiment of the method, the method relates to a service processing system which comprises a source device and a destination device and can process a plurality of services. For each service processed by the system, the source device may allocate a set of logical source port numbers to the service in advance, associate the allocated logical source port numbers to physical ports allocated to the service in advance according to a predetermined algorithm, and ensure that each physical port is associated with at least one logical source port number.
In an implementation manner of this step, when the number of destination devices pre-associated with each service is n (n is greater than or equal to 2), the source device may successively traverse each logical source port number pre-allocated to each service, and sequentially take each logical source port number as a header source port number for each traversal, and send a link probing packet to the mth (1 is greater than or equal to m is less than or equal to n) pre-associated destination device of the service through a physical port associated with the logical source port number.
In another implementation manner of this step, also in the foregoing case, the source device may send, for each logical source port number in each traversed service, a link probing packet to each destination device pre-associated with the service through the physical port associated with the logical source port number, with the logical source port number as a header source port number.
Step 102: the source equipment judges whether a link detection response message corresponding to the link detection message is received within a preset timeout duration or not; if so, determining that a link defined by the logical source port number and connecting the pre-associated destination device is reachable; if not, it is determined that the link defined by the logical source port number to connect the pre-associated destination device is not reachable.
In this embodiment of the present invention, the link detection response packet corresponding to the link detection packet refers to: and the link detection response message contains a logic source port number which is the same as the logic source port number contained in the corresponding link detection message and also contains a destination equipment identifier which is the same as the destination equipment identifier contained in the corresponding link detection message.
In the embodiment of the method, for each service, after the reachable link between the source device and the pre-associated destination device is determined by the method, the source device can transmit the data message corresponding to the service through the determined reachable link, and the transmission reliability of the data message can be ensured. Specifically, the source device sends the determined logical source port number of the reachable link and the device identifier of the pre-associated destination device to which the link leads to a lower logical forwarding unit of the device, so that the logical forwarding unit encapsulates the data packet to be transmitted and transmits the data packet.
In the embodiment of the method, the source device enables an upper-layer entity of the device to have visibility to each physical port by canceling the aggregation configuration of the detected link. Under the condition, by associating at least one logical source port number for each physical port, and sending a link detection message from the physical port to a destination device pre-associated with the service through each associated logical source port number, the source device can perform reachability detection on each physical link with the physical port as one end and the pre-associated destination device as the other end, thereby ensuring that an upper layer entity of the device can reliably know the reachability of each physical link. Moreover, to a certain extent, the more logical source port numbers associated with each physical port, the more reliable the obtained detection result of the physical link corresponding to the physical port. In fact, under this condition, each logical source port number associated with a physical port already virtualizes the physical link, which uses the physical port as one end and the pre-association destination device as the other end, into a plurality of logical links defined by the logical source port number and connected to the pre-association destination device, and at this time, the source device can ensure the transmission reliability of the sent data packet as long as it sends the data packet through the logical link whose detection result is reachable.
The present application will now be described in detail by way of a specific example, which differs from the above-described method embodiment in that: the embodiment explains part of the steps by specific examples, and has strong practical operation significance. The present embodiment may include the following steps:
step 1: the source device sends a link detection message to a destination device pre-associated with each service through a physical port associated with the logical source port number by taking the logical source port number as a header source port number for each logical source port number pre-allocated for each service.
The present embodiment relates to the above service processing system including the source device and the destination device, which can process multiple services, and for each service processed by the system, the source device may allocate a set of logical source port numbers to the service in advance, and associate the allocated logical source port numbers to physical ports allocated to the service in advance according to a predetermined algorithm, and it needs to ensure that each physical port is associated with at least one logical source port number. In an implementation manner of this embodiment, the source device may, according to the port number of the physical port pre-allocated for the service, averagely associate the allocated logical source port number to each physical port by using a rounding-by-quotient method, and associate the remaining logical source port number to any one of the physical ports. The rounding-by-quotient method specifically means that, if it is assumed that the physical port number of the source device is 10 and the logical source port number allocated to the service is 92, 10 logical source port numbers may be associated with each of the physical ports, and the remaining 2 logical source port numbers may be associated with any one of the 10 physical ports.
In this embodiment, the source device may assign each logical source port number in the logical source port number group to the service by establishing a mapping relationship between the logical source port number group and the service identifier. Specifically, when the logic source port number group is stored in an array form, the mapping relationship between each logic source port number in the logic source port number group and the service identifier may be established by using the service identifier as a subscript of an array element corresponding to each logic source port number in the logic source port number group.
In this embodiment, for each service, before sending a link detection packet to a destination device pre-associated with the service, a source device may match a session entry for each link detection packet to be sent in advance, where the session entry records feature values in different feature fields in the detection packet matched thereto, and the feature values may be: the logical source port number in the header of the probe packet and the device identifier of the destination device to which the probe packet is to be sent are detected, so that the source device determines the link probe response packet corresponding to each link probe packet according to the session entry, and the specific determination process will be described in detail in step 2 below, which is not described herein again.
It should be noted that, since the service processing system according to this embodiment may need to process many services at the same time, in order to better distinguish service packets under these services, the source device may associate different device identifiers of this device with these services. The service packet may include: a link detection message and a data message; the device identifier may be an IP (Internet Protocol ) address of a loopback interface on the device, and the like. In order to distinguish data packets with different functions in the same service, the source device may also divide the local physical port into different port groups in advance, and associate different protocol monitoring ports for each port group at the corresponding destination device, thereby implementing the classified transmission of data packets with different functions and improving the function identification degree of the data packets.
Step 2: the source device judges whether a link detection response message corresponding to the link detection message is received within a preset timeout duration, and if so, executes step 303; otherwise, step 304 is performed.
In this embodiment, since the link probing response packet includes the same characteristic field as the link probing packet corresponding to the link probing response packet, for each link probing response packet received within the preset timeout period, the source device may analyze the characteristic field of the link probing response packet, match the characteristic value in the analyzed characteristic field with the session table entry matched with each link probing packet, and thereby determine whether a link probing response packet corresponding to a link probing packet is received. Different characteristic fields can be separately located in different positions in the message, and corresponding characteristic values are respectively stored. However, for the purpose of facilitating the parsing and for faster determination of the probing link according to the parsed feature values, these feature values may be combined together and written into a pre-opened feature field as a new feature value that can uniquely determine the probing link. The pre-opened characteristic field is generally located in the data field of the message, and is generally called as a key value field according to the conventional terminology in the field.
As a preferred embodiment, considering that in the method of the present application, a link between the source device and the pre-associated destination device may be uniquely determined by a combination of two characteristic values, i.e., a logical source port number and a device identifier of the pre-associated destination device, in a specific implementation, a session identifier corresponding to the session entry matched for each link probe packet may be used as the key value field, and the session identifier and the key value field are written into the link probe packet and the link probe response packet corresponding to the link probe packet, respectively. Specifically, as an illustrative example, if it is assumed that the destination devices pre-associated with the service are the destination device 1, the destination device 2, and the destination device 3, and the logical source port numbers pre-allocated for the service are the logical source port number 1 and the logical source port number 2, six logical links may be determined under the service, and these six logical links may also be uniquely determined by the session 11, the session 12, the session 21, the session 22, the session 31, and the session 32, which may be specifically referred to as table 1 below. In this case, if the same session identifier is added to the link probing message and the link probing response message corresponding to the link probing message, the source device may determine, by matching the session identifier, an reachable link between the source device and the pre-associated destination device for each link probing response message received within the preset timeout period.
Pre-association destination device identification/session identification/logical source port number Logical Source Port number 1 Logical source port number 2
Destination device 1 Session 11 Session 12
Destination device 2 Conversation 21 Conversation 22
Destination device 3 Conversation 31 Session 32
TABLE 1
And step 3: the source device determines that a link defined by the logical source port number that connects the pre-associated destination device is reachable.
And 4, step 4: the source device determines that a link defined by the logical source port number that connects the pre-associated destination device is unreachable.
In this embodiment, the source device may associate at least one logical source port number for each physical port, which improves reliability of physical link probing: for example, if it is determined through probing that only part of the available logical source port numbers associated with the physical port are available, the source device issues only the part of the available logical source port numbers to the logical forwarding unit, so that the logical forwarding unit transmits the data packet using the available logical source port numbers; on the other hand, in view of the complexity of the link connection between the source device and the destination device, favorable conditions are provided for the midway flow distribution of the data message in the situation.
As can be seen from the above embodiments, the source device cancels the aggregation configuration of the detected links, so that the upper layer entity of the device has visibility to each physical port. Under the condition, by associating at least one logical source port number for each physical port, and sending a link detection message from the physical port to a destination device pre-associated with the service through each associated logical source port number, the source device can perform reachability detection on each physical link with the physical port as one end and the pre-associated destination device as the other end, thereby ensuring that an upper layer entity of the device can reliably know the reachability of each physical link. Moreover, to a certain extent, the more logical source port numbers associated with each physical port, the more reliable the obtained detection result of the physical link corresponding to the physical port. In fact, under this condition, each logical source port number associated with a physical port already virtualizes the physical link, which uses the physical port as one end and the pre-association destination device as the other end, into a plurality of logical links defined by the logical source port number and connected to the pre-association destination device, and at this time, the source device can ensure the transmission reliability of the sent data packet as long as it sends the data packet through the logical link whose detection result is reachable.
Corresponding to the foregoing embodiment of the method for detecting a link state, the present application also provides an embodiment of a method for detecting a link state.
Referring to fig. 2, fig. 2 is a first structural diagram of a link state detection apparatus according to the present application, where the apparatus relates to a service processing system including a source device and a destination device, and the apparatus, applied to the source device, may include: assigning unit 210, associating unit 220, transmitting unit 230, judging unit 240, and determining unit 250.
The allocating unit 210 is configured to, for each service, allocate a set of logical source port numbers to the service in advance;
an associating unit 220, configured to associate the logical source port number allocated by the allocating unit 210 to a physical port pre-allocated to the service according to a predetermined algorithm, where each physical port is associated with at least one logical source port number;
a sending unit 230, configured to send, for each logical source port number pre-allocated to each service, a link probing packet to a destination device pre-associated with the service through a physical port associated with the logical source port number, with the logical source port number as a header source port number;
a determining unit 240, configured to determine whether a link detection response packet corresponding to the link detection packet is received within a preset timeout duration;
a determining unit 250, configured to determine that a link defined by the logical source port number and connected to the pre-association destination device is reachable if the determination result of the determining unit is yes; and when the judgment result of the judgment unit is negative, determining that the link defined by the logic source port number and connected with the pre-associated destination equipment is not reachable.
In a first implementation manner of this embodiment of the apparatus, the associating unit 220 may be specifically configured to: and averagely associating the allocated logical source port numbers to each physical port by adopting a rounding-by-quotient method according to the number of the physical ports pre-allocated to the service, and associating the rest logical source port numbers to any one of the physical ports.
In a second implementation manner of this apparatus embodiment, when the number of destination devices pre-associated with the service is n (n ≧ 2), the sending unit 230 may be specifically configured to: and successively traversing each logic source port number pre-distributed for each service, sequentially taking each logic source port number as a header source port number for each traversal, and sending a link detection message to the m (m is more than or equal to 1 and less than or equal to n) th pre-associated destination device of the service through a physical port associated with the logic source port number.
In a third implementation manner of this apparatus embodiment, the link detection response packet corresponding to the link detection packet may specifically include: a logical source port number which is the same as the logical source port number contained in the corresponding link detection message, and a destination device identifier which is the same as the destination device identifier contained in the corresponding link detection message.
In a fourth implementation manner of the embodiment of the apparatus, the apparatus may further include: a transmission unit 260, configured to transmit, for each service, a data packet corresponding to the service through the determined reachable link, specifically refer to fig. 3, where fig. 3 is a second structure diagram of a detection apparatus for a link state according to the present application.
As can be seen from the above apparatus embodiments, the source device cancels the aggregation configuration for the detected link, so that the upper layer entity of the device has visibility to each physical port. Under the condition, by associating at least one logical source port number for each physical port, and sending a link detection message from the physical port to a destination device pre-associated with the service through each associated logical source port number, the source device can perform reachability detection on each physical link with the physical port as one end and the pre-associated destination device as the other end, thereby ensuring that an upper layer entity of the device can reliably know the reachability of each physical link. Moreover, to a certain extent, the more logical source port numbers associated with each physical port, the more reliable the obtained detection result of the physical link corresponding to the physical port. In fact, under this condition, each logical source port number associated with a physical port already virtualizes the physical link, which uses the physical port as one end and the pre-association destination device as the other end, into a plurality of logical links defined by the logical source port number and connected to the pre-association destination device, and at this time, the source device can ensure the transmission reliability of the sent data packet as long as it sends the data packet through the logical link whose detection result is reachable.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A link state detection method relates to a service processing system comprising a source device and a destination device, and the method is applied to the source device and is characterized in that for each service, a group of logic source port numbers are allocated to the service in advance; associating the allocated logical source port numbers to physical ports pre-allocated for the traffic according to a predetermined algorithm, and associating at least one logical source port number to each physical port, the method comprising:
canceling aggregation configuration of links to be detected, and sending a link detection message to target equipment pre-associated with each service through a physical port associated with the logical source port number by taking the logical source port number as a header source port number aiming at each logical source port number pre-allocated to each service;
judging whether a link detection response message corresponding to the link detection message is received within a preset timeout duration; if so, determining that a link defined by the logical source port number and connecting the pre-associated destination device is reachable; if not, it is determined that the link defined by the logical source port number to connect the pre-associated destination device is not reachable.
2. The method of claim 1, wherein associating the assigned logical source port numbers to physical ports pre-assigned for the traffic according to a predetermined algorithm, and wherein associating at least one logical source port number with each physical port comprises:
and averagely associating the allocated logical source port numbers to each physical port by adopting a rounding-by-quotient method according to the number of the physical ports pre-allocated to the service, and associating the rest logical source port numbers to any one of the physical ports.
3. The method of claim 1, wherein when the number of destination devices pre-associated with the service is n (n ≧ 2), the sending a link probing packet to the destination device pre-associated with the service through the physical port associated with the logical source port number for each logical source port number pre-allocated for each service with the logical source port number as a header source port number comprises:
and successively traversing each logic source port number pre-distributed for each service, sequentially taking each logic source port number as a header source port number for each traversal, and sending a link detection message to the m (m is more than or equal to 1 and less than or equal to n) th pre-associated destination device of the service through a physical port associated with the logic source port number.
4. The method according to claim 1, wherein the link probing response packet corresponding to the link probing packet specifically includes:
a logical source port number which is the same as the logical source port number contained in the corresponding link detection message, and a destination device identifier which is the same as the destination device identifier contained in the corresponding link detection message.
5. The method of claim 1, further comprising, after the method: and transmitting the data message corresponding to each service through the determined reachable link aiming at each service.
6. A link state detection apparatus, the apparatus relates to a service processing system including a source device and a destination device, the apparatus is applied to the source device, and the apparatus comprises:
the distribution unit is used for distributing a group of logic source port numbers for each service in advance;
the association unit is used for associating the logic source port number distributed by the distribution unit to a physical port pre-distributed for the service according to a preset algorithm, and each physical port is associated with at least one logic source port number;
a sending unit, configured to cancel aggregation configuration of a link to be detected, and send a link detection packet to a destination device pre-associated with each service through a physical port associated with a logical source port number, with the logical source port number as a header source port number, for each logical source port number pre-allocated for each service;
the judging unit is used for judging whether a link detection response message corresponding to the link detection message is received within a preset timeout duration;
a determining unit, configured to determine that a link defined by the logical source port number and connected to the pre-association destination device is reachable if the determination result of the determining unit is yes; and when the judgment result of the judgment unit is negative, determining that the link defined by the logic source port number and connected with the pre-associated destination equipment is unreachable.
7. The apparatus according to claim 6, wherein the association unit is specifically configured to:
and averagely associating the allocated logical source port numbers to each physical port by adopting a rounding-by-quotient method according to the number of the physical ports pre-allocated to the service, and associating the rest logical source port numbers to any one of the physical ports.
8. The apparatus according to claim 6, wherein when the number of destination devices pre-associated with the service is n (n ≧ 2), the sending unit is specifically configured to:
and successively traversing each logic source port number pre-distributed for each service, sequentially taking each logic source port number as a header source port number for each traversal, and sending a link detection message to the m (m is more than or equal to 1 and less than or equal to n) th pre-associated destination device of the service through a physical port associated with the logic source port number.
9. The apparatus according to claim 6, wherein the link detection response packet corresponding to the link detection packet specifically includes:
a logical source port number which is the same as the logical source port number contained in the corresponding link detection message, and a destination device identifier which is the same as the destination device identifier contained in the corresponding link detection message.
10. The apparatus of claim 6, further comprising:
and the transmission unit is used for transmitting the data message corresponding to each service through the determined reachable link.
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 CN106911533A (en) 2017-06-30
CN106911533B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751724B (en) * 2019-10-31 2023-07-11 华为技术有限公司 Method and device for detecting link state
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

Also Published As

Publication number Publication date
CN106911533A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
KR102012817B1 (en) Bit Forwarding Inlet Routers, Bit Forwarding Routers, and Operational, Management, and Maintenance Test Methods
EP2001190B1 (en) Measuring method for network performance and system thereof
US7889748B1 (en) Mapping a port on a packet switch appliance
EP1482712B1 (en) Virtual network addresses
US8427943B2 (en) Bandwidth-aware multicast load balancing on a multi-interface host
US7983175B2 (en) System and method for detecting a network failure
EP1892929A1 (en) A method, an apparatus and a system for message transmission
US11075980B2 (en) Method for operating a node cluster system in a network and node cluster system
CN104506408A (en) Data transmission method and device based on SDN
CN105991444B (en) The method and apparatus of business processing
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
CN106911533B (en) Link state detection method and device
WO2016029029A1 (en) Diagnostic routing system and method for a link access group
CN102281263B (en) Method for establishing Internet small computer system interface (iSCSI) session and iSCSI initiator
CN105897542B (en) Tunnel establishment method and video monitoring system
US9571346B2 (en) Fault tolerant communication system, method, and device that uses tree searching
CN104618491B (en) A kind of proxy server and data forwarding method
CN105610594B (en) Service chain fault diagnosis method and device
US20210167993A1 (en) Method, device, and system for determining generic routing encapsulation gre tunnel identifier
US20160373294A1 (en) Flow management in a link aggregation group system
JP4809855B2 (en) IP multicast communication monitoring method and system
CN103823721B (en) A kind of method and apparatus of interprocess communication
CN110162437B (en) Frame type equipment internal connectivity detection method and system
JP5402304B2 (en) Diagnostic program, diagnostic device, and diagnostic method
CN112788116A (en) Message forwarding method and device

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