CN112737950B - Service flow forwarding method and device - Google Patents

Service flow forwarding method and device Download PDF

Info

Publication number
CN112737950B
CN112737950B CN202011547074.9A CN202011547074A CN112737950B CN 112737950 B CN112737950 B CN 112737950B CN 202011547074 A CN202011547074 A CN 202011547074A CN 112737950 B CN112737950 B CN 112737950B
Authority
CN
China
Prior art keywords
policy
color attribute
forwarding
service
traffic
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
CN202011547074.9A
Other languages
Chinese (zh)
Other versions
CN112737950A (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202011547074.9A priority Critical patent/CN112737950B/en
Publication of CN112737950A publication Critical patent/CN112737950A/en
Application granted granted Critical
Publication of CN112737950B publication Critical patent/CN112737950B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

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

Abstract

The specification provides a service traffic forwarding method and device, and relates to the technical field of communication. A service flow forwarding method is applied to PE equipment of an SR network, and comprises the following steps: receiving service flow; if the service flow is not matched with the routing strategy, adding default color attributes to the service flow; and forwarding the service traffic through the first SR-Policy corresponding to the default color attribute according to the default color attribute. By the method, the configuration efficiency of the SR network can be improved.

Description

Service flow forwarding method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding service traffic.
Background
As the demand for data communication increases, networks are also expanding. To implement multipath forwarding in a network, various forwarding protocols are also provided in the network to make traffic more accurate and efficient to forward.
SR Policy (Segment Routing Policy) provides a flexible forwarding path selection method as a tunnel forwarding manner, and meets different forwarding requirements of users. When a plurality of paths exist between the head node and the tail node of the SR network, the SR Policy is reasonably utilized to select the forwarding path, so that the management and the planning of the network can be facilitated, and the forwarding pressure of the network equipment can be effectively reduced.
In the SR network, it is necessary to configure corresponding color attributes for different service flows and direct a service flow with a certain color attribute to a corresponding SR-Policy for forwarding, but in the prior art, along with the extension of the network, a large number of routing policies need to be configured on the head node and the tail node to implement the direction guidance for different service flows, so that the configuration efficiency of the SR network is very low.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a method and an apparatus for forwarding a service traffic, which can improve the configuration efficiency of an SR network.
According to a first aspect of embodiments of the present specification, a method for forwarding service traffic is provided, where the method is applied to a PE device of an SR network, and the method includes:
receiving service flow;
if the service flow is not matched with the routing strategy, adding default color attributes to the service flow;
and forwarding the service traffic through the first SR-Policy corresponding to the default color attribute according to the default color attribute.
Optionally, after receiving the service traffic, the method further includes:
if the service flow is matched with the routing strategy, adding a first color attribute in the service flow;
and forwarding the service traffic through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
Further, after the first color attribute is added to the traffic flow, the method further includes:
and if the SR-Policy corresponding to the first color attribute is not found, forwarding the service flow through the first SR-Policy.
Optionally, multiple forwarding paths are set in the first SR-Policy.
Optionally, a default path pointing to the peer PE device is set in the first SR-Policy, where the default path has the lowest priority in the first SR-Policy.
According to a second aspect of the embodiments of the present specification, there is provided a service traffic forwarding apparatus, which is applied to a PE device of an SR network, and includes:
a receiving unit, configured to receive a service flow;
the processing unit is used for adding default color attributes to the service flow if the service flow is not matched with the routing strategy;
and the sending unit is used for forwarding the service traffic through the first SR-Policy corresponding to the default color attribute according to the default color attribute.
Optionally, the processing unit is further configured to, if the service traffic matches the routing policy, add a first color attribute to the service traffic;
and the sending unit is also used for forwarding the service flow through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
Further, the sending unit is further configured to forward the service traffic through the first SR-Policy if the SR-Policy corresponding to the first color attribute is not found.
Optionally, a plurality of forwarding paths are provided in the first SR-Policy.
Optionally, a default path pointing to the peer PE device is set in the first SR-Policy, where the default path has the lowest priority in the first SR-Policy.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, by setting the default color attribute for the service traffic, the service traffic matching the routing Policy with the additional color attribute is forwarded to the background traffic through the SR-Policy corresponding to the default color attribute, so that time consumed by configuring the routing Policy for the background traffic is avoided, time for performing routing configuration and SR-Policy configuration in the SR network is reduced, and configuration efficiency of the SR network is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of the specification.
FIG. 1 is one of the types provided herein;
fig. 2 is a flowchart of a service traffic forwarding method according to the present application;
fig. 3 is another networking diagram of a method for forwarding service traffic according to the present application, in which service traffic is forwarded through SR-Policy 1;
fig. 4 is another networking diagram of a service traffic forwarding method according to the present application, in which a forwarding path in SR-Policy1 fails;
fig. 5 is a schematic structural diagram of a traffic forwarding apparatus according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The application provides a service flow forwarding method, which is applied to a PE device in an SR network shown in FIG. 1;
the method, as shown in fig. 2, includes:
and S100, receiving the service flow.
In the SR network shown in fig. 1, a CE (Customer Edge) device, a PE (Provider Edge) device, and a P (Provider Edge) device are provided. The PE device is used for being connected with the CE device and the P device respectively, and the CE device is used for being connected with the user host. The P devices are used to form a core network. The PE devices at two ends of the core network may be referred to as a head node and a tail node, and certainly, the head node and the tail node are relative concepts and determined according to the flow direction of the service traffic.
The CE device is configured to receive a service traffic sent by the user host, and forward the service traffic to a corresponding PE device, and the PE device selects an appropriate path from the core network to forward the service traffic, and finally reaches the PE device at the opposite end.
SR-Policy is deployed on the PE device, where SR-Policy may be understood as a tunnel, and when a service traffic reaches a head node, a routing Policy configured on the PE device adds a color attribute to the service traffic (which may be understood as a forwarding identifier, and a service traffic carrying a specific forwarding identifier may be forwarded through the corresponding SR-Policy), which is also referred to as route coloring. The SR-Policy may be deployed from an SDN (Software Defined Network) controller, or may be directly configured on a PE device. Optionally, the color attribute may be added to an extended community attribute of the service traffic, so that the protocol content of the original protocol does not need to be modified, and the applicability of the scheme is higher.
The following description will be made taking an SR network as an example as shown in fig. 1. As can be seen from fig. 1, in the core network, 4P devices, that is, P1, P2, P3, and P4 are deployed, and P1 to P4 are connected to PE1 and PE2, respectively, CE1 is connected to PE1, and CE2 is connected to PE 2.
Three SR-Policy, SR-Policy1, SR-Policy2, and SR-Policy3 are deployed on PE1, corresponding to color attribute 1, color attribute 2, and color attribute 3, respectively. The forwarding path of SR-Policy1 is PE1-P1-PE2, and the forwarding path of SR-Policy2 is PE1-P2-PE 2. In SR-Policy3, multiple forwarding paths may be deployed, and in the SR network shown in fig. 1, two forwarding paths, PE1-P3-PE2 and PE1-P4-PE2, are included.
Moreover, in order to avoid the failure of the forwarding path in SR-Policy, which causes that the traffic flow directed to SR-Policy cannot complete forwarding, a default path may be deployed in SR-Policy (i.e., SR-Policy3), where the default path has the lowest priority and does not point to a specific link for forwarding, but specifies an opposite-end PE device, so that when all the forwarding paths in SR-Policy3 fail, the default path is matched. The default path is not limited to a specific forwarding link, and may also be referred to as an End SID path as long as the link between PE1 and PE2 can forward the traffic directed to SR-Policy 3.
At least two routing policies, routing policy1 and routing policy2, are also configured on PE 1. The matching item in the routing policy1 may be a segment 1, and the matching item in the routing policy2 may be a segment 2. For example, the traffic flow with the source IP address in segment 1 is matched to routing policy1, the traffic flow with the source IP address in segment 2 is matched to routing policy2, and color attribute 2 is added.
S101, if the service flow is not matched with the routing strategy, adding default color attributes to the service flow.
When the SR network works normally, PE1 may receive traffic flow 1 sent by CE1 to CE2, where the source IP address of traffic flow 1 is not in segment 1 and segment 2. PE1 parses the traffic flow, and determines that it does not match to routing policy1 and routing policy2 configured in PE1 according to the source IP address of the traffic flow.
Thus, it can be considered that the service traffic 1 belongs to the background traffic, and at this time, the service traffic 1 cannot be matched to the corresponding routing policy, so the PE1 will add the default color attribute, i.e., the color attribute 3, to the service traffic 1.
S102, forwarding the service flow through a first SR-Policy corresponding to the default color attribute according to the default color attribute.
Thereafter, PE1 may look up the corresponding SR-Policy according to the default color attribute, and color attribute 3 may correspond to SR-Policy3 according to the SR network shown in FIG. 1. Thus, PE1 directs traffic 1 labeled with color attribute 3 to SR-Policy3 for forwarding to the peer PE device (i.e., PE 2).
In addition, the traffic received by the PE device may also be a traffic that can be matched to the routing policy, as in the SR network shown in fig. 3, the CE1 sends the traffic 2 to the CE2, and the source IP address of the traffic 2 is in segment 1. At this time, after step 100, the method further includes:
s103, if the service flow is matched with the routing strategy, adding a first color attribute in the service flow.
And S104, forwarding the service traffic through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
When PE1 resolves traffic flow 2, it is determined that the source IP address of traffic flow 2 is in segment 1, and it can be matched to routing policy1 configured in PE 1. At this point, a first color attribute (i.e., color attribute 1) will be appended to the traffic flow 2.
Thereafter, PE1 determines that the color attribute carried by the service traffic 2 is color attribute 1, and finds that the SR-Policy corresponding to the color attribute 1 is the second SR-Policy (i.e., SR-Policy 1). Then PE1 may steer this traffic 2 into SR-Policy1, forwarding to PE2 via the forwarding path of PE1-P1-PE 2.
According to the service flow forwarding method provided by the application, the default color attribute is set for the service flow, so that the service flow matched with the routing strategy and the additional color attribute forwards the background flow through the SR-Policy corresponding to the default color attribute, the time consumed by configuring the routing strategy for the background flow is avoided, the time for performing routing configuration and SR-Policy configuration in the SR network is reduced, and the configuration efficiency of the SR network is improved.
Further, in the working process of the PE device, a problem of forwarding path failure may occur, so that although the PE device is configured with a corresponding SR-Policy, the SR-Policy cannot forward the traffic. For example, in the SR network shown in FIG. 4, a forwarding path (PE1-P1-PE2) in SR-Policy1 fails, causing SR-Policy1 to fail.
At this time, after step S103, the method further includes:
and S105, if the SR-Policy corresponding to the first color attribute is not found, forwarding the service flow through the first SR-Policy.
At this time, PE1 receives traffic 3, to which a first color attribute (i.e., color attribute 1) is added according to routing policy 1.
Because the forwarding path in the second SR-Policy (i.e., SR-Policy1) failed, the SR-Policy1 is cleared and PE1 cannot find the SR-Policy1 corresponding to the color attribute 1. As shown in fig. 4, where SR-Policy1 fails and its forwarding path cannot implement forwarding, PE1 may direct the traffic 3 to SR-Policy3 for forwarding.
Therefore, when the forwarding paths in other SR-policies configured on the PE equipment fail, the service traffic of the failed SR-Policy can be forwarded by configuring the SR-Policy for forwarding the background traffic, and the reliability of service traffic forwarding in the SR network is improved.
Correspondingly, the present application also provides a service traffic forwarding apparatus, as shown in fig. 5, a PE device applied to an SR network includes:
a receiving unit, configured to receive a service traffic;
the processing unit is used for adding default color attributes to the service flow if the service flow is not matched with the routing strategy;
and the sending unit is used for forwarding the service flow through the first SR-Policy corresponding to the default color attribute according to the default color attribute.
Optionally, the processing unit is further configured to, if the service traffic matches the routing policy, add a first color attribute to the service traffic;
and the sending unit is also used for forwarding the service flow through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
Further, the sending unit is further configured to forward the service traffic through the first SR-Policy if the SR-Policy corresponding to the first color attribute is not found.
Optionally, a plurality of forwarding paths are provided in the first SR-Policy.
Optionally, a default path pointing to the peer PE device is set in the first SR-Policy, where the default path has the lowest priority in the first SR-Policy.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
According to the service flow forwarding device, the default color attribute is set for the service flow, so that the service flow matched with the routing strategy and the additional color attribute is forwarded to the background flow through the SR-Policy corresponding to the default color attribute, the time consumed by configuring the routing strategy for the background flow is avoided, the time for configuring the routing and the SR-Policy in the SR network is reduced, and the configuration efficiency of the SR network is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A service flow forwarding method is applied to Provider Edge (PE) equipment of a Segment Routing (SR) network, and comprises the following steps:
receiving service flow;
if the service flow is not matched with the routing strategy, adding default color attributes to the service flow;
and forwarding the service flow through a first SR-Policy corresponding to the default color attribute according to the default color attribute.
2. The method of claim 1, further comprising, after the receiving traffic flow:
if the service flow is matched with a routing strategy, adding a first color attribute in the service flow;
and forwarding the service traffic through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
3. The method of claim 2, further comprising, after appending the first color attribute to the traffic flow:
and if the SR-Policy corresponding to the first color attribute is not found, forwarding the service flow through the first SR-Policy.
4. The method of claim 1, wherein a plurality of forwarding paths are provided in the first SR-Policy.
5. The method according to claim 1 or 4, wherein a default path pointing to a peer PE device is set in the first SR-Policy, and wherein the default path has the lowest priority in the first SR-Policy.
6. A service traffic forwarding apparatus is characterized in that a PE device applied to an SR network includes:
a receiving unit, configured to receive a service traffic;
the processing unit is used for adding default color attributes to the service flow if the service flow is not matched with the routing strategy;
and the sending unit is used for forwarding the service flow through a first SR-Policy corresponding to the default color attribute according to the default color attribute.
7. The apparatus of claim 6,
the processing unit is further configured to attach a first color attribute to the service traffic if the service traffic matches a routing policy;
the sending unit is further configured to forward the service traffic through a second SR-Policy corresponding to the first color attribute according to the first color attribute.
8. The apparatus of claim 7,
the sending unit is further configured to forward the service traffic through the first SR-Policy if the SR-Policy corresponding to the first color attribute is not found.
9. The apparatus of claim 6, wherein a plurality of forwarding paths are provided in the first SR-Policy.
10. The apparatus according to claim 6 or 9, wherein a default path pointing to a peer PE device is set in the first SR-Policy, and wherein the default path has the lowest priority in the first SR-Policy.
CN202011547074.9A 2020-12-24 2020-12-24 Service flow forwarding method and device Active CN112737950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011547074.9A CN112737950B (en) 2020-12-24 2020-12-24 Service flow forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011547074.9A CN112737950B (en) 2020-12-24 2020-12-24 Service flow forwarding method and device

Publications (2)

Publication Number Publication Date
CN112737950A CN112737950A (en) 2021-04-30
CN112737950B true CN112737950B (en) 2022-05-27

Family

ID=75605829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011547074.9A Active CN112737950B (en) 2020-12-24 2020-12-24 Service flow forwarding method and device

Country Status (1)

Country Link
CN (1) CN112737950B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348206A (en) * 2021-05-12 2022-11-15 中兴通讯股份有限公司 Route acquisition method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635684A (en) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 Method and system for classifying service flow
CN103312616A (en) * 2012-03-16 2013-09-18 华为技术有限公司 Method and device for establishing multicast path
CN107409080A (en) * 2015-03-04 2017-11-28 阿尔卡特朗讯美国公司 For servicing the system and method for providing maximum filling link via binding
CN110414928A (en) * 2019-07-09 2019-11-05 京信通信系统(中国)有限公司 Service stream classification processing method, device and communication equipment
CN111935004A (en) * 2020-10-12 2020-11-13 网络通信与安全紫金山实验室 SR Policy-based automatic drainage expansion method, router and system
CN112104553A (en) * 2020-08-27 2020-12-18 新华三技术有限公司 Method, device, routing equipment and storage medium for selecting path

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7411904B2 (en) * 2002-07-22 2008-08-12 Lucent Technologies Inc. Multiprotocol label switching (MPLS) edge service extraction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635684A (en) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 Method and system for classifying service flow
CN103312616A (en) * 2012-03-16 2013-09-18 华为技术有限公司 Method and device for establishing multicast path
CN107409080A (en) * 2015-03-04 2017-11-28 阿尔卡特朗讯美国公司 For servicing the system and method for providing maximum filling link via binding
CN110414928A (en) * 2019-07-09 2019-11-05 京信通信系统(中国)有限公司 Service stream classification processing method, device and communication equipment
CN112104553A (en) * 2020-08-27 2020-12-18 新华三技术有限公司 Method, device, routing equipment and storage medium for selecting path
CN111935004A (en) * 2020-10-12 2020-11-13 网络通信与安全紫金山实验室 SR Policy-based automatic drainage expansion method, router and system

Also Published As

Publication number Publication date
CN112737950A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US8467411B1 (en) Service-specific forwarding in an LDP-RSVP hybrid network
US11627070B2 (en) Data packet processing method and apparatus, storage medium, and electronic device
US20100142548A1 (en) Methods and apparatus for using both ldp and rsvp in a communications system
CN110912796B (en) Communication method, device and system
US9912586B2 (en) Method, system, and device for establishing pseudo wire
CN113381933B (en) SRv6 bidirectional forwarding detection method and system in network
WO2018032962A1 (en) Method, device and system for information synchronization
CN114465946B (en) Method, device and system for acquiring forwarding table item
US8964749B2 (en) Method, device and system for establishing a pseudo wire
CN112187648B (en) Multicast message forwarding method and device
WO2022184169A1 (en) Packet forwarding method and system, storage medium, and electronic device
US20230291682A1 (en) Method and device for processing data packet, storage medium, and electronic device
CN102474451B (en) Connect internal layer and outer MPLS label
CN107294859B (en) Information transmission method, device and system
CN112737950B (en) Service flow forwarding method and device
US20240056392A1 (en) Communication method and apparatus
US9948542B2 (en) Filtering on classes and particulars of a packet destination address at lower-protocol layers in a networked device
EP2627037A1 (en) Network configuration method, ring network system, and node
CN110460507A (en) Service bearer method, apparatus
CN116094987A (en) Method and device for determining forwarding path
WO2024007762A1 (en) Route publishing method, and communication method and apparatus
JP2002290441A (en) Ip-vpn router and method for automatically setting packet transfer path for ip-vpn
WO2023207227A1 (en) Router advertisement message processing method, apparatus, storage medium and electronic apparatus
CN114079629B (en) Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
WO2024027378A1 (en) Data transmission method and apparatus, and network device and storage medium

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