WO2022088685A1 - Semantic name acquisition method and apparatus, device, and storage medium - Google Patents

Semantic name acquisition method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2022088685A1
WO2022088685A1 PCT/CN2021/099024 CN2021099024W WO2022088685A1 WO 2022088685 A1 WO2022088685 A1 WO 2022088685A1 CN 2021099024 W CN2021099024 W CN 2021099024W WO 2022088685 A1 WO2022088685 A1 WO 2022088685A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
semantic name
segment identifier
semantic
network
Prior art date
Application number
PCT/CN2021/099024
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022088685A1 publication Critical patent/WO2022088685A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method, apparatus, device, and storage medium for acquiring a semantic name.
  • a routing protocol is run to dynamically assign a segment identification (SID) to each node or port in the network, Each SID is used to identify a node or a port.
  • the controller collects the information of each node or port in the network (including the SID, neighbor relationship and other information of each node or port), establishes the network topology according to the collected information, calculates and generates the forwarding policy, and sends the forwarding policy to a certain device On or on multiple devices, each device forwards packets according to the forwarding policy.
  • the embodiments of the present application disclose a method, apparatus, device, system and storage medium for acquiring a semantic name, which are convenient for managing and operating network devices according to the semantic name.
  • the present application provides a method for acquiring a semantic name.
  • the method includes: receiving a message sent by a first network device, where the message includes a segment identifier and a semantic name of an associated network device, wherein the semantic name is used for Indicate the meaning of the segment identifier; save the association relationship between the semantic name and the segment identifier.
  • the method can be applied to a target device.
  • the target device receives a message sent by the first network device, and the message includes a segment identifier and a semantic name associated with the network device, and stores the association relationship between the semantic name and the segment identifier.
  • the semantic name is used to indicate the meaning of the segment identifier, which is convenient for the target device to manage or use the segment identifier subsequently according to the semantic name.
  • the above-mentioned associated network device is a first network device or a third network device.
  • the target device receives the message sent by the first network device, and the message includes the segment identifier and semantic name of the associated network device, where the associated device may be the first network device, that is, the first network device sends its own segment identifier and corresponding
  • the associated device may also be a third network device, that is, the first network device sends the segment identifiers and corresponding semantic names of other network devices.
  • the method further includes: displaying the association relationship between the semantic name and the segment identifier.
  • the target device can also display the relationship between the semantic name and the segment identifier through a graphical user interface, so that the network administrator can manage the segment identifier according to the relationship.
  • the semantic name is used to indicate that the segment identifier is used to go to the second network device
  • the method further includes: displaying a service view, wherein the service view is used for displaying Topological relationship between the associated network device and the second network device.
  • the target device can display the topological relationship between the associated device and the second network device in the service view, so that the network administrator can manage the segment identifier according to the associated relationship.
  • the method further includes: generating a forwarding policy, where the forwarding policy includes the segment identifier, wherein the forwarding policy is obtained according to the semantic name; sending the A forwarding policy, where the forwarding policy is used to indicate the use of the segment identifier.
  • the target device When the target device is a control device, the target device can generate a forwarding policy according to the semantic name, and send the forwarding policy to the underlying network. This makes it more convenient to generate forwarding policies.
  • an embodiment of the present application provides a method for acquiring a semantic name. Based on the description of the first network device, the method includes: the first network device sends a first packet to a target device, where the first packet includes an associated network The segment identifier and semantic name of the device, wherein the semantic name is used to indicate the meaning of the segment identifier.
  • the first network device sends a first packet to the target device, where the first packet includes a segment identifier and a semantic name of the associated network device, where the semantic name is used to indicate the meaning of the segment identifier, specifically, the semantic name may indicate the segment identifier It can also indicate that the segment identifier goes to the network device, and can also indicate that the segment identifier goes to another segment identifier, and so on.
  • the target device may be a control device or a third network device, which is called a third network device here for the purpose of distinguishing it from other network devices.
  • the associated network device is the first network device or the second network device.
  • the associated network device includes a second network device, and the method further includes: receiving a second packet sent by the second network device, where the second packet includes the segment identifier and the semantic name.
  • the first network device When the target device is a control device and the associated network device is a second network device, the first network device also needs to receive a second packet sent by the second network device, and the second packet includes the segment of the second network device Identification and semantic names.
  • the first message includes a segment identification type-length-value TLV field
  • the TLV field includes a sub-TLV
  • the sub-TLV includes the semantic name
  • the first message includes a segment identifier and a semantic name, wherein the segment identifier is a type-length-value TLV field, the TLV field includes a sub-TLV, the value in the sub-TLV is the semantic name, and the length in the sub-TLV is the length of the semantic name. .
  • the first packet includes a border gateway protocol packet or an interior gateway protocol packet.
  • the first network device sends a first packet to the third network device. If the two network devices belong to the same autonomous domain, the first packet is an interior gateway protocol packet. If If the two network devices do not belong to the same autonomous domain, the first packet is a BGP packet.
  • the method is applied in a segment routing network.
  • a segment routing network for example, an SRv6 network or an SR-MPLS network.
  • an embodiment of the present application provides an apparatus for acquiring a semantic name, including a receiving unit configured to receive a message sent by a first network device, where the message includes a segment identifier and a semantic name of the associated network device, wherein, The semantic name is used to indicate the meaning of the segment identifier; the storage unit is used to store the association relationship between the semantic name and the segment identifier.
  • the apparatus further includes: a display unit, configured to display the association relationship between the semantic name and the segment identifier.
  • the semantic name is used to indicate that the segment identifier is used to go to the second network device
  • the display unit is further configured to display a service view, wherein the service view uses for displaying the topological relationship between the associated network device and the second network device.
  • the apparatus further includes: a generating unit, configured to generate a forwarding policy, where the forwarding policy includes the segment identifier, wherein the forwarding policy is obtained according to the semantic name
  • the sending unit is configured to send the forwarding policy, where the forwarding policy is used to indicate the use of the segment identifier.
  • Each functional unit in the apparatus of the third aspect is used to implement the method described in the first aspect and any implementation manner of the first aspect.
  • an embodiment of the present application further provides an apparatus for acquiring a semantic name, including: a sending unit configured to send a first message to a target device, where the first message includes a segment identifier and a semantic name of an associated network device , wherein the semantic name is used to indicate the meaning of the segment identifier.
  • the apparatus further includes a receiving unit, the associated network device includes a second network device, and the receiving unit is configured to receive a second message sent by the second network device The second message includes the segment identifier and the semantic name.
  • the first message includes a segment identification type-length-value TLV field
  • the TLV field includes a sub-TLV
  • the sub-TLV includes the semantic name
  • the packet includes a border gateway protocol packet or an interior gateway protocol packet.
  • the apparatus is applied in a segment routing network.
  • Each functional unit in the apparatus of the fourth aspect is used to implement the method described in the second aspect and any implementation manner of the second aspect.
  • an embodiment of the present application provides a device for acquiring a semantic name, including a memory and a processor, where the memory is used for storing instructions, and the processor is used for calling the instructions stored in the memory to execute the first aspect or A method as recited in any possible embodiment of the first aspect.
  • an embodiment of the present application provides yet another device for acquiring semantic names, including a memory and a processor, where the memory is used for storing instructions, and the processor is used for calling the instructions stored in the memory to execute the second aspect or the method described in any possible embodiment of the second aspect.
  • an embodiment of the present application provides a computer storage medium, including program instructions, which, when the program instructions are run on a computer, cause the computer to execute the method described in the first aspect or any implementation manner of the first aspect .
  • an embodiment of the present application provides a computer storage medium, including program instructions, which, when the program instructions are run on a computer, cause the computer to execute the method described in the second aspect or any implementation manner of the second aspect .
  • an embodiment of the present application provides a computer program product, the computer program product includes program instructions, and when the computer program product is executed by a first semantic name obtaining device, the first semantic name obtaining device executes the aforementioned first semantic name obtaining device. the method described in the aspect.
  • the computer program product may be a software installation package, and if the method provided by any of the possible designs of the first aspect needs to be used, the computer program product may be downloaded and executed on the first semantic name acquisition device A program product to implement the method of the first aspect or any possible implementation of the first aspect.
  • the embodiments of the present application provide yet another computer program product
  • the computer program product includes program instructions, and when the computer program product is executed by a second semantic name obtaining device, the second semantic name obtaining device executes the aforementioned first The method described in the second aspect.
  • the computer program product may be a software installation package, and if the method provided by any of the possible designs of the second aspect needs to be used, the computer program product may be downloaded and executed on the second semantic name acquisition device A program product to implement the method of the second aspect or any possible implementation of the second aspect.
  • an embodiment of the present application provides a system, where the system includes a target device and a first network device, wherein the target device is the semantics described in the first aspect or any possible implementation manner of the first aspect
  • the target device is the semantics described in the first aspect or any possible implementation manner of the first aspect
  • a name obtaining apparatus where the first network device is the semantic name obtaining apparatus described in the second aspect or any possible implementation manner of the second aspect.
  • Embodiments of the present application provide a method, apparatus, device, and storage medium for obtaining a semantic name, wherein the method includes: a first network device obtains a semantic name of a segment identifier, and the first network device retrieves a segment identifier and a corresponding semantic name. The message is sent to the target device, and the target device receives and saves the segment identifier and the corresponding semantic name.
  • the target device can also display the association relationship between the segment identifier and the semantic name in the service view, generate a forwarding policy according to the semantic name, and send the forwarding policy to the underlying network.
  • the forwarding policy forwards data packets.
  • by configuring a semantic name for the segment identifier it is convenient to manage the network device, and in an actual scenario application, it is convenient to perform related operations and related processing on the network device according to the semantic name.
  • FIG. 1 is a schematic diagram of a software-defined network architecture provided by the present application.
  • FIG. 2 is an example diagram of a business chain scenario provided by the present application
  • FIG. 3 is a schematic flowchart of a method for obtaining a semantic name provided by the present application
  • FIG. 6 is a schematic diagram of displaying a semantic name in a business view provided by this application.
  • FIG. 7 is a schematic diagram of displaying another semantic name in a business view provided by the present application.
  • FIG. 8 is a schematic diagram of a forwarding strategy provided by the present application.
  • FIG. 9 is a schematic diagram of a segment list sequence provided by the application.
  • FIG. 10 is a schematic flowchart of a method for obtaining a semantic name provided by the application
  • FIG. 11 is a schematic diagram of a sub-TLV field provided by this application.
  • FIG. 13 is an example diagram of an application scenario provided by this application.
  • 15 is a schematic structural diagram of a device for obtaining semantic names provided by the application.
  • 16 is a schematic structural diagram of another semantic name acquisition device provided by the application.
  • FIG. 17 is a schematic structural diagram of a network device provided by the application.
  • FIG. 19 is a schematic structural diagram of a system provided by this application.
  • Routing protocols can be divided into interior gateway protocol (IGP) and exterior gateway protocol (EGP).
  • IGP is generally a routing protocol used in an autonomous system (AS), the main purpose is to discover and calculate routing information in the self-made system, and exchange routing information within the same autonomous system, such as open shortest path first ( The open shortest path first, OSPF) protocol and the intermediate system-to-intermediate system (ISIS) protocol are all interior gateway routing protocols.
  • AS autonomous system
  • OSPF open shortest path first
  • ISIS intermediate system-to-intermediate system
  • EGP is generally used between different autonomous systems to dynamically exchange routing information between autonomous systems.
  • the border gateway protocol BGP is the most commonly used external gateway routing protocol, commonly used in Internet gateways between.
  • SDN Software-defined network
  • the SDN system architecture enables ordinary programmers to use general-purpose software on the general-purpose operating system of a general-purpose server to define network functions and make the network programmable. . It separates the control plane of the network from the data forwarding plane, thereby realizing programmability through the centralized control area, controlling the underlying hardware, and realizing flexible on-demand allocation of network resources.
  • the SDN network architecture is divided into three layers, as shown in FIG. 1 .
  • FIG. 1 is a schematic diagram of an SDN system architecture provided by this application.
  • the architecture 100 includes an application layer, a control layer, and a forwarding layer.
  • the application layer is the upper-layer application program that reflects the user's intention, including various services and applications;
  • the control layer is responsible for processing the data arrangement of the data forwarding plane, maintaining network topology, status information, etc., including network topology collection, routing calculation, and forwarding Generation and distribution of policies, network management and control, etc.
  • the forwarding layer is responsible for traffic forwarding and policy enforcement.
  • the control layer is the control center of the entire system architecture, the entity implementation of the control layer is the controller, and the controller is also the core component of the system architecture.
  • the control layer is connected to the application layer through the northbound interface, and is connected to the forwarding layer through the southbound interface.
  • the controller sends the calculated forwarding strategy to the forwarder of the forwarding layer through the southbound protocol, and the forwarder forwards the packets according to the forwarding strategy. .
  • Segment routing is a protocol designed based on the concept of source routing to control the forwarding of data packets in the network.
  • SR divides the network path into segments, and assigns segment IDs (Segment IDs, SIDs) to these segments and network nodes.
  • SIDs Segment IDs
  • SID List also known in SR-MPLS
  • label stack SID List
  • SID List can indicate a forwarding path.
  • the data package can be compared to luggage, and SR can be compared to the label attached to the luggage. If you want to send the luggage from area A to area D, and pass through area B and area C, you can send the luggage to area A at the origin. Put a label "first to B area, then to C area, and finally to D area", so that each area only needs to identify the label on the luggage, and forward the luggage from one area to another according to the label of the bag. Can.
  • the source node adds a label to the data packet, and the intermediate node can forward it to the next node according to the label until the data packet reaches the destination node.
  • Segment routing based on Internet Protocol Version 6 (IPv6): refers to the application of SR technology in IPv6 networks.
  • FIG. 2 is an example diagram of a service chain scenario provided by this application.
  • the service chain includes router R1, provider edge routers (Provider Edge, PE) PE1, PE2, PE3 and other devices, wherein router R1 The value-added service device VAS1 and the value-added service device VAS2 are mounted on it, and the service chain requires that the forwarding path of the packets starts from the router PE1, first passes through the value-added service device VAS1, and then passes through the value-added service device VAS2, and forwards them to the router PE3.
  • Provide Edge Provided Edge
  • the controller can only find the port information of the R1 device in the network link status information first, and then check the R1 device's port information separately by checking the network link status information.
  • the SIDs of the two ports determine which is the port connected to the VAS1 device and which is the port connected to the VAS2 device, and then select the SID of the port connected to the VAS1 device, the SID of the port connected to the VAS2 device, or respectively. Copy the SID of the port connected to the VAS1 device and the SID of the port connected to the VAS2 device to the designated location of the arrangement in order to realize the arrangement of the service chain.
  • the present application proposes a method for acquiring semantic names, which can be applied to segment routing (SR) networks, and can also be applied to other similar networks.
  • SR segment routing
  • FIG. 3 is a schematic flowchart of a method for obtaining a semantic name provided by the present application. The method includes but is not limited to the following descriptions of S101 to S103 .
  • the first network device acquires the semantic name corresponding to the segment identifier of the associated network device.
  • the associated network device is the first network device, that is, the first network device obtains a semantic name corresponding to its own segment identifier.
  • the associated network device is the second network device, that is, the first network device obtains the segment identifier of the second network device and its corresponding semantic name. Specifically, the second network device first obtains the semantic name of its own segment identifier, and then the second network device sends its own segment identifier and semantic name to the first network device, so that the first network device obtains the segment of the second network device. Identification and semantic names.
  • SIDs include but are not limited to types such as node SIDs, proxy SIDs, binding SIDs, and the like. Wherein, End SID can be used to identify a certain destination address prefix in the network, for example, see the schematic diagram shown in FIG. 4 , FIG. 4 is a schematic diagram of various SID types provided by this application, (a) network device in FIG. 4 2 are connected to network device 1 and network device 3 respectively.
  • SID A:: of End SID type can be used to identify network device 1, SID B:: to identify network device 2, and SID C:: to identify network device 3; End.X SID can Used to identify a link in the network, for example, referring to the schematic diagram shown in (b) in Figure 4, the network device is a three-layer cross node, and the SID A::1 of the End.X SID type can be used, respectively. SID A::2, SID A::3 identify the corresponding link.
  • the binding SID type can be used to identify a certain tunnel in the network. For example, see the schematic diagram shown in (c) of Figure 4, where the autonomous system boundary router (ASBR) ASBR2, network device P2, network device PE2 Tunnel 1 is formed.
  • ASBR autonomous system boundary router
  • Network equipment ASBR3, network equipment P3, and network equipment PE3 form tunnel 2.
  • the SID of the binding SID type can be used to identify the entire tunnel 1.
  • the proxy SID type can include End.AD SID, End.AS SID, etc.
  • End.AS SID is a static SID, which is generally set manually and statically
  • End.AD SID is a dynamic SID, which is automatically generated after the routing protocol runs.
  • the proxy SID is used to provide a proxy for an object to control other objects' access to the object.
  • SID1 and SID2 on router R1 are proxy SID types.
  • One proxy SID is to provide a proxy for the value-added device VAS1, and the other proxy SID is to provide a proxy for the value-added device VAS2.
  • use SID1 of the proxy SID type to identify the proxy port connected to the device VAS1 on the router R1, and use the SID2 of the proxy SID type to identify the proxy port connected to the device VAS2.
  • the semantic name is used to indicate the meaning of the segment identifier, specifically, the semantic name can be used to indicate the purpose of the segment identifier, the function of the segment identifier, which network device the segment identifier goes to, which SID the segment identifier goes to, and so on.
  • the semantic name SID-of-VAS1 of SID1 is used to indicate that SID1 is used to go to VAS1; the semantic name SID-of-VAS2 of SID2 indicates that SID2 is going to the device VAS2.
  • VAS1 Devices and VAS2 devices may be firewalls, accelerators, filters, etc.
  • semantic names there are several ways to obtain semantic names. For example, static configuration may be performed manually on the first network device to configure a semantic name for the segment identifier.
  • the first network device can also be based on the relevant information (the relevant information can be the SID, loopback address, port number, virtual local area network to which the first network device belongs, network devices adjacent to the segment identifier, and adjacent segment identifiers. one or more of SIDs, etc.) are dynamically generated. For example, in the example shown in FIG.
  • the first network device is a router R1, and the router R1 generates a semantic name according to the network device adjacent to the segment identifier and a preset format, and the preset format is "SID-of-xxx", Among them, "xxx" is a network device adjacent to the segment identifier, and the semantic names "SID-of-VAS1" and "SID-of-VAS2" are generated.
  • the first network device may obtain configuration information sent by the controller or the management device, where the configuration information includes a segment identifier and a semantic name, so that a semantic name is configured for the segment identifier.
  • each device in the network Before configuring the semantic name for the SID, you may also perform data configuration on each device in the network, such as routing configuration for the routers in the network, including configuring the router's interface address, loopback address, etc.; and then run the routing protocol for Each node or port in the network is assigned a SID, thereby establishing a neighbor relationship between each node in the network.
  • the first network device sends a packet to the target device, where the packet includes a segment identifier and a semantic name of the associated network device.
  • the associated network device here may be the above-mentioned first network device or the above-mentioned second network device. That is, the first network device may send its own segment identifier and its corresponding semantic name to the target device, and may also send the segment identifier and its corresponding semantic name of other devices to the target device.
  • the target device may be other network devices in the same IGP or BGP network as the first network device.
  • the target device may also be a control device.
  • the first network device After acquiring the semantic name of the segment identifier, the first network device sends the packet to the target device.
  • the target device receives the packet sent by the first network device, where the packet includes the segment identifier of the first network device. and the semantic name, which is used to indicate the meaning of the segment ID.
  • the message further includes link state information of the network, where the link state information of the network includes information such as the capability of each node in the network, the neighbor relationship, and the SID of each device.
  • border gateway protocol link-state BGP-LS
  • BGP-LS border gateway protocol link-state
  • BGP-LS mainly includes three routes, which are used to carry nodes respectively. , link and route prefix information, the three routes cooperate with each other to complete the transmission of link state information.
  • the collected link state information is abstracted into nodes, links, and prefixes through BGP-LS and reported to the controller.
  • the first network device may send the segment identifier and its corresponding semantic name to the target device through a BGP-LS packet.
  • the first network device may also send the segment identifier and its corresponding semantic name to the target device through a PCEP protocol message. This application does not limit the form in which the first network device sends the segment identifier and its corresponding semantic name to the target device.
  • the target device stores the association relationship between the semantic name of the associated network device and the segment identifier.
  • the target device saves the received association relationship between the semantic name of the associated network device and the segment identifier.
  • the first network device obtains the semantic name corresponding to the segment identifier of the associated device, and the semantic name is used to indicate the meaning of the segment identifier.
  • the network device sends the message to the target device, and the target device receives the message sent by the first network device.
  • the message includes the segment identifier and semantic name of the associated network device, and the association between the segment identifier and semantic name of the associated network device will be saved. relation.
  • the semantic name can be configured by manual static configuration or dynamically generated by the associated network device, or the controller and the management device can send configuration information to the associated network device, and the associated network device can configure the semantic name according to the configuration information.
  • the semantic name is configured by the method, and the semantic name is configured for the segment identifier, so that the function, function or destination of the segment identifier can be clearly known, and it is convenient to operate the segment identifier according to the semantic name.
  • FIG. 5 is a schematic flowchart of a method for acquiring semantic names provided by the present application.
  • the method includes but is not limited to the following descriptions of S201 to S207 .
  • the first network device acquires the semantic name corresponding to the segment identifier of the associated network device.
  • the first network device sends a packet to the target device, where the packet includes a segment identifier and a semantic name of the associated network device.
  • the target device stores the association relationship between the semantic name of the associated network device and the segment identifier.
  • the target device displays the association relationship between the semantic name of the associated network device and the segment identifier.
  • the target device displays the relationship between the semantic name and the segment ID of the associated network device through the graphical user interface according to the relationship between the segment ID and the semantic name in the received message, and the network administrator can intuitively see the semantic name corresponding to the SID. , obtain the meaning of the SID according to the semantic name, etc.
  • the target device restores the network topology according to the association relationship between the segment identifier and the semantic name, and the target device displays the restored network topology in the service view.
  • the associated network device is router R1
  • the network topology map restored by the controller can be the schematic diagram shown in FIG. 6, that is, the semantic name of SID1 is displayed on one end of router R1, and the semantic name of SID1 is displayed on the other end of router R1.
  • the semantic name of SID2 is displayed on the display, and network administrators can know the meaning of SID according to the displayed semantic name.
  • the semantic name is used to indicate that the segment identifier is used to go to the third network device
  • the control device restores the network topology according to the association relationship between the segment identifier and the semantic name, and displays the associated network device and the third network in the service view.
  • Topological relationship between devices For example, in the example of FIG. 2 , the segment identifier SID1 goes to the value-added device VAS1 (third network device), and the segment identifier SID2 goes to the value-added device VAS2 (third network device), and the network topology in the service view can be as shown in FIG. 7 .
  • each dot represents a SID
  • the name of each SID and the semantic name corresponding to each SID are displayed
  • the relationship between SID1 and value-added equipment VAS1 is displayed
  • the manner of displaying the semantic name of the SID in the business view of the controller may also be other manners, which are not specifically limited in this application.
  • the target device generates a forwarding policy.
  • the target device generates a forwarding policy, and the forwarding policy includes the segment identifier of the associated network device, wherein the forwarding policy is obtained according to the semantic name.
  • the target device is usually a control device, such as a controller.
  • the network administrator searches according to the semantics, the semantic name and the corresponding segment identifier are displayed in the retrieval result, the segment identifier to be used is determined, the control device receives the user's selection (or click) operation, and responds to the user's selection (or click) operation. select operation to automatically generate a forwarding policy.
  • the target device when it calculates the forwarding path, it will automatically obtain all or part of the semantic name, determine the segment identifier to be used, and calculate the forwarding strategy.
  • a forwarding strategy can include multiple candidate paths, and each candidate path carries a priority attribute (preference).
  • the candidate paths are selected according to the priority from high to low, that is, the candidate path with the highest priority is the preferred path of the forwarding policy, and the candidate path with the second priority is the candidate path of the forwarding policy.
  • the core of each candidate path in the forwarding policy is a segment list sequence, each segment list sequence represents a packet forwarding path, and the forwarding policy also indicates that devices in the network need to follow the specified path to forward packets.
  • FIG. 8 is a schematic diagram of a forwarding strategy provided by the present application.
  • a candidate path includes multiple segment lists, and each segment list carries a weight attribute. At the time, the devices or nodes or links or tunnels represented by each segment list can share the traffic according to the weight.
  • each segment list is an explicit IPv6 or IPv4 address, and the segment list is used to instruct network devices to forward packets.
  • the network administrator can use the mode of statically configuring the nodes that must pass through, and first select the SID1 corresponding to the SID-of-VAS1 according to the displayed semantic name, and then select the SID2 corresponding to the SID-of-VAS2,
  • the selection operation here can be understood as the user clicks SID-of-VAS1 first, and then clicks SID-of-VAS2, and the controller calculates the forwarding policy in response to the user's selection.
  • the arrangement of the segment list sequence in the forwarding policy may be as shown in FIG.
  • the controller arranges the forwarding policy, the controller arranges SID1 and SID2 on the router R1 in the forwarding path, and SID1 in the segment list Located at the lower layer of SID2, when a node in the network forwards packets, it will first pass through the port where SID1 is located, and then pass through the port where SID2 is located.
  • the controller also receives and responds to the user's operation on link bandwidth selection, calculates the forwarding policy, and finally obtains a forwarding policy that satisfies the condition.
  • the target device delivers a forwarding policy.
  • the target device After the target device calculates and obtains the forwarding policy, it will deliver the forwarding policy in some way. Generally speaking, the target device will deliver the forwarding policy to the head node of the preferred path.
  • a BGP neighbor is established between the target device and the head node, and after calculating the forwarding policy, the BGP-LS or PCEP message is delivered to the head node of the preferred path.
  • the controller can deliver the forwarding policy to the router PE1 through the BGP SR Policy.
  • the first network device forwards the data packet.
  • a node or device in the network which is generally the head node of the preferred path, after receiving the forwarding policy issued by the target device, imports the data packet into the forwarding policy, and encapsulates the data packet, so that the network devices in the network follow the segment.
  • the data packets are forwarded in the order corresponding to the list sequence.
  • the target device can display the relationship between the semantic name of the associated network device and the segment identifier. , so that network managers can intuitively know the function or role or purpose or destination of the segment identifier based on the semantic name; the target device generates a forwarding policy based on the packet, and then issues the forwarding policy, and the associated network device forwards the data packet according to the forwarding policy. .
  • the association relationship between the semantic name and the segment identifier is stored in the target device, and the forwarding policy is generated according to the semantic name.
  • the segment identifier is manually searched in the control device, and then the found segment identifier is written into to a designated location, and then generate a forwarding policy according to the written segment identifier, which is more convenient for operation in this embodiment.
  • FIG. 10 is a schematic flowchart of a method for acquiring a semantic name provided by the present application. The method includes but is not limited to the following descriptions of S301 to S304 .
  • the second network device acquires the semantic name of the segment identifier.
  • the relationship between the second network device and the control device may not be a BGP neighbor relationship.
  • the second network device sends a packet to the first network device, where the packet includes a segment identifier and a semantic name of the second network device.
  • the second network device sends a message to the first network device, and correspondingly, the first network device receives the message sent by the second network device, and the message is used to instruct the first network device to obtain the meaning of the segment identifier according to the semantic name.
  • the message may be an IGP protocol message, a BGP protocol message, or other forms of messages.
  • the message includes a segment identifier and a semantic name of the second network device, specifically, the message includes a segment identifier type-length-value (type-length-value, TLV) field, and the TLV field also includes a type sub-TLV, Also called sub-TLV, the value in the sub-TLV is the semantic name, the type is the type of the semantic name, and the length is the length of the semantic name.
  • Fig. 11 is a schematic diagram of a sub-TLV field provided by the application.
  • the sub-TLV is composed of type Type, length Length and value Value, wherein value Value is the semantic name of SID, and length is used to indicate the sub-TLV.
  • value Value is the semantic name of SID
  • length is used to indicate the sub-TLV.
  • the length of the type field is used to indicate that the sub-TLV is a semantic name.
  • the length of Value is variable, and the maximum length is 255*8 bits
  • the length of Length is 8 bits
  • the length of Type is 8 bits.
  • the first network device receives the message sent by the second network device, and obtains the segment identifier of the second network device and the corresponding semantic name from the message.
  • the service chain scenario shown in Figure 2 belongs to an autonomous system, so the router R1 sends the interior gateway protocol packet to the router reflector RR, and the router reflector RR obtains the semantic name of the segment identifier of the router R1.
  • the gateway protocol message may be an ISIS protocol message, an OSPF protocol message, or other forms of messages.
  • the first network device sends a message to the control device, where the message includes the segment identifier and the semantic name of the second network device.
  • the first network device may be a device that has established a BGP neighbor relationship with the controller, and may send the packet to the control device through a BGP-LS or PCEP packet.
  • the first network device may be a router reflector RR (not shown in the figure), the router R1 sends the packet to the router reflector RR, and the router reflector RR uploads the packet to the control device.
  • the control device saves the association relationship between the semantic name of the second network device and the segment identifier.
  • a semantic name is configured for the segment identifier of the second network device, and then the second network device sends a packet to the first network device, and the packet includes the segment identifier and semantic name of the second network device. , the first network device sends the message to the control device, and the control device saves the association relationship between the segment identifier and the semantic name.
  • the message is an IGP protocol message or a BGP protocol message.
  • a semantic name is configured for the segment identifier of the second network device, so that the control device can operate the segment identifier of the second network device according to the semantic name.
  • FIG. 12 is a schematic flowchart of a method for acquiring semantic names provided by this application. The method includes but is not limited to the following descriptions of S401 to S408 .
  • the second network device acquires the semantic name of the segment identifier.
  • the second network device sends a packet to the first network device, where the packet includes a segment identifier and a semantic name of the second network device.
  • the first network device sends a message to the control device, where the message includes a segment identifier and a semantic name of the second network device.
  • the control device saves the association relationship between the semantic name of the second network device and the segment identifier.
  • the control device displays the association relationship between the semantic name of the second network device and the segment identifier.
  • the control device generates a forwarding policy.
  • the control device delivers a forwarding policy.
  • the second network device forwards the data packet.
  • the content of S401 to S404 can refer to the description of the related content of S301 to S304, and the content of S405 to S408 can refer to the description of the related content of S204 to S207.
  • the control device after obtaining the segment identifier and semantic name of the second network device, the control device generates a forwarding policy according to the semantic name. Compared with the prior art, the control device manually searches for the segment identifier, and then uses The found segment identifier is written to a specified location, and then a forwarding policy is generated according to the written segment identifier, which is more convenient for operation in this embodiment.
  • router PE3, router ASBR1, and router ASBR2 constitute MAN 1
  • router PE4, router ASBR3, and router ASBR4 constitute MAN 2
  • Two backbone networks of an operator backbone network 1 and backbone network 2.
  • BGP EPE Egress Peer Engineering
  • BGP EPE can dynamically configure BGP EPE SIDs for the outbound interface of router ASBR1 and the outbound interface of router ASBR2 respectively.
  • the SID configured for the outbound interface connecting the router ASBR1 to the backbone network 1 is called SID1
  • SID configured for the outgoing interface connecting the router ASBR1 to the backbone network 2 Called SID2.
  • BGP EPE egress peer traffic engineering is also configured on ASBR3 and ASBR4 to dynamically configure BGP EPE SIDs for the outgoing interface of ASBR3 and the outgoing interface of ASBR4.
  • the user now needs to carry some services on the backbone network 1 through the outbound interface SID1 of the router ASBR1, and carry some services on the backbone network 2 through the outbound interface SID2 of the router ASBR1.
  • the method embodiments described in FIG. 5 or FIG. 12 can be applied to the above scenarios.
  • First configure the semantic name EPE-SID1-to-backbone network 1 for SID1 of router ASBR1, where EPE-SID1-to-backbone network 1 is used to indicate that the segment identifier SID1 is the SID going to backbone network 1, and configure the semantic name EPE- SID2-to-backbone network 2, EPE-SID2-to-backbone network 2 is used to indicate that the segment identifier SID2 is the SID destined for the backbone network 2.
  • router ASBR1 sends the packet to the control device, and accordingly, the control device receives the packet, which includes SID1, EPE-SID1-to-backbone 1, SID2, and EPE-SID2-to-backbone 2 .
  • the control device saves and displays the association between SID1 and EPE-SID1-to-backbone 1, and the association between SID2 and EPE-SID2-to-backbone 2 through a graphical user interface.
  • the control device generates a forwarding policy according to the semantic name, and sends the forwarding policy to the underlying network, and each network device in the underlying network forwards the data packet according to the forwarding policy.
  • the router ASBR1 can send the SID and its corresponding semantic name to other network devices that can interact with the control device, such as the router ASBR2, and the router ASBR2 sends the SID and its corresponding semantic name. to the control device.
  • the control device displays the relationship between SID1 and EPE-SID1-to-backbone 1, and the relationship between SID2 and EPE-SID2-to-backbone 2 in the service view, as shown in FIG. 14 .
  • FIG. 14 is a schematic diagram of displaying a semantic name in a service view provided by an embodiment of the present application. A network administrator can intuitively see through the service view that there are two SIDs on router ASBR1, where the semantic name of SID1 is EPE-SID1- to-backbone 1, the semantic name of SID2 is EPE-SID2-to-backbone 2.
  • the display manner of the SID and the semantic name is not specifically limited.
  • FIG. 15 is a schematic structural diagram of an apparatus 600 for obtaining a semantic name provided by an embodiment of the present application.
  • the apparatus 600 has the first network device or the second network device or the third network in the above-mentioned FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 . any function of the device.
  • the apparatus 600 includes: a sending unit 601, configured to send a first packet to a target device, where the first packet includes a segment identifier and a semantic name of the associated device, for example, the sending unit 601 is configured to execute the S102 in 3, S202 in FIG. 5, S303 in FIG. 10, S403 in FIG.
  • the receiving unit 602 is used to receive or obtain a message, for example, the receiving unit 602 is used to perform S101 in FIG. 3, S201 in FIG. 5 , S302 in FIG. 10 , S402 in FIG. 12 , and the like.
  • the semantic name acquiring apparatus 600 further includes a processing unit (not shown in the figure), which is used for processing and the above-mentioned steps of acquiring and managing the semantic name.
  • the semantic name obtaining apparatus 600 corresponds to the first network device in the above method embodiment, and the units in the semantic name obtaining apparatus 600 and the other operations and/or functions described above are respectively implemented to implement the first network device in the method embodiment.
  • the units in the semantic name obtaining apparatus 600 and the other operations and/or functions described above are respectively implemented to implement the first network device in the method embodiment.
  • semantic name obtaining device 600 obtains the semantic name
  • only the division of the above-mentioned functional units is used for illustration.
  • the internal structure is divided into different functional units to complete all or part of the functions described above.
  • FIG. 16 is a schematic structural diagram of another semantic name obtaining apparatus 700 provided by an embodiment of the present application.
  • the apparatus 700 has any function of the target device in FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 .
  • the apparatus 700 includes: a receiving unit 701, configured to receive a packet sent by a first network device, wherein the packet includes a segment identifier and a semantic name of the associated device, for example, the receiving unit 701 is configured to execute the process shown in FIG. 3 S102 in FIG. 5, S202 in FIG. 5, S303 in FIG. 10, S403 in FIG.
  • storage unit 702 for saving the association relationship between semantic names and segment identifiers, for example, performing S404, S304, S203 and S103; display The unit 703 is used to display the association relationship between the semantic name and the segment identifier, or when the semantic name indicates that the segment identifier goes to the second network device, the display unit 703 is used to display the relationship between the associated network device and the second network device in the service view.
  • Topological relationship for example, perform S204, S405; generating unit 704, for generating a forwarding policy, for example, performing S205, S406; sending unit 705, for sending a forwarding policy, for example, the sending unit is used for performing S206, S407 and so on.
  • the semantic name obtaining apparatus 700 corresponds to the target device or the control device in the above method embodiments, and the units in the semantic name obtaining apparatus 700 and the other operations and/or functions mentioned above are respectively for realizing the target device or the control device in the method embodiment.
  • the units in the semantic name obtaining apparatus 700 and the other operations and/or functions mentioned above are respectively for realizing the target device or the control device in the method embodiment.
  • the embodiments of the present application further provide a network device, and the hardware structure of the network device is introduced below.
  • the network device 800 or the network device 1000 described below corresponds to the first semantic name obtaining device 600 or the second semantic name obtaining device 700 in the above method embodiments, and the hardware, modules and the above-mentioned other devices in the network device 800 or the network device 1000
  • the operations and/or functions are respectively in order to realize various steps and methods implemented by the first semantic name obtaining apparatus 600 or the second semantic name obtaining apparatus 700 in the method embodiment, and the information about how the network device 800 or the network device 1000 obtains the semantic name.
  • the specific details can be found in the foregoing method embodiments, which are not repeated here for brevity.
  • the network device 800 or the network device 1000 corresponds to the device 600 or the device 700 in the above virtual device embodiment, and each functional unit in the device 600 or the device 700 is implemented by the software of the network device 800 or the network device 1000 .
  • the functional units included in the apparatus 600 or the apparatus 700 are generated after the processor of the network device 800 or the network device 1000 reads the program code stored in the memory.
  • FIG. 17 shows a schematic structural diagram of a network device 800 provided by an exemplary embodiment of the present application, where the network device 800 may be configured as a first network device or a target device.
  • the network device 800 may be implemented by a general bus architecture.
  • Network device 800 includes at least one processor 801 , communication bus 802 , memory 803 , and at least one communication interface 804 .
  • the processor 801 may be a general-purpose CPU, NP, microprocessor, or may be one or more integrated circuits for implementing the solutions of the present application, such as application-specific integrated circuits (ASIC), programmable logic A device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuits
  • PLD programmable logic A device
  • the above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof.
  • the communication bus 802 is used to transfer information between the aforementioned components.
  • the communication bus 802 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the memory 803 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be random access memory (RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 803 may exist independently and be connected to the processor 801 through the communication bus 802 , and the memory 803 may also be integrated with the processor 801 .
  • the Communication interface 804 uses any transceiver-like device for communicating with other devices or a communication network.
  • the communication interface 804 includes a wired communication interface, and may also include a wireless communication interface.
  • the wired communication interface may be, for example, an Ethernet interface, and the Ethernet interface may be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof, and the like.
  • the processor 801 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 17 .
  • the network device 800 may include multiple processors, such as the processor 801 and the processor 805 shown in FIG. 17 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the network device 800 may further include an output device 806 and an input device 807 .
  • the output device 806 is in communication with the processor 801 and can display information in a variety of ways.
  • the output device 806 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like .
  • the input device 807 communicates with the processor 801 and can receive user input in various ways.
  • the input device 807 can be a mouse, a keyboard, a touch screen device or a sensor device.
  • the memory 803 is used to store the program code 810 for executing the solutions of the present application, and the processor 801 can execute the program code 810 stored in the memory 803 . That is, the network device 800 can implement the method provided by the method embodiment of FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 through the processor 801 and the program code 810 in the memory 803 .
  • the network device 800 in this embodiment of the present application may correspond to the first network device or the target device in each of the above method embodiments, and the processor 801, the communication interface 804, etc. in the network device 800 may implement the above various method embodiments.
  • the functions and/or the various steps and methods implemented by the device For brevity, details are not repeated here.
  • the sending unit 601 and the receiving unit 602 in the apparatus 600 may be equivalent to the communication interface 804 in the network device 800 .
  • the receiving unit 701 and the sending unit 705 in the apparatus 700 may be equivalent to the communication interface 804 in the network device 800; the saving unit 702 in the apparatus 700 may be equivalent to the memory 803 in the network device 800; the generating unit 704 in the apparatus 700 may be equivalent The processor 801 in the network device 800 ; the display unit 703 in the apparatus 700 may be equivalent to the output device 806 in the network device 800 .
  • FIG. 18 shows a schematic structural diagram of a network device 1000 provided by an exemplary embodiment of the present application, where the network device 1000 may be configured as a first network device or a target device.
  • the network device 1000 includes: a main control board 1010 and an interface board 1030 .
  • the main control board 1010 is also called the main processing unit (main processing unit, MPU) or the route processor card (route processor card).
  • the main control board 1010 is used to control and manage various components in the network device 1000 Management, equipment maintenance, protocol processing functions.
  • the main control board 1010 includes: a central processing unit 1011 and a memory 1012 .
  • the interface board 1030 is also called a line processing unit (LPU), a line card (line card) or a service board.
  • the interface board 1030 is used to provide various service interfaces and realize the forwarding of data packets.
  • the service interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc.
  • the Ethernet interfaces are, for example, flexible Ethernet service interfaces (flexible Ethernet service interfaces). ethernet clients, FlexE Clients).
  • the interface board 1030 includes: a central processing unit 1031 , a network processor 1032 , a forwarding table entry storage 1034 and a physical interface card (PIC) 1033 .
  • PIC physical interface card
  • the central processing unit 1031 on the interface board 1030 is used to control and manage the interface board 1030 and communicate with the central processing unit 1011 on the main control board 1010 .
  • the network processor 1032 is used to implement packet forwarding processing, and the form of the network processor 1032 may be a forwarding chip. Specifically, the network processor 1032 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 1034. If the destination address of the message is the address of the network device 1000, the message is sent to the CPU ( If the destination address of the message is not the address of the network device 1000, the next hop and outgoing interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to The outbound interface corresponding to the destination address.
  • the processing of the uplink packet includes: processing the incoming interface of the packet, and searching the forwarding table; processing of the downlink packet: searching the forwarding table, and so on.
  • the physical interface card 1033 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 1030 through this, and the processed packets are sent from the physical interface card 1033 .
  • the physical interface card 1033 is also called a daughter card, which can be installed on the interface board 1030 and is responsible for converting the optoelectronic signal into a message and forwarding the message to the network processor 1032 for processing after checking the validity of the message.
  • the central processing unit may also perform the functions of the network processor 1032 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1032 is not required in the physical interface card 1033 .
  • the network device 1000 includes multiple interface boards, for example, the network device 1000 further includes an interface board 1040 , and the interface board 1040 includes a central processing unit 1041 , a network processor 1042 , a forwarding table entry storage 1044 and a physical interface card 1043 .
  • the network device 1000 further includes a switch fabric board 1020, and the switch fabric board 1020 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • switch fabric unit switch fabric unit
  • SFU switch fabric unit
  • the switch fabric board 1020 is used to complete data exchange between the interface boards.
  • the switch fabric board 1020 can communicate between the interface boards 1030 and the interface boards 1040 .
  • the main control board 1010 and the interface board 1030 are coupled.
  • the main control board 1010, the interface board 1030, the interface board 1040, and the switch fabric board 1020 are connected to the system backplane through a system bus to implement intercommunication.
  • an inter-process communication (inter-process communication, IPC) channel is established between the main control board 1010 and the interface board 1030, and the main control board 1010 and the interface board 1030 communicate through the IPC channel.
  • IPC inter-process communication
  • the network device 1000 includes a control plane and a forwarding plane
  • the control plane includes the main control board 1010 and the central processing unit 1031
  • the forwarding plane includes various components that perform forwarding, such as the forwarding entry storage 1034, the physical interface card 1033 and the network processing device 1032.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, configuring and maintaining device status, etc.
  • the control plane delivers the generated forwarding tables to the forwarding plane.
  • the network processor 1032 is based on the control plane.
  • the delivered forwarding table forwards the packets received by the physical interface card 1033 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 1034. In some embodiments, the control plane and the forwarding plane may be completely separated and not on the same device.
  • the physical interface card 1033 receives or obtains the packet of the associated network device, and sends it to the network processor 1032. After the network processor 1032 processes the packet, the packet is sent from the physical interface card 1033 send out.
  • the physical interface card 1033 receives a packet sent by the first network device, and the packet includes the segment identifier and semantic name of the associated network device, and sends it to the network processor 1032 for processing by the network.
  • the controller 1032 generates a forwarding policy according to the semantic name, and sends the forwarding policy to the network device through the physical interface card 1033 .
  • the sending unit 601 and the receiving unit 602 in the apparatus 600 are equivalent to the physical interface card 1033 in the network device 1000 .
  • the receiving unit 701 and the sending unit 705 in the apparatus 700 are equivalent to the physical interface card 1033 in the network device 1000 ; the generating unit 704 in the apparatus 700 may be equivalent to the network processor 1032 or the central processing unit 1011 ; the saving unit 702 in the apparatus 700 It is equivalent to the forwarding entry storage 1034 or the storage 1012 in the network device 1000 ; the display unit 703 is equivalent to the main control board 1010 in the network device 1000 .
  • the operations on the interface board 1040 in the embodiment of the present application are the same as the operations on the interface board 1030, and are not repeated for brevity.
  • the network device 1000 in this embodiment may correspond to the first network device or the target device in the foregoing method embodiments, and the main control board 1010, the interface board 1030 and/or 1040 in the network device 1000 may implement the foregoing method embodiments
  • the functions possessed by the first network device or the target device and/or the various steps implemented are not repeated here.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they may include the main main control board and the backup main control board.
  • a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture.
  • the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board.
  • the central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of equipment is low (for example, low-end switches or routers and other networks. equipment).
  • the specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
  • the above-mentioned first network device or target device may be implemented as a virtualized device.
  • the virtualization device may be a virtual machine (virtual machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (eg, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • the virtual machine can be configured as a network device.
  • the first network device or the target device may be implemented based on a general physical server in combination with a network functions virtualization (NFV) technology, where the first network device or the target device is a virtual host, a virtual router or a virtual switch.
  • NFV network functions virtualization
  • the virtualization device can be a container, which is an entity used to provide an isolated virtualization environment.
  • the container can be a docker container, and the container can be configured as a first network device or a target device.
  • the image of the proxy-container can be used to create the first network device or target device.
  • proxy-container a container that provides proxy services
  • two container instances can be created for the proxy-container, namely the container instance proxy-container1 and the container instance proxy.
  • -container2 provide the container instance proxy-container1 as the first network device, and provide the container instance proxy-container2 as the target device.
  • the first network device or the target device can run using the kernel of the physical machine, and multiple first network devices or target devices can share the operating system of the physical machine. Different first network devices or target devices can be isolated through the container technology.
  • the containerized first network device or target device may run in a virtualized environment, for example, may run in a virtual machine, and the containerized first network device or target device may also run directly in a physical machine.
  • a virtualized device can be a Pod, and a Pod is Kubernetes (Kubernetes is a container orchestration engine open sourced by Google, abbreviated as K8s in English) as the basic unit for deploying, managing, and orchestrating containerized applications.
  • a Pod can include one or more containers, and each container in the same Pod is usually deployed on the same host, so each container in the same Pod can communicate through the host and can share the host's storage resources and network resource.
  • the Pod can be configured as the first network device or the target device, for example, specifically, a container as a service (container as a service, CaaS, which is a container-based PaaS service) can be instructed to create a Pod and provide the Pod as the first network device.
  • a container as a service container as a service, CaaS, which is a container-based PaaS service
  • CaaS container-based PaaS service
  • the first network device or the target device may also be other virtualized devices, which will not be listed here.
  • the above-mentioned first network device or target device may also be implemented by a general-purpose processor.
  • the general purpose processor may be in the form of a chip.
  • the general-purpose processor that implements the first network device or the target device includes a processing circuit, an input interface and an output interface that are internally connected and communicated with the processing circuit.
  • the processing circuit is configured to perform the receiving step in the above method embodiments through the input interface, and the processing circuit is configured to perform the sending step in the above method embodiments through the output interface.
  • the general-purpose processor may further include a storage medium, and the processing circuit is configured to use the storage medium to perform the storage steps in each of the foregoing method embodiments.
  • the storage medium may store instructions executed by the processing circuit, where the processing circuit is configured to execute the instructions stored in the storage medium to perform the above-mentioned various method embodiments.
  • an embodiment of the present application provides a system 1100 , where the system 1100 includes: a first network device 1101 and/or a target device 1102 .
  • the first network device 1101 is, for example, the device 600 , the network device 800 or the network device 1000
  • the target device 1102 is, for example, the device 700 , the network device 800 or the network device 1000 .
  • An embodiment of the present application provides a computer program product, which, when the computer program product runs on a first network device or a target device, enables the first network device or the target device to execute the above-mentioned FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 described method embodiments.
  • the above apparatuses in various product forms respectively have any functions of the first network device or the target device in the above method embodiments, which will not be repeated here.
  • the disclosed systems, devices and methods may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the unit is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: 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 codes .
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can 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.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present 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 computer readable storage medium, for example, the computer program instructions may be transmitted from a website site, computer, server or data center via Wired or wireless transmission to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVDs), or semiconductor media (eg, solid state drives), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in the embodiments of the present application are a semantic name acquisition method and apparatus, a device, and a storage medium, the method comprising: receiving a packet sent by a first network device, the packet comprising a segment identification and a semantic name of an associated network device, and the semantic name being used for indicating the meaning of the segment identification; and storing the association relationship of the semantic name and the segment identification. Implementing the embodiments of the present application facilitates management and operation of network devices on the basis of semantic names.

Description

一种语义名称获取方法、装置、设备及存储介质A method, device, device and storage medium for acquiring semantic name
本申请要求于2020年10月30日提交中国专利局、申请号为202011206224X、申请名称为“一种语义名称获取方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 30, 2020 with the application number 202011206224X and the application title is "A method, device, equipment and storage medium for acquiring a semantic name", the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种语义名称获取方法、装置、设备及存储介质。The present application relates to the field of communication technologies, and in particular, to a method, apparatus, device, and storage medium for acquiring a semantic name.
背景技术Background technique
在基于互联网协议第六版本的段路由(segment routing for IPv6,SRv6)环境中,一般情况下,运行路由协议,为网络中的每个节点或端口动态分配一个段标识(segment identification,SID),每个SID用于标识一个节点或一个端口。控制器通过收集网络中各节点或端口的信息(包括各节点或端口的SID、邻居关系等信息),根据收集的信息建立网络拓扑,计算生成转发策略,并将转发策略下发到某个设备或多个设备上,各个设备根据转发策略进行报文转发。In a segment routing for IPv6 (SRv6) environment based on the sixth version of the Internet Protocol, in general, a routing protocol is run to dynamically assign a segment identification (SID) to each node or port in the network, Each SID is used to identify a node or a port. The controller collects the information of each node or port in the network (including the SID, neighbor relationship and other information of each node or port), establishes the network topology according to the collected information, calculates and generates the forwarding policy, and sends the forwarding policy to a certain device On or on multiple devices, each device forwards packets according to the forwarding policy.
在某些场景中,需要指定转发策略必须经过某个链路或者某个节点,但现有技术中,没有能够方便、快速指定某个链路或某个节点的方案。In some scenarios, it is necessary to specify that the forwarding policy must pass through a certain link or a certain node, but in the prior art, there is no solution that can conveniently and quickly specify a certain link or a certain node.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种语义名称获取方法、装置、设备、系统及存储介质,便于根据语义名称对网络设备进行管理和操作。The embodiments of the present application disclose a method, apparatus, device, system and storage medium for acquiring a semantic name, which are convenient for managing and operating network devices according to the semantic name.
第一方面,本申请提供了一种语义名称获取方法,方法包括:接收第一网络设备发送的报文,该报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义;保存所述语义名称和所述段标识的关联关系。In a first aspect, the present application provides a method for acquiring a semantic name. The method includes: receiving a message sent by a first network device, where the message includes a segment identifier and a semantic name of an associated network device, wherein the semantic name is used for Indicate the meaning of the segment identifier; save the association relationship between the semantic name and the segment identifier.
本方法可以应用于目标设备,目标设备接收第一网络设备发送的报文,报文中包括关联网络设备的段标识和语义名称,并保存语义名称和段标识的关联关系。其中语义名称用于指示段标识的含义,便于目标设备后续根据语义名称管理或使用段标识。The method can be applied to a target device. The target device receives a message sent by the first network device, and the message includes a segment identifier and a semantic name associated with the network device, and stores the association relationship between the semantic name and the segment identifier. The semantic name is used to indicate the meaning of the segment identifier, which is convenient for the target device to manage or use the segment identifier subsequently according to the semantic name.
基于第一方面,在可能的实现方式中,上述关联网络设备为第一网络设备或第三网络设备。Based on the first aspect, in a possible implementation manner, the above-mentioned associated network device is a first network device or a third network device.
目标设备接收第一网络设备发送的报文,报文中包括关联网络设备的段标识和语义名称,其中关联设备可以为第一网络设备,即第一网络设备发送的是自己的段标识和对应的语义名称;关联设备还可以为第三网络设备,即第一网络设备发送的是其他网络设备的段标识和对应的语义名称。The target device receives the message sent by the first network device, and the message includes the segment identifier and semantic name of the associated network device, where the associated device may be the first network device, that is, the first network device sends its own segment identifier and corresponding The associated device may also be a third network device, that is, the first network device sends the segment identifiers and corresponding semantic names of other network devices.
基于第一方面,在可能的实现方式中,在保存所述语义名称和所述段标识的 关联关系之后,本方法还包括:显示所述语义名称和所述段标识的所述关联关系。Based on the first aspect, in a possible implementation manner, after saving the association relationship between the semantic name and the segment identifier, the method further includes: displaying the association relationship between the semantic name and the segment identifier.
目标设备在保存语义名称和段标识的关联关系后,还能够通过图形用户界面显示语义名称和段标识的关联关系,以便网络管理员根据该关联关系对段标识进行管理。After saving the relationship between the semantic name and the segment identifier, the target device can also display the relationship between the semantic name and the segment identifier through a graphical user interface, so that the network administrator can manage the segment identifier according to the relationship.
基于第一方面,在可能的实现方式中,所述语义名称用于指示所述段标识用于去向第二网络设备,所述方法还包括:显示业务视图,其中,所述业务视图用于显示所述关联网络设备和所述第二网络设备之间的拓扑关系。Based on the first aspect, in a possible implementation manner, the semantic name is used to indicate that the segment identifier is used to go to the second network device, and the method further includes: displaying a service view, wherein the service view is used for displaying Topological relationship between the associated network device and the second network device.
在语义名称用于指示段标识去向第二网络设备的情况下,目标设备能够在业务视图中显示关联设备和第二网络设备的拓扑关系,以便网络管理员根据该关联关系对段标识进行管理。When the semantic name is used to indicate the destination of the segment identifier to the second network device, the target device can display the topological relationship between the associated device and the second network device in the service view, so that the network administrator can manage the segment identifier according to the associated relationship.
基于第一方面,在可能的实现方式中,所述方法还包括:生成转发策略,所述转发策略包括所述段标识,其中,所述转发策略是根据所述语义名称获得的;发送所述转发策略,所述转发策略用于指示使用所述段标识。Based on the first aspect, in a possible implementation manner, the method further includes: generating a forwarding policy, where the forwarding policy includes the segment identifier, wherein the forwarding policy is obtained according to the semantic name; sending the A forwarding policy, where the forwarding policy is used to indicate the use of the segment identifier.
当目标设备为控制设备时,目标设备能够根据语义名称生成转发策略,将转发策略发送至底层网络。使得在生成转发策略时,更加方便。When the target device is a control device, the target device can generate a forwarding policy according to the semantic name, and send the forwarding policy to the underlying network. This makes it more convenient to generate forwarding policies.
第二方面,本申请实施例提供了一种语义名称获取方法,基于第一网络设备方面描述,方法包括:第一网络设备向目标设备发送第一报文,所述第一报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义。In a second aspect, an embodiment of the present application provides a method for acquiring a semantic name. Based on the description of the first network device, the method includes: the first network device sends a first packet to a target device, where the first packet includes an associated network The segment identifier and semantic name of the device, wherein the semantic name is used to indicate the meaning of the segment identifier.
第一网络设备向目标设备发送第一报文,第一报文包括关联网络设备的段标识和语义名称,其中,语义名称用于指示段标识的含义,具体为,语义名称可以指示该段标识的功能或作用,还可以指示该段标识去向网络设备,还可以指示该段标识去向另一个段标识等等。目标设备可以为控制设备或第三网络设备,这里之所以称为第三网络设备,目的是用于区别其他网络设备。The first network device sends a first packet to the target device, where the first packet includes a segment identifier and a semantic name of the associated network device, where the semantic name is used to indicate the meaning of the segment identifier, specifically, the semantic name may indicate the segment identifier It can also indicate that the segment identifier goes to the network device, and can also indicate that the segment identifier goes to another segment identifier, and so on. The target device may be a control device or a third network device, which is called a third network device here for the purpose of distinguishing it from other network devices.
基于第二方面,在可能的实现方式中,所述关联网络设备为所述第一网络设备或第二网络设备。Based on the second aspect, in a possible implementation manner, the associated network device is the first network device or the second network device.
基于第二方面,在可能的实现方式中,所述关联网络设备包括第二网络设备,所述方法还包括:接收所述第二网络设备发送的第二报文,所述第二报文包括所述段标识和所述语义名称。Based on the second aspect, in a possible implementation manner, the associated network device includes a second network device, and the method further includes: receiving a second packet sent by the second network device, where the second packet includes the segment identifier and the semantic name.
在目标设备为控制设备,且关联网络设备为第二网络设备的情况下,第一网络设备还需要接收第二网络设备发送的第二报文,第二报文中包括第二网络设备的段标识和语义名称。When the target device is a control device and the associated network device is a second network device, the first network device also needs to receive a second packet sent by the second network device, and the second packet includes the segment of the second network device Identification and semantic names.
基于第二方面,在可能的实现方式中,所述第一报文包括段标识类型-长度-值TLV字段,所述TLV字段包括子TLV,所述子TLV包括所述语义名称。Based on the second aspect, in a possible implementation manner, the first message includes a segment identification type-length-value TLV field, the TLV field includes a sub-TLV, and the sub-TLV includes the semantic name.
第一报文中包括段标识和语义名称,其中段标识为类型-长度-值TLV字段,TLV字段中包括子TLV,子TLV中的值为语义名称,子TLV中的长度为语义名称的长度。The first message includes a segment identifier and a semantic name, wherein the segment identifier is a type-length-value TLV field, the TLV field includes a sub-TLV, the value in the sub-TLV is the semantic name, and the length in the sub-TLV is the length of the semantic name. .
基于第二方面,在可能的实现方式中,所述第一报文包括边界网关协议报文 或内部网关协议报文。Based on the second aspect, in a possible implementation manner, the first packet includes a border gateway protocol packet or an interior gateway protocol packet.
在目标设备为第三网络设备时,第一网络设备向第三网络设备发送第一报文,若两个网络设备属于同一自治域范围内,则第一报文为内部网关协议报文,若两个网络设备不属于同一自治域范围内,则第一报文为边界网关协议报文。When the target device is a third network device, the first network device sends a first packet to the third network device. If the two network devices belong to the same autonomous domain, the first packet is an interior gateway protocol packet. If If the two network devices do not belong to the same autonomous domain, the first packet is a BGP packet.
基于第二方面,在可能的实现方式中,所述方法应用于段路由网络中。Based on the second aspect, in a possible implementation manner, the method is applied in a segment routing network.
上述任一实施方式中描述的方法应用于段路由网络中,例如,SRv6网络或SR-MPLS网络。The method described in any of the above embodiments is applied in a segment routing network, for example, an SRv6 network or an SR-MPLS network.
第三方面,本申请实施例提供了一种语义名称获取装置,包括接收单元,用于接收第一网络设备发送的报文,所述报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义;保存单元,用于保存所述语义名称和所述段标识的关联关系。In a third aspect, an embodiment of the present application provides an apparatus for acquiring a semantic name, including a receiving unit configured to receive a message sent by a first network device, where the message includes a segment identifier and a semantic name of the associated network device, wherein, The semantic name is used to indicate the meaning of the segment identifier; the storage unit is used to store the association relationship between the semantic name and the segment identifier.
基于第三方面,在可能的实现方式中,所述装置还包括:显示单元,用于显示所述语义名称和所述段标识的所述关联关系。Based on the third aspect, in a possible implementation manner, the apparatus further includes: a display unit, configured to display the association relationship between the semantic name and the segment identifier.
基于第三方面,在可能的实现方式中,所述语义名称用于指示所述段标识用于去向第二网络设备,所述显示单元还用于,显示业务视图,其中,所述业务视图用于显示所述关联网络设备和所述第二网络设备之间的拓扑关系。Based on the third aspect, in a possible implementation manner, the semantic name is used to indicate that the segment identifier is used to go to the second network device, and the display unit is further configured to display a service view, wherein the service view uses for displaying the topological relationship between the associated network device and the second network device.
基于第三方面,在可能的实现方式中,所述装置还包括:生成单元,用于生成转发策略,所述转发策略包括所述段标识,其中,所述转发策略是根据所述语义名称获得的;发送单元,用于发送所述转发策略,所述转发策略用于指示使用所述段标识。Based on the third aspect, in a possible implementation manner, the apparatus further includes: a generating unit, configured to generate a forwarding policy, where the forwarding policy includes the segment identifier, wherein the forwarding policy is obtained according to the semantic name The sending unit is configured to send the forwarding policy, where the forwarding policy is used to indicate the use of the segment identifier.
上述第三方面装置中的各个功能单元用于实现第一方面及第一方面的任一实现方式中所描述的方法。Each functional unit in the apparatus of the third aspect is used to implement the method described in the first aspect and any implementation manner of the first aspect.
第四方面,本申请实施例还提供了一种语义名称获取装置,包括:发送单元,用于向目标设备发送第一报文,所述第一报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义。In a fourth aspect, an embodiment of the present application further provides an apparatus for acquiring a semantic name, including: a sending unit configured to send a first message to a target device, where the first message includes a segment identifier and a semantic name of an associated network device , wherein the semantic name is used to indicate the meaning of the segment identifier.
基于第四方面,在可能的实现方式中,所述装置还包括接收单元,所述关联网络设备包括第二网络设备,所述接收单元,用于接收所述第二网络设备发送的第二报文,所述第二报文包括所述段标识和所述语义名称。Based on the fourth aspect, in a possible implementation manner, the apparatus further includes a receiving unit, the associated network device includes a second network device, and the receiving unit is configured to receive a second message sent by the second network device The second message includes the segment identifier and the semantic name.
基于第四方面,在可能的实现方式中,所述第一报文包括段标识类型-长度-值TLV字段,所述TLV字段包括子TLV,所述子TLV包括所述语义名称。Based on the fourth aspect, in a possible implementation manner, the first message includes a segment identification type-length-value TLV field, the TLV field includes a sub-TLV, and the sub-TLV includes the semantic name.
基于第四方面,在可能的实现方式中,所述报文包括边界网关协议报文或内部网关协议报文。Based on the fourth aspect, in a possible implementation manner, the packet includes a border gateway protocol packet or an interior gateway protocol packet.
基于第四方面,在可能的实现方式中,所述装置应用于段路由网络中。Based on the fourth aspect, in a possible implementation manner, the apparatus is applied in a segment routing network.
上述第四方面装置中的各个功能单元用于实现第二方面及第二方面的任一实现方式中所描述的方法。Each functional unit in the apparatus of the fourth aspect is used to implement the method described in the second aspect and any implementation manner of the second aspect.
第五方面,本申请实施例提供了一种语义名称获取设备,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于调用所述存储器中存储的指令,执行第一方面或第一方面的任一可能实施方式中所述的方法。In a fifth aspect, an embodiment of the present application provides a device for acquiring a semantic name, including a memory and a processor, where the memory is used for storing instructions, and the processor is used for calling the instructions stored in the memory to execute the first aspect or A method as recited in any possible embodiment of the first aspect.
第六方面,本申请实施例提供了又一种语义名称获取设备,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于调用所述存储器中存储的指令,执行第二方面或第二方面的任一可能实施方式中所述的方法。In a sixth aspect, an embodiment of the present application provides yet another device for acquiring semantic names, including a memory and a processor, where the memory is used for storing instructions, and the processor is used for calling the instructions stored in the memory to execute the second aspect or the method described in any possible embodiment of the second aspect.
第七方面,本申请实施例提供了一种计算机存储介质,包括程序指令,当所述程序指令在计算机上运行时,使得计算机执行第一方面或第一方面的任一实现方式所述的方法。In a seventh aspect, an embodiment of the present application provides a computer storage medium, including program instructions, which, when the program instructions are run on a computer, cause the computer to execute the method described in the first aspect or any implementation manner of the first aspect .
第八方面,本申请实施例提供了一种计算机存储介质,包括程序指令,当所述程序指令在计算机上运行时,使得计算机执行第二方面或第二方面的任一实现方式所述的方法。In an eighth aspect, an embodiment of the present application provides a computer storage medium, including program instructions, which, when the program instructions are run on a computer, cause the computer to execute the method described in the second aspect or any implementation manner of the second aspect .
第九方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括程序指令,当该计算机程序产品被第一语义名称获取设备执行时,该第一语义名称获取设备执行前述第一方面所述方法。该计算机程序产品可以为一个软件安装包,在需要使用前述第一方面的任一种可能的设计提供的方法的情况下,可以下载该计算机程序产品并在第一语义名称获取设备上执行该计算机程序产品,以实现第一方面或第一方面的任一可能实施方式中所述的方法。In a ninth aspect, an embodiment of the present application provides a computer program product, the computer program product includes program instructions, and when the computer program product is executed by a first semantic name obtaining device, the first semantic name obtaining device executes the aforementioned first semantic name obtaining device. the method described in the aspect. The computer program product may be a software installation package, and if the method provided by any of the possible designs of the first aspect needs to be used, the computer program product may be downloaded and executed on the first semantic name acquisition device A program product to implement the method of the first aspect or any possible implementation of the first aspect.
第十方面,本申请实施例提供了又一种计算机程序产品,该计算机程序产品包括程序指令,当该计算机程序产品被第二语义名称获取设备执行时,该第二语义名称获取设备执行前述第二方面所述方法。该计算机程序产品可以为一个软件安装包,在需要使用前述第二方面的任一种可能的设计提供的方法的情况下,可以下载该计算机程序产品并在第二语义名称获取设备上执行该计算机程序产品,以实现第二方面或第二方面的任一可能实施方式中所述的方法。In a tenth aspect, the embodiments of the present application provide yet another computer program product, the computer program product includes program instructions, and when the computer program product is executed by a second semantic name obtaining device, the second semantic name obtaining device executes the aforementioned first The method described in the second aspect. The computer program product may be a software installation package, and if the method provided by any of the possible designs of the second aspect needs to be used, the computer program product may be downloaded and executed on the second semantic name acquisition device A program product to implement the method of the second aspect or any possible implementation of the second aspect.
第十一方面,本申请实施例提供了一种系统,所述系统包括目标设备和第一网络设备,其中,目标设备为第一方面或第一方面的任一可能实施方式中所述的语义名称获取装置,第一网络设备为第二方面或第二方面的任一可能实施方式所述的语义名称获取装置。In an eleventh aspect, an embodiment of the present application provides a system, where the system includes a target device and a first network device, wherein the target device is the semantics described in the first aspect or any possible implementation manner of the first aspect A name obtaining apparatus, where the first network device is the semantic name obtaining apparatus described in the second aspect or any possible implementation manner of the second aspect.
本申请实施例提供了一种语义名称获取方法、装置、设备及存储介质,其中,方法包括:第一网络设备获取段标识的语义名称,第一网络设备将包含段标识和对应的语义名称的报文发送至目标设备,目标设备接收并保存段标识和对应的语义名称。在可能的实施方式中,目标设备还可以在业务视图中显示段标识和语义名称的关联关系,并根据语义名称生成转发策略,将转发策略发送至底层网络中,底层网络中的各个网络设备根据转发策略转发数据报文。本申请实施例,通过对段标识配置语义名称,便于对网络设备进行管理,在实际场景应用中,便于根据语义名称对网络设备进行相关操作和相关处理。Embodiments of the present application provide a method, apparatus, device, and storage medium for obtaining a semantic name, wherein the method includes: a first network device obtains a semantic name of a segment identifier, and the first network device retrieves a segment identifier and a corresponding semantic name. The message is sent to the target device, and the target device receives and saves the segment identifier and the corresponding semantic name. In a possible implementation manner, the target device can also display the association relationship between the segment identifier and the semantic name in the service view, generate a forwarding policy according to the semantic name, and send the forwarding policy to the underlying network. The forwarding policy forwards data packets. In the embodiment of the present application, by configuring a semantic name for the segment identifier, it is convenient to manage the network device, and in an actual scenario application, it is convenient to perform related operations and related processing on the network device according to the semantic name.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些 附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请提供的一种软件定义网络架构示意图;1 is a schematic diagram of a software-defined network architecture provided by the present application;
图2为本申请提供的一种业务链场景示例图;FIG. 2 is an example diagram of a business chain scenario provided by the present application;
图3为本申请提供的一种语义名称获取方法的流程示意图;3 is a schematic flowchart of a method for obtaining a semantic name provided by the present application;
图4中的(a)-(c)为本申请提供的各种SID类型的示意图;(a)-(c) in Figure 4 are schematic diagrams of various SID types provided by this application;
图5为本申请提供的又一种语义名称获取方法的流程示意图;5 is a schematic flowchart of another semantic name acquisition method provided by the present application;
图6为本申请提供的一种语义名称在业务视图中的显示示意图;6 is a schematic diagram of displaying a semantic name in a business view provided by this application;
图7为本申请提供的又一种语义名称在业务视图中的显示示意图;7 is a schematic diagram of displaying another semantic name in a business view provided by the present application;
图8为本申请提供的一种转发策略示意图;8 is a schematic diagram of a forwarding strategy provided by the present application;
图9为本申请提供的一种段列表序列示意图;9 is a schematic diagram of a segment list sequence provided by the application;
图10为本申请提供的一种语义名称获取方法的流程示意图;10 is a schematic flowchart of a method for obtaining a semantic name provided by the application;
图11为本申请提供的一种子TLV字段的示意图;11 is a schematic diagram of a sub-TLV field provided by this application;
图12为本申请提供的又一种语义名称获取方法的流程示意图;12 is a schematic flowchart of another semantic name acquisition method provided by the application;
图13为本申请提供的一种应用场景示例图;FIG. 13 is an example diagram of an application scenario provided by this application;
图14为本申请提供的一种语义名称在业务视图中的显示示意图;14 is a schematic diagram of displaying a semantic name in a business view provided by this application;
图15为本申请提供的一种语义名称获取装置的结构示意图;15 is a schematic structural diagram of a device for obtaining semantic names provided by the application;
图16为本申请提供的又一种语义名称获取装置的结构示意图;16 is a schematic structural diagram of another semantic name acquisition device provided by the application;
图17为本申请提供的一种网络设备的结构示意图;17 is a schematic structural diagram of a network device provided by the application;
图18为本申请提供的又一种网络设备的结构示意图;18 is a schematic structural diagram of another network device provided by the application;
图19为本申请提供的一种系统结构示意图。FIG. 19 is a schematic structural diagram of a system provided by this application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application, and are not intended to limit the present application.
本申请中术语“第一”“第二”“第三”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”和“第三”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。In this application, the terms "first", "second", "third" and other words are used to distinguish the same or similar items that have substantially the same function and function. It should be understood that "first", "second" and "third" There is no logical or temporal dependency between "three", nor does it limit the quantity and execution order.
为了便于理解本申请,首先对本申请涉及的一些路由协议进行简单解释说明。In order to facilitate the understanding of this application, some routing protocols involved in this application are briefly explained first.
路由协议可以分为内部网关路由协议(interior gateway protocol,IGP)和外部网关路由协议(exterior gateway protocol,EGP)。IGP一般是用在一个自治系统(autonomous system,AS)内的路由协议,主要目的是发现和计算自制系统内的路由信息,在同一个自治系统内部进行路由信息交换,如开放式最短路径优先(open shortest path first,OSPF)协议、中间系统到中间系统(intermediate system-to-intermediate system,ISIS)协议等都属于内部网关路由协议。EGP一般是用在不同自治系统之间的,在自治系统之间进行路由信息的动态交换,其中,边界网关协议(border gateway protocol,BGP)就是最常用的外部网关路由协议,常用在互联网的网关之间。Routing protocols can be divided into interior gateway protocol (IGP) and exterior gateway protocol (EGP). IGP is generally a routing protocol used in an autonomous system (AS), the main purpose is to discover and calculate routing information in the self-made system, and exchange routing information within the same autonomous system, such as open shortest path first ( The open shortest path first, OSPF) protocol and the intermediate system-to-intermediate system (ISIS) protocol are all interior gateway routing protocols. EGP is generally used between different autonomous systems to dynamically exchange routing information between autonomous systems. Among them, the border gateway protocol (BGP) is the most commonly used external gateway routing protocol, commonly used in Internet gateways between.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
软件定义网络(software defined network,SDN)是一种新型的网络架构,SDN系统架构使得一般的编程人员在通用服务器的通用操作系统上,利用通用的软件就能定义网络功能,让网络可编程化。它将网络的控制面与数据转发平面进行分离,从而通过集中控制区实现可编程化,控制底层硬件,实现对网络资源灵活的按需调配。SDN网络架构分为三层,如图1所示,图1为本申请提供的一种SDN系统架构示意图,该架构100包括应用层、控制层和转发层。应用层是体现用户意图的上层应用程序,包括各种不同的业务和应用;控制层负责处理数据转发平面数据的编排,维护网络拓扑、状态信息等,包括网络拓扑的收集、路由的计算、转发策略的生成及下发、网络的管理和控制等;转发层负责流量的转发及策略的执行。Software-defined network (SDN) is a new type of network architecture. The SDN system architecture enables ordinary programmers to use general-purpose software on the general-purpose operating system of a general-purpose server to define network functions and make the network programmable. . It separates the control plane of the network from the data forwarding plane, thereby realizing programmability through the centralized control area, controlling the underlying hardware, and realizing flexible on-demand allocation of network resources. The SDN network architecture is divided into three layers, as shown in FIG. 1 . FIG. 1 is a schematic diagram of an SDN system architecture provided by this application. The architecture 100 includes an application layer, a control layer, and a forwarding layer. The application layer is the upper-layer application program that reflects the user's intention, including various services and applications; the control layer is responsible for processing the data arrangement of the data forwarding plane, maintaining network topology, status information, etc., including network topology collection, routing calculation, and forwarding Generation and distribution of policies, network management and control, etc. The forwarding layer is responsible for traffic forwarding and policy enforcement.
控制层是整个系统架构的控制中心,控制层的实体实现是控制器,控制器也是系统架构最核心的部件。控制层通过北向接口与应用层连接,通过南向接口与转发层连接,控制器通过南向协议将计算得到的转发策略下发至转发层的转发器上,转发器根据转发策略进行报文转发。The control layer is the control center of the entire system architecture, the entity implementation of the control layer is the controller, and the controller is also the core component of the system architecture. The control layer is connected to the application layer through the northbound interface, and is connected to the forwarding layer through the southbound interface. The controller sends the calculated forwarding strategy to the forwarder of the forwarding layer through the southbound protocol, and the forwarder forwards the packets according to the forwarding strategy. .
分段路由(segment routing,SR)是基于源路由的理念而设计的控制在网络中转发数据报文的一种协议。SR将网络路径划分为一个个段,并且为这些段和网络节点分配分段标识(Segment ID,SID),通过对SID进行有序排列,可以得到SID列表(SID List,在SR-MPLS中也称标签栈),SID List可以指示一条转发路径。通过在数据包中携带依次排列的段标识,能够让数据包通过段标识指示的转发路径传输。通过SR技术,可以指定携带了SID List的数据包经过的节点以及路径,从而满足流量调优的要求。做一个类比,数据包可以比作行李,SR可以比作行李上贴的标签,如果要将行李从A地区发送到D地区,途径B地区和C地区,则可以在始发地A地区给行李贴上一个标签“先到B地区,再到C地区,最后到D地区”,这样一来,各个地区只需识别行李上的标签,依据行李的标签将行李从一个地区转发至另一个地区即可。在SR技术中,源节点会向数据包添加标签,中间节点可以根据标签转发至下一个节点,直至数据包到达目的节点。Segment routing (SR) is a protocol designed based on the concept of source routing to control the forwarding of data packets in the network. SR divides the network path into segments, and assigns segment IDs (Segment IDs, SIDs) to these segments and network nodes. By arranging the SIDs in an orderly manner, a SID list (SID List, also known in SR-MPLS) can be obtained. called label stack), SID List can indicate a forwarding path. By carrying the segment identifiers arranged in sequence in the data packet, the data packet can be transmitted through the forwarding path indicated by the segment identifier. Through the SR technology, you can specify the nodes and paths that the data packets carrying the SID List pass through, so as to meet the requirements of traffic optimization. To make an analogy, the data package can be compared to luggage, and SR can be compared to the label attached to the luggage. If you want to send the luggage from area A to area D, and pass through area B and area C, you can send the luggage to area A at the origin. Put a label "first to B area, then to C area, and finally to D area", so that each area only needs to identify the label on the luggage, and forward the luggage from one area to another according to the label of the bag. Can. In SR technology, the source node adds a label to the data packet, and the intermediate node can forward it to the next node according to the label until the data packet reaches the destination node.
基于互联网协议第6版(Internet Protocol Version 6,IPv6)的分段路由(SRv6):是指将SR技术应用在IPv6网络中。Segment routing (SRv6) based on Internet Protocol Version 6 (IPv6): refers to the application of SR technology in IPv6 networks.
在某些场景下,需要为业务指定对应SID list,从而确定报文对应的路径。例如,图2为本申请提供的一种业务链场景示例图,该应用场景中,业务链包括路由器R1、运营商边缘路由器(Provider Edge,PE)PE1、PE2、PE3等设备,其中,路由器R1上挂载了增值业务设备VAS1和增值业务设备VAS2,而业务链要求报文的转发路径为由路由器PE1出发,先经过增值业务设备VAS1,再经过增值业务设备VAS2,转发至路由器PE3上。在这种情况下,在控制器收集到网络链路状态信息后,在进行业务链编排过程中,只能先在网络链路状态信息中找到R1设备的端口信息,然后通过分别查看R1设备的两个端口的SID,确定出哪个是与 VAS1设备相连的端口,哪个是与VAS2设备相连的端口,然后先后分别选择与VAS1设备相连的端口的SID、与VAS2设备相连的端口的SID,或者分别先后复制与VAS1设备相连的端口的SID、与VAS2设备相连的端口的SID到编排的指定位置,实现业务链的编排。然而,在大规模的网络中,由于存在大量网络设备,需要在大量网络设备中查找到目标设备及目标设备对应的SID,如果采用这种转发策略的部署方式则效率极低,且不便于进行管理。In some scenarios, it is necessary to specify the corresponding SID list for the service to determine the path corresponding to the message. For example, FIG. 2 is an example diagram of a service chain scenario provided by this application. In this application scenario, the service chain includes router R1, provider edge routers (Provider Edge, PE) PE1, PE2, PE3 and other devices, wherein router R1 The value-added service device VAS1 and the value-added service device VAS2 are mounted on it, and the service chain requires that the forwarding path of the packets starts from the router PE1, first passes through the value-added service device VAS1, and then passes through the value-added service device VAS2, and forwards them to the router PE3. In this case, after the controller collects the network link status information, during the service chain orchestration process, it can only find the port information of the R1 device in the network link status information first, and then check the R1 device's port information separately by checking the network link status information. The SIDs of the two ports determine which is the port connected to the VAS1 device and which is the port connected to the VAS2 device, and then select the SID of the port connected to the VAS1 device, the SID of the port connected to the VAS2 device, or respectively. Copy the SID of the port connected to the VAS1 device and the SID of the port connected to the VAS2 device to the designated location of the arrangement in order to realize the arrangement of the service chain. However, in a large-scale network, due to the existence of a large number of network devices, it is necessary to find the target device and the SID corresponding to the target device in a large number of network devices. If the deployment method of this forwarding strategy is adopted, the efficiency is extremely low, and it is inconvenient to carry out manage.
为了解决上述问题,本申请提出了一种语义名称获取方法,该方法可以应用于段路由(segment routing,SR)网络,也可以应用于其他类似的网络中。In order to solve the above problems, the present application proposes a method for acquiring semantic names, which can be applied to segment routing (SR) networks, and can also be applied to other similar networks.
基于上述SDN系统架构,对本申请提出的一种语义名称获取方法进行介绍。参考图3所示,图3为本申请提供的一种语义名称获取方法的流程示意图,该方法包括但不限于以下S101~S103内容的描述。Based on the above-mentioned SDN system architecture, a semantic name acquisition method proposed in this application is introduced. Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a method for obtaining a semantic name provided by the present application. The method includes but is not limited to the following descriptions of S101 to S103 .
S101、第一网络设备获取关联网络设备的段标识对应的语义名称。S101. The first network device acquires the semantic name corresponding to the segment identifier of the associated network device.
在一个示例中,关联网络设备为第一网络设备,即第一网络设备获取自己的段标识对应的语义名称。In an example, the associated network device is the first network device, that is, the first network device obtains a semantic name corresponding to its own segment identifier.
在另一个示例中,关联网络设备为第二网络设备,即第一网络设备获取第二网络设备的段标识和其对应的语义名称。具体为,第二网络设备首先获取自己的段标识的语义名称,然后第二网络设备将自己的段标识和语义名称发送至第一网络设备,这样第一网络设备获取到第二网络设备的段标识和语义名称。In another example, the associated network device is the second network device, that is, the first network device obtains the segment identifier of the second network device and its corresponding semantic name. Specifically, the second network device first obtains the semantic name of its own segment identifier, and then the second network device sends its own segment identifier and semantic name to the first network device, so that the first network device obtains the segment of the second network device. Identification and semantic names.
SID包括但不限于节点(node)SID、代理(proxy)SID、绑定(binding)SID等类型。其中,End SID可以用于标识网络中的某个目的地址前缀,例如,参见图4所示的示意图,图4为本申请提供的各种SID类型的示意图,图4中的(a)网络设备2分别与网络设备1、网络设备3连接,可以用End SID类型的SID A::标识网络设备1,SID B::标识网络设备2,SID C::标识网络设备3;End.X SID可以用于标识网络中的某条链路,例如,参见图4中的(b)所示的示意图,网络设备为三层交叉的节点,可以分别用End.X SID类型的SID A::1、SID A::2、SID A::3标识相应的链路。binding SID类型可以用于标识网络中某条隧道,例如,参见图4中的(c)所示的示意图,其中自治系统边界路由器(autonomous system boundary router,ASBR)ASBR2、网络设备P2、网络设备PE2构成隧道1,网络设备ASBR3、网络设备P3、网络设备PE3构成隧道2,在表示转发路径或段列表时,可以用binding SID类型的SID标识整个隧道1。proxy SID类型可以包括End.AD SID、End.AS SID等,其中End.AS SID为静态SID,一般是人工静态设置的,End.AD SID为动态SID,是在路由协议运行后自动生成的,proxy SID用于为某个对象提供一个代理以控制其他对象对该对象的访问。例如,图2所示的示例中,路由器R1上的SID1和SID2即为proxy SID类型,其中,一个proxy SID是为增值设备VAS1提供代理,另一个proxy SID是为增值设备VAS2提供代理,为了便于描述,用proxy SID类型的SID1标识路由器R1上与设备VAS1相连的代理端口,用proxy SID类型的SID2标识与设备VAS2相连的代理端口。SIDs include but are not limited to types such as node SIDs, proxy SIDs, binding SIDs, and the like. Wherein, End SID can be used to identify a certain destination address prefix in the network, for example, see the schematic diagram shown in FIG. 4 , FIG. 4 is a schematic diagram of various SID types provided by this application, (a) network device in FIG. 4 2 are connected to network device 1 and network device 3 respectively. SID A:: of End SID type can be used to identify network device 1, SID B:: to identify network device 2, and SID C:: to identify network device 3; End.X SID can Used to identify a link in the network, for example, referring to the schematic diagram shown in (b) in Figure 4, the network device is a three-layer cross node, and the SID A::1 of the End.X SID type can be used, respectively. SID A::2, SID A::3 identify the corresponding link. The binding SID type can be used to identify a certain tunnel in the network. For example, see the schematic diagram shown in (c) of Figure 4, where the autonomous system boundary router (ASBR) ASBR2, network device P2, network device PE2 Tunnel 1 is formed. Network equipment ASBR3, network equipment P3, and network equipment PE3 form tunnel 2. When representing the forwarding path or segment list, the SID of the binding SID type can be used to identify the entire tunnel 1. The proxy SID type can include End.AD SID, End.AS SID, etc. Among them, End.AS SID is a static SID, which is generally set manually and statically, and End.AD SID is a dynamic SID, which is automatically generated after the routing protocol runs. The proxy SID is used to provide a proxy for an object to control other objects' access to the object. For example, in the example shown in Figure 2, SID1 and SID2 on router R1 are proxy SID types. One proxy SID is to provide a proxy for the value-added device VAS1, and the other proxy SID is to provide a proxy for the value-added device VAS2. For convenience Description, use SID1 of the proxy SID type to identify the proxy port connected to the device VAS1 on the router R1, and use the SID2 of the proxy SID type to identify the proxy port connected to the device VAS2.
语义名称用于指示段标识的含义,具体包括,语义名称可以用于指示段标识 的用途、段标识的功能、段标识去向哪个网络设备、段标识去向哪个SID等等。例如,在图2所示的示例中,SID1的语义名称SID-of-VAS1用于指示SID1用于去向VAS1;SID2的语义名称SID-of-VAS2指示SID2去向设备VAS2,实际应用场景中,VAS1设备和VAS2设备可能为防火墙、加速器、过滤器等。The semantic name is used to indicate the meaning of the segment identifier, specifically, the semantic name can be used to indicate the purpose of the segment identifier, the function of the segment identifier, which network device the segment identifier goes to, which SID the segment identifier goes to, and so on. For example, in the example shown in Figure 2, the semantic name SID-of-VAS1 of SID1 is used to indicate that SID1 is used to go to VAS1; the semantic name SID-of-VAS2 of SID2 indicates that SID2 is going to the device VAS2. In the actual application scenario, VAS1 Devices and VAS2 devices may be firewalls, accelerators, filters, etc.
语义名称的获取方式有多种。例如,可以人工在第一网络设备进行静态配置,为段标识配置语义名称。又例如,也可以第一网络设备根据相关信息(相关信息可以是第一网络设备的SID、环回地址、端口号、所属虚拟局域网、与段标识相邻的网络设备、与段标识相邻的SID等中的一个或多个)动态生成。例如,在图2所示的示例中,第一网络设备为路由器R1,路由器R1根据与段标识相邻的网络设备以及预设格式生成语义名称,预设格式为“SID-of-xxx”,其中,“xxx”为与段标识相邻的网络设备,生成语义名称“SID-of-VAS1”和“SID-of-VAS2”。又例如,第一网络设备可以获得控制器或管理设备发送的配置信息,配置信息包括段标识和语义名称,从而对段标识配置语义名称。There are several ways to obtain semantic names. For example, static configuration may be performed manually on the first network device to configure a semantic name for the segment identifier. For another example, the first network device can also be based on the relevant information (the relevant information can be the SID, loopback address, port number, virtual local area network to which the first network device belongs, network devices adjacent to the segment identifier, and adjacent segment identifiers. one or more of SIDs, etc.) are dynamically generated. For example, in the example shown in FIG. 2, the first network device is a router R1, and the router R1 generates a semantic name according to the network device adjacent to the segment identifier and a preset format, and the preset format is "SID-of-xxx", Among them, "xxx" is a network device adjacent to the segment identifier, and the semantic names "SID-of-VAS1" and "SID-of-VAS2" are generated. For another example, the first network device may obtain configuration information sent by the controller or the management device, where the configuration information includes a segment identifier and a semantic name, so that a semantic name is configured for the segment identifier.
在一种示例中,SID可能是一个,也可能是多个,在配置SID时,可以为每个SID均配置语义名称。In an example, there may be one SID or multiple SIDs, and when configuring the SIDs, a semantic name may be configured for each SID.
在为SID配置语义名称之前,可能还会对网络中的各个设备进行数据配置,比如对网络中的路由器进行路由配置,包括配置路由器的接口地址、环回loopback地址等;然后运行路由协议,为网络中的各个节点或端口分配SID,从而建立网络中各个节点之间的邻居关系。Before configuring the semantic name for the SID, you may also perform data configuration on each device in the network, such as routing configuration for the routers in the network, including configuring the router's interface address, loopback address, etc.; and then run the routing protocol for Each node or port in the network is assigned a SID, thereby establishing a neighbor relationship between each node in the network.
S102、第一网络设备将报文发送至目标设备,其中,报文包括关联网络设备的段标识和语义名称。S102. The first network device sends a packet to the target device, where the packet includes a segment identifier and a semantic name of the associated network device.
这里的关联网络设备可以为上述第一网络设备或上述第二网络设备。即,第一网络设备可以把自己的段标识和其对应的语义名称发送给目标设备,也可以把其他设备的段标识和其对应的语义名称发送给目标设备。The associated network device here may be the above-mentioned first network device or the above-mentioned second network device. That is, the first network device may send its own segment identifier and its corresponding semantic name to the target device, and may also send the segment identifier and its corresponding semantic name of other devices to the target device.
在一个示例中,目标设备可以为与第一网络设备在同一个IGP或BGP网络中的其他网络设备。In one example, the target device may be other network devices in the same IGP or BGP network as the first network device.
在另一个示例中,目标设备也可以为控制设备。In another example, the target device may also be a control device.
在获取到段标识的语义名称后,第一网络设备将报文发送至目标设备,相应的,目标设备接收到第一网络设备发送的报文,其中,报文包括第一网络设备的段标识和语义名称,语义名称用于指示段标识的含义。After acquiring the semantic name of the segment identifier, the first network device sends the packet to the target device. Correspondingly, the target device receives the packet sent by the first network device, where the packet includes the segment identifier of the first network device. and the semantic name, which is used to indicate the meaning of the segment ID.
可选的,报文中还包括网络的链路状态信息,其中网络的链路状态信息包括网络中各节点能力、邻居关系、各设备SID等信息。其中,边界网关协议-链路状态(border gateway protocol link-state,BGP-LS)是常用的收集网络的链路状态信息的一种方式,BGP-LS主要包括三种路由,分别用来携带节点、链路和路由前缀信息,三种路由相互配合,共同完成链路状态信息的传输。例如,在图2所示的业务链场景示例中,通过BGP-LS将收集的链路状态信息抽象成节点、链路、前缀上报给控制器。在一个示例中,第一网络设备可以通过BGP-LS报文将段标识和其对应的语义名称发送给目标设备。在另一个示例中,第一网络设备还可以 通过PCEP协议报文将段标识和其对应的语义名称发送给目标设备。本申请对第一网络设备通过什么形式将段标识和其对应的语义名称发送给目标设备不做限定。Optionally, the message further includes link state information of the network, where the link state information of the network includes information such as the capability of each node in the network, the neighbor relationship, and the SID of each device. Among them, border gateway protocol link-state (BGP-LS) is a commonly used way to collect link state information of the network. BGP-LS mainly includes three routes, which are used to carry nodes respectively. , link and route prefix information, the three routes cooperate with each other to complete the transmission of link state information. For example, in the example of the service chain scenario shown in FIG. 2 , the collected link state information is abstracted into nodes, links, and prefixes through BGP-LS and reported to the controller. In one example, the first network device may send the segment identifier and its corresponding semantic name to the target device through a BGP-LS packet. In another example, the first network device may also send the segment identifier and its corresponding semantic name to the target device through a PCEP protocol message. This application does not limit the form in which the first network device sends the segment identifier and its corresponding semantic name to the target device.
S103、目标设备保存关联网络设备的语义名称和段标识的关联关系。S103: The target device stores the association relationship between the semantic name of the associated network device and the segment identifier.
目标设备保存接收到的关联网络设备的语义名称和段标识的关联关系。The target device saves the received association relationship between the semantic name of the associated network device and the segment identifier.
可以看到,第一网络设备获取到关联设备的段标识对应的语义名称,该语义名称用于指示段标识的含义,含义可以为用途、功能、去向哪个网络设备、去向哪个SID等,第一网络设备将报文发送至目标设备,目标设备接收到第一网络设备发送的报文,报文中包括关联网络设备的段标识及语义名称,会保存关联网络设备的段标识和语义名称的关联关系。本实施例中,可以通过人工静态配置的方式或关联网络设备动态生成的方式配置语义名称,也可以通过控制器、管理设备发送配置信息至关联网络设备,关联网络设备根据配置信息配置语义名称的方式配置语义名称,为段标识配置语义名称可以清晰地知道该段标识的功能、作用或去向等,便于根据语义名称对段标识进行操作。It can be seen that the first network device obtains the semantic name corresponding to the segment identifier of the associated device, and the semantic name is used to indicate the meaning of the segment identifier. The network device sends the message to the target device, and the target device receives the message sent by the first network device. The message includes the segment identifier and semantic name of the associated network device, and the association between the segment identifier and semantic name of the associated network device will be saved. relation. In this embodiment, the semantic name can be configured by manual static configuration or dynamically generated by the associated network device, or the controller and the management device can send configuration information to the associated network device, and the associated network device can configure the semantic name according to the configuration information. The semantic name is configured by the method, and the semantic name is configured for the segment identifier, so that the function, function or destination of the segment identifier can be clearly known, and it is convenient to operate the segment identifier according to the semantic name.
本申请提供了又一种语义名称获取方法,参考图5所示,图5为本申请提供的一种语义名称获取方法的流程示意图,该方法包括但不限于以下S201~S207内容的描述。The present application provides another method for acquiring semantic names. Referring to FIG. 5 , FIG. 5 is a schematic flowchart of a method for acquiring semantic names provided by the present application. The method includes but is not limited to the following descriptions of S201 to S207 .
S201、第一网络设备获取关联网络设备的段标识对应的语义名称。S201. The first network device acquires the semantic name corresponding to the segment identifier of the associated network device.
S202、第一网络设备将报文发送至目标设备,其中,报文包括关联网络设备的段标识和语义名称。S202. The first network device sends a packet to the target device, where the packet includes a segment identifier and a semantic name of the associated network device.
S203、目标设备保存关联网络设备的语义名称和段标识的关联关系。S203. The target device stores the association relationship between the semantic name of the associated network device and the segment identifier.
本实施例中,S201至S203的内容可参考S101至S103相关内容的描述,为了说明书的简洁,在此不再赘述。In this embodiment, for the content of S201 to S203, reference may be made to the description of the related content of S101 to S103, which is not repeated here for the sake of brevity of the description.
S204、目标设备显示关联网络设备的语义名称和段标识的关联关系。S204, the target device displays the association relationship between the semantic name of the associated network device and the segment identifier.
目标设备根据接收到的报文中段标识和语义名称的关联关系,将关联网络设备的语义名称和段标识的关联关系通过图形用户界面显示出来,网络管理人员可直观地看到SID对应的语义名称,根据语义名称获得该SID的含义等。The target device displays the relationship between the semantic name and the segment ID of the associated network device through the graphical user interface according to the relationship between the segment ID and the semantic name in the received message, and the network administrator can intuitively see the semantic name corresponding to the SID. , obtain the meaning of the SID according to the semantic name, etc.
在一种示例中,目标设备根据段标识和语义名称的关联关系还原出网络拓扑,目标设备将还原出的网络拓扑在业务视图中显示。例如,在图2示例中,关联网络设备为路由器R1,控制器还原出的网络拓扑图可以为如图6所示的示意图,即,在路由器R1的一端上显示SID1的语义名称,在另一端上显示SID2的语义名称,网络管理人员根据显示的语义名称即可知悉SID的含义。In an example, the target device restores the network topology according to the association relationship between the segment identifier and the semantic name, and the target device displays the restored network topology in the service view. For example, in the example of FIG. 2, the associated network device is router R1, and the network topology map restored by the controller can be the schematic diagram shown in FIG. 6, that is, the semantic name of SID1 is displayed on one end of router R1, and the semantic name of SID1 is displayed on the other end of router R1. The semantic name of SID2 is displayed on the display, and network administrators can know the meaning of SID according to the displayed semantic name.
在一种示例中,语义名称用于指示段标识用于去向第三网络设备,控制设备根据段标识和语义名称的关联关系还原出网络拓扑,并在业务视图中显示关联网络设备与第三网络设备之间的拓扑关系。例如,在图2的示例中,段标识SID1去向增值设备VAS1(第三网络设备),段标识SID2去向增值设备VAS2(第三网络设备),业务视图中的网络拓扑图可以为如图7所示的示意图,即,在路由器R1 上分别露出两个点,每个点表示一个SID,显示每个SID的名称及每个SID对应的语义名称,并显示SID1与增值设备VAS1之间的关系,SID2与增值设备VAS2之间的关系。SID的语义名称在控制器业务视图中的显示方式还可以为其他方式,本申请对此不做具体限定。In an example, the semantic name is used to indicate that the segment identifier is used to go to the third network device, and the control device restores the network topology according to the association relationship between the segment identifier and the semantic name, and displays the associated network device and the third network in the service view. Topological relationship between devices. For example, in the example of FIG. 2 , the segment identifier SID1 goes to the value-added device VAS1 (third network device), and the segment identifier SID2 goes to the value-added device VAS2 (third network device), and the network topology in the service view can be as shown in FIG. 7 . The schematic diagram shown, that is, two dots are exposed on the router R1, each dot represents a SID, the name of each SID and the semantic name corresponding to each SID are displayed, and the relationship between SID1 and value-added equipment VAS1 is displayed, The relationship between SID2 and value-added equipment VAS2. The manner of displaying the semantic name of the SID in the business view of the controller may also be other manners, which are not specifically limited in this application.
S205、目标设备生成转发策略。S205, the target device generates a forwarding policy.
目标设备生成转发策略,转发策略中包括关联网络设备的段标识,其中转发策略是根据语义名称获得的。本步骤中目标设备通常为控制设备,比如控制器。The target device generates a forwarding policy, and the forwarding policy includes the segment identifier of the associated network device, wherein the forwarding policy is obtained according to the semantic name. In this step, the target device is usually a control device, such as a controller.
在一种示例中,网络管理人员根据语义进行检索,检索结果中显示出语义名称和对应的段标识,确定所要使用的段标识,控制设备接收用户的选择(或点击)操作,并响应于用户的选择操作,自动生成转发策略。In one example, the network administrator searches according to the semantics, the semantic name and the corresponding segment identifier are displayed in the retrieval result, the segment identifier to be used is determined, the control device receives the user's selection (or click) operation, and responds to the user's selection (or click) operation. select operation to automatically generate a forwarding policy.
在一种示例中,目标设备在计算转发路径时,会自动获取语义名称的全部或部分,确定所要使用的段标识,计算出转发策略。In an example, when the target device calculates the forwarding path, it will automatically obtain all or part of the semantic name, determine the segment identifier to be used, and calculate the forwarding strategy.
通常,转发策略可以包含多个候选路径(candidate path),每个候选路径携带有优先级属性(preference)。在报文转发时,按照优先级由高至低完成选择候选路径,即优先级最高的候选路径为转发策略的首选路径,优先级次之的候选路径为转发策略的备选路径。转发策略中每个候选路径的核心为段列表序列,每个段列表序列即表示报文转发路径,转发策略中还指示网络中的设备需要遵循指定的路径进行报文转发。例如,参考图8,图8为本申请提供的一种转发策略示意图,在图8中,一个候选路径包含多个段列表,每个段列表携带有权重(weight)属性,在进行报文转发时,各个段列表所代表的设备或节点或链路或隧道可以根据权重来分担流量。在实际应用中,每个段列表都是一个显式IPv6或IPv4地址,段列表用于指示网络设备转发报文。Generally, a forwarding strategy can include multiple candidate paths, and each candidate path carries a priority attribute (preference). During packet forwarding, the candidate paths are selected according to the priority from high to low, that is, the candidate path with the highest priority is the preferred path of the forwarding policy, and the candidate path with the second priority is the candidate path of the forwarding policy. The core of each candidate path in the forwarding policy is a segment list sequence, each segment list sequence represents a packet forwarding path, and the forwarding policy also indicates that devices in the network need to follow the specified path to forward packets. For example, referring to FIG. 8, FIG. 8 is a schematic diagram of a forwarding strategy provided by the present application. In FIG. 8, a candidate path includes multiple segment lists, and each segment list carries a weight attribute. At the time, the devices or nodes or links or tunnels represented by each segment list can share the traffic according to the weight. In practical applications, each segment list is an explicit IPv6 or IPv4 address, and the segment list is used to instruct network devices to forward packets.
例如,在图2示例中,网络管理人员可以采用静态配置必经节点的模式,根据显示的语义名称先选择SID-of-VAS1所对应的SID1,再选择SID-of-VAS2所对应的SID2,这里的选择操作,可以理解为用户先点击SID-of-VAS1,再点击SID-of-VAS2,控制器响应于用户的选择,计算出转发策略。该示例中,转发策略中的段列表序列的排列可以为如图9所述的示意图,控制器在编排转发策略时,将路由器R1上的SID1和SID2编排在转发路径中,且段列表中SID1位于SID2的下层,网络中的节点进行报文转发时,会先经过SID1所在的端口,后经过SID2在的端口。For example, in the example of Figure 2, the network administrator can use the mode of statically configuring the nodes that must pass through, and first select the SID1 corresponding to the SID-of-VAS1 according to the displayed semantic name, and then select the SID2 corresponding to the SID-of-VAS2, The selection operation here can be understood as the user clicks SID-of-VAS1 first, and then clicks SID-of-VAS2, and the controller calculates the forwarding policy in response to the user's selection. In this example, the arrangement of the segment list sequence in the forwarding policy may be as shown in FIG. 9 , when the controller arranges the forwarding policy, the controller arranges SID1 and SID2 on the router R1 in the forwarding path, and SID1 in the segment list Located at the lower layer of SID2, when a node in the network forwards packets, it will first pass through the port where SID1 is located, and then pass through the port where SID2 is located.
在一种实际应用场景中,可能对某条链路还有带宽的要求,比如,要求某条链路的带宽为500Mbps/s。在这种情况下,控制器还会接收并响应于用户对链路带宽选择的操作,计算转发策略,最终获得满足条件的转发策略。In a practical application scenario, there may be bandwidth requirements for a certain link, for example, the bandwidth of a certain link is required to be 500 Mbps/s. In this case, the controller also receives and responds to the user's operation on link bandwidth selection, calculates the forwarding policy, and finally obtains a forwarding policy that satisfies the condition.
S206、目标设备下发转发策略。S206, the target device delivers a forwarding policy.
目标设备在计算得到转发策略后,会通过某种方式下发转发策略,一般来说,目标设备会将转发策略下发至首选路径的头节点。After the target device calculates and obtains the forwarding policy, it will deliver the forwarding policy in some way. Generally speaking, the target device will deliver the forwarding policy to the head node of the preferred path.
在一种示例中,目标设备与头节点之间建立BGP邻居,在计算出转发策略后,会通过BGP-LS或PCEP报文下发给首选路径的头节点。例如,在图2所示的业务 链场景中,控制器可以将转发策略通过BGP SR Policy下发至路由器PE1上。In an example, a BGP neighbor is established between the target device and the head node, and after calculating the forwarding policy, the BGP-LS or PCEP message is delivered to the head node of the preferred path. For example, in the service chain scenario shown in Figure 2, the controller can deliver the forwarding policy to the router PE1 through the BGP SR Policy.
S207、第一网络设备转发数据报文。S207. The first network device forwards the data packet.
将数据包导入转发策略中,封装数据报文,转发数据报文。网络中的某个节点或设备,一般是首选路径的头节点,接收到目标设备下发的转发策略后,将数据包导入转发策略中,封装数据报文,使得该网络中的网络设备按照段列表序列对应的顺序转发数据报文。Import the data packet into the forwarding policy, encapsulate the data packet, and forward the data packet. A node or device in the network, which is generally the head node of the preferred path, after receiving the forwarding policy issued by the target device, imports the data packet into the forwarding policy, and encapsulates the data packet, so that the network devices in the network follow the segment. The data packets are forwarded in the order corresponding to the list sequence.
可以看到,在为段标识配置语义名称,第一网络设备将包含语义名称及段标识的报文发送至目标设备之后,目标设备可以将关联网络设备的语义名称和段标识的关联关系显示出来,这样网络管理人员可以直观地根据语义名称知道段标识的功能或作用或用途或去向等;目标设备根据报文生成转发策略,然后将转发策略下发,关联网络设备根据转发策略转发数据报文。本实施例中,目标设备中保存语义名称和段标识的关联关系,根据语义名称生成转发策略,相比于现有技术中人工在控制设备去查找段标识,然后将查找到的段标识写入到指定位置,然后根据写入的段标识生成转发策略,本实施例更便于操作。It can be seen that, after configuring the semantic name for the segment identifier, after the first network device sends the message containing the semantic name and segment identifier to the target device, the target device can display the relationship between the semantic name of the associated network device and the segment identifier. , so that network managers can intuitively know the function or role or purpose or destination of the segment identifier based on the semantic name; the target device generates a forwarding policy based on the packet, and then issues the forwarding policy, and the associated network device forwards the data packet according to the forwarding policy. . In this embodiment, the association relationship between the semantic name and the segment identifier is stored in the target device, and the forwarding policy is generated according to the semantic name. Compared with the prior art, the segment identifier is manually searched in the control device, and then the found segment identifier is written into to a designated location, and then generate a forwarding policy according to the written segment identifier, which is more convenient for operation in this embodiment.
本申请实施例提供了又一种语义名称获取方法,参考图10所示,图10为本申请提供的一种语义名称获取方法的流程示意图,该方法包括但不限于以下S301~S304内容的描述。An embodiment of the present application provides another method for acquiring a semantic name. Referring to FIG. 10 , FIG. 10 is a schematic flowchart of a method for acquiring a semantic name provided by the present application. The method includes but is not limited to the following descriptions of S301 to S304 .
S301、第二网络设备获取段标识的语义名称。S301. The second network device acquires the semantic name of the segment identifier.
在一个示例中,第二网络设备与控制设备之间可以不为BGP邻居关系。In one example, the relationship between the second network device and the control device may not be a BGP neighbor relationship.
本步骤可参考S101相关内容的描述,为了说明书的简洁,在此不再赘述。For this step, reference may be made to the description of the relevant content of S101, and for the sake of brevity of the specification, details are not repeated here.
S302、第二网络设备发送报文至第一网络设备,其中,报文包括第二网络设备的段标识和语义名称。S302. The second network device sends a packet to the first network device, where the packet includes a segment identifier and a semantic name of the second network device.
第二网络设备发送报文至第一网络设备,相应的,第一网络设备接收第二网络设备发送的报文,报文用于指示第一网络设备根据语义名称获得段标识的含义。该报文可以为IGP协议报文或BGP协议报文,或其他形式的报文。该报文中包括第二网络设备的段标识和语义名称,具体为,该报文包括段标识类型-长度-值(type-length-value,TLV)字段,TLV字段中又包括类型子TLV,又可称为sub-TLV,子TLV中的值为语义名称,类型为语义名称的类型,长度为语义名称的长度。The second network device sends a message to the first network device, and correspondingly, the first network device receives the message sent by the second network device, and the message is used to instruct the first network device to obtain the meaning of the segment identifier according to the semantic name. The message may be an IGP protocol message, a BGP protocol message, or other forms of messages. The message includes a segment identifier and a semantic name of the second network device, specifically, the message includes a segment identifier type-length-value (type-length-value, TLV) field, and the TLV field also includes a type sub-TLV, Also called sub-TLV, the value in the sub-TLV is the semantic name, the type is the type of the semantic name, and the length is the length of the semantic name.
参考图11所示,图11为本申请提供的一种子TLV字段的示意图,子TLV由类型Type、长度Length和值Value组成,其中值Value即为SID的语义名称,长度用于指示该子TLV的长度,该类型字段用于指示该子TLV为语义名称。在一个示例中,Value长度为可变长,最大不超过255*8比特,Length长度为8比特,Type长度为8比特。Referring to Fig. 11, Fig. 11 is a schematic diagram of a sub-TLV field provided by the application. The sub-TLV is composed of type Type, length Length and value Value, wherein value Value is the semantic name of SID, and length is used to indicate the sub-TLV. The length of the type field is used to indicate that the sub-TLV is a semantic name. In an example, the length of Value is variable, and the maximum length is 255*8 bits, the length of Length is 8 bits, and the length of Type is 8 bits.
第一网络设备接收到第二网络设备发送的报文,从该报文中获得第二网络设备的段标识以及与其对应语义名称。例如,图2所示的业务链场景属于一个自治系统内,所以路由器R1将内部网关协议报文发送至路由器反射器RR,路由器反 射器RR获得了路由器R1的段标识的语义名称,其中,内部网关协议报文可以为ISIS协议报文或者OSPF协议报文,或其他形式的报文。The first network device receives the message sent by the second network device, and obtains the segment identifier of the second network device and the corresponding semantic name from the message. For example, the service chain scenario shown in Figure 2 belongs to an autonomous system, so the router R1 sends the interior gateway protocol packet to the router reflector RR, and the router reflector RR obtains the semantic name of the segment identifier of the router R1. The gateway protocol message may be an ISIS protocol message, an OSPF protocol message, or other forms of messages.
S303、第一网络设备发送报文至控制设备,报文包括第二网络设备的段标识和语义名称。S303. The first network device sends a message to the control device, where the message includes the segment identifier and the semantic name of the second network device.
在一个示例中,第一网络设备可以为与控制器建立了BGP邻居的设备,可以通过BGP-LS或PCEP报文将报文发送至控制设备。例如,在图2示例中,第一网络设备可以为路由器反射器RR(图中未示出),路由器R1将报文发送至路由器反射器RR,路由器反射器RR将报文上传至控制设备。In an example, the first network device may be a device that has established a BGP neighbor relationship with the controller, and may send the packet to the control device through a BGP-LS or PCEP packet. For example, in the example of FIG. 2 , the first network device may be a router reflector RR (not shown in the figure), the router R1 sends the packet to the router reflector RR, and the router reflector RR uploads the packet to the control device.
S304、控制设备保存第二网络设备的语义名称和段标识的关联关系。S304. The control device saves the association relationship between the semantic name of the second network device and the segment identifier.
可以看到,本实施例中,为第二网络设备的段标识配置语义名称,然后第二网络设备将报文发送至第一网络设备,报文中包括第二网络设备的段标识和语义名称,第一网络设备再将报文发送至控制设备,控制设备保存段标识和语义名称的关联关系。其中,报文为IGP协议报文或BGP协议报文。本实施例中,为第二网络设备的段标识配置语义名称,便于控制设备根据语义名称对第二网络设备的段标识进行操作。It can be seen that, in this embodiment, a semantic name is configured for the segment identifier of the second network device, and then the second network device sends a packet to the first network device, and the packet includes the segment identifier and semantic name of the second network device. , the first network device sends the message to the control device, and the control device saves the association relationship between the segment identifier and the semantic name. The message is an IGP protocol message or a BGP protocol message. In this embodiment, a semantic name is configured for the segment identifier of the second network device, so that the control device can operate the segment identifier of the second network device according to the semantic name.
本实施例提供了又一种语义名称获取方法,参考图12所示,图12为本申请提供的一种语义名称获取方法的流程示意图,该方法包括但不限于以下S401~S408内容的描述。This embodiment provides another method for acquiring semantic names. Referring to FIG. 12 , FIG. 12 is a schematic flowchart of a method for acquiring semantic names provided by this application. The method includes but is not limited to the following descriptions of S401 to S408 .
S401、第二网络设备获取段标识的语义名称。S401. The second network device acquires the semantic name of the segment identifier.
S402、第二网络设备发送报文至第一网络设备,其中,报文包括第二网络设备的段标识和语义名称。S402. The second network device sends a packet to the first network device, where the packet includes a segment identifier and a semantic name of the second network device.
S403、第一网络设备发送报文至控制设备,报文包括第二网络设备的段标识和语义名称。S403. The first network device sends a message to the control device, where the message includes a segment identifier and a semantic name of the second network device.
S404、控制设备保存第二网络设备的语义名称和段标识的关联关系。S404. The control device saves the association relationship between the semantic name of the second network device and the segment identifier.
S405、控制设备显示第二网络设备的语义名称和段标识的关联关系。S405. The control device displays the association relationship between the semantic name of the second network device and the segment identifier.
S406、控制设备生成转发策略。S406. The control device generates a forwarding policy.
S407、控制设备下发转发策略。S407. The control device delivers a forwarding policy.
S408、第二网络设备转发数据报文。S408. The second network device forwards the data packet.
本实施例中,S401至S404的内容可参考S301至S304相关内容的描述,S405至S408的内容可参考S204至S207相关内容的描述,为了说明书的简洁,在此不再赘述。In this embodiment, the content of S401 to S404 can refer to the description of the related content of S301 to S304, and the content of S405 to S408 can refer to the description of the related content of S204 to S207.
可以看到,本实施例中,控制设备在获得第二网络设备的段标识和语义名称后,根据语义名称生成转发策略,相比于现有技术中人工在控制设备去查找段标识,然后将查找到的段标识写入到指定位置,然后根据写入的段标识生成转发策略,本实施例更便于操作。It can be seen that in this embodiment, after obtaining the segment identifier and semantic name of the second network device, the control device generates a forwarding policy according to the semantic name. Compared with the prior art, the control device manually searches for the segment identifier, and then uses The found segment identifier is written to a specified location, and then a forwarding policy is generated according to the written segment identifier, which is more convenient for operation in this embodiment.
为了更加清楚地理解本申请,下面结合图13所示的应用场景示例性的对本申 请提供的方法实施例进行描述。In order to understand the present application more clearly, the method embodiments provided by the present application are exemplarily described below with reference to the application scenario shown in FIG. 13 .
在如图13所示的场景中,路由器PE3、路由器ASBR1和路由器ASBR2构成城域网1,路由器PE4、路由器ASBR3和路由器ASBR4构成城域网2,城域网1和城域网2之间存在某运营商的两个骨干网:骨干网1和骨干网2。本示例中,路由器ASBR1和路由器ASBR2上分别配置了BGP EPE(Egress Peer Engineering)出口对等体流量工程,BGP EPE能够分别动态地为路由器ASBR1的出接口和路由器ASBR2的出接口配置BGP EPE SID,包括:SID1和SID2,为了便于描述,本申请实施例中,将为路由器ASBR1与骨干网1相连的出接口配置的SID称为SID1,将为路由器ASBR1与骨干网2相连的出接口配置的SID称为SID2。同理,ASBR3和ASBR4上也分别配置了BGP EPE出口对等体流量工程,用于动态地为ASBR3的出接口和ASBR4的出接口配置BGP EPE SID。用户现在需要将某些业务通过路由器ASBR1的出接口SID1承载在骨干网1上,将某些业务通过路由器ASBR1的出接口SID2承载在骨干网2上,这种情况下,可以通过为路由器ASBR1端口配置语义名称,然后在控制器的业务视图中根据语义名称选择相应的端口去部署业务。In the scenario shown in Figure 13, router PE3, router ASBR1, and router ASBR2 constitute MAN 1, router PE4, router ASBR3, and router ASBR4 constitute MAN 2, and there exists a network between MAN 1 and MAN 2. Two backbone networks of an operator: backbone network 1 and backbone network 2. In this example, BGP EPE (Egress Peer Engineering) egress peer traffic engineering is configured on router ASBR1 and router ASBR2 respectively. BGP EPE can dynamically configure BGP EPE SIDs for the outbound interface of router ASBR1 and the outbound interface of router ASBR2 respectively. Including: SID1 and SID2, for the convenience of description, in the embodiment of this application, the SID configured for the outbound interface connecting the router ASBR1 to the backbone network 1 is called SID1, and the SID configured for the outgoing interface connecting the router ASBR1 to the backbone network 2 Called SID2. Similarly, BGP EPE egress peer traffic engineering is also configured on ASBR3 and ASBR4 to dynamically configure BGP EPE SIDs for the outgoing interface of ASBR3 and the outgoing interface of ASBR4. The user now needs to carry some services on the backbone network 1 through the outbound interface SID1 of the router ASBR1, and carry some services on the backbone network 2 through the outbound interface SID2 of the router ASBR1. Configure the semantic name, and then select the corresponding port to deploy the service according to the semantic name in the service view of the controller.
图5或图12所描述的方法实施例可应用于上述场景中。首先为路由器ASBR1的SID1配置语义名称EPE-SID1-to-骨干网1,其中EPE-SID1-to-骨干网1用于指示段标识SID1为去向骨干网1的SID,为SID2配置语义名称EPE-SID2-to-骨干网2,EPE-SID2-to-骨干网2用于指示段标识SID2为去向骨干网2的SID。然后,路由器ASBR1将报文发送至控制设备,相应的,控制设备接收到报文,其中报文中包括SID1、EPE-SID1-to-骨干网1、SID2和EPE-SID2-to-骨干网2。其次,控制设备保存并通过图形用户界面显示SID1和EPE-SID1-to-骨干网1的关联关系,以及SID2和EPE-SID2-to-骨干网2的关联关系。最后,控制设备根据语义名称生成转发策略,并将转发策略发送至底层网络中,底层网络中的各个网络设备根据转发策略转发数据报文。The method embodiments described in FIG. 5 or FIG. 12 can be applied to the above scenarios. First, configure the semantic name EPE-SID1-to-backbone network 1 for SID1 of router ASBR1, where EPE-SID1-to-backbone network 1 is used to indicate that the segment identifier SID1 is the SID going to backbone network 1, and configure the semantic name EPE- SID2-to-backbone network 2, EPE-SID2-to-backbone network 2 is used to indicate that the segment identifier SID2 is the SID destined for the backbone network 2. Then, router ASBR1 sends the packet to the control device, and accordingly, the control device receives the packet, which includes SID1, EPE-SID1-to-backbone 1, SID2, and EPE-SID2-to-backbone 2 . Secondly, the control device saves and displays the association between SID1 and EPE-SID1-to-backbone 1, and the association between SID2 and EPE-SID2-to-backbone 2 through a graphical user interface. Finally, the control device generates a forwarding policy according to the semantic name, and sends the forwarding policy to the underlying network, and each network device in the underlying network forwards the data packet according to the forwarding policy.
其中,若路由器ASBR1不能与控制设备进行交互,则可以将SID和其对应的语义名称发送至可与控制设备交互的其他网络设备,如路由器ASBR2,由路由器ASBR2将SID和其对应的语义名称发送至控制设备。Among them, if the router ASBR1 cannot interact with the control device, it can send the SID and its corresponding semantic name to other network devices that can interact with the control device, such as the router ASBR2, and the router ASBR2 sends the SID and its corresponding semantic name. to the control device.
在一种示例中,控制设备在业务视图中显示SID1和EPE-SID1-to-骨干网1的关联关系,以及SID2和EPE-SID2-to-骨干网2的关联关系,参考图14所示,图14为本申请实施例提供的一种语义名称在业务视图中的显示示意图,网络管理人员通过业务视图可直观地看到路由器ASBR1上有两个SID,其中SID1的语义名称为EPE-SID1-to-骨干网1,SID2的语义名称为EPE-SID2-to-骨干网2。本实施例中,对SID及语义名称的显示方式不做具体限定。In an example, the control device displays the relationship between SID1 and EPE-SID1-to-backbone 1, and the relationship between SID2 and EPE-SID2-to-backbone 2 in the service view, as shown in FIG. 14 , FIG. 14 is a schematic diagram of displaying a semantic name in a service view provided by an embodiment of the present application. A network administrator can intuitively see through the service view that there are two SIDs on router ASBR1, where the semantic name of SID1 is EPE-SID1- to-backbone 1, the semantic name of SID2 is EPE-SID2-to-backbone 2. In this embodiment, the display manner of the SID and the semantic name is not specifically limited.
图15是本申请实施例提供的一种语义名称获取装置600的结构示意图,装置600具有上述图3或图5或图10或图12中的第一网络设备或第二网络设备或第三网络设备的任意功能。如图15所示,装置600包括:发送单元601,用于发送第一报文至目标设备,其中第一报文中包括关联设备的段标识和语义名称,例如,发送 单元601用于执行图3中的S102、图5中的S202、图10中的S303及图12中的S403等;接收单元602,用于接收或获取报文,例如,接收单元602用于执行图3中的S101、图5中的S201、图10中的S302及图12中的S402等。可选的,该语义名称获取装置600还包括处理单元(图中未示出),用于处理与上述获取语义名称、管理语义名称动步骤。FIG. 15 is a schematic structural diagram of an apparatus 600 for obtaining a semantic name provided by an embodiment of the present application. The apparatus 600 has the first network device or the second network device or the third network in the above-mentioned FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 . any function of the device. As shown in FIG. 15, the apparatus 600 includes: a sending unit 601, configured to send a first packet to a target device, where the first packet includes a segment identifier and a semantic name of the associated device, for example, the sending unit 601 is configured to execute the S102 in 3, S202 in FIG. 5, S303 in FIG. 10, S403 in FIG. 12, etc.; the receiving unit 602 is used to receive or obtain a message, for example, the receiving unit 602 is used to perform S101 in FIG. 3, S201 in FIG. 5 , S302 in FIG. 10 , S402 in FIG. 12 , and the like. Optionally, the semantic name acquiring apparatus 600 further includes a processing unit (not shown in the figure), which is used for processing and the above-mentioned steps of acquiring and managing the semantic name.
语义名称获取装置600对应于上述方法实施例中的第一网络设备,语义名称获取装置600中的各单元和上述其他操作和/或功能分别为了实现方法实施例中的第一网络设备所实施的各种步骤和方法,具体细节可参见上述方法的描述,为了简洁,在此不再赘述。The semantic name obtaining apparatus 600 corresponds to the first network device in the above method embodiment, and the units in the semantic name obtaining apparatus 600 and the other operations and/or functions described above are respectively implemented to implement the first network device in the method embodiment. For the specific details of various steps and methods, reference may be made to the descriptions of the above methods, which are not repeated here for brevity.
语义名称获取装置600在进行语义名称获取时,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将语义名称获取装置600的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。When the semantic name obtaining device 600 obtains the semantic name, only the division of the above-mentioned functional units is used for illustration. The internal structure is divided into different functional units to complete all or part of the functions described above.
图16是本申请实施例提供的又一种语义名称获取装置700的结构示意图,装置700具有上述图3或图5或图10或图12中的目标设备的任意功能。如图16所示,装置700包括:接收单元701,用于接收第一网络设备发送的报文,其中报文中包括关联设备的段标识和语义名称,例如,接收单元701用于执行图3中的S102、图5中的S202、图10中的S303及图12中的S403等;保存单元702,用于保存语义名称和段标识的关联关系,例如执行S404、S304、S203和S103;显示单元703,用于显示语义名称和段标识的关联关系,或者当语义名称指示段标识去向第二网络设备时,显示单元703用于在业务视图中显示关联网络设备和第二网络设备之间的拓扑关系,例如执行S204、S405;生成单元704,用于生成转发策略,例如执行S205、S406;发送单元705,用于发送转发策略,例如,发送单元用于执行S206、S407等。FIG. 16 is a schematic structural diagram of another semantic name obtaining apparatus 700 provided by an embodiment of the present application. The apparatus 700 has any function of the target device in FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 . As shown in FIG. 16 , the apparatus 700 includes: a receiving unit 701, configured to receive a packet sent by a first network device, wherein the packet includes a segment identifier and a semantic name of the associated device, for example, the receiving unit 701 is configured to execute the process shown in FIG. 3 S102 in FIG. 5, S202 in FIG. 5, S303 in FIG. 10, S403 in FIG. 12, etc.; storage unit 702, for saving the association relationship between semantic names and segment identifiers, for example, performing S404, S304, S203 and S103; display The unit 703 is used to display the association relationship between the semantic name and the segment identifier, or when the semantic name indicates that the segment identifier goes to the second network device, the display unit 703 is used to display the relationship between the associated network device and the second network device in the service view. Topological relationship, for example, perform S204, S405; generating unit 704, for generating a forwarding policy, for example, performing S205, S406; sending unit 705, for sending a forwarding policy, for example, the sending unit is used for performing S206, S407 and so on.
语义名称获取装置700对应于上述方法实施例中的目标设备或控制设备,语义名称获取装置700中的各单元和上述其他操作和/或功能分别为了实现方法实施例中的目标设备或控制设备所实施的各种步骤和方法,具体细节可参见上述方法的描述,为了简洁,在此不再赘述。The semantic name obtaining apparatus 700 corresponds to the target device or the control device in the above method embodiments, and the units in the semantic name obtaining apparatus 700 and the other operations and/or functions mentioned above are respectively for realizing the target device or the control device in the method embodiment. For the specific details of the various steps and methods to be implemented, reference may be made to the descriptions of the above methods, which are not repeated here for brevity.
语义名称获取装置700在进行网络管理时,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将语义名称获取装置700的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。When the semantic name obtaining device 700 performs network management, only the division of the above-mentioned functional units is used for illustration. The structure is divided into different functional units to perform all or part of the functions described above.
与本申请提供的方法实施例以及虚拟装置实施例相对应,本申请实施例还提供了一种网络设备,下面对网络设备的硬件结构进行介绍。Corresponding to the method embodiments and the virtual apparatus embodiments provided in the present application, the embodiments of the present application further provide a network device, and the hardware structure of the network device is introduced below.
下面描述的网络设备800或网络设备1000对应于上述方法实施例中的第一语义名称获取装置600或第二语义名称获取装置700,网络设备800或网络设备1000 中的各硬件、模块和上述其他操作和/或功能分别为了实现方法实施例中的第一语义名称获取装置600或第二语义名称获取装置700所实施的各种步骤和方法,关于网络设备800或网络设备1000如何获取语义名称的以及获取语义名称之后的相关处理等详细流程,具体细节可参见上述方法实施例,为了简洁,在此不再赘述。其中,上文图3或图5或图10或图12的各步骤通过网络设备800或网络设备1000的处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。The network device 800 or the network device 1000 described below corresponds to the first semantic name obtaining device 600 or the second semantic name obtaining device 700 in the above method embodiments, and the hardware, modules and the above-mentioned other devices in the network device 800 or the network device 1000 The operations and/or functions are respectively in order to realize various steps and methods implemented by the first semantic name obtaining apparatus 600 or the second semantic name obtaining apparatus 700 in the method embodiment, and the information about how the network device 800 or the network device 1000 obtains the semantic name. As well as the detailed process of the related processing after acquiring the semantic name, the specific details can be found in the foregoing method embodiments, which are not repeated here for brevity. The steps in FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 above are completed by instructions in the form of hardware integrated logic circuits or software in the network device 800 or the processor of the network device 1000 . The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. 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, detailed description is omitted here.
网络设备800或网络设备1000对应于上述虚拟装置实施例中的装置600或装置700,装置600或装置700中的每个功能单元采用网络设备800或网络设备1000的软件实现。换句话说,装置600或装置700包括的功能单元为网络设备800或网络设备1000的处理器读取存储器中存储的程序代码后生成的。The network device 800 or the network device 1000 corresponds to the device 600 or the device 700 in the above virtual device embodiment, and each functional unit in the device 600 or the device 700 is implemented by the software of the network device 800 or the network device 1000 . In other words, the functional units included in the apparatus 600 or the apparatus 700 are generated after the processor of the network device 800 or the network device 1000 reads the program code stored in the memory.
参见图17,图17示出了本申请一个示例性实施例提供的网络设备800的结构示意图,该网络设备800可以配置为第一网络设备或目标设备。该网络设备800可以由一般性的总线体系结构来实现。Referring to FIG. 17, FIG. 17 shows a schematic structural diagram of a network device 800 provided by an exemplary embodiment of the present application, where the network device 800 may be configured as a first network device or a target device. The network device 800 may be implemented by a general bus architecture.
网络设备800包括至少一个处理器801、通信总线802、存储器803以及至少一个通信接口804。 Network device 800 includes at least one processor 801 , communication bus 802 , memory 803 , and at least one communication interface 804 .
处理器801可以是一个通用CPU、NP、微处理器、或者可以是一个或多个用于实现本申请方案的集成电路,例如,专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 801 may be a general-purpose CPU, NP, microprocessor, or may be one or more integrated circuits for implementing the solutions of the present application, such as application-specific integrated circuits (ASIC), programmable logic A device (programmable logic device, PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof.
通信总线802用于在上述组件之间传送信息。通信总线802可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 802 is used to transfer information between the aforementioned components. The communication bus 802 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
存储器803可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,也可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器803可以是独立存在,并通过通信总线802与处理器801相连接,存储器803 也可以和处理器801集成在一起。The memory 803 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be random access memory (RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto. The memory 803 may exist independently and be connected to the processor 801 through the communication bus 802 , and the memory 803 may also be integrated with the processor 801 .
通信接口804使用任何收发器一类的装置,用于与其它设备或通信网络通信。通信接口804包括有线通信接口,还可以包括无线通信接口。其中,有线通信接口例如可以为以太网接口,以太网接口可以是光接口,电接口或其组合。无线通信接口可以为无线局域网(wireless local area networks,WLAN)接口,蜂窝网络通信接口或其组合等。 Communication interface 804 uses any transceiver-like device for communicating with other devices or a communication network. The communication interface 804 includes a wired communication interface, and may also include a wireless communication interface. The wired communication interface may be, for example, an Ethernet interface, and the Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof, and the like.
在具体实现中,作为一种实施例,处理器801可以包括一个或多个CPU,如图17中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 801 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 17 .
在具体实现中,作为一种实施例,网络设备800可以包括多个处理器,如图17中所示的处理器801和处理器805。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the network device 800 may include multiple processors, such as the processor 801 and the processor 805 shown in FIG. 17 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
在具体实现中,作为一种实施例,网络设备800还可以包括输出设备806和输入设备807。输出设备806和处理器801通信,可以以多种方式来显示信息。例如,输出设备806可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备807和处理器801通信,可以以多种方式接收用户的输入,例如,输入设备807可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the network device 800 may further include an output device 806 and an input device 807 . The output device 806 is in communication with the processor 801 and can display information in a variety of ways. For example, the output device 806 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like . The input device 807 communicates with the processor 801 and can receive user input in various ways. For example, the input device 807 can be a mouse, a keyboard, a touch screen device or a sensor device.
在一些实施例中,存储器803用于存储执行本申请方案的程序代码810,处理器801可以执行存储器803中存储的程序代码810。也即是,网络设备800可以通过处理器801以及存储器803中的程序代码810,来实现图3或图5或图10或图12的方法实施例提供的方法。In some embodiments, the memory 803 is used to store the program code 810 for executing the solutions of the present application, and the processor 801 can execute the program code 810 stored in the memory 803 . That is, the network device 800 can implement the method provided by the method embodiment of FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 through the processor 801 and the program code 810 in the memory 803 .
本申请实施例的网络设备800可对应于上述各个方法实施例中的第一网络设备或目标设备,并且,该网络设备800中的处理器801、通信接口804等可以实现上述各个方法实施例中的设备所具有的功能和/或所实施的各种步骤和方法。为了简洁,在此不再赘述。The network device 800 in this embodiment of the present application may correspond to the first network device or the target device in each of the above method embodiments, and the processor 801, the communication interface 804, etc. in the network device 800 may implement the above various method embodiments. The functions and/or the various steps and methods implemented by the device. For brevity, details are not repeated here.
装置600中的发送单元601、接收单元602可以相当于网络设备800中的通信接口804。The sending unit 601 and the receiving unit 602 in the apparatus 600 may be equivalent to the communication interface 804 in the network device 800 .
装置700中的接收单元701、发送单元705可以相当于网络设备800中的通信接口804;装置700中的保存单元702可以相当于网络设备800中的存储器803;装置700中的生成单元704可以相当于网络设备800中的处理器801;装置700中的显示单元703可以相当于网络设备800中的输出设备806。The receiving unit 701 and the sending unit 705 in the apparatus 700 may be equivalent to the communication interface 804 in the network device 800; the saving unit 702 in the apparatus 700 may be equivalent to the memory 803 in the network device 800; the generating unit 704 in the apparatus 700 may be equivalent The processor 801 in the network device 800 ; the display unit 703 in the apparatus 700 may be equivalent to the output device 806 in the network device 800 .
参见图18,图18示出了本申请一个示例性实施例提供的网络设备1000的结构示意图,该网络设备1000可以配置为第一网络设备或目标设备。网络设备1000包括:主控板1010和接口板1030。Referring to FIG. 18, FIG. 18 shows a schematic structural diagram of a network device 1000 provided by an exemplary embodiment of the present application, where the network device 1000 may be configured as a first network device or a target device. The network device 1000 includes: a main control board 1010 and an interface board 1030 .
主控板1010也称为主处理单元(main processing unit,MPU)或路由处理卡 (route processor card),主控板1010用于对网络设备1000中各个组件的控制和管理,包括路由计算、设备管理、设备维护、协议处理功能。主控板1010包括:中央处理器1011和存储器1012。The main control board 1010 is also called the main processing unit (main processing unit, MPU) or the route processor card (route processor card). The main control board 1010 is used to control and manage various components in the network device 1000 Management, equipment maintenance, protocol processing functions. The main control board 1010 includes: a central processing unit 1011 and a memory 1012 .
接口板1030也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板1030用于提供各种业务接口并实现数据包的转发,业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(flexible ethernet clients,FlexE Clients)。接口板1030包括:中央处理器1031、网络处理器1032、转发表项存储器1034和物理接口卡(physical interface card,PIC)1033。The interface board 1030 is also called a line processing unit (LPU), a line card (line card) or a service board. The interface board 1030 is used to provide various service interfaces and realize the forwarding of data packets. The service interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc. The Ethernet interfaces are, for example, flexible Ethernet service interfaces (flexible Ethernet service interfaces). ethernet clients, FlexE Clients). The interface board 1030 includes: a central processing unit 1031 , a network processor 1032 , a forwarding table entry storage 1034 and a physical interface card (PIC) 1033 .
接口板1030上的中央处理器1031用于对接口板1030进行控制管理,并与主控板1010上的中央处理器1011进行通信。The central processing unit 1031 on the interface board 1030 is used to control and manage the interface board 1030 and communicate with the central processing unit 1011 on the main control board 1010 .
网络处理器1032用于实现报文的转发处理,网络处理器1032的形态可以是转发芯片。具体而言,网络处理器1032用于基于转发表项存储器1034保存的转发表转发接收到的报文,如果报文的目的地址为网络设备1000的地址,则将该报文上送至CPU(如中央处理器1011)处理;如果报文的目的地址不是网络设备1000的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理包括:报文入接口的处理,转发表查找;下行报文的处理:转发表查找等等。The network processor 1032 is used to implement packet forwarding processing, and the form of the network processor 1032 may be a forwarding chip. Specifically, the network processor 1032 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 1034. If the destination address of the message is the address of the network device 1000, the message is sent to the CPU ( If the destination address of the message is not the address of the network device 1000, the next hop and outgoing interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to The outbound interface corresponding to the destination address. Wherein, the processing of the uplink packet includes: processing the incoming interface of the packet, and searching the forwarding table; processing of the downlink packet: searching the forwarding table, and so on.
物理接口卡1033用于实现物理层的对接功能,原始的流量由此进入接口板1030,以及处理后的报文从该物理接口卡1033发出。物理接口卡1033也称为子卡,可安装在接口板1030上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器1032处理。在一些实施例中,中央处理器也可执行网络处理器1032的功能,比如基于通用CPU实现软件转发,从而物理接口卡1033中不需要网络处理器1032。The physical interface card 1033 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 1030 through this, and the processed packets are sent from the physical interface card 1033 . The physical interface card 1033 is also called a daughter card, which can be installed on the interface board 1030 and is responsible for converting the optoelectronic signal into a message and forwarding the message to the network processor 1032 for processing after checking the validity of the message. In some embodiments, the central processing unit may also perform the functions of the network processor 1032 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1032 is not required in the physical interface card 1033 .
可选地,网络设备1000包括多个接口板,例如网络设备1000还包括接口板1040,接口板1040包括:中央处理器1041、网络处理器1042、转发表项存储器1044和物理接口卡1043。Optionally, the network device 1000 includes multiple interface boards, for example, the network device 1000 further includes an interface board 1040 , and the interface board 1040 includes a central processing unit 1041 , a network processor 1042 , a forwarding table entry storage 1044 and a physical interface card 1043 .
可选地,网络设备1000还包括交换网板1020,交换网板1020也可以称为交换网板单元(switch fabric unit,SFU)。在网络设备有多个接口板1030的情况下,交换网板1020用于完成各接口板之间的数据交换,例如,接口板1030和接口板1040之间可以通过交换网板1020通信。Optionally, the network device 1000 further includes a switch fabric board 1020, and the switch fabric board 1020 may also be referred to as a switch fabric unit (switch fabric unit, SFU). When the network device has multiple interface boards 1030 , the switch fabric board 1020 is used to complete data exchange between the interface boards. For example, the switch fabric board 1020 can communicate between the interface boards 1030 and the interface boards 1040 .
主控板1010和接口板1030耦合。例如,主控板1010、接口板1030和接口板1040,以及交换网板1020之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板1010和接口板1030之间建立进程间通信协议(inter-process communication,IPC)通道,主控板1010和接口板1030之间通过IPC通道进行通信。The main control board 1010 and the interface board 1030 are coupled. For example, the main control board 1010, the interface board 1030, the interface board 1040, and the switch fabric board 1020 are connected to the system backplane through a system bus to implement intercommunication. In a possible implementation manner, an inter-process communication (inter-process communication, IPC) channel is established between the main control board 1010 and the interface board 1030, and the main control board 1010 and the interface board 1030 communicate through the IPC channel.
在逻辑上,网络设备1000包括控制面和转发面,控制面包括主控板1010和中央处理器1031,转发面包括执行转发的各个组件,比如转发表项存储器1034、物 理接口卡1033和网络处理器1032。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器1032基于控制面下发的转发表对物理接口卡1033收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器1034中,在有些实施例中,控制面和转发面可以完全分离,不在同一设备上。Logically, the network device 1000 includes a control plane and a forwarding plane, the control plane includes the main control board 1010 and the central processing unit 1031, and the forwarding plane includes various components that perform forwarding, such as the forwarding entry storage 1034, the physical interface card 1033 and the network processing device 1032. The control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, configuring and maintaining device status, etc. The control plane delivers the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 1032 is based on the control plane. The delivered forwarding table forwards the packets received by the physical interface card 1033 by looking up the table. The forwarding table issued by the control plane may be stored in the forwarding table entry storage 1034. In some embodiments, the control plane and the forwarding plane may be completely separated and not on the same device.
如果网络设备1000被配置为第一网络设备,物理接口卡1033接收或获取关联网络设备的报文,发送给网络处理器1032,网络处理器1032经过处理后,再将报文从物理接口卡1033发送出去。If the network device 1000 is configured as the first network device, the physical interface card 1033 receives or obtains the packet of the associated network device, and sends it to the network processor 1032. After the network processor 1032 processes the packet, the packet is sent from the physical interface card 1033 send out.
如果网络设备1000被配置为目标设备或控制设备,物理接口卡1033接收第一网络设备发送的报文,报文中包括关联网络设备的段标识和语义名称,发送给网络处理器1032,网络处理器1032根据语义名称生成转发策略,并将该转发策略通过物理接口卡1033发送给网络设备。If the network device 1000 is configured as a target device or a control device, the physical interface card 1033 receives a packet sent by the first network device, and the packet includes the segment identifier and semantic name of the associated network device, and sends it to the network processor 1032 for processing by the network. The controller 1032 generates a forwarding policy according to the semantic name, and sends the forwarding policy to the network device through the physical interface card 1033 .
装置600中的发送单元601,接收单元602相当于网络设备1000中的物理接口卡1033。The sending unit 601 and the receiving unit 602 in the apparatus 600 are equivalent to the physical interface card 1033 in the network device 1000 .
装置700中的接收单元701、发送单元705相当于网络设备1000中的物理接口卡1033;装置700中的生成单元704可以相当于网络处理器1032或中央处理器1011;装置700中的保存单元702相当于网络设备1000中的转发表项存储器1034或存储器1012;显示单元703相当于网络设备1000中的主控板1010。The receiving unit 701 and the sending unit 705 in the apparatus 700 are equivalent to the physical interface card 1033 in the network device 1000 ; the generating unit 704 in the apparatus 700 may be equivalent to the network processor 1032 or the central processing unit 1011 ; the saving unit 702 in the apparatus 700 It is equivalent to the forwarding entry storage 1034 or the storage 1012 in the network device 1000 ; the display unit 703 is equivalent to the main control board 1010 in the network device 1000 .
本申请实施例中接口板1040上的操作与接口板1030的操作一致,为了简洁,不再赘述。本实施例的网络设备1000可对应于上述各个方法实施例中的第一网络设备或目标设备,该网络设备1000中的主控板1010、接口板1030和/或1040可以实现上述各个方法实施例中的第一网络设备或目标设备所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。The operations on the interface board 1040 in the embodiment of the present application are the same as the operations on the interface board 1030, and are not repeated for brevity. The network device 1000 in this embodiment may correspond to the first network device or the target device in the foregoing method embodiments, and the main control board 1010, the interface board 1030 and/or 1040 in the network device 1000 may implement the foregoing method embodiments For the sake of brevity, the functions possessed by the first network device or the target device and/or the various steps implemented are not repeated here.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。可选地,网络设备的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that there may be one or more main control boards, and when there are multiple main control boards, they may 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 switch fabric boards, or there may be one or more boards. When there are multiple boards, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the network device does not need to switch the network board, and the interface board undertakes the processing function of the service data of the entire system. Under the distributed forwarding architecture, a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture. Optionally, the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board. The central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of equipment is low (for example, low-end switches or routers and other networks. equipment). The specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
在一些可能的实施例中,上述第一网络设备或目标设备可以实现为虚拟化设 备。In some possible embodiments, the above-mentioned first network device or target device may be implemented as a virtualized device.
例如,虚拟化设备可以是运行有用于发送报文功能的程序的虚拟机(virtual machine,VM),虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统,可以将虚拟机配置为网络设备。例如,可以基于通用的物理服务器结合网络功能虚拟化(network functions virtualization,NFV)技术来实现第一网络设备或目标设备,第一网络设备或目标设备为虚拟主机、虚拟路由器或虚拟交换机。本领域技术人员通过阅读本申请即可结合NFV技术在通用物理服务器上虚拟出具有上述功能的第一网络设备或目标设备,此处不再赘述。For example, the virtualization device may be a virtual machine (virtual machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (eg, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. The virtual machine can be configured as a network device. For example, the first network device or the target device may be implemented based on a general physical server in combination with a network functions virtualization (NFV) technology, where the first network device or the target device is a virtual host, a virtual router or a virtual switch. Those skilled in the art can virtualize a first network device or a target device having the above functions on a general physical server in combination with the NFV technology by reading this application, and details are not described herein again.
例如,虚拟化设备可以是容器,容器是一种用于提供隔离的虚拟化环境的实体,例如,容器可以是docker容器,可以将容器配置为第一网络设备或目标设备,例如,可以通过对应的镜像来创建出第一网络设备或目标设备,例如可以通过proxy-container(提供代理服务的容器)的镜像,为proxy-container创建2个容器实例,分别是容器实例proxy-container1、容器实例proxy-container2,将容器实例proxy-container1提供为第一网络设备,将容器实例proxy-container2提供为目标设备。采用容器技术实现时,第一网络设备或目标设备可以利用物理机的内核运行,多个第一网络设备或目标设备可以共享物理机的操作系统。通过容器技术可以将不同的第一网络设备或目标设备隔离开来。容器化的第一网络设备或目标设备可以在虚拟化的环境中运行,例如可以在虚拟机中运行,容器化的第一网络设备或目标设备也可以直接在物理机中运行。For example, the virtualization device can be a container, which is an entity used to provide an isolated virtualization environment. For example, the container can be a docker container, and the container can be configured as a first network device or a target device. The image of the proxy-container can be used to create the first network device or target device. For example, through the image of proxy-container (a container that provides proxy services), two container instances can be created for the proxy-container, namely the container instance proxy-container1 and the container instance proxy. -container2, provide the container instance proxy-container1 as the first network device, and provide the container instance proxy-container2 as the target device. When implemented using the container technology, the first network device or the target device can run using the kernel of the physical machine, and multiple first network devices or target devices can share the operating system of the physical machine. Different first network devices or target devices can be isolated through the container technology. The containerized first network device or target device may run in a virtualized environment, for example, may run in a virtual machine, and the containerized first network device or target device may also run directly in a physical machine.
例如,虚拟化设备可以是Pod,Pod是Kubernetes(Kubernetes是谷歌开源的一种容器编排引擎,英文简称为K8s)为部署、管理、编排容器化应用的基本单位。Pod可以包括一个或多个容器,同一个Pod中的每个容器通常部署在同一主机上,因此同一个Pod中的每个容器可以通过该主机进行通信,并且可以共享该主机的存储资源和网络资源。可以将Pod配置为第一网络设备或目标设备,例如,具体地,可以指令容器即服务(container as a service,CaaS,是一种基于容器的PaaS服务)来创建Pod,将Pod提供为第一网络设备或目标设备。For example, a virtualized device can be a Pod, and a Pod is Kubernetes (Kubernetes is a container orchestration engine open sourced by Google, abbreviated as K8s in English) as the basic unit for deploying, managing, and orchestrating containerized applications. A Pod can include one or more containers, and each container in the same Pod is usually deployed on the same host, so each container in the same Pod can communicate through the host and can share the host's storage resources and network resource. The Pod can be configured as the first network device or the target device, for example, specifically, a container as a service (container as a service, CaaS, which is a container-based PaaS service) can be instructed to create a Pod and provide the Pod as the first network device. Network device or target device.
当然,第一网络设备或目标设备还可以是其他虚拟化设备,在此不做一一列举。Of course, the first network device or the target device may also be other virtualized devices, which will not be listed here.
在一些可能的实施例中,上述第一网络设备或目标设备也可以由通用处理器来实现。例如,该通用处理器的形态可以是一种芯片。具体地,实现第一网络设备或目标设备的通用处理器包括处理电路和与该处理电路内部连接通信的输入接口以及输出接口,该处理电路用于通过输入接口执行上述各个方法实施例中的报文的生成步骤,该处理电路用于通过输入接口执行上述各个方法实施例中的接收步骤,该处理电路用于通过输出接口执行上述各个方法实施例中的发送步骤。可选地,该通用处理器还可以包括存储介质,该处理电路用于通过存储介质执行上述各个方法实施例中的存储步骤。存储介质可以存储处理电路执行的指令,该处理电路用于执行存储介质存储的指令以执行上述各个方法实施例。In some possible embodiments, the above-mentioned first network device or target device may also be implemented by a general-purpose processor. For example, the general purpose processor may be in the form of a chip. Specifically, the general-purpose processor that implements the first network device or the target device includes a processing circuit, an input interface and an output interface that are internally connected and communicated with the processing circuit. The processing circuit is configured to perform the receiving step in the above method embodiments through the input interface, and the processing circuit is configured to perform the sending step in the above method embodiments through the output interface. Optionally, the general-purpose processor may further include a storage medium, and the processing circuit is configured to use the storage medium to perform the storage steps in each of the foregoing method embodiments. The storage medium may store instructions executed by the processing circuit, where the processing circuit is configured to execute the instructions stored in the storage medium to perform the above-mentioned various method embodiments.
参见图19,本申请实施例提供了一种系统1100,所述系统1100包括:第一网络设备1101和/或目标设备1102。可选的,第一网络设备1101为如装置600、网络设备800或网络设备1000,目标设备1102为如装置700、网络设备800或网络设备1000。Referring to FIG. 19 , an embodiment of the present application provides a system 1100 , where the system 1100 includes: a first network device 1101 and/or a target device 1102 . Optionally, the first network device 1101 is, for example, the device 600 , the network device 800 or the network device 1000 , and the target device 1102 is, for example, the device 700 , the network device 800 or the network device 1000 .
本申请实施例提供了一种计算机程序产品,当该计算机程序产品在第一网络设备或目标设备上运行时,使得第一网络设备或目标设备执行上述图3或图5或图10或图12所述的方法实施例。An embodiment of the present application provides a computer program product, which, when the computer program product runs on a first network device or a target device, enables the first network device or the target device to execute the above-mentioned FIG. 3 or FIG. 5 or FIG. 10 or FIG. 12 described method embodiments.
上述各种产品形态的装置,分别具有上述方法实施例中第一网络设备或目标设备的任意功能,此处不再赘述。The above apparatuses in various product forms respectively have any functions of the first network device or the target device in the above method embodiments, which will not be repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that, in combination with the method steps and units described in the embodiments disclosed herein, they can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the steps and components of the various embodiments 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. Persons of ordinary skill in the art may use different methods of implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参见前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described systems, devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which are not repeated here.
在本申请所提供的几个实施例中,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, the disclosed systems, devices and methods may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括 若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例中方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: 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 codes .
以上描述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above descriptions are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications within the technical scope disclosed in the present application. or replacement, these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机程序指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例中的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机程序指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD)、或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can 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. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present 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 computer readable storage medium, for example, the computer program instructions may be transmitted from a website site, computer, server or data center via Wired or wireless transmission to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVDs), or semiconductor media (eg, solid state drives), and the like.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上描述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. within.

Claims (20)

  1. 一种语义名称获取方法,其特征在于,包括:A method for acquiring a semantic name, comprising:
    接收第一网络设备发送的报文,所述报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义;receiving a message sent by the first network device, where the message includes a segment identifier and a semantic name of the associated network device, wherein the semantic name is used to indicate the meaning of the segment identifier;
    保存所述语义名称和所述段标识的关联关系。The association relationship between the semantic name and the segment identifier is saved.
  2. 根据权利要求1所述的方法,其特征在于,在保存所述语义名称和所述段标识的关联关系之后,所述方法还包括:显示所述语义名称和所述段标识的所述关联关系。The method according to claim 1, wherein after saving the association relationship between the semantic name and the segment identifier, the method further comprises: displaying the association relationship between the semantic name and the segment identifier .
  3. 根据权利要求1或2所述的方法,其特征在于,所述语义名称用于指示所述段标识用于去向第二网络设备,所述方法还包括:The method according to claim 1 or 2, wherein the semantic name is used to indicate that the segment identifier is used to go to the second network device, and the method further comprises:
    显示业务视图,其中,所述业务视图用于显示所述关联网络设备和所述第二网络设备之间的拓扑关系。A service view is displayed, wherein the service view is used to display the topology relationship between the associated network device and the second network device.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, wherein the method further comprises:
    生成转发策略,所述转发策略包括所述段标识,其中,所述转发策略是根据所述语义名称获得的;generating a forwarding policy, the forwarding policy including the segment identifier, wherein the forwarding policy is obtained according to the semantic name;
    发送所述转发策略,所述转发策略用于指示使用所述段标识。The forwarding policy is sent, where the forwarding policy is used to indicate the use of the segment identifier.
  5. 一种语义名称获取方法,其特征在于,包括:A method for acquiring a semantic name, comprising:
    第一网络设备向目标设备发送第一报文,所述第一报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义。The first network device sends a first packet to the target device, where the first packet includes a segment identifier and a semantic name of the associated network device, where the semantic name is used to indicate the meaning of the segment identifier.
  6. 根据权利要求5所述的方法,其特征在于,所述关联网络设备包括第二网络设备,所述方法还包括:接收所述第二网络设备发送的第二报文,所述第二报文包括所述段标识和所述语义名称。The method according to claim 5, wherein the associated network device comprises a second network device, the method further comprising: receiving a second packet sent by the second network device, the second packet Include the segment identifier and the semantic name.
  7. 根据权利要求5或6所述的方法,其特征在于,所述第一报文包括段标识类型-长度-值TLV字段,所述TLV字段包括子TLV,所述子TLV包括所述语义名称。The method according to claim 5 or 6, wherein the first message includes a segment identification type-length-value TLV field, the TLV field includes a sub-TLV, and the sub-TLV includes the semantic name.
  8. 根据权利要求5-7任一项所述的方法,其特征在于,所述第一报文包括:边界网关协议报文或内部网关协议报文。The method according to any one of claims 5-7, wherein the first message comprises: a border gateway protocol message or an interior gateway protocol message.
  9. 根据权利要求5-8任一项所述的方法,其特征在于,所述方法应用于段路由网络中。The method according to any one of claims 5-8, wherein the method is applied in a segment routing network.
  10. 一种语义名称获取装置,其特征在于,包括:A device for acquiring semantic names, comprising:
    接收单元,用于接收第一网络设备发送的报文,所述报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义;a receiving unit, configured to receive a message sent by the first network device, where the message includes a segment identifier and a semantic name of the associated network device, wherein the semantic name is used to indicate the meaning of the segment identifier;
    保存单元,用于保存所述语义名称和所述段标识的关联关系。A saving unit, configured to save the association relationship between the semantic name and the segment identifier.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The apparatus of claim 10, wherein the apparatus further comprises:
    显示单元,用于显示所述语义名称和所述段标识的所述关联关系。A display unit, configured to display the association relationship between the semantic name and the segment identifier.
  12. 根据权利要求10或11所述的装置,其特征在于,所述语义名称用于指示所述段标识用于去向第二网络设备,所述显示单元还用于,显示业务视图,其中,所述业务视图用于显示所述关联网络设备和所述第二网络设备之间的拓扑关系。The apparatus according to claim 10 or 11, wherein the semantic name is used to indicate that the segment identifier is used to go to the second network device, and the display unit is further configured to display a service view, wherein the The service view is used to display the topological relationship between the associated network device and the second network device.
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 10-12, wherein the device further comprises:
    生成单元,用于生成转发策略,所述转发策略包括所述段标识,其中,所述转发策略是根据所述语义名称获得的;a generating unit, configured to generate a forwarding strategy, where the forwarding strategy includes the segment identifier, wherein the forwarding strategy is obtained according to the semantic name;
    发送单元,用于发送所述转发策略,所述转发策略用于指示使用所述段标识。A sending unit, configured to send the forwarding policy, where the forwarding policy is used to instruct to use the segment identifier.
  14. 一种语义名称获取装置,其特征在于,包括:A device for acquiring semantic names, comprising:
    发送单元,用于向目标设备发送第一报文,所述第一报文包括关联网络设备的段标识和语义名称,其中,所述语义名称用于指示所述段标识的含义。A sending unit, configured to send a first packet to the target device, where the first packet includes a segment identifier and a semantic name of the associated network device, where the semantic name is used to indicate the meaning of the segment identifier.
  15. 根据权利要求14所述的装置,其特征在于,所述装置还包括接收单元,所述关联网络设备包括第二网络设备,The apparatus according to claim 14, wherein the apparatus further comprises a receiving unit, and the associated network device comprises a second network device,
    所述接收单元,用于接收所述第二网络设备发送的第二报文,所述第二报文包括所述段标识和所述语义名称。The receiving unit is configured to receive a second packet sent by the second network device, where the second packet includes the segment identifier and the semantic name.
  16. 根据权利要求14或15所述的装置,其特征在于,所述第一报文包括段标识类型-长度-值TLV字段,所述TLV字段包括子TLV,所述子TLV包括所述语义名称。The apparatus according to claim 14 or 15, wherein the first message includes a segment identification type-length-value TLV field, the TLV field includes a sub-TLV, and the sub-TLV includes the semantic name.
  17. 根据权利要求14-16任一项所述的装置,其特征在于,所述报文包括边界网关协议报文或内部网关协议报文。The apparatus according to any one of claims 14-16, wherein the message includes a border gateway protocol message or an interior gateway protocol message.
  18. 根据权利要求14-17任一项所述的装置,其特征在于,所述装置应用于段路由网络中。The apparatus according to any one of claims 14-17, wherein the apparatus is applied in a segment routing network.
  19. 一种计算机存储介质,其特征在于,包括程序指令,当所述程序指令在 计算机上运行时,使得计算机执行如权利要求1-9任一项所述的方法。A computer storage medium, characterized in that it includes program instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1-9.
  20. 一种系统,其特征在于,所述系统包括目标设备和第一网络设备,其中,目标设备为如权利要求10-13任一项所述的语义名称获取装置,第一网络设备为如权利要求14-18任一项所述的语义名称获取装置。A system, characterized in that the system includes a target device and a first network device, wherein the target device is the semantic name acquisition device according to any one of claims 10-13, and the first network device is the device according to claim 10 The semantic name acquisition device according to any one of 14-18.
PCT/CN2021/099024 2020-10-30 2021-06-08 Semantic name acquisition method and apparatus, device, and storage medium WO2022088685A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011206224.XA CN114531360A (en) 2020-10-30 2020-10-30 Semantic name acquisition method, device, equipment and storage medium
CN202011206224.X 2020-10-30

Publications (1)

Publication Number Publication Date
WO2022088685A1 true WO2022088685A1 (en) 2022-05-05

Family

ID=81381823

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/099024 WO2022088685A1 (en) 2020-10-30 2021-06-08 Semantic name acquisition method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN114531360A (en)
WO (1) WO2022088685A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001931A (en) * 2022-05-25 2022-09-02 湖南亚信软件有限公司 Message processing method, device, equipment, medium and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009418A (en) * 2016-11-02 2018-05-08 斯凯耶科德公司 For the method by non-security terminal authentication user
CN109561021A (en) * 2017-09-25 2019-04-02 华为技术有限公司 A kind of method and the network equipment of message forwarding
CN109981457A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of method of Message processing, network node and system
CN110061920A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 A kind of method creating two-way section of routing tunnel, equipment and storage medium
US20190372858A1 (en) * 2018-05-30 2019-12-05 Cisco Technology, Inc. Network fabric visualization and management
CN110636001A (en) * 2018-06-25 2019-12-31 华为技术有限公司 Method for sending network performance parameters and calculating network performance and network node
CN111107004A (en) * 2018-10-27 2020-05-05 华为技术有限公司 Message processing method, related equipment and computer storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426306A (en) * 2019-03-08 2022-12-02 华为技术有限公司 Method, network node and system for determining message forwarding path
CN111431800B (en) * 2020-03-20 2022-07-12 新华三技术有限公司合肥分公司 Method, device and equipment for establishing path and machine-readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009418A (en) * 2016-11-02 2018-05-08 斯凯耶科德公司 For the method by non-security terminal authentication user
CN109561021A (en) * 2017-09-25 2019-04-02 华为技术有限公司 A kind of method and the network equipment of message forwarding
CN109981457A (en) * 2017-12-27 2019-07-05 华为技术有限公司 A kind of method of Message processing, network node and system
CN110061920A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 A kind of method creating two-way section of routing tunnel, equipment and storage medium
US20190372858A1 (en) * 2018-05-30 2019-12-05 Cisco Technology, Inc. Network fabric visualization and management
CN110636001A (en) * 2018-06-25 2019-12-31 华为技术有限公司 Method for sending network performance parameters and calculating network performance and network node
CN111107004A (en) * 2018-10-27 2020-05-05 华为技术有限公司 Message processing method, related equipment and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MODERATOR (QUALCOMM INC.): "FL summary on Coverage Recovery and Capacity Impact for NR RedCap (Part 2: Initial proposals for high priority)", 3GPP DRAFT; R1-2007091, vol. RAN WG1, 21 August 2020 (2020-08-21), pages 1 - 13, XP051921171 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001931A (en) * 2022-05-25 2022-09-02 湖南亚信软件有限公司 Message processing method, device, equipment, medium and program product

Also Published As

Publication number Publication date
CN114531360A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
US9979605B2 (en) Virtualization mapping
JP7432095B2 (en) How to forward packets in SRv6 service function chain, SFF, and SF devices
WO2021135420A1 (en) Failure protection method for service function chain, device, apparatus, system, and storage medium
WO2022078415A1 (en) Packet forwarding method and network device
WO2022012689A1 (en) Route advertisement method and related device
WO2022095857A1 (en) Topology information publishing method, network topology collecting method, and device
WO2022105927A1 (en) Method, device, and system for notifying processing capability of network device
WO2022012489A1 (en) Capability indication method and related device
US11855893B2 (en) Tag-based cross-region segment management
WO2022048418A1 (en) Method, device and system for forwarding message
US11799755B2 (en) Metadata-based cross-region segment routing
WO2022088685A1 (en) Semantic name acquisition method and apparatus, device, and storage medium
CN115865769A (en) Message processing method, network equipment and system
WO2023096811A1 (en) Tag-based cross-region segment management
WO2022188530A1 (en) Route processing method and network device
WO2022012690A1 (en) Router advertisement method and related device
CN114025025B (en) SRv6SID publishing method and network equipment
WO2022061561A1 (en) Packet transmission method and apparatus
CN114629834B (en) Communication method and device
WO2023130957A1 (en) Routing method and related device
WO2023169364A1 (en) Routing generation method and apparatus, and data message forwarding method and apparatus
JP2024500907A (en) Route transmission method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21884427

Country of ref document: EP

Kind code of ref document: A1