CN115632977A - Device for forwarding SRv message based on hybrid networking - Google Patents

Device for forwarding SRv message based on hybrid networking Download PDF

Info

Publication number
CN115632977A
CN115632977A CN202211051090.8A CN202211051090A CN115632977A CN 115632977 A CN115632977 A CN 115632977A CN 202211051090 A CN202211051090 A CN 202211051090A CN 115632977 A CN115632977 A CN 115632977A
Authority
CN
China
Prior art keywords
srv
path
sid
forwarding
hybrid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211051090.8A
Other languages
Chinese (zh)
Inventor
左华成
曹宇
岳巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Digital Intelligence Technology Co Ltd
Original Assignee
China Telecom Digital Intelligence Technology Co Ltd
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 China Telecom Digital Intelligence Technology Co Ltd filed Critical China Telecom Digital Intelligence Technology Co Ltd
Priority to CN202211051090.8A priority Critical patent/CN115632977A/en
Publication of CN115632977A publication Critical patent/CN115632977A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The invention discloses a device for forwarding SRv messages based on a hybrid networking, which comprises: the system comprises a mixed Path module, a mixed stack processing module, a SRv6Path SID extraction module and a SRv Path SID query module, wherein the SRv Path SID extraction module is connected with the SRv Path SID query module, the SRv Path SID query module is connected with the mixed Path module, and the mixed Path module is connected with the mixed stack processing module. The device for forwarding the SRv message based on the hybrid networking can realize correct data forwarding under the hybrid networking scene of the device which supports SRv Path SID characteristic and the device which does not support the characteristic, and simultaneously supports smooth evolution from a network which uses the current SRv technology to a network which is based on SRv Path SID technology.

Description

Device for forwarding SRv message based on hybrid networking
Technical Field
The invention belongs to the technical field of IP (Internet protocol) bearer networks, and particularly relates to a device for forwarding SRv messages based on a hybrid networking.
Background
The existing SRv device depends on the SRv header middle section node list for forwarding, occupies the number of bytes carried by a forwarding message, and the number of consumed bytes is positively correlated with the length of the section node list, which may reduce the load efficiency of transmitting effective service data. SRv6Path SID is a new SID designed to identify paths, and in combination with the SRH header to SRv, replacing the segment node list with SRv Path SID can effectively reduce the SRv header size. However, there are devices in the actual network that do not support this feature, and a method is needed to deliver SRv messages in the hybrid networking.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a device for forwarding SRv messages based on a hybrid networking, which is compatible with the conventional SRv network by using SRv Path SID technology, so that SRv messages are forwarded.
In order to achieve the purpose, the invention adopts the following technical scheme: a device for forwarding SRv messages based on a hybrid networking comprises: the system comprises a mixed Path module, a mixed stack processing module, a SRv6Path SID extraction module and a SRv Path SID query module, wherein the SRv Path SID extraction module is connected with the SRv Path SID query module, the SRv Path SID query module is connected with the mixed Path module, the mixed Path module is connected with the mixed stack processing module, and the mixed stack processing module is connected with the SRv Path SID query module.
Further, the hybrid Path module learns that the node pairs SRv Path SID characteristics are supported in the segment node list of the devices in the hybrid networking through BGP-LS, and replaces a node set continuously supporting SRv Path SID characteristics in the segment node list with SRv Path SID.
Further, the device configures the segment node list and SRv Path SID in the hybrid networking, and uses the device supporting SRv message forwarding as a route reflector, and establishes a peer of BGP-LS and BGP-SR Policy between the device supporting SRv Path SID and the route reflector.
Further, at least two continuous devices supporting SRv Path SID exist in the hybrid networking.
Further, the hybrid stack processing module is configured to modify SRv Path SID forwarding flag bits of SRH headers, segments left, and push the hybrid Path into a segment node list field, and put SRv Path SID in the hybrid Path into the bottom of the stack.
Furthermore, the SRv Path SID put at the bottom of the stack is preferentially processed, and if a device supporting SRv Path SID appears in the segment node list, the field value of Segments left is reduced by 1 when the message is processed.
Further, the SRv Path SID extraction module is configured to identify a SRv Path SID forwarding flag bit of the packet, and extract SRv Path SID value, SRv Path Locator, SRv6Path ID, SRv6Path Function, and SRv Path authority from the stack bottom of the segment node list.
Further, under the condition that the SRv Path SID query module does not program SRv Path SID at the intermediate node, SRv Path SID does not change in the whole forwarding process, SRv Path SID query SRv6Path SID forwarding table SRv message is directly extracted, and the next-hop Path is obtained; under the condition that the intermediate node programs SRv6Path SID, the programmed SRv Path Function and SRv Path identifiers change to cause SRv Path SID value to change, SRv Path ID is extracted to inquire SRv Path SID forwarding table SRv message, and the next hop Path is obtained and processed by the hybrid stack processing module.
Compared with the prior art, the invention has the following beneficial effects: the device for forwarding SRv messages based on the hybrid networking can realize correct data forwarding under the hybrid networking scene of a device supporting SRv Path SID characteristics and a device not supporting the characteristics, and simultaneously supports smooth evolution from a network using the current SRv technology to a network based on SRv Path SID technology. It can be seen from the networking environment above that when devices using SRv Path SID characteristics continuously appear, SRv Path SID can be used to replace SID of these devices in the segment node list, in order to support normal forwarding of the existing SRv technology, SID of a border device downstream of the existing SRv technology device needs to be embodied in the segment node list, that is, when devices using SRv Path SID characteristics continuously appear more than 2, the number of SRH header middle segment node lists can be reduced, and when devices using SRv Path SID characteristics continuously appear, the number of SRH header middle segment node lists is reduced more.
Drawings
FIG. 1 is a schematic diagram of a device for forwarding SRv messages based on SRv Path SID hybrid networking according to the present invention;
FIG. 2 is a diagram of SRv Path SID hybrid paths in accordance with the present invention;
FIG. 3 is a schematic diagram of a SRv Path SID hybrid Path SRH header in the present invention;
FIG. 4 is a schematic diagram of a SRv Path SID hybrid networking topology in the embodiment.
Detailed Description
The technical solution of the present invention is further explained with reference to the drawings and the embodiments.
Fig. 1 is a schematic diagram of a device for forwarding SRv messages based on SRv Path SID hybrid networking according to the present invention, where the device includes: the system comprises a mixed Path module, a mixed stack processing module, a SRv Path SID extraction module and a SRv Path SID query module, wherein the SRv Path SID extraction module is connected with the SRv Path SID query module, the SRv Path SID query module is connected with the mixed Path module, the mixed Path module is connected with the mixed stack processing module, and the mixed stack processing module is connected with the SRv Path SID query module. In a first node of the hybrid networking, a hybrid Path module performs hybrid processing on a section node list and a SRv Path SID state list to form a hybrid Path carrying SRv Path SID, and then data forwarding is performed after SRv heads are processed by a hybrid stack processing module as required; in the middle of the hybrid networking, a node supporting SRv Path SID uses a SRv Path SID extraction module to extract SRv6Path SID value or Path ID value from SRv header in a message, then uses a SRv Path SID query module to locally query to obtain a next-hop forwarding interface, and then performs data forwarding after the SRv header is processed by a hybrid stack processing module as required. The device for forwarding SRv messages through the hybrid networking of the invention can realize correct data forwarding under the hybrid networking scene of a device supporting SRv Path SID characteristics and a device not supporting the characteristics, and simultaneously supports smooth evolution from a network using the current SRv technology to a network based on SRv Path SID technology.
As shown in fig. 2, in the case that the hybrid Path module learns the support of the node pair SRv Path SID characteristic in the segment node list of the devices in the hybrid networking through BGP-LS, when generating the list in the SRH header, one SRv Path SID is used to replace the node set continuously supporting SRv Path SID characteristic in the segment node list, and only one downstream node immediately adjacent to the device not supporting SRv Path SID characteristic is reserved for ensuring that the device not supporting SRv Path SID can normally forward the packet according to the existing SRv technology, that is, in the case of ensuring normal forwarding, one SRv Path SID is carried in the SRH header, and multiple 3579 z3579 SID of the node set supporting 3265 zxft 326 Path characteristic are replaced, so as to reduce the SRH header, and therefore, at least two devices continuously supporting 3525 zxft 356 Path SID exist in the hybrid networking. As in the example of fig. 2, SRv Path SID replaces SID1, SID2 and SID6, enabling SRH headers to be reduced by 2 IPv6 address lengths.
The SID Segment list stack of the current SRH header is expressed as 0 to n-1 in Segment left, in order to prevent a device which does not support SRv Path SID from processing SRv Path SID and cause the condition of forwarding failure in a hybrid network, SRv Path SID is appointed to be placed in the nth stack, and the stack cannot be pointed in the current SRv forwarding and cannot be read and processed. The nth stack is preferentially read for processing by the device supporting SRv Path SID. The hybrid stack processing module is used for modifying SRv Path SID forwarding flag bits and Segments left of SRH headers, pushing hybrid paths into segment node list fields, and placing SRv Path SIDs in the hybrid paths at the bottom of a stack, namely an nth stack. As shown in fig. 3, for the first node hybrid stack processing, fields of an IPv6 header and an SRH header to be processed are processed, the IPv6 message header puts the first node SID3 in the Segment node list into the Destination Address field Destination Address of the IPv6 header, the Segment node list stack position Segment left processed by the SRH header is filled into the position where SID3 is located, the stack length last entry is set to length 4 including SRv Path, the flag bit of the flag bit flag set PF indicates that the message is allowed to be forwarded by using SRv Path SID technology, and the Segment node list Segment list is filled into all nodes of the hybrid Path. And preferentially processing SRv Path SID put at the bottom of the stack, and if a device supporting SRv Path SID appears in the segment node list, subtracting 1 from the field value of segment left when processing the message.
The invention designs SRv Path SID forwarding flag bits used for identifying whether a SRv Path SID extraction module supports using SRv Path SID technology, if flag is set, the SRv extraction module extracts SRv Path SID values from the SRH head section node list stack bottom, and can further extract SRv Path Locator, SRv Path ID, SRv6Path Function and SRv Path arrows according to locally configured SRv Path SID formats for corresponding programming and forwarding functions.
In order to realize that SRv Path SID is used to forward data in each forwarding device supporting SRv Path SID technology, forwarding nodes corresponding to each Path and a corresponding next hop exit need to be stored locally, the invention designs SRv Path SID query module to extract SRv Path SID values or Path ID values in a message, and queries a locally stored Path forwarding data table matched next hop Path. When the SRv6Path SID query module does not program SRv Path SID at the intermediate node, SRv Path SID is unchanged in the whole forwarding process, SRv6Path SID query SRv Path SID forwarding table SRv message is directly extracted, and the next hop Path is obtained; under the condition that the intermediate node programs SRv6Path SID, the programmed SRv Path Function and SRv Path identifiers change to cause SRv Path SID value to change, SRv Path ID is extracted to inquire SRv Path SID forwarding table SRv message, and the next hop forwarding interface is obtained and processed by the hybrid stack processing module.
Examples
As shown in fig. 4, the hybrid networking of this embodiment is formed by sequentially connecting devices 1 to 6, and the devices 1 to 2 and 5 to 6 support SRv Path SID, and the devices 3 to 4 do not support SRv Path SID, and a peer that establishes BGP-LS and BGP-SR Policy with the devices 1 to 2 and 5 to 6 is established using a device based on the feature of supporting SRv packet forwarding of the hybrid networking as a route reflector. BGP-LS is used to transfer SRv Path Locator and SRv Path SID feature activation states, each of the devices 1, 2, 5, and 6 establishes a complete state table of SRv Path SID in the hybrid networking, as in table 1, and grasps a node that can process SRv Path SID in the hybrid networking through the state table, and the state table supports the hybrid Path module to generate a segment node list carrying SRv Path SID.
Table 1: SRv6Path SID State Table
Node SRv6 Path Locator SRv6 Path enable
Device 1 Path Locator1 Y
Device
2 Path Locator2 Y
Device 5 -- Y
Device 6 Path Locator2 Y
BGP-SR Policy is used to transfer the Path Policy of SRv TE Tunnel configured by the head node between devices supporting SRv Path SID features, and nodes included in the Path will store corresponding Path information and SRv Path SID information to generate a corresponding SRv Path SID forwarding information table, as shown in table 2. After receiving the message, the node queries SRv Path forwarding information table according to SRv Path SID, confirms the next hop and the forwarded outgoing interface, and performs SRv message forwarding processing.
Table 2: SRv6Path SID forwarding information Table
SRv6 Path SID Path ID Next hop Segment left Out interface status
SRv6 Path SID1 SRv6 Path ID1 IPv6 address1 XX Active/Inactive
After SRv Segment List and corresponding SRv Path SID are configured on device 1 in the hybrid networking, the hybrid Path module inserts SRv Path SID into the bottom of SRv Segment List according to the operation described in the embodiment, and deletes device 1 supporting SRv Path SID in SRv Segment List in combination with SRv6Path SID state table information, and keeps the device which does not support SRv Path SID and is adjacent to the device supporting SRv Path SID, so as to form the hybrid Segment List. After the service traffic is accessed to SRv TE Tunnel, the hybrid stack processing module adds a head of SRv to the service packet, including: IPv6 header and SRH header. The method comprises the steps of putting a first node SID3 in a Segment node list into a Destination Address field Destination Address of an IPv6 header, filling Segment node list stack position Segment left processed by an SRH header into the position of SID3, setting stack length last entry to be length 4 containing SRv Path SID, setting a flag bit of a flag bit flag PF to indicate that a message is allowed to be forwarded by using SRv Path SID technology, filling Segment node list Segment into all nodes of a hybrid Path, and forwarding a SRv message after the hybrid stack processing module finishes processing.
After the device 2 receives a SRv message, a SRv Path SID extraction module identifies SRv header flag field PF set and enters SRv Path SID extraction flow, and Segment list [ last entry ] is read to extract SRv Path SID; the extracted SRv6Path SID value is transmitted to SRv6Path SID query module to search SRv Path SID information forwarding table, and the next hop SID is determined to be SID3 and an outgoing interface; and transmitting the query result to a hybrid stack processing module, and modifying the IPv6 destination address as a next-hop device SID3, wherein the SID of the device 2 is not in Segment list, the next-hop device 3 does not support SRv Path SID, the PF setting of the flag field is deleted, and the Segment list field does not need to be modified because the SID is not in Segment list. After processing the header, it is forwarded to the device 3.
After receiving the SRv packet, the device 3 extracts the segment left-1=1 to SID4 according to the current SRv processing flow and segment left =2 to SID3, correctly compares the segment left =2 with the IPv6 destination, modifies the destination address of the IPv6 header to SID4 and segment left to 2, and forwards the modified packet to the device 4.
After receiving the SRv packet, the device 4 extracts the segment left-1=0 to SID5 according to the current SRv processing flow and the segment left =1 to SID4, and correctly compares the segment left =1 with the IPv6 destination, modifies the destination address of the IPv6 header to SID5 and the segment left to 0, and forwards the modified packet to the device 5.
After the device 5 receives the message, because the SRv Path SID characteristic has been activated locally, segment left [ Entry ] is extracted to SRv Path SID at the bottom of the stack. The local query to the next hop is SID6, while supporting SRv Path SID feature, the destination address of IPv6 header is changed to SID6 during forwarding, the flag of SRH header is set to FP, because it subtracts 1 from the segment left value in the segment list field, and then forwards to device 6.
After the device 6 receives the message, the SRv Path SID extraction module identifies SRv header flag field PF set to enter SRv Path SID extraction flow, reads Segment list [ last entry ] and extracts SRv Path SID; the extracted SRv6Path SID value is transmitted to a SRv Path SID query module to search SRv Path SID information forwarding table, the device 6 is inquired to be the last hop, and SRv header is popped up, so that the SRv message is forwarded.
The device for forwarding SRv messages based on the hybrid networking is compatible with the existing SRv network by using SRv Path SID technology, and can realize the purpose of forwarding SRv messages.
The above are only preferred embodiments of the present invention, and the scope of the present invention is not limited to the above examples, and all technical solutions that fall under the spirit of the present invention belong to the scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may be made by those skilled in the art without departing from the principle of the invention.

Claims (8)

1. A device for forwarding SRv messages based on a hybrid networking is characterized by comprising: the system comprises a mixed Path module, a mixed stack processing module, a SRv6Path SID extraction module and a SRv Path SID query module, wherein the SRv Path SID extraction module is connected with the SRv Path SID query module, the SRv Path SID query module is connected with the mixed Path module, the mixed Path module is connected with the mixed stack processing module, and the mixed stack processing module is connected with the SRv Path SID query module.
2. The device for forwarding SRv packets based on the hybrid networking of claim 1, wherein the hybrid Path module learns that the node pair SRv Path SID feature supports in the segment node list of the device in the hybrid networking through BGP-LS, and replaces a node set that continuously supports SRv Path feature in the segment node list with SRv Path SID.
3. The device for forwarding SRv messages in a hybrid-based networking according to claim 2, wherein the device configures the segment node list and SRv Path SID in the hybrid-based networking, and establishes peers of BGP-LS and BGP-SR Policy between the device supporting SRv Path SID and the route reflector using the device supporting SRv message characteristics as a route reflector.
4. The device for forwarding SRv packets based on hybrid networking according to claim 3, wherein there are at least two consecutive devices supporting SRv Path SID in the hybrid networking.
5. The device for forwarding SRv packets based on the hybrid networking of claim 1, wherein the hybrid stack processing module is configured to modify SRv Path SID forwarding flag bit, segments left of SRH header, and push the hybrid Path to segment node list field, and put SRv Path SID in the hybrid Path to the bottom of the stack.
6. The device for forwarding SRv packets based on the hybrid networking of claim 5, wherein SRv Path SID put at the bottom of the stack is processed preferentially, and if the device supporting SRv Path SID appears in the segment node list, the field value of Segments left is reduced by 1 when the packet is processed.
7. The device according to claim 1, wherein the SRv Path SID extraction module is configured to identify a SRv Path SID forwarding flag bit of the packet, and extract a SRv Path SID value, a SRv Path Locator, a SRv Path ID, an SRv6Path Function, and a SRv Path identifiers from a stack bottom of the segment node list.
8. The device for forwarding SRv packets based on the hybrid networking of claim 1, wherein the SRv Path SID query module directly extracts SRv Path SID query SRv Path forwarding table SID SRv packet to obtain the next hop Path, without changing SRv Path SID in the whole forwarding process, when the intermediate node does not program SRv Path SID; under the condition that the intermediate node programs SRv6Path SID, the programmed SRv Path Function and SRv Path identifiers change to cause SRv Path SID value to change, SRv Path ID is extracted to inquire SRv Path SID forwarding table SRv message, and the next hop Path is obtained and processed by the hybrid stack processing module.
CN202211051090.8A 2022-08-31 2022-08-31 Device for forwarding SRv message based on hybrid networking Pending CN115632977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211051090.8A CN115632977A (en) 2022-08-31 2022-08-31 Device for forwarding SRv message based on hybrid networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211051090.8A CN115632977A (en) 2022-08-31 2022-08-31 Device for forwarding SRv message based on hybrid networking

Publications (1)

Publication Number Publication Date
CN115632977A true CN115632977A (en) 2023-01-20

Family

ID=84902806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211051090.8A Pending CN115632977A (en) 2022-08-31 2022-08-31 Device for forwarding SRv message based on hybrid networking

Country Status (1)

Country Link
CN (1) CN115632977A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541613A (en) * 2020-04-27 2020-08-14 鹏城实验室 Data processing method based on SRv6 and related equipment
CN111835637A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Data processing method based on SRv6 and related network equipment
CN112202671A (en) * 2020-09-09 2021-01-08 中盈优创资讯科技有限公司 Method and device for realizing service arrangement through proxy
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835637A (en) * 2019-04-15 2020-10-27 华为技术有限公司 Data processing method based on SRv6 and related network equipment
CN111541613A (en) * 2020-04-27 2020-08-14 鹏城实验室 Data processing method based on SRv6 and related equipment
CN112202671A (en) * 2020-09-09 2021-01-08 中盈优创资讯科技有限公司 Method and device for realizing service arrangement through proxy
CN112804148A (en) * 2021-03-24 2021-05-14 新华三信息安全技术有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
US10938748B2 (en) Packet processing method, computing device, and packet processing apparatus
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
JP4342966B2 (en) Packet transfer device
EP2592793B1 (en) Method and apparatus for forwarding multicast traffic
US7778204B2 (en) Automatic maintenance of a distributed source tree (DST) network
US7983278B1 (en) Redirect checking in a network device
WO2000069119A1 (en) System, device, and method for reducing forwarding states in a communication system
CN109257789B (en) Vehicle-mounted network data communication method based on multi-hop cluster
CN110401599A (en) The processing method and processing device of data packet, storage medium, electronic device
CN101222414A (en) Device, system and method for implementing multicast communication
US20230370298A1 (en) Message header processing method and apparatus, storage medium and electronic device
CN103841621B (en) A kind of redundancy method for routing based on 6LoWPAN tree networks
WO2021185043A1 (en) Forwarding path establishment method and apparatus, and computer-readable storage medium
US20220124023A1 (en) Path Switching Method, Device, and System
CN101184053B (en) LAN export link selecting method, device and routing device
JP2022537296A (en) EVPN message transfer method, system, storage medium and terminal
CN108737273B (en) Message processing method and device
CN110072196B (en) Communication method and system for providing block chain oriented application for named data network
CN101674229B (en) Information management method of link aggregation group and network node
US20060209774A1 (en) Wireless base station, wireless mobile device, and wireless access network
CN101132374A (en) Method and device for transmitting message
CN115632977A (en) Device for forwarding SRv message based on hybrid networking
EP2479942B1 (en) Method and system for discovering ring network protection information
CN113938446B (en) Multicast table item synchronization method and device based on MLAG environment
CN115473812A (en) Flow message forwarding method, client, controller and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination