WO2022061561A1 - 一种报文传输方法及装置 - Google Patents
一种报文传输方法及装置 Download PDFInfo
- Publication number
- WO2022061561A1 WO2022061561A1 PCT/CN2020/117003 CN2020117003W WO2022061561A1 WO 2022061561 A1 WO2022061561 A1 WO 2022061561A1 CN 2020117003 W CN2020117003 W CN 2020117003W WO 2022061561 A1 WO2022061561 A1 WO 2022061561A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network device
- packet
- control entry
- network
- identifier
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000005540 biological transmission Effects 0.000 title claims abstract description 42
- 238000004891 communication Methods 0.000 claims description 36
- 230000015654 memory Effects 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 9
- 238000001914 filtration Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 description 33
- 230000006870 function Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 17
- 239000004744 fabric Substances 0.000 description 6
- 238000005538 encapsulation Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- RGNPBRKPHBKNKX-UHFFFAOYSA-N hexaflumuron Chemical compound C1=C(Cl)C(OC(F)(F)C(F)F)=C(Cl)C=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F RGNPBRKPHBKNKX-UHFFFAOYSA-N 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/033—Topology update or discovery by updating distance vector protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
- H04L45/566—Routing instructions carried by the data packet, e.g. active networks
Definitions
- the present application relates to the field of communication technologies, and in particular, to a message transmission method and device.
- IBGP internal border gateway protocol
- AS autonomous system
- the four routers can form IBGP peers.
- IBGP connections need to be established.
- the AS includes many routers, a large number of IBGP connections need to be established, which consumes a lot of network resources and controller resources.
- a route transmission scheme is proposed. Specifically, in an AS, one of the routers is used as a route reflector (router reflector, RR), and the other routers are used as clients to establish IBGP connections with the RR respectively.
- RR route reflector
- R0 is used as the RR
- IBGP connections are established with R1, R2, and R3, respectively
- R1, R2, and R3 are the clients of the RR.
- each client actually only needs to process the routing information related to its service requirements. to discard. Therefore, each client needs to configure a routing filtering policy adapted to the local machine, so that the client can filter unnecessary routing information according to the configured routing filtering policy.
- the amount of routing information reflected by the RR will increase exponentially, which requires higher device processing capabilities of the RR, which will aggravate network congestion; The workload will also increase greatly, and different clients often need to configure different routing filtering policies, which is difficult to maintain.
- embodiments of the present application provide a packet transmission method and device, so as to reduce the amount of routing information reflected by the RR, reduce network congestion, and simplify service deployment.
- a first aspect provides a packet transmission method, the method includes: a first network device obtains at least one control entry, the at least one control entry is located in at least one first packet, the at least one first packet respectively include the device identifier of the network device to which the first packet is to be sent; the first network device is identified as the second network device according to the device identifier included in some or all of the at least one first packet the device identifier, and determine the target control entry sent to the second network device, where the target control entry is one or more control entries in the at least one control entry; the first network device sends the second network device to the second network device.
- the network device sends at least one second packet, the target control entry is located in the at least one second packet, and the at least one second packet respectively includes a device identifier of the second network device.
- the first network device may identify the device as the device of the second network device according to the device in the first packet where the control entries are located. identify, determine the target control entry to be sent to the second network device, and then send one or more second packets including the target control entry to the second network device, so that the second network device only obtains the control entry required by itself . Therefore, not only can the pressure of the first network device to issue the control entry be reduced, but also the network congestion can be reduced. At the same time, there is no need to deploy filtering policies on the second network device, which simplifies service deployment.
- the first network device is a route reflection device.
- the second network device is a route reflection device, or the second network device is a client device.
- the first network device when a first-level route reflection device exists in the application scenario, the first network device is a route reflection device, and the second network device is a client device; when there is a second-level route reflection device in the application scenario, the first network device is a route reflection device. It is a first-level route reflection device, and the second network device is a second-level route reflection device.
- the at least one second packet further includes a device identifier of the third network device, and the device identifier of the third network device uses instructing the second network device to determine a control entry to the third network device from the target control entries according to the device identification of the third network device.
- the second network device is a secondary route reflection device
- the second packet may further include the device identifier of the third network device.
- the second network device may determine the target control entry to be sent to the third network device according to the device ID in the second packet as the third network device ID, and then the second network device may only send the desired target to the third network device Control entry.
- the second network device may receive a fifth packet sent by the third network device, where the fifth packet includes the third network device The device ID of the device.
- the second network device may match the device identification of the third network device in the fifth packet with the device identification of the third network device in one or more second packets to which the target control entry belongs, and select the matching second network device from the matching second network device.
- the target control entry sent to the third network device is determined in the message.
- the at least one second packet is a Border Gateway Protocol BGP packet
- the device identifier of the second network device is respectively located in the extended community attribute of the at least one second packet.
- the device identifier included in the first packet or the second packet may be located in the extended community attribute in the packet, and the first network device may determine the extended community attribute by parsing the first packet Whether the device identifier included in the first packet is the device identifier of the second network device.
- the device identifier of the second network device is a router identifier Router-ID.
- the device identifier of the second network device may be a router identifier, and the router identifier may specifically be an IP address or a loopback address of the second network device.
- the method further includes: before the first network device acquires the at least one control entry, receiving, by the first network device, a third packet sent by the second network device , the third packet includes the device identification of the second network device; the first network device is identified as the second network according to the device identification included in some or all of the at least one first packet
- the device identification of the device, and determining the target control entry sent to the second network device includes: the first network device according to the device identification of the second network device received from the third packet and the target control entry
- the device identifier of the second network device in one or more of the first packets to which the control entry belongs is matched, and it is determined from the one or more first packets to send the device to the second network device.
- the target control entry sent sent.
- the second network device sends a third packet including its own device identification to the first network device in advance, so that the first network device can learn the device identification of the second network device.
- the device identification of the second network device obtained from the third packet and the device identification of the second network device in the first packet may be used. match to determine the target control entry from the matched first message.
- control entry is a flow rule flowspec, or a segment routing SR policy, or a routing policy distribution RPD.
- the at least one control entry is acquired by the first network device from a controller or a server, or the at least one control entry is received by the first network device from a fourth network device, Or the at least one control entry is locally configured by the first network device.
- the first network device when the first network device is the head node, it can obtain the control entry from the controller or the server, or it can be configured locally; when the first network device is the middle node or the tail node, it can receive the control entry. Sent by a primary network device.
- the at least one control entry when the at least one control entry is received by the first network device from a fourth network device, the at least one control entry is the fourth network device according to the first network device.
- the device identification of the network device is determined.
- the upper-level network device may determine the target control entry to be sent to the first network device according to the device identification of the first network device, and then send the required control entry to the first network device. target control entry.
- a message transmission system includes: a first network device and a second network device; the first network device is used to acquire at least one control entry, so at least A control entry is located in at least one first packet, and the at least one first packet respectively includes the device identifier of the network device to which the first packet is to be sent; the first network device is also used to The device identifier included in some or all of the at least one first packet is the device identifier of the second network device, and the target control entry to be sent to the second network device is determined, and the target control entry is the One or more control entries in at least one control entry; the first network device is further configured to send at least one second packet to the second network device, and the target control entry is located in the at least one second message, the at least one second message respectively includes the device identifier of the second network device; the second network device is configured to receive the at least one second message.
- the system further includes: a third network device, and the at least one second packet further includes a device identifier of the third network device; the second network device further uses determining a control entry to be sent to the third network device from the target control entry according to the device identification of the third network device, where the control entry is at least one or more control entries in the target control entry ; the second network device is further configured to send at least one fourth message to the third network device, the control entry is located in the at least one fourth message, and the at least one fourth message respectively includes The device identifier of the third network device.
- the second network device is further configured to send a third packet to the first network device, where the third packet includes a device identifier of the second network device.
- the third network device is further configured to send a fifth packet to the second network device, where the fifth packet includes the device identifier of the third network device.
- a device for transmitting a message includes: an acquiring unit, configured to acquire at least one control entry, where the at least one control entry is located in at least one first message, the The at least one first message respectively includes the device identifier of the network device to which the first message needs to be sent; the determining unit is configured to determine according to the device included in some or all of the at least one first message The device identifier identified as the second network device determines a target control entry to be sent to the second network device, where the target control entry is one or more control entries in the at least one control entry; a sending unit, used for Sending at least one second packet to the second network device, the target control entry is located in the at least one second packet, and the at least one second packet respectively includes the device identifier of the second network device .
- the apparatus is a route reflection device.
- the second network device is a route reflection device, or the second network device is a client device.
- the at least one second packet when the second network device is a route reflection device, the at least one second packet further includes a device identifier of the third network device, and the device identifier of the third network device uses instructing the second network device to determine a control entry to the third network device from the target control entries according to the device identification of the third network device.
- the at least one second packet is a Border Gateway Protocol BGP packet
- the device identifier of the second network device is respectively located in the extended community attribute of the at least one second packet.
- the device identifier of the second network device is a router identifier Router-ID.
- the apparatus further includes: a receiving unit, the receiving unit is further configured to receive a third packet sent by the second network device before executing the obtaining unit, the The third packet includes the device identifier of the second network device; the determining unit is specifically configured to, according to the device identifier of the second network device received from the third packet and the target control entry belonging to match the device identifier of the second network device in one or more of the first packets, and determine from the one or more first packets the device to send to the second network device. Describe the target control entry.
- control entry is a flow rule flowspec, or a segment routing SR policy, or a routing policy distribution RPD.
- the at least one control entry is acquired by the apparatus from a controller or a server, or the at least one control entry is received by the apparatus from a fourth network device, or the at least one control entry is The entry is locally configured by the first network device.
- the at least one control entry when the at least one control entry is received by the apparatus from a fourth network device, the at least one control entry is determined by the fourth network device according to a device identifier of the apparatus of.
- a communication device including: a processor, a memory; the memory, for storing computer-readable instructions or a computer program; the processor, for reading the computer
- the readable instructions or the computer program enable the communication device to implement the message transmission method described in the first aspect.
- a computer-readable storage medium includes an instruction or a computer program, which, when executed on a computer, causes the computer to execute the message transmission method described in the first aspect above.
- the first network device determines the device identifier of the second network device according to the device identifier included in the first packet to which each control entry belongs.
- a target control entry sent to the second network device where the target control entry is used to instruct the second network device to perform local control, and the target control entry is one or more control entries in the at least one acquired control entry.
- the first network device sends at least a second packet to the second network device, wherein the target control entry is located in at least one second packet and the second packet includes a device identifier of the second network device.
- the first network device when forwarding the control entry to the second network device, can match the target control entry required by the second network device according to the device identifier of the second network device , and then only the target control entry is sent to the second network device, thereby reducing the pressure on the first network device to issue the control entry and reducing network congestion.
- the filtering policies there is no need to deploy filtering policies on the second network device, which simplifies service deployment.
- Fig. 1a is a schematic diagram of full connection in a BGP network architecture
- Figure 1b is a schematic diagram of route reflection in a BGP network architecture
- FIG. 2a is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 2b is a schematic diagram of another application scenario provided by an embodiment of the present application.
- Fig. 3 is a kind of message transmission flow chart provided by the embodiment of the present application.
- FIG. 4a is a schematic structural diagram of an UPDATE message provided by an embodiment of the present application.
- FIG. 4b is a schematic structural diagram of a device identification provided by an embodiment of the application.
- FIG. 5 is another flow chart of message transmission provided by an embodiment of the present application.
- FIG. 6 is a structural diagram of a message transmission apparatus provided by an embodiment of the present application.
- FIG. 7 is a structural diagram of a message transmission system provided by an embodiment of the present application.
- FIG. 8 is a structural diagram of a communication device provided by an embodiment of the present application.
- FIG. 9 is a structural diagram of another communication device provided by an embodiment of the present application.
- a first-level route reflection device is used as an example for description.
- the network device R0 is a route reflection device
- the network device R1 and the network device R2 are clients corresponding to the route reflection device R0.
- FIG. 2b Another example is the schematic diagram of another application scenario shown in FIG. 2b, in which the network system includes two-stage route reflection devices as an example for description.
- the network device R0 serves as a first-level route reflection device
- the network device R1 and the network device R2 serve as a second-level route reflection device.
- the next-level network devices connected to the first-level route reflection device R0 are the network device R1 and the network device R2 performing the RR role.
- R0, R1 and R2 are all network devices with RR reflection function. Furthermore, R1 and R2 may also be referred to as clients of R0 with respect to R0. Since the secondary route reflection devices R1 and R2 simultaneously serve as clients of the primary route reflection device R0, it is not necessary to establish a full connection between the network device R1 and the network device R2.
- the next-level network devices connected to the secondary route reflection device R1 are the network devices R3 and R4 that perform the client role, and the next-level network devices connected to the secondary route reflection device R2 are the network devices R5 and R4 that perform the client role.
- Network device R6 is Among them, R3-R6, as clients, receive the route or policy reflected by RR, but do not have the function of route reflection. Where possible, R3 and R4 are peers of each other, and R5 and R6 are peers of each other.
- each network device may also be referred to as a node, which is a device with a packet forwarding function in a network system, for example, may be a router, a switch, a repeater, or a label switching router (LSR), etc.
- a node which is a device with a packet forwarding function in a network system, for example, may be a router, a switch, a repeater, or a label switching router (LSR), etc.
- LSR label switching router
- the head node in one case, may be the node that generates the first packet, that is, the node indicated by the source address in the first packet. In this case, the head node is the first node on the end-to-end transmission path of the packet. In another case, it may be a node connected to the server or the controller and obtain the first message from the server or the controller.
- the tail node in one case, it can be the node indicated by the destination address in the first message; in another case, it is the node connected to the node indicated by the destination address; It may be the last node on the end-to-end transmission path that needs to perform local control according to the control entry in the first packet.
- the intermediate node is one or more forwarding nodes that pass between the head node and the tail node when the message is forwarded.
- FIG. 3 is a flowchart of a message transmission method provided by an embodiment of the present application.
- the roles of the head node 201, the intermediate node 202, and the tail node 203 named in the following embodiments are mainly used to distinguish different functions that different network devices can perform in the packet forwarding path, and the positions of different network devices in the network topology can be. Determined in combination with different business scenarios.
- the method may include:
- the head node 201 acquires at least one first packet.
- the head node 201 first acquires at least one first packet including one or more control entries. That is, the head node 201 may acquire one or more first packets, and each first packet may include one or more control entries.
- each first message includes the device identifier of the network device to which the first message needs to be sent.
- the device identification of the network device may be a router-id, which may be an Internet protocol (Internet protocol, IP) address or a loopback address of the network device, or the device identification may be an identification of the network device ( identification, ID), etc. For example, still taking FIG.
- the head node 201 is the network device R0
- the intermediate nodes 202 are the network device R1 and the network device R2 respectively, wherein the router identifier of the network device R1 is 1.1.1.1, and the router identifier of the network device R2 is 2.2.2.2.
- the first packet includes the routing identifier 1.1.1.1, it indicates that one or more control entries in the first packet are sent to the network device R1.
- the first packet includes the routing identifier 2.2.2.2, it indicates that one or more control entries in the first packet can be sent to the network device R2.
- the control entry is used to instruct the network device receiving the control entry to perform local control, and the control entry can be a flow rule (flow specification, flowspec), a segment routing (SR) policy, or a route policy distribution (route policy distribution) , RPD) etc.
- the above example takes the head node 201 as R0 in FIG. 2b as an example. In other possible situations, the head node may also be R1 or R2 in FIG. 2b.
- the head node 201 obtains the at least one first packet in the following manner.
- the head node 201 can obtain the at least one first packet from the controller or server to which it is connected, that is, the controller or the server generates at least one first packet.
- the first network device may receive at least one first message sent by the controller or the server.
- the head node 201 is configured locally, specifically, the head node 201 may acquire from local configuration information, for example, the local configuration information may be manually configured in the head node 201 according to actual business requirements of the user.
- the first message may be a border gateway protocol (border gateway protocol, BGP) message, specifically, the first message may be an update (UPDATE) message in the BGP message, and the update message at least includes: Device identification field, control entry field.
- BGP border gateway protocol
- the update message may include not only a device identification field, a control entry field, but also a reserved field and the like.
- the reserved field may carry other attribute fields. In some possible cases, the other attribute fields can be used to fine-tune the control entry.
- the head node 201 uses the device identification field and other attribute fields to jointly determine the first packet that should be sent to a certain device and includes multiple control entries, and the device identification field of the determined first packet includes the device identification and the The device identifiers concerned by the head node 201 match, and the attributes included in the other attribute fields of the determined first packet match the attributes concerned by the head node 201 .
- the device identifier included in the first packet may be located in an extended community attribute of the first packet, and the device identifier is indicated by a type-length-value (TLV) in the extended community attribute.
- TLV type-length-value
- the Type field is used to indicate the extended community attribute type
- the Length field is used to indicate the number of bytes included in the "Value” field, such as 8 bytes (Byte)
- the Value field is used to indicate the device identification, as shown in Figure 4b.
- the Value field includes the global administrator Global
- the Global Administrator carries the device ID.
- the Value field may include multiple Global Administrators, and each Global Administrator carries a device identifier.
- one or more device identifiers carried in the first packet may also be located in other possible types of packets, or in other possible types of packets. field, even different device identifiers can be located in different types of fields, as long as the device on the receiving side of the first packet can identify and understand, so that the receiving side device can match the corresponding device identifiers to determine the message to be forwarded.
- the target control entry is sufficient.
- the head node 201 determines the target control entry to be sent to the intermediate node 202 according to the device identification included in part or all of the at least one first packet as the device identification of the intermediate node 202.
- the head node 201 When the head node 201 sends the control entry to the intermediate node 202, in order to ensure that the sent control entry is the control entry required by the intermediate node 202, and to reduce the sending pressure of the head node 201, the head node 201
- the device identifier included in some or all of the packets is the device identifier of the intermediate node 202 , and the target control entry sent to the intermediate node 202 is determined. That is, the head node 201 determines a target control entry sent to the intermediate node 202 from the control entries included in each acquired first packet, where the first packet to which the target control entry belongs includes the device identifier of the intermediate node 202 .
- the head node 201 obtains 100 first packets, and the device ID included in the 20 first packets is 1.1.1.1, then the head node 201 can use the 20 first packets. All control entries included in the first message are determined as target control entries.
- the intermediate node 202 may be R1 or R2 in FIG. 2b.
- the head node 201 may receive a third packet sent by the intermediate node 202, where the third packet includes the device identifier of the intermediate node 202, so as to notify the head node 201 of the corresponding device through the third packet.
- Equipment Identity The head node 201 may match the device identification of the intermediate node 202 received from the third packet with the first packet including the device identification of the intermediate node 202, and determine from the matched first packet to send to the intermediate node 202 the target control entry, and then obtain the second packet according to the target control entry.
- the third packet may further include other attribute fields, and when the head node 201 determines the target control entry to be sent to the intermediate node 202, the device identification of the intermediate node 202 received from the third packet may be used by the head node 201. and other attributes are matched with the first packet including the device identifier of the intermediate node 202 and the attribute field, and the target control entry sent to the intermediate node 202 is determined from the matched first packet. That is, when the head node 201 determines the matching first packet according to the device identifier of the intermediate node 202, all control entries included in the matching first packet may be determined as target control entries.
- the head node 201 determines the matching first packet according to the device identification of the intermediate node 202, it can also determine the first packet satisfying the other attributes from the matching first packets according to other attributes, and the first packet satisfying the other attributes can be determined.
- the control entry included in the first message of other attributes is determined as the target control entry.
- the target control entry may be composed of one or more control entries, and may be distributed in one first packet, or may be distributed in multiple first packets. For example, if the head node 201 determines the matching 20 first packets from the 100 first packets obtained according to the device identification of the intermediate node 202, the head node 201 then selects the 20 first packets from the 20 first packets according to other attributes. If it is determined that there are 5 first packets including the other attributes, the control entries in the 5 first packets are used as target control entries.
- the head node 201 After determining the target control entry according to the at least one first packet, the head node 201 acquires at least one second packet according to the target control entry.
- the at least one second packet is the packet determined by the head node 201 and used to carry the target control entry.
- the manner of acquiring the at least one second packet includes at least the following situations.
- the head node 201 may use the first packet matched by the device identifier of the intermediate node 202 as the second packet. That is, all control entries in each first packet matched above are determined as target control entries. For example, if the head node 201 obtains a total of 50 first packets, of which 20 first packets include the device identifier of the intermediate node 202, the 20 first packets are matched first packets, and the head node 201 will The matched first packet is used as the second packet, so that 20 second packets are determined.
- the head node 201 first selects the device identification included in part or all of the first packet as the device identification of the intermediate node 202 according to the device identification of the intermediate node 202, and then selects the part or the device identification that matches the intermediate node 202.
- the control entries in all the first packets are determined as the target control entries sent to the intermediate node 202, and the target control entries are re-encapsulated to obtain at least one second packet. For example, if the head node 201 determines 50 target control entries from one of the first packets (including 100 control entries) according to the device identifier of the intermediate node 202, the head node 202 re-encapsulates the 50 target control entries, Obtain at least one second message.
- the head node 201 first determines the target control entry sent to the intermediate node 202 from the device identification included in part or all of the first packet as the device identification of the intermediate node 202 according to the device identification of the intermediate node 202 .
- the head node 201 then generates at least one second packet according to the target control entry and the locally stored control entry that needs to be sent to the intermediate node 202 before acquiring the at least one first packet.
- the head node 201 sends at least one second packet to the intermediate node 202.
- the head node 201 After the head node 201 determines the target control entry to be sent to the intermediate node 202 according to the device identification of the intermediate node 202 , it can acquire at least one second packet according to the target control entry, and send the at least one second packet to the intermediate node 202 .
- the target control entry determined by the head node 201 through S302 may be located in at least one second packet, and each second packet includes the device identifier of the intermediate node 202 .
- the second packet may be a Border Gateway Protocol BGP packet, and the device identifier included in the second packet may be located in the extended community attribute of the second packet, and the specific expression form may be added by adding a type in the extended community attribute.
- the length value TLV is defined, for example, as shown in Figure 4b.
- the intermediate node 202 determines the target control entry to be sent to the tail node 203 according to the device ID included in part or all of the at least one second packet as the device ID of the tail node 203.
- the intermediate node 202 may determine the direction to the tail node according to the device identifier of the tail node 203 included in some or all of the at least one second packet.
- the second packet sent by the head node 201 to the intermediate node 202 may further include the device identifier of the tail node 203 .
- the second packet sent by the head node 201 may include not only the device ID 1.1.1.1, but also the device ID.
- the device identifier 1.1.1.1 is used to indicate that the at least one second packet is a packet sent to the intermediate node 202, and the intermediate node 202 can receive and store the at least one second packet; device identifier 3.3. 3.3 can be used to instruct the intermediate node 202 to determine the target control entry to be sent to the tail node 203 from the at least one second message according to the device ID, and the tail node 203 is the network device with the device ID of 3.3.3.3.
- the tail node 203 can be R3 or R4, or when the intermediate node 202 is R2, the tail node 203 can be R5 or R6.
- the first packet obtained by the head node 201 also includes the device identifier 3.3.3.3. In this way, the head node 201 is sending a message including the target control entry to the intermediate node 202. At least the second packet still carries the device identification 3.3.3.3.
- the intermediate node 202 may receive the fifth packet sent by the tail node 203, where the fifth packet includes the device identifier of the tail node 203, The device identifier corresponding to itself is notified to the intermediate node 202 through the fifth message. In this way, when the intermediate node 202 receives at least one second packet from the head node 201, the intermediate node 202 can receive the device identification of the tail node 203 from the fifth packet and the second packet including the device identification of the tail node 203 according to the second packet.
- the fifth packet may further include other attribute fields, and when the intermediate node 202 determines the target control entry to be sent to the tail node 203, the device identification of the tail node 203 received from the fifth packet and other The attribute is matched with the second packet including the device identifier of the tail node 203 and the attribute field, and the target control entry sent to the tail node 203 is determined from the matched second packet.
- the intermediate node 202 sends at least one fourth packet to the tail node 203.
- the intermediate point 202 After the intermediate point 202 determines the target control entry to be sent to the tail node 203 according to the device identifier of the tail node 203 , it generates at least one fourth packet according to the target control entry, and sends the at least one fourth packet to the tail node 203 .
- the target control entry determined by the intermediate node 202 through S304 may be located in at least one fourth packet, and each fourth packet includes the device identifier of the tail node 203.
- the fourth packet may be a BGP packet. For the format of the fourth packet and the encapsulation format of the device identifier of the tail node 203 in the fourth packet, reference may be made to the relevant description of the first packet in S301.
- the tail node 203 may perform different processing in different application scenarios. Specifically, it can include the following operations:
- the tail node 203 no longer forwards the fourth packet after receiving the fourth packet.
- the tail node 203 may only receive the fourth packet and perform local control according to the target control entry in the fourth packet, for example, when the target The control entry is a flow rule, and the tail node 203 can select a path according to the flow rule to realize the adjustment of the service traffic transmission path; or when the target control entry is a segment routing policy, the tail node 203 can obtain the specified route according to the segment routing policy.
- the segment list of the path is used to forward the subsequently received service traffic through the segment list; or when the target control entry is routing policy distribution, the tail node can change its own routing processing behavior according to the routing policy distribution. In the above situation, the tail node 203 may no longer forward the fourth packet.
- tail node 203 has a peer node
- the tail node 203 when the tail node 203 receives the fourth packet sent by the intermediate node 202, the tail node 203 can forward the fourth packet to the peer node.
- the peer node can determine the required control entry from the fourth message according to the local policy. It can be understood that the above situation is only an example, and the processing operation performed by the tail node 204 on the packet may be determined in combination with a specific application scenario.
- the head node After acquiring the at least one first packet, the head node identifies the device as the tail according to the device identifier included in some or all of the at least one first packet.
- the device identifier of the node determines the target control entry sent to the tail node, and sends at least one second message to the tail node.
- the target control entry is located in at least one second packet, and the second packet includes the device identifier of the tail node.
- the head node when there is no intermediate forwarding node between the head node and the tail node, the head node directly determines the target control entry sent to the tail node according to the device identifier of the tail node.
- the intermediate node 202 may not support the route screening function, then the intermediate node 202 may not execute S304 and S305, but directly send at least one second packet received from the head node 201 to the tail node 203, and then the tail node 203 determines the required control entry according to the local policy.
- the method provided in this embodiment may also be applied to a possible network system architecture.
- the network system includes more than three levels of RRs, where each level of RR can be determined by using a corresponding method provided by this embodiment.
- the route to be sent to the next-level network device for example, the next-level network device may be an RR with a route reflection function, or a client without a route reflection function.
- FIG. 5 is a flowchart of another message transmission method provided by the embodiments of the present application. As shown in FIG. 5 , the method may include:
- the first network device acquires at least one control entry, where the at least one control entry is located in at least one first packet.
- the first network device may be the head node 201 and the intermediate node 202 described in the foregoing embodiments.
- the first network device may acquire at least one control entry.
- the first network device may be obtained according to local configuration information, or obtained from a controller or a server.
- S301 for the specific implementation of acquiring at least one control entry by the first network device, reference may be made to S301.
- the first network device determines at least one control entry from a packet received by the fourth network device that is an upper-level network device.
- the upper-level network device may be, for example, the head node 201 .
- the fourth network device may determine at least one control entry to be sent to the first network device from the packet obtained by itself according to the device identification of the first network device, and send the at least one control entry to the first network device .
- the first network device may be a route reflection device, and for a specific implementation of the fourth network device determining at least one control entry to send to the first network device according to the device identifier of the first network device, see S302 or S304.
- each first packet includes a device identification of a network device to which the first packet is to be sent, and the device identification may be a router identification.
- Control entries can be flow rules flowspec, or SR policies for segment routing, or RPD distribution for routing policies, etc.
- S301 For the format of the first packet and the format of the encapsulation device identifier, reference may be made to S301.
- the first network device determines the target control entry to be sent to the second network device according to the device identifier included in part or all of the at least one first packet as the device identifier of the second network device.
- the first network device may determine, from the acquired at least one first packet, that the device identifier included in some or all of the first packets is the device identifier of the second network device, so as to determine the device identifier of the second network device.
- the target control entry sent by the device may be determined, from the acquired at least one first packet, that the device identifier included in some or all of the first packets is the device identifier of the second network device, so as to determine the device identifier of the second network device.
- the first network device may receive a third packet sent by the second network device, where the third packet contains Including the device identification of the second network device; the first network device according to the device identification of the second network device received from the third packet and the device of the second network device in the one or more first packets to which the target control entry belongs If the identifiers match, the target control entry sent to the second network device is determined from the one or more first packets.
- the first network device determining the target control entry to be sent to the second network device reference may be made to S302 or S304.
- the first network device sends at least one second packet to the second network device, and the target control entry is located in the at least one second packet.
- each second packet includes a device identifier of the second network device, and the device identifier of the second network device is a router identifier Router-ID.
- the first network device acquiring at least one second packet reference may be made to S302.
- the second packet may be a Border Gateway Protocol BGP packet
- the device identifier of the second network device may be located in the extended community attribute of the second packet.
- the second packet may be an UPDATE packet in the BGP packet.
- the format of the UPDATE packet and the encapsulation format of the device identifier reference may be made to the relevant description of S301.
- the first network device may be a route reflection device, and in this case, the second network device may be a client device, such as R1 or R2 as shown in FIG. 2a.
- the second network device is a next-level route reflection device, such as R1 or R2 in FIG. 2b.
- the second network device may have a corresponding client device (third network device), such as R3, R4 or R5, R6 in Figure 2b, then at least one second packet also includes a third The device identifier of the network device, where the device identifier of the third network device is used to instruct the second network device to determine the control entry sent to the third network device from the target control entries according to the device identifier of the third network device.
- the second network device determining the control entry sent to the third network device reference may be made to S302 or S304.
- the second network device may receive the fifth packet sent by the third network device.
- the fifth packet includes the device identification of the third network device.
- the device identification of the third network device received by the second network device from the fifth packet matches the device identification of the third network device in the second packet.
- the target control entry sent by the device For specific implementation, refer to S304.
- the specific operation after receiving the second packet may refer to the relevant description of S305, which is not described in this embodiment. Repeat.
- the embodiments of the present application further provide a message transmission system.
- the system may include a first network device 601 and a second network device 602 .
- the first network device 601 is configured to acquire at least one control entry, so at least one control entry is located in at least one first packet, and the at least one first packet respectively includes the address to which the first packet is to be sent.
- the device ID of the network device The implementation of the first network device may refer to S301 or S501.
- the first network device 601 is further configured to determine, according to the device identifier included in some or all of the at least one first packet, that the device identifier is the device identifier of the second network device to send to the second network device
- the target control item is one or more control items in the at least one control item.
- the implementation of the first network device may refer to S302, S304 or S502.
- the first network device 601 is further configured to send at least one second packet to the second network device, the target control entry is located in the at least one second packet, and the at least one second packet is respectively The device identification of the second network device is included.
- the specific implementation of the first network device may refer to S303, S305 or S503.
- the second network device 602 is configured to receive the at least one second packet.
- the system further includes: a third network device 603, the at least one second packet further includes a device identifier of the third network device; the second network device 602, is further configured to determine a control entry to be sent to the third network device from the target control entry according to the device identification of the third network device, where the control entry is at least one or more of the target control entries Control entry.
- the third network device 603 reference may be made to S304 or S503.
- the second network device 602 is further configured to send at least one fourth packet to the third network device, the control entry is located in the at least one fourth packet, and the at least one fourth packet respectively includes The device identifier of the third network device.
- the control entry is located in the at least one fourth packet
- the at least one fourth packet respectively includes The device identifier of the third network device.
- the second network device 602 is further configured to send a third packet to the first network device, where the third packet includes a device identifier of the second network device.
- the third packet includes a device identifier of the second network device.
- the third network device 603 is further configured to send a fifth packet to the second network device, where the fifth packet includes the device identifier of the third network device.
- the fifth packet includes the device identifier of the third network device.
- an embodiment of the present application further provides a message transmission device, which will be described below with reference to the accompanying drawings.
- the apparatus can be applied to a first network device to perform the functions of the first network device in the embodiment shown in FIG. 5 , the apparatus 700 It may include an acquisition unit 701 , a determination unit 702 and a transmission unit 703 .
- the obtaining unit 701 is configured to obtain at least one control entry, where the at least one control entry is located in at least one first packet, and the at least one first packet respectively includes the information of the network device to which the first packet is to be sent. Equipment Identity.
- the specific implementation of acquiring the control entry by the acquiring unit 701 may refer to S301 in the embodiment described in FIG. 3 .
- the specific implementation of obtaining the control entry by the obtaining unit 601 may refer to S303 or S305.
- a determining unit 702 configured to determine the target control entry sent to the second network device according to the device identifier included in some or all of the at least one first message as the device identifier of the second network device,
- the target control entry is one or more of the at least one control entry.
- the specific implementation of the determining unit 703 may refer to S302 or S304.
- a sending unit 703, configured to send at least one second packet to the second network device, the target control entry is located in the at least one second packet, and the at least one second packet respectively includes the first 2.
- the specific implementation of the sending unit 703 may refer to S303 or S305.
- the apparatus is a route reflection device.
- the network device applied by the apparatus 700 may be a route reflection device, such as the head node 201 or the intermediate node 202 .
- the second network device is a route reflection device, or the second network device is a client device.
- the second network device may be a route reflection device, for example, the first network device is the head node 201 and the second network device is the intermediate node 202 .
- the second network device is a client device, for example, the first network device is the intermediate node 202 and the second network device is the tail node 203 .
- the at least one second packet when the second network device is a route reflection device, the at least one second packet further includes a device identifier of the third network device, and the device identifier of the third network device uses instructing the second network device to determine a control entry to the third network device from the target control entries according to the device identification of the third network device.
- the at least one second packet is a BGP packet
- the device identifier of the second network device is respectively located in the extended community attribute of the at least one second packet.
- the format of the BGP protocol packet and the encapsulation format of the device identifier refer to S301.
- the device identifier of the second network device is a router identifier.
- the apparatus further includes: a receiving unit (not shown in FIG. 7 ),
- the receiving unit is further configured to, before executing the obtaining unit, receive a third packet sent by the second network device, where the third packet includes the device identifier of the second network device; the a determining unit, specifically configured to, according to the device identifier of the second network device received from the third packet and the second network in one or more of the first packets to which the target control entry belongs The device identifiers of the devices match, and the target control entry sent to the second network device is determined from the one or more first messages.
- the specific implementation of the receiving unit and the determining unit may refer to S302.
- control entry is a flowspec, or an SR policy, or an RPD.
- the at least one control entry is acquired by the apparatus from a controller or a server, or the at least one control entry is received by the apparatus from a fourth network device, or the at least one control entry is The entry is locally configured by the first network device.
- the at least one control entry is acquired by the apparatus from a controller or a server, or the at least one control entry is received by the apparatus from a fourth network device, or the at least one control entry is The entry is locally configured by the first network device.
- the at least one control entry when the at least one control entry is received by the apparatus from a fourth network device, the at least one control entry is determined by the fourth network device according to a device identifier of the apparatus of.
- a device identifier of the apparatus of For the implementation of receiving the control entry from the fourth network device by the network device to which the apparatus 700 is applied, reference may be made to S301.
- FIG. 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application, and the communication device may be, for example, the head node 201, the intermediate node 202, or the tail node 203 in the embodiment shown in FIG.
- the first network device, the second network device, or the third network device in the embodiment shown in FIG. 7 may also be implemented by a device of the packet transmission apparatus 700 in the embodiment shown in FIG. 7 .
- the communication device 800 includes at least a processor 810 .
- Communication device 800 may also include communication interface 820 and memory 830 .
- the number of processors 810 in the communication device 800 may be one or more, and one processor is taken as an example in FIG. 8 .
- the processor 810, the communication interface 820, and the memory 830 may be connected through a bus system or other manners, and FIG. 8 takes the connection through the bus system 840 as an example.
- Processor 810 may be a CPU, NP, or a combination of CPU and NP.
- the processor 810 may further include hardware chips.
- the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
- the above-mentioned PLD may 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 processor 810 may perform the related functions of acquiring at least one control entry and determining the target control entry in the foregoing method embodiments.
- the processor 810 may perform related functions such as determining the target control entry according to the device identifier in the foregoing method example.
- the communication interface 820 is used for receiving and sending messages.
- the communication interface 820 may include a receiving interface and a sending interface.
- the receiving interface may be used to receive packets, and the sending interface may be used to send packets.
- the number of communication interfaces 820 may be one or more.
- the memory 830 may include a volatile memory (English: volatile memory), such as random-access memory (RAM); the memory 830 may also include a non-volatile memory (English: non-volatile memory), such as a fast memory A flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 830 may also include a combination of the above-mentioned types of memory.
- the memory 830 may, for example, store the aforementioned correspondence between the identification information and the tunnels.
- the memory 830 stores an operating system and programs, executable modules or data structures, or their subsets, or their extended sets, wherein the programs may include various operation instructions for implementing various operations.
- the operating system may include various system programs for implementing various basic services and handling hardware-based tasks.
- the processor 810 may read the program in the memory 830 to implement the message transmission method provided by the embodiment of the present application.
- the memory 830 may be a storage device in the communication device 800 , or may be a storage device independent of the communication device 800 .
- the bus system 840 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
- PCI peripheral component interconnect
- EISA extended industry standard architecture
- the bus system 840 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 FIG. 8, but it does not mean that there is only one bus or one type of bus.
- FIG. 9 is a schematic structural diagram of another communication device 900 provided by an embodiment of the present application.
- the communication device 900 may be configured as the head node 201 , the intermediate node 202 , or the tail node 203 in the foregoing embodiments, or may be the same as in the foregoing embodiments.
- the communication device 900 includes: a main control board 910 and an interface board 930 .
- the main control board 910 is also called a main processing unit (main processing unit, MPU) or a route processing card (route processor card).
- the main control board 910 controls and manages each component in the network device 900 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 204 in the system architecture 200 .
- 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 903 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 communication device 900 includes a plurality of interface boards.
- the communication 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 communication 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 communication device 900 includes a control plane and a forwarding plane
- the control plane includes a main control board 910 and a central processing unit 931
- the forwarding plane includes various components that perform forwarding, such as forwarding entry storage 934, physical interface card 933, and 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 central processor 911 may acquire the control entry; and determine the target control entry according to the device identification of the second network device.
- the network processor 932 may trigger the physical interface card 933 to send the second packet including the target control entry to the second network device.
- the central processor 911 may determine the second tunnel according to the identification information in the packet.
- the network processor 932 may trigger the physical interface card 933 to determine the target control entry according to the determined device identifier of the third network device, and send a packet including the target control entry to the third network device.
- the sending unit 703 and the like in the message transmission apparatus 700 may be equivalent to the physical interface card 933 or the physical interface card 943 in the communication device 900; the acquiring unit 701 and the determining unit 702 and the like in the message transmission apparatus 700 may be equivalent to The central processing unit 911 or the central processing unit 931 in the communication device 900 .
- 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 communication device 900 in this embodiment may correspond to the first network device or the second network device 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 communication device 900
- the functions and/or various steps performed by the first network device or the second network device in the foregoing method embodiments can be implemented, which 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.
- the above-mentioned first network device or second network device may be implemented as a virtualized device.
- 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.
- the virtual machine can be configured as a first network device or a second network device.
- the first network device or the second network device may be implemented based on a general-purpose physical server in combination with a network function virtualization (Network Functions Virtualization, NFV) technology.
- Network Functions Virtualization Network Functions Virtualization
- the first network device or the second network 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 second network 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.
- network devices in the above-mentioned various product forms respectively have any functions of the first network device or the second network device in the above method embodiments, and details are not described herein again.
- An embodiment of the present application further provides a chip, including a processor and an interface circuit, where the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, may be one of the message transmission apparatuses 700 shown in FIG. 7 .
- the specific implementation form can be used to execute the above method for message transmission.
- 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.
- Embodiments of the present application also provide a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, cause the computer to execute the message transmission method provided by the above embodiments.
- the embodiments of the present application also provide a computer program product including an instruction or a computer program, which, when running on a computer, enables the computer to execute the message transmission method provided by the above embodiments.
- At least one (item) refers to one or more, and "a plurality” refers to two or more.
- “And/or” is used to describe the relationship between related objects, indicating that there can be three kinds of relationships, for example, “A and/or B” can mean: only A, only B, and both A and B exist , where A and B can be singular or plural.
- the character “/” generally indicates that the associated objects are an “or” relationship.
- At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
- At least one (a) of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c" ", where a, b, c can be single or multiple.
- a software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
- RAM random access memory
- ROM read only memory
- electrically programmable ROM electrically erasable programmable ROM
- registers hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (26)
- 一种报文传输方法,其特征在于,所述方法包括:第一网络设备获取至少一个控制条目,所述至少一个控制条目位于至少一个第一报文中,所述至少一个第一报文分别包括所述第一报文需发往的网络设备的设备标识;所述第一网络设备根据所述至少一个第一报文中的部分或全部报文中包括的设备标识为第二网络设备的设备标识,确定向所述第二网络设备发送的目标控制条目,所述目标控制条目为所述至少一个控制条目中的一个或多个控制条目;所述第一网络设备向所述第二网络设备发送至少一个第二报文,所述目标控制条目位于所述至少一个第二报文中,所述至少一个第二报文分别包括所述第二网络设备的设备标识。
- 根据权利要求1所述的方法,其特征在于,所述第一网络设备为路由反射设备。
- 根据权利要求1或2所述的方法,其特征在于,所述第二网络设备为路由反射设备,或者所述第二网络设备为客户端设备。
- 根据权利要求3所述的方法,其特征在于,当所述第二网络设备为路由反射设备,所述至少一个第二报文中还包括第三网络设备的设备标识,所述第三网络设备的设备标识用于指示所述第二网络设备根据所述第三网络设备的设备标识从所述目标控制条目中确定发往所述第三网络设备的控制条目。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述至少一个第二报文为边界网关协议BGP报文,所述第二网络设备的设备标识分别位于所述至少一个第二报文的扩展团体属性中。
- 根据权利要求1-5任一项所述的方法,其特征在于,所述第二网络设备的设备标识为路由器标识Router-ID。
- 根据权利要求1-6所述的方法,其特征在于,所述方法还包括:在所述第一网络设备获取所述至少一条控制条目之前,所述第一网络设备接收所述第二网络设备发送的第三报文,所述第三报文中包括所述第二网络设备的设备标识;所述第一网络设备根据所述至少一个第一报文中的部分或全部报文中包括的设备标识为第二网络设备的设备标识,确定向所述第二网络设备发送的目标控制条目,包括:所述第一网络设备根据从所述第三报文接收的所述第二网络设备的设备标识与所述目标控制条目所属的一个或多个所述第一报文中的所述第二网络设备的设备标识相匹配,从所述一个或多个所述第一报文中确定向所述第二网络设发送的所述目标控制条目。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述控制条目为流规则flowspec,或者为分段路由SR策略,或者为路由策略分发RPD。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述至少一条控制条目为所述第一网络设备从控制器或服务器获取,或者所述至少一条控制条目为所述第一网络设备从第四网络设备接收,或者所述至少一条控制条目为所述第一网络设备本地配置的。
- 根据权利要求9所述的方法,其特征在于,当所述至少一条控制条目为所述第一网络设备从第四网络设备接收的时,所述至少一条控制条目为所述第四网络设备根据所述 第一网络设备的设备标识确定的。
- 一种报文传输系统,其特征在于,所述系统包括:第一网络设备和第二网络设备;所述第一网络设备,用于获取至少一条控制条目,所以至少一条控制条目位于至少一个第一报文中,所述至少一个第一报文分别包括所述第一报文需发往的网络设备的设备标识;所述第一网络设备,还用于根据所述至少一个第一报文中的部分或全部报文中包括的设备标识为第二网络设备的设备标识,确定向所述第二网络设备发送的目标控制条目,所述目标控制条目为所述至少一条控制条目中的一个或多个控制条目;所述第一网络设备,还用于向所述第二网络设备发送至少一个第二报文,所述目标控制条目位于所述至少一个第二报文,所述至少一个第二报文分别包括所述第二网络设备的设备标识;所述第二网络设备,用于接收所述至少一个第二报文。
- 根据权利要求11所述的系统,其特征在于,所述系统还包括:第三网络设备,所述至少一个第二报文中还包括所述第三网络设备的设备标识;所述第二网络设备,还用于根据所述第三网络设备的设备标识从所述目标控制条目中确定向所述第三网络设备发送的控制条目,所述控制条目为所述目标控制条目中的至少一条或多条控制条目;所述第二网络设备,还用于向所述第三网络设备发送至少一个第四报文,所述控制条目位于所述至少一个第四报文,所述至少一个第四报文分别包括所述第三网络设备的设备标识。
- 根据权利要求11或12所述的系统,其特征在于,所述第二网络设备,还用于向所述第一网络设备发送第三报文,所述第三报文包括所述第二网络设备的设备标识。
- 根据权利要求11-13任一项所述的系统,其特征在于,所述第三网络设备,还用于向所述第二网络设备发送第五报文,所述第五报文包括所述第三网络设备的设备标识。
- 一种报文传输装置,其特征在于,所述装置包括:获取单元,用于获取至少一个控制条目,所述至少一个控制条目位于至少一个第一报文中,所述至少一个第一报文分别包括所述第一报文需发往的网络设备的设备标识;确定单元,用于根据所述至少一个第一报文中的部分或全部报文中包括的设备标识为第二网络设备的设备标识,确定向所述第二网络设备发送的目标控制条目,所述目标控制条目为所述至少一个控制条目中的一个或多个控制条目;发送单元,用于向所述第二网络设备发送至少一个第二报文,所述目标控制条目位于所述至少一个第二报文中,所述至少一个第二报文分别包括所述第二网络设备的设备标识。
- 根据权利要求15所述的装置,其特征在于,所述装置为路由反射设备。
- 根据权利要求15或16所述的装置,其特征在于,所述第二网络设备为路由反射设备,或者所述第二网络设备为客户端设备。
- 根据权利要求17所述的方法,其特征在于,当所述第二网络设备为路由反射设备,所述至少一个第二报文中还包括第三网络设备的设备标识,所述第三网络设备的设备标识 用于指示所述第二网络设备根据所述第三网络设备的设备标识从所述目标控制条目中确定发往所述第三网络设备的控制条目。
- 根据权利要求15-18任一项所述的装置,其特征在于,所述至少一个第二报文为边界网关协议BGP报文,所述第二网络设备的设备标识分别位于所述至少一个第二报文的扩展团体属性中。
- 根据权利要求14-19任一项所述的装置,其特征在于,所述第二网络设备的设备标识为路由器标识Router-ID。
- 根据权利要求15-20所述的装置,其特征在于,所述装置还包括:接收单元,所述接收单元,还用于在执行所述获取单元之前,接收所述第二网络设备发送的第三报文,所述第三报文中包括所述第二网络设备的设备标识;所述确定单元,具体用于根据从所述第三报文接收的所述第二网络设备的设备标识与所述目标控制条目所属的一个或多个所述第一报文中的所述第二网络设备的设备标识相匹配,从所述一个或多个所述第一报文中确定向所述第二网络设发送的所述目标控制条目。
- 根据权利要求15-21任一项所述的装置,其特征在于,所述控制条目为流规则flowspec,或者为分段路由SR策略,或者为路由策略分发RPD。
- 根据权利要求15-22任一项所述的装置,其特征在于,所述至少一条控制条目为所述装置从控制器或服务器获取,或者所述至少一条控制条目为所述装置从第四网络设备接收,或者所述至少一条控制条目为所述第一网络设备本地配置的。
- 根据权利要求23所述的装置,其特征在于,当所述至少一条控制条目为所述装置从第四网络设备接收的时,所述至少一条控制条目为所述第四网络设备根据所述装置的设备标识确定的。
- 一种通信设备,其特征在于,包括:处理器,存储器;所述存储器,用于存储计算机可读指令或者计算机程序;所述处理器,用于读取所述计算机可读指令或所述计算机程序,以使得所述通信设备实现如权利要求1-10中任一项所述的报文传输方法。
- 一种计算机可读存储介质包括指令或计算机程序,当其在计算机上运行时,使得计算机执行以上权利要求1-10任意一项所述的报文传输方法。
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/117003 WO2022061561A1 (zh) | 2020-09-23 | 2020-09-23 | 一种报文传输方法及装置 |
CN202080105163.XA CN116158062A (zh) | 2020-09-23 | 2020-09-23 | 一种报文传输方法及装置 |
BR112023005185A BR112023005185A2 (pt) | 2020-09-23 | 2020-09-23 | Método, sistema e aparelho de transmissão de pacotes, dispositivo de comunicação e meio de armazenamento legível por computador |
EP20954415.4A EP4210290A4 (en) | 2020-09-23 | 2020-09-23 | PACKET TRANSMISSION METHOD AND APPARATUS |
JP2023518432A JP2023542219A (ja) | 2020-09-23 | 2020-09-23 | パケット伝送方法および装置 |
MX2023003359A MX2023003359A (es) | 2020-09-23 | 2020-09-23 | Metodo y aparato de transmision de paquetes. |
US18/187,437 US20230224245A1 (en) | 2020-09-23 | 2023-03-21 | Packet Transmission Method and Apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/117003 WO2022061561A1 (zh) | 2020-09-23 | 2020-09-23 | 一种报文传输方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/187,437 Continuation US20230224245A1 (en) | 2020-09-23 | 2023-03-21 | Packet Transmission Method and Apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022061561A1 true WO2022061561A1 (zh) | 2022-03-31 |
Family
ID=80844513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/117003 WO2022061561A1 (zh) | 2020-09-23 | 2020-09-23 | 一种报文传输方法及装置 |
Country Status (7)
Country | Link |
---|---|
US (1) | US20230224245A1 (zh) |
EP (1) | EP4210290A4 (zh) |
JP (1) | JP2023542219A (zh) |
CN (1) | CN116158062A (zh) |
BR (1) | BR112023005185A2 (zh) |
MX (1) | MX2023003359A (zh) |
WO (1) | WO2022061561A1 (zh) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060245374A1 (en) * | 2005-04-28 | 2006-11-02 | Keyur Patel | Method to scale hierarchical route reflectors using automated outbound route filtering-list mechanism |
CN101155175A (zh) * | 2006-09-27 | 2008-04-02 | 华为技术有限公司 | 一种基于bgp协议的出路由过滤的方法和装置 |
CN104753794A (zh) * | 2013-12-26 | 2015-07-01 | 中国移动通信集团辽宁有限公司 | 路由信息传递方法、系统及路由反射器 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080101385A1 (en) * | 2006-10-30 | 2008-05-01 | At&T Knowledge Ventures, L.P. | System and method for filtering routing updates |
CN112291145B (zh) * | 2015-07-06 | 2024-05-14 | 华为技术有限公司 | 路由控制的方法、设备和系统 |
-
2020
- 2020-09-23 CN CN202080105163.XA patent/CN116158062A/zh active Pending
- 2020-09-23 EP EP20954415.4A patent/EP4210290A4/en active Pending
- 2020-09-23 JP JP2023518432A patent/JP2023542219A/ja active Pending
- 2020-09-23 MX MX2023003359A patent/MX2023003359A/es unknown
- 2020-09-23 BR BR112023005185A patent/BR112023005185A2/pt unknown
- 2020-09-23 WO PCT/CN2020/117003 patent/WO2022061561A1/zh unknown
-
2023
- 2023-03-21 US US18/187,437 patent/US20230224245A1/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060245374A1 (en) * | 2005-04-28 | 2006-11-02 | Keyur Patel | Method to scale hierarchical route reflectors using automated outbound route filtering-list mechanism |
CN101155175A (zh) * | 2006-09-27 | 2008-04-02 | 华为技术有限公司 | 一种基于bgp协议的出路由过滤的方法和装置 |
CN104753794A (zh) * | 2013-12-26 | 2015-07-01 | 中国移动通信集团辽宁有限公司 | 路由信息传递方法、系统及路由反射器 |
Non-Patent Citations (2)
Title |
---|
See also references of EP4210290A4 * |
W. WANG A. WANG CHINA TELECOM H. WANG HUAWEI TECHNOLOGIES G. MISHRA VERIZON INC. S. ZHUANG J. DONG HUAWEI TECHNOLOGIES: "Route Distinguisher Outbound Route Filter (RD-ORF) for BGP-4; draft-wang-idr-rd-orf-03.txt", ROUTE DISTINGUISHER OUTBOUND ROUTE FILTER (RD-ORF) FOR BGP-4; DRAFT-WANG-IDR-RD-ORF-03.TXT, no. 3, 24 August 2020 (2020-08-24), pages 1 - 14, XP015141359 * |
Also Published As
Publication number | Publication date |
---|---|
CN116158062A8 (zh) | 2024-05-24 |
US20230224245A1 (en) | 2023-07-13 |
MX2023003359A (es) | 2023-03-29 |
EP4210290A1 (en) | 2023-07-12 |
EP4210290A4 (en) | 2023-11-01 |
CN116158062A (zh) | 2023-05-23 |
JP2023542219A (ja) | 2023-10-05 |
BR112023005185A2 (pt) | 2023-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210084009A1 (en) | Route generation method and device | |
JP7105248B2 (ja) | 高性能コンピューティング環境においてパーティションメンバーシップに関連して定義されるマルチキャストグループメンバーシップを提供するシステムおよび方法 | |
CN110535760B (zh) | 聚合接口的转发检测 | |
US10237179B2 (en) | Systems and methods of inter data center out-bound traffic management | |
US9479349B2 (en) | VLAG PIM multicast traffic load balancing | |
EP2731313A1 (en) | Distributed cluster processing system and message processing method thereof | |
WO2021135420A1 (zh) | 业务链的故障保护方法、装置、设备、系统及存储介质 | |
WO2022048418A1 (zh) | 一种转发报文的方法、设备和系统 | |
WO2022111372A1 (zh) | 报文传输方法、装置、设备及计算机可读存储介质 | |
WO2022261881A1 (zh) | 一种网卡管理系统、报文处理方法及设备 | |
WO2022188530A1 (zh) | 一种路由处理方法及网络设备 | |
WO2022088685A1 (zh) | 一种语义名称获取方法、装置、设备及存储介质 | |
WO2022061561A1 (zh) | 一种报文传输方法及装置 | |
WO2022063065A1 (zh) | 一种路由信息传输方法及装置 | |
EP3817341A1 (en) | Bulk configuration of devices behind a network address translation device | |
CN114301839A (zh) | 一种组播报文传输方法及装置 | |
WO2022133646A1 (zh) | 一种路由传输方法及装置 | |
WO2024093306A1 (zh) | 通信方法及装置 | |
WO2022143572A1 (zh) | 一种报文处理方法及相关设备 | |
WO2022161061A1 (zh) | 一种故障检测方法、网络设备及系统 | |
WO2022037330A1 (zh) | 传输虚拟专用网的段标识vpn sid的方法、装置和网络设备 | |
WO2022166464A1 (zh) | 一种报文传输方法、系统及设备 | |
WO2022257854A1 (zh) | 一种报文发布方法、转发路径处理方法及装置 | |
CN114025025B (zh) | SRv6 SID的发布方法及网络设备 | |
US9712650B2 (en) | PIM fast failover using PIM graft message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2023518432 Country of ref document: JP Kind code of ref document: A |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112023005185 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 2020954415 Country of ref document: EP Effective date: 20230404 |
|
ENP | Entry into the national phase |
Ref document number: 112023005185 Country of ref document: BR Kind code of ref document: A2 Effective date: 20230321 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |