CN109547317B - Method and device for establishing connection tunnel - Google Patents
Method and device for establishing connection tunnel Download PDFInfo
- Publication number
- CN109547317B CN109547317B CN201811653133.3A CN201811653133A CN109547317B CN 109547317 B CN109547317 B CN 109547317B CN 201811653133 A CN201811653133 A CN 201811653133A CN 109547317 B CN109547317 B CN 109547317B
- Authority
- CN
- China
- Prior art keywords
- edge device
- network edge
- service network
- tunnel
- connection
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure provides a method and a device for establishing a connection tunnel, and relates to the technical field of communication. The method comprises the following steps: receiving routing information sent by a second service network edge device, wherein the routing information comprises group attribute information corresponding to a user network edge device, and acquiring a connection setting mark in the group attribute information, wherein the connection setting mark is used for establishing a connection tunnel between the second service network edge device and a first service network edge device; and establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark. By extracting the connection setting mark from the group attribute information and establishing the connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark, the process of reconfiguring the service configuration of each service network edge device is avoided, the steps required for establishing the connection tunnel are reduced, and the efficiency and the flexibility of establishing the connection tunnel are improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for establishing a connection tunnel.
Background
With the continuous development of communication technology, in order to facilitate the user to implement peer-to-peer data communication, a VPWS (Virtual Private Wire Service) networking supported by an EVPN (Ethernet Virtual Private Network) may be used for data communication, and peer-to-peer communication is implemented through a tunnel in the VPWS networking supported by the EVPN.
In the related art, if a connection tunnel is provided between a first PE (Provider Edge) device and a third PE device, and a CE (Customer Edge) device needs to access a second PE device after accessing the first PE device, and establish the connection tunnel between the second PE device and the third PE device, a service configuration (such as a local tag and a remote tag) in the first PE device may be deleted, and a service configuration of the second PE device may be reconfigured in the second PE device, so that the configured service configuration of the second PE device corresponds to the service configuration of the third PE device, thereby establishing the connection tunnel between the second PE device and the third PE device.
However, in the process of establishing the connection tunnel between the second PE device and the third PE device, the service configuration of the first PE device needs to be deleted, and the configuration service of the second PE device needs to be reconfigured, so that the steps of establishing the connection tunnel are more, the process is complex, and the maintainability of the VPWS networking supported by the EVPN is poor.
Disclosure of Invention
The present disclosure aims to provide a method and an apparatus for establishing a connection tunnel to solve the problem of poor maintainability of a VPWS networking supported by EVPN, in view of the above deficiencies in the prior art.
In order to achieve the above purpose, the technical solution adopted in the embodiments of the present disclosure is as follows:
in a first aspect, an embodiment of the present disclosure provides a method for establishing a connection tunnel, where the method is applied to a first service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, where the EVPN-supported VPWS networking includes: the first service network edge device, the second service network edge device, the third service network edge device and the user network edge device;
the method comprises the following steps:
receiving routing information sent by the second service network edge device, where the routing information includes group attribute information corresponding to the user network edge device, and the group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device;
acquiring a connection setting mark in the group attribute information, wherein the connection setting mark is used for establishing a connection tunnel between the second service network edge device and the first service network edge device;
and establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
Optionally, the routing information further includes a second tunnel parameter value of the second service network edge device;
the establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag includes:
judging whether a first tunnel parameter value of the first service network edge device is matched with the second tunnel parameter value;
and if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
Optionally, the establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag includes:
acquiring a pre-recorded preset access parameter and an access parameter in the group attribute information, wherein the preset access parameter is an access parameter in preset routing information, and the preset routing information is sent by a previous service network edge device which establishes a connection tunnel with the first service network edge device in advance;
and if the access parameter is greater than the preset access parameter, establishing a connection tunnel between the first service network edge device and the second service network edge device.
Optionally, the access parameter is obtained by adding and updating a preset accumulation parameter value when the second service network edge device determines that the user network edge device meets the migration condition, where the accumulation parameter value is a positive integer.
Optionally, after the establishing of the connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag, the method further includes:
and replacing the parameter value of the preset access parameter with the parameter value of the access parameter.
In a second aspect, an embodiment of the present disclosure provides a method for establishing a connection tunnel, where the method is applied to a second service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, and the EVPN-supported VPWS networking includes: a first service network edge device, the second service network edge device, a third service network edge device and a user network edge device;
the method comprises the following steps:
if the user network edge device meets the preset migration condition, generating group attribute information, wherein the group attribute information comprises a connection setting mark, and the connection setting mark is used for establishing a connection tunnel between the second service network edge device and the first service network edge device;
sending routing information including the community attribute information to the first service network edge device and the third service network edge device.
Optionally, the sending routing information including the community attribute information to the first service network edge device and the third service network edge device includes:
acquiring a tunnel parameter value of the second service network edge device;
sending routing information including the community attribute information and the tunnel parameter value to the first service network edge device and the third service network edge device.
Optionally, if the user network edge device meets a preset migration condition, generating group attribute information includes:
if the user network edge equipment meets the migration condition, adding an access parameter and a preset accumulation parameter value to obtain an updated access parameter, wherein the accumulation parameter value is a positive integer;
generating community attribute information including the updated access parameters.
In a third aspect, an embodiment of the present disclosure provides an apparatus for establishing a connection tunnel, where the apparatus is applied to a first service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, and the EVPN-supported VPWS networking includes: the first service network edge device, the second service network edge device, the third service network edge device and the user network edge device;
the device comprises:
a receiving module, configured to receive routing information sent by the second service network edge device, where the routing information includes group attribute information corresponding to the user network edge device, and the group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device;
an obtaining module, configured to obtain a connection setting flag in the group attribute information, where the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
and the establishing module is used for establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
Optionally, the routing information further includes a second tunnel parameter value of the second service network edge device;
the establishing module is specifically configured to determine whether a first tunnel parameter value of the first service network edge device matches the second tunnel parameter value; and if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
Optionally, the establishing module is further specifically configured to obtain a pre-recorded preset access parameter and an access parameter in the group attribute information, where the preset access parameter is an access parameter in preset routing information, and the preset routing information is sent by a previous service network edge device that establishes a connection tunnel with the first service network edge device in advance; and if the access parameter is greater than the preset access parameter, establishing a connection tunnel between the first service network edge device and the second service network edge device.
Optionally, the access parameter is obtained by adding and updating a preset accumulation parameter value when the second service network edge device determines that the user network edge device meets the migration condition, where the accumulation parameter value is a positive integer.
Optionally, the apparatus further comprises:
and the replacing module is used for replacing the parameter value of the preset access parameter with the parameter value of the access parameter.
In a fourth aspect, an embodiment of the present disclosure provides an apparatus for establishing a connection tunnel, where the apparatus is applied to a second service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, and the EVPN-supported VPWS networking includes: a first service network edge device, the second service network edge device, a third service network edge device and a user network edge device;
the device comprises:
a generating module, configured to generate group attribute information if the ue meets a preset migration condition, where the group attribute information includes a connection setting flag, and the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
a sending module, configured to send routing information including the community attribute information to the first service network edge device and the third service network edge device.
Optionally, the sending module is specifically configured to obtain a tunnel parameter value of the second service network edge device; sending routing information including the community attribute information and the tunnel parameter value to the first service network edge device and the third service network edge device.
Optionally, the generating module is specifically configured to, if the ue meets the migration condition, add an access parameter to a preset accumulation parameter value to obtain an updated access parameter, where the accumulation parameter value is a positive integer; generating community attribute information including the updated access parameters.
The beneficial effects of this disclosure are:
in the method and apparatus for establishing a connection tunnel provided in the embodiment of the present disclosure, a first service network edge device receives routing information including group attribute information sent by a second service network edge device, acquires a connection setting flag in the group attribute information, and establishes a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag. By extracting the connection setting mark from the group attribute information in the routing information and establishing the connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark, the process of reconfiguring the service configuration of each service network edge device is avoided, steps required for establishing the connection tunnel are reduced, and the efficiency and flexibility for establishing the connection tunnel are improved.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present disclosure and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings may be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an EVPN-supported VPWS networking according to a method for establishing a connection tunnel provided by the present disclosure;
fig. 2 is a flowchart illustrating a method for establishing a connection tunnel according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for establishing a connection tunnel according to another embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a method for establishing a connection tunnel according to another embodiment of the present disclosure;
fig. 5 is a schematic diagram of an apparatus for establishing a connection tunnel according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an apparatus for establishing a connection tunnel according to another embodiment of the present disclosure;
fig. 7 is a schematic diagram of an apparatus for establishing a connection tunnel according to another embodiment of the present disclosure;
fig. 8 is a schematic diagram of an apparatus for establishing a connection tunnel according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure.
Fig. 1 is a schematic structural diagram of an EVPN-supported VPWS networking according to a method for establishing a connection tunnel provided by the present disclosure, and as shown in fig. 1, the EVPN-supported VPWS networking may include: a first traffic network edge device 110, a second traffic network edge device 120, a third traffic network edge device 130, and a customer network edge device 140.
The user network edge device can access the first service network edge device, the second service network edge device or the third service network edge device.
Optionally, if the second service network edge device detects that the user network edge device is migrated from the third service network edge device to the second service network edge device, it may generate group attribute information including a connection setting flag, generate routing information according to the group attribute information, and finally send the generated routing information to the first service network edge device and the third service network edge device.
The connection set flag may be used to establish a connection tunnel between the second service network edge device and the first service network edge device.
Correspondingly, the first service network edge device may receive the routing information sent by the second service network edge device, obtain the group attribute information carried by the routing information according to the routing information, search for the connection setting flag from the group attribute information, and finally establish a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag.
It should be noted that the EVPN-supported VPWS networking may include a plurality of service network edge devices and a plurality of user network edge devices, and the number of the service network edge devices and the number of the user network edge devices are not limited in the embodiment of the present disclosure.
In addition, when the first service network edge device receives a plurality of routing information carrying the connection setting flag, the determination may be performed according to the access parameters in each group attribute information, and it is determined with which service network edge device the access parameter belongs to which the first service network edge device needs to establish the connection tunnel.
Fig. 2 is a flowchart illustrating a method for establishing a connection tunnel according to an embodiment of the present disclosure, which is applied to a first service network edge device shown in fig. 1, and as shown in fig. 2, the method includes:
The group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device. That is, the community attribute information is used to indicate that the customer network edge device has access to other service network edge devices before accessing the second service network edge device.
For example, if the second service network edge device determines that the user network edge device accesses the third service network edge device according to the received data before sending the routing information, the group attribute information may be generated, and the routing information sent to the other service network edge devices may be generated according to the group attribute information.
Since the customer network edge device may access the second service network edge device and may also access the third service network edge device, when the customer network edge device accesses different service network edge devices, the service network edge device accessed by the customer network edge device may generate and send routing information to other service network edge devices, so as to establish a corresponding connection tunnel.
Therefore, when the customer network edge device is migrated from the third service network edge device to the second service network edge device, the first service network edge device may receive the routing information sent by the second service network edge device.
It should be noted that the EVPN-supported VPWS networking may include a plurality of service network edge devices and a plurality of service network edge devices, and the embodiment of the present disclosure is only for simple description, and takes the first service network edge device, the second service network edge device, the third service network edge device, and the user network edge device as examples, and in practical application, the number of the service network edge devices and the user network edge devices is not limited.
The connection setting flag is used for establishing a connection tunnel between the second service network edge device and the first service network edge device.
After receiving the routing information, the first service network edge device may obtain the group attribute information in the routing information, and extract the connection setting flag in the group attribute information, so that in the subsequent step, a connection tunnel between the first service network edge device and the second service network edge device may be established according to the extracted connection setting flag.
Specifically, the first service network edge device may first determine whether the routing information includes the group attribute information, and if the routing information does not include the group attribute information, it indicates that the user network edge device is the first access second service network edge device, and may determine whether a connection tunnel between the first service network edge device and the second service network edge device needs to be established according to tunnel parameter values respectively corresponding to the first service network edge device and the second service network edge device.
However, if the routing information includes the group attribute information, the connection setting flag in the group attribute information may be extracted according to a preset field and an identifier, so as to obtain the connection setting flag in the routing information.
For example, if the community attribute information is as follows:
then | R | in the routing information may be extracted according to a preset field to obtain a connection setting flag | R |, where | R | may correspond to different parameter values, for example, the number may be "1", "2", or "3", or other parameter values, which is not limited in this embodiment of the present invention.
After the first service network edge device extracts the connection setting flag, a connection tunnel between the first service network edge device and the second service network edge device may be established according to the connection setting flag.
It should be noted that, in the process of establishing a connection tunnel between a first service network edge device and a second service network edge device, tunnel parameter values respectively corresponding to the first service network edge device and the second service network edge device need to be matched, and if the tunnel parameter values do not match, the connection tunnel cannot be established according to a connection setting flag.
The tunnel parameter value may include a Local (Local) flag and a remote (Rebomte) flag, and the Local flag is different from the remote flag, and both the Local flag and the remote flag may be represented by numbers. For example, the local label of the second service network edge device may be 2, and the remote label may be 1, which is used to indicate that the tunnel label of the second service network edge device is 2, and a connection tunnel needs to be established with the service network edge device whose tunnel label is 1.
To sum up, in the method for establishing a connection tunnel provided in the embodiment of the present disclosure, the first service network edge device sends routing information including group attribute information by receiving the second service network edge device, obtains a connection setting flag in the group attribute information, and establishes a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag. By extracting the connection setting mark from the group attribute information in the routing information and establishing the connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark, the process of reconfiguring the service configuration of each service network edge device is avoided, steps required for establishing the connection tunnel are reduced, and the efficiency and flexibility for establishing the connection tunnel are improved.
It should be noted that, after the first service network edge device obtains the connection setting flag, the first service network edge device may establish a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag. Because different service network edge devices can correspond to different tunnel parameter values, before the connection tunnel is established, whether a first tunnel parameter value of a first service network edge device is matched with a second tunnel parameter value of a second service network edge device can be judged, so that the connection tunnel is established according to the judgment result.
And if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
For example, the first service network edge device may determine whether the local tag in the first tunnel parameter value is consistent with the remote tag in the second tunnel parameter value, to obtain a first determination result, and determine whether the remote tag in the first tunnel parameter value is consistent with the local tag in the second tunnel parameter value, to obtain a second determination result.
And when the first judgment result and the second judgment result both show consistency, the first tunnel parameter value is matched with the second tunnel parameter value, and a connection tunnel between the first service network edge device and the second service network edge device can be established according to the connection setting mark.
For example, if the local flag in the first tunnel parameter value is 1, the far-end flag is 2, the local flag in the second tunnel parameter value is 2, and the far-end flag is 1, the local flag in the first tunnel parameter value is consistent with the far-end flag in the second tunnel parameter value, and the far-end flag in the first tunnel parameter value is consistent with the local flag in the second tunnel parameter value, then both the first determination result and the second determination result indicate consistency, and then the connection tunnel between the first service network edge device and the second service network edge device may be established.
Further, if the first service network edge device receives the routing information including the connection setting flag sent by the second service network edge device and also receives the routing information including the connection setting flag sent by other service network edge devices, and the first service network edge device can only establish a connection tunnel with one service network edge device that sends the routing information, the first service network edge device may determine the service network edge device that establishes the connection tunnel according to the pre-recorded preset access parameters.
Optionally, a pre-recorded preset access parameter and an access parameter in the group attribute information are obtained, and if the access parameter is greater than the preset access parameter, a connection tunnel between the first service network edge device and the second service network edge device is established.
The preset access parameter is an access parameter in preset routing information, the preset routing information is sent by a previous service network edge device which establishes a connection tunnel with a first service network edge device in advance, and the previous service network edge device is a service network edge device which currently establishes a connection tunnel with the first service network edge device.
And the access parameter is obtained by adding and updating the preset accumulation parameter value when the second service network edge equipment determines that the user network edge equipment meets the migration condition, wherein the accumulation parameter value is a positive integer.
Specifically, the first service network edge device may obtain a pre-recorded preset access parameter, compare the preset access parameter with an access parameter in the routing information, and determine whether a parameter value of the access parameter is greater than a parameter value of the preset access parameter. If the parameter value of the access parameter is greater than the parameter value of the preset access parameter, it indicates that the user network edge device has moved and needs to re-establish the connection tunnel, and then the connection tunnel between the first service network edge device and the second service network edge device can be established.
For example, when the user network edge device is accessing the third service network edge device, the first service network edge device may establish a connection tunnel between the first service network edge device and the third service network edge device according to the routing information sent by the third service network edge device, and then may use an access parameter in the routing information sent by the third service network edge device as a preset access parameter, and use the third service network edge device as a previous service network edge device.
Further, if the preset access parameter is recorded in the first service network edge device, which indicates that a connection tunnel is set between the first service network edge device and another service network edge device, before the connection tunnel between the first service network edge device and the second service network edge device is established, the connection tunnel between the first service network edge device and another service network edge device needs to be interrupted.
Therefore, corresponding to the above example, if the preset access parameter is 2, the access parameter is 3, and the access parameter is greater than the preset access parameter, the connection tunnel between the first service network edge device and the third service network edge device may be interrupted, and the connection tunnel between the first service network edge device and the second service network edge device may be established.
It should be noted that, if the preset access parameter is not recorded in the first service network edge device, the parameter value of the preset access parameter may be determined to be 0, so that the connection tunnel between the first service network edge device and the second service network edge device is established without comparing the size relationship between the preset access parameter and the access parameter.
In addition, after the connection tunnel between the first service network edge device and the second service network edge device is established, the recorded preset access parameter may be updated, that is, the pre-recorded preset access parameter is deleted, and the access parameter in the routing information sent by the second service network edge device is used as a new preset access parameter, so that the second service network edge device may generate the group attribute information according to the updated preset access parameter, or the connection tunnel is established.
Thus, the first traffic network edge device may replace the parameter values of the preset access parameters with the parameter values of the access parameters.
For example, if the preset access parameter pre-recorded by the first service network edge device is "2" and the access parameter in the routing information sent by the second service network edge device is "3", the preset access parameter may be updated to "3".
Fig. 3 is a flowchart illustrating a method for establishing a connection tunnel according to another embodiment of the present disclosure, which is applied to a second service network edge device shown in fig. 1, and as shown in fig. 3, the method includes:
The group attribute information includes a connection setting flag, and the connection setting flag is used for establishing a connection tunnel between the second service network edge device and the first service network edge device.
Moreover, the migration condition may be that the ue has previously accessed another service network edge device, that is, the ue is migrated from the another service network edge device to the second service network edge device.
In the VPWS networking supported by EVPN, a user network edge device can access different service network edge devices, and can also be migrated to another service network edge device by one service network edge device when a preset migration condition is met.
Therefore, when the second service network edge device satisfies the migration condition, the community attribute information may be generated, so that in the subsequent step, the routing information sent to the other service network edge devices may be generated according to the community attribute information.
Specifically, the second service network edge device may detect whether a user network edge device is accessed, and when the second service network edge device detects that the user network edge device is accessed, it may first determine whether the user network edge device satisfies a preset migration condition, and if the user network edge device satisfies the migration condition, may generate group attribute information corresponding to the user network edge device.
For example, after detecting that the user network edge device is accessed, the second service network edge device may query the received history data (e.g., routing information sent by other service network edge devices), determine whether the user network edge device has accessed other service network edge devices, and if the user network edge device has accessed other service network edge devices, determine that the user network edge device satisfies the migration condition, thereby generating the group attribute information.
It should be noted that the group attribute information may include not only the connection setting flag, but also the access parameter, so that after receiving the routing information sent by the multiple service network edge devices, the other service network edge devices may establish a connection tunnel according to the connection setting flag and the access parameter.
The access parameter may be used to indicate the number of times that the user network edge device accesses each service network edge device, and the access parameter may be determined according to routing information sent by the service network edge device to which the user network edge device accesses.
After the second service network edge device generates the group attribute information, it may generate routing information for establishing tunnel connection in combination with the group attribute information, and correspondingly, the service network edge device that receives the routing information may establish a connection tunnel with the second service network edge device according to the received routing information.
Because the EVPN-supported VPWS networking includes not only the second service network edge device but also the first service network edge device and the third service network edge device, the second service network edge device can send routing information to the first service network edge device and the third service network edge device.
It should be noted that, in the embodiment of the present disclosure, a first service network edge device, a second service network edge device, a third service network edge device, and a user network edge device are taken as examples for description. In practical application, a VPWS networking supported by EVPN may include multiple service network edge devices, and a second service network edge device may send routing information to both a first service network edge device and a third service network edge device, and may also send routing information to other service network edge devices.
To sum up, in the method for establishing a connection tunnel according to the embodiment of the present disclosure, when the user network edge device meets the preset migration condition, the second service network edge device may generate the group attribute information, and send the routing information including the group attribute information to the first service network edge device and the third service network edge device, so that the first service network edge device or the third service network edge device establishes the connection tunnel with the second service network edge device according to the connection setting flag in the group attribute information. The group attribute information carrying the connection setting mark is sent to the first service network edge device and the third service network edge device, and the first service network edge device or the third service network edge device can establish the connection tunnel with the second service network edge device by the connection setting mark in the group attribute information, so that the process of configuring each service network edge device is avoided, the connection tunnel between each service network edge device can be established according to the service network edge device accessed by the user network edge device, the steps required for establishing the connection tunnel are reduced, the efficiency of establishing the connection tunnel is improved, and the flexibility of establishing the connection tunnel is improved.
It should be noted that the group attribute information may include not only the connection setting flag, but also an access parameter corresponding to the user network edge device, so that the first service network edge device or the third service network edge device may establish a connection tunnel with the second service network edge device according to the connection setting flag and by combining the access parameter. In the process of executing step 301, if the ue meets the migration condition, the access parameter and a preset accumulation parameter value may be added to obtain an updated access parameter, and group attribute information including the updated access parameter is generated, where the accumulation parameter value may be a positive integer.
If the customer network edge device is accessed to a third service network edge device after being accessed to other service network edge devices, the routing information sent by the third service network edge device and received by the second service network edge device may include access parameters corresponding to the customer network edge device, and correspondingly, the second service network edge device may add the access parameters in combination with preset accumulation parameter values on the basis of the access parameters to obtain updated access parameters, so as to generate group attribute information according to the updated access parameters.
For example, if the access parameter in the routing information sent by the third service network edge device is 1 and the preset accumulation parameter value is also 1, the access parameter may be updated, and the obtained updated access parameter may be 1+1 — 2.
However, when the ue first accesses the third service network edge device and migrates from the third service network edge device to the second service network edge device, the second service network edge device may determine that the ue accesses the third service network edge device according to routing information sent by the third service network edge device, and the routing information does not include an access parameter corresponding to the ue, and may generate an initial access parameter according to a preset parameter value and generate group attribute information according to the initial access parameter.
Further, the access parameter in the community attribute information may be the number shown in the example in step 202, or may also represent the access parameter in the community attribute information in other manners, which is not limited in this disclosure.
In addition, in order to establish a connection tunnel, not only the connection setting flag and the access parameter included in the routing information are required, but also the tunnel parameter value of the second service network edge device is required to be carried, and correspondingly, each service network edge device receiving the routing information can establish a connection tunnel with the second service network edge device according to the tunnel parameter value, the connection setting flag and the access parameter.
Thus, the second service network edge device may obtain the tunnel parameter value of the second service network edge device, thereby sending routing information including the community attribute information and the tunnel parameter value to the first service network edge device and the third service network edge device.
Fig. 4 is a flowchart illustrating a method for establishing a connection tunnel according to another embodiment of the present disclosure, which is applied to a first service network edge device and a second service network edge device shown in fig. 1, and as shown in fig. 4, the method includes:
The group attribute information includes a connection setting flag, and the connection setting flag is used for establishing a connection tunnel between the second service network edge device and the first service network edge device.
The group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device.
Furthermore, the routing information may further include a second tunnel parameter value of the second traffic network edge device.
The connection setting flag is used for establishing a connection tunnel between the second service network edge device and the first service network edge device.
And step 406, the first service network edge device establishes a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag.
To sum up, in the method for establishing a connection tunnel according to the embodiment of the present disclosure, when the user network edge device meets the preset migration condition, the second service network edge device may generate the group attribute information, and send the routing information including the group attribute information to the first service network edge device and the third service network edge device, so that the first service network edge device or the third service network edge device establishes the connection tunnel with the second service network edge device according to the connection setting flag in the group attribute information. The group attribute information carrying the connection setting mark is sent to the first service network edge device and the third service network edge device, and the first service network edge device or the third service network edge device can establish the connection tunnel with the second service network edge device by the connection setting mark in the group attribute information, so that the process of configuring each service network edge device is avoided, the connection tunnel between each service network edge device can be established according to the service network edge device accessed by the user network edge device, the steps required for establishing the connection tunnel are reduced, the efficiency of establishing the connection tunnel is improved, and the flexibility of establishing the connection tunnel is improved.
Fig. 5 is a schematic diagram of an apparatus for establishing a connection tunnel according to an embodiment of the present disclosure, which is applied to a first service network edge device shown in fig. 1, and as shown in fig. 5, the apparatus specifically includes:
a receiving module 501, configured to receive routing information sent by the second service network edge device, where the routing information includes group attribute information corresponding to the user network edge device, where the group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device;
an obtaining module 502, configured to obtain a connection setting flag in the group attribute information, where the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
the establishing module 503 is configured to establish a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag.
Optionally, the routing information further includes a second tunnel parameter value of the second service network edge device;
the establishing module 503 is specifically configured to determine whether a first tunnel parameter value of the first service network edge device matches the second tunnel parameter value; and if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
Optionally, the establishing module 503 is further specifically configured to obtain a pre-recorded preset access parameter and an access parameter in the group attribute information, where the preset access parameter is an access parameter in preset routing information, and the preset routing information is sent by a previous service network edge device that establishes a connection tunnel with the first service network edge device in advance; if the access parameter is greater than the preset access parameter, a connection tunnel between the first service network edge device and the second service network edge device is established.
Optionally, the access parameter is obtained by adding and updating a preset accumulation parameter value when the second service network edge device determines that the user network edge device meets the migration condition, where the accumulation parameter value is a positive integer.
Optionally, referring to fig. 6, the apparatus may further include:
a replacing module 504, configured to replace the parameter value of the preset access parameter with the parameter value of the access parameter.
To sum up, in the apparatus for establishing a connection tunnel provided in the embodiment of the present disclosure, the first service network edge device sends routing information including the group attribute information by receiving the second service network edge device, acquires the connection setting flag in the group attribute information, and then establishes a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag. By extracting the connection setting mark from the group attribute information in the routing information and establishing the connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark, the process of reconfiguring the service configuration of each service network edge device is avoided, steps required for establishing the connection tunnel are reduced, and the efficiency and flexibility for establishing the connection tunnel are improved.
Fig. 7 is a schematic diagram of an apparatus for establishing a connection tunnel according to an embodiment of the present disclosure, which is applied to a second service network edge device shown in fig. 1, and as shown in fig. 7, the apparatus specifically includes:
a generating module 701, configured to generate group attribute information if the ue meets a preset migration condition, where the group attribute information includes a connection setting flag, and the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
a sending module 702, configured to send routing information including the community attribute information to the first service network edge device and the third service network edge device.
Optionally, the sending module 702 is specifically configured to obtain a tunnel parameter value of the second service network edge device; sending routing information including the community attribute information and the tunnel parameter value to the first traffic network edge device and the third traffic network edge device.
Optionally, the generating module 701 is specifically configured to add the access parameter and a preset accumulation parameter value if the ue meets the migration condition, so as to obtain an updated access parameter, where the accumulation parameter value is a positive integer; community attribute information including the updated access parameters is generated.
To sum up, in the apparatus for establishing a connection tunnel provided in this embodiment of the present disclosure, when the user network edge device meets the preset migration condition, the second service network edge device may generate the group attribute information, and send the routing information including the group attribute information to the first service network edge device and the third service network edge device, so that the first service network edge device or the third service network edge device establishes the connection tunnel with the second service network edge device according to the connection setting flag in the group attribute information. The group attribute information carrying the connection setting mark is sent to the first service network edge device and the third service network edge device, and the first service network edge device or the third service network edge device can establish the connection tunnel with the second service network edge device by the connection setting mark in the group attribute information, so that the process of configuring each service network edge device is avoided, the connection tunnel between each service network edge device can be established according to the service network edge device accessed by the user network edge device, the steps required for establishing the connection tunnel are reduced, the efficiency of establishing the connection tunnel is improved, and the flexibility of establishing the connection tunnel is improved.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 8 is a schematic diagram of an apparatus for establishing a connection tunnel according to an embodiment of the present disclosure, where the apparatus may be integrated in a terminal device or a chip of the terminal device, and the terminal may be a computing device with a function of establishing a connection tunnel.
The device includes: memory 801, processor 802.
The memory 801 is used for storing programs, and the processor 802 calls the programs stored in the memory 801 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present disclosure also provides a program product, e.g. a computer readable storage medium, comprising a program which, when executed by a processor, is adapted to perform the above-described method embodiments.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (english: processor) to execute some steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (16)
1. A method for establishing a connection tunnel is applied to a first service network edge device in virtual private line service (VPWS) networking supported by an Ethernet Virtual Private Network (EVPN), and the VPWS networking supported by the EVPN comprises the following steps: the first service network edge device, the second service network edge device, the third service network edge device and the user network edge device;
the method comprises the following steps:
receiving routing information sent by the second service network edge device, where the routing information includes group attribute information corresponding to the user network edge device, and the group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device;
acquiring a connection setting mark in the group attribute information, wherein the connection setting mark is used for establishing a connection tunnel between the second service network edge device and the first service network edge device;
and establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
2. The method of claim 1, wherein the routing information further comprises a second tunnel parameter value for the second traffic network edge device;
the establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting flag includes:
judging whether a first tunnel parameter value of the first service network edge device is matched with the second tunnel parameter value;
and if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
3. The method of claim 1 or 2, wherein said establishing a connection tunnel between the first traffic network edge device and the second traffic network edge device according to the connection set flag comprises:
acquiring a pre-recorded preset access parameter and an access parameter in the group attribute information, wherein the preset access parameter is an access parameter in preset routing information, and the preset routing information is sent by a previous service network edge device which establishes a connection tunnel with the first service network edge device in advance;
and if the access parameter is greater than the preset access parameter, establishing a connection tunnel between the first service network edge device and the second service network edge device.
4. The method of claim 3, wherein the access parameter is obtained by adding and updating a preset accumulation parameter value when the second service network edge device determines that the user network edge device satisfies a migration condition, and the accumulation parameter value is a positive integer.
5. The method of claim 3, wherein after said establishing a connection tunnel between the first traffic network edge device and the second traffic network edge device according to the connection set flag, the method further comprises:
and replacing the parameter value of the preset access parameter with the parameter value of the access parameter.
6. A method for establishing a connection tunnel is applied to a second service network edge device in virtual private line service (VPWS) networking supported by an Ethernet Virtual Private Network (EVPN), and the VPWS networking supported by the EVPN comprises the following steps: a first service network edge device, the second service network edge device, a third service network edge device and a user network edge device;
the method comprises the following steps:
if the user network edge device meets the preset migration condition, generating group attribute information, wherein the group attribute information comprises a connection setting mark, and the connection setting mark is used for establishing a connection tunnel between the second service network edge device and the first service network edge device;
sending routing information including the community attribute information to the first service network edge device and the third service network edge device.
7. The method of claim 6, wherein said sending routing information including the community attribute information to the first traffic network edge device and the third traffic network edge device comprises:
acquiring a tunnel parameter value of the second service network edge device;
sending routing information including the community attribute information and the tunnel parameter value to the first service network edge device and the third service network edge device.
8. The method of claim 6, wherein the generating the community attribute information if the user network edge device satisfies a preset migration condition comprises:
if the user network edge equipment meets the migration condition, adding an access parameter and a preset accumulation parameter value to obtain an updated access parameter, wherein the accumulation parameter value is a positive integer;
generating community attribute information including the updated access parameters.
9. An apparatus for establishing a connection tunnel, applied to a first service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, the EVPN-supported VPWS networking comprising: the first service network edge device, the second service network edge device, the third service network edge device and the user network edge device;
the device comprises:
a receiving module, configured to receive routing information sent by the second service network edge device, where the routing information includes group attribute information corresponding to the user network edge device, and the group attribute information is generated by the second service network edge device when the user network edge device is migrated from the third service network edge device to the second service network edge device;
an obtaining module, configured to obtain a connection setting flag in the group attribute information, where the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
and the establishing module is used for establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
10. The apparatus of claim 9, wherein the routing information further comprises a second tunnel parameter value for the second traffic network edge device;
the establishing module is specifically configured to determine whether a first tunnel parameter value of the first service network edge device matches the second tunnel parameter value; and if the first tunnel parameter value is matched with the second tunnel parameter value, establishing a connection tunnel between the first service network edge device and the second service network edge device according to the connection setting mark.
11. The apparatus according to claim 9 or 10, wherein the establishing module is further specifically configured to obtain a pre-recorded preset access parameter and an access parameter in the group attribute information, where the preset access parameter is an access parameter in preset routing information, and the preset routing information is sent by a previous service network edge device that previously establishes a connection tunnel with the first service network edge device; and if the access parameter is greater than the preset access parameter, establishing a connection tunnel between the first service network edge device and the second service network edge device.
12. The apparatus of claim 11, wherein the access parameter is obtained by the second service network edge device performing an addition update through a preset accumulation parameter value when the second service network edge device determines that the ue satisfies a migration condition, and the accumulation parameter value is a positive integer.
13. The apparatus of claim 11, wherein the apparatus further comprises:
and the replacing module is used for replacing the parameter value of the preset access parameter with the parameter value of the access parameter.
14. An apparatus for establishing a connection tunnel, applied to a second service network edge device in a virtual private line service VPWS networking supported by an ethernet virtual private network EVPN, the EVPN-supported VPWS networking comprising: a first service network edge device, the second service network edge device, a third service network edge device and a user network edge device;
the device comprises:
a generating module, configured to generate group attribute information if the ue meets a preset migration condition, where the group attribute information includes a connection setting flag, and the connection setting flag is used to establish a connection tunnel between the second service network edge device and the first service network edge device;
a sending module, configured to send routing information including the community attribute information to the first service network edge device and the third service network edge device.
15. The apparatus of claim 14, wherein the sending module is specifically configured to obtain a tunnel parameter value of the second service network edge device; sending routing information including the community attribute information and the tunnel parameter value to the first service network edge device and the third service network edge device.
16. The apparatus of claim 14, wherein the generating module is specifically configured to add an access parameter to a preset accumulation parameter value if the ue meets the migration condition, so as to obtain an updated access parameter, where the accumulation parameter value is a positive integer; generating community attribute information including the updated access parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811653133.3A CN109547317B (en) | 2018-12-29 | 2018-12-29 | Method and device for establishing connection tunnel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811653133.3A CN109547317B (en) | 2018-12-29 | 2018-12-29 | Method and device for establishing connection tunnel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109547317A CN109547317A (en) | 2019-03-29 |
CN109547317B true CN109547317B (en) | 2020-12-08 |
Family
ID=65833932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811653133.3A Active CN109547317B (en) | 2018-12-29 | 2018-12-29 | Method and device for establishing connection tunnel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109547317B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220304079A1 (en) * | 2020-09-16 | 2022-09-22 | Apple Inc. | Security protection on user consent for edge computing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991441A (en) * | 2015-03-24 | 2016-10-05 | 杭州迪普科技有限公司 | Method and device for selectively issuing routing forwarding table for BGP (border gateway protocol) routing |
CN106453025A (en) * | 2016-11-04 | 2017-02-22 | 杭州华三通信技术有限公司 | Tunnel creating method and device |
CN106789523A (en) * | 2016-04-29 | 2017-05-31 | 新华三技术有限公司 | The creation method and device of a kind of logical tunnel |
CN106878288A (en) * | 2017-01-20 | 2017-06-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN108199963A (en) * | 2017-12-27 | 2018-06-22 | 新华三技术有限公司 | Message forwarding method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10116467B2 (en) * | 2016-10-17 | 2018-10-30 | Cisco Technology, Inc. | Ethernet tag mapping in virtual private wire service using ethernet virtual private network |
-
2018
- 2018-12-29 CN CN201811653133.3A patent/CN109547317B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991441A (en) * | 2015-03-24 | 2016-10-05 | 杭州迪普科技有限公司 | Method and device for selectively issuing routing forwarding table for BGP (border gateway protocol) routing |
CN106789523A (en) * | 2016-04-29 | 2017-05-31 | 新华三技术有限公司 | The creation method and device of a kind of logical tunnel |
CN106453025A (en) * | 2016-11-04 | 2017-02-22 | 杭州华三通信技术有限公司 | Tunnel creating method and device |
CN106878288A (en) * | 2017-01-20 | 2017-06-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN108199963A (en) * | 2017-12-27 | 2018-06-22 | 新华三技术有限公司 | Message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109547317A (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI659300B (en) | Method and device for providing equipment identification | |
CN113412608B (en) | Content pushing method and device, server and storage medium | |
CN103346912A (en) | Method, device and system for conducting warning correlation analysis | |
CN104462285A (en) | Privacy protection method for mobile service inquiry system | |
CN108985954A (en) | A kind of method and relevant device of incidence relation that establishing each mark | |
CN103036910B (en) | A kind of user's web access Behavior-Based control method and device | |
CN111177776A (en) | Multi-tenant data isolation method and system | |
CN115423030A (en) | Equipment identification method and device | |
CN111353136B (en) | Method and device for processing operation request | |
CN111177481B (en) | User identifier mapping method and device | |
CN116611411A (en) | Business system report generation method, device, equipment and storage medium | |
CN109547317B (en) | Method and device for establishing connection tunnel | |
CN106682014B (en) | Game display data generation method and device | |
CN102831179B (en) | web page processing method and device | |
CN110995489B (en) | Large data platform server management method, device, server and storage medium | |
CN113423120A (en) | Data distribution processing method and device based on private network terminal and electronic equipment | |
CN109842482B (en) | Information synchronization method, system and terminal equipment | |
CN112115401A (en) | Webpage data processing method, device and system based on cloud platform | |
CN108614844B (en) | Multimedia file generation method and device | |
CN115550413A (en) | Data calling method and device, service gateway and storage medium | |
CN111124467B (en) | Authority role display method, system, computer equipment and readable storage medium | |
CN113986995A (en) | Request distribution method and device, storage medium and electronic equipment | |
CN113434190A (en) | Data processing method and device, storage medium and electronic equipment | |
CN115604000B (en) | Override detection method, device, equipment and storage medium | |
CN106612515B (en) | Terminal APN synchronization method, device and system |
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 |