CN111490891B - Method and device for determining interface configuration - Google Patents

Method and device for determining interface configuration Download PDF

Info

Publication number
CN111490891B
CN111490891B CN201910082348.2A CN201910082348A CN111490891B CN 111490891 B CN111490891 B CN 111490891B CN 201910082348 A CN201910082348 A CN 201910082348A CN 111490891 B CN111490891 B CN 111490891B
Authority
CN
China
Prior art keywords
configuration information
target
identifier
interface
service instance
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
CN201910082348.2A
Other languages
Chinese (zh)
Other versions
CN111490891A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910082348.2A priority Critical patent/CN111490891B/en
Publication of CN111490891A publication Critical patent/CN111490891A/en
Application granted granted Critical
Publication of CN111490891B publication Critical patent/CN111490891B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40032Details regarding a bus interface enhancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application relates to the technical field of communication, and discloses a method and a device for determining interface configuration, which are used for providing a scheme for detecting whether EVC interface flow between edge equipment (PE) is intercommunicated. The method comprises the following steps: the first PE obtains the identification of a target service instance; determining a first target interface identifier corresponding to the identifier of the target service instance according to the corresponding relation between the identifier of each service instance and the interface identifier, and determining first configuration information corresponding to the first target interface identifier according to the configuration information corresponding to each interface identifier; sending a first message including an identification of a target service instance to a second PE; the first PE receives a second message which is sent by the second PE and comprises second configuration information; and the first PE compares the first configuration information with the second configuration information, and determines whether the first target interface and the second target interface are communicated aiming at the flow of the target service instance or not according to the comparison result. Therefore, whether the flow of the interfaces between the PEs is communicated or not is detected.

Description

Method and device for determining interface configuration
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a method and a device for determining interface configuration.
Background
In recent years, ethernet technology has advanced to metropolitan area networks, and Ethernet Virtual Connection (EVC) technology has been proposed by the ethernet forum. In the virtual ethernet, an ethernet frame can be transmitted between an edge device (PE) and the PE, and data transmission is realized through traffic intercommunication. To implement the traffic interworking between PEs of the same service instance, it is necessary that configuration information of an interface on the PEs for receiving the traffic of the service instance conforms to the traffic interworking rule, for example, interface 1 on PE1 and interface 3 on PE2 receive the traffic of the same service instance, the configuration information of interface 1 and the configuration information of interface 3 should conform to the traffic interworking rule, and then interface 1 and interface 3 can implement the traffic interworking.
In the virtual ethernet, traffic interworking rules are easy to understand, which results in that the EVC gradually becomes the mainstream access mode of a layer 2virtual private network (L2 VPN) in the metropolitan area network. In recent years, EVC is increasingly applied to overseas telecommunication operator networks, similar projects of equipment relocation, service transformation and expansion, new service development and the like.
Although the traffic interworking rule is easy to understand, the traffic interworking rule is complex, and a configuration person is easy to configure an error when configuring information for an interface, so that configuration information of the interface between PE devices for receiving traffic of the same service instance does not conform to the traffic interworking rule. Even if the configuration information of the interface between the PE devices for receiving the traffic of the same service instance does not conform to the traffic interworking rule, the existing protocol cannot detect a configuration error because the service instance is in a normal connection UP state, which leads to a problem that the EVC faces poor maintainability in the actual deployment process.
Therefore, a technical solution capable of detecting whether configuration information of an EVC interface between PEs for the same service instance conforms to a traffic interworking rule needs to be provided.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining interface configuration, which are used for providing a scheme for detecting whether the flows of interfaces used for receiving the flows of the same service instance are intercommunicated among PEs.
In a first aspect, a method for determining interface configuration is provided, where a first edge device first obtains an identifier of a target service instance, where the target service instance is a service instance in which flows to be queried are intercommunicated, and the first edge device stores a first corresponding relationship between an identifier of each service instance deployed in the first edge device and an interface identifier, and also stores a second corresponding relationship between each interface identifier in the first edge device and configuration information; of course, the first correspondence and/or the second correspondence may also be stored elsewhere than the first edge device, such as in a third party device or in a separate storage medium, etc. The first edge device may determine, according to a first correspondence between an identifier of each service instance deployed in the first edge device and an interface identifier, a first target interface identifier corresponding to the identifier of the target service instance; and determining first configuration information corresponding to the first target interface identifier according to the configuration information corresponding to the interface identifier in the second corresponding relation.
And the first edge device may generate a first message according to the identifier of the target service instance, where the first message includes the identifier of the target service instance, and the first edge device sends the generated first message to the second edge device, so that the second edge device queries the second configuration information, where the second edge device and the first edge device are located in the same virtual ethernet, and the number of the second edge devices may be one or multiple.
Further, the second edge device may also pre-store a third corresponding relationship between the identifier of each service instance deployed in the second edge device and the interface identifier, and may also store a fourth corresponding relationship between each interface identifier in the second edge device and the configuration information; of course, the third correspondence and/or the fourth correspondence may also be stored elsewhere than in the second edge device, such as in a third-party device or in a separate storage medium, etc. The second edge device receives a first message sent by the first edge device, the first message includes an identifier of a target service instance, and the second edge device can determine a second target interface identifier corresponding to the identifier of the target service instance according to a third corresponding relationship between the identifier of each service instance deployed in the second edge device and the interface identifier; and determining second configuration information corresponding to the second target interface identifier according to the configuration information corresponding to each interface identifier stored in the fourth corresponding relationship, and carrying the determined second configuration information in a second message and sending the second message to the first edge device.
The first edge device receives second configuration information sent by the second edge device, compares the first configuration information determined by the first edge device with the received second configuration information according to a prestored flow intercommunication rule, and determines whether the flows of the first target interface and the second target interface aiming at the target service instance are intercommunicated according to a comparison result.
Through the process, the first edge device compares the first configuration information of the first target interface which receives the flow of the target service instance with the second configuration information of the second target interface which receives the flow of the target service instance in the second edge device, and determines whether the first target interface and the second target interface are communicated aiming at the flow of the target service instance, so that whether the flows of the interfaces used for receiving the flow of the same service instance between two PEs are communicated can be quickly and accurately detected.
In one possible implementation, the management device may send the identifier of the target service instance to the first edge device, so that the first edge device may obtain the identifier of the target service instance. Therefore, the management equipment can designate the identification of the target service instance to finish the detection of whether the flow of the specific service instance is intercommunicated.
In a possible implementation, the first edge device may set a detection period for each service instance, and prestore a detection time corresponding to the identifier of each service instance; the first edge device may determine, according to the detection time corresponding to the identifier of each service instance stored in advance, the target detection time that is the same as the current time, and determine the identifier of the service instance corresponding to the target detection time as the identifier of the target service instance. By setting the detection time for each service instance, whether the flow of each service instance is communicated or not can be regularly detected.
In a possible implementation, the number of first target interface identifiers corresponding to the identifier of the target service instance in the first edge device may be at least two, and the number of second target interface identifiers corresponding to the identifier of the target service instance in the second edge device may also be at least two; when the first configuration information and the second configuration information are compared, the first edge device may compare the first configuration information corresponding to the first target interface identifier i with the second configuration information corresponding to the second target interface identifier j, and determine whether the traffic of the interface corresponding to the first target interface identifier i and the traffic of the interface corresponding to the second target interface identifier j are intercommunicated for the target service instance according to a comparison result; wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
By comparing the configuration information of each first target interface on the first edge device with the configuration information of each second target interface on the second edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated can be determined, so that whether the flow among the PEs is intercommunicated can be accurately and comprehensively detected.
In one possible implementation, the configuration information of the interface includes Virtual Local Area Network (VLAN) encapsulation information and flow operation information, and then the first configuration information may include VLAN encapsulation information and/or flow operation information; the second configuration information may include virtual local area network VLAN encapsulation information and/or flow operation information.
In one possible implementation, the VLAN encapsulation information includes: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the first configuration information and/or the second configuration information may include any one of non-encapsulation, encapsulation of a layer of VLAN, and if the VLAN is encapsulated, a value of each layer of VLAN may be included.
In one possible implementation, the flow information includes: default action, pop-up pop action, push-in push action, swap action, map action, etc.; the flow action information in the first configuration information and/or the second configuration information may include at least one of a default action, a pop action, a push action, a swap action, and a map action.
In a possible implementation, by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the second configuration information, it is determined whether flows of an interface corresponding to the first configuration information and an interface corresponding to the second configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated layer of VLAN, the flow action information corresponding to a first layer of VLAN in the two layers of VLANs is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of a second layer of the two layers of VLANs in the other configuration information, if not, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j are not intercommunicated aiming at a target service instance, and if the VLAN value is the same, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are intercommunicated aiming at the target service instance;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is first configuration information, the other configuration information is second configuration information; or if any one of the configuration information is the second configuration information, the other configuration information is the first configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer is the inner layer, the second layer is the outer layer; or if the first layer is an outer layer, the second layer is an inner layer.
In a possible implementation, the first message sent by the first edge device to the second edge device may be an Internet Control Message Protocol (ICMP) message, and the identifier of the target service instance included in the first message may be carried in an extension field of a header of the ICMP message.
In one possible implementation, the service instance includes: a Virtual Private LAN Service (VPLS) instance, an Ethernet Virtual Private Network (EVPN) service instance, a Virtual Leased Line (VLL) service instance, and so on. The target service instance notified by the first edge device to the second edge device may be at least one of a virtual private local area network service, VPLS, ethernet virtual private network, EVPN, and virtual leased line, VLL, service instance.
In a possible implementation, after comparing the first configuration information with the second configuration information, the first edge device may output a comparison result of the first configuration information and the second configuration information, that is, a result of whether the flows of the target service instances are intercommunicated by the interfaces corresponding to the first configuration information and the second configuration information, so as to facilitate the detection personnel to know the detection situation, and may also output the first configuration information and the second configuration information, that is, specific contents of the first configuration information and the second configuration information.
In a possible implementation, if it is determined that the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j cannot communicate with each other for the traffic of the target service instance according to the comparison result, the first edge device may further output alarm information that the traffic cannot communicate with each other, so as to facilitate the detection personnel to correct in time.
In a second aspect, a method for determining interface configuration is provided, in which a management device first obtains an identifier of a target service instance, where the target service instance is a service instance for inquiring whether traffic is intercommunicated. The management device may further generate a first message according to the identifier of the target service instance, where the first message includes the identifier of the target service instance, and the management device sends the generated first message to the first edge device and the second edge device, respectively, so that the first edge device and the second edge device query respective configuration information, and the first edge device and the second edge device are located in the same virtual ethernet.
Further, the first edge device stores a first corresponding relationship between an identifier of each service instance deployed in the first edge device and an interface identifier, and also stores a second corresponding relationship between each interface identifier in the first edge device and configuration information; of course, the first correspondence and/or the second correspondence may also be stored elsewhere than the first edge device, such as in a third party device or in a separate storage medium, etc. The first edge device receives a first message sent by the management device, wherein the first message comprises an identifier of a target service instance, and the first edge device can determine a first target interface identifier corresponding to the identifier of the target service instance according to a first corresponding relationship between the identifier of each service instance deployed in the first edge device and the interface identifier; and determining first configuration information corresponding to the first target interface identifier according to configuration information corresponding to the interface identifier in the second corresponding relationship, and carrying the determined second configuration information in a third message and sending the third message to the management device.
Further, the second edge device may also pre-store a third corresponding relationship between the identifier of each service instance deployed in the second edge device and the interface identifier, and may also store a fourth corresponding relationship between each interface identifier in the second edge device and the configuration information; of course, the third correspondence and/or the fourth correspondence may also be stored elsewhere than in the second edge device, such as in a third-party device or in a separate storage medium, etc. The second edge device receives a first message sent by the management device, where the first message includes an identifier of a target service instance, and the second edge device may determine, according to a third correspondence between the identifier of each service instance deployed in the second edge device and an interface identifier, a second target interface identifier corresponding to the identifier of the target service instance; and determining second configuration information corresponding to the second target interface identifier according to the configuration information corresponding to each interface identifier stored in the fourth corresponding relationship, and carrying the determined second configuration information in a second message and sending the second message to the management device.
The management equipment receives a third message sent by first edge equipment, the third message comprises first configuration information, and receives a second message sent by second edge equipment, the second message comprises second configuration information, the management equipment compares the received first configuration information with the received second configuration information according to a prestored flow intercommunication rule, and determines whether the flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result.
Through the process, the management device compares the first configuration information of the first target interface for receiving the flow of the target service instance in the first edge device with the second configuration information of the second target interface for receiving the flow of the target service instance in the second edge device, and determines whether the first target interface and the second target interface are communicated aiming at the flow of the target service instance, so that whether the flows of the interfaces for receiving the flow of the same service instance between the two PEs are communicated can be quickly and accurately detected.
In one possible implementation, the detection personnel may operate on the management device to determine the identifier of the target service instance, so that the management device may receive the identifier of the target service instance determined by the user. Thus, the detection of whether the flow of a specific service instance is intercommunicated can be completed through the identification used for specifying the target service instance.
In a possible implementation, the management device may set a detection period for each service instance, and prestore a detection time corresponding to an identifier of each service instance; the management device may determine, according to the detection time corresponding to the identifier of each service instance stored in advance, the target detection time that is the same as the current time, and determine the identifier of the service instance corresponding to the target detection time as the identifier of the target service instance. By setting the detection time for each service instance, whether the flow of each service instance is communicated or not can be regularly detected.
In a possible implementation, the number of first target interface identifiers corresponding to the identifier of the target service instance in the first edge device may be at least two, and the number of second target interface identifiers corresponding to the identifier of the target service instance in the second edge device may also be at least two; when the management device compares the first configuration information with the second configuration information, the management device may compare the first configuration information corresponding to the first target interface identifier i with the second configuration information corresponding to the second target interface identifier j, and determine whether the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are intercommunicated with each other for the target service instance according to a comparison result; wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
By comparing the configuration information of each first target interface on the first edge device with the configuration information of each second target interface on the second edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated can be determined, so that whether the flow among the PEs is intercommunicated can be accurately and comprehensively detected.
In one possible implementation, the configuration information of the interface includes Virtual Local Area Network (VLAN) encapsulation information and flow operation information, and then the first configuration information may include VLAN encapsulation information and/or flow operation information; the second configuration information may include virtual local area network VLAN encapsulation information and/or flow operation information.
In one possible implementation, the VLAN encapsulation information includes: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the first configuration information and/or the second configuration information may include any one of non-encapsulation, encapsulation of a layer of VLAN, and if the VLAN is encapsulated, a value of each layer of VLAN may be included.
In one possible implementation, the flow information includes: default action, pop-up pop action, push-in push action, swap action, map action, etc.; the flow action information in the first configuration information and/or the second configuration information may include at least one of a default action, a pop action, a push action, a swap action, and a map action.
In a possible implementation, by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the second configuration information, it is determined whether flows of an interface corresponding to the first configuration information and an interface corresponding to the second configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated layer of VLAN, the flow action information corresponding to a first layer of VLAN in the two layers of VLANs is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of a second layer of the two layers of VLANs in the other configuration information, if not, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j are not intercommunicated aiming at a target service instance, and if the VLAN value is the same, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are intercommunicated aiming at the target service instance;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is first configuration information, the other configuration information is second configuration information; or if any one of the configuration information is the second configuration information, the other configuration information is the first configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer is the inner layer, the second layer is the outer layer; or if the first layer is an outer layer, the second layer is an inner layer.
In a possible implementation, the first message sent by the management device to the first edge device and the second edge device may be an Internet Control Message Protocol (ICMP) message, and the identifier of the target service instance included in the first message may be carried in an extension field of a header of the ICMP message.
In one possible implementation, the service instance includes: a Virtual Private LAN Service (VPLS) instance, an Ethernet Virtual Private Network (EVPN) service instance, a Virtual Leased Line (VLL) service instance, and so on. The target service instance notified by the management device to the first edge device and the second edge device may be at least one of a virtual private local area network service, VPLS, ethernet virtual private network, EVPN, and virtual leased line, VLL, service instance.
In a possible implementation, after comparing the first configuration information with the second configuration information, the management device may output a comparison result of the first configuration information and the second configuration information, that is, a result of whether the interfaces corresponding to the first configuration information and the second configuration information are intercommunicated with respect to the traffic of the target service instance, so as to facilitate detection personnel to know the detection condition, and may also output the first configuration information and the second configuration information, that is, to output specific contents of the first configuration information and the second configuration information.
In a possible implementation, if the management device determines, according to the comparison result, that the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j cannot communicate with each other for the traffic of the target service instance, it may further output alarm information that the traffic cannot communicate with each other, so as to facilitate the detection personnel to correct in time.
In a possible implementation, the management device may further send a first message to a third edge device, so that the third edge device queries for third configuration information, where the third edge device, the first edge device, and the second edge device are located in the same virtual ethernet.
Further, a fifth corresponding relationship between the identifier of each service instance deployed in the third edge device and the interface identifier is stored in the third edge device, and a sixth corresponding relationship between each interface identifier in the third edge device and the configuration information is also stored; of course, the fifth correspondence and/or the sixth correspondence may also be stored elsewhere than in the third edge device, such as in a third-party device or in a separate storage medium, etc. The third edge device receives a first message sent by the management device, where the first message includes an identifier of a target service instance, and the third edge device may determine, according to a fifth correspondence between the identifier of each service instance deployed in the third edge device and the interface identifier, a third target interface identifier corresponding to the identifier of the target service instance; and determining third configuration information corresponding to the third target interface identifier according to the configuration information corresponding to the interface identifier in the sixth corresponding relationship, and carrying the determined second configuration information in a fourth message and sending the fourth message to the management device.
The management device receives a fourth message sent by a third edge device, wherein the fourth message comprises third configuration information, and the management device also receives first configuration information sent by the first edge device; the management device may further compare the received first configuration information with the received third configuration information according to a pre-stored traffic interworking rule, and determine whether the traffic of the first target interface and the traffic of the third target interface for the target service instance are interworking according to a comparison result.
Through the process, the management device compares the first configuration information of the first target interface in the first edge device, which receives the flow of the target service instance, with the third configuration information of the third target interface in the third edge device, which receives the flow of the target service instance, to determine whether the first target interface and the third target interface are intercommunicated with respect to the flow of the target service instance, so that whether the flows of the interfaces between the two PEs, which are used for receiving the flow of the same service instance, are intercommunicated can be quickly and accurately detected.
The management device receives a fourth message sent by a third edge device, the fourth message includes third configuration information, the management device also receives second configuration information sent by a second edge device, and the management device can also compare the received second configuration information with the received third configuration information according to a pre-stored traffic intercommunication rule, and determine whether the traffic of the second target interface and the traffic of the third target interface for the target service instance are intercommunicated according to a comparison result.
Through the process, the management device compares the second configuration information of the second target interface in the second edge device, which receives the flow of the target service instance, with the third configuration information of the third target interface in the third edge device, which receives the flow of the target service instance, to determine whether the second target interface and the third target interface are intercommunicated with each other with respect to the flow of the target service instance, so that whether the flows of the interfaces between the two PEs, which are used for receiving the flow of the same service instance, are intercommunicated can be quickly and accurately detected.
In a possible implementation, the number of first target interface identifiers corresponding to the identifier of the target service instance in the first edge device may be at least two, and the number of third target interface identifiers corresponding to the identifier of the target service instance in the third edge device may also be at least two; when the first edge device compares the first configuration information with the third configuration information, the first configuration information corresponding to the first target interface identifier i may be compared with the third configuration information corresponding to the third target interface identifier k, and whether the traffic of the interface corresponding to the first target interface identifier i and the traffic of the interface corresponding to the third target interface identifier k are intercommunicated with each other for the target service instance is determined according to the comparison result; wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; k is taken as any integer from 1 to K, and K is the number of the third target interface identifiers.
By comparing the configuration information of each first target interface on the first edge device with the configuration information of each third target interface on the third edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated can be determined, so that whether the traffic among the PEs is intercommunicated can be accurately and comprehensively detected.
In a possible implementation, the number of the second target interface identifiers corresponding to the identifier of the target service instance in the second edge device may be at least two, and the number of the third target interface identifiers corresponding to the identifier of the target service instance in the third edge device may also be at least two; when the second edge device compares the second configuration information with the third configuration information, the second edge device may compare the second configuration information corresponding to the second target interface identifier j with the third configuration information corresponding to the third target interface identifier k, and determine whether the traffic of the interface corresponding to the second target interface identifier j and the traffic of the interface corresponding to the third target interface identifier k are intercommunicated with each other for the target service instance according to the comparison result; j is taken as any integer from 1 to N, and N is the number of second target interface identifiers; k is taken as any integer from 1 to K, and K is the number of the third target interface identifiers.
By comparing the configuration information of each second target interface on the second edge device with the configuration information of each third target interface on the third edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated can be determined, so that whether the traffic among the PEs is intercommunicated can be accurately and comprehensively detected.
In one possible implementation, the third configuration information includes at least one of:
VLAN encapsulation information and flow information.
The configuration information of the interface includes Virtual Local Area Network (VLAN) encapsulation information and flow operation information, and the third configuration information may include VLAN encapsulation information and/or flow operation information.
In one possible implementation, the VLAN encapsulation information includes: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the third configuration information may include any one of no encapsulation, one layer of VLAN encapsulation, and two layers of VLAN encapsulation, and if VLAN is encapsulated, a value of each layer of VLAN may be included.
In one possible implementation, the flow information includes: default action, pop-up pop action, push-in push action, swap action, map action, etc.; the flow action information in the third configuration information may include at least one of a default action, a pop-up pop action, a push-push action, a swap action, and a map action.
In a possible implementation, by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the third configuration information, it is determined whether flows of an interface corresponding to the first configuration information and an interface corresponding to the third configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated layer of VLAN, the flow action information corresponding to the first layer of VLAN in the two layers of VLAN is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of the third layer of the two layers of VLAN in the other configuration information, if not, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated, and if the VLAN value is the same, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are intercommunicated;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is the first configuration information, the other configuration information is the third configuration information; or if any one of the configuration information is the third configuration information, the other configuration information is the first configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer is the inner layer, the third layer is the outer layer; or if the first layer is an outer layer, the third layer is an inner layer.
In a possible implementation, by comparing the encapsulation information and the flow operation information in the second configuration information with the encapsulation information and the flow operation information in the third configuration information, it is determined whether flows of an interface corresponding to the second configuration information and an interface corresponding to the third configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated two-layer VLAN, and the flow action information corresponding to a second layer of VLAN in the two-layer VLAN is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of a third layer of the two-layer VLAN in the other configuration information, if not, determining that the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated, and if the VLAN value is the same, determining that the flow of an interface corresponding to the second target interface identifier j and the flow of an interface corresponding to the third target interface identifier k aiming at the target service instance are intercommunicated;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is second configuration information, the other configuration information is third configuration information; or if any one of the configuration information is the third configuration information, the other configuration information is the second configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the second layer is the inner layer, the third layer is the outer layer; or if the second layer is an outer layer, the third layer is an inner layer.
In a possible implementation, the first messages respectively sent by the management device to the third edge device may be Internet Control Message Protocol (ICMP) messages, and the identifier of the target service instance included in the first message may be carried in an extension field of a header of the ICMP message.
In one possible implementation, the service instance includes: a Virtual Private LAN Service (VPLS) instance, an Ethernet Virtual Private Network (EVPN) service instance, a Virtual Leased Line (VLL) service instance, and so on. The target service instance notified to the third edge device by the management device may be at least one of a virtual private local area network service, VPLS, ethernet virtual private network, EVPN, and virtual leased line, VLL, service instance.
In a possible implementation, after comparing the first configuration information with the second configuration information, the first configuration information with the third configuration information, and the second configuration information with the third configuration information, the first edge device may output a comparison result, that is, output a result of whether interfaces corresponding to the second configuration information and the third configuration information are intercommunicated with respect to the traffic of the target service instance, so as to facilitate a detection person to know the detection condition, and may also output the first configuration information, the second configuration information, and the third configuration information, that is, output specific contents of the first configuration information, the second configuration information, and the third configuration information.
In a possible implementation, if the first edge device determines, according to the comparison result, an interface corresponding to the first target interface identifier i and an interface corresponding to the third target interface identifier k, and/or an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier i, and/or an interface corresponding to the second target interface identifier j and an interface corresponding to the third target interface identifier k, the flow of the target service instance cannot be intercommunicated, so that a detection person can correct the flow in time, and alarm information that the flow cannot be intercommunicated can be output.
In a third aspect, an apparatus for determining an interface configuration is provided, the apparatus having functional modules to implement the method in any one of the possible implementations of the above aspects and aspects. The functional modules can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible implementation, the apparatus may be a chip or an integrated circuit.
In one possible implementation, the apparatus comprises a communication interface and a processor configured to execute a set of programs, and when the programs are executed, the apparatus may perform the method of any one of the possible implementations of the first aspect, the second aspect and the first aspect, and the method of any one of the possible implementations of the second aspect, by the processor.
In a fourth aspect, an apparatus for determining an interface configuration is provided, the apparatus comprising: the device comprises a processing module, a sending module and a receiving module. The processing module may be implemented by the processor in the third aspect and any possible implementation, and the sending module and the receiving module may be implemented by the communication interface in the third aspect and any possible implementation. The processing module may perform the method of any one of the above-described first aspect, second aspect and any one of the possible implementations of the first aspect, and the method of any one of the possible implementations of the second aspect, based on the function of the sending module and the receiving module to send and receive messages.
In a fifth aspect, a system for determining an interface configuration is provided, the system comprising: the apparatus may further include a first edge device to perform the method in any possible implementation of the first aspect and the first aspect, and a second edge device to perform data interaction with the first edge device.
In a sixth aspect, there is provided a system for determining an interface configuration, the system comprising: a management device that performs the method in any possible implementation of the second aspect and the second aspect, and a first edge device and a third edge device that perform data interaction with the management device.
In one possible implementation, the system further includes at least one third edge device in data interaction with the management device.
In a seventh aspect, a computer-readable storage medium is provided, having computer-readable instructions stored therein, which, when read and executed by a computer, cause the computer to perform the method described in the above aspects and any possible implementation of the aspects.
In an eighth aspect, there is provided a computer program product which, when read and executed by a computer, causes the computer to perform the method described in the aspects and any possible implementation of the aspects.
In a ninth aspect, a chip is provided, the chip being coupled with a memory for reading and executing a software program stored in the memory to implement the method described in the above aspects and any possible implementation of the aspects.
Drawings
Fig. 1 is a schematic diagram of a network topology structure of a metro ethernet network provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a system for determining an interface configuration provided in an embodiment of the present application;
fig. 3 is a schematic process diagram of interface configuration detection provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a process for determining an interface configuration provided in an embodiment of the present application;
fig. 5 is a schematic diagram of an ICMP message structure provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a system for determining interface configuration provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a process for determining an interface configuration provided in an embodiment of the present application;
fig. 8 is a schematic diagram of an apparatus for determining an interface configuration provided in an embodiment of the present application;
fig. 9 is a schematic diagram of an apparatus for determining an interface configuration provided in an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The service scenario described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not form a limitation on the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that with the occurrence of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
In addition, in the embodiments of the present application, the word "exemplary" is used to mean serving as an example, instance, or illustration. Any embodiment or implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or implementations. Rather, the term using examples is intended to present concepts in a concrete fashion.
In order to facilitate understanding of the embodiments of the present application, some terms of the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1) The virtual ethernet is a virtual network that operates on the ethernet principle in the real internet and is implemented on the data link layer by a software method, and all applications can be transparently run in the virtual network.
2) And the PE refers to an edge device on a backbone network (backbone network), is adjacent to the CE, and is mainly adapted to access a complex VPN service. It completes the mapping and forwarding of the message from the private network to the public network tunnel and from the public network tunnel to the private network. The PE includes an aggregate provider edge (UPE) of the user.
3) UPE, a device directly connected to a Communication Edge (CE) device is called a lower layer PE, abbreviated as UPE.
4) A Communication Edge (CE) device, may be understood as a customer edge device directly adjacent to a service provider.
5) Virtual Switching Instance (VSI), through which the actual access link of the VPLS can be mapped onto each Virtual link.
6) The access link AC refers to the connection between the CE and the PE, which may be an actual physical connection or a virtual interface, and the user message of the AC generally requires to be forwarded to the remote Site intact, including two or three layer protocol messages of the user.
7) Network cutover, also called network migration, refers to physical or logical change of an operating network, and is the most critical step in network modification. Generally, the service operation of the network requires 24 hours without interruption, and the cutover generally operates on the lines and equipment in use, so the network cutover directly affects the services carried by the lines and equipment, and the cutover can cause interruption of service application in case of carelessness.
8) The PE-AGG and the PE convergence Equipment are used for converging the UPE service and transparently transmitting the service to Network Protection Equipment (NPE).
For the convenience of understanding the embodiments of the present application, an application scenario of the present application will be described below. As shown in fig. 1, a network topology of a metro ethernet network is shown, where PE1 simulates the role of AGG and may communicate with an external network site (site1), PE2, PE3, and PE4 simulate the role of metro lower edge node UPE, PE2 is connected to CE5 and CE2, PE3 is connected to CE3, PE4 is connected to CE4, and site2 to site5 may be understood as user sites; in fig. 1, PE1 may interwork with PE2 and PE3 traffic, respectively, but traffic between PE2 and PE3 cannot interwork, and in an actual physical network, service instances such as VPLS, VLL, EVPN, etc. may be deployed at each edge node.
In the actual service cutover, because the EVC interface forwarding is implemented, after the service deployment is completed, it is necessary to detect whether the interface configuration information of the AGG and the UPE for the service instance conforms to the traffic interworking rule. When detecting whether the interface configuration information meets the flow intercommunication rule, whether VLAN encapsulation setting is reasonable or not and whether flow rewrite action configuration is reasonable or not are mainly detected. In order to avoid the influence on the service opening, as shown in fig. 2, the present application provides a system capable of determining whether the EVC interface configuration conforms to the traffic interworking rule relatively quickly and accurately. The system includes a first edge device 21 and a second edge device 22. The first edge device 21 and the second edge device 22 may be any two edge devices located in the same virtual ethernet, and the first edge device may send an identifier of a service instance to the second edge device, so that the second edge device determines interface configuration information of the service instance and sends the interface configuration information to the first edge device.
As shown in fig. 3, taking the first edge device 21 as a home device and the second edge device 22 as a remote device as an example, the process of interface configuration detection is briefly described, and after receiving the detection instruction, the home device may query its own configuration information and collect the configuration information of the remote device. The detection instruction received by the local device may be sent to the local device by the management device, and the detection instruction sent to the local device by the management device generally includes an identifier of a target service instance with which whether the flows are intercommunicated or not is detected, and may also include an identifier of the remote device. The local terminal equipment can also compare the detection time corresponding to the pre-stored identifier of each service instance with the current time, and trigger the detection instruction by the local terminal equipment. The local terminal equipment stores a flow intercommunication rule base, and can compare and detect the configuration information of the local terminal equipment and the configuration information of the remote terminal equipment according to the flow intercommunication rule base to determine whether the flows are intercommunicated. If the flows are not intercommunicated, an alarm prompt may be performed, for example, the interface identifier and the configuration information of which the flows are not intercommunicated may be displayed on a display interface of the home terminal device or a management interface of the management device. After the comparison detection is performed, the home device may also output the comparison result and the specific content of the configuration information for comparison through the management device or other devices.
The local terminal equipment determines whether the flow intercommunicates with the interface of a certain service instance between the local terminal equipment and the remote terminal equipment by acquiring the interface configuration information of the remote terminal equipment, so that whether the flow intercommunicates can be detected quickly and accurately.
A method and a process for determining interface configuration according to the present application are described below with specific embodiments, where the specific embodiments are applied in a service scenario where one edge device determines whether traffic of the edge device and traffic of another edge device are intercommunicated, for example, the method and the process may be applied in network architectures shown in fig. 1, fig. 2, and fig. 3, where a first edge device in the process is specifically the first edge device 21 shown in fig. 2, and a second edge device in the process is specifically the second edge device 22 shown in fig. 2. Specifically, see steps 401-408 shown in fig. 4:
step 401: the first edge device obtains the identification of the target service instance whether the flow to be inquired is intercommunicated.
In the application, a plurality of service instances may be deployed on a first edge device, where a service instance that determines whether traffic to be queried is intercommunicated may be referred to as a target service instance, and the first edge device needs to know an identifier of the target service instance in order to determine whether traffic of the target service instance is intercommunicated, so that the first edge device may obtain the identifier of the target service instance that determines whether traffic to be queried is intercommunicated.
For example, a user may log in a management system of a first edge device, input or select an identifier of a target service instance on a management interface of the management system, and send the identifier of the target service instance to the first edge device through the management device, so that the first edge device takes the received identifier of the service instance sent by the management device as an identifier of a target service instance for obtaining whether traffic to be queried is intercommunicated.
For another example, the first edge device may also periodically check whether the traffic of the service instances is intercommunicated, for example, the first edge device may configure a detection period for each service instance, and then the first edge device may pre-store a detection time corresponding to an identifier of each service instance, compare the current time with the detection time corresponding to each service instance, determine a target detection time that is the same as the current time, and determine the service instance corresponding to the target detection time as the target service instance, that is, determine the identifier of the service instance corresponding to the target detection time as the identifier of the target service instance. The first edge device may also pre-store a detection time range corresponding to the identifier of each service instance, compare the current time with the detection time range corresponding to each service instance, determine a target detection time range in which the current time falls, and determine the service instance corresponding to the target detection time range as the target service instance.
In virtual ethernet, a VPLS instance, an ethernet virtual private network EVPN service instance, a virtual leased line VLL service instance, etc. may be deployed on an edge device. The target service instance corresponding to the identifier of the target service instance acquired by the first edge device may be a VPLS instance, an EVPN service instance, or a VLL service instance.
Step 402: the first edge device determines a first target interface identifier corresponding to the identifier of the target service instance according to the correspondence between the identifier of each service instance in the first edge device and the interface identifier, which is saved by the first edge device or the third-party device, and determines first configuration information corresponding to the first target interface identifier according to configuration information corresponding to each interface identifier in the first edge device, which is saved by the first edge device or the third-party device.
In one implementation, a first corresponding relationship between an identifier of each service instance deployed in the first edge device and an interface identifier, that is, a corresponding relationship between which interface of the first edge device receives traffic of which service instance, is pre-stored in the first edge device or in a third-party device, and the first edge device may determine, according to the obtained identifier of the target service instance and the first corresponding relationship between the identifier of each service instance deployed in the first edge device and the interface identifier, the interface identifier corresponding to the identifier of the target service instance, where the interface identifier corresponding to the target service instance stored in the first edge is referred to as a first target interface identifier.
The first edge device or the third party device may further store a second corresponding relationship between the interface identifier in the first edge device and the configuration information, that is, store the configuration information of each interface. After determining the first target interface identifier, the first edge device may determine the configuration information corresponding to the first target interface identifier according to a second corresponding relationship between the interface identifier in the first edge device and the configuration information, where the configuration information corresponding to the first target interface identifier is determined as the first configuration information, and the interface identified by the first target interface identifier is the first target interface.
Step 403: the first edge device sends a first message to a second edge device, the first message includes an identifier of the target service instance, and the first edge device and the second edge device are different devices located in the same virtual ethernet.
After obtaining the identifier of the target service instance, the first edge device may generate a first message including the identifier of the target service instance, and send the generated first message to a second edge device located in the same virtual ethernet as the first edge device. When the first edge device sends the first message to the second edge device, the first edge device may first obtain an identifier, such as an IP address, of the second edge device, and send the first message to the second edge device according to the identifier of the second edge device.
The target service instance may be one or multiple, and if multiple target service instances exist, the target service instances may be sent in multiple first messages.
In general, the second edge device is also deployed with a target service instance, and when determining the second edge device, the first edge device may receive, by the management device, an identifier of the second edge device sent by the management device, where the identifier of the second edge device sent by the management device to the first edge device may be determined on the management device by a user. When the first edge device determines the second edge device, the first edge device may also store, for each service instance, an identifier of the edge device where the service instance is deployed, that is, a correspondence between the identifier of the service instance and the identifier of the edge device. After obtaining the identifier of the target service instance, the first edge device may determine, according to a correspondence between the identifier of the pre-stored service instance and the identifier of the edge device, the identifier of the edge device corresponding to the identifier of the target service instance, and determine the identifier of the edge device corresponding to the identifier of the target service instance as the identifier of the second edge device. The number of the second edge devices may be one or multiple, and if there are multiple second edge devices, the first edge device may send the first message to each of the second edge devices.
The first message sent by the first edge device to the second edge device may be an ICMP request message, and the identifier of the target service instance included in the first message may be carried in an extension field of a header of the ICMP request message.
Step 404: the second edge device searches configuration information of an interface that receives traffic of the target service instance according to the identifier of the target service instance in the first message, where a third correspondence between the identifier of each service instance deployed in the second edge device and the interface identifier may be pre-stored in the second edge device or in a third-party device, that is, a correspondence between which interface in the second edge device receives traffic of which service instance, and the second edge device may determine the interface identifier corresponding to the identifier of the target service instance according to the identifier of the target service instance in the first message sent by the first edge device and the third correspondence between the identifier of each service instance deployed in the second edge device and the interface identifier, where the interface identifier corresponding to the target service instance stored in the second edge is referred to as a second target interface identifier.
Further, the second edge device or the third party device may further store a fourth corresponding relationship between the interface identification information and the configuration information in the second edge device, that is, store the configuration information of each interface in the second edge device. After determining the second target interface identifier, the second edge device may determine the configuration information corresponding to the second target interface identifier according to a fourth corresponding relationship between the interface identifier in the second edge device and the configuration information, where the configuration information corresponding to the second target interface identifier is determined as the second configuration information, the interface identified by the second target interface identifier is the second target interface, and the second target interface identifier may also be understood as the identifier of the second target interface.
Step 405: after determining second configuration information corresponding to each second target interface identifier of the second edge device, the second edge device may generate a second message including the second configuration information, and send the second message to the first edge device.
The second edge device may determine that there is one or more second target interface identifiers, if there are multiple second target interface identifiers, the second configuration information is multiple, when the second edge device sends the second message to the first edge device, the second edge device may split the second message into multiple pieces of second messages, each piece of second message includes configuration information of one second target interface identifier, or may carry second configuration information of multiple second target interface identifiers in one piece of second message.
Step 406: the first edge device receives a second message sent by the second edge device, where the second message includes second configuration information, and the second message may be understood as an ICMP response message, and there may be a plurality of second destination interfaces in the second edge device, where the second destination interfaces are used to receive traffic of a destination service instance, and there are a plurality of second configuration information sent by the second edge device to the first edge device.
Step 407: the first edge device compares the first configuration information determined in step 402 with the second configuration information carried in the second message received in step 406, and determines whether the flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result.
For example, a traffic interworking rule may be pre-stored in the first edge device, and after finding first configuration information of a first target interface of the first edge device for a target service instance, and receiving second configuration information of a second target interface of the second edge device for the target service instance, which is found by the second edge device, the first edge device may compare the first configuration information with the second configuration information according to the pre-stored traffic interworking rule, and determine whether a first target interface corresponding to the first configuration information and a second target interface corresponding to the second configuration information are in traffic interworking according to a comparison result of the first configuration information and the second configuration information.
In the application embodiment, the first edge device compares the first configuration information of the first target interface, which receives the traffic of the target service instance, with the second configuration information of the second target interface, which receives the traffic of the target service instance, in the second edge device, to determine whether the first target interface and the second target interface are intercommunicated with respect to the traffic of the target service instance, so that the purpose of quickly and accurately detecting whether the traffic of the interfaces, which are used for receiving the traffic of the same service instance, is intercommunicated between two PEs can be achieved.
In order to make the inspector clearly know whether the flows between the PE devices are intercommunicated, in this application, after step 407 is completed, step 408 may be performed, where step 408: the first edge device or the management device outputs the respective configuration information of the two edge devices and the comparison result of the configuration information, and if the comparison result is that the flow is not intercommunicated, an alarm prompt can be given.
In the foregoing process, the first message sent by the first edge device to the second edge device may be an ICMP message, and for example, the identifier of the target service instance included in the first message may be carried in an extension field of a header of the ICMP message.
The following describes an ICMP message format sent by a first edge device to a second edge device: as shown in fig. 5, the ICMP message includes an IP header area and an ICMP message area, where a field "type" in the ICMP message header indicates a type of the message, the type of the ICMP message includes a request message, a response message, and the like, and different values are given to the field "type" to indicate different types of the ICMP message, for example, when the field "type" takes a value of 0, it indicates that the ICMP message is a request message, and when the field "type" takes a value of 1, it indicates that the ICMP message is a response message. The field "type" is typically 8 bits in length.
The value rule of the field "checksum" is the same as that specified in the existing ICMP protocol, and will not be described here, and the length of the field "checksum" is typically 16 bits.
When the value of the field identifier is 0, the target service instance is represented as a VPLS instance, namely the field ID represents a VSI ID; when the value is 1, the target service instance is denoted as VLL, that is, "field" ID "denotes" VLL L2VC ID "; when the value is 2, the target service instance is EVPN, namely the field ID represents EVPN vpn-target.
The field "ID" has a corresponding length, and when the value of the "identifier" is 0 or 1, the ID length may be 3 bytes, and when the value of the "identifier" is 2, the ID length may be 12 bytes.
The field "identifier" and the field "ID" are not defined in the existing ICMP header. The option data in fig. 5 can be understood as a temporary undefined portion.
In the application, a Ping vpn-config command can be newly added, and the configuration information of the EVC of the remote equipment for the service instance is detected based on the EVC-AC field.
If the VPLS command acts: ping vpn-config peer-address [ B.B.B.B ] vsi-id [ XX ] EVC-AC; the AC in the command behavior indicates detection of AC side configuration, implemented by adding an identifier, [ b.b.b.b ] indicates identification of the second edge device, which may be the IP address of the edge device, and vsi-id XX may indicate identification of the VPLS instance.
The first edge device pings the second edge device, i.e., initiates a configuration information query of the EVC to the second edge device.
After receiving the ping message, the second edge device may query a local VPLS instance according to the VSI-ID, and send configuration information of all interfaces for receiving traffic of the VPLS instance to the first edge device in a packet manner.
The configuration information may include: interface identification, VLAN encapsulation information and flow information. The receiving identification can be an interface name, such as Eth-Trunk 126.1, the packaging information can be qinq vid 601ce-vid 1, and the flow information can be a rewrite pop single.
The number of the interfaces of the first edge device that receive the traffic of the target service instance may be one, or may be multiple, that is, the first edge device may determine the first target interface identifier as one, or may be multiple. The number of interfaces of the second edge device that receive the traffic of the target service instance may be one or multiple, that is, the second edge device may determine that the identifier of the second target interface is one or multiple.
If the first target interface identifiers are at least two and/or the second target interface identifiers are at least two, the first edge device compares first configuration information with second configuration information, and determines whether the flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result, and can compare the first configuration information corresponding to each first target interface identifier with the second configuration information corresponding to each second target interface identifier.
Illustratively, the first edge device compares first configuration information corresponding to a first target interface identifier i with second configuration information corresponding to a second target interface identifier j, and determines whether a flow of an interface corresponding to the first target interface identifier i and a flow of an interface corresponding to the second target interface identifier j are communicated with each other for the target service instance according to a comparison result;
the first target interface identifier determined by the first edge device is identified by i, if the number of the first target interface identifiers is N, i traverses any integer from 1 to N, the second target interface identifier determined by the second edge device may be identified by j, and if the number of the second target interface identifiers is M, j traverses any integer from 1 to M.
Assuming that N is 2, there are two first target interface identifiers, namely a first target interface identifier 1 and a first target interface identifier 2, for convenience of description, the first target interface identifier 1 is simply referred to as "a", and the first target interface identifier 2 is simply referred to as "b". Assuming that M is 3, there are three second target interface identifiers, which are respectively the second target interface identifier 1, the second target interface identifier 2, and the second target interface identifier 3, for convenience of description, the second target interface identifier 1 is simply referred to as c, the second target interface identifier 2 is simply referred to as d, and the second target interface identifier 3 is simply referred to as e. In determining whether the traffic is interworking, the following steps may be performed:
comparing the first configuration information corresponding to the a with the second configuration information corresponding to the c, and determining whether the flow intercommunication exists between the interface identified by the a and the interface identified by the c aiming at the target service instance;
comparing the first configuration information corresponding to the a with the second configuration information corresponding to the d, and determining whether the flow intercommunication exists between the interface identified by the a and the interface identified by the d aiming at the target service instance;
comparing the first configuration information corresponding to the a with the second configuration information corresponding to the e, and determining whether the flow intercommunication exists between the interface of the a identifier and the interface of the e identifier aiming at the target service instance;
comparing the first configuration information corresponding to the b with the second configuration information corresponding to the c, and determining whether the flow intercommunication exists between the interface identified by the b and the interface identified by the c aiming at the target service instance;
comparing the first configuration information corresponding to the b with the second configuration information corresponding to the d, and determining whether the flow intercommunication exists between the interface identified by the a and the interface identified by the d aiming at the target service instance;
and comparing the first configuration information corresponding to the b with the second configuration information corresponding to the e, and determining whether the flow intercommunication exists between the interface identified by the b and the interface identified by the e aiming at the target service instance.
By comparing each first target interface on the first edge device with the configuration information of each second target interface on the second edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated is determined, and further whether the flow among the PEs is intercommunicated is accurately and comprehensively detected.
In this application, the configuration information of the interface may include VLAN encapsulation information and flow operation information, and the first configuration information may include VLAN encapsulation information and/or flow operation information; the second configuration information may include VLAN encapsulation information and/or flow operation information.
The VLAN encapsulation information may include: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the first configuration information may include any one of no encapsulation, one layer of VLAN encapsulation, and two layers of VLAN encapsulation, and if VLAN is encapsulated, a value of each layer of VLAN may be included. The encapsulation information in the second configuration information may include any one of no encapsulation, one-layer VLAN encapsulation, and two-layer VLAN encapsulation.
The flow action information may include: default action, pop-up pop action, push-in push action, swap action, map action, etc.; for each layer of VLAN, the corresponding flow information is provided. The flow action information in the first configuration information may include at least one of a default action, a pop-up pop action, a push-push action, a swap action, and a map action. The flow action information in the second configuration information may include at least one of a default action, a pop-up pop action, a push-push action, a swap action, and a map action. The default action described above may be considered an unconfigured action.
In this application, whether the flows of the interface corresponding to the first configuration information and the interface corresponding to the second configuration information are intercommunicated may be determined by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the second configuration information.
In this application, as an example, if the encapsulation information in any configuration information is an encapsulation VLAN and the flow action information is a default action, and the encapsulation information in another configuration information is an encapsulation layer VLAN and the flow action information corresponding to the layer VLAN is a pop-up pop action, it is determined that the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are not intercommunicated with each other for the target service instance.
For example, if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in another configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to each of the two-layer VLANs is a pop-up pop action, it is determined that the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are not intercommunicated with each other for the target service instance.
For example, the configuration information of the local device is to encapsulate a layer vlan, which uses the pop action: "dot 1q vid XX; rewrite pop ", the configuration information of the remote device is to encapsulate a layer of vlan, which uses a push action: "dot 1q vid XX; rewrite push ", the traffic of the two end devices for the target service instance vid XX cannot be intercommunicated.
In the application, whether the flow is intercommunicated can be determined by comparing the values of the VLANs.
Illustratively, if the encapsulation information in any configuration information is an encapsulated layer VLAN, and the flow action information corresponding to the layer VLAN is a default action, the encapsulation information in another configuration information is an encapsulated two-layer VLAN, and the flow action information corresponding to a first layer VLAN in the two-layer VLAN is a pop action, it is determined whether a VLAN value in any configuration information is the same as a VLAN value in a second layer VLAN in the other configuration information, if not, it is determined that an interface corresponding to a first target interface identifier i and an interface corresponding to a second target interface identifier j are not intercommunicated with respect to the traffic of a target service instance, and if they are the same, it is determined that an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are intercommunicated with respect to the traffic of the target service instance;
the encapsulation information in the configuration information in the above example is an encapsulation VLAN, which may be understood as encapsulating a layer of VLAN or encapsulating a layer of VLAN.
If any of the configuration information in the above examples is first configuration information, the other configuration information is second configuration information; or if any of the configuration information in the above examples is the second configuration information, the other configuration information is the first configuration information.
When two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer in the example is the inner layer, the second layer is the outer layer; or if the first layer of the above example is an outer layer, the second layer is an inner layer.
And comparing the first configuration information with the second configuration information, and determining whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are intercommunicated aiming at the target service instance or not according to the comparison result.
In another embodiment of the present application, metro networking may also improve Software Defined Networking (SDN) in consideration of future network evolution trend. In the SDN, the management system is centrally managed, and the management system may be deployed on an extensible Node Controller (SNC), so that the SNC may be regarded as a management device.
As shown in the system structure diagram of fig. 6, in the management device 61, an identifier of a target service instance is sent to a first edge device 62 and a second edge device 63, first configuration information for the target service instance sent by the first edge device 62 is received, and second configuration information for the target service instance sent by the second edge device 63 is received. The management device 61 compares the first configuration information with the second configuration information, and determines whether the flows of the first edge device 62 and the second edge device 63 for the target service instance are intercommunicated. The first edge device 62 may be the first edge device 21, the second edge device 22 shown in fig. 2, the UPE, AGG, etc. shown in fig. 1, and the second edge device 63 may be the first edge device 21, the second edge device 22 shown in fig. 2, the UPE, AGG, etc. shown in fig. 1.
A method and a process for determining an interface configuration according to the present application are described in the following with specific embodiments, where a management device in the process is specifically the management device 61 shown in fig. 6, a first edge device in the process may be specifically the first edge device 62 shown in fig. 6, and a second edge device in the process may be specifically the second edge device 63 shown in fig. 6, and specifically refer to steps 701 to 708 shown in fig. 7:
step 701: the management equipment acquires the identification of a target service instance, wherein the target service instance is a service instance for inquiring whether the flow is intercommunicated.
For example, the detection personnel may operate on the management device to determine the identifier of the target service instance, so that the management device may receive the identifier of the target service instance determined by the user. Thus, the detection of whether the flow of a specific service instance is intercommunicated can be completed through the identification used for specifying the target service instance.
For another example, the management device may set a detection period for each service instance, and prestore detection time corresponding to the identifier of each service instance; the management device may determine, according to the detection time corresponding to the identifier of each service instance stored in advance, the target detection time that is the same as the current time, and determine the identifier of the service instance corresponding to the target detection time as the identifier of the target service instance. By setting the detection time for each service instance, whether the flow of each service instance is communicated or not can be regularly detected.
Step 702: the management device may generate a first message according to the identifier of the target service instance, where the first message includes the identifier of the target service instance, and the management device sends the generated first message to the first edge device and the second edge device, respectively, so that the first edge device queries the first configuration information, and the second edge device queries the second configuration information, where the first edge device and the second edge device are located in the same virtual ethernet. And sending a first message to the second edge device, wherein the first message comprises the identification of the target service instance.
The specific process of step 702 is similar to that of step 403, and is not described herein again.
Step 703: the first edge device stores a first corresponding relation between the identifier of each service instance deployed in the first edge device and the interface identifier, and also stores a second corresponding relation between each interface identifier in the first edge device and the configuration information; of course, the first correspondence and/or the second correspondence may also be stored elsewhere than the first edge device, such as in a third party device or in a separate storage medium, etc. The first edge device receives a first message sent by the management device, wherein the first message comprises an identifier of a target service instance, and the first edge device can determine a first target interface identifier corresponding to the identifier of the target service instance according to a first corresponding relationship between the identifier of each service instance deployed in the first edge device and the interface identifier; and determining first configuration information corresponding to the first target interface identifier according to configuration information corresponding to the interface identifier in the second corresponding relationship, and carrying the determined second configuration information in a third message and sending the third message to the management device. The specific process of step 703 is similar to that of step 404, and is not described herein again.
Step 704: the first edge device carries the determined first configuration information in a third message and sends the third message to the management device, and the management device receives the third message sent by the first edge device, wherein the third message comprises the first configuration information. The specific process of step 704 is similar to that of steps 405 and 406, and will not be described herein again.
Step 705: the second edge device pre-stores a third corresponding relationship between the identifier of each service instance deployed in the second edge device and the interface identifier, and also stores a fourth corresponding relationship between each interface identifier in the second edge device and the configuration information; of course, the third correspondence and/or the fourth correspondence may also be stored elsewhere than in the second edge device, such as in a third-party device or in a separate storage medium, etc. The second edge device receives a first message sent by the management device, where the first message includes an identifier of a target service instance, and the second edge device may determine, according to a third correspondence between the identifier of each service instance deployed in the second edge device and an interface identifier, a second target interface identifier corresponding to the identifier of the target service instance; and determining second configuration information corresponding to the second target interface identifier according to the configuration information corresponding to each interface identifier stored in the fourth corresponding relationship, and carrying the determined second configuration information in a second message and sending the second message to the management device. The specific process of step 705 is similar to that of step 404, and will not be described herein again.
Step 706: and the second edge device carries the determined second configuration information in a second message and sends the second message to the management device, and the management device receives the second message sent by the second edge device, wherein the second message comprises the second configuration information. The specific process of step 706 is similar to that of steps 405 and 406, and is not described herein again.
Step 707: the management equipment compares first configuration information corresponding to the first target interface identifier with second configuration information corresponding to the second target interface identifier, and determines whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are communicated with each other aiming at the target service instance or not according to a comparison result. The specific process of step 707 is similar to that of step 407, and is not described herein again.
Through the process, the management device compares the third configuration information of the third target interface which receives the flow of the target service instance in the at least two third edge devices, and determines whether the flows of the at least two third target interfaces aiming at the target service instance are intercommunicated, so that whether the flows of the interfaces which are used for receiving the flow of the same service instance are intercommunicated between the two PEs can be quickly and accurately detected.
Step 708: the management equipment outputs the respective configuration information of the two edge devices and the comparison result of the configuration information, and if the comparison result is that the flow is not intercommunicated, the management equipment can also give an alarm.
For example, after comparing the first configuration information with the second configuration information, the management device may output a comparison result between the first configuration information and the second configuration information, that is, a result of whether the flows of the target service instance are intercommunicated by the interfaces corresponding to the at least two third configuration information, so as to facilitate the detection personnel to know the detection situation, and may also output specific content of each third configuration information.
Illustratively, if the management device determines, according to the comparison result, that the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j cannot communicate with each other for the traffic of the target service instance, in order to facilitate the detection personnel to correct in time, the management device may further output alarm information that the traffic cannot communicate with each other.
For example, the number of first target interface identifiers corresponding to the identifier of the target service instance in the first edge device may be at least two, and the number of second target interface identifiers corresponding to the identifier of the target service instance in the second edge device may also be at least two; when the management device compares the first configuration information with the second configuration information, the management device may compare the first configuration information corresponding to the first target interface identifier i with the second configuration information corresponding to the second target interface identifier j, and determine whether the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are intercommunicated with each other for the target service instance according to a comparison result; wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
By comparing the configuration information of each first target interface on the first edge device with the configuration information of each second target interface on the second edge device, whether the configuration information of any two interfaces of the target service instance are intercommunicated can be determined, so that whether the flow among the PEs is intercommunicated can be accurately and comprehensively detected.
Illustratively, the configuration information of the interface includes Virtual Local Area Network (VLAN) encapsulation information and flow operation information, and then the first configuration information may include virtual lan VLAN encapsulation information and/or flow operation information; the second configuration information may include virtual local area network VLAN encapsulation information and/or flow operation information.
Illustratively, the VLAN encapsulation information includes: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the first configuration information and/or the second configuration information may include any one of non-encapsulation, encapsulation of a layer of VLAN, and if the VLAN is encapsulated, a value of each layer of VLAN may be included.
Exemplary flow information includes: default action, pop-up pop action, push-in push action, swap action, map action, etc.; the flow action information in the first configuration information and/or the second configuration information may include at least one of a default action, a pop action, a push action, a swap action, and a map action.
For example, by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the second configuration information, it is determined whether flows of an interface corresponding to the first configuration information and an interface corresponding to the second configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are not intercommunicated aiming at the target service instance; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated layer of VLAN, the flow action information corresponding to a first layer of VLAN in the two layers of VLANs is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of a second layer of the two layers of VLANs in the other configuration information, if not, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j are not intercommunicated aiming at a target service instance, and if the VLAN value is the same, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the second target interface identifier j are intercommunicated aiming at the target service instance;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is first configuration information, the other configuration information is second configuration information; or if any one of the configuration information is the second configuration information, the other configuration information is the first configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer is the inner layer, the second layer is the outer layer; or if the first layer is an outer layer, the second layer is an inner layer.
As shown in fig. 6, the system for determining interface configuration includes a management device 61, a first edge device 62, a second edge device 63, and at least one third edge device 64, where when the system includes a plurality of edge devices, the management device may compare the plurality of edge devices with each other to determine whether the traffic is intercommunicated.
Specifically, based on fig. 7, the management device may further send a first message to the third edge device, so that the third edge device queries the third configuration information, and the third edge device, the first edge device, and the second edge device are located in the same virtual ethernet.
Further, a fifth corresponding relationship between the identifier of each service instance deployed in the third edge device and the interface identifier is stored in the third edge device, and a sixth corresponding relationship between each interface identifier in the third edge device and the configuration information is also stored; of course, the fifth correspondence and/or the sixth correspondence may also be stored elsewhere than in the third edge device, such as in a third-party device or in a separate storage medium, etc. The third edge device receives a first message sent by the management device, where the first message includes an identifier of a target service instance, and the third edge device may determine, according to a fifth correspondence between the identifier of each service instance deployed in the third edge device and the interface identifier, a third target interface identifier corresponding to the identifier of the target service instance; and determining third configuration information corresponding to the third target interface identifier according to the configuration information corresponding to the interface identifier in the sixth corresponding relationship, and carrying the determined second configuration information in a fourth message and sending the fourth message to the management device.
The management device receives a fourth message sent by a third edge device, wherein the fourth message comprises third configuration information, and the management device also receives first configuration information sent by the first edge device; the management device may further compare the received first configuration information with the received third configuration information according to a pre-stored traffic interworking rule, and determine whether the traffic of the first target interface and the traffic of the third target interface for the target service instance are interworking according to a comparison result.
The management device receives a fourth message sent by a third edge device, the fourth message includes third configuration information, the management device also receives second configuration information sent by a second edge device, and the management device can also compare the received second configuration information with the received third configuration information according to a pre-stored traffic intercommunication rule, and determine whether the traffic of the second target interface and the traffic of the third target interface for the target service instance are intercommunicated according to a comparison result.
The process of the management device comparing the first configuration information of the first edge device with the second configuration information of the second edge device is described in the above fig. 7.
For example, the number of first target interface identifiers corresponding to the identifier of the target service instance in the first edge device may be at least two, and the number of third target interface identifiers corresponding to the identifier of the target service instance in the third edge device may also be at least two; when the first edge device compares the first configuration information with the third configuration information, the first configuration information corresponding to the first target interface identifier i may be compared with the third configuration information corresponding to the third target interface identifier k, and whether the traffic of the interface corresponding to the first target interface identifier i and the traffic of the interface corresponding to the third target interface identifier k are intercommunicated with each other for the target service instance is determined according to the comparison result; wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; k is taken as any integer from 1 to K, and K is the number of the third target interface identifiers.
For example, the number of the second target interface identifiers corresponding to the identifier of the target service instance in the second edge device may be at least two, and the number of the third target interface identifiers corresponding to the identifier of the target service instance in the third edge device may also be at least two; when the second edge device compares the second configuration information with the third configuration information, the second edge device may compare the second configuration information corresponding to the second target interface identifier j with the third configuration information corresponding to the third target interface identifier k, and determine whether the traffic of the interface corresponding to the second target interface identifier j and the traffic of the interface corresponding to the third target interface identifier k are intercommunicated with each other for the target service instance according to the comparison result; j is taken as any integer from 1 to N, and N is the number of second target interface identifiers; k is taken as any integer from 1 to K, and K is the number of the third target interface identifiers.
Illustratively, the third configuration information includes at least one of:
VLAN encapsulation information and flow information.
The configuration information of the interface includes Virtual Local Area Network (VLAN) encapsulation information and flow operation information, and the third configuration information may include VLAN encapsulation information and/or flow operation information.
Illustratively, the VLAN encapsulation information includes: no package, one layer of VLAN package, two layers of VLAN package, value of each layer of VLAN, etc.; the encapsulation information in the third configuration information may include any one of no encapsulation, one layer of VLAN encapsulation, and two layers of VLAN encapsulation, and if VLAN is encapsulated, a value of each layer of VLAN may be included.
Exemplary flow information includes: default action, pop-up pop action, push-in push action, swap action, map action, etc.; the flow action information in the third configuration information may include at least one of a default action, a pop-up pop action, a push-push action, a swap action, and a map action.
For example, by comparing the encapsulation information and the flow operation information in the first configuration information with the encapsulation information and the flow operation information in the third configuration information, it is determined whether the flows of the interface corresponding to the first configuration information and the interface corresponding to the third configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, and the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated layer of VLAN, the flow action information corresponding to the first layer of VLAN in the two layers of VLAN is a pop action, determining whether the VLAN value in any configuration information is the same as the VLAN value of the third layer of the two layers of VLAN in the other configuration information, if not, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated, and if the VLAN value is the same, determining that the flow of the interface corresponding to the first target interface identifier i and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are intercommunicated;
the encapsulation information in the configuration information is an encapsulation VLAN, which may be an encapsulation layer VLAN or an encapsulation layer VLAN; if any one of the configuration information is the first configuration information, the other configuration information is the third configuration information; or if any one of the configuration information is the third configuration information, the other configuration information is the first configuration information; when two layers of VLANs are packaged, the VLANs are divided into an inner layer and an outer layer, and if the first layer is the inner layer, the third layer is the outer layer; or if the first layer is an outer layer, the third layer is an inner layer.
For example, by comparing the encapsulation information and the flow operation information in the second configuration information with the encapsulation information and the flow operation information in the third configuration information, it is determined whether the flows of the interface corresponding to the second configuration information and the interface corresponding to the third configuration information are intercommunicated, which specifically includes the following possibilities:
if the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation layer VLAN, and the flow action information corresponding to the layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulation VLAN, the flow action information is a default action, the encapsulation information in the other configuration information is an encapsulation two-layer VLAN, and the flow action information corresponding to the two-layer VLAN is a pop-up pop action, determining that the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are not intercommunicated; or
If the encapsulation information in any configuration information is an encapsulated layer of VLAN, the flow action information corresponding to the layer of VLAN is a default action, the encapsulation information in the other configuration information is an encapsulated two-layer VLAN, the flow action information corresponding to a second layer of VLAN in the two-layer VLAN is a pop action, whether a VLAN value in any configuration information is the same as a VLAN value of a third layer of the two-layer VLAN in the other configuration information is determined, if the VLAN values are not the same, an interface corresponding to a second target interface identifier j and an interface corresponding to a third target interface identifier k are determined not to be communicated with the flow of a target service instance, and if the VLAN values are the same, the interface corresponding to the second target interface identifier j and the interface corresponding to the third target interface identifier k are determined to be communicated with the flow of the target service instance.
The management device may store the configuration information in the edge device after acquiring the configuration information, so as to perform subsequent comparison, and in this case, the local PE does not need to query the remote PE, and only the management device needs to perform configuration check.
Based on the same inventive concept as the method for determining an interface configuration, as shown in fig. 8, an embodiment of the present application further provides an apparatus 800 for determining an interface configuration, where the apparatus 800 for determining an interface configuration is configured to perform the operations performed by the first edge device or the second edge device in the method for determining an interface configuration as in fig. 2, 3, and 4, or the apparatus 800 for determining an interface configuration is configured to perform the operations performed by the management device or the first edge device or the second edge device or the third edge device in the method for determining an interface configuration as in fig. 6 and 7. The apparatus in fig. 8 may be the AGG or UPE in fig. 1, may be the first edge device or the second edge device in fig. 2, 3, 4, and may be the management device or the first edge device or the second edge device or the third edge device in fig. 6, 7.
The apparatus 800 for determining interface configuration comprises: a processing module 801, a sending module 802 and a receiving module 803.
Illustratively, the processing module 801 is configured to obtain an identifier of a target service instance whether traffic to be queried is intercommunicated; determining a first target interface identifier corresponding to the identifier of the target service instance according to the corresponding relation between the stored identifier of each service instance and the interface identifier, and determining first configuration information corresponding to the first target interface identifier according to the stored configuration information corresponding to each interface identifier;
the sending module 802 is configured to send a first message to a second edge device, where the first message includes an identifier of the target service instance, and the apparatus and the second edge device are located in the same virtual ethernet;
the receiving module 803 is configured to receive a second message sent by the second edge device, where the second message includes second configuration information, where the second configuration information is configuration information corresponding to a second target interface identifier, which is determined by the second edge device according to the stored corresponding relationship between an identifier of each service instance and an interface identifier, and then according to the stored configuration information corresponding to each interface identifier, after determining the second target interface identifier corresponding to the identifier of the target service instance;
the processing module 801 is further configured to compare the first configuration information with the second configuration information, and determine whether the flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result.
Illustratively, the processing module 801 is specifically configured to receive an identifier of a target service instance sent by a management device; or according to the pre-stored detection time corresponding to the identifier of each service instance, determining the identifier of the service instance corresponding to the target detection time which is the same as the current time as the identifier of the target service instance.
For example, the first target interface identification is at least two and/or the second target interface identification is at least two; the processing module 801 is specifically configured to compare first configuration information corresponding to the first target interface identifier i with second configuration information corresponding to the second target interface identifier j, and determine whether the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are intercommunicated with each other for the traffic of the target service instance according to a comparison result;
wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
In one possible implementation, the first configuration information or the second configuration information includes at least one of:
VLAN encapsulation information and flow information.
In one possible implementation, the VLAN encapsulation information includes: no encapsulation, one layer of VLAN encapsulation, two layers of VLAN encapsulation and the value of each layer of VLAN; and/or
The flow information includes:
default action, pop-up pop action, push-in push action, swap action, map action.
For example, the processing module 801 is specifically configured to determine that, if any one of the configuration information includes an encapsulation VLAN and a default action, and another configuration information includes an encapsulation layer VLAN, and the layer VLAN uses a pop-up pop action, that a flow of an interface corresponding to the first target interface identifier i and a flow of an interface corresponding to the second target interface identifier j for the target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged, the layer of VLAN uses default action, the other configuration information comprises a second layer of VLAN which is packaged, the first layer of VLAN in the two layers of VLAN uses pop action, whether the VLAN value in any configuration information is the same as the VLAN value of the second layer of the two layers of VLAN in the other configuration information is determined, if not, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined not to be communicated with each other aiming at the flow of the target service instance, and if the VLAN value is the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is second configuration information; or any configuration information is second configuration information, and the other configuration information is first configuration information;
the first layer is an inner layer, and the second layer is an outer layer; or the first layer is an outer layer and the second layer is an inner layer.
Based on the same inventive concept as the method for determining an interface configuration, as shown in fig. 9, an embodiment of the present application further provides an apparatus 900 for determining an interface configuration, where the apparatus 900 for determining an interface configuration is configured to perform the operations in fig. 2, fig. 3, and fig. 4 performed by the first edge device or the second edge device in the method for determining an interface configuration, or the apparatus 900 for determining an interface configuration is configured to perform the operations in fig. 6 and fig. 7 performed by the management device or the first edge device or the second edge device or the third edge device in the method for determining an interface configuration. The apparatus in fig. 9 may be the AGG or UPE in fig. 1, may be the first edge device or the second edge device in fig. 2, 3, 4, and may be the management device or the first edge device or the second edge device or the third edge device in fig. 6, 7.
The apparatus 900 for determining an interface configuration includes: a processor 901 and a communication interface 902, and optionally a memory 903. The processor 901 is configured to invoke a set of programs, which when executed, cause the processor 901 to perform the operations performed by the first edge device in the method for determining an interface configuration described above. The memory 903 is used for storing programs executed by the processor 901. The processing module 801 in fig. 8 may be implemented by the processor 901, and the sending module 802 and the receiving module 803 may be implemented by the communication interface 902.
The processor may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor may further include a hardware chip or other general purpose processor. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The aforementioned PLDs may be Complex Programmable Logic Devices (CPLDs), field-programmable gate arrays (FPGAs), General Array Logic (GAL) and other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., or any combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
An embodiment of the present application provides a computer storage medium storing a computer program, where the computer program includes a program for executing the method for determining an interface configuration.
Embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the method for determining an interface configuration provided above.
Any device for determining the interface configuration provided by the embodiment of the application can also be a chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.

Claims (38)

1. A method of determining an interface configuration, comprising:
the first edge equipment acquires an identifier of a target service instance whether the flow to be inquired is intercommunicated;
the first edge device determines a first target interface identifier corresponding to the identifier of the target service instance according to the corresponding relation between the identifier of the service instance deployed in the first edge device and the interface identifier, and determines first configuration information corresponding to the first target interface identifier according to configuration information corresponding to the interface identifier in the first edge device;
the first edge device sends a first message to a second edge device, wherein the first message comprises the identifier of the target service instance, and the first edge device and the second edge device are located in the same virtual Ethernet;
the first edge device receives a second message sent by the second edge device, where the second message includes second configuration information, where the second configuration information is configuration information corresponding to a second target interface identifier determined by the second edge device according to a correspondence between an identifier of a service instance deployed in the second edge device and an interface identifier, and then according to configuration information corresponding to the interface identifier in the second edge device, the second target interface identifier corresponding to the identifier of the target service instance is determined by the second edge device;
and the first edge equipment compares the first configuration information with the second configuration information, and determines whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are intercommunicated aiming at the target service instance or not according to a comparison result.
2. The method of claim 1, wherein the obtaining, by the first edge device, the identification of the target service instance whether the traffic to be queried interworks comprises:
the first edge device receives an identifier of a target service instance sent by the management device; or
And the first edge equipment determines the identifier of the service instance corresponding to the target detection time which is the same as the current time as the identifier of the target service instance according to the detection time corresponding to the identifier of each service instance which is stored in advance.
3. The method of claim 1, wherein the first target interface identification is at least two and/or the second target interface identification is at least two;
the first edge device compares the first configuration information with the second configuration information, and determines whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are intercommunicated with each other for the target service instance according to a comparison result, including:
the first edge device compares first configuration information corresponding to a first target interface identifier i with second configuration information corresponding to a second target interface identifier j, and determines whether an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are communicated with each other aiming at the flow of the target service instance or not according to a comparison result;
wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
4. The method of claim 3, wherein the first configuration information and the second configuration information each include at least one of:
VLAN encapsulation information and flow information.
5. The method of claim 4, wherein the VLAN encapsulation information includes at least one of: no encapsulation, one layer of VLAN encapsulation, two layers of VLAN encapsulation and the value of each layer of VLAN;
the flow action information includes at least one of:
default action, pop-up pop action, push-in push action, swap action, map action.
6. The method according to any one of claims 1 to 5, wherein determining whether the traffic of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are intercommunicated with respect to the target service instance according to the comparison result includes:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a second target interface identifier j are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is second configuration information; or any configuration information is second configuration information, and the other configuration information is first configuration information;
the first layer is an inner layer, and the second layer is an outer layer; or the first layer is an outer layer and the second layer is an inner layer.
7. A method according to any one of claims 1 to 5, wherein the first message is an Internet Control Message Protocol (ICMP) message and the identity of the target service instance is carried in an extension field of a header of the ICMP message.
8. A method according to any one of claims 1 to 5, wherein the target service instance comprises any one of:
virtual private local area network service VPLS instances, Ethernet virtual private network EVPN service instances, virtual leased line VLL service instances.
9. The method of any of claims 1 to 5, further comprising:
outputting the first configuration information and the second configuration information, and a comparison result of the first configuration information and the second configuration information; and/or the presence of a gas in the gas,
and if the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be incapable of communicating the flow of the target service instance according to the comparison result, outputting alarm information of which the flow is incapable of communicating.
10. A method of determining an interface configuration, comprising:
the management equipment acquires an identifier of a target service instance whether the flow to be inquired is intercommunicated;
the management equipment respectively sends first messages to first edge equipment and second edge equipment, wherein the first messages comprise the identification of the target service instance, and the first edge equipment and the second edge equipment are positioned in the same virtual Ethernet;
the management device receives a second message sent by the second edge device, where the second message includes second configuration information, where the second configuration information sent by the second edge device is configuration information corresponding to a second target interface identifier determined by the second edge device according to configuration information corresponding to each interface identifier in the second edge device after the second target interface identifier corresponding to the identifier of the target service instance is determined by the second edge device according to a correspondence between the identifier of the service instance deployed in the second edge device and the interface identifier;
the management device receives a third message sent by the first edge device, where the third message includes first configuration information, where the first configuration information sent by the first edge device is configuration information corresponding to a first target interface identifier determined by the first edge device according to a correspondence between an identifier of a service instance deployed in the first edge device and an interface identifier, and then according to configuration information corresponding to each interface identifier in the first edge device, the first target interface identifier corresponding to the identifier of the target service instance is determined by the first edge device;
and the management equipment compares the first configuration information with the second configuration information, and determines whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are intercommunicated aiming at the target service instance or not according to a comparison result.
11. The method of claim 10, wherein the obtaining, by the management device, the identifier of the target service instance whether the traffic to be queried interworks comprises:
the management equipment receives the identification of the target service instance determined by the user; or
And the management equipment determines the identifier of the service instance corresponding to the target detection time which is the same as the current time as the identifier of the target service instance according to the detection time corresponding to the identifier of each service instance which is stored in advance.
12. The method of claim 10, wherein the first target interface identification is at least two and/or the second target interface identification is at least two;
the step of comparing, by the management device, the first configuration information with the second configuration information, and determining whether the traffic of the interface corresponding to the first target interface identifier and the traffic of the interface corresponding to the second target interface identifier are intercommunicated with respect to the target service instance according to a comparison result includes:
the management equipment compares first configuration information corresponding to a first target interface identifier i with second configuration information corresponding to a second target interface identifier j, and determines whether an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are communicated with each other aiming at the flow of the target service instance or not according to a comparison result;
wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
13. The method of claim 12, wherein the first configuration information and the second configuration information each include at least one of:
VLAN encapsulation information and flow information.
14. The method of claim 13, wherein the VLAN encapsulation information comprises at least one of: no encapsulation, one layer of VLAN encapsulation, two layers of VLAN encapsulation and the value of each layer of VLAN;
the flow action information includes at least one of:
default action, pop-up pop action, push-in push action, swap action, map action.
15. The method according to any of claims 10-14, wherein determining whether the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are intercommunicated with respect to the target service instance according to the comparison result comprises:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a second target interface identifier j are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is second configuration information; or any configuration information is second configuration information, and the other configuration information is first configuration information;
the first layer is an inner layer, and the second layer is an outer layer; or the first layer is an outer layer and the second layer is an inner layer.
16. The method of any of claims 10 to 14, further comprising:
the management device sends the first message to a third edge device, wherein the third edge device, the first edge device and the second edge device are located in the same virtual Ethernet;
the management device receives a fourth message sent by the third edge device, where the fourth message includes third configuration information, where the third configuration information sent by the third edge device is configuration information corresponding to a third target interface identifier determined by the third edge device according to configuration information corresponding to each interface identifier in the third edge device after the third target interface identifier corresponding to the identifier of the target service instance is determined by the third edge device according to a correspondence between the identifier of the service instance deployed in the third edge device and the interface identifier;
the management equipment compares the first configuration information with the third configuration information, and determines whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the third target interface identifier are communicated with each other aiming at the target service instance or not according to the comparison result; and/or the management device compares the second configuration information with the third configuration information, and determines whether the flow of the interface corresponding to the second target interface identifier and the flow of the interface corresponding to the third target interface identifier are intercommunicated with each other for the target service instance according to the comparison result.
17. The method of claim 16, wherein the first target interface identification is at least two and/or the third target interface identification is at least two;
the step of comparing, by the management device, the first configuration information with the third configuration information, and determining whether the traffic of the interface corresponding to the first target interface identifier and the traffic of the interface corresponding to the third target interface identifier are intercommunicated with each other for the target service instance according to the comparison result includes:
the management equipment compares first configuration information corresponding to a first target interface identifier i with third configuration information corresponding to a third target interface identifier k, and determines whether an interface corresponding to the first target interface identifier i and an interface corresponding to the third target interface identifier k are communicated with each other aiming at the flow of the target service instance or not according to a comparison result; and/or
The second target interface identifiers are at least two and/or the third target interface identifiers are at least two;
the step of comparing, by the management device, the second configuration information with the third configuration information, and determining whether an interface corresponding to the second target interface identifier and an interface corresponding to the third target interface identifier are intercommunicated with respect to the traffic of the target service instance according to a comparison result includes:
the management equipment compares second configuration information corresponding to a second target interface identifier j with third configuration information corresponding to a third target interface identifier k, and determines whether an interface corresponding to the second target interface identifier j and an interface corresponding to the third target interface identifier k are communicated with each other aiming at the flow of the target service instance or not according to a comparison result;
and K is an integer from 1 to K, and K is the number of the third target interface identifiers.
18. The method of claim 17, wherein determining whether the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the third target interface identifier k are intercommunicated with respect to the target service instance according to the comparison result comprises:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to the first target interface identifier i and the flow of an interface corresponding to the third target interface identifier k for the target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to the first target interface identifier i and the flow of an interface corresponding to the third target interface identifier k for a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a third target interface identifier k are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the third target interface identifier k are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is third configuration information; or any one configuration information is the third configuration information, and the other configuration information is the first configuration information.
19. The method of claim 17, wherein determining whether the flows of the interface corresponding to the second target interface identifier j and the interface corresponding to the third target interface identifier k are intercommunicated with respect to the target service instance according to the comparison result comprises:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, the first layer of VLAN in the second layer of VLAN uses a pop action, whether the VLAN value in any configuration information is the same as the VLAN value of the second layer of VLAN in the other configuration information is determined, if not, the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated, and if the two configuration information are the same, the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are intercommunicated;
wherein, any configuration information is third configuration information, and the other configuration information is second configuration information; or any one configuration information is the second configuration information, and the other configuration information is the third configuration information.
20. An apparatus for determining an interface configuration, comprising:
the processing module is used for acquiring the identifier of the target service instance whether the flow to be inquired is intercommunicated; determining a first target interface identifier corresponding to the identifier of the target service instance according to the corresponding relation between the identifier of the service instance deployed in the device and the interface identifier, and determining first configuration information corresponding to the first target interface identifier according to configuration information corresponding to the interface identifier in the device;
a sending module, configured to send a first message to a second edge device, where the first message includes an identifier of the target service instance, and the apparatus and the second edge device are located in the same virtual ethernet;
a receiving module, configured to receive a second message sent by the second edge device, where the second message includes second configuration information, where the second configuration information is configuration information corresponding to a second target interface identifier determined by the second edge device according to a correspondence between an identifier of a service instance deployed in the second edge device and an interface identifier, and then according to configuration information corresponding to the interface identifier in the second edge device, after determining the second target interface identifier corresponding to the identifier of the target service instance;
the processing module is further configured to compare the first configuration information with the second configuration information, and determine whether the flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result.
21. The apparatus according to claim 20, wherein the processing module is configured to, when acquiring an identifier of a target service instance indicating whether traffic to be queried is intercommunicated, specifically receive the identifier of the target service instance sent by the management device; or according to the pre-stored detection time corresponding to the identifier of each service instance, determining the identifier of the service instance corresponding to the target detection time which is the same as the current time as the identifier of the target service instance.
22. The apparatus as recited in claim 20, wherein said first target interface identification is at least two and/or said second target interface identification is at least two;
the processing module is configured to compare the first configuration information with the second configuration information, and when determining whether flows of the first target interface and the second target interface for the target service instance are intercommunicated according to a comparison result, specifically configured to:
comparing first configuration information corresponding to a first target interface identifier i with second configuration information corresponding to a second target interface identifier j, and determining whether an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are communicated with each other aiming at the flow of the target service instance or not according to a comparison result;
wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
23. The apparatus of claim 22, wherein the first configuration information and the second configuration information each comprise at least one of:
VLAN encapsulation information and flow information.
24. The apparatus of claim 23, wherein the VLAN encapsulation information comprises at least one of: no encapsulation, one layer of VLAN encapsulation, two layers of VLAN encapsulation and the value of each layer of VLAN;
the flow action information includes at least one of: default action, pop-up pop action, push-in push action, swap action, map action.
25. The apparatus according to any one of claims 20 to 24, wherein when determining whether an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are related to traffic of the target service instance, the processing module is specifically configured to:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a second target interface identifier j are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is second configuration information; or any configuration information is second configuration information, and the other configuration information is first configuration information;
the first layer is an inner layer, and the second layer is an outer layer; or the first layer is an outer layer and the second layer is an inner layer.
26. The apparatus according to any one of claims 20 to 24, wherein the processing module is further configured to output the first configuration information and the second configuration information, and a comparison result of the first configuration information and the second configuration information; and/or the presence of a gas in the gas,
and if the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be incapable of communicating the flow of the target service instance according to the comparison result, outputting alarm information of which the flow is incapable of communicating.
27. An apparatus for determining an interface configuration, comprising:
the processing module is used for acquiring the identifier of the target service instance whether the flow to be inquired is intercommunicated;
a sending module, configured to send a first message to a first edge device and a second edge device, respectively, where the first message includes an identifier of the target service instance, and the first edge device and the second edge device are located in the same virtual ethernet;
a receiving module, configured to receive a second message sent by the second edge device, where the second message includes second configuration information, where the second configuration information sent by the second edge device is configuration information corresponding to a second target interface identifier determined by the second edge device according to a correspondence between an identifier of a service instance deployed in the second edge device and an interface identifier, and after determining the second target interface identifier corresponding to the identifier of the target service instance, according to configuration information corresponding to each interface identifier in the second edge device; receiving a third message sent by the first edge device, where the third message includes first configuration information, where the first configuration information sent by the first edge device is configuration information corresponding to a first target interface identifier determined by the first edge device according to a correspondence between an identifier of a service instance deployed in the first edge device and an interface identifier, and then according to configuration information corresponding to each interface identifier in the first edge device, the configuration information corresponding to the first target interface identifier is determined by the first edge device;
the processing module is further configured to compare the first configuration information with the second configuration information, and determine whether the flow of the interface corresponding to the first target interface identifier and the flow of the interface corresponding to the second target interface identifier are intercommunicated with each other for the target service instance according to a comparison result.
28. The apparatus of claim 27, wherein the processing module is configured to, when acquiring an identifier of a target service instance indicating whether traffic to be queried is intercommunicated, specifically receive an identifier of a target service instance determined by a user; or according to the pre-stored detection time corresponding to the identifier of each service instance, determining the identifier of the service instance corresponding to the target detection time which is the same as the current time as the identifier of the target service instance.
29. The apparatus of claim 27, wherein the first target interface identification is at least two and/or the second target interface identification is at least two;
the processing module is configured to compare the first configuration information with the second configuration information, and when determining whether the flows of the interface corresponding to the first target interface identifier and the interface corresponding to the second target interface identifier are intercommunicated with each other for the target service instance according to a comparison result, specifically configured to:
comparing first configuration information corresponding to a first target interface identifier i with second configuration information corresponding to a second target interface identifier j, and determining whether an interface corresponding to the first target interface identifier i and an interface corresponding to the second target interface identifier j are communicated with each other aiming at the flow of the target service instance or not according to a comparison result;
wherein, i is taken as any integer from 1 to N, and N is the number of the first target interface identifiers; j is taken as any integer from 1 to M, and M is the number of the second target interface identifiers.
30. The apparatus of claim 29, wherein the first configuration information and the second configuration information each comprise at least one of:
VLAN encapsulation information and flow information.
31. The apparatus of claim 30, wherein the VLAN encapsulation information comprises at least one of: no encapsulation, one layer of VLAN encapsulation, two layers of VLAN encapsulation and the value of each layer of VLAN;
the flow action information includes at least one of:
default action, pop-up pop action, push-in push action, swap action, map action.
32. The apparatus according to any one of claims 27 to 31, wherein the processing module, when determining whether the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are intercommunicated for the target service instance, is specifically configured to:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a first target interface identifier i and the flow of an interface corresponding to a second target interface identifier j aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a second target interface identifier j are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the second target interface identifier j are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is second configuration information; or any configuration information is second configuration information, and the other configuration information is first configuration information;
the first layer is an inner layer, and the second layer is an outer layer; or the first layer is an outer layer and the second layer is an inner layer.
33. The apparatus of any one of claims 27 to 31, further comprising:
the sending module is further configured to send the first message to a third edge device, where the third edge device, the first edge device, and the second edge device are located in the same virtual ethernet;
the receiving module is further configured to receive a fourth message sent by the third edge device, where the fourth message includes third configuration information, where the third configuration information sent by the third edge device is configuration information corresponding to a third target interface identifier determined by the third edge device according to configuration information corresponding to each interface identifier in the third edge device after the third target interface identifier corresponding to the identifier of the target service instance is determined by the third edge device according to a correspondence between the identifier of the service instance deployed in the third edge device and the interface identifier;
the processing module is further configured to compare the first configuration information with the third configuration information, and determine whether an interface corresponding to the first target interface identifier and an interface corresponding to the third target interface identifier are intercommunicated with respect to traffic of the target service instance according to a comparison result; and/or comparing the second configuration information with the third configuration information, and determining whether the flow of the interface corresponding to the second target interface identifier and the flow of the interface corresponding to the third target interface identifier are intercommunicated with each other for the target service instance according to the comparison result.
34. The apparatus as recited in claim 33, wherein said first target interface identification is at least two and/or said third target interface identification is at least two;
the processing module is configured to compare the first configuration information with the third configuration information, and when determining whether the traffic of the interface corresponding to the first target interface identifier and the traffic of the interface corresponding to the third target interface identifier are intercommunicated with respect to the target service instance according to a comparison result, specifically configured to:
comparing first configuration information corresponding to the first target interface identifier i with third configuration information corresponding to a third target interface identifier k, and determining whether an interface corresponding to the first target interface identifier i and an interface corresponding to the third target interface identifier k are communicated with each other aiming at the flow of the target service instance or not according to a comparison result; and/or
The second target interface identifiers are at least two and/or the third target interface identifiers are at least two;
the processing module is configured to compare the second configuration information with the third configuration information, and when determining whether an interface corresponding to the second target interface identifier and an interface corresponding to the third target interface identifier are intercommunicated with respect to traffic of the target service instance according to a comparison result, the processing module is specifically configured to:
comparing second configuration information corresponding to the second target interface identifier j with third configuration information corresponding to a third target interface identifier k, and determining whether the flow of an interface corresponding to the second target interface identifier j and the flow of an interface corresponding to the third target interface identifier k for the target service instance are communicated or not according to a comparison result;
and K is an integer from 1 to K, and K is the number of the third target interface identifiers.
35. The apparatus of claim 34, wherein when the processing module determines whether the flows of the interface corresponding to the first target interface identifier i and the interface corresponding to the third target interface identifier k are intercommunicated with respect to the target service instance, the processing module is specifically configured to:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to the first target interface identifier i and the flow of an interface corresponding to the third target interface identifier k for the target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to the first target interface identifier i and the flow of an interface corresponding to the third target interface identifier k for a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, a first layer of VLAN in the second layer of VLAN uses a pop action, whether a VLAN value in any configuration information is the same as a VLAN value in a second layer of VLAN in the other configuration information is determined, if not, an interface corresponding to a first target interface identifier i and an interface corresponding to a third target interface identifier k are determined not to be communicated with each other aiming at the flow of a target service instance, and if the two configuration information are the same, the interface corresponding to the first target interface identifier i and the interface corresponding to the third target interface identifier k are determined to be communicated with each other aiming at the flow of the target service instance;
wherein, any configuration information is first configuration information, and the other configuration information is third configuration information; or any one configuration information is the third configuration information, and the other configuration information is the first configuration information.
36. The apparatus of claim 34, wherein the processing module, when determining whether the flows of the interface corresponding to the second target interface identifier j and the interface corresponding to the third target interface identifier k are intercommunicated with respect to the target service instance, is specifically configured to:
if any configuration information comprises an encapsulated VLAN and a default action, and the other configuration information comprises an encapsulated layer VLAN which uses a pop-up pop action, determining that the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated; or
If any configuration information comprises an encapsulated VLAN and a default action, the other configuration information comprises an encapsulated two-layer VLAN, and the two-layer VLAN uses a pop-up pop action, then determining that the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated; or
If any configuration information comprises a first layer of VLAN which is packaged and uses a default action, the other configuration information comprises a second layer of VLAN which is packaged, the first layer of VLAN in the second layer of VLAN uses a pop action, whether the VLAN value in any configuration information is the same as the VLAN value of the second layer of VLAN in the other configuration information is determined, if not, the flow of an interface corresponding to a second target interface identifier j and the flow of an interface corresponding to a third target interface identifier k aiming at a target service instance are not intercommunicated, and if the two configuration information are the same, the flow of the interface corresponding to the second target interface identifier j and the flow of the interface corresponding to the third target interface identifier k aiming at the target service instance are intercommunicated;
wherein, any configuration information is third configuration information, and the other configuration information is second configuration information; or any one configuration information is the second configuration information, and the other configuration information is the third configuration information.
37. A system for determining an interface configuration, the system comprising: the apparatus for determining an interface configuration of any of claims 20-26 for application to a first edge device, and a second edge device for data interaction with the first edge device; alternatively, the apparatus for determining an interface configuration according to any of claims 27-36 applied to a management device, and at least two third edge devices for data interaction with the management device.
38. A computer-readable storage medium having computer-readable instructions stored thereon which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1-9 or the method of any one of claims 10-19.
CN201910082348.2A 2019-01-28 2019-01-28 Method and device for determining interface configuration Active CN111490891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082348.2A CN111490891B (en) 2019-01-28 2019-01-28 Method and device for determining interface configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082348.2A CN111490891B (en) 2019-01-28 2019-01-28 Method and device for determining interface configuration

Publications (2)

Publication Number Publication Date
CN111490891A CN111490891A (en) 2020-08-04
CN111490891B true CN111490891B (en) 2021-09-07

Family

ID=71812308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082348.2A Active CN111490891B (en) 2019-01-28 2019-01-28 Method and device for determining interface configuration

Country Status (1)

Country Link
CN (1) CN111490891B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396336A (en) * 2022-08-01 2022-11-25 南京网元通信技术有限公司 MPLS VPN (Multi-protocol Label switching virtual private network) passenger gathering special line active test method based on software simulation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072210A (en) * 2006-05-10 2007-11-14 中兴通讯股份有限公司 Method for realizing two-layer VPN and three-layer VPN interconnecting and interworking
CN103795623A (en) * 2012-10-26 2014-05-14 杭州华三通信技术有限公司 Method and device for realizing traffic interflow between virtual devices
CN105379227A (en) * 2013-05-07 2016-03-02 环球互连及数据中心公司 A direct connect virtual private interface for a one to many connection with multiple virtual private clouds
WO2018065813A1 (en) * 2016-10-05 2018-04-12 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for distribution of virtual layer 2 traffic towards multiple access network devices
CN108243114A (en) * 2016-12-26 2018-07-03 华为技术有限公司 A kind of method to E-Packet, equipment and system
CN108471372A (en) * 2018-02-28 2018-08-31 新华三技术有限公司 Condition control method, device and message transmitting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8705534B2 (en) * 2009-11-13 2014-04-22 Telefonaktiebolaget L M Ericsson (Publ) Provider edge bridge with remote customer service interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072210A (en) * 2006-05-10 2007-11-14 中兴通讯股份有限公司 Method for realizing two-layer VPN and three-layer VPN interconnecting and interworking
CN103795623A (en) * 2012-10-26 2014-05-14 杭州华三通信技术有限公司 Method and device for realizing traffic interflow between virtual devices
CN105379227A (en) * 2013-05-07 2016-03-02 环球互连及数据中心公司 A direct connect virtual private interface for a one to many connection with multiple virtual private clouds
WO2018065813A1 (en) * 2016-10-05 2018-04-12 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for distribution of virtual layer 2 traffic towards multiple access network devices
CN108243114A (en) * 2016-12-26 2018-07-03 华为技术有限公司 A kind of method to E-Packet, equipment and system
CN108471372A (en) * 2018-02-28 2018-08-31 新华三技术有限公司 Condition control method, device and message transmitting method

Also Published As

Publication number Publication date
CN111490891A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN109873760B (en) Method and device for processing route, and method and device for data transmission
CN107800602B (en) Message processing method, device and system
WO2020182156A1 (en) Message forwarding method in network, network node and network system
RU2493677C2 (en) Method and router for implementing mirroring
US8861547B2 (en) Method, apparatus, and system for packet transmission
CN106790741B (en) Method for automatically allocating network addresses to cascade equipment based on link layer data communication
WO2020156166A1 (en) Packet processing method and device
JP6355536B2 (en) Relay system and switch device
US8670352B2 (en) Link inference in large networks based on incomplete data
CN105474602A (en) Method, device and equipment of identifying attack flow in software defined network
CN109474495B (en) Tunnel detection method and device
CN109951371B (en) Data forwarding method and device
CN111049752A (en) Load balancing method and device for multiple transmission lines
CN111490891B (en) Method and device for determining interface configuration
CN103269300B (en) A kind of method and apparatus of realizing heterogeneous network internetworking
CN108259339B (en) Message sending method and device
CN114268545A (en) Service message forwarding method, SR strategy sending method, equipment and system
CN109412851B (en) Link layer path detection method, device and system
CN109905285B (en) Network management method and network equipment
WO2023045793A1 (en) Loop detection method and apparatus
CN108156066B (en) Message forwarding method and device
CN108282404B (en) Route generation method, device and system
CN110945835B (en) Message synchronization method and device
EP2976857A1 (en) Detecting an access customer edge device of a provider edge device
CN106656786B (en) Flow protection 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