WO2022143572A1 - Procédé de traitement de message et dispositif associé - Google Patents

Procédé de traitement de message et dispositif associé Download PDF

Info

Publication number
WO2022143572A1
WO2022143572A1 PCT/CN2021/141825 CN2021141825W WO2022143572A1 WO 2022143572 A1 WO2022143572 A1 WO 2022143572A1 CN 2021141825 W CN2021141825 W CN 2021141825W WO 2022143572 A1 WO2022143572 A1 WO 2022143572A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
interface
sub
network device
packet
Prior art date
Application number
PCT/CN2021/141825
Other languages
English (en)
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 WO2022143572A1 publication Critical patent/WO2022143572A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3072Packet splitting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • H04L47/724Admission control; Resource allocation using reservation actions during connection setup at intermediate nodes, e.g. resource reservation protocol [RSVP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a message processing method and related equipment.
  • a pair of network devices is shared by multiple processes.
  • the pair of network devices is connected through a pair of physical interfaces, and the network device can deploy multiple sub-interfaces on the physical interface. Each sub-interface is bound to a corresponding process to achieve routing isolation between processes.
  • a sub-interface is usually allocated to each network shard under each process. Assuming that the number of network shards under each process is the same, then the physical interface The number of sub-interfaces that need to be divided is equal to the product of the number of processes to which the pair of network devices belongs and the number of network fragments under each process. In this way, if too many sub-interfaces are allocated on a physical interface, it is not only difficult to deploy, manage and maintain the sub-interfaces, but also because network sharding requires the resources of the bound sub-interfaces, so too many sub-interfaces are allocated. This results in too many resources to be reserved, which greatly reduces the scalability of the physical interface, and may also cause a problem that the resource demands on the physical interface exceed the tolerable range of the physical interface.
  • the embodiments of the present application provide a packet processing method and related equipment.
  • the network fragmentation is combined with a subsection of reserved resources in a physical interface.
  • the interface is bound, and the network device can send the received packet corresponding to the same physical interface according to the sub-interface to which the network fragment is bound. It is not necessary to allocate each network fragment under each process.
  • a sub-interface with reserved resources greatly reduces the number of sub-interfaces to be configured on a physical interface.
  • an embodiment of the present application provides a packet processing method, and the method is applied to a scenario in which a first network device is connected to a second network device through the target physical interface, wherein the first network device and the second network device
  • the device belongs to multiple identical network segments, the multiple network segments include the first network segment, the first network device and the second network device run multiple processes, the multiple processes include the first process and the the second process.
  • the The operations performed by the method may include: the first network device obtains a first packet, the destination address of the first packet is the first destination address, the first packet includes the identifier of the first network fragment, and the first destination address corresponds to The first process, in this way, the first network device determines the first sub-interface in the target physical interface according to the first destination address and the identifier of the first network fragment, and sends the information to the second network device based on the first sub-interface.
  • the first packet is described; the first network device obtains a second packet, the destination address of the second packet is the second destination address, the second packet includes the identifier of the first network fragment, and the second destination address corresponds to The second process, the second process is different from the first process, in this way, the first network device determines the first sub-interface in the target physical interface according to the second destination address and the identifier of the first network fragment, and based on the The first sub-interface sends the second packet to the second network device.
  • each network fragment is allocated and bound to a sub-process Interface, which allocates sub-interfaces equal to the number of processes for multiple processes at most.
  • the sub-interface corresponding to the network shard reserves resources that can meet the resource requirements of the network shard, and the sub-interface bound to the process is used for Open the route between the pair of network devices without reserving resources.
  • the sub-interface bound to the process can be different from the sub-interface allocated for the network shard, or it can be reused as the sub-interface allocated for the network shard.
  • Sub-interfaces that reserve resources greatly reduce the number of sub-interfaces to be configured on a physical interface. Therefore, according to the method provided by the embodiment of the present application, when the first network device in the pair of network devices receives a message running in a different process but corresponding to the same network fragment, it can be based on the destination address of the message and the network fragment.
  • the identifier determines the sub-interface bound to the identifier of the network fragment under the physical interface, so that the determined sub-interface is used to send a packet to the second network device in the pair of network devices.
  • the accurate transmission of packets between the pair of network devices can be achieved by configuring fewer sub-interfaces.
  • the multiple processes in the embodiments of the present application are Interior Gateway Protocol (English: Interior Gateway Protocol, referred to as: IGP) processes, for example, may be Intermediate System-to-Intermediate System (English: Intermediate System-to-Intermediate System, referred to as: ISIS) processes ) process or Open Shortest Path First (English: Open Shortest Path First, referred to as: OSPF) process.
  • IGP Interior Gateway Protocol
  • ISIS Intermediate System-to-Intermediate System
  • OSPF Open Shortest Path First
  • the first process may be called a process corresponding to the first destination address. If the second destination address is learned through the IGP route in the second process, the second process may be called a process corresponding to the second destination address.
  • the reserved resources on the first sub-interface meet the resource requirements of the first network slice.
  • the process of determining the sub-interface actually forwarded according to the destination address in the packet and the identifier of the network fragment, taking the first network device forwarding the first packet as an example may include, for example: The first network device first determines a second sub-interface corresponding to the first process for the first packet according to the first destination address, and the second sub-interface belongs to the target physical interface; then, the first network device determines the second sub-interface according to the first network
  • the identifier of the slice is to determine the corresponding first sub-interface in the target physical interface of the first packet.
  • the second sub-interface is the same as the first sub-interface, or the second sub-interface is different from the first sub-interface.
  • the first network device forwarding the second packet may include: the first network device first determines a fourth sub-interface corresponding to the second process for the second packet according to the second destination address, where the fourth sub-interface belongs to the target physical interface; then, the first network device determines the corresponding first sub-interface in the target physical interface for the second packet according to the identifier of the first network fragment.
  • the second sub-interface is the same as the first sub-interface, or the second sub-interface is different from the first sub-interface, but the second sub-interface is different from the fourth sub-interface.
  • the second sub-interface or the fourth sub-interface may also be replaced with the target physical interface, so as to achieve the purpose of being routable to the second network device.
  • the operations performed by the method may further include: the first network device obtains the third packet
  • the destination address of the third packet is the third destination address
  • the third packet includes the identifier of the second network fragment
  • the third destination address corresponds to the third process
  • the multiple processes in this embodiment of the present application include all Describe the third process, the third process is different from the first process and the second process; like this, the first network device determines the third sub-interface in the target physical interface according to the third destination address and the identifier of the second network fragment, and, The third packet is sent to the second network device based on the third sub-interface.
  • a sub-interface is allocated and bound to the second network fragment and the first network fragment, and a maximum of sub-interfaces equal to the number of processes are allocated to multiple processes.
  • the sub-interface reserves resources that can meet the resource requirements of the network fragment, and the sub-interface bound to the process is used to open up the route between the pair of network devices. It can be achieved by configuring fewer sub-interfaces without reserving resources. The accurate transmission of messages between the pair of network devices.
  • the methods provided in the embodiments of the present application are applicable to Multi-Protocol Label Switching (English: Multi-Protocol Label Switching, MPLS for short) networks, Internet Protocol version 4 (English: Internet Protocol version 4, IPv4 for short) networks, or the first Internet Protocol version 6 (English: Internet Protocol version 6, referred to as: IPv6) network.
  • the first packet is an IPv6 packet
  • the identifier of the first network fragment can be carried in the Hop by Hop (English: Hop by Hop, abbreviated: HBH) option header of the first packet Or in the Destination Option Header (English: Destination Option Header, DOH for short).
  • the first packet is an IPv4 packet
  • the identifier of the first network fragment can be carried in the Options field of the first packet.
  • the TLV field is extended in the Options field
  • the identifier of the first network fragment is carried by the extended TLV field.
  • the first packet is an MPLS packet
  • the MPLS label stack of the first packet may include an indication label, where the indication label is used to indicate that the next MPLS label of the indication label carries the first MPLS label.
  • An identifier of a network fragment, wherein both the indicating label and the label carrying the identifier of the first network fragment are MPLS identifiers.
  • the label carrying the identifier of the first network segment may be located at the bottom of the MPLS label stack.
  • an embodiment of the present application further provides a packet processing apparatus, the apparatus is applied to a first network device, and the apparatus may include: a first obtaining unit, a first determining unit, a first sending unit, a second obtaining unit unit, a second determining unit and a second sending unit.
  • the first obtaining unit is configured to obtain a first packet, the destination address of the first packet is the first destination address, the first packet includes the identifier of the first network fragment, and the first destination address corresponds to a first process; a first determining unit, configured to determine a first sub-interface in a target physical interface according to the first destination address and the identifier of the first network fragment; a first sending unit, configured to based on the first sub-interface A sub-interface sends the first packet to the second network device; a second obtaining unit is configured to obtain a second packet, the destination address of the second packet is the second destination address, the second packet Including the identifier of the first network fragment, the second destination address corresponds to a second process, and the second process is different from the first process; a second determining unit is configured to The identifier of the first network fragment determines the first sub-interface in the target physical interface; a second sending unit is configured to send the second network device to the second network device based on the first sub-interface message.
  • the first network device is connected to the second network device through the target physical interface, the first network device and the second network device belong to multiple identical network slices, and the multiple network
  • the fragmentation includes the first network fragmentation, and the first network device and the second network device run a plurality of processes, the plurality of processes including the first process and the second process.
  • the reserved resources on the first sub-interface meet the resource requirements of the first network slice.
  • the first determination unit may include: a first determination subunit and a second determination subunit.
  • the first determining subunit is configured to determine, according to the first destination address, a second sub-interface corresponding to the first process for the first packet, where the second sub-interface belongs to the target physical interface and a second determining subunit, configured to determine the corresponding first subinterface in the target physical interface for the first packet according to the identifier of the first network fragment.
  • the second sub-interface is the same as the first sub-interface, or the second sub-interface is different from the first sub-interface.
  • the apparatus may further include: a third obtaining unit, a third determining unit, and a third sending unit.
  • the third obtaining unit is configured to obtain a third packet, the destination address of the third packet is the third destination address, the third packet includes the identifier of the second network fragment, and the third destination
  • the address corresponds to a third process, the plurality of processes include the third process, and the third process is different from the first process and the second process;
  • a third determination unit is used to determine the third process according to the third purpose
  • the address and the identifier of the second network segment determine a third sub-interface in the target physical interface;
  • a third sending unit is configured to send the third sub-interface to the second network device based on the third sub-interface message.
  • the multiple processes are interior gateway protocol IGP processes.
  • the apparatus is suitable for MPLS network, IPv4 network or IPv6 network.
  • the message processing device provided in the second aspect is used to perform the relevant operations mentioned in the first aspect.
  • the relevant description of the first aspect No longer.
  • an embodiment of the present application further provides a network device, including: a memory and a processor.
  • the memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the network device executes the method provided in the first aspect above.
  • embodiments of the present application further provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer can execute any of the above-mentioned first aspects.
  • an embodiment of the present application further provides a computer program product, which, when the computer program product runs on a network device, enables the network device to execute the method provided in any possible implementation manner of the first aspect.
  • the present application provides a network device, the network device comprising: a main control board and an interface board.
  • the main control board includes: a first processor and a first memory.
  • the interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
  • the first memory can be used to store program codes, and the first processor is used to call the program codes in the first memory to perform the following operations: determine the target physical interface according to the first destination address and the identifier of the first network slice. a first sub-interface; determining the first sub-interface in the target physical interface according to the second destination address and the identifier of the first network fragment.
  • the second memory can be used to store program codes
  • the second processor is used to call the program codes in the second memory, triggering the interface card to perform the following operations: obtaining a first message, the destination address of the first message being the first purpose address, the first packet includes the identifier of the first network fragment, the first destination address corresponds to the first process; the first packet is sent to the second network device based on the first sub-interface; the second packet is obtained The destination address of the second packet is the second destination address, the second packet includes the identifier of the first network fragment, the second destination address corresponds to the second process, and the second process Different from the first process; sending the second packet to the second network device based on the first sub-interface.
  • an inter-process communication (inter-process communication, IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate through the IPC channel.
  • IPC inter-process communication
  • the present application provides a chip including a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory to execute the method in the first aspect.
  • the above chip only includes a processor, and the processor is configured to read and execute the computer program stored in the memory, and when the computer program is executed, the processor executes the method in the first aspect.
  • an embodiment of the present application further provides a network system, where the network system may include a first network device and a second network device.
  • the first network device is configured to execute the method in the first aspect; the second network device is configured to receive a packet sent by the first network device based on the determined sub-interface.
  • FIG. 1 is a schematic structural diagram of a network scenario in an embodiment of the present application
  • FIG. 2a is a schematic diagram of a sub-interface between a network device 21 and a network device 22 in an embodiment of the application;
  • FIG. 2b is another schematic diagram of a sub-interface between the network device 21 and the network device 22 in the embodiment of the application;
  • FIG. 3a is another schematic diagram of the sub-interface between the network device 21 and the network device 22 in the embodiment of the application;
  • FIG. 3b is another schematic diagram of the sub-interface between the network device 21 and the network device 22 in the embodiment of the application;
  • FIG. 3c is another schematic diagram of the sub-interface between the network device 21 and the network device 22 in the embodiment of the application;
  • FIG. 4 is a schematic structural diagram of another network scenario in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a packet processing method 100 provided by an embodiment of the present application.
  • 6a is a schematic diagram of a format of a first message in an embodiment of the present application.
  • FIG. 6b is a schematic diagram of still another format of the first message in the embodiment of the present application.
  • FIG. 6c is a schematic diagram of yet another format of the first message in the embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a message processing apparatus 700 according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a network device 800 in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a network device 900 in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a network system 1000 in an embodiment of the present application.
  • a pair of network devices that can be shared by multiple network topologies is usually deployed between multiple connected network topologies. shared by multiple processes.
  • the network scenario shown in FIG. 1 may include: network devices 11 to 16 , network device 21 and network device 22 , the network scenario includes ring 1 , ring 2 and ring 3 , and ring 1 includes network devices 11.
  • Network device 21 and network device 22 ring 2 includes network device 12, network device 13, network device 14, network device 21 and network device 22, ring 3 includes network device 15, network device 16, network device 21 and network device twenty two.
  • Ring 1, Ring 2, and Ring 3 correspond to Process 1, Process 2, and Process 3, respectively. It can be seen that the process 1 , the process 2 and the process 3 share the network device 21 and the network device 22 , and the network device 21 is connected to the physical interface 2 of the network device 22 through the physical interface 1 .
  • the network device 21 allocates and binds a sub-interface to each process on the physical interface 1.
  • the network device 21 and the network device 22 are divided into two sub-interfaces.
  • a pair of physical interfaces between them may include sub-interface 1, sub-interface 2, and sub-interface 3.
  • the traffic can be sent to the network device 22 at the network device 21 through the sub-interface 3 on the physical interface 1 .
  • the network device 21 When performing network sharding, in order to achieve isolation of allocated resources, the network device 21 allocates and binds a sub-interface to each network shard under each process on the physical interface 1. It is assumed that the network shard under each process If the number of slices is the same, then the number of sub-interfaces to be allocated on a pair of physical interfaces between network device 21 and network device 22 is equal to the product of the number of processes to which the pair of network devices belongs and the number of network slices under each process. . For example, process 1, process 2 and process 3 are all divided into network slice 1 and network slice 2, then, as shown in Figure 2b, a pair of physical interfaces between network device 21 and network device 22 may include sub-interfaces 11.
  • Sub-interface 12 sub-interface 21, sub-interface 22, sub-interface 31 and sub-interface 32, a total of 6 sub-interfaces.
  • the traffic can be sent to the network device 21 at the network device 22 through the sub-interface 32 on the physical interface 2 .
  • the embodiment of the present application provides a sub-interface configuration scheme. Under the physical interface, each network shard is allocated And bind a sub-interface to allocate a maximum of sub-interfaces equal to the number of processes for multiple processes. Among them, the sub-interface corresponding to the network shard reserves resources that can meet the resource requirements of the network shard, and the sub-interfaces bound to the process are reserved. The sub-interface is used to open up the route between the pair of network devices without reserving resources.
  • the sub-interface bound to the process can be different from the sub-interface allocated for the network shard, or it can be reused as the sub-interface allocated for the network shard. In this way, there is no need to allocate a sub-interface for each network shard under each process.
  • Sub-interfaces that reserve resources greatly reduce the number of sub-interfaces to be configured on a physical interface.
  • the first network device in the pair of network devices when the first network device in the pair of network devices receives a packet running in a different process but corresponding to the same network fragment, it can be based on the destination address of the packet and the network The identifier of the fragment determines the sub-interface bound to the identifier of the network fragment under the physical interface, so that the determined sub-interface is used to send a packet to the second network device in the pair of network devices.
  • accurate packet transmission between the pair of network devices can be achieved by configuring fewer sub-interfaces.
  • the sub-interfaces allocated on a pair of physical interfaces between the network device 21 and the network device 22 include, but are not limited to, FIG. 3 a . , Figure 3b and Figure 3c.
  • the sub-interfaces allocated on a pair of physical interfaces between the network device 21 and the network device 22 include sub-interface 1 to sub-interface 5, 5 sub-interfaces in total.
  • sub-interface 1 to sub-interface 3 correspond to process 1 to process 3 respectively
  • sub-interface 1 to sub-interface 3 do not need to reserve resources
  • sub-interface 4 and sub-interface 5 are bound to network slice 1 and network slice 2 respectively
  • the sub-interface The reserved resources on 4 meet the resource requirements of network slice 1, and the reserved resources on sub-interface 5 meet the resource requirements of network slice 2.
  • the traffic when the traffic carrying network fragment 2 on process 3 is forwarded through network device 22, the traffic first determines sub-interface 2 according to the destination address at network device 22, and determines that sub-interface 2 corresponds to physical interface 2, and then, you can view the physical interface Sub-interface 5 bound to network slice 2 on physical interface 2, so that traffic is sent to network device 21 through sub-interface 5 on physical interface 2.
  • the sub-interfaces allocated on a pair of physical interfaces between the network device 21 and the network device 22 include sub-interface 1 to sub-interface 4, 4 sub-interfaces in total.
  • sub-interface 1, sub-interface 2 and physical interface 1 (or physical interface 2) correspond to process 1 to process 3 respectively
  • sub-interface 1 and sub-interface 2 do not need to reserve resources
  • sub-interface 3 and sub-interface 4 are bound to network slices respectively 1 and network slice 2
  • the reserved resources on sub-interface 3 meet the resource requirements of network slice 1
  • the reserved resources on sub-interface 4 meet the resource requirements of network slice 2.
  • the traffic when the traffic carrying network fragment 1 on process 1 is forwarded through network device 22, the traffic first determines physical interface 2 according to the destination address at network device 22, and then, you can view the physical interface 2 bound to network fragment 1. Sub-interface 3, thereby sending traffic to network device 21 through sub-interface 3 on physical interface 2.
  • the sub-interfaces allocated on a pair of physical interfaces between the network device 21 and the network device 22 include sub-interface 1 and sub-interface 2, with a total of 2 sub-interfaces.
  • sub-interface 1, sub-interface 2, and physical interface 1 correspond to process 1 to process 3, respectively.
  • the sub-interface 1 and sub-interface 2 do not need to reserve resources, and sub-interface 1 and sub-interface do not need to reserve resources.
  • 2 is also bound to network slice 1 and network slice 2 respectively.
  • the reserved resources on sub-interface 1 meet the resource requirements of network slice 1
  • the reserved resources on sub-interface 2 meet the resource requirements of network slice 2.
  • the traffic when the traffic carrying network fragment 1 on process 3 is forwarded through network device 22, the traffic first determines sub-interface 2 according to the destination address at network device 22, and determines that sub-interface 2 corresponds to physical interface 2, and then, you can view the physical interface Sub-interface 1 bound to network slice 1 on physical interface 2, so that traffic is sent to network device 21 through sub-interface 1 on physical interface 2.
  • the accurate transmission of packets between the pair of network devices can be realized by configuring fewer sub-interfaces, which solves the problem of the current situation. It is necessary to allocate a corresponding sub-interface to the network shard under each process, and too many sub-interfaces are allocated on a physical interface, which is not only difficult to deploy, manage, and maintain the sub-interfaces, but also because the network shards are bound to Therefore, the allocation of too many sub-interfaces leads to too many resources to be reserved, which greatly reduces the scalability of the physical interface, and the resource demands on the physical interface may exceed the availability of the physical interface. Tolerance issues.
  • a sub-interface is a plurality of logical interfaces virtualized from a physical interface (English: interface) through protocols and technologies.
  • the types of sub-interfaces may include: common sub-interfaces, channelized sub-interfaces, and flexible Ethernet (English: Flex Ethernet, FlexE for short) sub-interfaces, wherein the sub-interfaces allocated to processes may be common sub-interfaces, channelized sub-interfaces or FlexE sub-interface, the sub-interface allocated for the network slice can be a channelized sub-interface or a FlexE sub-interface.
  • ring 1 and ring 2 may be access rings
  • ring 3 may be an aggregation ring
  • the network device (such as network device 11) in the access ring may be, for example, an access device (English: Access node, abbreviation: ACC)
  • the shared network device ie, the network device 21 and the network device 22
  • may be an aggregation device English: Aggregation Gateway, AGG for short).
  • the network scenario shown in Figure 1 can also be a structure in which multiple aggregation rings and a backbone ring share a pair of network devices.
  • Ring 1 and Ring 2 can be aggregation rings
  • Ring 3 can be a backbone ring
  • an access ring can be a
  • the network device (eg, network device 11 ) in the device may be, for example, a convergence device
  • the shared network device ie, network device 21 and network device 22
  • core devices also referred to as backbone devices.
  • the network scenario applicable to the embodiments of the present application requires that a pair of network devices are connected through a pair of physical interfaces, the pair of network devices belong to multiple identical network segments, and the pair of network devices run multiple processes.
  • Multiple processes in this embodiment of the present application may correspond one-to-one with multiple ring structures, or may correspond one-to-one with multiple non-ring structures, that is, in the embodiment of the present application, in addition to the network scenario shown in FIG. 1 above, It can also be applied to the network scenario shown in FIG.
  • the network device running process 1 may include network device 11 , network device 17 , network device 21 and network device 22, the network device running process 2 may include network device 12, network device 13, network device 14, network device 21 and network device 22, and the network device running process 3 may include network device 15, network device 16, network Device 18, Network Device 19, Network Device 21, and Network Device 22.
  • Process 1 , process 2 and process 3 share network device 21 and network device 22 , and network device 21 is connected to physical interface 2 of network device 22 through physical interface 1 .
  • FIG. 4 when there is a network fragmentation requirement, the configuration of sub-interfaces and the processing of packets are the same as those in the network scenario shown in FIG. 1 , and details are not repeated here.
  • the technical solutions provided by the embodiments of the present application are described by taking the network scenario shown in FIG. 1 as an example.
  • network devices in the embodiments of the present application refer to devices such as routers, switches, and firewalls that have a function of forwarding packets.
  • FIG. 5 is a signaling flowchart of a packet processing method 100 in an embodiment of the present application.
  • the method 100 is described by taking the interaction process between a first network device and a second network device running in multiple processes and belonging to multiple identical network segments as an example, wherein the first network device passes the target physical
  • the interface is connected to the second network device, the multiple processes include a first process and a second process, the first process and the second process are different processes, and the multiple identical network segments include the first network segment and Second network shard.
  • the first network device may be the network device 21 in FIG. 1 or FIG. 2
  • the second network device may be the network device 22 in FIG. 1 or FIG. 2 .
  • the method 100 may, for example, include the following S101 to S106:
  • a first network device obtains a first packet, the destination address of the first packet is a first destination address, the first packet includes an identifier of a first network fragment, and the first destination address corresponds to a first process.
  • the first packet is a packet received by the first network device and to be sent from the first network device to the second network device, and the first packet enters the network running the first process through the first network device and the second network device topology.
  • the first packet also carries the identifier of the first network fragment, which is used to identify that the first packet corresponds to the first network fragment. Based on this, the first network device can determine the first network fragment.
  • the packet is the traffic corresponding to the first network fragment.
  • the first process may be called the first process corresponding to the first destination address.
  • the network device corresponding to the first destination address (that is, the destination device of the first packet) runs in the first process.
  • the network device corresponding to the first destination address belongs to access ring 1, and access ring 1 corresponds to the first process. It can be expressed that the first destination address corresponds to the first process.
  • the method 100 can be applied to Multi-Protocol Label Switching (English: Multi-Protocol Label Switching, MPLS for short) networks, Internet Protocol version 4 (English: Internet Protocol version 4, IPv4 for short) networks or Internet Protocol version 6 ( English: Internet Protocol version 6, referred to as: IPv6) network.
  • Multi-Protocol Label Switching English: Multi-Protocol Label Switching, MPLS for short
  • Internet Protocol version 4 English: Internet Protocol version 4, IPv4 for short
  • IPv6 English: Internet Protocol version 6, referred to as: IPv6 network.
  • the first packet is an IPv6 packet
  • the identifier of the first network fragment can be carried in the hop-by-hop (English: Hop by Hop, referred to as “Hop by Hop”) of the first packet.
  • HBH Hop by Hop
  • DOH Destination Option Header
  • the first packet may be as shown in FIG. 6a, and the identifier of the first network fragment may be carried in an IPv6 extension header (eg, an HBH option header) of the first packet.
  • the option type (Option Type) field in the HBH option header carrying the identifier of the first network fragment may have a specific value to indicate that the HBH option header carries the first network fragment logo.
  • the identifier of the first network fragment may be carried in any type length value (English: Type Length Value, TLV for short) field extended in the options Options of the IPv6 extension header of the first packet.
  • the first packet is an IPv4 packet
  • the identifier of the first network fragment may be carried in the Options field of the first packet, for example, the first packet is an IPv4 packet.
  • the message may be as shown in FIG. 6b, by extending the TLV field in the Options field of the first message, and using the extended TLV field to carry the identifier of the first network fragment.
  • the first packet is an MPLS packet
  • the MPLS label stack of the first packet may include multiple MPLS labels, carrying the identifier of the first network fragment
  • the label is one of multiple MPLS labels.
  • the multiple MPLS labels may include an indication label, where the indication label is used to indicate that the next MPLS label of the indication label carries the identifier of the first network segment, and the first packet may be, for example, as shown in FIG. 6c .
  • the label carrying the identifier of the first network segment may be located at the bottom of the MPLS label stack.
  • the first network device determines the first sub-interface in the target physical interface according to the first destination address and the identifier of the first network fragment.
  • the network management or controller may configure the first network device and the second network device to prepare for packet forwarding.
  • the configuration contents include but are not limited to the following three examples:
  • the configuration content may include: configuring the corresponding IP address 1 for the second sub-interface on the target physical interface, and joining the first process; configuring the corresponding IP address 2 for the fourth sub-interface on the target physical interface , and join the second process; configure the corresponding IP address 3 for the fifth sub-interface on the target physical interface, and join the third process; bind the first sub-interface on the target physical interface for the first network fragment, the The reserved resources on a sub-interface can meet the resource requirements of the first network fragment; bind the third sub-interface on the target physical interface to the second network fragment, and the reserved resources on the third sub-interface can meet the requirements of the first network fragment. 2. Resource requirements for network sharding.
  • the route between the first network device and the second network device is achieved through the second sub-interface in the first process, and the route between the first network device and the second network device is realized through the fourth sub-interface in the second process.
  • the route between the first network device and the second network device is achieved through the fifth sub-interface. Therefore, the second sub-interface, the fourth sub-interface and the fifth sub-interface do not need to reserve resources.
  • the first network device may store: the first process and the second sub-interface, the second process and the fourth sub-interface, and the correspondence between the third process and the fifth sub-interface, the second sub-interface , the fourth sub-interface, and the fifth sub-interface belong to the target physical interface, and the corresponding relationship between the identifier of the first network fragment and the first sub-interface, and the identifier of the second network fragment and the third sub-interface.
  • various correspondences may be stored in the form of one or more entries.
  • Table 1 and Table 2 may be stored on the first network device as follows:
  • routing prefix subinterface main interface prefix 1 Second sub-interface target physical interface prefix 2 Fourth sub-interface target physical interface prefix 3 Fifth sub-interface target physical interface
  • Table 3 may also be stored on the first network device as follows:
  • the last row in Table 3 is taken as an example, it indicates that the packet whose destination address matches prefix 3 can be routed to the second network device through the fifth sub-interface.
  • the fifth sub-interface belongs to the target physical interface. If the identifier of a network fragment is carried, the packet is sent to the second network device through the first sub-interface; if it carries the identifier of the second network fragment, the packet is sent to the second network device through the third sub-interface .
  • S102 may include: S102a1, the first network device determines a second sub-interface corresponding to the first process for the first packet according to the first destination address, and the second sub-interface belongs to the target physical interface; S102a2, the first The network device determines the corresponding first sub-interface in the target physical interface for the first packet according to the identifier of the first network fragment.
  • S102a1 may be that the first network device determines that the first destination address matches the prefix 1 in Table 1 or Table 3, and therefore, determines the second sub-interface for the first packet.
  • the configuration content may include: configuring the corresponding IP address 1 for the target physical interface and joining the first process; configuring the corresponding IP address 2 for the second sub-interface on the target physical interface and joining the second process ; Configure the corresponding IP address 3 for the fourth sub-interface on the target physical interface, and join the third process; Bind the first sub-interface on the target physical interface for the first network fragment, and the preset on the first sub-interface
  • the reserved resources can meet the resource requirements of the first network fragment; bind the third sub-interface on the target physical interface to the second network fragment, and the reserved resources on the third sub-interface can meet the resources of the second network fragment need.
  • the target physical interface is used to realize the reachability of the route between the first network device and the second network device
  • the route between the first network device and the second network device is realized through the second sub-interface
  • the route between the first network device and the second network device is achieved through the fourth sub-interface. Therefore, the target physical interface, the second sub-interface and the fourth sub-interface do not need to reserve resources.
  • S102 may include, for example: S102b1, the first network device determines the target physical interface corresponding to the first process for the first packet according to the first destination address; S102b2, the first network device determines according to the identifier of the first network fragment A corresponding first sub-interface is determined in the target physical interface for the first packet.
  • the configuration content may include: configuring the corresponding IP address 1 for the target physical interface and joining the first process; configuring the corresponding IP address 2 for the first sub-interface on the target physical interface and joining the second process ; configure the corresponding IP address 3 for the third sub-interface on the target physical interface, and join the third process; bind the first sub-interface on the target physical interface for the first network fragment, and the preset on the first sub-interface
  • the reserved resources can meet the resource requirements of the first network fragment; bind the third sub-interface on the target physical interface to the second network fragment, and the reserved resources on the third sub-interface can meet the resources of the second network fragment need.
  • the target physical interface is used to realize the reachability of the route between the first network device and the second network device
  • the route between the first network device and the second network device is realized through the first sub-interface
  • the route reachability between the first network device and the second network device is realized through the third sub-interface. Therefore, the target physical interface, the first sub-interface and the third sub-interface do not need to be reached when the route is reachable. Reserve resources.
  • S102 may include, for example: S102c1, the first network device determines, according to the first destination address, the target physical interface corresponding to the first process for the first packet; S102c2, the first network device determines according to the identifier of the first network fragment A corresponding first sub-interface is determined in the target physical interface for the first packet.
  • the first network device sends the first packet to the second network device based on the first sub-interface.
  • the first network device sends the first packet to the second network device based on the first sub-interface of the target physical interface. Since the reserved resources of the first sub-interface can meet the resource requirements of the first network fragment, therefore, Forwarding the first packet belonging to the first network fragment based on the first sub-interface enables the first packet to be forwarded to the first network fragment of the first process with reasonable bandwidth and other resources.
  • the first network device obtains a second packet, the destination address of the second packet is the second destination address, the second packet includes the identifier of the first network fragment, and the second packet belongs to the second process.
  • the second packet is a packet received by the first network device and about to be sent from the first network device to the second network device.
  • the second packet enters the network running the second process through the first network device and the second network device topology.
  • the second packet also carries the identifier of the first network fragment, which is used to identify that the second packet corresponds to the first network fragment. Based on this, the first network device can determine the second network fragment.
  • the packet is the traffic corresponding to the first network fragment. That is, the second packet and the first packet belong to different processes, but correspond to the same network fragment.
  • the method 100 may be applicable to MPLS networks, IPv4 networks or IPv6 networks.
  • the second packet carries the identifier of the first network fragment under various network types, reference may be made to the description of the manner in which the first packet carries the identifier of the first network fragment in S101, which will not be repeated here.
  • the first network device determines the first sub-interface in the target physical interface according to the second destination address and the identifier of the first network fragment.
  • S105 may include, for example: S105a1, the first network device determines, according to the second destination address, for the second packet The fourth sub-interface corresponding to the second process, the fourth sub-interface belongs to the target physical interface; S105a2, the first network device determines the corresponding first sub-interface in the target physical interface for the second packet according to the identifier of the first network fragment interface.
  • S105a1 may be that the first network device determines that the second destination address matches the prefix 2 in Table 1 or Table 3, and therefore, determines the fourth sub-interface for the second packet.
  • S105 may include, for example: S105b1, the first network device determines for the second packet according to the second destination address The second sub-interface corresponding to the second process, the second sub-interface belongs to the target physical interface; S105b2, the first network device determines the corresponding first sub-interface in the target physical interface for the second packet according to the identifier of the first network fragment interface.
  • S105 may include, for example: S105c1, the first network device determines for the second packet according to the second destination address The first sub-interface corresponding to the second process, the first sub-interface belongs to the target physical interface; S105c2, the first network device determines the corresponding first sub-interface in the target physical interface for the second packet according to the identifier of the first network fragment interface.
  • the first network device sends the second packet to the second network device based on the first sub-interface.
  • the first network device sends the second packet to the second network device based on the first sub-interface of the target physical interface. Since the reserved resources of the first sub-interface can meet the resource requirements of the first network fragment, therefore, Forwarding the second packet belonging to the first network fragment based on the first sub-interface enables the second packet to be forwarded to the first network fragment of the second process with reasonable bandwidth and other resources.
  • S101 ⁇ S103 and S104 ⁇ S106 are not limited in order. You can execute S101 ⁇ S103 first and then execute S104 ⁇ S106, or you can execute S104 ⁇ S106 first and then execute S101 ⁇ S103, and you can also execute S101 ⁇ S103 Executed simultaneously with S104 to S106.
  • the method 100 may further include:
  • the first network device obtains a third packet, the destination address of the third packet is the third destination address, the third packet includes the identifier of the second network fragment, the third destination address corresponds to the third process, and the The plurality of processes also include a third process, which is different from the first process and the second process.
  • the third packet is a packet received by the first network device and about to be sent from the first network device to the second network device.
  • the third packet enters the network running the third process through the first network device and the second network device topology.
  • the third packet also carries the identifier of the second network fragment, which is used to identify that the third packet corresponds to the second network fragment.
  • the first network device can determine the third network fragment.
  • the packet is the traffic corresponding to the second network fragment. That is, the third packet, the second packet, and the first packet belong to different processes, the third packet and the first packet correspond to different network segments, and the third packet and the second packet correspond to different network fragmentation.
  • the method 100 may be applicable to MPLS networks, IPv4 networks or IPv6 networks.
  • the third packet carries the identifier of the second network fragment under various network types, reference may be made to the description of the manner in which the first packet carries the identifier of the first network fragment in S101, which will not be repeated here.
  • the first network device determines a third sub-interface in the target physical interface according to the third destination address and the identifier of the second network fragment.
  • S108 may include, for example: S108a1, the first network device determines for the third packet according to the third destination address The fifth sub-interface corresponding to the third process, the fifth sub-interface belongs to the target physical interface; S108a2, the first network device determines the corresponding third sub-interface in the target physical interface for the third packet according to the identifier of the second network fragment interface.
  • S108a1 may be that the first network device determines that the third destination address matches the prefix 3 in Table 1 or Table 3, so the fifth sub-interface is determined for the third packet.
  • S108 may include, for example: S108b1, the first network device determines for the third packet according to the third destination address The fourth sub-interface corresponding to the third process, the fourth sub-interface belongs to the target physical interface; S108b2, the first network device determines the corresponding third sub-interface in the target physical interface for the third packet according to the identifier of the second network fragment interface.
  • S108 may include, for example: S108c1, the first network device determines, according to the third destination address, for the third packet The second sub-interface corresponding to the third process, the second sub-interface belongs to the target physical interface; S108c2, the first network device determines the corresponding third sub-interface in the target physical interface for the third packet according to the identifier of the second network fragment interface.
  • the first network device sends the third packet to the second network device based on the third sub-interface.
  • the first network device sends a third packet to the second network device based on the third sub-interface of the target physical interface. Since the reserved resources of the third sub-interface can meet the resource requirements of the second network fragment, therefore, Forwarding the third packet belonging to the second network fragment based on the third sub-interface enables the third packet to be forwarded to the second network fragment of the third process with reasonable bandwidth and other resources.
  • S107-S109, S101-S103 and S104-S106 is not limited in order, and can be executed in any order.
  • S101-S103 can be executed first, then S107-S109 can be executed at the end, or S101 can be executed at the same time.
  • S103, S107 ⁇ S109, and S104 ⁇ S106 can be executed at the same time.
  • the processing process of the first network device receiving the packet to be sent to the second network device is used as an example for description.
  • the processing process Reference may be made to the relevant descriptions of the above S101 to S109, which will not be repeated here.
  • the first network device and the second network device run in the first process, the second process, and the third process, and each process corresponds to the first network fragment and the second network fragment as an example.
  • the first network device and the second network device may also run in m processes (m is an integer greater than or equal to 2), and the first network device and the second network device may belong to n the same network shards (n is an integer greater than or equal to 2).
  • At least (m+n) sub-interfaces need to be allocated for the physical interface between the first network device and the second network device ( m-1) sub-interfaces; if m ⁇ n, at least n sub-interfaces need to be allocated for the physical interface between the first network device and the second network device. It can be seen that, by using the method provided by the embodiment of the present application, in the scenario where the first network device and the second network device jointly run in multiple processes and there is a network fragmentation requirement, the number of the first network device and the second network device can be greatly reduced. The number of sub-interfaces needs to be configured between network devices.
  • each network fragment is allocated and bound with a Sub-interface, which allocates sub-interfaces equal to the number of processes for multiple processes at most.
  • the sub-interface corresponding to the network shard reserves resources that can meet the resource requirements of the network shard, and the sub-interface bound to the process is used to get through The route between the pair of network devices does not need to reserve resources. In this way, there is no need to allocate a sub-interface with reserved resources for each network segment under each process, which greatly reduces the number of sub-interfaces to be configured under one physical interface.
  • the first network device in the pair of network devices receives packets running in different processes but corresponding to the same network fragment, or the first network device in the pair of network devices
  • the device can determine the sub-interfaces under the physical interface that are bound to the network fragment IDs based on the destination address of the packets and the network fragment IDs.
  • the determined sub-interface sends a packet to the second network device in the pair of network devices, so that in a network scenario in which a pair of network devices jointly runs multiple processes and corresponds to multiple identical network segments, configure less
  • the sub-interface realizes the accurate transmission of packets between the pair of network devices.
  • an embodiment of the present application further provides a packet processing apparatus 700, and the apparatus 700 has any function of the network device 21 or network device 22 in FIG. 1 and FIG. 4, or the first network device in FIG. 5. .
  • the apparatus 700 is applied to a first network device, and the apparatus 700 may include: a first obtaining unit 701, a first determining unit 702, a first sending unit 703, a second obtaining unit 704, a second determining unit 705, and a second sending unit 706.
  • the first obtaining unit 701 is configured to obtain a first packet, the destination address of the first packet is the first destination address, the first packet includes the identifier of the first network fragment, the first destination address corresponds to the first process.
  • the first obtaining unit 701 may execute S101 shown in FIG. 5 .
  • the first determining unit 702 is configured to determine the first sub-interface in the target physical interface according to the first destination address and the identifier of the first network fragment.
  • the first determining unit 702 may perform S102 shown in FIG. 5 .
  • a first sending unit 703, configured to send the first packet to a second network device based on the first sub-interface.
  • the first sending unit 703 may perform S103 shown in FIG. 5 .
  • a second obtaining unit 704 configured to obtain a second packet, where the destination address of the second packet is the second destination address, the second packet includes the identifier of the first network fragment, the second packet The destination address corresponds to a second process, and the second process is different from the first process.
  • the second obtaining unit 704 may perform S104 shown in FIG. 5 .
  • a second determining unit 705, configured to determine the first sub-interface in the target physical interface according to the second destination address and the identifier of the first network fragment.
  • the second determining unit 705 may perform S105 shown in FIG. 5 .
  • a second sending unit 706, configured to send the second packet to the second network device based on the first sub-interface.
  • the second sending unit 706 may perform S106 shown in FIG. 5 .
  • the first network device (or the packet processing apparatus 700 ) is connected to the second network device through the target physical interface, and the first network device and the second network device belong to multiple identical networks Sharding, the multiple network slices include the first network slice, the first network device and the second network device run multiple processes, the multiple processes include the first process and all the Describe the second process.
  • the reserved resources on the first sub-interface meet the resource requirements of the first network slice.
  • the first determining unit 702 may include: a first determining subunit and a second determining subunit.
  • the first determining subunit is configured to determine, according to the first destination address, a second sub-interface corresponding to the first process for the first packet, where the second sub-interface belongs to the target physical interface ; a second determining subunit, configured to determine the corresponding first subinterface in the target physical interface for the first packet according to the identifier of the first network fragment.
  • the second sub-interface is the same as the first sub-interface, or the second sub-interface is different from the first sub-interface.
  • the apparatus 700 may further include: a third obtaining unit, a third determining unit, and a third sending unit.
  • the third obtaining unit is configured to obtain a third packet, the destination address of the third packet is the third destination address, the third packet includes the identifier of the second network fragment, and the third destination
  • the address corresponds to a third process, the plurality of processes include the third process, and the third process is different from the first process and the second process;
  • a third determination unit is used to determine the third process according to the third purpose
  • the address and the identifier of the second network segment determine a third sub-interface in the target physical interface;
  • a third sending unit is configured to send the third sub-interface to the second network device based on the third sub-interface message.
  • the third obtaining unit, the third determining unit and the third sending unit may respectively execute S107 to S109 shown in FIG. 5 .
  • the multiple processes are interior gateway protocol IGP processes.
  • the apparatus is suitable for MPLS network, IPv4 network or IPv6 network.
  • the above-mentioned units with the same function but different serial numbers in the naming may be a unit capable of implementing this function.
  • the above-mentioned first sending unit 703 and second sending unit 706 may be the same unit with sending function.
  • the packet processing apparatus 700 shown in FIG. 7 may be the first network device in the embodiment shown in FIG. 5 . Therefore, various specific embodiments and effects of the apparatus 700 can be found in The related introduction of the method 100 corresponding to FIG. 5 is not repeated in this embodiment.
  • an embodiment of the present application provides a network device 800 .
  • the network device 800 may be the network device in any of the foregoing embodiments, for example, may be the network device 21 or the network device 22 in FIG. 1 or FIG. 4 , or may be the first network device in the embodiment shown in FIG. 5 ,
  • the network device 800 may implement the functions of the first network device, the network device 21 or the network device 22 in the above embodiments.
  • the network device 800 includes at least one processor 801 , a bus system 802 , a memory 803 and at least one transceiver 804 .
  • the network device 800 is an apparatus with a hardware structure, and can be used to implement the functional modules in the packet processing apparatus 700 shown in FIG. 7 .
  • the first determining unit 702 and the second determining unit 705 in the message processing apparatus 700 shown in FIG. 7 can be implemented by calling the code in the memory 803 by the at least one processor 801, and FIG. 7
  • the first obtaining unit 701 , the first sending unit 703 , the second obtaining unit 704 and the second sending unit 706 in the shown packet processing apparatus 700 may be implemented by the transceiver 804 .
  • the network device 800 may also be used to implement the functions of the network device in any of the foregoing embodiments.
  • processor 801 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the bus system 802 described above may include a path to transfer information between the above described components.
  • the above transceiver 804 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 803 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 803 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 801 .
  • the processor 801 is used for executing the application program code stored in the memory 803, so as to realize the functions in the method of the present patent.
  • the processor 801 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 8 .
  • the network device 800 may include multiple processors, for example, the processor 801 and the processor 807 in FIG. 8 .
  • Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 9 is a schematic structural diagram of another network device 900 provided by an embodiment of the present application.
  • the network device 900 may be, for example, the network device 21 or the network device 22 in the embodiment shown in FIG. 1 , or may also be the implementation shown in FIG. 4 .
  • the network device 900 includes: a main control board 910 and an interface board 930 .
  • the main control board 910 is also called the main processing unit (main processing unit, MPU) or the route processing card (route processor card).
  • the main control board 910 controls and manages each component in the network device 900, including route calculation, Equipment maintenance, protocol processing functions.
  • the main control board 910 includes: a central processing unit 911 and a memory 912 .
  • the interface board 930 is also referred to as a line processing unit (LPU), a line card or a service board.
  • the interface board 930 is used to provide various service interfaces and realize data packet forwarding.
  • the service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc.
  • the Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients).
  • the interface board 930 includes: a central processing unit 931 , a network processor 932 , a forwarding table entry storage 934 and a physical interface card (ph8sical interface card, PIC) 933 .
  • the central processing unit 931 on the interface board 930 is used to control and manage the interface board 930 and communicate with the central processing unit 911 on the main control board 910 .
  • the network processor 932 is used to implement packet forwarding processing.
  • the network processor 932 may be in the form of a forwarding chip.
  • the processing of the uplink packet includes: processing of the incoming interface of the packet, and searching of the forwarding table; processing of the downlink packet: searching of the forwarding table, and so on.
  • the physical interface card 933 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 930 through this, and the processed packets are sent from the physical interface card 933 .
  • the physical interface card 933 includes at least one physical interface, and the physical interface is also called a physical port.
  • the physical interface card 933 corresponds to the FlexE physical interface in the system architecture.
  • the physical interface card 933 is also called a daughter card, which can be installed on the interface board 930 and is responsible for converting the photoelectric signal into a message, checking the validity of the message and forwarding it to the network processor 932 for processing.
  • the central processor 931 of the interface board 930 can also perform the functions of the network processor 932 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 932 is not required in the physical interface card 933 .
  • the network device 900 includes multiple interface boards.
  • the network device 900 further includes an interface board 940 .
  • the interface board 940 includes a central processing unit 941 , a network processor 942 , a forwarding table entry storage 944 and a physical interface card 943 .
  • the network device 900 further includes a switch fabric board 920 .
  • the switch fabric 920 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • SFU switch fabric unit
  • the switching network board 920 is used to complete data exchange between the interface boards.
  • the interface board 930 and the interface board 940 can communicate through the switch fabric board 920 .
  • the main control board 910 and the interface board 930 are coupled.
  • the main control board 910 , the interface board 930 , the interface board 940 , and the switching network board 920 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication (inter-process communication, IPC) channel is established between the main control board 910 and the interface board 930, and the main control board 910 and the interface board 930 communicate through the IPC channel.
  • IPC inter-process communication
  • the network device 900 includes a control plane and a forwarding plane
  • the control plane includes the main control board 910 and the central processing unit 931
  • the forwarding plane includes various components that perform forwarding, such as the forwarding entry storage 934, the physical interface card 933 and the network processing device 932.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, and configuring and maintaining the status of devices.
  • the control plane delivers the generated forwarding tables to the forwarding plane.
  • the network processor 932 based on the The delivered forwarding table forwards the packets received by the physical interface card 933 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 934 .
  • the control plane and forwarding plane may be completely separate and not on the same device.
  • the network device 900 is configured as the first network device, the network processor 932 can trigger the physical interface card 933 to obtain the first packet, the destination address of the first packet is the first destination address, and the first packet includes the first network
  • the identifier of the fragment, the first destination address corresponds to the first process, and the first packet is sent to the second network device based on the first sub-interface; the second packet is obtained, and the destination address of the second packet is the first packet.
  • Two destination addresses, the second packet includes the identifier of the first network fragment, and the second destination address corresponds to a second process. The second process is different from the first process. Based on the first sub-interface, the second network Send the second message.
  • the central processing unit 911 may determine the first sub-interface in the target physical interface according to the first destination address and the identifier of the first network fragment; determine the first sub-interface in the target physical interface according to the second destination address and the identifier of the first network fragment. The first sub-interface, and.
  • first obtaining unit 701 , the first sending unit 703 , the second obtaining unit 704 , the second sending unit 706 , etc. in the packet processing apparatus 700 , and the transceiver 804 in the network device 800 may be equivalent to the network device 900
  • the physical interface card 933 or the physical interface card 943 in the device; the first determining unit 702 and the second determining unit 705 in the message processing apparatus 700 , and the processor 801 in the network device 800 may be equivalent to the central processor 911 or central processing unit 931.
  • the operations on the interface board 940 in the embodiments of the present application are the same as the operations on the interface board 930, and for brevity, details are not repeated here.
  • the network device 900 in this embodiment may correspond to the apparatus or network device for establishing a BGP neighbor in each of the above method embodiments, and the main control board 910 , the interface board 930 and/or the interface board 940 in the network device 900 may The functions and/or various steps implemented in the packet processing apparatus 700 or the network device 800 in each of the foregoing method embodiments are implemented, and are not repeated here for brevity.
  • main control boards there may be one or more main control boards, and when there are more than one main control board, it may include an active main control board and a 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.
  • each of the above network devices or network devices may be implemented as virtualized devices.
  • the virtualization device may be a virtual machine (English: Virtual Machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (for example, 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.
  • a virtual machine can be configured as each of the network devices in Figure 1.
  • each network device or network device may be implemented based on a general physical server combined with a Network Functions Virtualization (NFV) technology.
  • NFV Network Functions Virtualization
  • Each network device or network device is a virtual host, a virtual router or a virtual switch.
  • the embodiment of the present application also provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, may be a specific type of the message processing device in the embodiment of the present application
  • the implementation form can be used to execute the above packet processing method.
  • the processor is coupled to a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system enables the method in any of the foregoing method embodiments.
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips.
  • the setting method of the processor is not particularly limited.
  • the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller).
  • controller unit, MCU it can also be a programmable logic device (PLD) or other integrated chips.
  • an embodiment of the present application further provides a network system 1000, see FIG. 10 .
  • the network system 1000 may include a first network device 1001 and a second network device 1002 .
  • the first network device 1001 is configured to perform all operations performed by the first network device in the method 100 shown in FIG. 5 ;
  • the second network device 1002 is configured to perform all operations performed by the second network device in the method 100 shown in FIG. 5 . operate.
  • an embodiment of the present application also provides a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute any of the above embodiments shown in FIG. 5 .
  • embodiments of the present application also provide a computer program product, which, when running on a computer, enables the computer to execute the method of any one of the foregoing method 100 implementations.
  • determining B based on A does not mean that B is only determined according to A, and B can also be determined according to A and/or other information.

Landscapes

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

Abstract

Les modes de réalisation de la présente demande concernent un procédé de traitement de messages et un dispositif associé. Un premier dispositif réseau obtient un premier message qui comprend une première adresse de destination et l'identifiant d'une première tranche de réseau, la première adresse de destination correspondant à un premier processus, détermine une première sous-interface dans une interface physique cible en fonction de la première adresse de destination et de l'identifiant de la première tranche de réseau, puis envoie le premier message à un second dispositif réseau d'après la première sous-interface; le premier dispositif réseau obtient un second message qui comprend une seconde adresse de destination et l'identifiant de la première tranche de réseau, la seconde adresse de destination correspondant à un second processus, détermine la première sous-interface dans l'interface physique cible en fonction de la seconde adresse de destination et de l'identifiant de la première tranche de réseau, puis envoie le second message au second dispositif réseau d'après la première sous-interface. Par conséquent, dans un scénario de réseau où une paire de dispositifs réseau exécutent conjointement de multiples processus et correspondent à de multiples tranches de réseau identiques, un petit nombre de sous-interfaces sont configurés afin d'obtenir une transmission précise des messages entre la paire de dispositifs réseau.
PCT/CN2021/141825 2020-12-29 2021-12-28 Procédé de traitement de message et dispositif associé WO2022143572A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011598611.2 2020-12-29
CN202011598611.2A CN114697277A (zh) 2020-12-29 2020-12-29 一种报文处理方法及相关设备

Publications (1)

Publication Number Publication Date
WO2022143572A1 true WO2022143572A1 (fr) 2022-07-07

Family

ID=82132213

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141825 WO2022143572A1 (fr) 2020-12-29 2021-12-28 Procédé de traitement de message et dispositif associé

Country Status (2)

Country Link
CN (1) CN114697277A (fr)
WO (1) WO2022143572A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007096591A2 (fr) * 2006-02-20 2007-08-30 Cramer Systems Limited Procédé de configuration de dispositifs dans un réseau de télécommunications
US20180260252A1 (en) * 2017-03-09 2018-09-13 Guardicore Ltd. Automatic segmentation of data-center applications
US10346190B1 (en) * 2016-06-13 2019-07-09 Amazon Technologies, Inc. Interprocess segmentation in virtual machine environments
CN111565113A (zh) * 2019-02-13 2020-08-21 烽火通信科技股份有限公司 用于sdn控制器的灵活以太网网络拓扑抽象方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007096591A2 (fr) * 2006-02-20 2007-08-30 Cramer Systems Limited Procédé de configuration de dispositifs dans un réseau de télécommunications
US10346190B1 (en) * 2016-06-13 2019-07-09 Amazon Technologies, Inc. Interprocess segmentation in virtual machine environments
US20180260252A1 (en) * 2017-03-09 2018-09-13 Guardicore Ltd. Automatic segmentation of data-center applications
CN111565113A (zh) * 2019-02-13 2020-08-21 烽火通信科技股份有限公司 用于sdn控制器的灵活以太网网络拓扑抽象方法及系统

Also Published As

Publication number Publication date
CN114697277A (zh) 2022-07-01

Similar Documents

Publication Publication Date Title
CN108574616B (zh) 一种处理路由的方法、设备及系统
EP2945320B1 (fr) Procédé, dispositif et système d'acheminement de transmission de données de virtualisation de réseau
EP2109962B1 (fr) Adressage à diffusion illimitée à trois niveaux
JP2020512638A (ja) 高性能コンピューティング環境においてサブネットアドミニストレータアクセスの必要性を低減するために同種のファブリック属性を提供するシステムおよび方法
CN111510378A (zh) Evpn报文处理方法、设备及系统
US20220360525A1 (en) Packet Processing Method, Apparatus, and System
EP2731313A1 (fr) Système de traitement de groupe distribué et procédé associé de traitement de message
WO2021258823A1 (fr) Procédé, appareil et système de création de chemin
EP4037265A1 (fr) Procédé d'acheminement de paquets, appareil, support de stockage et système
WO2019080592A1 (fr) Procédé et dispositif d'envoi de messages
WO2021143279A1 (fr) Procédé et dispositif pour le traitement de service de routage de segments, équipement de routage, et support de stockage
WO2022048418A1 (fr) Procédé, dispositif et système de transfert de message
WO2022007702A1 (fr) Procédé de traitement de message et dispositif de réseau
WO2022188530A1 (fr) Procédé de traitement d'itinéraire et dispositif de réseau
WO2022166465A1 (fr) Procédé de traitement de message et appareil associé
WO2022063065A1 (fr) Procédé et appareil de transmission d'informations de routage
WO2022143572A1 (fr) Procédé de traitement de message et dispositif associé
CN114760244B (zh) 一种传输绑定段标识bsid的方法、装置和网络设备
WO2022057487A1 (fr) Procédé, système, appareil et dispositif d'attribution d'identifiant de trajet, et support de stockage
WO2024087691A1 (fr) Procédé de traitement de messages et dispositif associé
CN112751766A (zh) 报文转发方法、装置及计算机存储介质
WO2022037330A1 (fr) Procédé et dispositif de transmission d'identification de segment de réseau privé virtuel (vpn sid), et dispositif de réseau
WO2022061561A1 (fr) Procédé et appareil de transmission de paquets
WO2022133646A1 (fr) Procédé et appareil de transmission de routage
WO2022083610A1 (fr) Procédé, appareil et système d'attribution d'adresses ip

Legal Events

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

Ref document number: 21914308

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21914308

Country of ref document: EP

Kind code of ref document: A1