CN106911533A - Method and apparatus for detecting link states - Google Patents

Method and apparatus for detecting link states 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
source
link
port number
logical
associated
Prior art date
Application number
CN201710076590.XA
Other languages
Chinese (zh)
Inventor
郑磊
Original Assignee
杭州迪普科技股份有限公司
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 杭州迪普科技股份有限公司 filed Critical 杭州迪普科技股份有限公司
Priority to CN201710076590.XA priority Critical patent/CN106911533A/en
Publication of CN106911533A publication Critical patent/CN106911533A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing packet switching networks
    • H04L43/08Monitoring based on specific metrics
    • H04L43/0805Availability
    • H04L43/0811Connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing packet switching networks
    • H04L43/12Arrangements for monitoring or testing packet switching networks using dedicated network monitoring probes

Abstract

The invention provides a method and apparatus for detecting link states. In the method and apparatus provided by the invention, a source device cancels the aggregation configuration of a detected link, so that an upper layer entity of the device has visibility for each physical port. Under this condition, each physical port is associated with at least one logical source port number, a link detection message is sent to a pre-associated destination device of service from the physical port through each associated logical source port number, and the source device can perform accessibility detection on each physical link utilizing the physical port as one end and utilizing the pre-associated destination device as the other end, thereby guaranteeing that the upper layer entity of the device reliably knows the accessibility of each physical link.

Description

一种链路状态的探测方法及装置 A link state detection method and apparatus

技术领域 FIELD

[0001] 本申请涉及网络通信技术领域,尤其涉及一种链路状态的探测方法及装置。 [0001] The present application relates to network communication technology, and particularly relates to a link state detection method and apparatus.

背景技术 Background technique

[0002] 随着网络技术的快速发展,网络传输数据大幅增加。 [0002] With the rapid development of network technology, a substantial increase in network traffic. 为有效提高数据的传输带宽以及链路利用率,可通过配置链路聚合的方式,将多条物理成员链路聚合在一起,形成一条逻辑链路,从而使得这些物理成员链路可以共同承担一项或多项业务的数据传输任务。 In order to improve bandwidth utilization data and a link, the link can be configured by way of polymerization, the polymerization multiple physical link members together to form a logical link, so that these can be shared physical link a member data transmission tasks or more items of business.

[0003] 为实现数据报文的可靠传输,已配置有链路聚合的设备仍需要在传输数据报文之前,通过发送链路探测报文的方式,探测逻辑链路的可达性。 [0003] In order to achieve reliable transmission of data packets, is configured with the devices still need to link aggregation before transmitting the data packets by sending probe packets way link, logical link pinged. 而在具体实现中,由于逻辑链路对于设备的上层实体比如报文传输所使用的上层协议具有单一可见性,即该上层协议并不关心参与链路探测报文传输的物理成员链路具体有哪些,则在这种情况下,如果逻辑链路的探测结果为可达,那么该逻辑链路将被上层协议看做为可以承担数据报文的传输任务,而此时,如果为某些数据报文分配到的物理成员链路不可达、而该链路事实上未被分配到用于探测链路可达性的链路探测报文,则将造成这些数据报文的丢失。 In a specific implementation, since the upper-layer logical link protocol packets such as transmission used for a single layer entity visibility device, i.e. the upper layer protocol is not involved in the link of interest the probe packet transmission link specific physical members have What, then in this case, if the detection result of the logical link is up, then the logical link will be seen as the upper-layer protocol can be to transfer data packets, but this time, if for some data packets distributed to the members of the physical link is unreachable, and the link is in fact not assigned to link reachability for detecting a link detection packet loss data packet will cause.

发明内容 SUMMARY

[0004] 有鉴于此,本申请提供一种链路状态的探测方法及装置,以保证数据报文的可靠传输。 [0004] Accordingly, the present application provides a link state detection method and apparatus, in order to ensure reliable transmission of data packets.

[0005] 根据本申请实施例的第一方面,提供一种链路状态的探测方法,所述方法涉及一包含源设备和目的设备的业务处理系统,所述方法应用于所述源设备;针对每一业务,源设备预先为该业务分配一组逻辑源端口号;将所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号,所述方法包括: [0005] According to a first aspect of embodiments of the present application, there is provided a method of detecting a link state, the method involves a business processing system comprising a source apparatus and a destination apparatus, the method is applied to the source device; for each service, a set of pre-assigned source logical device source port number for the service; logical source port number assigned in accordance with a predetermined algorithm related to the physical port allocated for the service in advance and associated with at least one physical port of each logical source port number, the method comprising:

[0006] 针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文; [0006] For each logical port number for each service source pre-allocated to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, to the pre-association of the service object sends a link probe packets;

[0007] 判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文;如果接收到,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达;如果未接收到,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 [0007] It is determined whether within a preset timeout period upon reception of the probe packet link corresponding to the link detection response packet; if received, it is determined that the logic is defined by the source port number, destination device associated with the pre-connection link up; is not received, it is determined that the source defined by the logical port number associated with the destination device connected to the pre-link-up.

[0008] 根据本申请实施例的第二方面,提供一种链路状态的探测装置,所述装置涉及一包含源设备和目的设备的业务处理系统,所述装置应用于所述源设备,所述装置包括: [0008] According to a second aspect of embodiments of the present application, there is provided a link state detection device, the device relates to a business processing system comprising a source apparatus and a destination apparatus, said source means is applied to the device, the said apparatus comprising:

[0009] 分配单元,用于针对每一业务,预先为该业务分配一组逻辑源端口号; [0009] allocating unit configured for each service, a set of pre-assigned source port number for the service logic;

[0010] 关联单元,用于将分配单元所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号; [0010] association unit, for assigning a logical unit assigned source port number, in accordance with a predetermined algorithm related to the physical port allocated for the service in advance, and at least one logic associated with each physical port source port number;

[0011] 发送单元,用于针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文; [0011] transmitting unit, for each logical source port number for each service is pre-assigned to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, to the service transmitting the link destination associated with the pre-probe packets;

[0012] 判断单元,用于判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文; [0012] determination means for determining whether the link is received to detect the link corresponding to the probe packet response message within a preset timeout period;

[0013] 确定单元,用于在所述判断单元的判断结果为是时,确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达;在所述判断单元的判断结果为否时,确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 [0013] determining means for determining the result of the determination unit is positive, it is determined, as defined by the logical source port number, destination device associated with the pre-connection link up; result of determination in the determination unit is nO, it is determined by the defined source logical port number associated with the destination device connected to the pre-link-up.

[0014] 本申请中,源设备通过取消对所探测链路的聚合配置,使本设备上层实体对每一物理端口都具备了可见性。 [0014] In the present application, the source device configured by removing the polymerization detected link layer entity of the present apparatus are provided for each physical port visibility. 在这一条件下,通过为每一物理端口关联至少一个逻辑源端口号,并通过每一所关联的逻辑源端口号,从该物理端口向业务所预关联的目的设备发送链路探测报文,源设备便可以对每一条以物理端口为一端、预关联目的设备为另一端的物理链路进行可达性探测,从而保证了该设备上层实体对上述每一物理链路可达性的可靠知悉。 Under this condition, it is associated with each physical port through the at least one logical source port number, and by each of the logic associated with the source port number, from the physical port of the destination device transmits probe packets associated with the link to the service pre , the source device can be pinged physical link to each physical port at one end, the other pre-associated with the destination terminal equipment, thus ensuring the reliability of the device layer entity for each said physical link reachability it knows. 而且,在一定程度上,为每一物理端口关联的逻辑源端口号越多,所获得的该物理端口所对应物理链路的探测结果也就越可靠。 Also, to a certain extent, the more the number of the source port logic associated with each physical port, the physical port corresponding to the detection result obtained by the more reliable physical link. 事实上,在这一条件下,物理端口所关联的每一逻辑源端口号已经将上述以物理端口为一端、预关联目的设备为另一端的物理链路,虚拟为了若干条由该逻辑源端口号所定义的、连接预关联目的设备的逻辑链路,此时,源设备只要通过探测结果为可达的上述逻辑链路发送数据报文,便可以保证所发数据报文的传输可靠性。 In fact, under this condition, the source of each logical port number associated with the physical port to physical port has the above-described one end, pre-associated with the destination device is a physical link at the other end, a plurality of source virtual port to the logic of defined number, pre-associated logical link connection destination device, in which case, the source device as long as the detection result by the above-described transmission data packet a logical link up, we can ensure the transmission reliability of the data packets issued.

附图说明 BRIEF DESCRIPTION

[0015] 图1是本申请一种链路状态的探测方法流程图; [0015] FIG. 1 of the present application is a method of detecting a link state of a flow chart;

[0016] 图2是本申请一种链路状态的探测装置的第一种结构图; [0016] FIG. 2 is a configuration diagram of a first application of the present detection device is a link state;

[0017] 图3是本申请一种链路状态的探测装置的第二种结构图。 [0017] FIG. 3 is a second configuration diagram of a link state of the application of the present detection device.

具体实施方式 Detailed ways

[0018] 这里将详细地对示例性实施例进行说明,其示例表示在附图中。 [0018] The exemplary embodiments herein be described in detail embodiments of which are illustrated in the accompanying drawings. 下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。 When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. 以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。 The following exemplary embodiments described in the exemplary embodiments do not represent all embodiments consistent with the present application. 相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。 Instead, they are only in the book as detailed in the appended claims, some aspects of the present disclosure examples of apparatus and methods consistent phase.

[0019] 在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。 [0019] The terms used in the present application is solely for the purpose of describing particular embodiments only, not intended to limit the present application. 在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。 In the singular forms used in this application and the appended claims "an", "the" and "the" are intended to include the plural forms unless the context clearly dictates otherwise. 还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。 It should also be understood that, as used herein, the term "and / or" refers to and includes any or all possible combinations of one or more of the associated listed items.

[0020] 应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。 [0020] It should be appreciated that, although the term may be a first, second, third and the like in the present application to describe a variety of information, but this information should not be limited by these terms. 这些术语仅用来将同一类型的信息彼此区分开。 These terms are only used to distinguish one another region of the same type of information. 例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。 For example, without departing from the scope of the present application, the first information may also be referred to as second information, and, similarly, the second information may also be referred to as first information. 取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当…… 时”或“响应于确定”。 Depending on the context, as used herein, the term "if" may be construed as "...... when the" or "when ......" or "in response to the determination."

[0021] 本申请一种链路状态的探测方法,涉及一包含源设备和目的设备的、可以处理多项业务的业务处理系统。 [0021] This application is a link state detection method, comprising involve a source and destination device, the processing system can handle multiple service traffic. 其中,源设备可以通过本地的物理端口连接该源设备所预关联的目的设备,并由此确定源设备和预关联目的设备间的多条物理链路。 Wherein the source device of the connection destination device can be pre-associated with the source device through the local physical port, and thereby determining a plurality of physical links between a source device and a destination device associated pre. 作为一个示例,上述源设备可以为交换机,目的设备可以为服务器,而交换机和服务器之间还可以有多种中间设备,比如复用交换机、中间网络中的各种网络设备、以及接入交换机等,而鉴于上述中间设备与本申请主旨并无重系,故不予赘述。 As one example, a switch may be a source device described above, the destination device may be a server, but can also have a variety of intermediate devices between the switch and a server, such as multiplexing switches, a variety of network intermediate network devices, and an access switches , and in view of the intermediate apparatus is not the gist of the present weight-based application, it will not be repeated herein. 针对源设备与目的设备间链路的可达性探测,现有技术仍复用了链路聚合的技术背景。 For pinging between source and destination device link, the prior art still multiplexed link aggregation technical background. 其中,链路聚合具体是指将多条物理链路聚合在一起, 形成一条逻辑链路,而用以将逻辑链路接入源设备的逻辑端口,系由上述各物理链路分别对应的物理端口聚合而成。 Wherein the link aggregation specifically refers to multiple physical links aggregated together to form one logical link, while the logical port to a logical link access source apparatus, each of the line by the physical link corresponding to the respective physical port polymerization. 然而,由于在链路聚合条件下,源设备的上层实体对上述逻辑链路、以及逻辑端口均具有单一可见性,所以即使通过链路探测报文来探测该逻辑链路的可达性,也并不等同于对该逻辑链路内的所有物理链路都进行了可达性探测,也即,即使逻辑链路通过了上述可达性探测,也并不等同于该逻辑链路内的所有物理链路都可以通过上述可达性探测,而且,在链路聚合条件下,当上述逻辑链路探测可达时,上层实体便会将数据报文统一打入到该逻辑链路内进行发送,而并不关心逻辑链路内各物理链路的报文分担情况,这将为数据报文的丢失埋下重大隐患。 However, since the link under polymerization conditions, the higher layer entity of the source device above the logical link, and has a single logical port visibility, even to detect the logical link by link reachability probe packet, and is not the same on all the links in the physical links are logical pinged carried out, i.e., even through the above-described logical link pinged, it is not the same for all of the logical link in physical links may be transmitted via the reachability probe, and, in the downlink polymerization conditions, detecting when said logical link up, the higher layer entity will be unified into data packets into the logical link packets within each physical link, but do not care about logical link sharing case, the data packet which will be lost major hidden peril.

[0022] 故针对这一问题,本申请提供一种链路状态的探测方法及装置,以保证数据报文的可靠传输。 [0022] Therefore, to solve this problem, the present application provides a link state detection method and apparatus, in order to ensure reliable transmission of data packets.

[0023] 为了使本技术领域的人员更好地理解本申请实施例中的技术方案,并使本申请实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请实施例中技术方案作进一步详细的说明。 [0023] In order to make those skilled in the art better understand the technical solutions in the present application embodiment, and the above-described object of the present application, features and advantages of the embodiments can be more fully understood in conjunction with the accompanying drawings of embodiments of the present application technical solution will be further described in detail.

[0024] 参见图1,图1是本申请一种链路状态的探测方法流程图,该流程图可以包括以下步骤: [0024] Referring to FIG. 1, FIG. 1 of the present application is a method of detecting a link state of a flow chart which includes the following steps:

[0025] 步骤101:源设备针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文。 [0025] Step 101: the source apparatus for each logical port number for each service source pre-allocated to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, to the service transmitting the link destination associated with the pre-probe packets.

[0026] 本方法实施例中,该方法涉及一包含源设备和目的设备的、可以处理多项业务的业务处理系统。 [0026] In the present Example, the method relates to a device comprising a source and a destination device, the processing system can handle multiple service traffic. 针对该系统所处理的每一业务,源设备可以预先为该业务分配一组逻辑源端口号,并将所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口, 并需保证每一物理端口至少关联一个逻辑源端口号。 For each of the service processing system, the source device can be pre-allocated for a set of business logic source port number and the source port number assigned logical, in accordance with a predetermined algorithm related to the physical port of the pre-allocated for the service, and each physical port associated with the need to ensure at least a logical source port number.

[0027] 在本步骤的一种实现方式中,当每一业务所预关联目的设备的数量为η (η多2)时, 源设备可以逐次遍历为每一业务预先分配的每一逻辑源端口号,并针对每一次遍历,依次将每一逻辑源端口号作为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务的第m (KmSn)台预关联目的设备发送链路探测报文。 When [0027] In one implementation of the step of the present embodiment, when the number of pre-associated device object for each business η (η than 2), the source device may sequentially traverse the pre-assigned to each service of each logical port source number, and for each traversal, sequentially each logical port number as the source port number of a source packet header, the physical port associated by the source logical port number, the m-th to the service (KmSn) pre-associated with the destination station sends a link Road probe packet.

[0028] 在本步骤的另一种实现方式中,同样在上述情况下,源设备也可以针对所遍历到的每一业务下的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的每一目的设备发送链路探测报文。 [0028] In another implementation of the present step, likewise in the above case, the source device may also be a source for each logical port numbers under each traversed to business logic to the source port number of a source packet header port number, the physical port associated by the source logical port number, the destination device transmits each packet to the probe link traffic to the pre-association.

[0029] 步骤102:源设备判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文;如果接收到,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达;如果未接收到,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 [0029] Step 102: determining whether the source device within a preset timeout period receiving the probe packet link corresponding to link a probe response packets; if received, it is determined that the logic is defined by the source port number, connection pre-associated with the destination device link up; is not received, it is determined that the source defined by the logical port number associated with the destination device connected to the pre-link-up.

[0030] 本方法实施例中,上述链路探测报文对应的链路探测响应报文是指:包含与所对应链路探测报文所含逻辑源端口号相同的逻辑源端口号、且包含与所对应链路探测报文所含目的设备标识相同的目的设备标识的链路探测响应报文。 [0030] In the present Example, said link corresponding to the link packet detection probe response message means: comprising a corresponding probe packet the logical link source port number the same port number contained in the source logic, and comprising link detection and packet corresponding link object detecting device identifier identifying the device contained the same purposes of the response packet.

[0031] 本方法实施例中,针对每一业务,当通过本方法确定了源设备与预关联目的设备间的可达链路之后,源设备便可以通过所确定的可达链路传输该业务所对应的数据报文, 并可以保证该数据报文的传输可靠性。 [0031] The method of the present embodiment, for each service, when the determined up link between a source device and a destination device associated with the pre-by the present method, the source device can link up via the determined transmission of the service the corresponding data packets, and to ensure the reliability of the transmitted data packets. 具体的,源设备会将所确定的可达链路的逻辑源端口号、以及该链路所通向的预关联目的设备的设备标识发送至本设备下层的逻辑转发单元,以由逻辑转发单元对所需传输的数据报文进行封装,并对该数据报文进行传输。 Logical device identifier up to the source port number of a particular link, the source device will be determined, as well as pre-associated with the destination device of the transmission link is routed to the lower logic device according to the present forwarding unit, to forwarding by the logic unit required transmission packet data is encapsulated, and transmit the data packets.

[0032] 本方法实施例中,源设备通过取消对所探测链路的聚合配置,使本设备上层实体对每一物理端口都具备了可见性。 [0032] The method of the present embodiment, the source device configured by removing the polymerization detected link layer entity of the present apparatus are provided for each physical port visibility. 在这一条件下,通过为每一物理端口关联至少一个逻辑源端口号,并通过每一所关联的逻辑源端口号,从该物理端口向业务所预关联的目的设备发送链路探测报文,源设备便可以对每一条以物理端口为一端、预关联目的设备为另一端的物理链路进行可达性探测,从而保证了该设备上层实体对上述每一物理链路可达性的可靠知悉。 Under this condition, it is associated with each physical port through the at least one logical source port number, and by each of the logic associated with the source port number, from the physical port of the destination device transmits probe packets associated with the link to the service pre , the source device can be pinged physical link to each physical port at one end, the other pre-associated with the destination terminal equipment, thus ensuring the reliability of the device layer entity for each said physical link reachability it knows. 而且,在一定程度上,为每一物理端口关联的逻辑源端口号越多,所获得的该物理端口所对应物理链路的探测结果也就越可靠。 Also, to a certain extent, the more the number of the source port logic associated with each physical port, the physical port corresponding to the detection result obtained by the more reliable physical link. 事实上,在这一条件下,物理端口所关联的每一逻辑源端口号已经将上述以物理端口为一端、预关联目的设备为另一端的物理链路,虚拟为了若干条由该逻辑源端口号所定义的、连接预关联目的设备的逻辑链路,此时,源设备只要通过探测结果为可达的上述逻辑链路发送数据报文,便可以保证所发数据报文的传输可靠性。 In fact, under this condition, the source of each logical port number associated with the physical port to physical port has the above-described one end, pre-associated with the destination device is a physical link at the other end, a plurality of source virtual port to the logic of defined number, pre-associated logical link connection destination device, in which case, the source device as long as the detection result by the above-described transmission data packet a logical link up, we can ensure the transmission reliability of the data packets issued.

[0033] 以下将通过一具体的实施例对本申请进行详细说明,本实施例与上述方法实施例的不同之处在于:本实施例以具体示例对部分步骤进行了解释,具备较强的实际操作意义。 [0033] will be described in detail herein by a specific embodiment, the present embodiment differs from the embodiment of the above method is that: In this embodiment, specific examples of some of the steps are explained, with a strong practical significance. 本实施例可以包括以下步骤: The present embodiment may include the steps of:

[0034] 步骤1:源设备针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文。 [0034] Step 1: source device for each logical port number for each service source pre-allocated to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, to the service transmitting the link destination associated with the pre-probe packets.

[0035] 本实施例涉及上述包含源设备和目的设备的、可以处理多项业务的业务处理系统,且针对该系统所处理的每一业务,源设备可以预先为该业务分配一组逻辑源端口号,并将所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,并需保证每一物理端口至少关联一个逻辑源端口号。 [0035] The present embodiment relates to the above-described service processing system includes a source and destination devices can handle a number of business and for each service in the processing system, the source device may be pre-assign a set of logical operations for the source port logical number source port number and the assigned according to a predetermined algorithm related to the physical port allocated for the service in advance, and the need to ensure that each physical port associated with the at least one logical source port number. 在本实施例的一种实现方式中,源设备可以根据为该业务预先分配的物理端口的端口数量,将所分配的逻辑源端口号采用按商取整的方法平均关联至每一物理端口,并将所余逻辑源端口号关联至其中任一物理端口。 In one implementation of this embodiment, the source device physical port according to the number of ports allocated for the service in advance, the logical source port number assigned by the provider using averaged to each physical port associated with the whole process, and the remainder of the logic associated with a source port number to either a physical port. 其中,上述按商取整的方法具体是指,若假设该源设备的物理端口数为10,而为该业务分配的逻辑源端口号数为92,则可先为上述每一物理端口关联10个逻辑源端口号,并将余下的2个逻辑源端口号关联至上述10个物理端口中的任意一个。 Wherein the rounding method according to the particular provider means, assuming that a physical port number of the source device 10, and the number of logical source port number assigned for the service 92, 10 may be associated with each physical port to the above-described logical source port number, and the remaining two logical relevance to the source port number of any one of the 10 physical ports.

[0036] 本实施例中,源设备可通过建立逻辑源端口号组与业务标识之间映射关系的方式,将逻辑源端口号组内的每一逻辑源端口号分配给这一业务。 [0036] In this embodiment, the source device can be established by way of the mapping between a logical group and the source port number identification service, assigning each logical source port number within the logical source port number to the service group. 具体的,当上述逻辑源端口号组以一数组形式保存时,可通过将业务标识作为逻辑源端口号组内每一逻辑源端口号所对应数组元素的下标的方式,建立逻辑源端口号组内每一逻辑源端口号与业务标识的映射关系D Specifically, when the source port number of the logic stored in an array of groups, can be prepared by a service identifier of each logical port number of the source port number within a logical group of source array elements subscripts corresponding manner, the establishment of the logical group of source port number D within each mapping relationship between the logical port number and the service identifier of the source of

[0037] 本实施例中,针对每一业务,在向该业务所预关联的目的设备发送链路探测报文之前,源设备可预先为每一即将发送的链路探测报文匹配一条会话表项,该会话表项记录了其所匹配的探测报文内不同特征字段内的特征值,这些特征值可以为:探测报文报头中的逻辑源端口号、以及该探测报文即将发往的目的设备的设备标识,以便源设备根据上述会话表项确定每一链路探测报文所对应的链路探测响应报文,其具体确定过程将在以下步骤2中详细说明,在此不再赘述。 [0037] In this embodiment, for each service, before the link destination device sending the probe packets to the pre-association of business, a link to the source device may advance to be sent each probe packet matches a session table item, the session table records the characteristic values ​​of the different features of the field within which it is matched probe packets, the characteristic values ​​may be: probe packet packets logical source port number of the head, and the probe packet is about to be sent to the device identifier of the destination device to the source device determines whether a probe packet for each link corresponding to the link based on the probe response packet session entries, determining the specific process will be described in detail in the following step 2, are not repeated here .

[0038] 需要指出的是,由于本实施例所涉及的业务处理系统可能需要同时处理许多业务,则为了更好地区分这些业务下的业务报文,源设备可以为这些业务关联本设备不同的设备标识。 [0038] It should be noted that, due to the service processing system related to the embodiment according to the present embodiment may need to deal with many business, the business in order to better distinguish the packet under these services may be different for the source device associated with the present devices these services Equipment Identity. 其中,上述业务报文可以包括:链路探测报文和数据报文;上述设备标识可以为本设备上回环接口的IP (Internet Protocol,网络之间互联的协议)地址等。 Wherein the service packet may comprise: detecting a link packet and a data packet; said apparatus identification IP (Internet Protocol, the interconnection between the network protocol) address on a loopback interface device and the like can be present. 而为了区分同一业务内所承担功能不同的数据报文,源设备也可预先将本地的物理端口划分成不同的端口组,并在对应的目的设备端,为每一端口组关联不同的协议监听端口,从而实现不同功能数据报文的分类传输,提高数据报文的功能辨识度。 In order to distinguish between different functions within the data packets bear the same service, the source apparatus can be previously divided into a local physical port group different port, the destination device and the corresponding end of each port group associated with a different protocol snooping port, enabling transmission of classified data packets of different functions, improve the function of the identification of data packets.

[0039] 步骤2:源设备判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文,如果接收到,则执行步骤303;否则,执行步骤304。 [0039] Step 2: The source device determines whether the link is received in a predetermined sounding packet corresponding to the link detection response message within a timeout period, if the received, step 303 is executed; otherwise, step 304 is performed.

[0040] 本实施例中,由于链路探测响应报文包含与其所对应的链路探测报文相同的特征字段,所以针对在预设超时时长内接收到的每一链路探测响应报文,源设备可对该链路探测响应报文的特征字段进行解析,并将解析出的特征字段内的特征值,与上述为每一链路探测报文匹配的会话表项进行匹配,并由此判断是否接收到一链路探测报文所对应的链路探测响应报文。 [0040] In this embodiment, since the probe response packet contains the link and its corresponding probe packet the same link characteristics field, so for each link to detect received within a preset timeout period in the response packet, wherein the source device in response to the field in a packet to detect link parsing, and the feature value in the feature field is parsed, to match the above-described probe packet for each link entry matching session, and thereby determining whether a link detecting a link detection packet corresponding to the response message. 其中,不同的特征字段可以分立的位于报文内的不同位置,分别保存其所对应的特征值。 Wherein different characteristics field may be located at different locations within discrete packets, it is stored in its corresponding eigenvalue. 但为了便于解析,并为了更快的根据解析出的特征值确定探测链路,也可将这些特征值组合在一起,作为一个新的可唯一确定探测链路的特征值,写入一个预先开辟的特征字段。 However, in order to facilitate resolution, and faster to detect the link is determined according to the parsed eigenvalues, these features can also be combined values, as a new feature value uniquely determined link detection, writing a pre-opened the characteristics field. 其中该预先开辟的特征字段一般位于报文的数据字段,且根据本领域的习惯术语,一般称为关键值字段。 Wherein the predetermined characteristics field generally located opened packet data fields, and in accordance with customary terminology of the art, it is generally known as a key value field.

[0041] 作为一个优选的实施例,考虑到本申请方法中,源设备与预关联目的设备间的链路可由逻辑源端口号和预关联目的设备的设备标识这两个特征值的组合唯一确定,则在具体实现中,可将上述为每一链路探测报文匹配的会话表项所对应的会话标识作为上述关键值字段,分别写入链路探测报文与其对应的链路探测响应报文。 [0041] As a preferred embodiment, the present application taking into account the process, the link between the source device and destination device combination may be pre-associated with the logical device identifier associated with a source port number and destination device pre two characteristic values ​​uniquely determined , then the particular implementation, may be the above-described probe packet for each link entry matching session corresponding to the session identifier as the key field value, a probe packet written into the link corresponding to link a probe response packet, respectively, Wen. 具体的,作为一个说明性示例,若假设本业务所预关联的目的设备为目的设备1、目的设备2、以及目的设备3,为该业务所预分配的逻辑源端口号为逻辑源端口号1和逻辑源端口号2,则在该业务下,可确定六条逻辑链路,这六条逻辑链路也可分别由会话11、会话12、会话21、会话22、会话31、会话32而唯一确定,具体可参见如下表1。 Specifically, as one illustrative example, assuming that the destination device associated with the pre-operational for the purpose of the present apparatus 1, a destination apparatus 2, and a destination apparatus 3, the pre-assigned source port number for the service logic is a logic 1 source port number 2 and logical source port number, then in the service, six logical link may be determined, which may be six logical links 11 respectively by the session, the session 12, the session 21, the session 22, the session 31, the session 32 is uniquely determined, specific see table 1 below. 则在这种情况下,如果为链路探测报文和其所对应的链路探测响应报文分别添加相同的会话标识,源设备便可针对在预设超时时长内接收到的每一链路探测响应报文,通过匹配会话标识的方式确定源设备与预关联目的设备间的可达链路。 Then in this case, if the probe response packet and a link to its corresponding probe packet with the link are the same session identifier, for each source device can be received within a preset timeout period the link probe response packets, by way of determining the session identifier matching up link between a source device associated with the pre-purpose device.

[0042] [0042]

Figure CN106911533AD00081

[0043] 表I [0043] TABLE I

[0044] 步骤3:源设备确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达。 [0044] Step 3: determining the source apparatus as defined by the logical source port number, destination device associated with the pre-connection link up.

[0045] 步骤4:源设备确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 [0045] Step 4: source device determines the logic defined by the source port number, destination device associated with the pre-connection link is unreachable.

[0046] 本实施例中,源设备可为每一物理端口关联至少一个逻辑源端口号,这一方面提高了物理链路探测的可靠性:比如如果通过探测确定,这一物理端口所关联的逻辑源端口号只有部分可用,则源设备仅会将这部分可用的逻辑源端口号下发至逻辑转发单元,以使逻辑转发单元利用这些可用的逻辑源端口号传输数据报文;另一方面,鉴于源设备与目的设备间之间链路连接的复杂性,也为这种情况下数据报文的中途分流提供了有利条件。 [0046] In the present embodiment, the source device may be a physical port associated with each source at least one logical port numbers embodiment, improving the reliability of the physical link detection: For example, if the probe is determined by, associated with the physical port only a portion of logical source port number is available, the source device is only sent to the logic part of this forwarding unit will next available logical source port number, that the logic unit uses these forwarding available logical port number of the source packet data transmission; on the other hand , in view of the complexity of between between source and destination device link connection also provides favorable conditions for offloading data packets way in this case.

[0047] 由以上实施例可以看出,源设备通过取消对所探测链路的聚合配置,使本设备上层实体对每一物理端口都具备了可见性。 [0047] As can be seen from the above embodiments, the source device configured by removing the polymerization detected link layer entity of the present apparatus are provided for each physical port visibility. 在这一条件下,通过为每一物理端口关联至少一个逻辑源端口号,并通过每一所关联的逻辑源端口号,从该物理端口向业务所预关联的目的设备发送链路探测报文,源设备便可以对每一条以物理端口为一端、预关联目的设备为另一端的物理链路进行可达性探测,从而保证了该设备上层实体对上述每一物理链路可达性的可靠知悉。 Under this condition, it is associated with each physical port through the at least one logical source port number, and by each of the logic associated with the source port number, from the physical port of the destination device transmits probe packets associated with the link to the service pre , the source device can be pinged physical link to each physical port at one end, the other pre-associated with the destination terminal equipment, thus ensuring the reliability of the device layer entity for each said physical link reachability it knows. 而且,在一定程度上,为每一物理端口关联的逻辑源端口号越多,所获得的该物理端口所对应物理链路的探测结果也就越可靠。 Also, to a certain extent, the more the number of the source port logic associated with each physical port, the physical port corresponding to the detection result obtained by the more reliable physical link. 事实上,在这一条件下,物理端口所关联的每一逻辑源端口号已经将上述以物理端口为一端、预关联目的设备为另一端的物理链路,虚拟为了若干条由该逻辑源端口号所定义的、连接预关联目的设备的逻辑链路,此时, 源设备只要通过探测结果为可达的上述逻辑链路发送数据报文,便可以保证所发数据报文的传输可靠性。 In fact, under this condition, the source of each logical port number associated with the physical port to physical port has the above-described one end, pre-associated with the destination device is a physical link at the other end, a plurality of source virtual port to the logic of defined number, pre-associated logical link connection destination device, in which case, the source device as long as the detection result by the above-described transmission data packet a logical link up, we can ensure the transmission reliability of the data packets issued.

[0048] 与前述一种链路状态的探测方法的实施例相对应,本申请还提供了一种链路状态的探测方法的实施例。 [0048] and the method of detecting a link state corresponds to an embodiment, the present application also provides an embodiment of a method of detecting a link state.

[0049] 参见图2,图2是本申请一种链路状态的探测装置的第一种结构图,上述装置涉及一包含源设备和目的设备的业务处理系统,上述装置应用于上述源设备,可以包括:分配单元210、关联单元220、发送单元230、判断单元240、确定单元250。 [0049] Referring to FIG. 2, FIG. 2 of the present application is a link state of a first configuration of FIG detecting means, said means comprising a service processing system relates to the source and destination devices, said device is applied to said source apparatus, It may include: assigning unit 210, an associating unit 220, transmission unit 230, determination unit 240, determining unit 250.

[0050] 其中,分配单元210,用于针对每一业务,预先为该业务分配一组逻辑源端口号; [0050] wherein the assignment unit 210, for each service is used, a set of pre-assigned source port number for the service logic;

[0051] 关联单元220,用于将分配单元210所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号; [0051] The association unit 220 for assigning a logical unit assigned source port number 210, in accordance with a predetermined algorithm related to the physical port allocated for the service in advance, and at least one logic associated with each physical port source port number;

[0052] 发送单元230,用于针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文; [0052] The transmitting unit 230, a source port number for each logical operations for each pre-allocated to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, to the the pre-link transmission destination device associated probe packet traffic;

[0053] 判断单元240,用于判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文; [0053] determination unit 240 for determining whether the link is received to detect the link corresponding to the probe packet response message within a preset timeout period;

[0054] 确定单元250,用于在上述判断单元的判断结果为是时,确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达;在上述判断单元的判断结果为否时,确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 [0054] determination unit 250, the determination result for the determination unit is positive, it is determined, as defined by the logical source port number, destination device associated with the pre-connection link up; result of determination in the determination unit is when nO, it is determined by the defined source logical port number associated with the destination device connected to the pre-link-up.

[0055] 在本装置实施例的第一种实现方式中,上述关联单元220,可具体用于:根据为该业务预先分配的物理端口的数量,将所分配的逻辑源端口号采用按商取整的方法平均关联至每一物理端口,并将所余逻辑源端口号关联至其中任一物理端口。 [0055] In a first implementation of this embodiment of the present device, the association unit 220, can be specifically configured to: according to the number of physical ports for the service preassigned logical source port number assigned by the supplier to take employed the average whole process related to each physical port, and the remainder of the logic associated with a source port number to either a physical port.

[0056] 在本装置实施例的第二种实现方式中,当该业务所预关联的目的设备的数量为η (η多2)时,上述发送单元230,可具体用于:逐次遍历为每一业务预先分配的每一逻辑源端口号,针对每一次遍历,依次将每一逻辑源端口号作为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务的第m (ISmSn)台预关联目的设备发送链路探测报文。 [0056] In a second implementation of this embodiment of the present apparatus, when the number of destination devices associated with the service is pre-η (η than 2), the transmission unit 230 may be specifically configured to: for each successive traverse each logical service a source port number assigned in advance, for each traversal, in turn, each logical port number as the source port number of a source packet header, the physical port associated by the source logical port number, to the service of m ( ISmSn) pre-associated with the destination station sends a link probe packets.

[0057] 在本装置实施例的第三种实现方式中,上述该链路探测报文对应的链路探测响应报文,具体可包含:与所对应链路探测报文所含逻辑源端口号相同的逻辑源端口号、以及与所对应链路探测报文所含目的设备标识相同的目的设备标识。 [0057] In a third implementation of this embodiment of the present device, the probe packet to the link corresponding to link a probe response packet, specifically, comprising: a probe request with the logical link corresponding to the source port number contained in the text the same logical source port number, and a link corresponding to the destination device detection packet identification device identification contained in the same object.

[0058] 在本装置实施例的第四种实现方式中,上述装置还可以包括:传输单元260,用于针对每一业务,通过所确定的可达链路传输该业务所对应的数据报文,具体可参见图3,图3 是本申请一种链路状态的探测装置的第二种结构图。 [0058] In a fourth implementation of this embodiment of the present apparatus, the apparatus may further comprise: a transmission unit 260 for each service for the transmission data corresponding to the service packet through the determined up link Reference may be made to FIG 3, FIG. 3 is a configuration diagram of a second detection device according to a link state of the application.

[0059] 由以上装置实施例可知,源设备通过取消对所探测链路的聚合配置,使本设备上层实体对每一物理端口都具备了可见性。 [0059] Example apparent from the above apparatus embodiment, the source device configured by removing the polymerization detected link layer entity of the present apparatus are provided for each physical port visibility. 在这一条件下,通过为每一物理端口关联至少一个逻辑源端口号,并通过每一所关联的逻辑源端口号,从该物理端口向业务所预关联的目的设备发送链路探测报文,源设备便可以对每一条以物理端口为一端、预关联目的设备为另一端的物理链路进行可达性探测,从而保证了该设备上层实体对上述每一物理链路可达性的可靠知悉。 Under this condition, it is associated with each physical port through the at least one logical source port number, and by each of the logic associated with the source port number, from the physical port of the destination device transmits probe packets associated with the link to the service pre , the source device can be pinged physical link to each physical port at one end, the other pre-associated with the destination terminal equipment, thus ensuring the reliability of the device layer entity for each said physical link reachability it knows. 而且,在一定程度上,为每一物理端口关联的逻辑源端口号越多,所获得的该物理端口所对应物理链路的探测结果也就越可靠。 Also, to a certain extent, the more the number of the source port logic associated with each physical port, the physical port corresponding to the detection result obtained by the more reliable physical link. 事实上,在这一条件下,物理端口所关联的每一逻辑源端口号已经将上述以物理端口为一端、预关联目的设备为另一端的物理链路,虚拟为了若干条由该逻辑源端口号所定义的、连接预关联目的设备的逻辑链路,此时, 源设备只要通过探测结果为可达的上述逻辑链路发送数据报文,便可以保证所发数据报文的传输可靠性。 In fact, under this condition, the source of each logical port number associated with the physical port to physical port has the above-described one end, pre-associated with the destination device is a physical link at the other end, a plurality of source virtual port to the logic of defined number, pre-associated logical link connection destination device, in which case, the source device as long as the detection result by the above-described transmission data packet a logical link up, we can ensure the transmission reliability of the data packets issued.

[0060] 上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。 [0060] The means to achieve functions and effects of the process of each unit specific detailed implementation process of corresponding steps of the above method, not described herein again.

[0061] 对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。 [0061] For the apparatus of the embodiment, since a method which substantially corresponds to the embodiment, the portion of the embodiment of the method embodiments to be described where relevant. 以上所描述的装置实施例仅仅是示意性的,其中上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 Means the above-described embodiments are merely illustrative, wherein the means above-described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in a , or they may be distributed on a plurality of network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。 Part or all of the modules may be selected according to actual needs to achieve the purposes of this application program. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0062] 以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 [0062] The foregoing is only preferred embodiments of the present application only, not intended to limit the present application, within the spirit and principle of the present application, made any modifications, equivalent replacements and improvements should be included within the scope of protection of the present application.

Claims (10)

1. 一种链路状态的探测方法,所述方法涉及一包含源设备和目的设备的业务处理系统,所述方法应用于所述源设备,其特征在于,针对每一业务,预先为该业务分配一组逻辑源端口号;将所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号,所述方法包括: 针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文; 判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文;如果接收到,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路可达;如果未接收至IJ,则确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 A method of detecting a link state, the method relates to a service processing system comprising a source apparatus and a destination apparatus, the method is applied to the source device, wherein, for each service, in advance for the service assigning a set of logical source port number; source logical port number assigned in accordance with a predetermined algorithm related to the physical port allocated for the service in advance, and at least one logic associated with each physical port source port number, the method comprising: for for each logical port number for each traffic source pre-allocated to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, the pre-associated to the business object sends a link probe packet; determining whether within a preset timeout period upon receiving the link corresponding to the link packet detection probe response packets; if received, it is determined that the logic is defined by the source port number, destination device associated with the pre-connection link up; to IJ is not received, it is determined that the source defined by the logical port number associated with the destination device connected to the pre-link-up.
2. 根据权利要求1所述的方法,其特征在于,所述将所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号,包括: 根据为该业务预先分配的物理端口的数量,将所分配的逻辑源端口号采用按商取整的方法平均关联至每一物理端口,并将所余逻辑源端口号关联至其中任一物理端口。 2. The method according to claim 1, wherein the allocated logical The source port number, in accordance with a predetermined algorithm related to the physical port allocated for the service in advance and associated with at least one physical port of each logical source port number, comprising: a physical port according to the number of pre-assigned for the service, the logical source port number assigned by the provider using the average correlation method rounding to each physical port, and the remainder of the logic associated with a source port number to wherein any of the physical ports.
3. 根据权利要求1所述的方法,其特征在于,当该业务所预关联的目的设备的数量为η(η多2)时,所述针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文,包括: 逐次遍历为每一业务预先分配的每一逻辑源端口号,针对每一次遍历,依次将每一逻辑源端口号作为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务的第m (1<m<n)台预关联目的设备发送链路探测报文。 3. The method according to claim 1, wherein, when the number of destination devices associated with the service is pre-η (η than 2), each of the logic for each traffic source is pre-assigned port number, to the logical port number for the source port number of a source packet header, the physical port associated by the source logical port number, the pre-associated to the business object sends a link probe packets, comprising: for each successive traversal service each logical source port number assigned in advance, for each traversal, in turn, each logical port number as the source port number of a source packet header, the physical port associated by the source logical port number to service the first m (1 < m <n) pre-associated with the destination station sends a link probe packets.
4. 根据权利要求1所述的方法,其特征在于,所述该链路探测报文对应的链路探测响应报文,具体包含: 与所对应链路探测报文所含逻辑源端口号相同的逻辑源端口号、以及与所对应链路探测报文所含目的设备标识相同的目的设备标识。 4. The method according to claim 1, wherein said probe packet to the link corresponding to link a probe response packet, specifically comprising: detecting a link contained in the packet and the corresponding logical port number the same source logical source port number, and a link corresponding to the destination device detection packet identification device identification contained in the same object.
5. 根据权利要求1所述的方法,其特征在于,所述方法之后还包括:针对每一业务,通过所确定的可达链路传输该业务所对应的数据报文。 5. The method according to claim 1, characterized in that, after the method further comprising: for each service, the service transmits the data packets corresponding to the determined up link.
6. —种链路状态的探测装置,所述装置涉及一包含源设备和目的设备的业务处理系统,所述装置应用于所述源设备,其特征在于,所述装置包括: 分配单元,用于针对每一业务,预先为该业务分配一组逻辑源端口号; 关联单元,用于将分配单元所分配的逻辑源端口号,按照预定算法关联至为该业务预先分配的物理端口,且每一物理端口至少关联一个逻辑源端口号; 发送单元,用于针对为每一业务预先分配的每一逻辑源端口号,以该逻辑源端口号为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务所预关联的目的设备发送链路探测报文; 判断单元,用于判断是否在预设超时时长内接收到该链路探测报文对应的链路探测响应报文; 确定单元,用于在所述判断单元的判断结果为是时,确定由该逻辑源端口号所定义的、 连接预关联目的 6 - Species link status detection means, the apparatus relates to a business processing system comprising a source apparatus and a destination apparatus, said source apparatus to said apparatus, wherein said apparatus comprising: a dispensing unit, with for each service to, a set of pre-assigned for the service logic source port number; association unit, a source port number for the logical unit allocation allocated, in accordance with a predetermined algorithm related to the physical port allocated for the service in advance, and each at least one physical port associated with a logical source port number; transmitting means for, for each logical port number for each service source pre-allocated to the logical port number of the source packet header source port number, source port number through which the logic associated with the physical port, the destination device is pre-associated to the service probe packet transmission link; determining means for determining whether or not within a preset timeout period upon receiving the link corresponding to the link packet detection probe response packets ; determining unit, the judging means judging result is YES, it is determined, pre-defined by the associated connection source port number of the logical object 备的链路可达;在所述判断单元的判断结果为否时,确定由该逻辑源端口号所定义的、连接预关联目的设备的链路不可达。 Preparation link up; when the determination result of determination means is NO, it is determined by the defined source logical port number associated with the destination device connected to the pre-link-up.
7. 根据权利要求6所述的装置,其特征在于,所述关联单元,具体可用于: 根据为该业务预先分配的物理端口的数量,将所分配的逻辑源端口号采用按商取整的方法平均关联至每一物理端口,并将所余逻辑源端口号关联至其中任一物理端口。 7. The device according to claim 6, wherein said association unit, can be specifically configured to: according to the number of physical ports for the service preassigned logical source port number assigned by the provider using the rounding the method of the average correlation to each physical port, and the remainder of the logic associated with a source port number to either a physical port.
8. 根据权利要求6所述的装置,其特征在于,当该业务所预关联的目的设备的数量为η(η多2)时,所述发送单元,具体用于: 逐次遍历为每一业务预先分配的每一逻辑源端口号,针对每一次遍历,依次将每一逻辑源端口号作为报头源端口号,通过该逻辑源端口号所关联的物理端口,向该业务的第m (1<m<n)台预关联目的设备发送链路探测报文。 8. The apparatus according to claim 6, wherein, when the number of the destination device is pre-associated with the service when the [eta] ([eta] than 2), the sending unit, configured to: for each successive traversal service each logical source port number assigned in advance, for each traversal, in turn, each logical port number as the source port number of a source packet header, the physical port associated by the source logical port number to service the first m (1 < m <n) pre-associated with the destination station sends a link probe packets.
9. 根据权利要求6所述的装置,其特征在于,所述该链路探测报文对应的链路探测响应报文,具体包含: 与所对应链路探测报文所含逻辑源端口号相同的逻辑源端口号、以及与所对应链路探测报文所含目的设备标识相同的目的设备标识。 Probe corresponding to the same link as the packet source port number contained in the logic: 9. The apparatus of claim 6, wherein said probe packet to the link corresponding to link a probe response packet, containing specific logical source port number, and a link corresponding to the destination device detection packet identification device identification contained in the same object.
10. 根据权利要求6所述的装置,其特征在于,所述装置还包括: 传输单元,用于针对每一业务,通过所确定的可达链路传输该业务所对应的数据报文。 10. The apparatus according to claim 6, characterized in that said apparatus further comprises: a transmission unit configured to for each service, the service transmits the data packets corresponding to the determined up link.
CN201710076590.XA 2017-02-13 2017-02-13 Method and apparatus for detecting link states CN106911533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076590.XA CN106911533A (en) 2017-02-13 2017-02-13 Method and apparatus for detecting link states

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076590.XA CN106911533A (en) 2017-02-13 2017-02-13 Method and apparatus for detecting link states

Publications (1)

Publication Number Publication Date
CN106911533A true CN106911533A (en) 2017-06-30

Family

ID=59208152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076590.XA CN106911533A (en) 2017-02-13 2017-02-13 Method and apparatus for detecting link states

Country Status (1)

Country Link
CN (1) CN106911533A (en)

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

Similar Documents

Publication Publication Date Title
US8270306B2 (en) Fault management apparatus and method for identifying cause of fault in communication network
CN102893556B (en) A method for a source of a Diameter peer-based load capacity sharing, system and apparatus
US6799220B1 (en) Tunneling management messages over a channel architecture network
US8396954B2 (en) Routing and service performance management in an application acceleration environment
CN101809966B (en) Method and apparatus for establishing and managing diameter associations
CN104350467B (en) Cloud security of the elastic layer implementation using sdn
US8812727B1 (en) System and method for distributed load balancing with distributed direct server return
US20090245242A1 (en) Virtual Fibre Channel Over Ethernet Switch
EP1482712A1 (en) Virtual network addresses
RU2562438C2 (en) Network system and network management method
JP4053967B2 (en) Vlan server
US20030167346A1 (en) Port aggregation for network connections that are offloaded to network interface devices
JP4008432B2 (en) Apparatus and method for searching the topology of the network equipment
US7647393B2 (en) Server load balancing apparatus and method using MPLS session
JP5068055B2 (en) Data processing system, address allocation method and computer program (acquisition of a number of port addresses from the network fabric by fiber channel switch)
US20040004966A1 (en) Using virtual identifiers to route transmitted data through a network
US8108454B2 (en) Address assignment in Fibre Channel over Ethernet environments
CN102484639B (en) A method and host node for multiple NAT64 environments
US9674054B2 (en) Concept for providing information on a data packet association and for forwarding a data packet
US8214528B2 (en) Address identifier scaling in converged networks
US7496052B2 (en) Automatic VLAN ID discovery for ethernet ports
JP4587446B2 (en) Network system, as well as the switch device and the path management server and control method thereof, and computer program and computer-readable storage medium
WO2012055448A1 (en) Control mechanism for reliability and availability setting in virtual networks
US8885493B2 (en) Use of test packets by packet switches in computer networks
US20100128623A1 (en) End-to-end analysis of transactions in networks with traffic-altering devices

Legal Events

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