CN115865823A - Flow transmission method and device, computer equipment and storage medium - Google Patents

Flow transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115865823A
CN115865823A CN202211411426.7A CN202211411426A CN115865823A CN 115865823 A CN115865823 A CN 115865823A CN 202211411426 A CN202211411426 A CN 202211411426A CN 115865823 A CN115865823 A CN 115865823A
Authority
CN
China
Prior art keywords
vpn
traffic
flows
inner layer
scheduling information
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.)
Pending
Application number
CN202211411426.7A
Other languages
Chinese (zh)
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.)
21VIANET GROUP Inc
Original Assignee
21VIANET GROUP Inc
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 21VIANET GROUP Inc filed Critical 21VIANET GROUP Inc
Priority to CN202211411426.7A priority Critical patent/CN115865823A/en
Publication of CN115865823A publication Critical patent/CN115865823A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to a traffic transmission method, a traffic transmission device, traffic transmission equipment and a storage medium, and relates to the technical field of traffic transmission. The method comprises the following steps: receiving VPN inner layer labels corresponding to at least two virtual private network VPN flows transmitted by forwarding equipment through a target protocol; the target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two VPN flows have the same source network protocol IP address and the same destination IP address; determining traffic engineering TE tunnels of at least two VPN flows based on VPN inner layer labels corresponding to the at least two VPN flows respectively; sending scheduling information to the forwarding device so that the forwarding device transmits the at least two VPN flows based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel. By the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.

Description

Flow transmission method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of traffic transmission, in particular to a traffic transmission method, a traffic transmission device, computer equipment and a storage medium.
Background
In a scenario of backbone network Traffic path optimization and differentiated service, different Traffic flows need to be identified and captured, and different TE (Traffic Engineering) tunnels are introduced for carrying after the capture. And performing differential guarantee or optimization on the corresponding service flow led into different tunnels through different guarantee levels of different tunnels.
In the related art, traffic is generally identified and captured through Policy Based Routing (PBR) Based on a source IP (Internet Protocol) address and a destination IP address, and then a corresponding TE tunnel is introduced for carrying.
However, in the above technology, the method of capturing and steering based on the difference between the source IP address and the destination IP address cannot be adapted to the situation that there are multiple VPN (Virtual Private Network) flows between the same source IP address and the same destination IP address, so that the steering effect is poor.
Disclosure of Invention
The embodiment of the application provides a flow transmission method, a flow transmission device, flow transmission equipment and a storage medium, which can realize flow identification and capture of detailed VPN granularity, improve the accuracy of flow scheduling and further improve the flow guiding effect of VPN flow. The technical scheme is as follows:
in one aspect, a traffic transmission method is provided, where the method is performed by a controller, and the method includes:
receiving VPN inner layer labels corresponding to at least two virtual private network VPN flows transmitted by forwarding equipment through a target protocol; the target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two of the VPN flows have the same source network protocol IP address and the same destination IP address;
determining traffic engineering TE tunnels of at least two VPN flows based on the VPN inner layer labels corresponding to the at least two VPN flows respectively;
sending scheduling information to the forwarding device to enable the forwarding device to transmit at least two VPN flows based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
In another aspect, a traffic transmission method is provided, where the method is performed by a forwarding device, and the method includes:
transmitting target VPN inner layer labels corresponding to at least two virtual private network VPN flows to a controller through a target protocol; the target protocol is an expanded BGP-LS protocol; the target protocol comprises a field for carrying VPN inner layer labels; at least two of the VPN flows have the same source IP address and the same destination IP address;
receiving scheduling information sent by the controller based on the VPN labels corresponding to at least two VPN flows, wherein the scheduling information comprises a corresponding relation between the VPN flows and a TE tunnel;
and transmitting at least two VPN flows based on the scheduling information.
In another aspect, a traffic transmission apparatus is provided, the apparatus comprising:
the label receiving module is used for receiving VPN inner layer labels which correspond to at least two VPN flows transmitted by the forwarding equipment through a target protocol; the target protocol is an expanded BGP-LS protocol; the target protocol comprises a field for carrying the VPN inner layer label; at least two of the VPN flows have the same source IP address and the same destination IP address;
a tunnel determination module, configured to determine, based on the VPN inner layer labels corresponding to the at least two VPN flows, traffic engineering TE tunnels of the at least two VPN flows;
an information sending module, configured to send scheduling information to the forwarding device, so that the forwarding device transmits at least two pieces of VPN traffic based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
In a possible implementation manner, the target protocol includes a newly added target TLV field, and the target TLV field is configured to carry RD information of the VPN traffic and the VPN inner layer label.
In a possible implementation manner, the VPN flows in the same VPN instance correspond to the same VPN inner label;
alternatively, the first and second liquid crystal display panels may be,
the VPN flows of different routes respectively correspond to the VPN inner layer labels.
In one possible implementation manner, the tunnel determination module includes:
the priority determining submodule is used for determining the transmission priority of at least two VPN flows based on the VPN labels corresponding to the at least two VPN flows;
a tunnel allocation submodule configured to allocate the TE tunnels for at least two VPN flows based on the transmission priorities of the at least two VPN flows; and the tunnel attributes of the TE tunnels corresponding to the VPN flows with different transmission priorities are different.
In another aspect, a traffic transmission apparatus is provided, the apparatus comprising:
the label transmission module is used for transmitting target VPN inner layer labels corresponding to at least two virtual private network VPN flows to the controller through a target protocol; the target protocol is an expanded BGP-LS protocol; the target protocol comprises a field for carrying VPN inner layer labels; at least two of the VPN flows have the same source IP address and the same destination IP address;
an information receiving module, configured to receive scheduling information sent by the controller based on the VPN labels corresponding to at least two pieces of VPN traffic, where the scheduling information includes a correspondence between the VPN traffic and a TE tunnel;
and the flow transmission module is used for transmitting at least two VPN flows based on the scheduling information.
In a possible implementation manner, the traffic transmission module is configured to, based on the scheduling information, respectively import each VPN traffic into the corresponding TE tunnel for transmission.
In another aspect, a computer device is provided, which comprises a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the traffic transmission method.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, the computer program being loaded and executed by a processor to implement the traffic transmission method described above.
In another aspect, a computer program product is provided, which comprises at least one computer program, which is loaded and executed by a processor to implement the traffic transmission method provided in the above various alternative implementations.
The technical scheme provided by the application can comprise the following beneficial effects:
in the traffic scheduling method provided in the embodiment of the present application, the forwarding device transmits, to the controller, the VPN inner layer labels of at least two VPN traffics through the target protocol, so that the controller can distinguish the VPN traffics having the same source IP address and the same destination IP address, and perform TE tunnel allocation to send scheduling information to the forwarding device, instruct the forwarding device to transmit the at least two VPN traffics based on a correspondence between the VPN traffic and the TE tunnel included in the scheduling information; by the method, traffic identification and capturing detailed to VPN granularity are realized, and accuracy of traffic scheduling is improved, so that a VPN traffic diversion effect 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 application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram illustrating an MPLS-VPN network architecture according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating a traffic scheduling method according to an exemplary embodiment of the present application;
fig. 3 is a schematic diagram illustrating a traffic scheduling system corresponding to a traffic scheduling method according to an exemplary embodiment of the present application;
fig. 4 is a flowchart illustrating a traffic scheduling method according to an exemplary embodiment of the present application;
fig. 5 is a flowchart illustrating a traffic scheduling method according to an exemplary embodiment of the present application;
FIG. 6 illustrates an expanded view of BGP-LS provided by an exemplary embodiment of the present application;
fig. 7 is a block diagram illustrating a traffic transmitting device according to an exemplary embodiment of the present application;
FIG. 8 illustrates a block diagram of a traffic transmitting device provided in an exemplary embodiment of the present application;
fig. 9 is a block diagram of a network device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
For ease of understanding, the terms referred to in this application are explained below.
1) BGP-LS (BGP Link State, border gateway protocol-Link State)
The BGP-LS Protocol is an extension of the BGP (Border Gateway Protocol), and different TLVs (Type-Length-Value) are defined by the extended BGP Protocol to transfer information, so that transfer of various network information between a North-Bound Interface (North-Bound Interface) of a forwarding device and a network controller can be achieved. Based on the specification in RFC 7752 (North-Bound Distribution of Link-State and Traffic Engineering (TE) Information Using BGP), by establishing BGP connection between the forwarding device and the controller, the forwarding device may transmit Link State, network topology, and TE (Traffic Engineering) Information to the controller via a BGP Protocol, and the controller performs tunnel Path calculation based on the collected Information and transmits a calculation result of the tunnel Path to the forwarding device via a PCEP Protocol (Path calculation Element Communication Protocol) or a BGP Protocol.
2) MPLS-VPN (Multi-protocol Label Switching-Virtual Private Network)
MPLS-VPN refers to a technology of MPLS (Multi-protocol Label Switching) that constructs a VPN on a backbone broadband IP network to implement isolation of traffic, implement cross-regional, secure, high-speed, reliable data, voice, and image Multi-service communication, and combine related technologies such as differentiated services and traffic engineering to combine reliable performance, good scalability, rich functions of the public network with security, flexibility, and high efficiency of the private network.
The traffic in the MPLS-VPN network has two layers of labels, including an inner layer label (VPN Private label) and an outer layer label, where the inner layer label is distributed by MP-BGP (MultiProtocol-BGP), the outer layer label is a Tunnel label, the inner layer label is used to identify VPN traffic, and the outer layer label is used for Tunnel transmission.
Fig. 1 is a schematic diagram of an MPLS-VPN network architecture according to an exemplary embodiment of the present application, where the network architecture includes a CE (customer Edge) device 110, a pe (Provider Edge) device 120, as shown in fig. 1;
the CE device 110 is a customer-end router connected to a service provider, and the CE router provides service access for a customer by connecting to one or more PE routers. A CE router is typically an IP router that establishes an adjacency with a connected PE router.
PE device 120 is an edge router of the service provider backbone, the PE router connecting the CE router and the P router. VPN traffic flows through PE routers into the customer network or through PE routers to the MPLS backbone.
In the process of transmitting the VPN traffic, after the CE device 110 transmits the VPN traffic to the PE device 120, two tags, i.e., an inner layer tag and an outer layer tag, are added to the VPN traffic at the PE device, and then the PE device transmits the VPN traffic to which the two tags are added to the backbone network for transmission.
Fig. 2 is a flowchart illustrating a traffic scheduling method according to an exemplary embodiment of the present application, where the traffic scheduling method may be executed by a controller, and as shown in fig. 2, the traffic scheduling method may include the following steps:
step 210, receiving VPN inner layer labels corresponding to at least two virtual private network VPN flows transmitted by a forwarding device through a target protocol; the target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two VPN flows have the same source network protocol IP address and the same destination IP address.
In this embodiment of the present application, the forwarding device may be implemented as a PE device; the VPN inner layer label of each VPN traffic is a label added at the forwarding device; therefore, the forwarding device can acquire the VPN inner layer label of each VPN traffic, and transmit the VPN inner layer label of each VPN traffic to the controller through the target protocol.
The target protocol is an extended BGP-LS protocol and comprises a field for carrying an inner label of the VPN, so that the inner label of the VPN flow can be transferred.
Fig. 3 is a schematic diagram of a traffic scheduling system corresponding to a traffic scheduling method according to an exemplary embodiment of the present application, and as shown in fig. 3, the traffic scheduling system includes a forwarding device 310 and a controller 320; the same controller 320 may establish a BGP Session (BGP Session) with the multiple forwarding devices 310, run the BGP-LS protocol, and implement transfer of the VPN labels of the corresponding VPN flows from the forwarding devices 310 to the controller 320 through the newly extended field for carrying VPN inner-layer labels of the BGP-LS protocol.
Step 220, determining traffic engineering TE tunnels of at least two VPN flows based on the VPN inner layer labels corresponding to the at least two VPN flows.
After receiving the VPN inner layer labels corresponding to the respective VPN flows, the controller may distinguish the respective VPN flows having the same source IP address and destination IP address, for example, distinguish importance and guarantee level of a service corresponding to the respective VPN flows, thereby determining a TE tunnel for transmitting the respective VPN flows.
Step 230, sending scheduling information to the forwarding device, so that the forwarding device transmits at least two VPN flows based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
To sum up, in the traffic scheduling method provided in this embodiment of the present application, the forwarding device transmits, to the controller, the VPN inner layer labels of at least two VPN traffic through the target protocol, so that the controller can distinguish VPN traffic having the same source IP address and the same destination IP address, and perform TE tunnel allocation, so as to send scheduling information to the forwarding device, and instruct the forwarding device to transmit the at least two VPN traffic based on the correspondence between the VPN traffic and the TE tunnel included in the scheduling information; by the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.
Fig. 4 shows a flowchart of a traffic scheduling method according to an exemplary embodiment of the present application, where the traffic scheduling method may be executed by a forwarding device, and the forwarding device may be the PE device shown in fig. 1, and as shown in fig. 4, the traffic scheduling method may include the following steps:
step 410, transmitting target VPN inner layer labels corresponding to at least two VPN flows to a controller through a target protocol; the target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two VPN traffic have the same source IP address and the same destination IP address.
Step 420, receiving scheduling information sent by the controller based on the VPN labels corresponding to the at least two VPN flows, where the scheduling information includes a correspondence between the VPN flows and the TE tunnels.
Step 430, transmitting at least two VPN flows based on the scheduling information.
To sum up, in the traffic scheduling method provided in this embodiment of the present application, the forwarding device transmits respective VPN inner labels of at least two VPN traffic to the controller through the target protocol, so that the controller can distinguish VPN traffic having a same source IP address and a same destination IP address, and perform TE tunnel allocation, so as to send scheduling information to the forwarding device, and instruct the forwarding device to transmit the at least two VPN traffic based on a correspondence between the VPN traffic and the TE tunnel included in the scheduling information; by the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.
Fig. 5 shows a flowchart of a traffic scheduling method according to an exemplary embodiment of the present application, where the traffic scheduling method may be performed by a forwarding device and a controller in an interaction manner, and the forwarding device may be implemented as the PE device shown in fig. 1, and as shown in fig. 5, the traffic scheduling method may include the following steps:
step 510, the forwarding device transmits target VPN inner layer labels corresponding to at least two virtual private network VPN flows to the controller through a target protocol; correspondingly, the controller receives the VPN inner layer labels corresponding to at least two virtual private network VPN flows respectively, which are transmitted by the forwarding device through the target protocol.
The target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two VPN traffic have the same source IP address and the same destination IP address.
Optionally, the target protocol includes a newly added target TLV field, where the target TLV field is used to carry RD information of the VPN traffic and a VPN inner layer tag.
The RD information of the VPN traffic refers to a mark added in front of an IPv4 address of the VPN traffic to distinguish the VPN traffic of the same IP address. Therefore, the RD information of the VPN traffic carried in the target TLV field and the VPN inner label have a corresponding relationship, and the controller may determine the VPN traffic corresponding to the VPN inner label based on the RD information of the VPN traffic.
That is to say, in the embodiment of the present application, a new TLVs (VPN label TLVs) is defined in the BGP-LS protocol to represent a VPN inner label, and then VPN label information is carried in the BGP-LS, and the VPN label information is transferred through a BGP connection between the forwarding device and the controller.
In MPLS-VPN networking, VPN inner layer labels are distributed through MP-BGP in two ways, each instance label and each route label. Each label of each instance is that the same label is distributed to all routes from the same VPN instance, namely VPN flow in the same VPN instance corresponds to the same VPN inner layer label; each label of each route means that each route is allocated with one label, namely, the VPN flows of different routes respectively correspond to respective VPN inner layer labels.
In a possible case, if the number of routes of the VPN traffic is large, the VPN inner label resource may be insufficient, and in order to save the VPN inner label resource, a per-label manner per instance may be selected to perform the allocation of the VPN inner label.
Fig. 6 illustrates an extended schematic diagram of BGP-LS provided in an exemplary embodiment of the present application, as shown in fig. 6, an existing BGP-LS protocol 610 includes a Type (Type) field, a Length (Length) field, and a Value (Value) field; the target protocol 620, that is, the extended BGP-LS protocol, includes a Type (Type) field, a Length (Length) field, and a newly added target TLV field, where the target TLV field includes an RD value field of VPN traffic and a VPN inner label field; under the distribution mode of each label of each route, the target TLV field can also contain a prefix field for carrying the route information of each VPN flow.
The length of each field is as follows:
type: type field, 16bit length;
length: a message length field, 16bit length;
route distingguicher: the RD value field of VPN flow, 64bit length, is used for expressing VPN;
prefix field, scene for each label of each route of VPN, length is pending.
VPN Label Value: VPN inner layer label field, 32bit length.
Through the newly added target TLV field, the VPN inner layer label and the RD information of the VPN flow are included, so that more information can be conveniently written into a protocol and transmitted to a network controller from the forwarding equipment through BGP-LS.
It should be noted that the TLV message format shown in this application is only illustrative, and the TLV message format is not limited in this application.
Step 520, the controller determines traffic engineering TE tunnels of the at least two VPN flows based on VPN inner layer labels corresponding to the at least two VPN flows.
In the embodiment of the present application, the corresponding service importance and the guarantee level of a plurality of VPN flows having the same source IP address and destination IP address may be different, that is, the transmission priority of each VPN flow may be different.
The VPN inner-layer label may indicate a business importance and/or a level of assurance of VPN traffic.
Based on the VPN inner-layer labels corresponding to the at least two VPN flows, the process of determining the traffic engineering TE tunnels of the at least two VPN flows may be implemented as follows:
determining the transmission priority of at least two VPN flows based on the VPN labels corresponding to the at least two VPN flows respectively;
distributing TE tunnels for the at least two VPN flows based on the transmission priority of the at least two VPN flows; the tunnel attributes of TE tunnels corresponding to VPN flows of different transmission priorities are different.
Generally speaking, the transmission priority of the VPN traffic with higher service importance and/or guarantee level is higher, and after determining the transmission priority of each VPN traffic, the controller may allocate TE tunnel bearers of different guarantee levels to each VPN traffic according to the sequence indicated by the transmission priority, so as to ensure that the VPN traffic with higher transmission priority can be grabbed and drained to the TE tunnel bearer of a higher guarantee level, thereby improving differentiated services and service guarantee capabilities of finer granularity (refined to a VPN level) in the backbone network.
The guarantee levels of the TE tunnels can be distinguished through tunnel attributes of the TE tunnels; the tunnel attribute of the TE tunnel may include tunnel delay, tunnel bandwidth guarantee, whether protection exists, protection mode, and the like.
Step 530, the controller sends scheduling information to the forwarding device, and the forwarding device receives the scheduling information sent by the controller accordingly.
The scheduling information includes a correspondence between VPN traffic and TE tunnels.
Optionally, the controller may send the scheduling information to the forwarding device through a PCEP protocol or a BGP protocol.
Step 540, the forwarding device transmits at least two VPN flows based on the scheduling information.
And the forwarding equipment respectively imports each VPN flow into a corresponding TE tunnel for transmission based on the scheduling information.
To sum up, in the traffic scheduling method provided in this embodiment of the present application, the forwarding device transmits, to the controller, the VPN inner layer labels of at least two VPN traffic through the target protocol, so that the controller can distinguish VPN traffic having the same source IP address and the same destination IP address, and perform TE tunnel allocation, so as to send scheduling information to the forwarding device, and instruct the forwarding device to transmit the at least two VPN traffic based on the correspondence between the VPN traffic and the TE tunnel included in the scheduling information; by the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.
Fig. 7 is a block diagram of a traffic transmission apparatus according to an exemplary embodiment of the present application, which is configured to implement all or part of the steps of any one of the embodiments shown in fig. 2 or fig. 5, and as shown in fig. 7, the traffic transmission apparatus may include:
a label receiving module 710, configured to receive VPN inner layer labels corresponding to at least two VPN flows transmitted by a forwarding device through a target protocol; the target protocol is an expanded BGP-LS protocol; the target protocol comprises a field for carrying the VPN inner layer label; at least two of the VPN flows have the same source IP address and the same destination IP address;
a tunnel determining module 720, configured to determine, based on the VPN inner layer label corresponding to each of at least two VPN flows, a traffic engineering TE tunnel of the at least two VPN flows;
an information sending module 730, configured to send scheduling information to the forwarding device, so that the forwarding device transmits at least two VPN flows based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
In a possible implementation manner, the target protocol includes a newly added target TLV field, and the target TLV field is used to carry the RD information of the VPN traffic and the VPN inner layer label.
In a possible implementation, the VPN flows in the same VPN instance correspond to the same VPN inner label;
alternatively, the first and second liquid crystal display panels may be,
the VPN flows of different routes respectively correspond to the VPN inner layer labels.
In a possible implementation manner, the tunnel determining module 720 includes:
the priority determining submodule is used for determining the transmission priority of at least two VPN flows based on the VPN labels corresponding to the at least two VPN flows;
a tunnel allocation sub-module, configured to allocate the TE tunnels for the at least two VPN flows based on the transmission priorities of the at least two VPN flows; and the tunnel attributes of the TE tunnels corresponding to the VPN flows with different transmission priorities are different.
To sum up, the traffic scheduling apparatus provided in this embodiment of the present application can implement that a forwarding device transmits respective VPN inner layer labels of at least two VPN traffic to a controller through a target protocol, so that the controller can distinguish VPN traffic having a same source IP address and a same destination IP address, and perform TE tunnel allocation, so as to send scheduling information to the forwarding device, and instruct the forwarding device to transmit the at least two VPN traffic based on a correspondence between the VPN traffic and a TE tunnel included in the scheduling information; by the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.
Fig. 8 is a block diagram of a traffic transmission apparatus according to an exemplary embodiment of the present application, where the traffic transmission apparatus is configured to implement all or part of the steps of any one of the embodiments shown in fig. 4 or fig. 5, and as shown in fig. 8, the traffic transmission apparatus may include:
a label transmission module 810, configured to transmit, to a controller via a target protocol, target VPN inner layer labels corresponding to at least two VPN flows; the target protocol is an extended BGP-LS protocol; the target protocol comprises a field for carrying VPN inner layer labels; at least two of the VPN flows have the same source IP address and the same destination IP address;
an information receiving module 820, configured to receive scheduling information sent by the controller based on the VPN labels corresponding to at least two VPN flows, where the scheduling information includes a correspondence between the VPN flow and a TE tunnel;
a traffic transmission module 830, configured to transmit at least two VPN traffics based on the scheduling information.
In a possible implementation manner, the traffic transmission module 830 is configured to import each VPN traffic into the corresponding TE tunnel for transmission based on the scheduling information.
To sum up, the traffic scheduling apparatus provided in this embodiment of the present application may implement that a forwarding device transmits respective VPN inner layer labels of at least two VPN traffics to a controller through a target protocol, so that the controller can distinguish the VPN traffics having the same source IP address and the same destination IP address, and perform TE tunnel allocation, so as to send scheduling information to the forwarding device, and instruct the forwarding device to transmit the at least two VPN traffics based on a correspondence between the VPN traffic and the TE tunnel included in the scheduling information; by the method, flow identification and capture of the detailed VPN granularity are realized, and the accuracy of flow scheduling is improved, so that the flow guiding effect of the VPN flow is improved.
Fig. 9 is a block diagram of a network device provided in an exemplary embodiment of the present application, where the network device may be implemented as a forwarding device or a controller in an embodiment of the present application; as shown in fig. 9, the network device 900 includes a Central Processing Unit (CPU) 901, a Random Access Memory (RAM) 902, a system Memory 904 of a Read-Only Memory (ROM) 903, and a system bus 905 connecting the system Memory 904 and the CPU 901. The network device 900 also includes a mass storage device 906 for storing an operating system 909, client 910, and other program modules 911.
Without loss of generality, the memory may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, erasable Programmable Read-Only Memory (EPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 906 described above may be collectively referred to as memory.
The network device 900 may also operate as a remote network device connected to a network via a network, such as the internet, according to various embodiments of the present application. That is, the network device 900 may be connected to the network 908 through the network interface unit 907 connected to the system bus 905, or may be connected to other types of networks or remote network device systems (not shown) using the network interface unit 907.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing traffic transmission method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip or a system-on-chip.
The embodiments of the present application further provide a computer program/program product, where the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement each process of the foregoing traffic transmission method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing traffic transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application 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. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of traffic transmission, the method being performed by a controller, the method comprising:
receiving VPN inner layer labels corresponding to at least two virtual private network VPN flows transmitted by forwarding equipment through a target protocol; the target protocol is an expanded BGP-LS protocol, and the target protocol comprises a field for carrying a VPN inner layer label; at least two of the VPN flows have the same source network protocol IP address and the same destination IP address;
determining traffic engineering TE tunnels of at least two VPN flows based on the VPN inner layer labels corresponding to the at least two VPN flows respectively;
sending scheduling information to the forwarding device to enable the forwarding device to transmit at least two VPN flows based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
2. The method as claimed in claim 1, wherein the target protocol includes a new target TLV field for carrying the RD information of the VPN traffic and the VPN inner layer label.
3. The method of claim 2,
the VPN flow in the same VPN instance corresponds to the same VPN inner layer label;
alternatively, the first and second electrodes may be,
the VPN flows of different routes respectively correspond to the VPN inner layer labels.
4. The method according to claim 1, wherein said determining Traffic Engineering (TE) tunnels for at least two of said VPN traffic based on said VPN inner label for each of said at least two of said VPN traffic comprises:
determining transmission priority of at least two VPN flows based on the VPN labels corresponding to the at least two VPN flows respectively;
allocating the TE tunnels for at least two of the VPN traffic based on the transmission priorities of the at least two VPN traffic; and the tunnel attributes of the TE tunnels corresponding to the VPN flows with different transmission priorities are different.
5. A traffic transmission method, characterized in that the method is performed by a forwarding device, the method comprising:
transmitting target VPN inner layer labels corresponding to at least two virtual private network VPN flows to a controller through a target protocol; the target protocol is an extended BGP-LS protocol; the target protocol comprises a field for carrying VPN inner layer labels; at least two of the VPN flows have the same source IP address and the same destination IP address;
receiving scheduling information sent by the controller based on the VPN labels corresponding to at least two VPN flows, wherein the scheduling information comprises a corresponding relation between the VPN flows and a TE tunnel;
and transmitting at least two VPN flows based on the scheduling information.
6. The method of claim 5, wherein said transmitting at least two of said VPN traffic based on said scheduling information comprises:
and respectively importing each VPN flow into the corresponding TE tunnel for transmission based on the scheduling information.
7. A traffic conveying apparatus, characterized in that the apparatus comprises:
the label receiving module is used for receiving VPN inner layer labels which correspond to at least two VPN flows transmitted by the forwarding equipment through a target protocol; the target protocol is an extended BGP-LS protocol; the target protocol comprises a field for carrying the VPN inner layer label; at least two of the VPN flows have the same source IP address and the same destination IP address;
a tunnel determining module, configured to determine traffic engineering TE tunnels of at least two VPN flows based on the VPN inner layer labels corresponding to the at least two VPN flows;
an information sending module, configured to send scheduling information to the forwarding device, so that the forwarding device transmits at least two pieces of VPN traffic based on the scheduling information; the scheduling information includes a correspondence between the VPN traffic and the TE tunnel.
8. A traffic transmission device, characterized in that the device comprises:
the label transmission module is used for transmitting target VPN inner layer labels corresponding to at least two virtual private network VPN flows to the controller through a target protocol; the target protocol is an expanded BGP-LS protocol; the target protocol comprises a field for carrying VPN inner layer labels; at least two of the VPN flows have the same source IP address and the same destination IP address;
an information receiving module, configured to receive scheduling information sent by the controller based on the VPN labels corresponding to at least two pieces of VPN traffic, where the scheduling information includes a correspondence between the VPN traffic and a TE tunnel;
and the flow transmission module is used for transmitting at least two VPN flows based on the scheduling information.
9. A computer device, characterized in that it comprises a processor and a memory, said memory storing at least one computer program which is loaded and executed by said processor to implement the traffic transmission method according to any one of claims 1 to 6.
10. A computer-readable storage medium, in which at least one computer program is stored, which is loaded and executed by a processor to implement the traffic transmission method according to any one of claims 1 to 6.
CN202211411426.7A 2022-11-11 2022-11-11 Flow transmission method and device, computer equipment and storage medium Pending CN115865823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211411426.7A CN115865823A (en) 2022-11-11 2022-11-11 Flow transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211411426.7A CN115865823A (en) 2022-11-11 2022-11-11 Flow transmission method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115865823A true CN115865823A (en) 2023-03-28

Family

ID=85663184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211411426.7A Pending CN115865823A (en) 2022-11-11 2022-11-11 Flow transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115865823A (en)

Similar Documents

Publication Publication Date Title
CN110912795B (en) Transmission control method, node, network system and storage medium
US10164838B2 (en) Seamless segment routing
CN111385206B (en) Message forwarding method, network system, related equipment and computer storage medium
US10412019B2 (en) Path computation element central controllers (PCECCs) for network services
EP4102785A1 (en) Message processing method and apparatus, and network device and storage medium
US7477642B2 (en) MPLS traffic engineering for point-to-multipoint label switched paths
CN107026791B (en) Virtual private network VPN service optimization method and device
EP1983701B1 (en) Method and apparatus for reserving network resources for pseudo point-to-point connection
CN112087386B (en) Message processing method, device and system
CN1866868B (en) Multi protocol label switched network flow managing system, method and device
US11271864B2 (en) Tunnel establishment method, apparatus, and system
CN106453025A (en) Tunnel creating method and device
WO2017124709A1 (en) Method of establishing traffic engineering tunnel and device
CN110417655B (en) Method and device for forwarding data message
US7742477B1 (en) Interconnectivity between autonomous systems
US7463580B2 (en) Resource sharing among network tunnels
CN115865823A (en) Flow transmission method and device, computer equipment and storage medium
KR100641051B1 (en) Medium recording label mapping message for guaranting service quality and method for processing label mapping message for guaranting service quality
WO2012159351A1 (en) Tag allocating method, device and system
CN115941387A (en) Method and device for receiving and sending border gateway protocol route and storage medium
CN111935016A (en) Link label distribution method, device, network equipment and readable 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