WO2023179457A1 - Method, apparatus and system for identifying service connection, and storage medium - Google Patents

Method, apparatus and system for identifying service connection, and storage medium Download PDF

Info

Publication number
WO2023179457A1
WO2023179457A1 PCT/CN2023/081997 CN2023081997W WO2023179457A1 WO 2023179457 A1 WO2023179457 A1 WO 2023179457A1 CN 2023081997 W CN2023081997 W CN 2023081997W WO 2023179457 A1 WO2023179457 A1 WO 2023179457A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication device
service
fid
node information
route
Prior art date
Application number
PCT/CN2023/081997
Other languages
French (fr)
Chinese (zh)
Inventor
陈新隽
王海波
闫朝阳
胡志波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210575954.XA external-priority patent/CN116828024A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023179457A1 publication Critical patent/WO2023179457A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present application relates to the field of communication technology, and in particular to methods, devices, systems and storage media for identifying business connections.
  • one or more service connections can be established between any two communication devices in the communication network, and the service connections can be used to transmit service flows. Therefore, by generating a flow identifier corresponding to the service connection, traffic management of the service flow transmitted by the service connection can be performed.
  • This application provides a method, device, system and storage medium for identifying a business connection, which automatically generates a flow identifier corresponding to the business connection through the route used to establish the business connection.
  • a method for identifying a service connection includes: a first communication device receiving a first route published by a second communication device, the first route being used to establish a connection between the first communication device and the second communication device.
  • the first communication device generates the service based on the node information of the first communication device and the node information of the second communication device carried in the received first route.
  • Connect the corresponding first flow identifier (FID) The first FID is used to identify the first service flow sent by the first communication device to the second communication device.
  • the first FID includes node information of the first communication device and the first communication device. 2. Node information of the communication device.
  • this method In the process of establishing a business connection, this method directly generates an FID corresponding to the business connection based on the route used to establish the business connection, and then uses the FID to identify the business flow transmitted by the business connection.
  • this application does not require static configuration, so the operation of generating the FID is simpler, the workload is smaller, and the generation efficiency is higher.
  • the FID since the FID is generated based on the route for establishing the service connection, the FID can be used not only to identify the service flow transmitted by the service connection, but also to identify the service connection, providing an effective way to identify the service connection.
  • the service connection refers to a connection established between two communication devices for transmitting services.
  • the service connection may also refer to a connection established between two communication devices for transmitting services.
  • a connection of a sub-service a connection can also be called a connection channel. That is to say, the service connection may be a connection channel used to transmit all services between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices.
  • a service connection is a connection channel used to transmit a sub-service between two communication devices.
  • the first communication device can send the first service flow to the second communication device, and the second communication device can also send the second service flow to the first communication device. Therefore, the The first FID is not only used for identification For the first service flow sent by the first communication device to the second communication device, the first FID may also be used to identify the second service flow sent by the second communication device to the first communication device.
  • the communication device mentioned in this application can be a network device such as a switch or router, or a part of the network device, such as a single board or line card on the network device, or a functional module on the network device. , it can also be a chip used to implement the method of the present application, which is not limited by this application.
  • the transceiver unit used to implement the method may be, for example, an interface circuit of the chip, and the processing unit may be a processing circuit with a processing function in the chip. Connection methods between communication devices include but are not limited to direct connection through Ethernet cables or optical cables.
  • the service connection is a virtual private network (VPN)
  • the first route further includes an identifier of the VPN
  • the first FID further includes an identifier of the VPN.
  • the first service flow identified by the first FID is all the service flows of the VPN transmitted between the first communication device and the second communication device, so that the first FID can identify the VPN.
  • the service connection is a sub-service connection of the VPN, and the sub-service connection is used to transmit the sub-service of the VPN.
  • the first route also includes an identifier of the VPN; then the generated first route
  • the FID also includes the identifier of the VPN and the identifier of the sub-service.
  • the first service flow identified by the first FID is all service flows corresponding to the sub-services of the VPN transmitted between the first communication device and the second communication device, so that the method can identify more fine-grained services. flow.
  • the identifier of the sub-service may be carried in the first route, so that the first communication device obtains the identifier of the sub-service based on the received first route.
  • the first communication device locally stores VPN configuration information, the first communication device determines the VPN based on the received first route, and then obtains the identifier of the sub-service corresponding to the VPN through the locally stored VPN configuration information without going through the first
  • the route carries the identifier of the sub-service, which reduces the amount of data transmitted by the route.
  • the sub-service can be a sub-service of any service type, and the identifier of the sub-service can be the coded value of the differentiated services code point (DSCP), or it can be used to indicate the service type of the sub-service. logo.
  • sub-services can be divided into voice sub-services, video sub-services or text sub-services according to service types. Therefore, applying the method of this application can generate FIDs respectively corresponding to the voice sub-service, video sub-service or text sub-service of the same VPN. Based on the FID of different sub-services, the traffic management of the business flow of each sub-service can be performed respectively. This enables differentiated management of the traffic of different sub-services.
  • This method can generate different FIDs based on different granularities of business connections, so that the generated FIDs can identify business flows of different granularities. Therefore, the identification method of this business connection has high flexibility.
  • the address of the first communication device is a first Internet protocol version 6 (IPv6) address
  • the first IPv6 address includes node information of the first communication device.
  • the first The route includes a second IPv6 address of the second communication device, the second IPv6 address including node information of the second communication device.
  • the node information of the first communication device is the entire content of the first IPv6 address
  • the node information of the second communication device is the entire content of the second IPv6 address
  • the node information of the first communication device is the entire content of the second IPv6 address
  • the node information is part of the first IPv6 address used to identify the first communication device
  • the node information of the second communication device is part of the second IPv6 address used to identify the second communication device.
  • the second IPv6 address included in the first route is a second SRv6 VPN segment identifier (SID).
  • the second SRv6 VPN SID also includes the identifier of the VPN;
  • the second SRv6 VPN SID also includes Including the identifier of the VPN and the identifier of the sub-service of the VPN.
  • the location identifier (locator) field in the second SRv6 VPN SID is used to indicate the node information of the second communication device, and the function (function) field in the SRv6 VPN SID is used to indicate the identity of the VPN.
  • the parameters (arguments, args) field in the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
  • the first route includes a VXLAN network identifier (VXLAN network identifier, VNI), and the VNI is used to identify the VXLAN tunnel. If the VXLAN tunnel is associated with a VPN, the VNI can also be used to indicate the VPN.
  • VXLAN network identifier VXLAN network identifier
  • This method can be flexibly applied to scenarios such as SRv6 or VXLAN, making this method of identifying business connections broadly versatile.
  • the method further includes: the first communication device sends a first service message to the second communication device, and the first service message belongs to the first service flow, The first service message includes the first FID.
  • the node receiving the first service message can identify the first service flow.
  • the method further includes: the first communication device performs traffic management on the first service flow based on the first FID.
  • traffic management can include but is not limited to traffic detection, traffic statistics, traffic visualization, traffic connection or traffic service quality control, etc.
  • FIDs corresponding to different business connections can be generated. Through the FIDs corresponding to different business connections, traffic management of different business flows can be achieved, the accuracy of traffic management can be improved, and the differentiated management of different business connections can be satisfied. need.
  • the first communication device will also publish a second route to the second communication device.
  • the second route is used to establish a business connection between the first communication device and the second communication device.
  • the second route includes Node information of the first communication device.
  • the first communication device also generates a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID also includes node information of the first communication device and node information of the second communication device. Since the first communication device can not only generate the first FID corresponding to the service connection, but also can generate the second FID corresponding to the service connection, the first FID and the second FID can respectively identify the two transmission directions corresponding to the same service connection.
  • Business flow enables more detailed traffic management of the business flow transmitted by the business connection.
  • the method further includes: the first communication device receiving a second service message sent by the second communication device, and the second service message belongs to the second service flow, the second service packet includes the second FID.
  • the first communication device can quickly identify the second service flow according to the second FID in the received second service message.
  • the method further includes: the first communication device performs traffic management on the second service flow based on the second FID.
  • the first communication device respectively performs traffic management on the first service flow based on the first FID, and performs traffic management on the second service flow based on the second FID, and the first service flow and the second service flow are services of the same service connection in different transmission directions. Therefore, this method can meet the differentiated traffic management requirements of business flows in different transmission directions for the same business connection.
  • the method further includes: the first communication device connects Receive a second service message sent by the second communication device, the second service message belongs to the second service flow, the second service message includes node information of the second communication device; the first communication device is based on the node information of the second communication device The mapping relationship with the second FID determines the second FID, and traffic management is performed on the second service flow based on the second FID.
  • This application does not limit the location where the first communication device saves the mapping relationship.
  • the mapping relationship between the node information of the second communication device and the second FID may be saved on the first communication device.
  • the first communication device saves the mapping relationship between the node information of the second communication device and the second FID through virtual routing forwarding (VRF).
  • VRF virtual routing forwarding
  • multiple service connections can be established between two different communication devices, or multiple service connections corresponding to multiple services can be established between two communication devices.
  • the method provided by this application also includes: the first communication device receives a third route published by the second communication device, and the third route is used to establish the first communication device
  • the second service connection with the second communication device includes the node information of the second communication device; the first communication device carries the second route according to the node information of the first communication device and the received third route.
  • the node information of the communication device generates a third FID corresponding to the second service connection.
  • the third FID is used to identify the third service flow sent by the first communication device to the second communication device.
  • the third FID includes the first communication device. node information and node information of the second communication device.
  • the first service connection established based on the first route is a first sub-service connection of the first VPN
  • the second service connection established based on the third route is a second sub-service connection of the first VPN.
  • Service connection, the second sub-service connection is used to transmit the second sub-service of the first VPN
  • the third route also includes the identifier of the first VPN
  • the generated third FID also includes the identifier of the first VPN and the identifier of the second sub-service.
  • the third service flow identified by the third FID is all service flows of the second sub-service of the first VPN transmitted between the first communication device and the second communication device.
  • the FID and the third FID can implement traffic management on the service flows of the first sub-service and the second sub-service of the same first VPN.
  • This application does not limit the number of multiple service connections established between the first communication device and the second communication device.
  • the first communication device and the second communication device can also establish The multiple service connections may be service flows used to transmit different sub-services of the same service.
  • multiple service connections established between the first communication device and the second communication device can also be used to transmit service flows of different services.
  • the first service connection established based on the first route is In the first VPN
  • the second service connection established based on the third route is the second VPN.
  • the third route also includes the identifier of the second VPN;
  • the generated third FID also includes the identifier of the second VPN.
  • the third service flow identified by the third FID is all the service flows of the second VPN transmitted between the first communication device and the second communication device.
  • not only all the service flows of the first VPN but also all the service flows of the second VPN can be transmitted between the first communication device and the second communication device, that is, between the first communication device and the second communication device.
  • Multiple business connections are established between each other.
  • the multiple business connections transmit business flows of different services. Traffic management of the business flows of different services can be implemented through different FIDs.
  • the second service connection established based on the third route is a sub-service connection of the second VPN, and the sub-service connection of the second VPN is used to transmit the sub-service of the second VPN.
  • the third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN and the identifier of the sub-service of the second VPN.
  • the third service flow identified by the third FID is all service flows of the sub-services of the second VPN transmitted between the first communication device and the second communication device.
  • the first communication device and the second communication device can not only transmit the first VPN All business flows can also transmit all business flows of sub-services of the second VPN, that is, multiple service connections are established between the first communication device and the second communication device, and the multiple service connections transmit different services or different services.
  • the business flow of the sub-business is to say, the first communication device and the second communication device can not only transmit the first VPN All business flows can also transmit all business flows of sub-services of the second VPN, that is, multiple service connections are established between the first communication device and the second communication device, and the multiple service connections transmit different services or different services.
  • the business flow of the sub-business is to say, the first communication device and the second communication device can not only transmit the first VPN All business flows can also transmit all business flows of sub-services of the second VPN, that is, multiple service connections are established between the first communication device and the second communication device, and the multiple service connections transmit different services or different services.
  • the business flow of the sub-business is to say, the first communication device and the second communication device can not only transmit the
  • the first communication device receives a fourth route published by the third communication device.
  • the fourth route is used to establish a third service connection between the first communication device and the third communication device.
  • the fourth route including node information of the third communication device; the first communication device generates a fourth FID corresponding to the third service connection according to the node information of the first communication device and the node information of the third communication device carried in the fourth route, and the fourth The FID is used to identify the fourth service flow sent by the first communication device to the third communication device.
  • the fourth FID includes node information of the first communication device and node information of the third communication device.
  • the first communication device can not only establish a service connection with the second communication device, but also can establish a service connection with the third communication device, that is, the same communication device can establish a service connection with different communication devices.
  • Establish a business connection and automatically generate the FID corresponding to the business connection during the process of establishing the business connection.
  • the third service connection established based on the fourth route is a third VPN
  • the fourth route further includes an identifier of the third VPN
  • the fourth FID further includes an identifier of the third VPN.
  • the fourth service flow identified by the fourth FID is all the service flows of the third VPN transmitted between the first communication device and the third communication device.
  • the third service connection is a sub-service connection of the third VPN
  • the fourth route also includes the identifier of the third VPN
  • the fourth FID also includes the identifier of the third VPN and the third VPN identifier.
  • the fourth service flow identified by the fourth FID is all service flows of the sub-services of the third VPN transmitted between the first communication device and the third communication device.
  • the third VPN is the same as the above-mentioned first VPN, or the third VPN is different from the above-mentioned first VPN.
  • corresponding FIDs can be generated based on business connections of different granularities established between two communication devices, so that based on the FIDs corresponding to business connections of different granularities, the information transmitted by the business connections can be realized.
  • Business flows are managed at different granularities, which improves the flexibility of traffic management.
  • a method for identifying a business connection includes: a first communication device receiving a first route published by a second communication device, and the first route is used to establish a connection between the first communication device and the second communication device.
  • business connection the first route includes the node information of the second communication device;
  • the first communication device generates the first FID corresponding to the business connection based on the node information of the first communication device and the node information of the second communication device carried in the first route , the first FID is used to identify the first service flow sent by the first communication device to the second communication device, and the first FID includes node information of the first communication device and node information of the second communication device;
  • the second communication device receives the second route published by the first communication device.
  • the second route is used to establish a business connection.
  • the second route includes the node information of the first communication device.
  • the second communication device responds to the node information of the second communication device and the second communication device.
  • the node information of the first communication device carried in the second route generates the first FID.
  • the service connection is a VPN
  • the first route further includes an identifier of the VPN
  • the second route further includes an identifier of the VPN
  • the first FID further includes the The logo of the VPN.
  • the service connection is a sub-service connection of the VPN
  • the sub-service connection is used to transmit the sub-service of the VPN.
  • the first route also includes an identifier of the VPN
  • the The second route also includes the identifier of the VPN
  • the first FID also includes the identifier of the VPN and the identifier of the sub-service.
  • the first route further includes an identifier of the sub-service
  • the second route further includes an identifier of the sub-service
  • the address of the first communication device is a first IPv6 address
  • the first IPv6 address includes node information of the first communication device
  • the first route includes the second the second IPv6 address of the communication device
  • the second IPv6 address includes node information of the second communication device
  • the second route includes the first IPv6 address of the first communication device.
  • the second IPv6 address is a second SRv6 VPN SID
  • the first IPv6 address is a first SRv6 VPN SID
  • the location identification field of the second SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the second SRv6 VPN SID is used to indicate the identification of the VPN;
  • the location identification field of the first SRv6 VPN SID is used to indicate the node information of the first communication device, and the function field of the first SRv6 VPN SID is used to indicate the identification of the VPN.
  • the parameter field of the second SRv6 VPN SID is used to indicate the identity of the sub-service of the VPN
  • the parameter field of the first SRv6 VPN SID is used to indicate the sub-service of the VPN. logo.
  • the first route includes a VNI
  • the second route includes a VNI
  • the method further includes: the first communication device generating a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the second FID is used to identify the second service flow sent by the second communication device to the first communication device, and the second FID includes node information of the first communication device and node information of the second communication device;
  • the second communication device generates a second FID based on the node information of the second communication device and the node information of the first communication device carried in the second route.
  • the method further includes: the first communication device sending a first service message to the second communication device, and the first communication device The service packet belongs to the first service flow, and the first service packet includes the first FID;
  • the method further includes: the second communication device receiving the first service message sent by the first communication device.
  • the method further includes: the second communication device sends a second service message to the first communication device, and the second communication device The service message belongs to the second service flow, and the second service message includes the second FID;
  • the method further includes: the first communication device receiving a second service message sent by the second communication device.
  • the first communication device after the first communication device generates the first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route, it further includes: a first The communication device performs traffic management on the first service flow based on the first FID;
  • the method further includes: the second communication device performs traffic flow on the first service flow based on the first FID. manage.
  • the first communication device after the first communication device generates the second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route, it further includes: a first The communication device performs traffic management on the second service flow based on the second FID;
  • the method further includes: the second communication device performs traffic on the second service flow based on the second FID. manage.
  • the method further includes: the first communication device receives a second service message sent by the second communication device, and the first communication device The second service message belongs to the second service flow, the second service message includes node information of the second communication device; the first communication device determines the second FID based on the mapping relationship between the node information of the second communication device and the second FID. FID, performing traffic management on the second service flow based on the second FID.
  • the method further includes: the second communication device receives the first service message sent by the first communication device, and the second communication device A service message belongs to the first service flow, and the first service message includes node information of the first communication device; the second communication device is based on the node information of the first communication device and the third communication device.
  • a mapping relationship between FIDs determines the first FID, and traffic management is performed on the first service flow based on the first FID.
  • a communication device which device includes:
  • a transceiver module configured to perform reception and/or transmission related operations performed by the first communication device in the first aspect or any possible implementation of the first aspect;
  • a processing module configured to perform other operations other than the receiving and/or sending related operations performed by the first communication device in the first aspect or any possible implementation manner of the first aspect.
  • the transceiver module includes a receiving module and/or a sending module.
  • the receiving module is used to perform reception-related operations
  • the sending module is used to perform sending-related operations.
  • the transceiver module is configured to receive a first route published by a second communication device.
  • the first route is used to establish a business connection between the first communication device and the second communication device.
  • the first route includes Node information of the second communication device;
  • a processing module configured to generate a first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the first FID is used to identify the first communication device to the second communication device.
  • the first service flow sent by the device, the first FID includes node information of the first communication device and node information of the second communication device.
  • the service connection is a VPN
  • the first route also includes the identifier of the VPN
  • the first FID further includes the identifier of the VPN.
  • the service connection is a sub-service connection of the VPN.
  • the sub-service connection is used to transmit the sub-service of the VPN.
  • the first route also includes the identifier of the VPN.
  • the first FID also includes the identifier of the VPN and the identifier of the sub-service. .
  • the first route also includes an identifier of the sub-service.
  • the address of the first communication device is a first IPv6 address
  • the first IPv6 address includes node information of the first communication device
  • the first route includes the second IPv6 address of the second communication device
  • the second The IPv6 address includes node information of the second communication device.
  • the second IPv6 address is an SRv6 VPN SID.
  • the location identification field of the SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the SRv6 VPN SID is used to indicate the identity of the VPN.
  • the parameter field of the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
  • the first route includes a VNI.
  • the transceiver module is also configured to send a first service message to the second communication device, where the first service message belongs to the first service flow, and the first service message includes the first FID.
  • the processing module is also configured to perform traffic management on the first service flow based on the first FID.
  • the processing module is further configured to generate a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the second FID is Yu Logo Second Communications
  • the second service flow sent by the device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device.
  • the transceiver module is also configured to receive a second service message sent by the second communication device.
  • the second service message belongs to the second service flow, and the second service message includes the second FID.
  • the processing module is also configured to perform traffic management on the second service flow based on the second FID.
  • the transceiver module is also configured to receive a second service message sent by the second communication device.
  • the second service message belongs to the second service flow, and the second service message includes the second service message of the second communication device. Node information;
  • the processing module is also configured to determine the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and perform traffic management on the second service flow based on the second FID.
  • a communication system including a first communication device and a second communication device;
  • a first communication device configured to perform operations performed by the first communication device according to any one of the second aspects
  • the second communication device is configured to perform the operations performed by the second communication device according to any one of the second aspects.
  • a communication device in a fifth aspect, includes: a processor, the processor is coupled to a memory, and at least one program instruction or code is stored in the memory.
  • the at least one program instruction or code is composed of the The processor loads and executes, so that the communication device implements the above first aspect or the method in any possible implementation manner of the first aspect, or allows the communication device to implement the above second aspect or the second aspect. method in any possible implementation.
  • processors there are one or more processors and one or more memories.
  • the memory may be integrated with the processor, or the memory may be provided separately from the processor.
  • the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be set in different On the chip, the embodiment of the present application does not limit the type of memory and the arrangement of the memory and the processor.
  • ROM read-only memory
  • a communication device which includes a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path
  • the memory is used to store instructions
  • the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals.
  • the communication device is caused to execute the method in the first aspect or any possible implementation of the first aspect.
  • a computer-readable storage medium is provided. At least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor, so that the computer implements any of the above-mentioned identification methods of business connections. .
  • a computer program includes: computer program code.
  • the computer program code When the computer program code is run by a computer, it causes the computer to perform the methods in the above aspects.
  • a chip including a processor configured to call from a memory and run instructions stored in the memory, so that a communication device equipped with the chip executes the methods in the above aspects.
  • another chip including: a communication interface and a processor, based on the communication interface and the processor, executing the above aspects and the method in any possible implementation manner.
  • the communication interface is used to perform receiving and/or sending related operations, and the processor is used to perform other operations other than sending and receiving operations.
  • the communication interface may be, for example, an interface circuit, and the processor may be, for example, a processing circuit.
  • the chip further includes a memory, the communication interface, the processor and the memory are connected through internal connection paths, and the processor is used to execute the code in the memory. Said code When executed, the processor is configured to perform the methods in the above aspects.
  • Figure 1 is a schematic diagram of the implementation environment of a method for identifying business connections provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of the implementation environment of another method for identifying business connections provided by an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a SID provided by an embodiment of the present application.
  • Figure 4 is an interactive schematic diagram of a method for identifying service connections provided by an embodiment of the present application
  • Figure 5 is a schematic diagram of a route publishing process provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a structured SID provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a message forwarding process provided by an embodiment of the present application.
  • Figure 8 is a flow chart of a method for identifying service connections provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of the identification result of a service connection provided by the embodiment of the present application.
  • Figure 10 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application.
  • Figure 11 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application.
  • Figure 12 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application.
  • Figure 13 is a schematic diagram of a communication device provided by an embodiment of the present application.
  • Figure 14 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • Figure 15 is a schematic structural diagram of another network device provided by an embodiment of the present application.
  • the service connection refers to a connection established between two communication devices for transmitting services.
  • the service connection may also refer to a connection established between two communication devices for transmitting a sub-service.
  • the connection also called a connection channel.
  • the service connection may be a connection channel used to transmit all services between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices, Alternatively, the service connection is a connection channel for transmitting a sub-service between two communication devices.
  • in-situ flow information telemetry (iFIT) technology generates a flow identifier of the target service flow corresponding to the service connection through static configuration.
  • iFIT in-situ flow information telemetry
  • the embodiment of the present application provides a method for identifying a business connection.
  • This method does not rely on static configuration and can automatically generate the FID corresponding to the business connection based on the route for establishing the business connection during the process of establishing the business connection, thereby realizing the generation of the FID.
  • the operation of generating FID is simpler, the workload is smaller, and the efficiency is higher.
  • Figure 1 is an implementation environment of a service connection identification method provided by an embodiment of the present application. Schematic diagram. As shown in Figure 1, the implementation environment includes a first communication device and a second communication device.
  • the first communication device and the second communication device are respectively used as two edge routing devices of the communication network, wherein the first communication device is connected to The first client is used to connect the first client to the communication network, and the second communication device is connected to the second client, used to connect the second client to the communication network.
  • the first client and the second client may be custom edge (CE) devices, and the CE device may be a router or a switch.
  • the first client and the second client can also be any terminal device used by the user, such as a personal computer (Personal Computer, PC), smart phone, personal digital assistant (Personal Digital Assistant, PDA), wearable device, handheld device Computer PPC (Pocket PC, PPC), tablet computer, smart car, etc.
  • the first communication device and the second communication device are devices with route publishing functions and message forwarding functions.
  • the route publishing function one or more service connections can be established between the first communication device and the second communication device in the communication network.
  • the message forwarding function the first communication device and the second communication device can transmit data through any service connection. business flow.
  • the FID corresponding to the service connection is automatically generated based on the route released during the establishment process of the service connection, thereby realizing the identification of the service connection. Therefore, when transmitting the service flow, traffic management can be performed on the service flow transmitted by the service connection based on the generated FID.
  • the traffic management of the transmitted service flow based on the generated FID may include traffic detection, traffic statistics, traffic visualization, traffic connection or traffic service quality control, etc., the embodiments of this application do not Make limitations.
  • the service flow transmitted by the service connection can be bidirectional. Therefore, the FID corresponding to the service connection can be used to identify the service flows in the two transmission directions.
  • the FID corresponding to the service connection can also include the corresponding service flows in the two directions.
  • FID for example, the FID of the service flow sent by the first communication device to the second communication device is the first FID, and the FID sent by the second communication device to the first communication device is the second FID.
  • the implementation environment may also include multiple communication devices such as a third communication device or a fourth communication device, which are not shown in Figure 1 .
  • Each of the multiple communication devices can establish one or more different communication devices.
  • each communication device can use the business connection identification method provided by the embodiment of the present application to identify the established business connection.
  • the communication devices mentioned in the embodiments of this application may be network equipment such as switches and routers, or may be part of the components on the network equipment, such as single boards and line cards on the network equipment, or may be A functional module on the network device may also be a chip used to implement the method of the present application, which is not specifically limited in the embodiment of the present application.
  • the transceiver unit used to implement the method may be, for example, an interface circuit of the chip, and the processing unit may be a processing circuit with a processing function in the chip.
  • Connection methods between communication devices include but are not limited to direct connection through Ethernet cables or optical cables.
  • the embodiments of this application do not limit the application scenarios of the identification method for business connections, and can be applied to any scenario in which business flows are transmitted through established business connections.
  • the application scenario of the embodiment of the present application may be a scenario based on SRv6 communication or a scenario based on VXLAN communication.
  • the first communication device and the second communication device communicate through SRv6; in a scenario based on VXLAN communication, the first communication device and the second communication device communicate through a VXLAN tunnel.
  • FIG. 2 is a schematic diagram of the implementation environment of another method for identifying service connections provided by an embodiment of the present application.
  • the implementation environment includes user edge (custom edge, CE) 1 device and CE2 device.
  • CE1 device is connected to access router (ACC) device.
  • ACC device is used to connect CE1 device to the network.
  • the CE2 device is connected to the service operator edge (provider edge, PE) 3 and PE4 devices.
  • the PE3 and PE4 devices are used to connect the CE2 device to the network respectively.
  • the equipment used to connect ACC equipment and PE3 equipment or PE4 equipment includes aggregation nodes.
  • the first communication device may be the ACC device shown in Figure 2
  • the second communication device may be the PE3 device or PE4 device shown in Figure 2.
  • SRv6 refers to the application of segment routing (SR) technology in IPv6 networks.
  • SID is used to identify a unique segment.
  • the SID in SRv6 is in the form of an IPv6 address, and the length is 128 bits.
  • FIG. 3 is a schematic structural diagram of an SID provided by an embodiment of the present application.
  • SID includes three parts: locator (also called location identifier), function and parameters (arguments, args).
  • locator occupies the high bits of SID
  • args occupies the low bits of SID
  • function occupies the other bits of SID.
  • the locator field is a variable-length IPv6 prefix format, used to locate the node device that publishes the SID, and has routing and aggregation functions.
  • a locator represents an IPv6 network segment, and the IPv6 address under this network segment can be allocated as a SID.
  • the function field represents the instruction of the device, which is used to instruct the node device that issues the SID to perform corresponding forwarding actions and has programming functions.
  • the args field is an optional parameter that can define some variable information such as message flows and services.
  • the SRv6-enabled node device maintains a local SID table (local SID table).
  • the local SID table is used to save the SID generated by the node device and the information associated with the SID.
  • the local SID table includes the SID, the type of the SID, the outbound interface bound to the SID, the VPN instance associated with the SID, etc.
  • a VPN instance is a specialized entity established and maintained by a node device for directly connected sites. Each site has a corresponding VPN instance on the node device. Each VPN instance contains one or more sites directly connected to the node device.
  • the forwarding table of the CE device. VPN instances may also be called virtual routing forwarding (VRF).
  • the identification method 400 of the service connection provided by the embodiment of the present application will be introduced with reference to FIG. 4 . Since the establishment of the service connection is completed on the control plane, and the identification method of the service connection provided by the embodiment of the present application automatically generates the flow identification corresponding to the service connection along with the establishment process of the service connection, therefore, the identification method of the service connection provided by the embodiment of the application Methods can also be implemented in the control plane. Referring to Figure 4, the identification method 400 of a service connection provided by this embodiment of the present application includes but is not limited to the following steps.
  • Step 401 Communication device 1 publishes a first VPN route to communication device 2.
  • the first VPN route is used to establish a business connection between communication device 1 and communication device 2.
  • the first VPN route includes node information of communication device 1. .
  • the type of the first route may be a VPN route or a public network route, which is not limited in the embodiment of this application.
  • Communication devices can complete the establishment of service connections by publishing routes to each other.
  • a service connection is used to connect two communication devices so that service flows can be transmitted between the two communication devices.
  • the first route is a first VPN route
  • the first VPN route is used to establish a service connection between the communication device 1 and the communication device 2, that is, a VPN.
  • the communication device 1 is the PE3 device shown in Figure 2
  • the communication device 2 is the ACC device shown in Figure 2.
  • the CE1 device and the CE2 device respectively belong to two sites in the same VPN instance, and both the ACC device and the PE3 device are configured with the VPN instance.
  • the PE3 device binds the VPN instance to the first interface of the PE3 device, configures the corresponding first locator for the first interface, and then allocates the VPN SID based on the first locator.
  • the ACC device binds the VPN instance to the second interface of the ACC device, configures a corresponding second locator for the second interface, and then allocates a VPN SID based on the second locator.
  • the CE2 device will use the interior gateway protocol (IGP) or border gateway
  • IGP interior gateway protocol
  • BGP border gateway protocol
  • the PE3 device learns the private network route of the CE2 device, it saves the private network route of the CE2 device in the routing table corresponding to the VPN instance, and allocates the corresponding first VPN SID to the private network route of the CE2 device, based on the A VPN SID generates the first VPN route.
  • the PE3 device after generating the first VPN route, the PE3 device will publish the first VPN route to other sites corresponding to the VPN instance, for example, publish the first VPN route to the ACC device.
  • the embodiment of this application does not limit the method of publishing VPN routes between PE3 devices and ACC devices.
  • BGP or multi-protocol external border gateway protocol (MP-EBGP) can be run between different autonomous domains. to publish.
  • Figure 5 is a schematic diagram of a route publishing process provided by an embodiment of the present application. As shown in Figure 5, take the address of CE1 device as 1.1.1.1 and the address of CE2 device as 2.2.2.2 as an example.
  • the first VPN route published by the PE3 device includes the private network route prefix: 2.2.2.0/24, next hop (NHP): A1::8:1 and VPN SID: A1::8:B100:0.
  • the next hop is the PE3 device
  • A1::8:1 is the IPv6 address of the PE3 device
  • A1::8:B100:0 is the first VPN SID generated by the PE3 device
  • the locator field in the first VPN SID indicates the PE3 device's Node information
  • the function field in the first VPN SID indicates the VPN identification.
  • Step 402 The communication device 2 receives the first VPN route published by the communication device 1, and generates the first FID corresponding to the service connection based on the node information of the communication device 2 and the node information of the communication device 1 carried in the received first VPN route.
  • the first FID is used to identify the first service flow sent by the communication device 2 to the communication device 1 .
  • the first FID includes the node information of the communication device 2 and the node information of the communication device 1 .
  • the communication device 2 can save the first VPN route, for example, add the first VPN route to the forwarding table corresponding to the VPN instance, so that the communication device 2 The first service flow can be sent to the communication device 1 on the forwarding plane.
  • the communication device 2 establishes a service connection between the communication device 2 and the communication device 1.
  • the communication device 2 can send the first service flow to the communication device 1 through the service connection.
  • the source node of the first service flow is the communication device. 2.
  • the sink node is communication device 1.
  • the communication device 2 will also perform the related operations performed by the communication device 1 in step 401. Still taking the route publishing process shown in Figure 5 as an example, the communication device 1 is the PE3 device shown in Figure 2, and the communication device 2 is the ACC device shown in Figure 2.
  • the ACC device will also learn the private network route of the CE1 device. Since the CE1 device and the CE2 device belong to the same VPN instance, the ACC device and the PE3 device can receive the VPN routes sent by each other. In the same way, the ACC device will also allocate the corresponding second VPN SID to the private network route of the CE1 device, and generate the second VPN route based on the second VPN SID.
  • the second VPN route includes the private network route prefix: 1.1.1.0/24, NHP: A2::9:1 and VPN SID: A2::9:B100:0.
  • the next hop is the ACC device
  • A2:: 9:1 is the IPv6 address of the ACC device
  • A2::9:B100:0 is the second VPN SID
  • the locator field in the second VPN SID indicates the node information of the ACC device
  • the function field in the second VPN SID indicates the VPN identification. .
  • the communication device 2 can obtain the IPv6 address and the first VPN SID of the communication device 1 based on the received first VPN route, and the communication device 2 can obtain the IPv6 address and the second VPN SID of the communication device 2 . Since the source node of the first service flow corresponding to the service connection is communication device 2, the sink node is communication device 1. Therefore, the communication device 2 can generate a service connection corresponding to the node information of the communication device 2, the node information of the communication device 1 and the VPN identifier. The first FID.
  • the first FID generated based on the first VPN route is: A2::9:1+A1::8:B100:0.
  • A2::9:1 is the IPv6 address of the ACC, used to indicate the node information of the ACC device
  • A1::8:B100:0 is the first VPN SID, used to indicate the node information and VPN identification of the PE3 device
  • the first FID is: A2::9:B100:0+A1::8:B100:0
  • A2::9:B100:0 is the second VPN SID, used to indicate the node information of ACC.
  • the first FID is used to uniquely identify the first service flow of the first service message sent by the ACC device to the PE3 device.
  • the communication device 1 can also send the second service flow to the communication device 2 through the service connection. Furthermore, since the sink node of the second service flow corresponding to the service connection is the communication device 2 and the source node is the communication device 1, the communication device 2 can also use the node information of the communication device 2, the node information of the communication device 1 and the VPN identifier, Generate the second FID corresponding to the service connection. For example, based on Figure 5, the second FID is: A1::8:1+A2::9:B100:0.
  • A1::8:1 is the IPv6 address of the PE3 device, used to indicate the node information of the PE3 device
  • A2::9:B100:0 is the second VPN SID, used to indicate the node information and VPN identification of the ACC device
  • the second FID is: A1::8:B100:0+A2::9:B100:0
  • A1::8:B100:0 is the first VPN SID, used to indicate the node information of the PE3 device.
  • the second FID is used to uniquely identify the second service flow of the second service message sent by the PE3 device to the ACC device.
  • Step 403 The communication device 2 publishes a second VPN route to the communication device 1.
  • the second VPN route is also used to establish the business connection between the communication device 1 and the communication device 2.
  • the second VPN route includes the communication device. 2 node information.
  • the communication device 2 after the communication device 2 generates the second VPN route, it will also publish the second VPN route to other sites corresponding to the VPN instance, for example, publish the second VPN route to the communication device 1 .
  • the communication device 2 publishes the second VPN route to the communication device 1, reference can be made to the relevant description of the above step 401, which will not be described again here.
  • Step 404 The communication device 1 receives the second VPN route published by the communication device 2, and generates the first FID corresponding to the service connection based on the node information of the communication device 1 and the node information of the communication device 2 carried in the received second VPN route.
  • the communication device 1 will receive the second VPN route published by the communication device 2 and save the second VPN route, for example, add the second VPN route to the forwarding table corresponding to the VPN instance, so that The communication device 1 can send the second service message to the communication device 2 on the forwarding plane.
  • the communication device 1 establishes a service connection between the communication device 1 and the communication device 2.
  • the communication device 1 sends the second service flow to the communication device 2 through the service connection.
  • the source node of the second service flow is the communication device 1.
  • the sink node is the communication device 2.
  • the communication device 1 can obtain the IPv6 address and the second VPN SID of the communication device 2 according to the received second VPN route, and can obtain the IPv6 address and the second VPN SID of the communication device 1 according to the first VPN route. A VPN SID. Based on the same method, the communication device 1 can generate the same first FID and the second FID as the communication device 2 .
  • step 404 the communication device 1 generates the first FID corresponding to the service connection based on the node information of the communication device 1 and the node information of the communication device 2 carried in the received second VPN route. You may refer to the above steps. The relevant description of 402 will not be repeated here.
  • the length of the IPv6 address and SID is both 128 bits, the length of the generated FID is 256 bits, resulting in a long information table required to save the FID.
  • the locator field or IPv6 address in the SID is structured, the locator field in different SIDs or some fields in the IPv6 address are the same in a fixed network, and the information that can be used to distinguish different devices is a fixed part of it. field.
  • the locator field in the SID or the structural characteristics of the IPv6 address can be used to distinguish the device from the locator field in the SID or the IPv6 address. Extract by field, and use some of the extracted fields to generate a simplified version of the FID to reduce the length of the FID and reduce the data space required to store the FID.
  • FIG. 6 is a schematic diagram of a structured SID provided by an embodiment of the present application.
  • the locator field of the SID includes fixed prefix, type, province and city identification, reservation, network domain, shard reservation and node identification. Among them, the province and city identification accounts for 12 bits and the node identification accounts for 20 bits. Some fields used to distinguish devices. Therefore, the two partial fields of the province and city identification and the node identification can be used as the node information of the device.
  • the locator field in the first VPN SID indicates the node information of the communication device 1
  • the function field indicates the VPN identification.
  • the args field can be extended to carry the sub-service identifier under the VPN;
  • the second VPN route includes the IPv6 address of the communication device 2 and the second VPN SID, and the locator field in the second VPN SID Indicates the node information of the communication device 2
  • the function field indicates the VPN instance
  • the args field can be extended to carry the sub-service identifier under the VPN. Therefore, as the service connection is established, both the communication device 2 and the communication device 1 can generate the first FID and the second FID corresponding to the service connection based on the first VPN route and the second VPN route published by the control plane.
  • the communication device 2 and the communication device 1 have completed the establishment and identification of the service connection on the control plane, so that on the forwarding plane, the communication device 2 can send the first service message belonging to the first service flow based on the service connection. Since the first service message carries the node information of the source node, the node information of the sink node, and information used to identify different services. Therefore, traffic management of the first service flow can be performed based on the first FID corresponding to the service connection. In the same way, the communication device 1 can send the second service message belonging to the second service flow based on the service connection, because the second service message carries the node information of the source node, the node information of the sink node and the node information used to identify different services.
  • traffic management can be performed on the second service flow based on the second FID corresponding to the service connection.
  • traffic management can be performed on the service flows in different directions of the service connection, which refines the accuracy of traffic management.
  • FIG. 7 is a schematic diagram of a message forwarding process provided by an embodiment of the present application.
  • the communication device 2 receives the first service message from the interface bound to the VPN instance, Search the forwarding table corresponding to the VPN instance for the first VPN SID that matches the routing prefix of the destination address.
  • the communication device 2 encapsulates an SRv6 header for the first service message according to the forwarding principle of SRv6, where the source address (source address, SA) of the SRv6 header is the IPv6 address of the communication device 2: A2::9: 1.
  • the destination address (DA) is the first VPN SID: A1::8:B100:0, and the payload is the first service packet. Therefore, the communication device 2 can respectively obtain A2::9:1 and A1::8:B100:0 included in the first FID through the above-mentioned encapsulation operation of the SRv6 message header, and then the communication device 2 can obtain the A2::9:1 and A1::8:B100:0 included in the first FID.
  • the FID collects statistics on the transmission information of the first service packet.
  • the transmission information may include information such as the time of transmission and the quantity of transmission.
  • the embodiment of the present application does not limit the location where the communication device 2 saves the first FID, and it can be saved at any location that the communication device 2 can obtain.
  • communication device 2 may save the first FID in the VRF table of communication device 2 .
  • the communication device 2 can carry the generated first FID in the first service message, so that the communication device 1 can identify the first FID based on the received first service message.
  • the first service packet belongs to the first service flow, and traffic management is performed on the first service flow based on the first FID.
  • the communication device 2 can use the generated first FID as a flow identifier in the iFIT technology and carry it in the iFIT message header of the service message extension.
  • the first service message does not carry the first FID.
  • the communication device 1 After the communication device 1 receives the first service message, based on the mapping relationship between the node information of the communication device 2 and the first FID Determine the first FID and then base Perform traffic management on the first service flow on the first FID.
  • the communication device 1 after the communication device 1 generates the first FID corresponding to the service connection based on the second VPN route published by the communication device 2, it also saves the mapping relationship between the node information of the communication device 2 and the first FID. .
  • the communication device 1 can obtain the node information of the communication device 2 based on the next hop information in the second route.
  • the communication device 1 uses the node information of the communication device 2 as the key and the first FID as the value.
  • the communication device 1 stores the mapping relationship between the node information of the communication device 2 and the first FID. For example, deliver the key-value pair with the key A2::9:1 and the value A2::9:1+A1::8:B100:0 to the VRF.
  • the communication device 1 can find the mapping relationship between the node information of the communication device 2 and the first FID through the DA in the SRv6 message header. Furthermore, the first FID corresponding to the first service message can be found through the SA in the SRv6 message header, and the reception information of the first service message can be processed based on the first FID. For example, the reception information may include the time of reception. , quantity received and other information. In this case, since there is no need to carry the first FID in the transmitted first service message, the communication device 1 can determine and obtain the first FID through the SA and DA in the received first service message, and then implement the first FID based on the received first service message.
  • First FID traffic management Compared with iFIT technology, which uses the head node to carry the flow identifier of the configured service flow in the transmitted service message to perform traffic management on the service flow, the traffic management of the service flow implemented by the embodiment of the present application can Reduce the transmission pressure on the forwarding surface.
  • the communication device 2 can send the statistical message sending information corresponding to the first FID to the analyzer, and the communication device 1 can also send the statistical message receiving information corresponding to the first FID to the analyzer, so that the analyzer
  • the connection status of the service connection can be perceived based on the message sending information and message receiving information corresponding to the first FID.
  • the packet loss rate of the business connection is analyzed based on the number of messages sent in the message sending information and the number of received messages in the message receiving information.
  • the identification method of the business connection provided by the embodiment of the present application can generate FID without static configuration, and realizes the automatic generation of the FID corresponding to the business connection during the establishment process of the business connection, making the operation of generating FID simpler and easier to work. The amount is smaller and the generation efficiency is higher.
  • the FID since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection.
  • a business model of the entire network can be established by generating corresponding FIDs for each business connection, and the traffic status corresponding to each business connection can be visualized through the business model. Furthermore, since there is no need to deploy other protocols other than those required to establish business connections, the business flows corresponding to different business connections can be identified based on the transmitted business messages and automatically generated FIDs, which improves the efficiency of business flow identification. And because corresponding FIDs can be generated based on service connections of different granularities, the service flows transmitted by multiple service connections can be differentiatedly managed through the corresponding FIDs, further meeting traffic management needs.
  • the service connection identification method 800 includes the following steps.
  • the first communication device and the second communication device shown in FIG. 8 may be based on the ACC device and the PE3 device shown in FIG. 2 respectively.
  • the operations performed by the first communication device and the second communication device may be referred to the above-mentioned service connection. Identify the operations performed by the communication device 1 and the communication device 2 in the method 400.
  • Step 801 The first communication device receives the first route published by the second communication device.
  • the first route is used to establish a business connection between the first communication device and the second communication device.
  • the first route includes node information of the second communication device. .
  • the type of the first route may be a VPN route or a public network route, which is not limited in the embodiment of this application.
  • communication devices complete the establishment of service connections by publishing routes to each other.
  • a service connection is used to connect two communication devices so that service flows can be transmitted between the two communication devices.
  • the first route is a VPN route
  • the first route is used to establish a service connection between the first communication device and the second communication device, that is, a VPN.
  • the second communication device publishes the first route of the second communication device to the first communication device. Since the first route includes the node information of the second communication device, after receiving the first route, the first communication device The first route is delivered to the forwarding table of the first communication device. Therefore, the first communication device can send the first service flow to the second communication device based on the first route, that is, the first communication device establishes a service connection between the first communication device and the second communication device.
  • the first communication device will also send the second route of the first communication device to the second communication device.
  • the second communication device After receiving the second route published by the first communication device, the second communication device will also send the second route of the first communication device to the second communication device.
  • the second route is delivered to the forwarding table of the second communication device. Therefore, the second communication device can send the second service flow to the first communication device based on the second route, that is, the second communication device establishes a service connection between the second communication device and the first communication device.
  • the second route includes node information of the first communication device.
  • Step 802 The first communication device generates a first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the first FID is used to identify the first communication device to which the service connection is directed.
  • the first FID includes node information of the first communication device and node information of the second communication device.
  • the source node that sends the first service flow is a first communication device
  • the sink node that receives the first service flow is a second communication device. Since the first route includes the node information of the second communication device, the first communication device can obtain the node information of the sink node corresponding to the first service flow. Since the node information of the source node corresponding to the service connection is the first communication device itself, the first communication device can generate the first FID corresponding to the service connection based on the node information of the source node and the node information of the sink node. The first FID is To identify the first service flow sent by the first communication device to the second communication device.
  • the embodiments of the present application do not limit the method of generating the first FID corresponding to the service connection based on the node information of the source node and the node information of the sink node. It suffices to be able to identify the first service flow sent by the first communication device to the second communication device. . It can be understood that the content included in the first FID is different, and the granularity of the first service flow sent by the first communication device to the second communication device identified by the first FID is also different, that is, the identification granularity of the service connection is different.
  • the identification granularity of service connections includes but is not limited to the following types.
  • the first FID includes node information of the first communication device and node information of the second communication device.
  • the first FID only needs to include the node information of the source node and the node information of the sink node of the service connection.
  • the identification granularity of the service connection is two nodes, and the first FID is used to identify the first Service flows corresponding to all services sent by the communication device to the second communication device. That is to say, the service flow corresponding to any service sent by the first communication device to the second communication device can be identified by the first FID.
  • the first FID can also be used to identify service flows corresponding to all services sent by the second communication device to the first communication device. For example, when the first FID is the node information of the source node + When the first FID is the node information of the sink node + the node information of the source node, the first FID is used to identify the service flows corresponding to all services sent by the first communication device to the second communication device; when the first FID is the node information of the sink node + the node information of the source node, the first FID An FID is used to identify service flows corresponding to all services sent by the second communication device to the first communication device.
  • FIG. 9 is a schematic diagram of the identification result of a service connection provided by an embodiment of the present application.
  • the first communication device and the second communication device are configured with service 1 and service 2.
  • the service connection 1 is established between the first communication device and the second communication device.
  • the first communication device uses the service connection 1
  • the service flows of Service 1 and Service 2 are sent to the second communication device.
  • the FID1 corresponding to the service connection 1 is used to identify the service flows of Service 1 and Service 2 sent by the first communication device to the second communication device. That is, the packet statistical information obtained based on the FID1 is the statistical information corresponding to all the packets of service 1 and service 2 transmitted from the first communication device to the second communication device.
  • the address of the first communication device is a first IPv6 address
  • the first IPv6 address includes node information of the first communication device
  • the address of the second communication device is a second IPv6 address
  • the second IPv6 address Includes node information of the second communication device.
  • the embodiment of this application does not limit the node information, and it only needs to be used to distinguish the information of different nodes.
  • the node information of the first communication device is the entire content of the first IPv6 address
  • the node information of the second communication device is the entire content of the second IPv6 address
  • the node information of the first communication device is the entire content of the second IPv6 address.
  • the part of an IPv6 address used to identify the first communication device, and the node information of the second communication device is the part of the second IPv6 address used to identify the second communication device.
  • the first FID includes node information of the first communication device, node information of the second communication device, and first service information.
  • the first FID also includes the first service information used to distinguish different services.
  • the service The identification granularity of the connection is a service, and the first FID is used to identify a service flow corresponding to a service sent by the first communication device to the second communication device.
  • FIG. 10 is a schematic diagram of identification results of another service connection provided by an embodiment of the present application.
  • service 1 and service 2 are configured from the first communication device to the second communication device.
  • Service connection 1 and service connection 2 are established between the first communication device and the second communication device.
  • the first communication device passes the service Connection 1 sends the service flow of service 1 to the second communication device, and the first communication device sends the service flow of service 2 to the second communication device through service connection 2. Therefore, the FID1 corresponding to the service connection 1 is used to identify the service flow of the service 1 sent by the first communication device to the second communication device.
  • the packet statistical information obtained based on the first FID1 is the statistical information corresponding to the packets of service 1 transmitted from the first communication device to the second communication device.
  • the FID2 corresponding to the service connection 2 is used to identify the service flow of the service 2 sent by the first communication device to the second communication device. That is, the packet statistical information obtained based on the FID2 is the statistical information corresponding to the packets of service 2 transmitted from the first communication device to the second communication device.
  • the first route also carries the first service information, so that the first communication device can obtain the first service information.
  • the embodiment of the present application does not limit the first service information and can be used to Just distinguish the information of different businesses.
  • the first service information may be a VPN identifier.
  • the first route is a VPN route and the service connection is a VPN.
  • the first route also carries the VPN identifier, so that the first communication device can obtain the VPN identifier.
  • the first route carries the VPN SID, and the function field in the VPN SID is used to indicate the identity of the VPN. At this time, the identity of the VPN in the first FID is the function field in the VPN SID.
  • the first route carries VNI, and the VNI indicates the VXLAN tunnel. If the VXLAN tunnel is associated with a VPN, the VNI can also be used to indicate the VPN. In this case, the identifier of the VPN in the first FID can also be the VNI.
  • the first FID includes node information of the first communication device, node information of the second communication device, and the first service information and secondary business information.
  • the first FID also includes the node information used to distinguish the same service.
  • Second service information of different sub-services of the service is a sub-service under a service
  • the first FID is used to identify a service flow corresponding to a sub-service under a service sent by the first communication device to the second communication device.
  • different sub-services of the same service may be different levels of the same service, or different users of the same service, or different types of the same service, which are not limited in this embodiment of the present application.
  • Figure 11 is a schematic diagram of identification results of another service connection provided by an embodiment of the present application.
  • the service 1 includes sub-service 1 and sub-service 2, and a service connection 1 and a service connection are established between the first communication device and the second communication device 2.
  • the first communication device sends the service flow of sub-service 1 under service 1 to the second communication device through service connection 1, and the first communication device sends the service of sub-service 2 under service 1 to the second communication device through service connection 2. flow.
  • the first communication device identified by FID1 corresponding to the service connection 1 sends the service flow of sub-service 1 under service 1 to the second communication device. That is, the packet statistical information obtained based on the FID1 is the statistical information corresponding to the packets of sub-service 1 under service 1 transmitted from the first communication device to the second communication device.
  • the first communication device identified by FID4 corresponding to the service connection 2 sends the service flow of sub-service 1 under service 1 to the second communication device. That is, the packet statistical information obtained based on the FID2 is the statistical information corresponding to the packets of sub-service 1 under service 1 transmitted from the first communication device to the second communication device.
  • the first route also carries the second service information, so that the first communication device can obtain the second service information.
  • the embodiment of the present application does not limit the second service information and can be used to Just distinguish the information of different sub-businesses under the same business.
  • the first service information is the identifier of the VPN
  • the second service information may be the identifier of the sub-service of the VPN
  • the service connection is the sub-service connection of the VPN.
  • the first route carries the VPN SID
  • the location identification field in the VPN SID is used to indicate the node information of the second communication device
  • the function field of the VPN SID can be used to indicate the identity of the VPN.
  • the args field in the VPN SID is used to indicate the identity of the first sub-service of the VPN in the first FID.
  • the identifier of the first sub-service of the VPN may be a coded value of DSCP, or may be an identifier used to indicate the service type of the sub-service.
  • the identifier of the sub-service is used to indicate the voice sub-service, video sub-service or text sub-service, thereby enabling the method to identify the voice sub-service, video sub-service or text sub-service of the same VPN respectively, that is, generating the voice sub-service Business, video sub-service or text sub-service respectively correspond to the FID, and then the traffic management of respective business flows can be carried out based on their respective FIDs to achieve differentiated management of the traffic of different sub-services.
  • the first communication device identifies that the service corresponding to the service connection is the first service through the first service information in the first route, and the service configuration information includes the first sub-service and the second sub-service corresponding to the first service.
  • the first communication device can directly generate FID1 corresponding to the first sub-service and FID2 corresponding to the second sub-service through the first route.
  • FID1 is used to identify the first service sent by the first communication device to the second communication device.
  • FID2 The service flow corresponding to the first sub-service under the first communication device, FID2 is used to identify the service flow corresponding to the second sub-service under the first service sent by the first communication device to the second communication device. Therefore, two granularity FIDs corresponding to the service connection can be generated through a route and service configuration information containing the first service information, which reduces the number of route releases and improves the efficiency of establishing a service connection.
  • the number of first FIDs corresponding to the service connection generated by the first communication device based on the first route may be one or multiple.
  • the first FID can be generated according to any one of the above granularity one to three granularity methods.
  • the first FIDs include at least two FIDs generated according to at least two methods from the above granularity one to three.
  • the first communication device Based on the above process, the first communication device generates a first FID corresponding to the service connection based on the first route. Since the service flow transmitted by the service connection is bidirectional, the first communication device will also send the second route of the first communication device to the second communication device. The second route is used by the second communication device to establish communication between the second communication device and the first communication device. The service connection between devices causes the second communication device to also generate a second FID corresponding to the service connection based on the second route. The second FID is used to identify the second service flow sent by the second communication device to the first communication device.
  • the source node is the second communication device and the sink node is the first communication device. That is, the source node of the second service flow is the sink node of the first service flow. The sink node of the flow is the source node of the first service flow. Therefore, after generating the first FID corresponding to the service connection, the first communication device can automatically generate the second FID corresponding to the service connection and reverse to the first FID.
  • the second FID corresponding to the service connection obtained includes the node information of the second communication device, the node information of the first communication device and the first service information.
  • the first communication device since the first communication device will also send the second route of the first communication device to the second communication device, see that the first communication device generates the first FID corresponding to the service connection based on the first route.
  • the second communication device In the second FID method, the second communication device will also generate the second FID and the first FID corresponding to the service connection based on the second route.
  • the first communication device and the second communication device complete the establishment of the service connection on the control plane, and simultaneously generate the first FID and the second FID corresponding to the service connection.
  • the first communication device will save the first FID and the second FID generated based on service 1 as local service 1 information. middle.
  • the first FID includes the local node ID+the opposite node ID+the opposite service ID
  • the second FID includes the opposite node ID+the local node ID+the local service ID.
  • the local node ID is the node information of the first communication device
  • the opposite node ID is the node information of the second communication device
  • the opposite service ID and the local service ID are both service 1 Information.
  • the second communication device will save the first FID and the second FID generated based on service 1 in the local service 1 information, where the first FID includes the opposite node ID + the local node ID + the local service ID, and the second FID will be stored in the local service 1 information.
  • the second FID includes the local node ID + the opposite node ID + the opposite service ID.
  • the local node ID is the node information of the second communication device
  • the opposite node ID is the node information of the first communication device.
  • the node information, peer service ID and local service ID are all information services of service 1.
  • the first FID generated by the first communication device and the first FID generated by the second communication device are the same, and the second FID generated by the first communication device is the same as the second FID generated by the second communication device. It's the same. Therefore, the traffic flow of the service 1 sent by the first communication device to the second communication device can be managed based on the first FID, and the service flow 1 sent by the second communication device to the first communication device can be managed based on the second FID.
  • the first FID and the second FID jointly realize the identification of the service connection of the service 1 between the first communication device and the second communication device.
  • the first communication device after the first communication device generates the first flow identifier FID corresponding to the service connection, It also includes: the first communication device sends a first service message to the second communication device, the first service message belongs to the first service flow, and the first service message includes the first FID.
  • the first communication device performs traffic management on the first service flow based on the first FID.
  • the method in which the first communication device performs traffic management on the first service flow based on the first FID will be described.
  • the first communication device sends the first service packet to the second communication device
  • the first route in the forwarding table will be found based on the destination address of the first service packet.
  • the first route can be obtained.
  • the node information of the sink node corresponding to the first service flow Since the first communication device is the source node of the first service flow, the first communication device can obtain the source node of the corresponding service flow based on the first service message.
  • the node information and the node information of the sink node The first communication device is enabled to identify the first service flow to which the first service message belongs, and perform traffic management on the first service flow based on the first FID.
  • the method further includes: the first communication device receives the second communication The second service message sent by the device belongs to the second service flow, and the second service message includes the second FID.
  • the first communication device performs traffic management on the second service flow based on the second FID.
  • the method in which the first communication device performs traffic management on the second service flow based on the second FID will be described.
  • the node information of the source node corresponding to the second service flow can be obtained according to the source address in the second service message.
  • the target address in the second service message can obtain the node information of the sink node corresponding to the second service flow, so that the first communication device can identify the second service flow to which the second service message belongs, and perform matching based on the second FID.
  • the second service flow performs traffic management.
  • the method further includes: the first communication device saving the mapping relationship between the generated second FID and the second communication device.
  • the VRF of the first communication device includes a mapping relationship between the node information of the second communication device and the second FID.
  • the first communication device receives the second service message sent by the second communication device, and the second service message belongs to the second communication device.
  • the second service message includes the node information of the second communication device; the first communication device determines the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and the second FID determines the second FID based on the second FID.
  • the second business flow performs traffic management.
  • the method provided by this application also includes: the first communication device receives a third route published by the second communication device, and the third route is used to establish the first communication device
  • the second service connection with the second communication device includes the node information of the second communication device; the first communication device carries the second route according to the node information of the first communication device and the received third route.
  • the node information of the communication device generates a third FID corresponding to the second service connection.
  • the third FID is used to identify the third service flow sent by the first communication device to the second communication device.
  • the third FID includes the first communication device. node information and node information of the second communication device.
  • the first service connection established based on the first route is a first sub-service connection of the first VPN
  • the second service connection established based on the third route is a second sub-service connection of the first VPN.
  • Service connection, the second sub-service connection is used to transmit the second sub-service of the first VPN
  • the third route also includes the identifier of the first VPN
  • the generated third FID also includes the identifier of the first VPN and the identifier of the second sub-service.
  • the third service flow identified by the third FID is all service flows of the second sub-service of the first VPN transmitted between the first communication device and the second communication device.
  • FID and tertiary FID can be achieved Perform traffic management on the service flows of the first sub-service and the second sub-service of the same first VPN.
  • This application does not limit the number of multiple service connections established between the first communication device and the second communication device.
  • the first communication device and the second communication device can also establish The multiple service connections may be service flows used to transmit different sub-services of the same service.
  • multiple service connections established between the first communication device and the second communication device can also be used to transmit service flows of different services.
  • the first service connection established based on the first route is In the first VPN
  • the second service connection established based on the third route is the second VPN.
  • the third route also includes the identifier of the second VPN;
  • the generated third FID also includes the identifier of the second VPN.
  • the third service flow identified by the third FID is all the service flows of the second VPN transmitted between the first communication device and the second communication device.
  • not only all the service flows of the first VPN but also all the service flows of the second VPN can be transmitted between the first communication device and the second communication device, that is, between the first communication device and the second communication device.
  • Multiple business connections are established between each other.
  • the multiple business connections transmit business flows of different services. Traffic management of the business flows of different services can be implemented through different FIDs.
  • the second service connection established based on the third route is a sub-service connection of the second VPN, and the sub-service connection of the second VPN is used to transmit the sub-service of the second VPN.
  • the third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN and the identifier of the sub-service of the second VPN.
  • the third service flow identified by the third FID is all service flows of the sub-services of the second VPN transmitted between the first communication device and the second communication device.
  • not only all the service flows of the first VPN can be transmitted between the first communication device and the second communication device, but also all the service flows of the sub-services of the second VPN can be transmitted between the first communication device and the second communication device.
  • Multiple service connections are established between devices, and the multiple service connections transmit service flows of different services or sub-services of different services.
  • the first communication device receives a fourth route published by the third communication device.
  • the fourth route is used to establish a third service connection between the first communication device and the third communication device.
  • the fourth route including node information of the third communication device; the first communication device generates a fourth FID corresponding to the third service connection according to the node information of the first communication device and the node information of the third communication device carried in the fourth route, and the fourth The FID is used to identify the fourth service flow sent by the first communication device to the third communication device.
  • the fourth FID includes node information of the first communication device and node information of the third communication device.
  • the first communication device can not only establish a service connection with the second communication device, but also can establish a service connection with the third communication device, that is, the same communication device can establish a service connection with different communication devices.
  • Establish a business connection and automatically generate the FID corresponding to the business connection during the process of establishing the business connection.
  • the third service connection established based on the fourth route is a third VPN
  • the fourth route further includes an identifier of the third VPN
  • the fourth FID further includes an identifier of the third VPN.
  • the fourth service flow identified by the fourth FID is all the service flows of the third VPN transmitted between the first communication device and the third communication device.
  • the third service connection is a sub-service connection of the third VPN
  • the fourth route also includes the identifier of the third VPN
  • the fourth FID also includes the identifier of the third VPN and the third VPN identifier.
  • the fourth service flow identified by the fourth FID is all service flows of the sub-services of the third VPN transmitted between the first communication device and the third communication device.
  • the third VPN is the same as the above-mentioned first VPN, or the third VPN is different from the above-mentioned first VPN.
  • the methods of generating the third FID and the fourth FID can refer to the above-mentioned method of generating the first FID.
  • the relevant description of the first service connection to establish For the methods of the second service connection and the third service connection, please refer to the above-mentioned related description of establishing the first service connection based on the first route, and will not be described in detail here.
  • the identification method of the business connection provided by the embodiment of the present application can automatically generate the FID corresponding to the business connection according to the node information carried in the route used to establish the business connection during the establishment process of the business connection, and use the FID to identify the business connection. Identifies the business flow transmitted by this business connection. Since FID can be generated without static configuration, the operation of generating FID is simpler, the workload is smaller, and the generation efficiency is higher.
  • the FID since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection.
  • the method provided by the embodiments of the present application can generate corresponding FIDs based on service connections of different granularities established between two communication devices, so that the service flows transmitted by the service connections can be processed based on the FIDs corresponding to the service connections of different granularities. Management at different granularities improves the flexibility of traffic management.
  • FIG. 13 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the communication device is the ACC device, PE3 device, or PE4 device shown in FIG. 2 above. Based on the following multiple modules shown in Figure 13, it should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiments of the present application are not limited to this. As shown in Figure 13, the device includes:
  • the transceiver module 1301 is used to perform reception and/or transmission related operations performed by the communication device 2 in the service connection identification method 400 shown in Figure 4, or is used to perform the service connection identification method shown in Figure 8 Other operations other than the reception and/or transmission related operations performed by the first communication device in 800;
  • the processing module 1302 is configured to perform other operations other than the receiving and/or sending related operations performed by the communication device 2 in the service connection identification method 400 shown in FIG. 4, or is used to perform operations shown in FIG. 8. Other operations other than the reception and/or transmission related operations performed by the first communication device in the service connection identification method 800.
  • the transceiver module 1301 is configured to receive a first route published by a second communication device.
  • the first route is used to establish a business connection between the first communication device and the second communication device.
  • the first route including node information of the second communication device;
  • the processing module 1302 is configured to generate a first FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route, where the first FID is used
  • the first FID includes node information of the first communication device and node information of the second communication device.
  • the service connection is a VPN
  • the first route also includes the identifier of the VPN
  • the first FID further includes the identifier of the VPN.
  • the service connection is a sub-service connection of the VPN.
  • the sub-service connection is used to transmit the sub-service of the VPN.
  • the first route also includes the identifier of the VPN.
  • the first FID also includes the identifier of the VPN and the identifier of the sub-service. .
  • the first route also includes an identifier of the sub-service.
  • the address of the first communication device is a first IPv6 address
  • the first IPv6 address includes node information of the first communication device
  • the first route includes the second IPv6 address of the second communication device
  • the second The IPv6 address includes node information of the second communication device.
  • the second IPv6 address is an SRv6 VPN SID.
  • the locator field of the SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the SRv6 VPN SID is used to indicate the identity of the VPN.
  • the parameter field of the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
  • the first route includes a VNI.
  • the transceiver module 1301 is also configured to send a first service message to the second communication device.
  • the first service message belongs to the first service flow, and the first service message includes the first FID.
  • the processing module 1302 is also configured to perform traffic management on the first service flow based on the first FID.
  • the processing module 1302 is also configured to generate a second FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route.
  • the second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device.
  • the transceiver module 1301 is also configured to receive a second service message sent by the second communication device.
  • the second service message belongs to the second service flow, and the second service message includes the second FID.
  • the processing module 1302 is also used by the first communication device to perform traffic management on the second service flow based on the second FID.
  • the VRF of the first communication device includes a mapping relationship between the node information of the second communication device and the second FID;
  • the transceiver module 1301 is also used to receive a second service message sent by the second communication device.
  • the second service message belongs to the second service flow, and the second service message includes node information of the second communication device;
  • the processing module 1302 is also configured to determine the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and perform traffic management on the second service flow based on the second FID.
  • the device During the process of establishing a service connection, the device directly generates the FID corresponding to the service connection based on the first route used to establish the service connection, and then uses the FID to identify the service flow transmitted by the service connection, which can be obtained without static configuration.
  • the FID Therefore, the operation of generating FID is simpler, the workload is smaller, and the generation efficiency is higher.
  • the FID since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection.
  • the business flows corresponding to different business connections can be identified based on the transmitted business messages and automatically generated FIDs, which improves the efficiency of business flow identification.
  • corresponding FIDs can be generated based on service connections of different granularities, the service flows transmitted by multiple service connections can be differentiatedly managed through the corresponding FIDs, further meeting traffic management needs.
  • Figure 14 shows a schematic structural diagram of a network device 2000 provided by an exemplary embodiment of the present application.
  • the network device 2000 shown in FIG. 14 is used to perform the operations involved in the identification method 400 of the service connection shown in FIG. 4 or the identification method 800 of the service connection shown in FIG. 8 .
  • the network device 2000 is, for example, a switch, a router, etc., and the network device 2000 can be implemented by a general bus architecture.
  • the network device 2000 includes at least one processor 2001, a memory 2003, and at least one communication interface 2004.
  • the processor 2001 is, for example, a general central processing unit (CPU) or a digital signal processor. (digital signal processor, DSP), network processor (NP), graphics processing unit (GPU), neural network processing units (NPU), data processing unit (Data Processing Unit) , DPU), microprocessor or one or more integrated circuits used to implement the solution of the present application.
  • the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • a PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the processor may implement or execute the various logical blocks, modules and circuits described in conjunction with the disclosure of embodiments of the present invention.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the network device 2000 also includes a bus.
  • Buses are used to transfer information between components of network device 2000.
  • the bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 14, but it does not mean that there is only one bus or one type of bus.
  • the memory 2003 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (random access memory, RAM) or a device that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Other types of dynamic storage devices such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical discs Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, without limitation.
  • the memory 2003 exists independently, for example, and is connected to the processor 2001 through a bus.
  • the memory 2003 may also be integrated with the processor 2001.
  • the communication interface 2004 uses any device such as a transceiver for communicating with other devices or a communication network.
  • the communication network may be Ethernet, a radio access network (RAN) or a wireless local area network (WLAN), etc.
  • the communication interface 2004 may include a wired communication interface and may also include a wireless communication interface.
  • the communication interface 2004 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface, a wireless LAN ( wireless local area networks, WLAN) interface, cellular network communication interface or a combination thereof.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the communication interface 2004 can be used for the network device 2000 to communicate with other devices.
  • the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 14 .
  • Each of these processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in FIG. 14 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor here may refer to one or more devices, circuits, and/or or a processing core used to process data (such as computer program instructions).
  • the network device 2000 may also include an output device and an input device.
  • Output devices communicate with processor 2001 and can display information in a variety of ways.
  • the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc.
  • Input devices communicate with processor 2001 and can receive user input in a variety of ways.
  • the input device may be a mouse, a keyboard, a touch screen device or a sensing device, etc.
  • the memory 2003 is used to store the program code 2010 for executing the solution of the present application
  • the processor 2001 can execute the program code 2010 stored in the memory 2003. That is to say, the network device 2000 can implement the identification method of the service connection provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003.
  • Program code 2010 may include one or more software modules.
  • the processor 2001 itself can also store program codes or instructions for executing the solution of the present application.
  • the network device 2000 in the embodiment of the present application may correspond to the first communication device in each of the above method embodiments.
  • the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that as shown in Figure 14
  • the network device 2000 is capable of performing all or part of the operations performed by the first communication device.
  • the network device 2000 may also correspond to the communication device shown in FIG. 13 above, and each functional module in the communication device is implemented using the software of the network device 2000.
  • the functional modules included in the communication device are generated by the processor 2001 of the network device 2000 after reading the program code 2010 stored in the memory 2003.
  • Each step of the method for identifying a service connection shown in FIG. 8 is completed through an integrated logic circuit of hardware in the processor of the network device 2000 or instructions in the form of software.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, the details will not be described here.
  • Figure 15 shows a schematic structural diagram of a network device 2100 provided by another exemplary embodiment of the present application.
  • the network device 2100 shown in Figure 15 is used to perform the above-mentioned identification method 400 of service connections shown in Figure 4, Or all or part of the operations involved in the identification method 800 of the service connection shown in FIG. 8 .
  • the network device 2100 is, for example, a switch, a router, etc., and the network device 2100 can be implemented by a general bus architecture.
  • the network device 2100 includes: a main control board 2110 and an interface board 2130.
  • the main control board is also called the main processing unit (MPU) or route processor card.
  • the main control board 2110 is used to control and manage traffic of each component in the network device 2100, including route calculation, equipment Traffic management, equipment maintenance, and protocol processing functions.
  • the main control board 2110 includes: a central processing unit 2111 and a memory 2112.
  • the interface board 2130 is also called a line processing unit (LPU), line card or service board.
  • the interface board 2130 is used to provide various service interfaces and implement data packet forwarding.
  • Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc.
  • Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients).
  • the interface board 2130 includes: a central processor 2131, a network processor 2132, a forwarding entry memory 2134, and a physical interface card (physical interface card, PIC) 2133.
  • the central processor 2131 on the interface board 2130 is used to control traffic management of the interface board 2130 and communicate with the central processor 2111 on the main control board 2110.
  • the network processor 2132 is used to implement packet forwarding processing.
  • the network processor 2132 may be in the form of a forwarding chip.
  • the forwarding chip can be a network processor (NP).
  • the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the network processor 2132 is used to forward the received message based on the forwarding table stored in the forwarding table memory 2134.
  • the message is uploaded to the CPU (such as the central processor 2131) processing; if the destination address of the message is not the address of the network device 2100, the next hop and outbound interface corresponding to the destination address are found from the forwarding table according to the destination address, and the identification of the service connection is to the outbound interface corresponding to the destination address.
  • the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc.
  • the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
  • the physical interface card 2133 is used to implement the docking function of the physical layer.
  • the original traffic enters the interface board 2130 through this, and the processed packets are sent out from the physical interface card 2133.
  • the physical interface card 2133 is also called a daughter card and can be installed on the interface board 2130. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 2132 for processing.
  • the central processor 2131 can also perform the functions of the network processor 2132, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133.
  • the network device 2100 includes multiple interface boards.
  • the network device 2100 also includes an interface board 2140.
  • the interface board 2140 includes: a central processor 2141, a network processor 2142, a forwarding entry memory 2144, and a physical interface card 2143.
  • the functions and implementation methods of each component in the interface board 2140 are the same as or similar to those of the interface board 2130 and will not be described again here.
  • the network device 2100 also includes a switching network board 2120.
  • the switching fabric unit 2120 may also be called a switching fabric unit (switch fabric unit, SFU).
  • SFU switching fabric unit
  • the switching network board 2120 is used to complete data exchange between the interface boards.
  • the interface board 2130 and the interface board 2140 can communicate through the switching network board 2120.
  • the main control board 2110 is coupled with the interface board.
  • the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication protocol (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140.
  • the main control board 2110 and the interface board 2130 and the interface board 2140 communicate through IPC channels.
  • network device 2100 includes a control plane and a forwarding plane.
  • the control plane includes a main control board 2110 and a central processor 2111.
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry memory 2134, physical interface card 2133, and network processing.
  • the control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains the status of network devices.
  • the control plane sends the generated forwarding tables to the forwarding plane.
  • the network processor 2132 is based on the control
  • the forwarding table delivered above looks up the table and forwards the packets received by the physical interface card 2133.
  • the forwarding table delivered by the control plane may be stored in the forwarding table item storage 2134. In some embodiments, the control plane and forwarding plane may be completely separated and not on the same network device.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board.
  • network equipment can have at least one switching network board, which realizes data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing power. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture.
  • the network device can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two.
  • This form of network equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment).
  • the specific architecture used depends on the specific networking deployment scenario and is not limited here.
  • the network device 2100 corresponds to the communication device applied to the first communication device shown in FIG. 13 described above.
  • the transceiver module 1301 in the communication device shown in FIG. 13 is equivalent to the physical interface card 2133 in the network device 2100
  • the processing module 1302 is equivalent to the central processor 2111 or the network processor 2132 in the network device 2100.
  • the communication system includes: a first communication device and a second communication device.
  • the first communication device is the network device 2000 shown in FIG. 14 or the network device 2100 shown in FIG. 15
  • the second communication device is the network device 2000 shown in FIG. 14 or the network device 2100 shown in FIG. 15 .
  • An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals.
  • the processor executes the instructions stored in the memory, the processor is caused to execute the method required to be executed by the first communication device.
  • An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor.
  • the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals.
  • the processor executes the instructions stored in the memory, the processor is caused to execute the method required to be executed by the second communication device.
  • processor can be a CPU, or other general-purpose processor, digital signal processing (DSP), application specific integrated circuit (ASIC), field programmable gate array ( field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports advanced RISC machines (ARM) architecture.
  • ARM advanced RISC machines
  • the above-mentioned memory may include a read-only memory and a random access memory, and provide instructions and data to the processor.
  • Memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory.
  • ROM read-only memory
  • PROM programmable ROM
  • EPROM erasable programmable read-only memory
  • Erase programmable read-only memory electrically EPROM, EEPROM
  • Volatile memory may be random access memory (RAM), which is used as an external cache. By way of example but not is a restrictive note, many forms of RAM are available.
  • static random access memory static random access memory
  • dynamic random access memory dynamic random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous dynamic random access Memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous link dynamic random access memory direct rambus RAM, DR RAM
  • Embodiments of the present application also provide a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by the processor, so that the computer implements the identification method of a business connection as described above.
  • Embodiments of the present application also provide a computer program (product).
  • the computer program When the computer program is executed by a computer, it can cause the processor or computer to execute corresponding steps and/or processes in the above method embodiments.
  • An embodiment of the present application also provides a chip, including a processor, configured to call from a memory and run instructions stored in the memory, so that the communication device installed with the chip performs any of the above-mentioned business connections. Identification method.
  • An embodiment of the present application also provides another chip, including: a communication interface and a processor, based on the communication interface and the processor, the method in the above method embodiment is executed.
  • the communication interface is used to perform receiving and/or sending related operations, and the processor is used to perform other operations other than sending and receiving operations.
  • the communication interface may be, for example, an interface circuit, and the processor may be, for example, a processing circuit.
  • the chip further includes a memory, the communication interface, the processor and the memory are connected through internal connection paths, and the processor is used to execute the code in the memory.
  • the processor is configured to execute any of the above-mentioned identifying methods for service connections.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated therein.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk), etc.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
  • the computer program product includes one or more computer program instructions.
  • methods of embodiments of the present application may be described in the context of machine-executable instructions, such as included in a program module executing in a device on a target's real or virtual processor.
  • program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures.
  • the functionality of program modules may be combined or split between the described program modules.
  • Machine-executable instructions for program modules can execute locally or on a distributed device. In a distributed device, program modules can be located in both local and remote storage media.
  • Computer program codes for implementing the methods of embodiments of the present application may be written in one or more programming languages. These computer program codes may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the computer or other programmable data processing device, the program code causes the flowcharts and/or block diagrams to be displayed. The functions/operations specified in are implemented.
  • the program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
  • the computer program code or related data may be carried by any appropriate carrier, so that the device, device or processor can perform the various processes and operations described above.
  • Examples of carriers include signals, computer-readable media, and the like.
  • Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
  • a machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, laptop computer disk, hard drive, random memory accessor (RAM), read-only memory (ROM), erasable programmable read-only memory Memory (EPROM or flash memory), optical storage device, magnetic storage device, or any suitable combination thereof.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, or may be electrical, mechanical or other forms of connection.
  • the modules described as separate components may or may not be physically separated.
  • the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be saved Stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
  • first, second and other words are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that the terms “first”, “second” and “nth” There is no logical or sequential dependency, and there is no limit on the number or execution order. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first route may be referred to as a second route, and similarly, a second route may be referred to as a first route, without departing from the scope of various described examples. Both the first route and the second route may be routes, and in some cases, may be separate and distinct routes.
  • the size of the sequence number of each process does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not be determined by the execution order of the embodiments of the present application.
  • the implementation process constitutes no limitation.
  • determining B based on A does not mean determining B only based on A, and B can also be determined based on A and/or other information.
  • references throughout this specification to "one embodiment,””anembodiment,” and “a possible implementation” mean that specific features, structures, or characteristics related to the embodiment or implementation are included herein. In at least one embodiment of the application. Therefore, “in one embodiment” or “in an embodiment” or “a possible implementation” appearing in various places throughout this specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

Landscapes

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

Abstract

The present application relates to the technical field of communications. Disclosed are a method, apparatus and system for identifying a service connection, and a storage medium. The method comprises: a first communication apparatus receiving a first route, which is published by a second communication apparatus and is used for establishing a service connection between the first communication apparatus and the second communication apparatus; and according to node information of the first communication apparatus, and node information of the second communication apparatus which is carried in the received first route, generating a first FID corresponding to the service connection, wherein the first FID is used for identifying a first service flow which is sent by the first communication apparatus to the second communication apparatus, and the first FID comprises the node information of the first communication apparatus and the node information of the second communication apparatus. According to a route for establishing a service connection, an FID corresponding to the service connection is generated, such that the FID corresponding to the service connection is automatically generated along with the establishment process of the service connection; and compared with a static configuration mode, the operation is simpler, and the efficiency of generating the FID is higher.

Description

业务连接的标识方法、装置、系统及存储介质Identification methods, devices, systems and storage media for business connections
本申请要求于2022年3月21日提交的申请号为202210281721.9、发明名称为“一种自动建立业务连接标识的方法”的中国专利申请的优先权,本申请要求于2022年5月24日提交的申请号为202210575954.X、发明名称为“业务连接的标识方法、装置、系统及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202210281721.9 and the invention title "A method of automatically establishing a business connection identification" submitted on March 21, 2022. This application claims to be submitted on May 24, 2022 The priority of the Chinese patent application with application number 202210575954.
技术领域Technical field
本申请涉及通信技术领域,特别涉及业务连接的标识方法、装置、系统及存储介质。The present application relates to the field of communication technology, and in particular to methods, devices, systems and storage media for identifying business connections.
背景技术Background technique
随着通信技术的发展,通信网络中的任意两个通信装置之间可以建立一条或者多条业务连接,该业务连接可用于传输业务流。因此,通过生成业务连接对应的流标识,进而能够对业务连接传输的业务流进行流量管理。With the development of communication technology, one or more service connections can be established between any two communication devices in the communication network, and the service connections can be used to transmit service flows. Therefore, by generating a flow identifier corresponding to the service connection, traffic management of the service flow transmitted by the service connection can be performed.
发明内容Contents of the invention
本申请提供了一种业务连接的标识方法、装置、系统及存储介质,通过用于建立业务连接的路由自动生成该业务连接对应的流标识。This application provides a method, device, system and storage medium for identifying a business connection, which automatically generates a flow identifier corresponding to the business connection through the route used to establish the business connection.
第一方面,提供了一种业务连接的标识方法,该方法包括:第一通信装置接收第二通信装置发布的第一路由,该第一路由用于建立第一通信装置与第二通信装置之间的业务连接,该第一路由包括该第二通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和接收的第一路由中携带的第二通信装置的节点信息生成该业务连接对应的第一流标识(flow identifier,FID),该第一FID用于标识第一通信装置向第二通信装置发送的第一业务流,该第一FID包括第一通信装置的节点信息和第二通信装置的节点信息。In a first aspect, a method for identifying a service connection is provided. The method includes: a first communication device receiving a first route published by a second communication device, the first route being used to establish a connection between the first communication device and the second communication device. The first communication device generates the service based on the node information of the first communication device and the node information of the second communication device carried in the received first route. Connect the corresponding first flow identifier (FID). The first FID is used to identify the first service flow sent by the first communication device to the second communication device. The first FID includes node information of the first communication device and the first communication device. 2. Node information of the communication device.
该方法在业务连接建立的过程中,直接根据用于建立业务连接的路由生成该业务连接对应的FID,进而通过该FID来标识该业务连接传输的业务流。相比于在建立业务连接之后,再通过静态配置来生成业务连接对应的FID的方式,本申请由于无需静态配置,生成FID的操作更为简单,工作量更小,生成效率更高。此外,由于是基于建立业务连接的路由来生成的FID,该FID不仅可以用于标识该业务连接传输的业务流,还可以用于标识该业务连接,提供了有效的标识业务连接的方式。In the process of establishing a business connection, this method directly generates an FID corresponding to the business connection based on the route used to establish the business connection, and then uses the FID to identify the business flow transmitted by the business connection. Compared with the method of generating the FID corresponding to the business connection through static configuration after establishing the business connection, this application does not require static configuration, so the operation of generating the FID is simpler, the workload is smaller, and the generation efficiency is higher. In addition, since the FID is generated based on the route for establishing the service connection, the FID can be used not only to identify the service flow transmitted by the service connection, but also to identify the service connection, providing an effective way to identify the service connection.
在一种可能的实施方式中,业务连接指的是在两个通信装置之间建立的用于传输业务的连接,该业务连接也可以指的是在两个通信装置之间建立的用于传输一个子业务的连接,连接也可称为连接通道。也就是说,该业务连接可以是用于传输两个通信装置之间的所有业务的连接通道,或者,该业务连接是用于传输两个通信装置之间的一个业务的连接通道,或者,该业务连接是用于传输两个通信装置之间的一个子业务的连接通道。In a possible implementation, the service connection refers to a connection established between two communication devices for transmitting services. The service connection may also refer to a connection established between two communication devices for transmitting services. A connection of a sub-service, a connection can also be called a connection channel. That is to say, the service connection may be a connection channel used to transmit all services between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices. A service connection is a connection channel used to transmit a sub-service between two communication devices.
在一种可能的实施方式中,通过该业务连接,第一通信装置可向第二通信装置发送第一业务流,第二通信装置也可向第一通信装置发送第二业务流,因此,该第一FID不仅用于标识 第一通信装置向第二通信装置发送的第一业务流,该第一FID还可以用于标识第二通信装置向第一通信装置发送的第二业务流。In a possible implementation, through the service connection, the first communication device can send the first service flow to the second communication device, and the second communication device can also send the second service flow to the first communication device. Therefore, the The first FID is not only used for identification For the first service flow sent by the first communication device to the second communication device, the first FID may also be used to identify the second service flow sent by the second communication device to the first communication device.
本申请中提及的通信装置,可以是交换机、路由器等网络设备,也可以是网络设备上的一部分组件,例如是网络设备上的单板、线卡,也可以是网络设备上的一个功能模块,还可以是用于实现本申请方法的芯片,本申请不做限定。当通信装置是芯片时,用于实现该方法的收发单元例如可以是芯片的接口电路,处理单元可以是芯片中具有处理功能的处理电路。通信装置之间的连接方式包括但不限于通过以太网线或光缆直接连接。The communication device mentioned in this application can be a network device such as a switch or router, or a part of the network device, such as a single board or line card on the network device, or a functional module on the network device. , it can also be a chip used to implement the method of the present application, which is not limited by this application. When the communication device is a chip, the transceiver unit used to implement the method may be, for example, an interface circuit of the chip, and the processing unit may be a processing circuit with a processing function in the chip. Connection methods between communication devices include but are not limited to direct connection through Ethernet cables or optical cables.
在一种可能的实施方式中,该业务连接为虚拟专用网络(virtual private network,VPN),所述第一路由还包括该VPN的标识;所述第一FID还包括该VPN的标识。此种情况下,该第一FID标识的第一业务流为第一通信装置与第二通信装置之间传输的该VPN的所有业务流,使得该第一FID能够标识该VPN。In a possible implementation, the service connection is a virtual private network (VPN), the first route further includes an identifier of the VPN; the first FID further includes an identifier of the VPN. In this case, the first service flow identified by the first FID is all the service flows of the VPN transmitted between the first communication device and the second communication device, so that the first FID can identify the VPN.
在另一种可能的实施方式中,该业务连接为VPN的子业务连接,该子业务连接用于传输该VPN的子业务,所述第一路由还包括该VPN的标识;则生成的第一FID还包括该VPN的标识和该子业务的标识。此种情况下,该第一FID标识的第一业务流为第一通信装置与第二通信装置之间传输的该VPN的子业务对应的所有业务流,使得该方法能够标识更细粒度的业务流。In another possible implementation, the service connection is a sub-service connection of the VPN, and the sub-service connection is used to transmit the sub-service of the VPN. The first route also includes an identifier of the VPN; then the generated first route The FID also includes the identifier of the VPN and the identifier of the sub-service. In this case, the first service flow identified by the first FID is all service flows corresponding to the sub-services of the VPN transmitted between the first communication device and the second communication device, so that the method can identify more fine-grained services. flow.
在一种可能的实施方式中,当业务连接为VPN的子业务连接时,子业务的标识可以携带在第一路由中,使得第一通信装置基于接收的第一路由获取到该子业务的标识;或者,第一通信装置本地存储有VPN配置信息,第一通信装置基于接收的第一路由确定该VPN,然后通过本地存储的VPN配置信息获取该VPN对应的子业务的标识,无需通过第一路由携带该子业务的标识,减少了路由传输的数据量。In a possible implementation, when the service connection is a sub-service connection of the VPN, the identifier of the sub-service may be carried in the first route, so that the first communication device obtains the identifier of the sub-service based on the received first route. ; Or, the first communication device locally stores VPN configuration information, the first communication device determines the VPN based on the received first route, and then obtains the identifier of the sub-service corresponding to the VPN through the locally stored VPN configuration information without going through the first The route carries the identifier of the sub-service, which reduces the amount of data transmitted by the route.
需要说明的是,子业务可以是任意业务类型的子业务,子业务的标识可以为差分服务代码点(differentiated services code point,DSCP)的编码值,也可以为用于指示子业务的业务类型的标识。例如,子业务按照业务类型可以分为语音子业务、视频子业务或文本子业务。由此,应用本申请的方法能够分别生成标识同一VPN的语音子业务、视频子业务或文本子业务分别对应的FID,基于不同子业务的FID能够分别对各个子业务的业务流进行流量管理,进而对不同子业务的流量实现差异化管理。It should be noted that the sub-service can be a sub-service of any service type, and the identifier of the sub-service can be the coded value of the differentiated services code point (DSCP), or it can be used to indicate the service type of the sub-service. logo. For example, sub-services can be divided into voice sub-services, video sub-services or text sub-services according to service types. Therefore, applying the method of this application can generate FIDs respectively corresponding to the voice sub-service, video sub-service or text sub-service of the same VPN. Based on the FID of different sub-services, the traffic management of the business flow of each sub-service can be performed respectively. This enables differentiated management of the traffic of different sub-services.
该方法能够基于业务连接的不同粒度生成不同的FID,进而使得生成的FID能够标识不同粒度的业务流,因此,该业务连接的标识方法的灵活性较高。This method can generate different FIDs based on different granularities of business connections, so that the generated FIDs can identify business flows of different granularities. Therefore, the identification method of this business connection has high flexibility.
在一种可能的实施方式中,第一通信装置的地址为第一互联网协议第6版(internet protocol version 6,IPv6)地址,该第一IPv6地址包括该第一通信装置的节点信息,第一路由包括第二通信装置的第二IPv6地址,该第二IPv6地址包括第二通信装置的节点信息。In a possible implementation, the address of the first communication device is a first Internet protocol version 6 (IPv6) address, and the first IPv6 address includes node information of the first communication device. The first The route includes a second IPv6 address of the second communication device, the second IPv6 address including node information of the second communication device.
在一种可能的实施方式中,第一通信装置的节点信息为该第一IPv6地址的全部内容,第二通信装置的节点信息为该第二IPv6地址的全部内容;或者,第一通信装置的节点信息为该第一IPv6地址中用于标识第一通信装置的部分内容,第二通信装置的节点信息为该第二IPv6地址中用于标识第二通信装置的部分内容。当采用IPv6地址中的部分内容作为节点信息时,使得基于节点信息生成的FID的数据长度较短,减小了存储FID所需的数据空间。In a possible implementation, the node information of the first communication device is the entire content of the first IPv6 address, and the node information of the second communication device is the entire content of the second IPv6 address; or, the node information of the first communication device is the entire content of the second IPv6 address; The node information is part of the first IPv6 address used to identify the first communication device, and the node information of the second communication device is part of the second IPv6 address used to identify the second communication device. When part of the content in the IPv6 address is used as node information, the data length of the FID generated based on the node information is shorter, reducing the data space required to store the FID.
在基于IPv6转发平面的段路由(segment-routing IPv6,SRv6)中,第一路由包括的第二IPv6地址为第二SRv6 VPN段标识(segment identifier,SID)。当业务连接为VPN时,该第二SRv6 VPN SID还包括该VPN的标识;当业务连接为VPN的子业务连接时,该第二SRv6 VPN SID还 包括该VPN的标识和该VPN的子业务的标识。In segment-routing IPv6 (SRv6) based on the IPv6 forwarding plane, the second IPv6 address included in the first route is a second SRv6 VPN segment identifier (SID). When the service connection is a VPN, the second SRv6 VPN SID also includes the identifier of the VPN; when the service connection is a sub-service connection of the VPN, the second SRv6 VPN SID also includes Including the identifier of the VPN and the identifier of the sub-service of the VPN.
在一种可能的实施方式中,第二SRv6 VPN SID中的位置标识(locator)字段用于指示第二通信装置的节点信息,SRv6 VPN SID中的功能(function)字段用于指示VPN的标识。In a possible implementation, the location identifier (locator) field in the second SRv6 VPN SID is used to indicate the node information of the second communication device, and the function (function) field in the SRv6 VPN SID is used to indicate the identity of the VPN.
在一种可能的实施方式中,SRv6 VPN SID中的参数(arguments,args)字段用于指示VPN的子业务的标识。In a possible implementation, the parameters (arguments, args) field in the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
在一种可能的实施方式中,在虚拟扩展局域网(virtual extensible local area network,VXLAN)中,第一路由包括VXLAN网络标识符(VXLAN network identifier,VNI),该VNI用于标识VXLAN隧道。如果该VXLAN隧道与VPN进行了关联,则该VNI也能够用于指示该VPN。In a possible implementation, in a virtual extensible local area network (VXLAN), the first route includes a VXLAN network identifier (VXLAN network identifier, VNI), and the VNI is used to identify the VXLAN tunnel. If the VXLAN tunnel is associated with a VPN, the VNI can also be used to indicate the VPN.
该方法能够灵活应用于例如SRv6或VXLAN等场景中,使得该业务连接的标识方法具有广泛的通用性。This method can be flexibly applied to scenarios such as SRv6 or VXLAN, making this method of identifying business connections broadly versatile.
在一种可能的实施方式中,第一通信装置生成第一FID之后,还包括:第一通信装置向第二通信装置发送第一业务报文,该第一业务报文属于第一业务流,该第一业务报文包括该第一FID。通过在发送的第一业务报文中携带第一FID的方式,使得接收该第一业务报文的节点能够识别该第一业务流。In a possible implementation, after the first communication device generates the first FID, the method further includes: the first communication device sends a first service message to the second communication device, and the first service message belongs to the first service flow, The first service message includes the first FID. By carrying the first FID in the sent first service message, the node receiving the first service message can identify the first service flow.
在一种可能的实施方式中,第一通信装置生成第一FID之后,还包括:第一通信装置基于第一FID对第一业务流进行流量管理。其中,流量管理可以包括但不限于流量检测、流量统计、流量可视化、流量连接或流量服务质量控制等。基于本申请提供的方法,可生成不同业务连接对应的FID,通过不同业务连接对应的FID能够实现对不同业务流进行流量管理,提高流量管理的精确度,且能够满足不同业务连接的差异化管理需求。In a possible implementation, after the first communication device generates the first FID, the method further includes: the first communication device performs traffic management on the first service flow based on the first FID. Among them, traffic management can include but is not limited to traffic detection, traffic statistics, traffic visualization, traffic connection or traffic service quality control, etc. Based on the method provided by this application, FIDs corresponding to different business connections can be generated. Through the FIDs corresponding to different business connections, traffic management of different business flows can be achieved, the accuracy of traffic management can be improved, and the differentiated management of different business connections can be satisfied. need.
在本申请提供的技术方案中,第一通信装置也会向第二通信装置发布第二路由,第二路由用于建立第一通信装置与第二通信装置之间的业务连接,第二路由包括该第一通信装置的节点信息。In the technical solution provided by this application, the first communication device will also publish a second route to the second communication device. The second route is used to establish a business connection between the first communication device and the second communication device. The second route includes Node information of the first communication device.
在一种可能的实施方式中,第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息还会生成业务连接对应的第二FID,该第二FID用于标识第二通信装置向第一通信装置发送的第二业务流,第二FID同样包括第一通信装置的节点信息和第二通信装置的节点信息。由于第一通信装置不仅能够生成该业务连接对应的第一FID,还能够生成该业务连接对应的第二FID,通过第一FID和第二FID可分别标识同一业务连接对应的两个传输方向的业务流,能够对业务连接所传输的业务流进行更细化的流量管理。In a possible implementation, the first communication device also generates a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID also includes node information of the first communication device and node information of the second communication device. Since the first communication device can not only generate the first FID corresponding to the service connection, but also can generate the second FID corresponding to the service connection, the first FID and the second FID can respectively identify the two transmission directions corresponding to the same service connection. Business flow enables more detailed traffic management of the business flow transmitted by the business connection.
在一种可能的实施方式中,第一通信装置生成该第二FID之后,还包括:第一通信装置接收第二通信装置发送的第二业务报文,该第二业务报文属于第二业务流,该第二业务报文包括该第二FID。通过在第二业务报文中携带该第二FID的方式,使得第一通信装置能够根据接收的第二业务报文中的第二FID快速识别该第二业务流。In a possible implementation, after the first communication device generates the second FID, the method further includes: the first communication device receiving a second service message sent by the second communication device, and the second service message belongs to the second service flow, the second service packet includes the second FID. By carrying the second FID in the second service message, the first communication device can quickly identify the second service flow according to the second FID in the received second service message.
在一种可能的实施方式中,第一通信装置生成第二FID之后,还包括:第一通信装置基于该第二FID对第二业务流进行流量管理。第一通信装置分别基于第一FID对第一业务流进行流量管理,基于第二FID对第二业务流进行流量管理,且第一业务流与第二业务流为同一业务连接不同传输方向的业务流,因此,该方法能够满足同一业务连接在不同传输方向上的业务流的差异化流量管理需求。In a possible implementation, after the first communication device generates the second FID, the method further includes: the first communication device performs traffic management on the second service flow based on the second FID. The first communication device respectively performs traffic management on the first service flow based on the first FID, and performs traffic management on the second service flow based on the second FID, and the first service flow and the second service flow are services of the same service connection in different transmission directions. Therefore, this method can meet the differentiated traffic management requirements of business flows in different transmission directions for the same business connection.
在一种可能的实施方式中,第一通信装置生成第二FID之后,还包括:第一通信装置接 收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二通信装置的节点信息;第一通信装置基于第二通信装置的节点信息与第二FID的映射关系确定该第二FID,基于该第二FID对所述第二业务流进行流量管理。In a possible implementation, after the first communication device generates the second FID, the method further includes: the first communication device connects Receive a second service message sent by the second communication device, the second service message belongs to the second service flow, the second service message includes node information of the second communication device; the first communication device is based on the node information of the second communication device The mapping relationship with the second FID determines the second FID, and traffic management is performed on the second service flow based on the second FID.
本申请不对第一通信装置保存该映射关系的位置进行限定,例如,第二通信装置的节点信息与第二FID的映射关系可以保存在第一通信装置上。在一种可能的实施方式中,第一通信装置生成第二FID之后,第一通信装置通过虚拟路由转发(virtual routing forwarding,VRF)保存第二通信装置的节点信息与第二FID的映射关系。This application does not limit the location where the first communication device saves the mapping relationship. For example, the mapping relationship between the node information of the second communication device and the second FID may be saved on the first communication device. In a possible implementation, after the first communication device generates the second FID, the first communication device saves the mapping relationship between the node information of the second communication device and the second FID through virtual routing forwarding (VRF).
在本申请提供的技术方案中,可以在不同的两个通信装置之间建立多条业务连接,也可以在两个通信装置之间建立多个业务分别对应的多条业务连接。In the technical solution provided by this application, multiple service connections can be established between two different communication devices, or multiple service connections corresponding to multiple services can be established between two communication devices.
将上述基于第一路由建立的业务连接作为第一业务连接,本申请提供的方法还包括:第一通信装置接收第二通信装置发布的第三路由,该第三路由用于建立第一通信装置与第二通信装置之间的第二业务连接,该第三路由包括该第二通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和接收的第三路由中携带的第二通信装置的节点信息生成该第二业务连接对应的第三FID,该第三FID用于标识第一通信装置向第二通信装置发送的第三业务流,该第三FID包括第一通信装置的节点信息和第二通信装置的节点信息。Taking the above-mentioned service connection established based on the first route as the first service connection, the method provided by this application also includes: the first communication device receives a third route published by the second communication device, and the third route is used to establish the first communication device The second service connection with the second communication device, the third route includes the node information of the second communication device; the first communication device carries the second route according to the node information of the first communication device and the received third route. The node information of the communication device generates a third FID corresponding to the second service connection. The third FID is used to identify the third service flow sent by the first communication device to the second communication device. The third FID includes the first communication device. node information and node information of the second communication device.
在另一种可能的实施方式中,上述基于第一路由建立的第一业务连接为第一VPN的第一子业务连接,基于第三路由建立的第二业务连接为第一VPN的第二子业务连接,该第二子业务连接用于传输该第一VPN的第二子业务,所述第三路由还包括该第一VPN的标识;则生成的第三FID还包括该第一VPN的标识和该第二子业务的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第一VPN的第二子业务的所有业务流。也就是说,第一通信装置与第二通信装置之间不仅可以传输第一VPN的第一子业务的所有业务流,也可以传输第一VPN的第二子业务的所有业务流,通过第一FID和第三FID可实现对同一个第一VPN的第一子业务和第二子业务的业务流进行流量管理。In another possible implementation, the first service connection established based on the first route is a first sub-service connection of the first VPN, and the second service connection established based on the third route is a second sub-service connection of the first VPN. Service connection, the second sub-service connection is used to transmit the second sub-service of the first VPN, the third route also includes the identifier of the first VPN; then the generated third FID also includes the identifier of the first VPN and the identifier of the second sub-service. In this case, the third service flow identified by the third FID is all service flows of the second sub-service of the first VPN transmitted between the first communication device and the second communication device. That is to say, not only all the service flows of the first sub-service of the first VPN can be transmitted between the first communication device and the second communication device, but also all the service flows of the second sub-service of the first VPN can be transmitted between the first communication device and the second communication device. The FID and the third FID can implement traffic management on the service flows of the first sub-service and the second sub-service of the same first VPN.
本申请不对第一通信装置与第二通信装置之间建立的多条业务连接的数量进行限定,第一通信装置与第二通信装置之间还可以建立除了第一业务连接和第二业务连接之外的多条业务连接,该多条业务连接可以是用于传输同一业务的不同子业务的业务流。This application does not limit the number of multiple service connections established between the first communication device and the second communication device. In addition to the first service connection and the second service connection, the first communication device and the second communication device can also establish The multiple service connections may be service flows used to transmit different sub-services of the same service.
在一种可能的实施方式中,第一通信装置与第二通信装置之间建立的多条业务连接也可以用于传输不同业务的业务流,例如上述基于第一路由建立的第一业务连接为第一VPN,基于第三路由建立的第二业务连接为第二VPN,第三路由还包括第二VPN的标识;生成的第三FID还包括该第二VPN的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第二VPN的所有业务流。该种情况下,第一通信装置与第二通信装置之间不仅可以传输第一VPN的所有业务流,也可以传输第二VPN的所有业务流,也即第一通信装置与第二通信装置之间建立有多条业务连接,该多条业务连接传输不同业务的业务流,通过不同的FID可实现对不同业务的业务流进行流量管理。In a possible implementation, multiple service connections established between the first communication device and the second communication device can also be used to transmit service flows of different services. For example, the first service connection established based on the first route is In the first VPN, the second service connection established based on the third route is the second VPN. The third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN. In this case, the third service flow identified by the third FID is all the service flows of the second VPN transmitted between the first communication device and the second communication device. In this case, not only all the service flows of the first VPN but also all the service flows of the second VPN can be transmitted between the first communication device and the second communication device, that is, between the first communication device and the second communication device Multiple business connections are established between each other. The multiple business connections transmit business flows of different services. Traffic management of the business flows of different services can be implemented through different FIDs.
在另一种可能的实施方式中,基于第三路由建立的第二业务连接为第二VPN的子业务连接,该第二VPN的子业务连接用于传输该第二VPN的子业务,所述第三路由还包括该第二VPN的标识;则生成的第三FID还包括该第二VPN的标识和该第二VPN的子业务的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第二VPN的子业务的所有业务流。也就是说,第一通信装置与第二通信装置之间不仅可以传输第一VPN的 所有业务流,也可以传输第二VPN的子业务的所有业务流,也即第一通信装置与第二通信装置之间建立有多条业务连接,该多条业务连接传输不同业务或者不同业务的子业务的业务流。In another possible implementation, the second service connection established based on the third route is a sub-service connection of the second VPN, and the sub-service connection of the second VPN is used to transmit the sub-service of the second VPN. The third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN and the identifier of the sub-service of the second VPN. In this case, the third service flow identified by the third FID is all service flows of the sub-services of the second VPN transmitted between the first communication device and the second communication device. That is to say, the first communication device and the second communication device can not only transmit the first VPN All business flows can also transmit all business flows of sub-services of the second VPN, that is, multiple service connections are established between the first communication device and the second communication device, and the multiple service connections transmit different services or different services. The business flow of the sub-business.
在一种可能的实施方式中,第一通信装置接收第三通信装置发布的第四路由,第四路由用于建立第一通信装置与第三通信装置之间的第三业务连接,第四路由包括第三通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和第四路由中携带的第三通信装置的节点信息,生成该第三业务连接对应的第四FID,第四FID用于标识第一通信装置向第三通信装置发送的第四业务流,第四FID包括第一通信装置的节点信息和第三通信装置的节点信息。此种情况下,第一通信装置不仅可以与第二通信装置之间建立业务连接,第一通信装置也可以与第三通信装置建立业务连接,也即同一通信装置可以与不同的通信装置之间建立业务连接,并在建立业务连接的过程中自动生成业务连接对应的FID。In a possible implementation, the first communication device receives a fourth route published by the third communication device. The fourth route is used to establish a third service connection between the first communication device and the third communication device. The fourth route including node information of the third communication device; the first communication device generates a fourth FID corresponding to the third service connection according to the node information of the first communication device and the node information of the third communication device carried in the fourth route, and the fourth The FID is used to identify the fourth service flow sent by the first communication device to the third communication device. The fourth FID includes node information of the first communication device and node information of the third communication device. In this case, the first communication device can not only establish a service connection with the second communication device, but also can establish a service connection with the third communication device, that is, the same communication device can establish a service connection with different communication devices. Establish a business connection, and automatically generate the FID corresponding to the business connection during the process of establishing the business connection.
在一种可能的实施方式中,基于第四路由建立的第三业务连接为第三VPN,第四路由还包括第三VPN的标识;该第四FID还包括该第三VPN的标识。此种情况下,该第四FID标识的第四业务流为第一通信装置与第三通信装置之间传输的第三VPN的所有业务流。In a possible implementation, the third service connection established based on the fourth route is a third VPN, the fourth route further includes an identifier of the third VPN; the fourth FID further includes an identifier of the third VPN. In this case, the fourth service flow identified by the fourth FID is all the service flows of the third VPN transmitted between the first communication device and the third communication device.
在一种可能的实施方式中,该第三业务连接为第三VPN的子业务连接,第四路由还包括第三VPN的标识;该第四FID还包括该第三VPN的标识和第三VPN的子业务的标识。此种情况下,该第四FID标识的第四业务流为第一通信装置与第三通信装置之间传输的第三VPN的子业务的所有业务流。其中,第三VPN与上述第一VPN相同,或者,第三VPN与上述第一VPN不同。In a possible implementation, the third service connection is a sub-service connection of the third VPN, the fourth route also includes the identifier of the third VPN; the fourth FID also includes the identifier of the third VPN and the third VPN identifier. The identifier of the sub-business. In this case, the fourth service flow identified by the fourth FID is all service flows of the sub-services of the third VPN transmitted between the first communication device and the third communication device. Wherein, the third VPN is the same as the above-mentioned first VPN, or the third VPN is different from the above-mentioned first VPN.
综上,本申请提供的业务连接的标识方法中,可基于两个通信装置之间建立的不同粒度的业务连接生成对应的FID,从而基于不同粒度的业务连接对应的FID实现对业务连接所传输的业务流进行不同粒度的管理,提高了流量管理的灵活性。In summary, in the identification method of business connections provided by this application, corresponding FIDs can be generated based on business connections of different granularities established between two communication devices, so that based on the FIDs corresponding to business connections of different granularities, the information transmitted by the business connections can be realized. Business flows are managed at different granularities, which improves the flexibility of traffic management.
第二方面,提供了一种业务连接的标识方法,该方法包括:第一通信装置接收第二通信装置发布的第一路由,第一路由用于建立第一通信装置与第二通信装置之间的业务连接,第一路由包括第二通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第一FID,第一FID用于标识第一通信装置向第二通信装置发送的第一业务流,第一FID包括第一通信装置的节点信息和第二通信装置的节点信息;In a second aspect, a method for identifying a business connection is provided. The method includes: a first communication device receiving a first route published by a second communication device, and the first route is used to establish a connection between the first communication device and the second communication device. business connection, the first route includes the node information of the second communication device; the first communication device generates the first FID corresponding to the business connection based on the node information of the first communication device and the node information of the second communication device carried in the first route , the first FID is used to identify the first service flow sent by the first communication device to the second communication device, and the first FID includes node information of the first communication device and node information of the second communication device;
第二通信装置接收第一通信装置发布的第二路由,第二路由用于建立业务连接,第二路由包括第一通信装置的节点信息;第二通信装置根据第二通信装置的节点信息和第二路由中携带的第一通信装置的节点信息生成第一FID。The second communication device receives the second route published by the first communication device. The second route is used to establish a business connection. The second route includes the node information of the first communication device. The second communication device responds to the node information of the second communication device and the second communication device. The node information of the first communication device carried in the second route generates the first FID.
在一种可能的实施方式中,该业务连接为VPN,所述第一路由还包括所述VPN的标识,所述第二路由还包括所述VPN的标识;所述第一FID还包括所述VPN的标识。In a possible implementation, the service connection is a VPN, the first route further includes an identifier of the VPN, the second route further includes an identifier of the VPN; the first FID further includes the The logo of the VPN.
在一种可能的实施方式中,所述业务连接为VPN的子业务连接,所述子业务连接用于传输所述VPN的子业务,所述第一路由还包括所述VPN的标识,所述第二路由还包括所述VPN的标识,所述第一FID还包括所述VPN的标识和所述子业务的标识。In a possible implementation, the service connection is a sub-service connection of the VPN, and the sub-service connection is used to transmit the sub-service of the VPN. The first route also includes an identifier of the VPN, and the The second route also includes the identifier of the VPN, and the first FID also includes the identifier of the VPN and the identifier of the sub-service.
在一种可能的实施方式中,所述第一路由还包括所述子业务的标识,所述第二路由还包括所述子业务的标识。In a possible implementation, the first route further includes an identifier of the sub-service, and the second route further includes an identifier of the sub-service.
在一种可能的实施方式中,所述第一通信装置的地址为第一IPv6地址,所述第一IPv6地址包括所述第一通信装置的节点信息,所述第一路由包括所述第二通信装置的第二IPv6地址, 所述第二IPv6地址包括所述第二通信装置的节点信息,所述第二路由包括所述第一通信装置的第一IPv6地址。In a possible implementation, the address of the first communication device is a first IPv6 address, the first IPv6 address includes node information of the first communication device, and the first route includes the second the second IPv6 address of the communication device, The second IPv6 address includes node information of the second communication device, and the second route includes the first IPv6 address of the first communication device.
在一种可能的实施方式中,所述第二IPv6地址为第二SRv6 VPN SID,所述第一IPv6地址为第一SRv6 VPN SID。In a possible implementation, the second IPv6 address is a second SRv6 VPN SID, and the first IPv6 address is a first SRv6 VPN SID.
在一种可能的实施方式中,所述第二SRv6 VPN SID的位置标识字段用于指示所述第二通信装置的节点信息,所述第二SRv6 VPN SID的功能字段用于指示VPN的标识;所述第一SRv6 VPN SID的位置标识字段用于指示所述第一通信装置的节点信息,所述第一SRv6 VPN SID的功能字段用于指示VPN的标识。In a possible implementation, the location identification field of the second SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the second SRv6 VPN SID is used to indicate the identification of the VPN; The location identification field of the first SRv6 VPN SID is used to indicate the node information of the first communication device, and the function field of the first SRv6 VPN SID is used to indicate the identification of the VPN.
在一种可能的实施方式中,所述第二SRv6 VPN SID的参数字段用于指示所述VPN的子业务的标识,所述第一SRv6 VPN SID的参数字段用于指示所述VPN的子业务的标识。In a possible implementation, the parameter field of the second SRv6 VPN SID is used to indicate the identity of the sub-service of the VPN, and the parameter field of the first SRv6 VPN SID is used to indicate the sub-service of the VPN. logo.
在一种可能的实施方式中,所述第一路由包括VNI,所述第二路由包括VNI。In a possible implementation, the first route includes a VNI, and the second route includes a VNI.
在一种可能的实施方式中,该方法还包括:第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第二FID,第二FID用于标识第二通信装置向第一通信装置发送的第二业务流,第二FID包括第一通信装置的节点信息和第二通信装置的节点信息;In a possible implementation, the method further includes: the first communication device generating a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID is used to identify the second service flow sent by the second communication device to the first communication device, and the second FID includes node information of the first communication device and node information of the second communication device;
第二通信装置根据第二通信装置的节点信息和第二路由中携带的第一通信装置的节点信息生成第二FID。The second communication device generates a second FID based on the node information of the second communication device and the node information of the first communication device carried in the second route.
在一种可能的实施方式中,所述第一通信装置生成所述第一FID之后,还包括:所述第一通信装置向所述第二通信装置发送第一业务报文,所述第一业务报文属于所述第一业务流,所述第一业务报文包括所述第一FID;In a possible implementation, after the first communication device generates the first FID, the method further includes: the first communication device sending a first service message to the second communication device, and the first communication device The service packet belongs to the first service flow, and the first service packet includes the first FID;
所述第二通信装置生成所述第一FID之后,还包括:所述第二通信装置接收所述第一通信装置发送的所述第一业务报文。After the second communication device generates the first FID, the method further includes: the second communication device receiving the first service message sent by the first communication device.
在一种可能的实施方式中,所述第二通信装置生成所述第二FID之后,还包括:所述第二通信装置向所述第一通信装置发送第二业务报文,所述第二业务报文属于所述第二业务流,所述第二业务报文包括所述第二FID;In a possible implementation, after the second communication device generates the second FID, the method further includes: the second communication device sends a second service message to the first communication device, and the second communication device The service message belongs to the second service flow, and the second service message includes the second FID;
所述第一通信装置生成所述第二FID之后,还包括:所述第一通信装置接收所述第二通信装置发送的第二业务报文。After the first communication device generates the second FID, the method further includes: the first communication device receiving a second service message sent by the second communication device.
在一种可能的实施方式中,第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第一FID之后,还包括:第一通信装置基于第一FID对第一业务流进行流量管理;In a possible implementation, after the first communication device generates the first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route, it further includes: a first The communication device performs traffic management on the first service flow based on the first FID;
第二通信装置根据第二通信装置的节点信息和第二路由中携带的第一通信装置的节点信息生成第一FID之后,还包括:第二通信装置基于第一FID对第一业务流进行流量管理。After the second communication device generates the first FID according to the node information of the second communication device and the node information of the first communication device carried in the second route, the method further includes: the second communication device performs traffic flow on the first service flow based on the first FID. manage.
在一种可能的实施方式中,第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第二FID之后,还包括:第一通信装置基于第二FID对第二业务流进行流量管理;In a possible implementation, after the first communication device generates the second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route, it further includes: a first The communication device performs traffic management on the second service flow based on the second FID;
第二通信装置根据第二通信装置的节点信息和第二路由中携带的第一通信装置的节点信息生成第二FID之后,还包括:第二通信装置基于第二FID对第二业务流进行流量管理。After the second communication device generates the second FID based on the node information of the second communication device and the node information of the first communication device carried in the second route, the method further includes: the second communication device performs traffic on the second service flow based on the second FID. manage.
在一种可能的实施方式中,所述第一通信装置生成所述第二FID之后,还包括:所述第一通信装置接收所述第二通信装置发送的第二业务报文,所述第二业务报文属于所述第二业务 流,所述第二业务报文包括所述第二通信装置的节点信息;所述第一通信装置基于所述第二通信装置的节点信息与所述第二FID的映射关系确定所述第二FID,基于所述第二FID对所述第二业务流进行流量管理。In a possible implementation, after the first communication device generates the second FID, the method further includes: the first communication device receives a second service message sent by the second communication device, and the first communication device The second service message belongs to the second service flow, the second service message includes node information of the second communication device; the first communication device determines the second FID based on the mapping relationship between the node information of the second communication device and the second FID. FID, performing traffic management on the second service flow based on the second FID.
在一种可能的实施方式中,所述第二通信装置生成所述第一FID之后,还包括:所述第二通信装置接收所述第一通信装置发送的第一业务报文,所述第一业务报文属于所述第一业务流,所述第一业务报文包括所述第一通信装置的节点信息;所述第二通信装置基于所述第一通信装置的节点信息与所述第一FID的映射关系确定所述第一FID,基于所述第一FID对所述第一业务流进行流量管理。In a possible implementation, after the second communication device generates the first FID, the method further includes: the second communication device receives the first service message sent by the first communication device, and the second communication device A service message belongs to the first service flow, and the first service message includes node information of the first communication device; the second communication device is based on the node information of the first communication device and the third communication device. A mapping relationship between FIDs determines the first FID, and traffic management is performed on the first service flow based on the first FID.
第三方面,提供了一种通信装置,该装置包括:In a third aspect, a communication device is provided, which device includes:
收发模块,用于执行第一方面或第一方面的任一种可能的实施方式中由所述第一通信装置所执行的接收和/或发送相关的操作;A transceiver module, configured to perform reception and/or transmission related operations performed by the first communication device in the first aspect or any possible implementation of the first aspect;
处理模块,用于执行第一方面或第一方面的任一种可能的实施方式中由所述第一通信装置所执行的接收和/或发送相关的操作之外的其它操作。A processing module configured to perform other operations other than the receiving and/or sending related operations performed by the first communication device in the first aspect or any possible implementation manner of the first aspect.
一种具体的实施方式中,收发模块包括接收模块和/或发送模块。接收模块用于执行接收相关的操作,发送模块用于执行发送相关的操作。In a specific implementation, the transceiver module includes a receiving module and/or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.
在一种可能的实施方式中,收发模块,用于接收第二通信装置发布的第一路由,第一路由用于建立第一通信装置与第二通信装置之间的业务连接,第一路由包括第二通信装置的节点信息;In a possible implementation, the transceiver module is configured to receive a first route published by a second communication device. The first route is used to establish a business connection between the first communication device and the second communication device. The first route includes Node information of the second communication device;
处理模块,用于根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第一FID,第一FID用于标识第一通信装置向第二通信装置发送的第一业务流,第一FID包括第一通信装置的节点信息和第二通信装置的节点信息。A processing module configured to generate a first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The first FID is used to identify the first communication device to the second communication device. The first service flow sent by the device, the first FID includes node information of the first communication device and node information of the second communication device.
在一种可能的实施方式中,业务连接为VPN,第一路由还包括该VPN的标识;第一FID还包括该VPN的标识。In a possible implementation, the service connection is a VPN, the first route also includes the identifier of the VPN; the first FID further includes the identifier of the VPN.
在一种可能的实施方式中,业务连接为VPN的子业务连接,子业务连接用于传输VPN的子业务,第一路由还包括VPN的标识,第一FID还包括VPN的标识和子业务的标识。In a possible implementation, the service connection is a sub-service connection of the VPN. The sub-service connection is used to transmit the sub-service of the VPN. The first route also includes the identifier of the VPN. The first FID also includes the identifier of the VPN and the identifier of the sub-service. .
在一种可能的实施方式中,第一路由还包括子业务的标识。In a possible implementation, the first route also includes an identifier of the sub-service.
在一种可能的实施方式中,第一通信装置的地址为第一IPv6地址,第一IPv6地址包括第一通信装置的节点信息,第一路由包括第二通信装置的第二IPv6地址,第二IPv6地址包括第二通信装置的节点信息。In a possible implementation, the address of the first communication device is a first IPv6 address, the first IPv6 address includes node information of the first communication device, the first route includes the second IPv6 address of the second communication device, and the second The IPv6 address includes node information of the second communication device.
在一种可能的实施方式中,第二IPv6地址为SRv6 VPN SID。In a possible implementation, the second IPv6 address is an SRv6 VPN SID.
在一种可能的实施方式中,SRv6 VPN SID的位置标识字段用于指示第二通信装置的节点信息,SRv6 VPN SID的功能字段用于指示VPN的标识。In a possible implementation, the location identification field of the SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the SRv6 VPN SID is used to indicate the identity of the VPN.
在一种可能的实施方式中,SRv6 VPN SID的参数字段用于指示VPN的子业务的标识。In a possible implementation, the parameter field of the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
在一种可能的实施方式中,第一路由包括VNI。In a possible implementation, the first route includes a VNI.
在一种可能的实施方式中,收发模块,还用于向第二通信装置发送第一业务报文,第一业务报文属于第一业务流,第一业务报文包括第一FID。In a possible implementation, the transceiver module is also configured to send a first service message to the second communication device, where the first service message belongs to the first service flow, and the first service message includes the first FID.
在一种可能的实施方式中,处理模块,还用于基于第一FID对第一业务流进行流量管理。In a possible implementation, the processing module is also configured to perform traffic management on the first service flow based on the first FID.
在一种可能的实施方式中,处理模块,还用于根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第二FID,第二FID用于标识第二通信 装置向第一通信装置发送的第二业务流,第二FID包括第一通信装置的节点信息和第二通信装置的节点信息。In a possible implementation, the processing module is further configured to generate a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID is Yu Logo Second Communications The second service flow sent by the device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device.
在一种可能的实施方式中,收发模块,还用于接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二FID。In a possible implementation, the transceiver module is also configured to receive a second service message sent by the second communication device. The second service message belongs to the second service flow, and the second service message includes the second FID.
在一种可能的实施方式中,处理模块,还用于基于第二FID对第二业务流进行流量管理。In a possible implementation, the processing module is also configured to perform traffic management on the second service flow based on the second FID.
在一种可能的实施方式中,收发模块,还用于接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二通信装置的节点信息;In a possible implementation, the transceiver module is also configured to receive a second service message sent by the second communication device. The second service message belongs to the second service flow, and the second service message includes the second service message of the second communication device. Node information;
处理模块,还用于基于第二通信装置的节点信息与第二FID的映射关系确定第二FID,基于第二FID对第二业务流进行流量管理。The processing module is also configured to determine the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and perform traffic management on the second service flow based on the second FID.
第四方面,提供了一种通信系统,该通信系统包括第一通信装置和第二通信装置;In a fourth aspect, a communication system is provided, the communication system including a first communication device and a second communication device;
第一通信装置,用于执行第二方面中任一所述的第一通信装置所执行的操作;A first communication device, configured to perform operations performed by the first communication device according to any one of the second aspects;
第二通信装置,用于执行第二方面中任一所述的第二通信装置所执行的操作。The second communication device is configured to perform the operations performed by the second communication device according to any one of the second aspects.
第五方面,提供了一种通信装置,该通信装置包括:处理器,所述处理器与存储器耦合,所述存储器中存储有至少一条程序指令或代码,所述至少一条程序指令或代码由所述处理器加载并执行,以使所述通信装置实现如上第一方面或第一方面的任一种可能的实施方式中的方法,或者,使所述通信装置实现如上第二方面或第二方面的任一种可能的实施方式中的方法。In a fifth aspect, a communication device is provided. The communication device includes: a processor, the processor is coupled to a memory, and at least one program instruction or code is stored in the memory. The at least one program instruction or code is composed of the The processor loads and executes, so that the communication device implements the above first aspect or the method in any possible implementation manner of the first aspect, or allows the communication device to implement the above second aspect or the second aspect. method in any possible implementation.
可选地,所述处理器为一个或多个,所述存储器为一个或多个。Optionally, there are one or more processors and one or more memories.
可选地,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。Alternatively, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be set in different On the chip, the embodiment of the present application does not limit the type of memory and the arrangement of the memory and the processor.
第六方面,提供了一种通信装置,该装置包括:收发器、存储器和处理器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收信号,并控制收发器发送信号,并且当该处理器执行该存储器存储的指令时,使得该通信装置执行第一方面或第一方面的任一种可能的实施方式中的方法。In a sixth aspect, a communication device is provided, which includes a transceiver, a memory, and a processor. Wherein, the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals. , and when the processor executes the instructions stored in the memory, the communication device is caused to execute the method in the first aspect or any possible implementation of the first aspect.
第七方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行,以使计算机实现如上任一所述的业务连接的标识方法。In a seventh aspect, a computer-readable storage medium is provided. At least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor, so that the computer implements any of the above-mentioned identification methods of business connections. .
第八方面,提供了一种计算机程序(产品),所述计算机程序(产品)包括:计算机程序代码,当所述计算机程序代码被计算机运行时,使得所述计算机执行上述各方面中的方法。In an eighth aspect, a computer program (product) is provided. The computer program (product) includes: computer program code. When the computer program code is run by a computer, it causes the computer to perform the methods in the above aspects.
第九方面,提供了一种芯片,包括处理器,用于从存储器中调用并运行所述存储器中存储的指令,使得安装有所述芯片的通信设备执行上述各方面中的方法。In a ninth aspect, a chip is provided, including a processor configured to call from a memory and run instructions stored in the memory, so that a communication device equipped with the chip executes the methods in the above aspects.
第十方面,提供另一种芯片,包括:通信接口和处理器,基于所述通信接口和所述处理器,执行上述各方面及任一种可能的实施方式中的方法。其中,该通信接口用于执行接收和/或发送相关的操作,该处理器用于执行收发操作以外的其它操作。该通信接口例如可以是接口电路,该处理器例如可以是处理电路。In a tenth aspect, another chip is provided, including: a communication interface and a processor, based on the communication interface and the processor, executing the above aspects and the method in any possible implementation manner. The communication interface is used to perform receiving and/or sending related operations, and the processor is used to perform other operations other than sending and receiving operations. The communication interface may be, for example, an interface circuit, and the processor may be, for example, a processing circuit.
在一种可能的实施方式中,该芯片还包括存储器,所述通信接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码 被执行时,所述处理器用于执行上述各方面中的方法。In a possible implementation, the chip further includes a memory, the communication interface, the processor and the memory are connected through internal connection paths, and the processor is used to execute the code in the memory. Said code When executed, the processor is configured to perform the methods in the above aspects.
应当理解的是,本申请实施例的第二方面至第十方面技术方案及对应的可能的实施方式所取得的有益效果可以参见上述对第一方面及其对应的可能的实施方式的技术效果,此处不再赘述。It should be understood that the beneficial effects achieved by the technical solutions of the second to tenth aspects of the embodiments of the present application and the corresponding possible implementations can be referred to the above technical effects of the first aspect and the corresponding possible implementations. No further details will be given here.
附图说明Description of the drawings
图1为本申请实施例提供的一种业务连接的标识方法的实施环境示意图;Figure 1 is a schematic diagram of the implementation environment of a method for identifying business connections provided by an embodiment of the present application;
图2为本申请实施例提供的另一种业务连接的标识方法的实施环境示意图;Figure 2 is a schematic diagram of the implementation environment of another method for identifying business connections provided by an embodiment of the present application;
图3为本申请实施例提供的一种SID的结构示意图;Figure 3 is a schematic structural diagram of a SID provided by an embodiment of the present application;
图4为本申请实施例提供的一种业务连接的标识方法的交互示意图;Figure 4 is an interactive schematic diagram of a method for identifying service connections provided by an embodiment of the present application;
图5为本申请实施例提供的一种路由发布过程的示意图;Figure 5 is a schematic diagram of a route publishing process provided by an embodiment of the present application;
图6为本申请实施例提供的一种结构化的SID的示意图;Figure 6 is a schematic diagram of a structured SID provided by an embodiment of the present application;
图7为本申请实施例提供的一种报文转发过程的示意图;Figure 7 is a schematic diagram of a message forwarding process provided by an embodiment of the present application;
图8为本申请实施例提供的一种业务连接的标识方法的流程图;Figure 8 is a flow chart of a method for identifying service connections provided by an embodiment of the present application;
图9为本申请实施例提供的一种业务连接的标识结果示意图;Figure 9 is a schematic diagram of the identification result of a service connection provided by the embodiment of the present application;
图10为本申请实施例提供的另一种业务连接的标识结果示意图;Figure 10 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application;
图11为本申请实施例提供的另一种业务连接的标识结果示意图;Figure 11 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application;
图12为本申请实施例提供的另一种业务连接的标识结果示意图;Figure 12 is a schematic diagram of the identification result of another service connection provided by the embodiment of the present application;
图13为本申请实施例提供的一种通信装置的示意图;Figure 13 is a schematic diagram of a communication device provided by an embodiment of the present application;
图14为本申请实施例提供的一种网络设备的结构示意图;Figure 14 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图15为本申请实施例提供的另一种网络设备的结构示意图。Figure 15 is a schematic structural diagram of another network device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
随着通信技术的发展,通信网络中的通信装置之间建立的业务连接越来越多。其中,业务连接指的是在两个通信装置之间建立的用于传输业务的连接,该业务连接也可以指的是在两个通信装置之间建立的用于传输一个子业务的连接,连接也可称为连接通道。基于业务连接的不同粒度,该业务连接可以是用于传输两个通信装置之间的所有业务的连接通道,或者,该业务连接是用于传输两个通信装置之间的一个业务的连接通道,或者,该业务连接是用于传输两个通信装置之间的一个子业务的连接通道。With the development of communication technology, more and more business connections are established between communication devices in the communication network. The service connection refers to a connection established between two communication devices for transmitting services. The service connection may also refer to a connection established between two communication devices for transmitting a sub-service. The connection Also called a connection channel. Based on different granularities of the service connection, the service connection may be a connection channel used to transmit all services between two communication devices, or the service connection may be a connection channel used to transmit one service between two communication devices, Alternatively, the service connection is a connection channel for transmitting a sub-service between two communication devices.
相关技术中,例如,随流检测(in-situ flow information telemetry,iFIT)技术,通过静态配置来生成该业务连接对应的目标业务流的流标识。但是,由于相关技术中的业务连接对应的流标识依赖静态配置生成,使得生成该业务连接对应的流标识的操作较复杂,工作量较大,进而导致生成该业务连接对应的FID的效率不高。Among related technologies, for example, in-situ flow information telemetry (iFIT) technology generates a flow identifier of the target service flow corresponding to the service connection through static configuration. However, since the flow identifier corresponding to the service connection in the related technology relies on static configuration generation, the operation of generating the flow identifier corresponding to the service connection is complicated and the workload is large, which in turn results in the inefficiency of generating the FID corresponding to the service connection. .
本申请实施例提供了一种业务连接的标识方法,该方法不依赖静态配置,能够在建立业务连接的过程中,基于建立业务连接的路由自动生成该业务连接对应的FID,实现将FID的生成和业务连接的建立联动起来,从而使得生成FID的操作更为简单,工作量更小,效率更高。参见图1,图1为本申请实施例提供的一种业务连接的标识方法的实施环境 示意图。如图1所示,该实施环境中包括第一通信装置和第二通信装置,第一通信装置和第二通信装置分别用作通信网络的两个边缘路由设备,其中,第一通信装置连接有第一客户端,用于将该第一客户端连接到通信网络,第二通信装置连接有第二客户端,用于将该第二客户端连接到通信网络。第一客户端和第二客户端可以是用户边缘(custom edge,CE)设备,该CE设备可以是路由器,也可以是交换机。该第一客户端和第二客户端也可以是用户使用的任意终端设备,例如,个人计算机(Personal Computer,PC)、智能手机、个人数字助手(Personal Digital Assistant,PDA)、可穿戴设备、掌上电脑PPC(Pocket PC,PPC)、平板电脑、智能车机等。The embodiment of the present application provides a method for identifying a business connection. This method does not rely on static configuration and can automatically generate the FID corresponding to the business connection based on the route for establishing the business connection during the process of establishing the business connection, thereby realizing the generation of the FID. Linked with the establishment of business connections, the operation of generating FID is simpler, the workload is smaller, and the efficiency is higher. Referring to Figure 1, Figure 1 is an implementation environment of a service connection identification method provided by an embodiment of the present application. Schematic diagram. As shown in Figure 1, the implementation environment includes a first communication device and a second communication device. The first communication device and the second communication device are respectively used as two edge routing devices of the communication network, wherein the first communication device is connected to The first client is used to connect the first client to the communication network, and the second communication device is connected to the second client, used to connect the second client to the communication network. The first client and the second client may be custom edge (CE) devices, and the CE device may be a router or a switch. The first client and the second client can also be any terminal device used by the user, such as a personal computer (Personal Computer, PC), smart phone, personal digital assistant (Personal Digital Assistant, PDA), wearable device, handheld device Computer PPC (Pocket PC, PPC), tablet computer, smart car, etc.
在本申请实施例中,第一通信装置和第二通信装置为具有路由发布功能和报文转发功能的装置。通过路由发布功能,第一通信装置和第二通信装置之间能够在通信网络中建立一条或多条业务连接,通过报文转发功能,第一通信装置和第二通信装置通过任一条业务连接传输业务流。在本申请实施例中,基于业务连接建立过程中发布的路由自动生成该业务连接对应的FID,实现对该业务连接的标识。由此,在传输业务流时,即可基于生成的FID对该业务连接所传输的业务流进行流量管理。In this embodiment of the present application, the first communication device and the second communication device are devices with route publishing functions and message forwarding functions. Through the route publishing function, one or more service connections can be established between the first communication device and the second communication device in the communication network. Through the message forwarding function, the first communication device and the second communication device can transmit data through any service connection. business flow. In this embodiment of the present application, the FID corresponding to the service connection is automatically generated based on the route released during the establishment process of the service connection, thereby realizing the identification of the service connection. Therefore, when transmitting the service flow, traffic management can be performed on the service flow transmitted by the service connection based on the generated FID.
在一种可能的实施方式中,基于生成的FID对该传输的业务流进行的流量管理可以包括流量检测、流量统计、流量可视化、流量连接或流量服务质量控制等,本申请实施例对此不做限定。另外,业务连接传输的业务流可以是双向的,因此,业务连接对应的FID可以用于标识两个传输方向的业务流,该业务连接对应的FID也可以包括两个方向的业务流分别对应的FID,例如,第一通信装置向第二通信装置发送的业务流的FID为第一FID,第二通信装置向第一通信装置发送的FID为第二FID。In a possible implementation, the traffic management of the transmitted service flow based on the generated FID may include traffic detection, traffic statistics, traffic visualization, traffic connection or traffic service quality control, etc., the embodiments of this application do not Make limitations. In addition, the service flow transmitted by the service connection can be bidirectional. Therefore, the FID corresponding to the service connection can be used to identify the service flows in the two transmission directions. The FID corresponding to the service connection can also include the corresponding service flows in the two directions. FID, for example, the FID of the service flow sent by the first communication device to the second communication device is the first FID, and the FID sent by the second communication device to the first communication device is the second FID.
可以理解的是,该实施环境中还可以包括第三通信装置或第四通信装置等多个通信装置,图1中未示出,该多个通信装置之间均能建立不同的一条或多条业务连接,各个通信装置均能采用本申请实施例提供的业务连接的标识方法对建立的业务连接进行标识。It can be understood that the implementation environment may also include multiple communication devices such as a third communication device or a fourth communication device, which are not shown in Figure 1 . Each of the multiple communication devices can establish one or more different communication devices. For business connections, each communication device can use the business connection identification method provided by the embodiment of the present application to identify the established business connection.
需要说明的是,本申请实施例中提及的通信装置,可以是交换机、路由器等网络设备,也可以是网络设备上的一部分组件,例如是网络设备上的单板、线卡,也可以是网络设备上的一个功能模块,还可以是用于实现本申请方法的芯片,本申请实施例不做具体限定。当通信装置是芯片时,用于实现该方法的收发单元例如可以是芯片的接口电路,处理单元可以是芯片中具有处理功能的处理电路。通信装置之间的连接方式包括但不限于通过以太网线或光缆直接连接。It should be noted that the communication devices mentioned in the embodiments of this application may be network equipment such as switches and routers, or may be part of the components on the network equipment, such as single boards and line cards on the network equipment, or may be A functional module on the network device may also be a chip used to implement the method of the present application, which is not specifically limited in the embodiment of the present application. When the communication device is a chip, the transceiver unit used to implement the method may be, for example, an interface circuit of the chip, and the processing unit may be a processing circuit with a processing function in the chip. Connection methods between communication devices include but are not limited to direct connection through Ethernet cables or optical cables.
本申请实施例不对业务连接的标识方法的应用场景进行限定,可以应用于任一种通过建立的业务连接来传输业务流的场景。例如,本申请实施例应用的场景可以为基于SRv6通信的场景或基于VXLAN通信的场景。在基于SRv6通信的场景中,第一通信装置与第二通信装置通过SRv6进行通信;在基于VXLAN通信的场景中,第一通信装置与第二通信装置通过VXLAN隧道进行通信。The embodiments of this application do not limit the application scenarios of the identification method for business connections, and can be applied to any scenario in which business flows are transmitted through established business connections. For example, the application scenario of the embodiment of the present application may be a scenario based on SRv6 communication or a scenario based on VXLAN communication. In a scenario based on SRv6 communication, the first communication device and the second communication device communicate through SRv6; in a scenario based on VXLAN communication, the first communication device and the second communication device communicate through a VXLAN tunnel.
示例性地,图2为本申请实施例提供的另一种业务连接的标识方法的实施环境示意图。如图2所示,该实施环境包括用户边缘(custom edge,CE)1设备和CE2设备,CE1设备与接入路由器(access router,ACC)设备相连,ACC设备用于将CE1设备接入网络,CE2设备与服务运营商边缘(provider edge,PE)3和PE4设备相连,PE3和PE4设备分别用于将CE2设备接入网络。其中,用于连接ACC设备与PE3设备或PE4设备的设备包括汇聚节 点(aggregation node,AGG)1设备、AGG2设备、城域核心(metro core,MC)1设备、MC2设备、PE1设备和PE2设备。示例性地,第一通信装置可以为图2所示的ACC设备,第二通信装置可以为图2所示的PE3设备或PE4设备。Exemplarily, FIG. 2 is a schematic diagram of the implementation environment of another method for identifying service connections provided by an embodiment of the present application. As shown in Figure 2, the implementation environment includes user edge (custom edge, CE) 1 device and CE2 device. CE1 device is connected to access router (ACC) device. ACC device is used to connect CE1 device to the network. The CE2 device is connected to the service operator edge (provider edge, PE) 3 and PE4 devices. The PE3 and PE4 devices are used to connect the CE2 device to the network respectively. Among them, the equipment used to connect ACC equipment and PE3 equipment or PE4 equipment includes aggregation nodes. Point (aggregation node, AGG) 1 device, AGG2 device, metro core (metro core, MC) 1 device, MC2 device, PE1 device and PE2 device. For example, the first communication device may be the ACC device shown in Figure 2, and the second communication device may be the PE3 device or PE4 device shown in Figure 2.
在本申请实施例中,以图2所示的ACC设备与PE3设备或PE4设备之间可通过SRv6进行通信为例。SRv6是指将段路由(segment routing,SR)技术应用在IPv6网络中,在SR中,SID用来标识唯一的段。SRv6中SID是IPv6地址的形式,长度是128比特(bit)。In the embodiment of this application, the communication between the ACC device and the PE3 device or PE4 device shown in Figure 2 is taken as an example. SRv6 refers to the application of segment routing (SR) technology in IPv6 networks. In SR, SID is used to identify a unique segment. The SID in SRv6 is in the form of an IPv6 address, and the length is 128 bits.
示例性地,图3是本申请实施例提供的一种SID的结构示意图。如图3所示,SID包括三个部分:定位器(locator)(也称为位置标识)、功能(function)和参数(arguments,args)。locator占据SID的高比特位,args占据SID的低比特位,function占据SID的其它比特位。可选地,locator字段为一个可变长的IPv6前缀格式,用于定位发布SID的节点设备,具有路由和聚合功能。一个locator代表一个IPv6网段,该网段下的IPv6地址可作为SID分配。function字段代表设备的指令,用于指示发布SID的节点设备进行相应的转发动作,具有编程功能。args字段是可选参数,可以定义一些报文的流和服务等可变信息。Exemplarily, FIG. 3 is a schematic structural diagram of an SID provided by an embodiment of the present application. As shown in Figure 3, SID includes three parts: locator (also called location identifier), function and parameters (arguments, args). locator occupies the high bits of SID, args occupies the low bits of SID, and function occupies the other bits of SID. Optionally, the locator field is a variable-length IPv6 prefix format, used to locate the node device that publishes the SID, and has routing and aggregation functions. A locator represents an IPv6 network segment, and the IPv6 address under this network segment can be allocated as a SID. The function field represents the instruction of the device, which is used to instruct the node device that issues the SID to perform corresponding forwarding actions and has programming functions. The args field is an optional parameter that can define some variable information such as message flows and services.
由于SRv6定义了不同类型的SID,不同类型的SID指示不同的转发动作,因此,通过对SID中的function字段的编程可以实现不同的VPN业务。在本申请实施例中,使能SRv6的节点设备会维护一个本地SID表(local SID table),本地SID表用于保存本节点设备生成的SID以及与该SID关联的信息。例如,本地SID表包括SID、SID的类型以及SID绑定的出接口、SID关联的VPN实例(instance)等。VPN实例是节点设备为直接相连的站点(site)建立并维护的一个专门实体,每个site在节点设备上都有对应的VPN实例,每个VPN实例包含一个或多个与该节点设备直接相连的CE设备的转发表。VPN实例也可以称为虚拟路由转发(virtual routing forwarding,VRF)。Since SRv6 defines different types of SIDs, and different types of SIDs indicate different forwarding actions, different VPN services can be implemented by programming the function field in the SID. In the embodiment of this application, the SRv6-enabled node device maintains a local SID table (local SID table). The local SID table is used to save the SID generated by the node device and the information associated with the SID. For example, the local SID table includes the SID, the type of the SID, the outbound interface bound to the SID, the VPN instance associated with the SID, etc. A VPN instance is a specialized entity established and maintained by a node device for directly connected sites. Each site has a corresponding VPN instance on the node device. Each VPN instance contains one or more sites directly connected to the node device. The forwarding table of the CE device. VPN instances may also be called virtual routing forwarding (VRF).
接下来,结合图4对本申请实施例提供的业务连接的标识方法400进行介绍。由于业务连接的建立在控制面完成,而本申请实施例提供的业务连接的标识方法是伴随业务连接的建立过程自动生成业务连接对应的流标识,因此,本申请实施例提供的业务连接的标识方法也可以在控制面实现。参见图4,本申请实施例提供的业务连接的标识方法400包括但不限于如下几个步骤。Next, the identification method 400 of the service connection provided by the embodiment of the present application will be introduced with reference to FIG. 4 . Since the establishment of the service connection is completed on the control plane, and the identification method of the service connection provided by the embodiment of the present application automatically generates the flow identification corresponding to the service connection along with the establishment process of the service connection, therefore, the identification method of the service connection provided by the embodiment of the application Methods can also be implemented in the control plane. Referring to Figure 4, the identification method 400 of a service connection provided by this embodiment of the present application includes but is not limited to the following steps.
步骤401,通信装置1向通信装置2发布第一VPN路由,该第一VPN路由用于建立通信装置1与通信装置2之间的业务连接,该第一VPN路由包括该通信装置1的节点信息。Step 401: Communication device 1 publishes a first VPN route to communication device 2. The first VPN route is used to establish a business connection between communication device 1 and communication device 2. The first VPN route includes node information of communication device 1. .
其中,第一路由的类型可以为VPN路由,也可以为公网路由,本申请实施例对此不做限定。通信装置之间可通过互相发布路由的方式,完成业务连接的建立,一条业务连接用来连接两个通信装置,使得两个通信装置之间能够传输业务流。当第一路由为第一VPN路由时,第一VPN路由用于建立通信装置1与通信装置2之间的业务连接,也即VPN。The type of the first route may be a VPN route or a public network route, which is not limited in the embodiment of this application. Communication devices can complete the establishment of service connections by publishing routes to each other. A service connection is used to connect two communication devices so that service flows can be transmitted between the two communication devices. When the first route is a first VPN route, the first VPN route is used to establish a service connection between the communication device 1 and the communication device 2, that is, a VPN.
以图2所示的PE3设备与ACC设备之间建立业务连接为例,其中,通信装置1为图2所示的PE3设备,通信装置2为图2所示的ACC设备。在一种可能的实施方式中,CE1设备和CE2设备分别属于同一VPN实例中的两个site,ACC设备和PE3设备均配置了该VPN实例。PE3设备将该VPN实例绑定在PE3设备的第一接口上,为该第一接口配置对应的第一locator,进而基于该第一locator分配VPN SID。ACC设备将该VPN实例绑定在ACC设备的第二接口上,为该第二接口配置对应的第二locator,进而基于该第二locator分配VPN SID。Taking the establishment of a service connection between the PE3 device and the ACC device shown in Figure 2 as an example, the communication device 1 is the PE3 device shown in Figure 2, and the communication device 2 is the ACC device shown in Figure 2. In a possible implementation manner, the CE1 device and the CE2 device respectively belong to two sites in the same VPN instance, and both the ACC device and the PE3 device are configured with the VPN instance. The PE3 device binds the VPN instance to the first interface of the PE3 device, configures the corresponding first locator for the first interface, and then allocates the VPN SID based on the first locator. The ACC device binds the VPN instance to the second interface of the ACC device, configures a corresponding second locator for the second interface, and then allocates a VPN SID based on the second locator.
可选地,CE2设备会使用内部网关协议(interior gateway protocol,IGP)或者边界网关 协议(border gateway protocol,BGP)将CE2设备的私网路由发布给PE3设备。PE3设备学习到CE2设备的私网路由后,将该CE2设备的私网路由保存到该VPN实例对应的路由表中,并为该CE2设备的私网路由分配对应的第一VPN SID,基于第一VPN SID生成第一VPN路由。Optionally, the CE2 device will use the interior gateway protocol (IGP) or border gateway The protocol (border gateway protocol, BGP) publishes the private network route of the CE2 device to the PE3 device. After the PE3 device learns the private network route of the CE2 device, it saves the private network route of the CE2 device in the routing table corresponding to the VPN instance, and allocates the corresponding first VPN SID to the private network route of the CE2 device, based on the A VPN SID generates the first VPN route.
在本申请实施例中,PE3设备在生成第一VPN路由后,会将该第一VPN路由发布给该VPN实例对应的其它site,例如,将该第一VPN路由发布给ACC设备。本申请实施例不对PE3设备与ACC设备间发布VPN路由的方式进行限定,例如,可以通过BGP或者不同的自治域之间运行多协议边界网关协议(multi-protocol external border gateway protocol,MP-EBGP)来发布。In this embodiment of the present application, after generating the first VPN route, the PE3 device will publish the first VPN route to other sites corresponding to the VPN instance, for example, publish the first VPN route to the ACC device. The embodiment of this application does not limit the method of publishing VPN routes between PE3 devices and ACC devices. For example, BGP or multi-protocol external border gateway protocol (MP-EBGP) can be run between different autonomous domains. to publish.
示例性地,以PE3设备发布第一VPN路由为例,参见图5,图5为本申请实施例提供的一种路由发布过程的示意图。如图5所示,以CE1设备的地址为1.1.1.1,CE2设备的地址为2.2.2.2为例。PE3设备发布的第一VPN路由包括私网路由前缀:2.2.2.0/24、下一跳(next hop,NHP):A1::8:1和VPN SID:A1::8:B100:0,该下一跳为PE3设备,A1::8:1为PE3设备的IPv6地址,A1::8:B100:0为PE3设备生成的第一VPN SID,第一VPN SID中的locator字段指示PE3设备的节点信息,第一VPN SID中的function字段指示VPN标识。For example, taking the PE3 device publishing the first VPN route as an example, see Figure 5. Figure 5 is a schematic diagram of a route publishing process provided by an embodiment of the present application. As shown in Figure 5, take the address of CE1 device as 1.1.1.1 and the address of CE2 device as 2.2.2.2 as an example. The first VPN route published by the PE3 device includes the private network route prefix: 2.2.2.0/24, next hop (NHP): A1::8:1 and VPN SID: A1::8:B100:0. The next hop is the PE3 device, A1::8:1 is the IPv6 address of the PE3 device, A1::8:B100:0 is the first VPN SID generated by the PE3 device, and the locator field in the first VPN SID indicates the PE3 device's Node information, the function field in the first VPN SID indicates the VPN identification.
步骤402,通信装置2接收通信装置1发布的第一VPN路由,根据通信装置2的节点信息和接收的第一VPN路由中携带的通信装置1的节点信息生成该业务连接对应的第一FID,该第一FID用于标识通信装置2向通信装置1发送的第一业务流,该第一FID包括通信装置2的节点信息和通信装置1的节点信息。Step 402: The communication device 2 receives the first VPN route published by the communication device 1, and generates the first FID corresponding to the service connection based on the node information of the communication device 2 and the node information of the communication device 1 carried in the received first VPN route. The first FID is used to identify the first service flow sent by the communication device 2 to the communication device 1 . The first FID includes the node information of the communication device 2 and the node information of the communication device 1 .
在一种可能的实施方式中,通信装置2接收第一VPN路由后,可将该第一VPN路由进行保存,例如将该第一VPN路由添加到VPN实例对应的转发表中,使得通信装置2能够在转发面向通信装置1发送第一业务流。In a possible implementation, after receiving the first VPN route, the communication device 2 can save the first VPN route, for example, add the first VPN route to the forwarding table corresponding to the VPN instance, so that the communication device 2 The first service flow can be sent to the communication device 1 on the forwarding plane.
由此,通信装置2建立了通信装置2与通信装置1之间的业务连接,通信装置2能够通过该业务连接向通信装置1发送第一业务流,该第一业务流的源节点为通信装置2,宿节点为通信装置1。As a result, the communication device 2 establishes a service connection between the communication device 2 and the communication device 1. The communication device 2 can send the first service flow to the communication device 1 through the service connection. The source node of the first service flow is the communication device. 2. The sink node is communication device 1.
对于通信装置2来说,通信装置2也会执行步骤401中通信装置1执行的相关操作。仍以图5所示的路由发布过程为例,通信装置1为图2所示的PE3设备,通信装置2为图2所示的ACC设备为例。ACC设备也会学习到CE1设备的私网路由,由于CE1设备和CE2设备属于同一VPN实例,因此,ACC设备与PE3设备能够互相接收对方发送的VPN路由。同理,ACC设备也会为该CE1设备的私网路由分配对应的第二VPN SID,基于该第二VPN SID生成第二VPN路由。For the communication device 2, the communication device 2 will also perform the related operations performed by the communication device 1 in step 401. Still taking the route publishing process shown in Figure 5 as an example, the communication device 1 is the PE3 device shown in Figure 2, and the communication device 2 is the ACC device shown in Figure 2. The ACC device will also learn the private network route of the CE1 device. Since the CE1 device and the CE2 device belong to the same VPN instance, the ACC device and the PE3 device can receive the VPN routes sent by each other. In the same way, the ACC device will also allocate the corresponding second VPN SID to the private network route of the CE1 device, and generate the second VPN route based on the second VPN SID.
例如,第二VPN路由包括私网路由前缀:1.1.1.0/24、NHP:A2::9:1和VPN SID:A2::9:B100:0,该下一跳为ACC设备,A2::9:1为ACC设备的IPv6地址,A2::9:B100:0为第二VPN SID,第二VPN SID中的locator字段指示ACC设备的节点信息,第二VPN SID中的function字段指示VPN标识。For example, the second VPN route includes the private network route prefix: 1.1.1.0/24, NHP: A2::9:1 and VPN SID: A2::9:B100:0. The next hop is the ACC device, A2:: 9:1 is the IPv6 address of the ACC device, A2::9:B100:0 is the second VPN SID, the locator field in the second VPN SID indicates the node information of the ACC device, and the function field in the second VPN SID indicates the VPN identification. .
在本申请实施例中,通信装置2根据接收的第一VPN路由能够获取到通信装置1的IPv6地址和第一VPN SID,并且通信装置2能够获取到通信装置2的IPv6地址和第二VPN SID。由于业务连接对应的第一业务流的源节点为通信装置2,宿节点为通信装置1。因此,通信装置2可以根据通信装置2的节点信息、通信装置1的节点信息和VPN标识生成业务连接对应 的第一FID。In the embodiment of the present application, the communication device 2 can obtain the IPv6 address and the first VPN SID of the communication device 1 based on the received first VPN route, and the communication device 2 can obtain the IPv6 address and the second VPN SID of the communication device 2 . Since the source node of the first service flow corresponding to the service connection is communication device 2, the sink node is communication device 1. Therefore, the communication device 2 can generate a service connection corresponding to the node information of the communication device 2, the node information of the communication device 1 and the VPN identifier. The first FID.
例如基于第一VPN路由生成的第一FID为:A2::9:1+A1::8:B100:0。其中,A2::9:1为ACC的IPv6地址,用于指示ACC设备的节点信息,A1::8:B100:0为第一VPN SID,用于指示PE3设备的节点信息和VPN标识;或者,第一FID为:A2::9:B100:0+A1::8:B100:0,A2::9:B100:0为第二VPN SID,用于指示ACC的节点信息。该第一FID用于唯一标识ACC设备向PE3设备发送的第一业务报文的第一业务流。For example, the first FID generated based on the first VPN route is: A2::9:1+A1::8:B100:0. Among them, A2::9:1 is the IPv6 address of the ACC, used to indicate the node information of the ACC device, and A1::8:B100:0 is the first VPN SID, used to indicate the node information and VPN identification of the PE3 device; or , the first FID is: A2::9:B100:0+A1::8:B100:0, A2::9:B100:0 is the second VPN SID, used to indicate the node information of ACC. The first FID is used to uniquely identify the first service flow of the first service message sent by the ACC device to the PE3 device.
在一种可能的实施方式中,由于业务连接的建立用于在转发面通过该业务连接进行业务流的传输,因此,通信装置1也能够通过该业务连接向通信装置2发送第二业务流。又由于业务连接对应的第二业务流的宿节点为通信装置2,源节点为通信装置1,因此,通信装置2还可以根据通信装置2的节点信息、通信装置1的节点信息和VPN标识,生成该业务连接对应的第二FID。例如,基于图5,第二FID为:A1::8:1+A2::9:B100:0。其中,A1::8:1为PE3设备的IPv6地址,用于指示PE3设备的节点信息,A2::9:B100:0为第二VPN SID,用于指示ACC设备的节点信息和VPN标识;或者,第二FID为:A1::8:B100:0+A2::9:B100:0,A1::8:B100:0为第一VPN SID,用于指示PE3设备的节点信息。该第二FID用于唯一标识PE3设备向ACC设备发送的第二业务报文的第二业务流。In a possible implementation, since the establishment of the service connection is used to transmit the service flow through the service connection on the forwarding plane, the communication device 1 can also send the second service flow to the communication device 2 through the service connection. Furthermore, since the sink node of the second service flow corresponding to the service connection is the communication device 2 and the source node is the communication device 1, the communication device 2 can also use the node information of the communication device 2, the node information of the communication device 1 and the VPN identifier, Generate the second FID corresponding to the service connection. For example, based on Figure 5, the second FID is: A1::8:1+A2::9:B100:0. Among them, A1::8:1 is the IPv6 address of the PE3 device, used to indicate the node information of the PE3 device, and A2::9:B100:0 is the second VPN SID, used to indicate the node information and VPN identification of the ACC device; Or, the second FID is: A1::8:B100:0+A2::9:B100:0, A1::8:B100:0 is the first VPN SID, used to indicate the node information of the PE3 device. The second FID is used to uniquely identify the second service flow of the second service message sent by the PE3 device to the ACC device.
步骤403,通信装置2向通信装置1发布第二VPN路由,该第二VPN路由也用于建立该通信装置1与通信装置2之间的所述业务连接,该第二VPN路由包括该通信装置2的节点信息。Step 403: The communication device 2 publishes a second VPN route to the communication device 1. The second VPN route is also used to establish the business connection between the communication device 1 and the communication device 2. The second VPN route includes the communication device. 2 node information.
在本申请实例中,通信装置2在生成第二VPN路由后,同样会将该第二VPN路由发布给该VPN实例对应的其它site,例如,将该第二VPN路由发布给通信装置1。该通信装置2向通信装置1发布第二VPN路由的方式,可参考上述步骤401的相关描述,此处不再赘述。In the example of this application, after the communication device 2 generates the second VPN route, it will also publish the second VPN route to other sites corresponding to the VPN instance, for example, publish the second VPN route to the communication device 1 . For the manner in which the communication device 2 publishes the second VPN route to the communication device 1, reference can be made to the relevant description of the above step 401, which will not be described again here.
步骤404,通信装置1接收通信装置2发布的第二VPN路由,根据通信装置1的节点信息和接收的第二VPN路由中携带的通信装置2的节点信息生成该业务连接对应的第一FID。Step 404: The communication device 1 receives the second VPN route published by the communication device 2, and generates the first FID corresponding to the service connection based on the node information of the communication device 1 and the node information of the communication device 2 carried in the received second VPN route.
在本申请实施例中,通信装置1会接收到通信装置2发布的第二VPN路由,并保存该第二VPN路由,例如将该第二VPN路由添加到该VPN实例对应的转发表中,使得通信装置1能够在转发面向通信装置2发送第二业务报文。由此,通信装置1建立了通信装置1与通信装置2之间的业务连接,通信装置1通过该业务连接向通信装置2发送第二业务流,该第二业务流的源节点为通信装置1,宿节点为通信装置2。In the embodiment of the present application, the communication device 1 will receive the second VPN route published by the communication device 2 and save the second VPN route, for example, add the second VPN route to the forwarding table corresponding to the VPN instance, so that The communication device 1 can send the second service message to the communication device 2 on the forwarding plane. As a result, the communication device 1 establishes a service connection between the communication device 1 and the communication device 2. The communication device 1 sends the second service flow to the communication device 2 through the service connection. The source node of the second service flow is the communication device 1. , the sink node is the communication device 2.
在一种可能的实施方式中,通信装置1根据接收的第二VPN路由能够获取到通信装置2的IPv6地址和第二VPN SID,根据第一VPN路由能够获取到通信装置1的IPv6地址和第一VPN SID。基于同样的方式,通信装置1可以生成与通信装置2相同的第一FID和第二FID。In a possible implementation, the communication device 1 can obtain the IPv6 address and the second VPN SID of the communication device 2 according to the received second VPN route, and can obtain the IPv6 address and the second VPN SID of the communication device 1 according to the first VPN route. A VPN SID. Based on the same method, the communication device 1 can generate the same first FID and the second FID as the communication device 2 .
需要说明的是,步骤404中通信装置1根据通信装置1的节点信息和接收的第二VPN路由中携带的通信装置2的节点信息生成该业务连接对应的第一FID的方式,可参考上述步骤402的相关描述,此处不再赘述。It should be noted that in step 404, the communication device 1 generates the first FID corresponding to the service connection based on the node information of the communication device 1 and the node information of the communication device 2 carried in the received second VPN route. You may refer to the above steps. The relevant description of 402 will not be repeated here.
在一种可能的实施方式中,由于IPv6地址和SID的长度均为128bit,使得生成的FID的长度为256bit,导致保存FID所需的信息表较长。而由于SID中的locator字段或IPv6地址都是结构化的,在一个固定网络中不同SID中的locator字段或IPv6地址中的部分字段是相同,能够用于区分不同设备的信息为其中的固定部分字段。可选地,可以根据SID中的locator字段或IPv6地址的结构化特征,将SID中的locator字段或IPv6地址中的用于区分设备的部 分字段提取出来,使用提取出来的部分字段来生成简化版的FID,以减小FID的长度,减小了存储FID所需的数据空间。In one possible implementation, since the length of the IPv6 address and SID is both 128 bits, the length of the generated FID is 256 bits, resulting in a long information table required to save the FID. Since the locator field or IPv6 address in the SID is structured, the locator field in different SIDs or some fields in the IPv6 address are the same in a fixed network, and the information that can be used to distinguish different devices is a fixed part of it. field. Optionally, the locator field in the SID or the structural characteristics of the IPv6 address can be used to distinguish the device from the locator field in the SID or the IPv6 address. Extract by field, and use some of the extracted fields to generate a simplified version of the FID to reduce the length of the FID and reduce the data space required to store the FID.
示例性地,参见图6,图6是本申请实施例提供的一种结构化的SID的示意图。如图6所示,SID的locator字段包括固定前缀、类型、省市标识、预留、网络域、分片预留和节点标识等部分,其中,占12bit的省市标识和占20bit的节点标识为用于区分设备的部分字段。因此,可以使用该省市标识和节点标识这两个部分字段作为设备的节点信息。For example, see FIG. 6 , which is a schematic diagram of a structured SID provided by an embodiment of the present application. As shown in Figure 6, the locator field of the SID includes fixed prefix, type, province and city identification, reservation, network domain, shard reservation and node identification. Among them, the province and city identification accounts for 12 bits and the node identification accounts for 20 bits. Some fields used to distinguish devices. Therefore, the two partial fields of the province and city identification and the node identification can be used as the node information of the device.
在本申请实施例中,由于第一VPN路由中包括通信装置1的IPv6地址和第一VPN SID,第一VPN SID中的locator字段指示通信装置1的节点信息,function字段指示VPN标识。在本申请的一种可能的实施方式中,args字段可以扩展携带VPN下的子业务标识;第二VPN路由中包括通信装置2的IPv6地址和第二VPN SID,第二VPN SID中的locator字段指示通信装置2的节点信息,function字段指示VPN实例,args字段可以扩展携带VPN下的子业务标识。因此,伴随着业务连接的建立,无论是通信装置2还是通信装置1,基于控制面发布的第一VPN路由和第二VPN路由,均能够生成该业务连接对应的第一FID和第二FID。In the embodiment of the present application, since the first VPN route includes the IPv6 address of the communication device 1 and the first VPN SID, the locator field in the first VPN SID indicates the node information of the communication device 1, and the function field indicates the VPN identification. In a possible implementation of the present application, the args field can be extended to carry the sub-service identifier under the VPN; the second VPN route includes the IPv6 address of the communication device 2 and the second VPN SID, and the locator field in the second VPN SID Indicates the node information of the communication device 2, the function field indicates the VPN instance, and the args field can be extended to carry the sub-service identifier under the VPN. Therefore, as the service connection is established, both the communication device 2 and the communication device 1 can generate the first FID and the second FID corresponding to the service connection based on the first VPN route and the second VPN route published by the control plane.
通信装置2与通信装置1在控制面完成了业务连接的建立和标识,使得在转发面,通信装置2能够基于业务连接发送属于第一业务流的第一业务报文,由于第一业务报文中携带了源节点的节点信息、宿节点的节点信息和用于标识不同业务的信息,因此,能够基于该业务连接对应的第一FID对该第一业务流进行流量管理。同理,通信装置1能够基于业务连接发送属于第二业务流的第二业务报文,由于第二业务报文中携带了源节点的节点信息、宿节点的节点信息和用于标识不同业务的信息,因此,能够基于该业务连接对应的第二FID对该第二业务流进行流量管理。综上,基于生成的第一FID和第二FID可对该业务连接不同方向的业务流进行流量管理,细化了流量管理的精度。The communication device 2 and the communication device 1 have completed the establishment and identification of the service connection on the control plane, so that on the forwarding plane, the communication device 2 can send the first service message belonging to the first service flow based on the service connection. Since the first service message carries the node information of the source node, the node information of the sink node, and information used to identify different services. Therefore, traffic management of the first service flow can be performed based on the first FID corresponding to the service connection. In the same way, the communication device 1 can send the second service message belonging to the second service flow based on the service connection, because the second service message carries the node information of the source node, the node information of the sink node and the node information used to identify different services. information, therefore, traffic management can be performed on the second service flow based on the second FID corresponding to the service connection. In summary, based on the generated first FID and second FID, traffic management can be performed on the service flows in different directions of the service connection, which refines the accuracy of traffic management.
示例性地,以通信装置2向通信装置1通过该业务连接发送第一业务报文为例,参见图7,图7为本申请实施例提供的一种报文转发过程的示意图。可选地,当CE1设备向ACC设备发送目的地址的路由前缀为2.2.2.0/24的第一业务报文时,通信装置2从该VPN实例绑定的接口接收到该第一业务报文,在VPN实例对应的转发表中查找匹配该目的地址的路由前缀的第一VPN SID。通信装置2按照SRv6的转发原理,为该第一业务报文封装SRv6报文头,其中,SRv6报文头的源地址(source address,SA)为通信装置2的IPv6地址:A2::9:1,目的地址(destination address,DA)为第一VPN SID:A1::8:B100:0,负载(payload)为该第一业务报文。因此,通信装置2通过上述SRv6报文头的封装操作,能够分别获取到第一FID中包括的A2::9:1和A1::8:B100:0,进而通信装置2能够基于该第一FID对第一业务报文的发送信息进行统计,例如,发送信息可以包括发送的时间、发送的数量等信息。For example, taking the communication device 2 sending a first service message to the communication device 1 through the service connection, see FIG. 7 , which is a schematic diagram of a message forwarding process provided by an embodiment of the present application. Optionally, when the CE1 device sends the first service message with the routing prefix of the destination address 2.2.2.0/24 to the ACC device, the communication device 2 receives the first service message from the interface bound to the VPN instance, Search the forwarding table corresponding to the VPN instance for the first VPN SID that matches the routing prefix of the destination address. The communication device 2 encapsulates an SRv6 header for the first service message according to the forwarding principle of SRv6, where the source address (source address, SA) of the SRv6 header is the IPv6 address of the communication device 2: A2::9: 1. The destination address (DA) is the first VPN SID: A1::8:B100:0, and the payload is the first service packet. Therefore, the communication device 2 can respectively obtain A2::9:1 and A1::8:B100:0 included in the first FID through the above-mentioned encapsulation operation of the SRv6 message header, and then the communication device 2 can obtain the A2::9:1 and A1::8:B100:0 included in the first FID. The FID collects statistics on the transmission information of the first service packet. For example, the transmission information may include information such as the time of transmission and the quantity of transmission.
本申请实施例不对通信装置2保存第一FID的位置进行限定,可以保存在通信装置2能够获取到的任意位置。例如,通信装置2可以将第一FID保存在通信装置2的VRF表中。The embodiment of the present application does not limit the location where the communication device 2 saves the first FID, and it can be saved at any location that the communication device 2 can obtain. For example, communication device 2 may save the first FID in the VRF table of communication device 2 .
在一种可能的实施方式中,通信装置2可以将生成的第一FID携带在该第一业务报文中,使得通信装置1能够基于接收的第一业务报文中的第一FID识别到该第一业务报文属于第一业务流,并基于该第一FID对第一业务流进行流量管理。在该种方式中,通信装置2可以将生成的第一FID作为iFIT技术中的流标识,携带在业务报文扩展的iFIT报文头中。In a possible implementation, the communication device 2 can carry the generated first FID in the first service message, so that the communication device 1 can identify the first FID based on the received first service message. The first service packet belongs to the first service flow, and traffic management is performed on the first service flow based on the first FID. In this way, the communication device 2 can use the generated first FID as a flow identifier in the iFIT technology and carry it in the iFIT message header of the service message extension.
在另一种可能的实施方式中,第一业务报文中不携带该第一FID,通信装置1接收该第一业务报文后,基于通信装置2的节点信息与该第一FID的映射关系确定第一FID,进而基 于该第一FID对第一业务流进行流量管理。In another possible implementation, the first service message does not carry the first FID. After the communication device 1 receives the first service message, based on the mapping relationship between the node information of the communication device 2 and the first FID Determine the first FID and then base Perform traffic management on the first service flow on the first FID.
在一种可能的实施方式中,通信装置1在根据通信装置2发布的第二VPN路由生成该业务连接对应的第一FID后,还会保存通信装置2的节点信息与第一FID的映射关系。例如,通信装置1根据第二路由中的下一跳信息能够获取到通信装置2的节点信息,通信装置1采用以通信装置2的节点信息作为键,以该第一FID作为值的键值对的方式,通信装置1中保存通信装置2的节点信息与该第一FID的映射关系。例如,将键为A2::9:1,值为A2::9:1+A1::8:B100:0的键值对下发到该VRF中。In a possible implementation, after the communication device 1 generates the first FID corresponding to the service connection based on the second VPN route published by the communication device 2, it also saves the mapping relationship between the node information of the communication device 2 and the first FID. . For example, the communication device 1 can obtain the node information of the communication device 2 based on the next hop information in the second route. The communication device 1 uses the node information of the communication device 2 as the key and the first FID as the value. In this way, the communication device 1 stores the mapping relationship between the node information of the communication device 2 and the first FID. For example, deliver the key-value pair with the key A2::9:1 and the value A2::9:1+A1::8:B100:0 to the VRF.
当该封装了SRv6报文头的第一业务报文到达通信装置1后,通信装置1通过该SRv6报文头中的DA能够查找到通信装置2的节点信息与该第一FID的映射关系,进而通过SRv6报文头中的SA能够查找到该第一业务报文对应的第一FID,进而能够基于第一FID对第一业务报文的接收信息进行,例如,接收信息可以包括接收的时间、接收的数量等信息。在该情况下,由于无需在传输的第一业务报文中携带第一FID,通信装置1即可通过接收的第一业务报文中的SA和DA确定得到该第一FID,进而实现基于该第一FID的流量管理。相比于iFIT技术中通过头节点将配置的业务流的流标识携带在传输的业务报文中,以对该业务流进行流量管理的方式,本申请实施例实现的对业务流的流量管理能够减小转发面的传输压力。When the first service message encapsulated in the SRv6 message header reaches the communication device 1, the communication device 1 can find the mapping relationship between the node information of the communication device 2 and the first FID through the DA in the SRv6 message header. Furthermore, the first FID corresponding to the first service message can be found through the SA in the SRv6 message header, and the reception information of the first service message can be processed based on the first FID. For example, the reception information may include the time of reception. , quantity received and other information. In this case, since there is no need to carry the first FID in the transmitted first service message, the communication device 1 can determine and obtain the first FID through the SA and DA in the received first service message, and then implement the first FID based on the received first service message. First FID traffic management. Compared with iFIT technology, which uses the head node to carry the flow identifier of the configured service flow in the transmitted service message to perform traffic management on the service flow, the traffic management of the service flow implemented by the embodiment of the present application can Reduce the transmission pressure on the forwarding surface.
可选地,通信装置2可以将统计的第一FID对应的报文发送信息发送到分析器,通信装置1还可以将统计的第一FID对应的报文接收信息发送到分析器,使得分析器能够根据第一FID对应的报文发送信息和报文接收信息来感知该业务连接的连接状态。例如,根据报文发送信息中的发送数量和报文接收信息中的接收数量来分析业务连接的丢包率。Optionally, the communication device 2 can send the statistical message sending information corresponding to the first FID to the analyzer, and the communication device 1 can also send the statistical message receiving information corresponding to the first FID to the analyzer, so that the analyzer The connection status of the service connection can be perceived based on the message sending information and message receiving information corresponding to the first FID. For example, the packet loss rate of the business connection is analyzed based on the number of messages sent in the message sending information and the number of received messages in the message receiving information.
本申请实施例提供的业务连接的标识方法,由于无需静态配置即可生成FID,且实现了在业务连接的建立过程中自动生成该业务连接对应的FID,使得生成FID的操作更为简单,工作量更小,生成效率更高。此外,由于是基于业务连接的路由生成的FID,该FID不仅可以用于标识该业务连接传输的业务流,还可以用于标识该业务连接,提供了有效的标识业务连接的方式。The identification method of the business connection provided by the embodiment of the present application can generate FID without static configuration, and realizes the automatic generation of the FID corresponding to the business connection during the establishment process of the business connection, making the operation of generating FID simpler and easier to work. The amount is smaller and the generation efficiency is higher. In addition, since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection.
基于本申请实施例提供的方法,通过为各个业务连接分别生成对应的FID能够建立全网的业务模型,通过业务模型能够可视化每条业务连接对应的流量状况。再有,由于无需部署除建立业务连接所需协议之外的其他协议,即可根据传输的业务报文与自动生成的FID识别不同业务连接对应的业务流,提高了业务流的识别效率。又由于可以根据不同粒度的业务连接生成对应的FID,从而能够通过对应的FID对多条业务连接传输的业务流进行差异化管理,进一步满足流量管理需求。Based on the method provided by the embodiments of this application, a business model of the entire network can be established by generating corresponding FIDs for each business connection, and the traffic status corresponding to each business connection can be visualized through the business model. Furthermore, since there is no need to deploy other protocols other than those required to establish business connections, the business flows corresponding to different business connections can be identified based on the transmitted business messages and automatically generated FIDs, which improves the efficiency of business flow identification. And because corresponding FIDs can be generated based on service connections of different granularities, the service flows transmitted by multiple service connections can be differentiatedly managed through the corresponding FIDs, further meeting traffic management needs.
下面结合图1所示的实施环境,以图1中的第一通信装置和第二通信装置执行该方法为例,对本申请实施例提供的业务连接的标识方法进行说明。参见图8,该业务连接的标识方法800包括如下几个步骤。其中,图8所示的第一通信装置和第二通信装置例如可以分别是基于图2所示的ACC设备和PE3设备,第一通信装置和第二通信装置所执行的操作可参见上述业务连接的标识方法400中通信装置1和通信装置2所执行的操作。The following describes the identification method of the service connection provided by the embodiment of the present application in conjunction with the implementation environment shown in Figure 1, taking the first communication device and the second communication device in Figure 1 to execute the method as an example. Referring to Figure 8, the service connection identification method 800 includes the following steps. Wherein, the first communication device and the second communication device shown in FIG. 8 may be based on the ACC device and the PE3 device shown in FIG. 2 respectively. The operations performed by the first communication device and the second communication device may be referred to the above-mentioned service connection. Identify the operations performed by the communication device 1 and the communication device 2 in the method 400.
步骤801,第一通信装置接收第二通信装置发布的第一路由,第一路由用于建立第一通信装置与第二通信装置之间的业务连接,第一路由包括第二通信装置的节点信息。 Step 801: The first communication device receives the first route published by the second communication device. The first route is used to establish a business connection between the first communication device and the second communication device. The first route includes node information of the second communication device. .
可选地,第一路由的类型可以为VPN路由,也可以为公网路由,本申请实施例对此不做限定。通常,通信装置之间通过互相发布路由的方式,完成业务连接的建立,一条业务连接用来连接两个通信装置,使得两个通信装置之间能够传输业务流。当第一路由为VPN路由时,第一路由用于建立第一通信装置与第二通信装置之间的业务连接,也即VPN。Optionally, the type of the first route may be a VPN route or a public network route, which is not limited in the embodiment of this application. Usually, communication devices complete the establishment of service connections by publishing routes to each other. A service connection is used to connect two communication devices so that service flows can be transmitted between the two communication devices. When the first route is a VPN route, the first route is used to establish a service connection between the first communication device and the second communication device, that is, a VPN.
在本申请实施例中,第二通信装置向第一通信装置发布第二通信装置的第一路由,由于第一路由包括第二通信装置的节点信息,第一通信装置接收第一路由后,将第一路由下发到第一通信装置的转发表。因此,第一通信装置能够基于该第一路由向第二通信装置发送第一业务流,也即第一通信装置建立了第一通信装置与第二通信装置之间的业务连接。In this embodiment of the present application, the second communication device publishes the first route of the second communication device to the first communication device. Since the first route includes the node information of the second communication device, after receiving the first route, the first communication device The first route is delivered to the forwarding table of the first communication device. Therefore, the first communication device can send the first service flow to the second communication device based on the first route, that is, the first communication device establishes a service connection between the first communication device and the second communication device.
在一种可能的实施方式中,第一通信装置也会向第二通信装置发送第一通信装置的第二路由,第二通信装置接收第一通信装置发布的第二路由后,也会将第二路由下发到第二通信装置的转发表。由此,第二通信装置能够基于该第二路由向第一通信装置发送第二业务流,也即第二通信装置建立了第二通信装置与第一通信装置之间的业务连接。其中,第二路由包括第一通信装置的节点信息。In a possible implementation, the first communication device will also send the second route of the first communication device to the second communication device. After receiving the second route published by the first communication device, the second communication device will also send the second route of the first communication device to the second communication device. The second route is delivered to the forwarding table of the second communication device. Therefore, the second communication device can send the second service flow to the first communication device based on the second route, that is, the second communication device establishes a service connection between the second communication device and the first communication device. Wherein, the second route includes node information of the first communication device.
步骤802,第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成该业务连接对应的第一FID,第一FID用于标识第一通信装置向第二通信装置发送的第一业务流,第一FID包括第一通信装置的节点信息和第二通信装置的节点信息。Step 802: The first communication device generates a first FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The first FID is used to identify the first communication device to which the service connection is directed. In the first service flow sent by the second communication device, the first FID includes node information of the first communication device and node information of the second communication device.
在一种可能的实施方式中,对于第一业务流来说,发送该第一业务流的源节点为第一通信装置,接收该第一业务流的宿节点为第二通信装置。由于第一路由包括第二通信装置的节点信息,因此,第一通信装置能够获取到第一业务流对应的宿节点的节点信息。由于业务连接对应的源节点的节点信息为第一通信装置本身,因而第一通信装置能够根据源节点的节点信息和宿节点的节点信息,生成业务连接对应的第一FID,该第一FID用于标识第一通信装置向第二通信装置发送的第一业务流。In a possible implementation, for the first service flow, the source node that sends the first service flow is a first communication device, and the sink node that receives the first service flow is a second communication device. Since the first route includes the node information of the second communication device, the first communication device can obtain the node information of the sink node corresponding to the first service flow. Since the node information of the source node corresponding to the service connection is the first communication device itself, the first communication device can generate the first FID corresponding to the service connection based on the node information of the source node and the node information of the sink node. The first FID is To identify the first service flow sent by the first communication device to the second communication device.
本申请实施例不对根据源节点的节点信息和宿节点的节点信息,生成业务连接对应的第一FID的方式进行限定,能够标识第一通信装置向第二通信装置发送的第一业务流即可。可以理解的是,第一FID包括的内容不同,第一FID用来标识的第一通信装置向第二通信装置发送的第一业务流的粒度也不同,也即业务连接的标识粒度不同。在本申请实施例中,业务连接的标识粒度包括但不限于如下几种。The embodiments of the present application do not limit the method of generating the first FID corresponding to the service connection based on the node information of the source node and the node information of the sink node. It suffices to be able to identify the first service flow sent by the first communication device to the second communication device. . It can be understood that the content included in the first FID is different, and the granularity of the first service flow sent by the first communication device to the second communication device identified by the first FID is also different, that is, the identification granularity of the service connection is different. In this embodiment of the present application, the identification granularity of service connections includes but is not limited to the following types.
粒度一,第一FID包括第一通信装置的节点信息和第二通信装置的节点信息。Granularity 1: The first FID includes node information of the first communication device and node information of the second communication device.
在该粒度一下,第一FID包括该业务连接的源节点的节点信息和宿节点的节点信息即可,此种情况下,业务连接的标识粒度为两个节点,第一FID用于标识第一通信装置向第二通信装置发送的全部业务对应的业务流。也就是说,第一通信装置向第二通信装置发送的任何业务对应的业务流都可以采用第一FID来标识。At this granularity, the first FID only needs to include the node information of the source node and the node information of the sink node of the service connection. In this case, the identification granularity of the service connection is two nodes, and the first FID is used to identify the first Service flows corresponding to all services sent by the communication device to the second communication device. That is to say, the service flow corresponding to any service sent by the first communication device to the second communication device can be identified by the first FID.
在一种可能的实施方式中,第一FID还可以用于标识第二通信装置向第一通信装置发送的全部业务对应的业务流,示例性地,当第一FID为源节点的节点信息+宿节点的节点信息时,第一FID用于标识第一通信装置向第二通信装置发送的全部业务对应的业务流;当第一FID为宿节点的节点信息+源节点的节点信息时,第一FID用于标识第二通信装置向第一通信装置发送的全部业务对应的业务流。In a possible implementation, the first FID can also be used to identify service flows corresponding to all services sent by the second communication device to the first communication device. For example, when the first FID is the node information of the source node + When the first FID is the node information of the sink node + the node information of the source node, the first FID is used to identify the service flows corresponding to all services sent by the first communication device to the second communication device; when the first FID is the node information of the sink node + the node information of the source node, the first FID An FID is used to identify service flows corresponding to all services sent by the second communication device to the first communication device.
可选地,若第一通信装置与第二通信装置之间建立有多种业务对应的多条业务连接,因为该多条业务连接传输的业务流的源节点和宿节点相同,所以该多条业务连接对应的FID也 相同。示例性地,参见图9,图9是本申请实施例提供的一种业务连接的标识结果示意图。如图9所示,第一通信装置和第二通信装置配置了业务1和业务2,第一通信装置和第二通信装置之间建立有该业务连接1,第一通信装置通过该业务连接1向第二通信装置发送业务1和业务2的业务流,因此,该业务连接1对应的FID1用来标识的第一通信装置向第二通信装置发送的业务1和业务2的业务流。也即,基于该FID1获取的报文统计信息,是第一通信装置到第二通信装置传输的业务1和业务2的所有报文对应的统计信息。Optionally, if multiple service connections corresponding to multiple services are established between the first communication device and the second communication device, because the source nodes and sink nodes of the service flows transmitted by the multiple service connections are the same, the multiple service connections are The FID corresponding to the business connection is also same. For example, see FIG. 9 , which is a schematic diagram of the identification result of a service connection provided by an embodiment of the present application. As shown in Figure 9, the first communication device and the second communication device are configured with service 1 and service 2. The service connection 1 is established between the first communication device and the second communication device. The first communication device uses the service connection 1 The service flows of Service 1 and Service 2 are sent to the second communication device. Therefore, the FID1 corresponding to the service connection 1 is used to identify the service flows of Service 1 and Service 2 sent by the first communication device to the second communication device. That is, the packet statistical information obtained based on the FID1 is the statistical information corresponding to all the packets of service 1 and service 2 transmitted from the first communication device to the second communication device.
在一种可能的实施方式中,第一通信装置的地址为第一IPv6地址,第一IPv6地址包括第一通信装置的节点信息,第二通信装置的地址为第二IPv6地址,第二IPv6地址包括第二通信装置的节点信息。本申请实施例不对节点信息进行限定,能够用来区分不同节点的信息即可。In a possible implementation, the address of the first communication device is a first IPv6 address, the first IPv6 address includes node information of the first communication device, the address of the second communication device is a second IPv6 address, and the second IPv6 address Includes node information of the second communication device. The embodiment of this application does not limit the node information, and it only needs to be used to distinguish the information of different nodes.
可选地,第一通信装置的节点信息为该第一IPv6地址的全部内容,第二通信装置的节点信息为该第二IPv6地址的全部内容;或者,第一通信装置的节点信息为该第一IPv6地址中用于标识第一通信装置的部分内容,第二通信装置的节点信息为该第二IPv6地址中用于标识第二通信装置的部分内容。例如,图6所示的IPv6地址中的省市标识和节点标识。当采用IPv6地址中的部分内容作为节点信息时,使得基于节点信息生成的FID的数据长度较短,减小了存储FID所需的数据空间。Optionally, the node information of the first communication device is the entire content of the first IPv6 address, and the node information of the second communication device is the entire content of the second IPv6 address; or, the node information of the first communication device is the entire content of the second IPv6 address. The part of an IPv6 address used to identify the first communication device, and the node information of the second communication device is the part of the second IPv6 address used to identify the second communication device. For example, the province and city identifiers and node identifiers in the IPv6 address shown in Figure 6. When part of the content in the IPv6 address is used as node information, the data length of the FID generated based on the node information is shorter, reducing the data space required to store the FID.
粒度二,第一FID包括第一通信装置的节点信息、第二通信装置的节点信息和第一业务信息。Granularity two: the first FID includes node information of the first communication device, node information of the second communication device, and first service information.
在该粒度二下,第一FID除了包括上述粒度一中的源节点的节点信息和宿节点的节点信息之外,第一FID还包括用于区分不同业务的第一业务信息,此时,业务连接的标识粒度为一种业务,第一FID用于标识第一通信装置向第二通信装置发送的一种业务对应的业务流。Under this granularity two, in addition to the node information of the source node and the node information of the sink node in the above granularity one, the first FID also includes the first service information used to distinguish different services. At this time, the service The identification granularity of the connection is a service, and the first FID is used to identify a service flow corresponding to a service sent by the first communication device to the second communication device.
示例性地,参见图10,图10是本申请实施例提供的另一种业务连接的标识结果示意图。如图10所示,第一通信装置到第二通信装置配置了业务1和业务2,第一通信装置和第二通信装置之间建立有业务连接1和业务连接2,第一通信装置通过业务连接1向第二通信装置发送业务1的业务流,第一通信装置通过业务连接2向第二通信装置发送业务2的业务流。因此,该业务连接1对应的FID1用来标识第一通信装置向第二通信装置发送的业务1的业务流。也即,基于该第一FID1获取的报文统计信息,是第一通信装置到第二通信装置传输的业务1的报文对应的统计信息。同理,该业务连接2对应的FID2用来标识的第一通信装置向第二通信装置发送的业务2的业务流。也即,基于该FID2获取的报文统计信息,是第一通信装置到第二通信装置传输的业务2的报文对应的统计信息。For example, see FIG. 10 , which is a schematic diagram of identification results of another service connection provided by an embodiment of the present application. As shown in Figure 10, service 1 and service 2 are configured from the first communication device to the second communication device. Service connection 1 and service connection 2 are established between the first communication device and the second communication device. The first communication device passes the service Connection 1 sends the service flow of service 1 to the second communication device, and the first communication device sends the service flow of service 2 to the second communication device through service connection 2. Therefore, the FID1 corresponding to the service connection 1 is used to identify the service flow of the service 1 sent by the first communication device to the second communication device. That is to say, the packet statistical information obtained based on the first FID1 is the statistical information corresponding to the packets of service 1 transmitted from the first communication device to the second communication device. Similarly, the FID2 corresponding to the service connection 2 is used to identify the service flow of the service 2 sent by the first communication device to the second communication device. That is, the packet statistical information obtained based on the FID2 is the statistical information corresponding to the packets of service 2 transmitted from the first communication device to the second communication device.
在一种可能的实施方式中,第一路由中还携带该第一业务信息,使得第一通信装置能够获取到该第一业务信息,本申请实施例不对第一业务信息进行限定,能够用来区分不同业务的信息即可。例如,第一业务信息可以为VPN的标识,此时第一路由为VPN路由,业务连接为VPN,第一路由中还携带VPN的标识,使得第一通信装置能够获取到该VPN的标识。可选地,在SRv6通信场景中,第一路由中携带VPN SID,VPN SID中的function字段用于指示VPN的标识,此时,第一FID中的VPN的标识为VPN SID中的function字段。在VXLAN的通信场景中,第一路由中携带VNI,VNI指示VXLAN隧道。如果VXLAN隧道与VPN进行了关联,则该VNI也能够用于指示VPN,此种情况下,第一FID中的VPN的标识也可以为该VNI。In a possible implementation, the first route also carries the first service information, so that the first communication device can obtain the first service information. The embodiment of the present application does not limit the first service information and can be used to Just distinguish the information of different businesses. For example, the first service information may be a VPN identifier. In this case, the first route is a VPN route and the service connection is a VPN. The first route also carries the VPN identifier, so that the first communication device can obtain the VPN identifier. Optionally, in the SRv6 communication scenario, the first route carries the VPN SID, and the function field in the VPN SID is used to indicate the identity of the VPN. At this time, the identity of the VPN in the first FID is the function field in the VPN SID. In the VXLAN communication scenario, the first route carries VNI, and the VNI indicates the VXLAN tunnel. If the VXLAN tunnel is associated with a VPN, the VNI can also be used to indicate the VPN. In this case, the identifier of the VPN in the first FID can also be the VNI.
粒度三,第一FID包括第一通信装置的节点信息、第二通信装置的节点信息、第一业务 信息和第二业务信息。Granularity 3: The first FID includes node information of the first communication device, node information of the second communication device, and the first service information and secondary business information.
在该粒度三下,第一FID除了包括上述粒度二中的源节点的节点信息、宿节点的节点信息和用于区分不同业务的第一业务信息之外,第一FID还包括用于区分同一业务的不同子业务的第二业务信息。此时,业务连接的标识粒度为一种业务下的一个子业务,第一FID用于标识第一通信装置向第二通信装置发送的一种业务下的一种子业务对应的业务流。可选地,同一业务的不同子业务可以为同一业务的不同等级,或者,同一业务的不同用户,或者同一业务的不同类型,本申请实施例对此不做限定。Under this granularity three, in addition to the node information of the source node, the node information of the sink node and the first service information used to distinguish different services in the above-mentioned granularity two, the first FID also includes the node information used to distinguish the same service. Second service information of different sub-services of the service. At this time, the identification granularity of the service connection is a sub-service under a service, and the first FID is used to identify a service flow corresponding to a sub-service under a service sent by the first communication device to the second communication device. Optionally, different sub-services of the same service may be different levels of the same service, or different users of the same service, or different types of the same service, which are not limited in this embodiment of the present application.
示例性地,参见图11,图11是本申请实施例提供的另一种业务连接的标识结果示意图。如图11所示,若第一通信装置和第二通信装置配置了业务1,业务1包括子业务1和子业务2,第一通信装置和第二通信装置之间建立有业务连接1和业务连接2,第一通信装置通过业务连接1向第二通信装置发送业务1下的子业务1的业务流,第一通信装置通过业务连接2向第二通信装置发送业务1下的子业务2的业务流。For example, refer to Figure 11, which is a schematic diagram of identification results of another service connection provided by an embodiment of the present application. As shown in Figure 11, if the first communication device and the second communication device are configured with service 1, the service 1 includes sub-service 1 and sub-service 2, and a service connection 1 and a service connection are established between the first communication device and the second communication device 2. The first communication device sends the service flow of sub-service 1 under service 1 to the second communication device through service connection 1, and the first communication device sends the service of sub-service 2 under service 1 to the second communication device through service connection 2. flow.
因此,该业务连接1对应的FID1标识的第一通信装置向第二通信装置发送的业务1下的子业务1的业务流。也即,基于该第FID1获取的报文统计信息,是第一通信装置到第二通信装置传输的业务1下的子业务1的报文对应的统计信息。同理,该业务连接2对应的FID4标识的第一通信装置向第二通信装置发送的业务1下的子业务1的业务流。也即,基于该第FID2获取的报文统计信息,是第一通信装置到第二通信装置传输的业务1下的子业务1的报文对应的统计信息。Therefore, the first communication device identified by FID1 corresponding to the service connection 1 sends the service flow of sub-service 1 under service 1 to the second communication device. That is, the packet statistical information obtained based on the FID1 is the statistical information corresponding to the packets of sub-service 1 under service 1 transmitted from the first communication device to the second communication device. Similarly, the first communication device identified by FID4 corresponding to the service connection 2 sends the service flow of sub-service 1 under service 1 to the second communication device. That is, the packet statistical information obtained based on the FID2 is the statistical information corresponding to the packets of sub-service 1 under service 1 transmitted from the first communication device to the second communication device.
在一种可能的实施方式中,第一路由中还携带该第二业务信息,使得第一通信装置能够获取到该第二业务信息,本申请实施例不对第二业务信息进行限定,能够用来区分同一业务下的不同子业务的信息即可。当第一业务信息为VPN的标识时,第二业务信息可以为VPN的子业务的标识,业务连接为VPN的子业务连接。在SRv6通信场景中,第一路由中携带VPN SID,VPN SID中的位置标识字段用于指示第二通信装置的节点信息,VPN SID的功能字段可用于指示VPN的标识。在一种可能的实施方式中,VPN SID中的args字段用于指示第一FID中的VPN的第一子业务的标识。In a possible implementation, the first route also carries the second service information, so that the first communication device can obtain the second service information. The embodiment of the present application does not limit the second service information and can be used to Just distinguish the information of different sub-businesses under the same business. When the first service information is the identifier of the VPN, the second service information may be the identifier of the sub-service of the VPN, and the service connection is the sub-service connection of the VPN. In the SRv6 communication scenario, the first route carries the VPN SID, the location identification field in the VPN SID is used to indicate the node information of the second communication device, and the function field of the VPN SID can be used to indicate the identity of the VPN. In a possible implementation, the args field in the VPN SID is used to indicate the identity of the first sub-service of the VPN in the first FID.
在一种可能的实施方式中,VPN的第一子业务的标识可以为DSCP的编码值,也可以为用于指示子业务的业务类型的标识。例如,该子业务的标识用于指示语音子业务、视频子业务或文本子业务,由此,使得该方法能够分别标识同一VPN的语音子业务、视频子业务或文本子业务,即生成语音子业务、视频子业务或文本子业务分别对应的FID,进而能够基于各自的FID分别对各自的业务流的进行流量管理,实现不同子业务的流量的差异化管理。In a possible implementation, the identifier of the first sub-service of the VPN may be a coded value of DSCP, or may be an identifier used to indicate the service type of the sub-service. For example, the identifier of the sub-service is used to indicate the voice sub-service, video sub-service or text sub-service, thereby enabling the method to identify the voice sub-service, video sub-service or text sub-service of the same VPN respectively, that is, generating the voice sub-service Business, video sub-service or text sub-service respectively correspond to the FID, and then the traffic management of respective business flows can be carried out based on their respective FIDs to achieve differentiated management of the traffic of different sub-services.
对于粒度三中的第一FID的生成方法,除了上述通过第一路由扩展携带第二业务信息之外,还可以通过本地的业务配置信息获取得到。示例性地,第一通信装置通过第一路由中的第一业务信息识别到该业务连接对应的业务为第一业务,业务配置信息中包括该第一业务对应的第一子业务和第二子业务,则第一通信装置可直接通过该第一路由能够生成对应第一子业务的FID1和对应第二子业务的FID2,FID1用于标识第一通信装置向第二通信装置发送的第一业务下的第一子业务对应的业务流,FID2用于标识第一通信装置向第二通信装置发送的第一业务下的第二子业务对应的业务流。由此,通过一条包含第一业务信息的路由和业务配置信息即可生成该业务连接对应的两个粒度的FID,减少了路由发布的次数,提升了业务连接的建立效率。 As for the method of generating the first FID in granularity three, in addition to carrying the second service information through the first route extension mentioned above, it can also be obtained through local service configuration information. Exemplarily, the first communication device identifies that the service corresponding to the service connection is the first service through the first service information in the first route, and the service configuration information includes the first sub-service and the second sub-service corresponding to the first service. service, the first communication device can directly generate FID1 corresponding to the first sub-service and FID2 corresponding to the second sub-service through the first route. FID1 is used to identify the first service sent by the first communication device to the second communication device. The service flow corresponding to the first sub-service under the first communication device, FID2 is used to identify the service flow corresponding to the second sub-service under the first service sent by the first communication device to the second communication device. Therefore, two granularity FIDs corresponding to the service connection can be generated through a route and service configuration information containing the first service information, which reduces the number of route releases and improves the efficiency of establishing a service connection.
在本申请实施例中,第一通信装置基于第一路由生成业务连接对应的第一FID的数量可以为一个也可以多个。当第一FID的数量为一个时,该第一FID可以根据上述粒度一至粒度三中的任一种方式生成。当第一FID的数量为至少两个时,该第一FID包括根据上述粒度一至粒度三中的任意的至少两种方式生成的至少两个FID。In this embodiment of the present application, the number of first FIDs corresponding to the service connection generated by the first communication device based on the first route may be one or multiple. When the number of the first FID is one, the first FID can be generated according to any one of the above granularity one to three granularity methods. When the number of first FIDs is at least two, the first FIDs include at least two FIDs generated according to at least two methods from the above granularity one to three.
基于上述过程,第一通信装置基于第一路由生成了业务连接对应的第一FID。由于业务连接传输的业务流是双向的,第一通信装置也会向第二通信装置发送第一通信装置的第二路由,第二路由用于第二通信装置建立第二通信装置与第一通信装置之间的业务连接,使得第二通信装置也会基于第二路由生成该业务连接对应的第二FID,第二FID用于标识第二通信装置向第一通信装置发送的第二业务流。Based on the above process, the first communication device generates a first FID corresponding to the service connection based on the first route. Since the service flow transmitted by the service connection is bidirectional, the first communication device will also send the second route of the first communication device to the second communication device. The second route is used by the second communication device to establish communication between the second communication device and the first communication device. The service connection between devices causes the second communication device to also generate a second FID corresponding to the service connection based on the second route. The second FID is used to identify the second service flow sent by the second communication device to the first communication device.
可以理解的是,对于第二业务流来说,源节点为第二通信装置,宿节点为第一通信装置,也即第二业务流的源节点为第一业务流的宿节点,第二业务流的宿节点为第一业务流的源节点。因此,第一通信装置在生成业务连接对应的第一FID后,可以自动生成业务连接对应的与第一FID反向的第二FID。It can be understood that for the second service flow, the source node is the second communication device and the sink node is the first communication device. That is, the source node of the second service flow is the sink node of the first service flow. The sink node of the flow is the source node of the first service flow. Therefore, after generating the first FID corresponding to the service connection, the first communication device can automatically generate the second FID corresponding to the service connection and reverse to the first FID.
示例性地,以第一FID包括第一通信装置的节点信息、第二通信装置的节点信息和第一业务信息为例,将第二通信装置的节点信息与第一通信装置的节点信息的位置对换,得到该业务连接对应的第二FID包括第二通信装置的节点信息、第一通信装置的节点信息和第一业务信息。For example, taking the first FID including the node information of the first communication device, the node information of the second communication device and the first service information, the node information of the second communication device and the location of the node information of the first communication device are In exchange, the second FID corresponding to the service connection obtained includes the node information of the second communication device, the node information of the first communication device and the first service information.
在一种可能的实施方式中,由于第一通信装置也会向第二通信装置发送第一通信装置的第二路由,因此,参见第一通信装置基于第一路由生成业务连接对应的第一FID和第二FID方式,第二通信装置也会基于第二路由生成该业务连接对应的第二FID和第一FID。由此,第一通信装置和第二通信装置在控制面完成了业务连接的建立,并同时生成了该业务连接对应的第一FID和第二FID。In a possible implementation, since the first communication device will also send the second route of the first communication device to the second communication device, see that the first communication device generates the first FID corresponding to the service connection based on the first route. In the second FID method, the second communication device will also generate the second FID and the first FID corresponding to the service connection based on the second route. As a result, the first communication device and the second communication device complete the establishment of the service connection on the control plane, and simultaneously generate the first FID and the second FID corresponding to the service connection.
示例性地,参见图12,以第一通信装置和第二通信装置配置了业务1为例,第一通信装置会将基于业务1生成的第一FID和第二FID保存在本地的业务1信息中。其中,第一FID包括本端节点ID+对端节点ID+对端业务ID,第二FID包括对端节点ID+本端节点ID+本端业务ID。从第一通信装置角度来看,本端节点ID即为第一通信装置的节点信息,对端节点ID即为第二通信装置的节点信息,对端业务ID和本端业务ID均为业务1的信息。同理,第二通信装置会将基于业务1生成的第一FID和第二FID保存在本地的业务1信息中,其中,第一FID包括对端节点ID+本端节点ID+本端业务ID,第二FID包括本端节点ID+对端节点ID+对端业务ID,从第二通信装置角度来看,本端节点ID即为第二通信装置的节点信息,对端节点ID即为第一通信装置的节点信息,对端业务ID和本端业务ID均为业务1的信息业务。For example, referring to Figure 12, taking the first communication device and the second communication device configured with service 1 as an example, the first communication device will save the first FID and the second FID generated based on service 1 as local service 1 information. middle. The first FID includes the local node ID+the opposite node ID+the opposite service ID, and the second FID includes the opposite node ID+the local node ID+the local service ID. From the perspective of the first communication device, the local node ID is the node information of the first communication device, the opposite node ID is the node information of the second communication device, and the opposite service ID and the local service ID are both service 1 Information. In the same way, the second communication device will save the first FID and the second FID generated based on service 1 in the local service 1 information, where the first FID includes the opposite node ID + the local node ID + the local service ID, and the second FID will be stored in the local service 1 information. The second FID includes the local node ID + the opposite node ID + the opposite service ID. From the perspective of the second communication device, the local node ID is the node information of the second communication device, and the opposite node ID is the node information of the first communication device. The node information, peer service ID and local service ID are all information services of service 1.
从图12中可以看出,第一通信装置生成的第一FID与第二通信装置生成的第一FID是相同的,第一通信装置生成的第二FID与第二通信装置生成的第二FID也是相同的。由此,即可基于该第一FID对第一通信装置向第二通信装置发送的业务1的业务流进行流量管理,基于该第二FID对第二通信装置向第一通信装置发送的业务1的业务流进行流量管理,该第一FID和第二FID共同实现了对第一通信装置和第二通信装置之间的业务1的业务连接的标识。It can be seen from Figure 12 that the first FID generated by the first communication device and the first FID generated by the second communication device are the same, and the second FID generated by the first communication device is the same as the second FID generated by the second communication device. It's the same. Therefore, the traffic flow of the service 1 sent by the first communication device to the second communication device can be managed based on the first FID, and the service flow 1 sent by the second communication device to the first communication device can be managed based on the second FID. The first FID and the second FID jointly realize the identification of the service connection of the service 1 between the first communication device and the second communication device.
第一种可能的实施方式中,在第一通信装置生成业务连接对应的第一流标识FID之后, 还包括:第一通信装置向第二通信装置发送第一业务报文,第一业务报文属于第一业务流,第一业务报文包括第一FID。可选地,第一通信装置基于第一FID对第一业务流进行流量管理。In a first possible implementation, after the first communication device generates the first flow identifier FID corresponding to the service connection, It also includes: the first communication device sends a first service message to the second communication device, the first service message belongs to the first service flow, and the first service message includes the first FID. Optionally, the first communication device performs traffic management on the first service flow based on the first FID.
对于第一业务报文中不包括第一FID的情况,针对第一通信装置基于第一FID对第一业务流进行流量管理的方式进行说明。示例性地,当第一通信装置向第二通信装置发送第一业务报文时,会基于第一业务报文的目的地址查找到转发表中的第一路由,通过第一路由,能够获取到第一业务流对应的宿节点的节点信息,由于第一通信装置为第一业务流的源节点,因此,第一通信装置能够基于该第一业务报文,获取到对应的业务流的源节点的节点信息和宿节点的节点信息。使得第一通信装置能够识别该第一业务报文所属的第一业务流,进行基于该第一FID对该第一业务流进行流量管理。For the case where the first service packet does not include the first FID, the method in which the first communication device performs traffic management on the first service flow based on the first FID will be described. For example, when the first communication device sends the first service packet to the second communication device, the first route in the forwarding table will be found based on the destination address of the first service packet. Through the first route, the first route can be obtained. The node information of the sink node corresponding to the first service flow. Since the first communication device is the source node of the first service flow, the first communication device can obtain the source node of the corresponding service flow based on the first service message. The node information and the node information of the sink node. The first communication device is enabled to identify the first service flow to which the first service message belongs, and perform traffic management on the first service flow based on the first FID.
同理,第一通信装置根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第二FID之后,还包括:第一通信装置接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二FID。可选地,第一通信装置基于第二FID对第二业务流进行流量管理。Similarly, after the first communication device generates the second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route, the method further includes: the first communication device receives the second communication The second service message sent by the device belongs to the second service flow, and the second service message includes the second FID. Optionally, the first communication device performs traffic management on the second service flow based on the second FID.
对于第二业务报文中不包括第二FID的情况,针对第一通信装置基于第二FID对第二业务流进行流量管理的方式进行说明。示例性地,当第一通信装置接收第二通信装置发送的第二业务报文时,根据第二业务报文中的源地址能够获取到第二业务流对应的源节点的节点信息,根据第二业务报文中的目标地址能够获取到第二业务流对应的宿节点的节点信息,使得第一通信装置能够识别该第二业务报文所属的第二业务流,进行基于该第二FID对该第二业务流进行流量管理。For the case where the second service packet does not include the second FID, the method in which the first communication device performs traffic management on the second service flow based on the second FID will be described. For example, when the first communication device receives the second service message sent by the second communication device, the node information of the source node corresponding to the second service flow can be obtained according to the source address in the second service message. The target address in the second service message can obtain the node information of the sink node corresponding to the second service flow, so that the first communication device can identify the second service flow to which the second service message belongs, and perform matching based on the second FID. The second service flow performs traffic management.
在一种可能的实施方式中,第一通信装置生成第二FID之后,还包括:第一通信装置将生成的第二FID与第二通信装置的映射关系保存。例如,第一通信装置的VRF中包括第二通信装置的节点信息与第二FID的映射关系,第一通信装置接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二通信装置的节点信息;第一通信装置基于第二通信装置的节点信息与第二FID的映射关系确定该第二FID,基于该第二FID对所述第二业务流进行流量管理。In a possible implementation, after the first communication device generates the second FID, the method further includes: the first communication device saving the mapping relationship between the generated second FID and the second communication device. For example, the VRF of the first communication device includes a mapping relationship between the node information of the second communication device and the second FID. The first communication device receives the second service message sent by the second communication device, and the second service message belongs to the second communication device. In the business flow, the second service message includes the node information of the second communication device; the first communication device determines the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and the second FID determines the second FID based on the second FID. The second business flow performs traffic management.
将上述基于第一路由建立的业务连接作为第一业务连接,本申请提供的方法还包括:第一通信装置接收第二通信装置发布的第三路由,该第三路由用于建立第一通信装置与第二通信装置之间的第二业务连接,该第三路由包括该第二通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和接收的第三路由中携带的第二通信装置的节点信息生成该第二业务连接对应的第三FID,该第三FID用于标识第一通信装置向第二通信装置发送的第三业务流,该第三FID包括第一通信装置的节点信息和第二通信装置的节点信息。Taking the above-mentioned service connection established based on the first route as the first service connection, the method provided by this application also includes: the first communication device receives a third route published by the second communication device, and the third route is used to establish the first communication device The second service connection with the second communication device, the third route includes the node information of the second communication device; the first communication device carries the second route according to the node information of the first communication device and the received third route. The node information of the communication device generates a third FID corresponding to the second service connection. The third FID is used to identify the third service flow sent by the first communication device to the second communication device. The third FID includes the first communication device. node information and node information of the second communication device.
在另一种可能的实施方式中,上述基于第一路由建立的第一业务连接为第一VPN的第一子业务连接,基于第三路由建立的第二业务连接为第一VPN的第二子业务连接,该第二子业务连接用于传输该第一VPN的第二子业务,所述第三路由还包括该第一VPN的标识;则生成的第三FID还包括该第一VPN的标识和该第二子业务的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第一VPN的第二子业务的所有业务流。也就是说,第一通信装置与第二通信装置之间不仅可以传输第一VPN的第一子业务的所有业务流,也可以传输第一VPN的第二子业务的所有业务流,通过第一FID和第三FID可实现 对同一个第一VPN的第一子业务和第二子业务的业务流进行流量管理。In another possible implementation, the first service connection established based on the first route is a first sub-service connection of the first VPN, and the second service connection established based on the third route is a second sub-service connection of the first VPN. Service connection, the second sub-service connection is used to transmit the second sub-service of the first VPN, the third route also includes the identifier of the first VPN; then the generated third FID also includes the identifier of the first VPN and the identifier of the second sub-service. In this case, the third service flow identified by the third FID is all service flows of the second sub-service of the first VPN transmitted between the first communication device and the second communication device. That is to say, not only all the service flows of the first sub-service of the first VPN can be transmitted between the first communication device and the second communication device, but also all the service flows of the second sub-service of the first VPN can be transmitted between the first communication device and the second communication device. FID and tertiary FID can be achieved Perform traffic management on the service flows of the first sub-service and the second sub-service of the same first VPN.
本申请不对第一通信装置与第二通信装置之间建立的多条业务连接的数量进行限定,第一通信装置与第二通信装置之间还可以建立除了第一业务连接和第二业务连接之外的多条业务连接,该多条业务连接可以是用于传输同一业务的不同子业务的业务流。This application does not limit the number of multiple service connections established between the first communication device and the second communication device. In addition to the first service connection and the second service connection, the first communication device and the second communication device can also establish The multiple service connections may be service flows used to transmit different sub-services of the same service.
在一种可能的实施方式中,第一通信装置与第二通信装置之间建立的多条业务连接也可以用于传输不同业务的业务流,例如上述基于第一路由建立的第一业务连接为第一VPN,基于第三路由建立的第二业务连接为第二VPN,第三路由还包括第二VPN的标识;生成的第三FID还包括该第二VPN的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第二VPN的所有业务流。该种情况下,第一通信装置与第二通信装置之间不仅可以传输第一VPN的所有业务流,也可以传输第二VPN的所有业务流,也即第一通信装置与第二通信装置之间建立有多条业务连接,该多条业务连接传输不同业务的业务流,通过不同的FID可实现对不同业务的业务流进行流量管理。In a possible implementation, multiple service connections established between the first communication device and the second communication device can also be used to transmit service flows of different services. For example, the first service connection established based on the first route is In the first VPN, the second service connection established based on the third route is the second VPN. The third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN. In this case, the third service flow identified by the third FID is all the service flows of the second VPN transmitted between the first communication device and the second communication device. In this case, not only all the service flows of the first VPN but also all the service flows of the second VPN can be transmitted between the first communication device and the second communication device, that is, between the first communication device and the second communication device Multiple business connections are established between each other. The multiple business connections transmit business flows of different services. Traffic management of the business flows of different services can be implemented through different FIDs.
在另一种可能的实施方式中,基于第三路由建立的第二业务连接为第二VPN的子业务连接,该第二VPN的子业务连接用于传输该第二VPN的子业务,所述第三路由还包括该第二VPN的标识;则生成的第三FID还包括该第二VPN的标识和该第二VPN的子业务的标识。此种情况下,该第三FID标识的第三业务流为第一通信装置与第二通信装置之间传输的第二VPN的子业务的所有业务流。也就是说,第一通信装置与第二通信装置之间不仅可以传输第一VPN的所有业务流,也可以传输第二VPN的子业务的所有业务流,也即第一通信装置与第二通信装置之间建立有多条业务连接,该多条业务连接传输不同业务或者不同业务的子业务的业务流。In another possible implementation, the second service connection established based on the third route is a sub-service connection of the second VPN, and the sub-service connection of the second VPN is used to transmit the sub-service of the second VPN. The third route also includes the identifier of the second VPN; the generated third FID also includes the identifier of the second VPN and the identifier of the sub-service of the second VPN. In this case, the third service flow identified by the third FID is all service flows of the sub-services of the second VPN transmitted between the first communication device and the second communication device. That is to say, not only all the service flows of the first VPN can be transmitted between the first communication device and the second communication device, but also all the service flows of the sub-services of the second VPN can be transmitted between the first communication device and the second communication device. Multiple service connections are established between devices, and the multiple service connections transmit service flows of different services or sub-services of different services.
在一种可能的实施方式中,第一通信装置接收第三通信装置发布的第四路由,第四路由用于建立第一通信装置与第三通信装置之间的第三业务连接,第四路由包括第三通信装置的节点信息;第一通信装置根据第一通信装置的节点信息和第四路由中携带的第三通信装置的节点信息,生成该第三业务连接对应的第四FID,第四FID用于标识第一通信装置向第三通信装置发送的第四业务流,第四FID包括第一通信装置的节点信息和第三通信装置的节点信息。此种情况下,第一通信装置不仅可以与第二通信装置之间建立业务连接,第一通信装置也可以与第三通信装置建立业务连接,也即同一通信装置可以与不同的通信装置之间建立业务连接,并在建立业务连接的过程中自动生成业务连接对应的FID。In a possible implementation, the first communication device receives a fourth route published by the third communication device. The fourth route is used to establish a third service connection between the first communication device and the third communication device. The fourth route including node information of the third communication device; the first communication device generates a fourth FID corresponding to the third service connection according to the node information of the first communication device and the node information of the third communication device carried in the fourth route, and the fourth The FID is used to identify the fourth service flow sent by the first communication device to the third communication device. The fourth FID includes node information of the first communication device and node information of the third communication device. In this case, the first communication device can not only establish a service connection with the second communication device, but also can establish a service connection with the third communication device, that is, the same communication device can establish a service connection with different communication devices. Establish a business connection, and automatically generate the FID corresponding to the business connection during the process of establishing the business connection.
在一种可能的实施方式中,基于第四路由建立的第三业务连接为第三VPN,第四路由还包括第三VPN的标识;该第四FID还包括该第三VPN的标识。此种情况下,该第四FID标识的第四业务流为第一通信装置与第三通信装置之间传输的第三VPN的所有业务流。In a possible implementation, the third service connection established based on the fourth route is a third VPN, the fourth route further includes an identifier of the third VPN; the fourth FID further includes an identifier of the third VPN. In this case, the fourth service flow identified by the fourth FID is all the service flows of the third VPN transmitted between the first communication device and the third communication device.
在一种可能的实施方式中,该第三业务连接为第三VPN的子业务连接,第四路由还包括第三VPN的标识;该第四FID还包括该第三VPN的标识和第三VPN的子业务的标识。此种情况下,该第四FID标识的第四业务流为第一通信装置与第三通信装置之间传输的第三VPN的子业务的所有业务流。其中,第三VPN与上述第一VPN相同,或者,第三VPN与上述第一VPN不同。In a possible implementation, the third service connection is a sub-service connection of the third VPN, the fourth route also includes the identifier of the third VPN; the fourth FID also includes the identifier of the third VPN and the third VPN identifier. The identifier of the sub-business. In this case, the fourth service flow identified by the fourth FID is all service flows of the sub-services of the third VPN transmitted between the first communication device and the third communication device. Wherein, the third VPN is the same as the above-mentioned first VPN, or the third VPN is different from the above-mentioned first VPN.
需要说明的是,生成第三FID、第四FID的方式均可参考上述生成第一FID的方式,第二业务连接、第三业务连接的各种情况可参考第一业务连接的相关描述,建立第二业务连接、第三业务连接的方式可参考上述基于第一路由建立第一业务连接的相关描述,此处不再一一赘述。 It should be noted that the methods of generating the third FID and the fourth FID can refer to the above-mentioned method of generating the first FID. For various situations of the second service connection and the third service connection, please refer to the relevant description of the first service connection to establish For the methods of the second service connection and the third service connection, please refer to the above-mentioned related description of establishing the first service connection based on the first route, and will not be described in detail here.
综上,本申请实施例提供的业务连接的标识方法,能够在业务连接的建立过程中,根据用于建立业务连接的路由中携带的节点信息自动生成该业务连接对应的FID,通过该FID来标识该业务连接传输的业务流,由于无需静态配置即可生成FID,使得生成FID的操作更为简单,工作量更小,生成效率更高。In summary, the identification method of the business connection provided by the embodiment of the present application can automatically generate the FID corresponding to the business connection according to the node information carried in the route used to establish the business connection during the establishment process of the business connection, and use the FID to identify the business connection. Identifies the business flow transmitted by this business connection. Since FID can be generated without static configuration, the operation of generating FID is simpler, the workload is smaller, and the generation efficiency is higher.
此外,由于是基于业务连接的路由生成的FID,该FID不仅可以用于标识该业务连接传输的业务流,还可以用于标识该业务连接,提供了有效的标识业务连接的方式。In addition, since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection.
再有,本申请实施例提供的方法可基于两个通信装置之间建立的不同粒度的业务连接生成对应的FID,从而基于不同粒度的业务连接对应的FID实现对业务连接所传输的业务流进行不同粒度的管理,提高了流量管理的灵活性。Furthermore, the method provided by the embodiments of the present application can generate corresponding FIDs based on service connections of different granularities established between two communication devices, so that the service flows transmitted by the service connections can be processed based on the FIDs corresponding to the service connections of different granularities. Management at different granularities improves the flexibility of traffic management.
以上介绍了本申请实施例的业务连接的标识方法,与上述方法对应,本申请实施例还提供了通信装置。图13是本申请实施例提供的一种通信装置的结构示意图,该通信装置为上述图2所示的ACC设备或PE3设备或PE4设备。基于图13所示的如下多个模块,应理解到,该装置可以包括比所示模块更多的附加模块或者省略其中所示的一部分模块,本申请实施例对此并不进行限制。如图13所示,该装置包括:The above describes the identification method of the service connection in the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a communication device. FIG. 13 is a schematic structural diagram of a communication device provided by an embodiment of the present application. The communication device is the ACC device, PE3 device, or PE4 device shown in FIG. 2 above. Based on the following multiple modules shown in Figure 13, it should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiments of the present application are not limited to this. As shown in Figure 13, the device includes:
收发模块1301,用于执行图4所示的业务连接的标识方法400中由通信装置2所执行的接收和/或发送相关的操作,或者,用于执行图8所示的业务连接的标识方法800中由第一通信装置所执行的接收和/或发送相关的操作之外的其它操作;The transceiver module 1301 is used to perform reception and/or transmission related operations performed by the communication device 2 in the service connection identification method 400 shown in Figure 4, or is used to perform the service connection identification method shown in Figure 8 Other operations other than the reception and/or transmission related operations performed by the first communication device in 800;
处理模块1302,用于执行图4所示的业务连接的标识方法400中由通信装置2所执行的接收和/或发送相关的操作之外的其它操作,或者,用于执行图8所示的业务连接的标识方法800中由第一通信装置所执行的接收和/或发送相关的操作之外的其它操作。The processing module 1302 is configured to perform other operations other than the receiving and/or sending related operations performed by the communication device 2 in the service connection identification method 400 shown in FIG. 4, or is used to perform operations shown in FIG. 8. Other operations other than the reception and/or transmission related operations performed by the first communication device in the service connection identification method 800.
在一种可能的实施方式中,收发模块1301,用于接收第二通信装置发布的第一路由,第一路由用于建立第一通信装置与第二通信装置之间的业务连接,第一路由包括第二通信装置的节点信息;处理模块1302,用于根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第一FID,第一FID用于标识第一通信装置向第二通信装置发送的第一业务流,第一FID包括第一通信装置的节点信息和第二通信装置的节点信息。In a possible implementation, the transceiver module 1301 is configured to receive a first route published by a second communication device. The first route is used to establish a business connection between the first communication device and the second communication device. The first route including node information of the second communication device; the processing module 1302 is configured to generate a first FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route, where the first FID is used For identifying the first service flow sent by the first communication device to the second communication device, the first FID includes node information of the first communication device and node information of the second communication device.
在一种可能的实施方式中,业务连接为VPN,第一路由还包括该VPN的标识;第一FID还包括该VPN的标识。In a possible implementation, the service connection is a VPN, the first route also includes the identifier of the VPN; the first FID further includes the identifier of the VPN.
在一种可能的实施方式中,业务连接为VPN的子业务连接,子业务连接用于传输VPN的子业务,第一路由还包括VPN的标识,第一FID还包括VPN的标识和子业务的标识。In a possible implementation, the service connection is a sub-service connection of the VPN. The sub-service connection is used to transmit the sub-service of the VPN. The first route also includes the identifier of the VPN. The first FID also includes the identifier of the VPN and the identifier of the sub-service. .
在一种可能的实施方式中,第一路由还包括子业务的标识。In a possible implementation, the first route also includes an identifier of the sub-service.
在一种可能的实施方式中,第一通信装置的地址为第一IPv6地址,第一IPv6地址包括第一通信装置的节点信息,第一路由包括第二通信装置的第二IPv6地址,第二IPv6地址包括第二通信装置的节点信息。In a possible implementation, the address of the first communication device is a first IPv6 address, the first IPv6 address includes node information of the first communication device, the first route includes the second IPv6 address of the second communication device, and the second The IPv6 address includes node information of the second communication device.
在一种可能的实施方式中,第二IPv6地址为SRv6 VPN SID。In a possible implementation, the second IPv6 address is an SRv6 VPN SID.
在一种可能的实施方式中,SRv6 VPN SID的定位器字段用于指示第二通信装置的节点信息,SRv6 VPN SID的功能字段用于指示VPN的标识。In a possible implementation, the locator field of the SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the SRv6 VPN SID is used to indicate the identity of the VPN.
在一种可能的实施方式中,SRv6 VPN SID的参数字段用于指示VPN的子业务的标识。In a possible implementation, the parameter field of the SRv6 VPN SID is used to indicate the identity of the VPN sub-service.
在一种可能的实施方式中,第一路由包括VNI。 In a possible implementation, the first route includes a VNI.
在一种可能的实施方式中,收发模块1301,还用于向第二通信装置发送第一业务报文,第一业务报文属于第一业务流,第一业务报文包括第一FID。In a possible implementation, the transceiver module 1301 is also configured to send a first service message to the second communication device. The first service message belongs to the first service flow, and the first service message includes the first FID.
在一种可能的实施方式中,处理模块1302,还用于基于第一FID对第一业务流进行流量管理。In a possible implementation, the processing module 1302 is also configured to perform traffic management on the first service flow based on the first FID.
在一种可能的实施方式中,处理模块1302,还用于根据第一通信装置的节点信息和第一路由中携带的第二通信装置的节点信息生成业务连接对应的第二FID,第二FID用于标识第二通信装置向第一通信装置发送的第二业务流,第二FID包括第一通信装置的节点信息和第二通信装置的节点信息。In a possible implementation, the processing module 1302 is also configured to generate a second FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device.
在一种可能的实施方式中,收发模块1301,还用于接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二FID。In a possible implementation, the transceiver module 1301 is also configured to receive a second service message sent by the second communication device. The second service message belongs to the second service flow, and the second service message includes the second FID.
在一种可能的实施方式中,处理模块1302,还用于第一通信装置基于第二FID对第二业务流进行流量管理。In a possible implementation, the processing module 1302 is also used by the first communication device to perform traffic management on the second service flow based on the second FID.
在一种可能的实施方式中,第一通信装置的VRF中包括第二通信装置的节点信息与第二FID的映射关系;In a possible implementation, the VRF of the first communication device includes a mapping relationship between the node information of the second communication device and the second FID;
收发模块1301,还用于接收第二通信装置发送的第二业务报文,第二业务报文属于第二业务流,第二业务报文包括第二通信装置的节点信息;The transceiver module 1301 is also used to receive a second service message sent by the second communication device. The second service message belongs to the second service flow, and the second service message includes node information of the second communication device;
处理模块1302,还用于基于第二通信装置的节点信息与第二FID的映射关系确定第二FID,基于第二FID对第二业务流进行流量管理。The processing module 1302 is also configured to determine the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and perform traffic management on the second service flow based on the second FID.
该装置在业务连接建立的过程中,直接根据用于建立业务连接的第一路由生成该业务连接对应的FID,进而通过该FID来标识该业务连接传输的业务流,无需通过静态配置即可得到该FID。因此,使得生成FID的操作更为简单,工作量更小,生成效率更高。此外,由于是基于业务连接的路由生成的FID,该FID不仅可以用于标识该业务连接传输的业务流,还可以用于标识该业务连接,提供了有效的标识业务连接的方式。再有,由于无需部署除建立业务连接所需协议之外的其他协议,即可根据传输的业务报文与自动生成的FID识别不同业务连接对应的业务流,提高了业务流的识别效率。又由于可以根据不同粒度的业务连接生成对应的FID,从而能够通过对应的FID对多条业务连接传输的业务流进行差异化管理,进一步满足流量管理需求。During the process of establishing a service connection, the device directly generates the FID corresponding to the service connection based on the first route used to establish the service connection, and then uses the FID to identify the service flow transmitted by the service connection, which can be obtained without static configuration. The FID. Therefore, the operation of generating FID is simpler, the workload is smaller, and the generation efficiency is higher. In addition, since the FID is generated based on the routing of the service connection, the FID can not only be used to identify the service flow transmitted by the service connection, but also can be used to identify the service connection, providing an effective way to identify the service connection. Furthermore, since there is no need to deploy other protocols other than those required to establish business connections, the business flows corresponding to different business connections can be identified based on the transmitted business messages and automatically generated FIDs, which improves the efficiency of business flow identification. And because corresponding FIDs can be generated based on service connections of different granularities, the service flows transmitted by multiple service connections can be differentiatedly managed through the corresponding FIDs, further meeting traffic management needs.
应理解的是,上述图13提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be understood that when the device provided in Figure 13 implements its functions, the division of the above functional modules is only used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the equipment The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be described again here.
参见图14,图14示出了本申请一个示例性实施例提供的网络设备2000的结构示意图。图14所示的网络设备2000用于执行上述图4所示的业务连接的标识方法400,或者上述图8所示的业务连接的标识方法800所涉及的操作。该网络设备2000例如是交换机、路由器等,该网络设备2000可以由一般性的总线体系结构来实现。Referring to Figure 14, Figure 14 shows a schematic structural diagram of a network device 2000 provided by an exemplary embodiment of the present application. The network device 2000 shown in FIG. 14 is used to perform the operations involved in the identification method 400 of the service connection shown in FIG. 4 or the identification method 800 of the service connection shown in FIG. 8 . The network device 2000 is, for example, a switch, a router, etc., and the network device 2000 can be implemented by a general bus architecture.
如图14所示,网络设备2000包括至少一个处理器2001、存储器2003以及至少一个通信接口2004。As shown in Figure 14, the network device 2000 includes at least one processor 2001, a memory 2003, and at least one communication interface 2004.
处理器2001例如是通用中央处理器(central processing unit,CPU)、数字信号处理器 (digital signal processor,DSP)、网络处理器(network processer,NP)、图形处理器(Graphics Processing Unit,GPU)、神经网络处理器(neural-network processing units,NPU)、数据处理单元(Data Processing Unit,DPU)、微处理器或者一个或多个用于实现本申请方案的集成电路。例如,处理器2001包括专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。PLD例如是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。其可以实现或执行结合本发明实施例公开内容所描述的各种逻辑方框、模块和电路。所述处理器也可以是实现计算功能的组合,例如包括一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 2001 is, for example, a general central processing unit (CPU) or a digital signal processor. (digital signal processor, DSP), network processor (NP), graphics processing unit (GPU), neural network processing units (NPU), data processing unit (Data Processing Unit) , DPU), microprocessor or one or more integrated circuits used to implement the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. It may implement or execute the various logical blocks, modules and circuits described in conjunction with the disclosure of embodiments of the present invention. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
可选的,网络设备2000还包括总线。总线用于在网络设备2000的各组件之间传送信息。总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the network device 2000 also includes a bus. Buses are used to transfer information between components of network device 2000. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 14, but it does not mean that there is only one bus or one type of bus.
存储器2003例如是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器2003例如是独立存在,并通过总线与处理器2001相连接。存储器2003也可以和处理器2001集成在一起。The memory 2003 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (random access memory, RAM) or a device that can store information and instructions. Other types of dynamic storage devices, such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical discs Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, without limitation. The memory 2003 exists independently, for example, and is connected to the processor 2001 through a bus. The memory 2003 may also be integrated with the processor 2001.
通信接口2004使用任何收发器一类的装置,用于与其它设备或通信网络通信,通信网络可以为以太网、无线接入网(RAN)或无线局域网(wireless local area networks,WLAN)等。通信接口2004可以包括有线通信接口,还可以包括无线通信接口。具体的,通信接口2004可以为以太(Ethernet)接口、快速以太(Fast Ethernet,FE)接口、千兆以太(Gigabit Ethernet,GE)接口,异步传输模式(Asynchronous Transfer Mode,ATM)接口,无线局域网(wireless local area networks,WLAN)接口,蜂窝网络通信接口或其组合。以太网接口可以是光接口,电接口或其组合。在本申请实施例中,通信接口2004可以用于网络设备2000与其他设备进行通信。The communication interface 2004 uses any device such as a transceiver for communicating with other devices or a communication network. The communication network may be Ethernet, a radio access network (RAN) or a wireless local area network (WLAN), etc. The communication interface 2004 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 2004 may be an Ethernet (Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface, a wireless LAN ( wireless local area networks, WLAN) interface, cellular network communication interface or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In this embodiment of the present application, the communication interface 2004 can be used for the network device 2000 to communicate with other devices.
在具体实现中,作为一种实施例,处理器2001可以包括一个或多个CPU,如图14中所示的CPU0和CPU1。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 14 . Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,网络设备2000可以包括多个处理器,如图14中所示的处理器2001和处理器2005。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/ 或用于处理数据(如计算机程序指令)的处理核。In specific implementation, as an embodiment, the network device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in FIG. 14 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor here may refer to one or more devices, circuits, and/or or a processing core used to process data (such as computer program instructions).
在具体实现中,作为一种实施例,网络设备2000还可以包括输出设备和输入设备。输出设备和处理器2001通信,可以以多种方式来显示信息。例如,输出设备可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备和处理器2001通信,可以以多种方式接收用户的输入。例如,输入设备可以是鼠标、键盘、触摸屏设备或传感设备等。In specific implementation, as an embodiment, the network device 2000 may also include an output device and an input device. Output devices communicate with processor 2001 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc. Input devices communicate with processor 2001 and can receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device or a sensing device, etc.
在一些实施例中,存储器2003用于存储执行本申请方案的程序代码2010,处理器2001可以执行存储器2003中存储的程序代码2010。也即是,网络设备2000可以通过处理器2001以及存储器2003中的程序代码2010,来实现方法实施例提供的业务连接的标识方法。程序代码2010中可以包括一个或多个软件模块。可选地,处理器2001自身也可以存储执行本申请方案的程序代码或指令。In some embodiments, the memory 2003 is used to store the program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. That is to say, the network device 2000 can implement the identification method of the service connection provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. Program code 2010 may include one or more software modules. Optionally, the processor 2001 itself can also store program codes or instructions for executing the solution of the present application.
在具体实施例中,本申请实施例的网络设备2000可对应于上述各个方法实施例中的第一通信装置,网络设备2000中的处理器2001读取存储器2003中的指令,使图14所示的网络设备2000能够执行第一通信装置所执行的全部或部分操作。In a specific embodiment, the network device 2000 in the embodiment of the present application may correspond to the first communication device in each of the above method embodiments. The processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that as shown in Figure 14 The network device 2000 is capable of performing all or part of the operations performed by the first communication device.
网络设备2000还可以对应于上述图13所示的通信装置,通信装置中的每个功能模块采用网络设备2000的软件实现。换句话说,通信装置包括的功能模块为网络设备2000的处理器2001读取存储器2003中存储的程序代码2010后生成的。The network device 2000 may also correspond to the communication device shown in FIG. 13 above, and each functional module in the communication device is implemented using the software of the network device 2000. In other words, the functional modules included in the communication device are generated by the processor 2001 of the network device 2000 after reading the program code 2010 stored in the memory 2003.
其中,图8所示的业务连接的标识方法的各步骤通过网络设备2000的处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤,为避免重复,这里不再详细描述。Each step of the method for identifying a service connection shown in FIG. 8 is completed through an integrated logic circuit of hardware in the processor of the network device 2000 or instructions in the form of software. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, the details will not be described here.
参见图15,图15示出了本申请另一个示例性实施例提供的网络设备2100的结构示意图,图15所示的网络设备2100用于执行上述图4所示的业务连接的标识方法400,或者上述图8所示的业务连接的标识方法800所涉及的全部或部分操作。该网络设备2100例如是交换机、路由器等,该网络设备2100可以由一般性的总线体系结构来实现。Referring to Figure 15, Figure 15 shows a schematic structural diagram of a network device 2100 provided by another exemplary embodiment of the present application. The network device 2100 shown in Figure 15 is used to perform the above-mentioned identification method 400 of service connections shown in Figure 4, Or all or part of the operations involved in the identification method 800 of the service connection shown in FIG. 8 . The network device 2100 is, for example, a switch, a router, etc., and the network device 2100 can be implemented by a general bus architecture.
如图15所示,网络设备2100包括:主控板2110和接口板2130。As shown in Figure 15, the network device 2100 includes: a main control board 2110 and an interface board 2130.
主控板也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板2110用于对网络设备2100中各个组件的控制和流量管理,包括路由计算、设备流量管理、设备维护、协议处理功能。主控板2110包括:中央处理器2111和存储器2112。The main control board is also called the main processing unit (MPU) or route processor card. The main control board 2110 is used to control and manage traffic of each component in the network device 2100, including route calculation, equipment Traffic management, equipment maintenance, and protocol processing functions. The main control board 2110 includes: a central processing unit 2111 and a memory 2112.
接口板2130也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板2130用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板2130包括:中央处理器2131网络处理器2132、转发表项存储器2134和物理接口卡(physical interface card,PIC)2133。The interface board 2130 is also called a line processing unit (LPU), line card or service board. The interface board 2130 is used to provide various service interfaces and implement data packet forwarding. Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc. Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients). The interface board 2130 includes: a central processor 2131, a network processor 2132, a forwarding entry memory 2134, and a physical interface card (physical interface card, PIC) 2133.
接口板2130上的中央处理器2131用于对接口板2130进行控制流量管理并与主控板2110上的中央处理器2111进行通信。 The central processor 2131 on the interface board 2130 is used to control traffic management of the interface board 2130 and communicate with the central processor 2111 on the main control board 2110.
网络处理器2132用于实现报文的转发处理。网络处理器2132的形态可以是转发芯片。转发芯片可以是网络处理器(network processor,NP)。在一些实施例中,转发芯片可以通过专用集成电路(application-specific integrated circuit,ASIC)或现场可编程门阵列(field programmable gate array,FPGA)实现。具体而言,网络处理器2132用于基于转发表项存储器2134保存的转发表转发接收到的报文,如果报文的目的地址为网络设备2100的地址,则将该报文上送至CPU(如中央处理器2131)处理;如果报文的目的地址不是网络设备2100的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该业务连接的标识到该目的地址对应的出接口。其中,上行报文的处理可以包括:报文入接口的处理,转发表查找;下行报文的处理可以包括:转发表查找等等。在一些实施例中,中央处理器也可执行转发芯片的功能,比如基于通用CPU实现软件转发,从而接口板中不需要转发芯片。The network processor 2132 is used to implement packet forwarding processing. The network processor 2132 may be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is used to forward the received message based on the forwarding table stored in the forwarding table memory 2134. If the destination address of the message is the address of the network device 2100, the message is uploaded to the CPU ( Such as the central processor 2131) processing; if the destination address of the message is not the address of the network device 2100, the next hop and outbound interface corresponding to the destination address are found from the forwarding table according to the destination address, and the identification of the service connection is to the outbound interface corresponding to the destination address. Among them, the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc. In some embodiments, the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
物理接口卡2133用于实现物理层的对接功能,原始的流量由此进入接口板2130,以及处理后的报文从该物理接口卡2133发出。物理接口卡2133也称为子卡,可安装在接口板2130上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器2132处理。在一些实施例中,中央处理器2131也可执行网络处理器2132的功能,比如基于通用CPU实现软件转发,从而物理接口卡2133中不需要网络处理器2132。The physical interface card 2133 is used to implement the docking function of the physical layer. The original traffic enters the interface board 2130 through this, and the processed packets are sent out from the physical interface card 2133. The physical interface card 2133 is also called a daughter card and can be installed on the interface board 2130. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 2132 for processing. In some embodiments, the central processor 2131 can also perform the functions of the network processor 2132, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133.
可选地,网络设备2100包括多个接口板,例如网络设备2100还包括接口板2140,接口板2140包括:中央处理器2141、网络处理器2142、转发表项存储器2144和物理接口卡2143。接口板2140中各部件的功能和实现方式与接口板2130相同或相似,在此不再赘述。Optionally, the network device 2100 includes multiple interface boards. For example, the network device 2100 also includes an interface board 2140. The interface board 2140 includes: a central processor 2141, a network processor 2142, a forwarding entry memory 2144, and a physical interface card 2143. The functions and implementation methods of each component in the interface board 2140 are the same as or similar to those of the interface board 2130 and will not be described again here.
可选地,网络设备2100还包括交换网板2120。交换网板2120也可以称为交换网板单元(switch fabric unit,SFU)。在网络设备有多个接口板的情况下,交换网板2120用于完成各接口板之间的数据交换。例如,接口板2130和接口板2140之间可以通过交换网板2120通信。Optionally, the network device 2100 also includes a switching network board 2120. The switching fabric unit 2120 may also be called a switching fabric unit (switch fabric unit, SFU). When the network device has multiple interface boards, the switching network board 2120 is used to complete data exchange between the interface boards. For example, the interface board 2130 and the interface board 2140 can communicate through the switching network board 2120.
主控板2110和接口板耦合。例如。主控板2110、接口板2130和接口板2140,以及交换网板2120之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板2110和接口板2130及接口板2140之间建立进程间通信协议(inter-process communication,IPC)通道,主控板2110和接口板2130及接口板2140之间通过IPC通道进行通信。The main control board 2110 is coupled with the interface board. For example. The main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140. The main control board 2110 and the interface board 2130 and the interface board 2140 communicate through IPC channels.
在逻辑上,网络设备2100包括控制面和转发面,控制面包括主控板2110和中央处理器2111,转发面包括执行转发的各个组件,比如转发表项存储器2134、物理接口卡2133和网络处理器2132。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护网络设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器2132基于控制面下发的转发表对物理接口卡2133收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器2134中。在有些实施例中,控制面和转发面可以完全分离,不在同一网络设备上。Logically, network device 2100 includes a control plane and a forwarding plane. The control plane includes a main control board 2110 and a central processor 2111. The forwarding plane includes various components that perform forwarding, such as forwarding entry memory 2134, physical interface card 2133, and network processing. Device 2132. The control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains the status of network devices. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 2132 is based on the control The forwarding table delivered above looks up the table and forwards the packets received by the physical interface card 2133. The forwarding table delivered by the control plane may be stored in the forwarding table item storage 2134. In some embodiments, the control plane and forwarding plane may be completely separated and not on the same network device.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和 处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的网络设备。可选地,网络设备的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态网络设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth mentioning that there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, load sharing and redundant backup can be realized together. Under the centralized forwarding architecture, network equipment does not need switching network boards, and the interface boards are responsible for processing the business data of the entire system. Under the distributed forwarding architecture, network equipment can have at least one switching network board, which realizes data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing power. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture. Optionally, the network device can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two. This form of network equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment). The specific architecture used depends on the specific networking deployment scenario and is not limited here.
在示例性实施例中,网络设备2100对应于上述图13所示的应用于第一通信装置的通信装置。在一些实施例中,图13所示的通信装置中的收发模块1301相当于网络设备2100中的物理接口卡2133,处理模块1302相当于网络设备2100中的中央处理器2111或网络处理器2132。In an exemplary embodiment, the network device 2100 corresponds to the communication device applied to the first communication device shown in FIG. 13 described above. In some embodiments, the transceiver module 1301 in the communication device shown in FIG. 13 is equivalent to the physical interface card 2133 in the network device 2100, and the processing module 1302 is equivalent to the central processor 2111 or the network processor 2132 in the network device 2100.
基于上述图14及图15所示的网络设备,本申请实施例还提供了一种通信系统,该通信系统包括:第一通信装置和第二通信装置。可选的,第一通信装置为图14所示的网络设备2000或图15所示的网络设备2100,第二通信装置为图14所示的网络设备2000或图15所示的网络设备2100。Based on the network equipment shown in FIG. 14 and FIG. 15 , embodiments of the present application also provide a communication system. The communication system includes: a first communication device and a second communication device. Optionally, the first communication device is the network device 2000 shown in FIG. 14 or the network device 2100 shown in FIG. 15 , and the second communication device is the network device 2000 shown in FIG. 14 or the network device 2100 shown in FIG. 15 .
需要说明的是,第一通信装置和第二通信装置所执行的业务连接的标识方法可参见上述图8所示实施例的相关描述,或者,参见上述图4所示实施例中通信装置1和通信装置2所执行的内容,此处不再加以赘述。It should be noted that, for the identification method of the service connection performed by the first communication device and the second communication device, please refer to the relevant description of the embodiment shown in FIG. 8 above, or refer to the communication device 1 and the communication device 1 in the embodiment shown in FIG. 4 above. The content executed by the communication device 2 will not be described again here.
本申请实施例还提供了一种通信装置,该装置包括:收发器、存储器和处理器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收信号,并控制收发器发送信号,并且当该处理器执行该存储器存储的指令时,使得该处理器执行第一通信装置所需执行的方法。An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. Wherein, the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals. , and when the processor executes the instructions stored in the memory, the processor is caused to execute the method required to be executed by the first communication device.
本申请实施例还提供了一种通信装置,该装置包括:收发器、存储器和处理器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收信号,并控制收发器发送信号,并且当该处理器执行该存储器存储的指令时,使得该处理器执行第二通信装置所需执行的方法。An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. Wherein, the transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals. , and when the processor executes the instructions stored in the memory, the processor is caused to execute the method required to be executed by the second communication device.
应理解的是,上述处理器可以是CPU,还可以是其他通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。值得说明的是,处理器可以是支持进阶精简指令集机器(advanced RISC machines,ARM)架构的处理器。It should be understood that the above-mentioned processor can be a CPU, or other general-purpose processor, digital signal processing (DSP), application specific integrated circuit (ASIC), field programmable gate array ( field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports advanced RISC machines (ARM) architecture.
进一步地,在一种可选的实施例中,上述存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。Further, in an optional embodiment, the above-mentioned memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. Memory may also include non-volatile random access memory. For example, the memory may also store device type information.
该存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不 是限制性说明,许多形式的RAM可用。例如,静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic random access memory,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which is used as an external cache. By way of example but not is a restrictive note, many forms of RAM are available. For example, static random access memory (static RAM, SRAM), dynamic random access memory (dynamic random access memory, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access Memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
本申请实施例还提供了一种计算机可读存储介质,存储介质中存储有至少一条指令,指令由处理器加载并执行,以使计算机实现如上任一所述的业务连接的标识方法。Embodiments of the present application also provide a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by the processor, so that the computer implements the identification method of a business connection as described above.
本申请实施例还提供了一种计算机程序(产品),当计算机程序被计算机执行时,可以使得处理器或计算机执行上述方法实施例中对应的各个步骤和/或流程。Embodiments of the present application also provide a computer program (product). When the computer program is executed by a computer, it can cause the processor or computer to execute corresponding steps and/or processes in the above method embodiments.
本申请实施例还提供了一种芯片,包括处理器,用于从存储器中调用并运行所述存储器中存储的指令,使得安装有所述芯片的通信设备执行如上任一所述的业务连接的标识方法。An embodiment of the present application also provides a chip, including a processor, configured to call from a memory and run instructions stored in the memory, so that the communication device installed with the chip performs any of the above-mentioned business connections. Identification method.
本申请实施例还提供另一种芯片,包括:通信接口和处理器,基于所述通信接口和所述处理器,执行上述方法实施例中的方法。其中,该通信接口用于执行接收和/或发送相关的操作,该处理器用于执行收发操作以外的其它操作。该通信接口例如可以是接口电路,该处理器例如可以是处理电路。An embodiment of the present application also provides another chip, including: a communication interface and a processor, based on the communication interface and the processor, the method in the above method embodiment is executed. The communication interface is used to perform receiving and/or sending related operations, and the processor is used to perform other operations other than sending and receiving operations. The communication interface may be, for example, an interface circuit, and the processor may be, for example, a processing circuit.
在一种可能的实施方式中,该芯片还包括存储器,所述通信接口、所述处理器以及所述存储器之间通过内部连接通路相连,所述处理器用于执行所述存储器中的代码,当所述代码被执行时,所述处理器用于执行如上任一所述的业务连接的标识方法。In a possible implementation, the chip further includes a memory, the communication interface, the processor and the memory are connected through internal connection paths, and the processor is used to execute the code in the memory. When the code is executed, the processor is configured to execute any of the above-mentioned identifying methods for service connections.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated therein. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk), etc.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和模块,能够以软件、硬件、固件或者其任意组合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the method steps and modules described in conjunction with the embodiments disclosed herein can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interoperability of hardware and software, Alternatively, the steps and compositions of each embodiment have been generally described in terms of functions in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. One of ordinary skill in the art may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上 述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机程序指令。作为示例,本申请实施例的方法可以在机器可执行指令的上下文中被描述,机器可执行指令诸如包括在目标的真实或者虚拟处理器上的器件中执行的程序模块中。一般而言,程序模块包括例程、程序、库、对象、类、组件、数据结构等,其执行特定的任务或者实现特定的抽象数据结构。在各实施例中,程序模块的功能可以在所描述的程序模块之间合并或者分割。用于程序模块的机器可执行指令可以在本地或者分布式设备内执行。在分布式设备中,程序模块可以位于本地和远程存储介质二者中。When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. By way of example, methods of embodiments of the present application may be described in the context of machine-executable instructions, such as included in a program module executing in a device on a target's real or virtual processor. Generally speaking, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures. In various embodiments, the functionality of program modules may be combined or split between the described program modules. Machine-executable instructions for program modules can execute locally or on a distributed device. In a distributed device, program modules can be located in both local and remote storage media.
用于实现本申请实施例的方法的计算机程序代码可以用一种或多种编程语言编写。这些计算机程序代码可以提供给通用计算机、专用计算机或其他可编程的数据处理装置的处理器,使得程序代码在被计算机或其他可编程的数据处理装置执行的时候,引起在流程图和/或框图中规定的功能/操作被实施。程序代码可以完全在计算机上、部分在计算机上、作为独立的软件包、部分在计算机上且部分在远程计算机上或完全在远程计算机或服务器上执行。Computer program codes for implementing the methods of embodiments of the present application may be written in one or more programming languages. These computer program codes may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the computer or other programmable data processing device, the program code causes the flowcharts and/or block diagrams to be displayed. The functions/operations specified in are implemented. The program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
在本申请实施例的上下文中,计算机程序代码或者相关数据可以由任意适当载体承载,以使得设备、装置或者处理器能够执行上文描述的各种处理和操作。载体的示例包括信号、计算机可读介质等等。In the context of the embodiments of the present application, the computer program code or related data may be carried by any appropriate carrier, so that the device, device or processor can perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like.
信号的示例可以包括电、光、无线电、声音或其它形式的传播信号,诸如载波、红外信号等。Examples of signals may include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
机器可读介质可以是包含或存储用于或有关于指令执行系统、装置或设备的程序的任何有形介质。机器可读介质可以是机器可读信号介质或机器可读存储介质。机器可读介质可以包括但不限于电子的、磁的、光学的、电磁的、红外的或半导体系统、装置或设备,或其任意合适的组合。机器可读存储介质的更详细示例包括带有一根或多根导线的电气连接、便携式计算机磁盘、硬盘、随机存储存取器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或闪存)、光存储设备、磁存储设备,或其任意合适的组合。A machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, laptop computer disk, hard drive, random memory accessor (RAM), read-only memory (ROM), erasable programmable read-only memory Memory (EPROM or flash memory), optical storage device, magnetic storage device, or any suitable combination thereof.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、设备和模块的具体工作过程,可以参见前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、设备或模块的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, or may be electrical, mechanical or other forms of connection.
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存 储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例中方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be saved Stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。例如,在不脱离各种所述示例的范围的情况下,第一路由可以被称为第二路由,并且类似地,第二路由可以被称为第一路由。第一路由和第二路由都可以是路由,并且在某些情况下,可以是单独且不同的路由。In this application, the terms "first", "second" and other words are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that the terms "first", "second" and "nth" There is no logical or sequential dependency, and there is no limit on the number or execution order. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first route may be referred to as a second route, and similarly, a second route may be referred to as a first route, without departing from the scope of various described examples. Both the first route and the second route may be routes, and in some cases, may be separate and distinct routes.
还应理解,在本申请的各个实施例中,各个过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that in each embodiment of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be determined by the execution order of the embodiments of the present application. The implementation process constitutes no limitation.
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上,例如,多个第二报文是指两个或两个以上的第二报文。本文中术语“系统”和“网络”经常可互换使用。The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more. For example, multiple second messages means two or more more than one second message. The terms "system" and "network" are often used interchangeably in this article.
应理解,在本文中对各种所述示例的描述中所使用的术语只是为了描述特定示例,而并非旨在进行限制。如在对各种所述示例的描述和所附权利要求书中所使用的那样,单数形式“一个(“a”,“an”)”和“该”旨在也包括复数形式,除非上下文另外明确地指示。It is to be understood that the terminology used in the description of the various examples herein is for the purpose of describing the particular example only and is not intended to be limiting. As used in the description of various described examples and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context dictates otherwise. Instruct clearly.
还应理解,本文中所使用的术语“和/或”是指并且涵盖相关联的所列出的项目中的一个或多个项目的任何和全部可能的组合。术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本申请中的字符“/”,一般表示前后关联对象是一种“或”的关系。It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and/or" is an association relationship that describes related objects, indicating that there can be three relationships. For example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B alone exists. situation. In addition, the character "/" in this application generally indicates that the related objects are in an "or" relationship.
还应理解,术语“包括”(也称“includes”、“including”、“comprises”和/或“comprising”)当在本说明书中使用时指定存在所陈述的特征、整数、步骤、操作、元素、和/或部件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元素、部件、和/或其分组。It will also be understood that the term "includes" (also "includes," "including," "comprises," and/or "comprising") when used in this specification specifies the presence of stated features, integers, steps, operations, elements , and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groupings thereof.
还应理解,术语“若”和“如果”可被解释为意指“当...时”(“when”或“upon”)或“响应于确定”或“响应于检测到”。类似地,根据上下文,短语“若确定...”或“若检测到[所陈述的条件或事件]”可被解释为意指“在确定...时”或“响应于确定...”或“在检测到[所陈述的条件或事件]时”或“响应于检测到[所陈述的条件或事件]”。It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrase "if it is determined..." or "if [stated condition or event] is detected" may be interpreted to mean "when it is determined..." or "in response to the determination... ” or “on detection of [stated condition or event]” or “in response to detection of [stated condition or event].”
应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that determining B based on A does not mean determining B only based on A, and B can also be determined based on A and/or other information.
还应理解,说明书通篇中提到的“一个实施例”、“一实施例”、“一种可能的实现方式”意味着与实施例或实现方式有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”、“一种可能的实现方式”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在 一个或多个实施例中。It should also be understood that references throughout this specification to "one embodiment,""anembodiment," and "a possible implementation" mean that specific features, structures, or characteristics related to the embodiment or implementation are included herein. In at least one embodiment of the application. Therefore, “in one embodiment” or “in an embodiment” or “a possible implementation” appearing in various places throughout this specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
以上描述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above descriptions are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. within.

Claims (24)

  1. 一种业务连接的标识方法,其特征在于,所述方法包括:A method for identifying business connections, characterized in that the method includes:
    第一通信装置接收第二通信装置发布的第一路由,所述第一路由用于建立所述第一通信装置与所述第二通信装置之间的业务连接,所述第一路由包括所述第二通信装置的节点信息;The first communication device receives the first route published by the second communication device. The first route is used to establish a service connection between the first communication device and the second communication device. The first route includes the Node information of the second communication device;
    所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第一流标识FID,所述第一FID用于标识所述第一通信装置向所述第二通信装置发送的第一业务流,所述第一FID包括所述第一通信装置的节点信息和所述第二通信装置的节点信息。The first communication device generates a first flow identifier FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route. The FID is used to identify the first service flow sent by the first communication device to the second communication device, and the first FID includes node information of the first communication device and node information of the second communication device.
  2. 根据权利要求1所述的方法,其特征在于,所述业务连接为虚拟专用网络VPN,所述第一路由还包括所述VPN的标识;所述第一FID还包括所述VPN的标识。The method according to claim 1, wherein the service connection is a virtual private network (VPN), the first route further includes an identifier of the VPN; and the first FID further includes an identifier of the VPN.
  3. 根据权利要求1所述的方法,其特征在于,所述业务连接为VPN的子业务连接,所述子业务连接用于传输所述VPN的子业务,所述第一路由还包括所述VPN的标识,所述第一FID还包括所述VPN的标识和所述子业务的标识。The method according to claim 1, characterized in that the service connection is a sub-service connection of the VPN, the sub-service connection is used to transmit the sub-service of the VPN, and the first route also includes a sub-service connection of the VPN. The first FID also includes the identifier of the VPN and the identifier of the sub-service.
  4. 根据权利要求3所述的方法,其特征在于,所述第一路由还包括所述子业务的标识。The method according to claim 3, characterized in that the first route further includes an identifier of the sub-service.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一通信装置的地址为第一互联网协议第六版IPv6地址,所述第一IPv6地址包括所述第一通信装置的节点信息,所述第一路由包括所述第二通信装置的第二IPv6地址,所述第二IPv6地址包括所述第二通信装置的节点信息。The method according to any one of claims 1 to 4, characterized in that the address of the first communication device is a first Internet Protocol version 6 IPv6 address, and the first IPv6 address includes the first communication device The node information of the first route includes the second IPv6 address of the second communication device, and the second IPv6 address includes the node information of the second communication device.
  6. 根据权利要求5所述的方法,其特征在于,所述第二IPv6地址为基于IPv6的段路由SRv6VPN段路由标识SID。The method of claim 5, wherein the second IPv6 address is an IPv6-based segment routing SRv6VPN segment routing identifier SID.
  7. 根据权利要求6所述的方法,其特征在于,所述SRv6 VPN SID的位置标识字段用于指示所述第二通信装置的节点信息,所述SRv6 VPN SID的功能字段用于指示VPN的标识。The method according to claim 6, characterized in that the location identification field of the SRv6 VPN SID is used to indicate the node information of the second communication device, and the function field of the SRv6 VPN SID is used to indicate the identification of the VPN.
  8. 根据权利要求7所述的方法,其特征在于,所述SRv6 VPN SID的参数字段用于指示所述VPN的子业务的标识。The method according to claim 7, characterized in that the parameter field of the SRv6 VPN SID is used to indicate the identity of the sub-service of the VPN.
  9. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一路由包括虚拟扩展局域网VXLAN网络标识符VNI。The method according to any one of claims 1 to 5, characterized in that the first route includes a virtual extended local area network (VXLAN) network identifier VNI.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述第一通信装置生成所述第一流 标识FID之后,还包括:The method according to any one of claims 1-9, characterized in that the first communication device generates the first stream After identifying the FID, it also includes:
    所述第一通信装置向所述第二通信装置发送第一业务报文,所述第一业务报文属于所述第一业务流,所述第一业务报文包括所述第一FID。The first communication device sends a first service message to the second communication device, the first service message belongs to the first service flow, and the first service message includes the first FID.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述第一通信装置生成所述第一流标识FID之后,还包括:The method according to any one of claims 1 to 10, characterized in that, after the first communication device generates the first flow identifier FID, it further includes:
    所述第一通信装置基于所述第一FID对所述第一业务流进行流量管理。The first communication device performs traffic management on the first service flow based on the first FID.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-11, characterized in that the method further includes:
    所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第二FID,所述第二FID用于标识所述第二通信装置向所述第一通信装置发送的第二业务流,所述第二FID包括所述第一通信装置的节点信息和所述第二通信装置的节点信息。The first communication device generates a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device.
  13. 根据权利要求12所述的方法,其特征在于,所述第一通信装置生成所述第二FID之后,还包括:The method according to claim 12, characterized in that after the first communication device generates the second FID, it further includes:
    所述第一通信装置接收所述第二通信装置发送的第二业务报文,所述第二业务报文属于所述第二业务流,所述第二业务报文包括所述第二FID。The first communication device receives a second service message sent by the second communication device, the second service message belongs to the second service flow, and the second service message includes the second FID.
  14. 根据权利要求12或13所述的方法,其特征在于,所述第一通信装置生成所述第二FID之后,还包括:The method according to claim 12 or 13, characterized in that after the first communication device generates the second FID, it further includes:
    所述第一通信装置基于所述第二FID对所述第二业务流进行流量管理。The first communication device performs traffic management on the second service flow based on the second FID.
  15. 根据权利要求12所述的方法,其特征在于,所述第一通信装置生成所述第二FID之后,还包括:The method according to claim 12, characterized in that after the first communication device generates the second FID, it further includes:
    所述第一通信装置接收所述第二通信装置发送的第二业务报文,所述第二业务报文属于所述第二业务流,所述第二业务报文包括所述第二通信装置的节点信息;The first communication device receives a second service message sent by the second communication device, the second service message belongs to the second service flow, and the second service message includes the second communication device node information;
    所述第一通信装置基于所述第二通信装置的节点信息与所述第二FID的映射关系确定所述第二FID,基于所述第二FID对所述第二业务流进行流量管理。The first communication device determines the second FID based on the mapping relationship between the node information of the second communication device and the second FID, and performs traffic management on the second service flow based on the second FID.
  16. 一种业务连接的标识方法,其特征在于,所述方法包括:A method for identifying business connections, characterized in that the method includes:
    第一通信装置接收第二通信装置发布的第一路由,所述第一路由用于建立所述第一通信装置与所述第二通信装置之间的业务连接,所述第一路由包括所述第二通信装置的节点信息;The first communication device receives the first route published by the second communication device. The first route is used to establish a service connection between the first communication device and the second communication device. The first route includes the Node information of the second communication device;
    所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第一流标识FID,所述第一FID用于标识所述第一通信装置向所述第二通信装置发送的第一业务流,所述第一FID包括所述第一通信装置的节点信息和所述第二通信装置的节点信息;The first communication device generates a first flow identifier FID corresponding to the service connection according to the node information of the first communication device and the node information of the second communication device carried in the first route. The FID is used to identify the first service flow sent by the first communication device to the second communication device, where the first FID includes node information of the first communication device and node information of the second communication device;
    所述第二通信装置接收第一通信装置发布的第二路由,所述第二路由用于建立所述业务 连接,所述第二路由包括所述第一通信装置的节点信息;The second communication device receives the second route published by the first communication device, and the second route is used to establish the service connection, the second route includes node information of the first communication device;
    所述第二通信装置根据所述第二通信装置的节点信息和所述第二路由中携带的所述第一通信装置的节点信息生成所述第一FID。The second communication device generates the first FID based on the node information of the second communication device and the node information of the first communication device carried in the second route.
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:The method of claim 16, further comprising:
    所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第二FID,所述第二FID用于标识所述第二通信装置向所述第一通信装置发送的第二业务流,所述第二FID包括所述第一通信装置的节点信息和所述第二通信装置的节点信息;The first communication device generates a second FID corresponding to the service connection based on the node information of the first communication device and the node information of the second communication device carried in the first route. The second FID Used to identify the second service flow sent by the second communication device to the first communication device, the second FID includes node information of the first communication device and node information of the second communication device;
    所述第二通信装置根据所述第二通信装置的节点信息和所述第二路由中携带的所述第一通信装置的节点信息生成所述第二FID。The second communication device generates the second FID based on the node information of the second communication device and the node information of the first communication device carried in the second route.
  18. 根据权利要求16或17所述的方法,其特征在于,所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第一流标识FID之后,还包括:The method according to claim 16 or 17, characterized in that the first communication device generates a message based on the node information of the first communication device and the node information of the second communication device carried in the first route. After the first flow identifier FID corresponding to the service connection, it also includes:
    所述第一通信装置基于所述第一FID对所述第一业务流进行流量管理;The first communication device performs traffic management on the first service flow based on the first FID;
    所述第二通信装置根据所述第二通信装置的节点信息和所述第二路由中携带的所述第一通信装置的节点信息生成所述第一FID之后,还包括:After the second communication device generates the first FID based on the node information of the second communication device and the node information of the first communication device carried in the second route, it also includes:
    所述第二通信装置基于所述第一FID对所述第一业务流进行流量管理。The second communication device performs traffic management on the first service flow based on the first FID.
  19. 根据权利要求17所述的方法,其特征在于,所述第一通信装置根据所述第一通信装置的节点信息和所述第一路由中携带的所述第二通信装置的节点信息生成所述业务连接对应的第二FID之后,还包括:The method according to claim 17, characterized in that the first communication device generates the node information of the first communication device and the node information of the second communication device carried in the first route. After the second FID corresponding to the business connection, it also includes:
    所述第一通信装置基于所述第二FID对所述第二业务流进行流量管理;The first communication device performs traffic management on the second service flow based on the second FID;
    所述第二通信装置根据所述第二通信装置的节点信息和所述第二路由中携带的所述第一通信装置的节点信息生成所述第二FID之后,还包括:After the second communication device generates the second FID based on the node information of the second communication device and the node information of the first communication device carried in the second route, it also includes:
    所述第二通信装置基于所述第二FID对所述第二业务流进行流量管理。The second communication device performs traffic management on the second service flow based on the second FID.
  20. 一种通信装置,其特征在于,包括:A communication device, characterized by including:
    收发模块,用于执行权利要求1-15任一项所述的方法中由所述通信装置所执行的接收和/或发送相关的操作;A transceiver module, configured to perform reception and/or transmission-related operations performed by the communication device in the method according to any one of claims 1-15;
    处理模块,用于执行权利要求1-15任一项所述的方法中由所述通信装置所执行的接收和/或发送相关的操作之外的其它操作。A processing module configured to perform other operations other than the reception and/or transmission related operations performed by the communication device in the method according to any one of claims 1-15.
  21. 一种通信装置,其特征在于,所述通信装置包括:处理器,所述处理器与存储器耦合,所述存储器中存储有至少一条程序指令或代码,所述至少一条程序指令或代码由所述处理器加载并执行,以使所述通信装置实现权利要求1-15任一项所述的业务连接的标识方法。A communication device, characterized in that the communication device includes: a processor, the processor is coupled to a memory, and at least one program instruction or code is stored in the memory, and the at least one program instruction or code is composed of the The processor loads and executes, so that the communication device implements the service connection identification method described in any one of claims 1-15.
  22. 一种通信系统,其特征在于,所述通信系统包括第一通信装置和第二通信装置; A communication system, characterized in that the communication system includes a first communication device and a second communication device;
    所述第一通信装置,用于执行权利要求16-19中任一项所述的第一通信装置所执行的操作;The first communication device is used to perform the operations performed by the first communication device according to any one of claims 16-19;
    所述第二通信装置,用于执行权利要求16-19中任一项所述的第二通信装置所执行的操作。The second communication device is configured to perform operations performed by the second communication device according to any one of claims 16-19.
  23. 一种计算机可读存储介质,其特征在于,所述计算机存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行,以使计算机实现权利要求1-15任一项所述的业务连接的标识方法。A computer-readable storage medium, characterized in that at least one instruction is stored in the computer storage medium, and the at least one instruction is loaded and executed by a processor, so that the computer implements any one of claims 1-15 The identification method of the business connection.
  24. 一种计算机程序产品,其特征在于,所述计算机程序产品包括:计算机程序代码,所述计算机程序代码由计算机加载并执行,以使所述计算机实现权利要求1-15中任一项所述的业务连接的标识方法。 A computer program product, characterized in that the computer program product includes: computer program code, the computer program code is loaded and executed by a computer, so that the computer implements any one of claims 1-15 The identification method of the business connection.
PCT/CN2023/081997 2022-03-21 2023-03-16 Method, apparatus and system for identifying service connection, and storage medium WO2023179457A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210281721 2022-03-21
CN202210281721.9 2022-03-21
CN202210575954.XA CN116828024A (en) 2022-03-21 2022-05-24 Service connection identification method, device, system and storage medium
CN202210575954.X 2022-05-24

Publications (1)

Publication Number Publication Date
WO2023179457A1 true WO2023179457A1 (en) 2023-09-28

Family

ID=88099876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081997 WO2023179457A1 (en) 2022-03-21 2023-03-16 Method, apparatus and system for identifying service connection, and storage medium

Country Status (1)

Country Link
WO (1) WO2023179457A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155826A (en) * 2023-10-31 2023-12-01 新华三技术有限公司 Network traffic detection method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200329129A1 (en) * 2017-12-27 2020-10-15 Huawei Technologies Co., Ltd. Packet Processing Method, Network Node, and System
CN112448887A (en) * 2019-09-04 2021-03-05 华为技术有限公司 Segmented routing method and device
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection
CN113949650A (en) * 2020-07-17 2022-01-18 华为技术有限公司 Stream following detection method and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200329129A1 (en) * 2017-12-27 2020-10-15 Huawei Technologies Co., Ltd. Packet Processing Method, Network Node, and System
CN112448887A (en) * 2019-09-04 2021-03-05 华为技术有限公司 Segmented routing method and device
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection
CN113949650A (en) * 2020-07-17 2022-01-18 华为技术有限公司 Stream following detection method and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155826A (en) * 2023-10-31 2023-12-01 新华三技术有限公司 Network traffic detection method and device, electronic equipment and storage medium
CN117155826B (en) * 2023-10-31 2024-02-23 新华三技术有限公司 Network traffic detection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115362662B (en) Traffic management for intelligent network interface cards
US8913613B2 (en) Method and system for classification and management of inter-blade network traffic in a blade server
US20210320876A1 (en) Mechanism to coordinate end to end quality of service between network nodes and service provider core
WO2021135468A1 (en) Segment identifier determining method and device
WO2022001835A1 (en) Method and apparatus for sending message, and network device, system and storage medium
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN114244906B (en) Data traffic distribution method, device, equipment and medium
CN114553760B (en) Path weight distribution method and device
CN108289061B (en) Service chain topology system based on SDN
CN106998347A (en) The apparatus and method of server virtualization network share
WO2019033964A1 (en) Method for transmitting packet, forwarding device, controller, and system
WO2023179457A1 (en) Method, apparatus and system for identifying service connection, and storage medium
WO2022068744A1 (en) Method for obtaining message header information and generating message, device, and storage medium
WO2022160665A1 (en) Packet forwarding method, packet processing method, and device
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN116828024A (en) Service connection identification method, device, system and storage medium
WO2022042403A1 (en) Method for generating routing information, method for sending location information, method for forwarding message, and device
WO2022111666A1 (en) Route advertisement method, apparatus, and system
CN114513485A (en) Method, device, equipment and system for obtaining mapping rule and readable storage medium
US11743180B2 (en) System and method for routing traffic onto an MPLS network
WO2024027194A1 (en) Message forwarding method, device and system, and storage medium
CN115242699A (en) Message transmission method, slice generation method, device and system
CN114221895A (en) Data transmission method, device and network equipment
WO2022194193A1 (en) Method and apparatus for acquiring path
US20180367446A1 (en) Dual network interface implementation in multipath networking

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23773705

Country of ref document: EP

Kind code of ref document: A1