CN113411256B - Service updating method, device and segmented routing network programming system - Google Patents

Service updating method, device and segmented routing network programming system Download PDF

Info

Publication number
CN113411256B
CN113411256B CN202110868165.0A CN202110868165A CN113411256B CN 113411256 B CN113411256 B CN 113411256B CN 202110868165 A CN202110868165 A CN 202110868165A CN 113411256 B CN113411256 B CN 113411256B
Authority
CN
China
Prior art keywords
service
network
network element
event
programming controller
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.)
Active
Application number
CN202110868165.0A
Other languages
Chinese (zh)
Other versions
CN113411256A (en
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.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
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 Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN202110868165.0A priority Critical patent/CN113411256B/en
Publication of CN113411256A publication Critical patent/CN113411256A/en
Application granted granted Critical
Publication of CN113411256B publication Critical patent/CN113411256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software

Abstract

The invention discloses a service updating method, a device and a segment routing network programming system, wherein the method is applied to an SR network programming controller of the segment routing network programming system and comprises the following steps: when the monitored external event is a configuration service type event, determining a service identifier and service content according to the external event; and updating the service class corresponding to the SR network programming controller according to the service identifier and the service content so that the SR network programming controller processes data reported by the network element and controls the connected network element to process data traffic and/or forward the data traffic. The invention updates the service class corresponding to the SR network programming controller by configuring the service class on the SR network programming controller, thereby solving the problem of insufficient expansibility when the segmented routing network programming system executes the SR network programming.

Description

Service updating method, device and segmented routing network programming system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for service update, a segment routing network programming system, and a computer-readable storage medium.
Background
SR (segment routing) is a protocol designed based on the concept of source routing to forward packets over a network, and this protocol can be applied to balance distributed intelligence with centralized optimization of a communication network. The protocol directs the forwarding of packets through an ordered list of segments.
The network programming of the SR is to encode the network packet using an ordered segment list of the SR, each segment in the ordered segment list representing an instruction according to which the network packet is processed. In the prior art, the SR capability is defined according to the SR to program the network, the SR capability support in the existing network system needs to be implemented on the forwarding layer and the control layer of the network system for SR capability coding, and when a new SR capability is introduced, the forwarding layer and the control layer in the network system need to be frequently changed, which causes a problem of insufficient extensibility when the network system performs network programming based on the SR.
Disclosure of Invention
The invention mainly aims to provide a service updating method, a service updating device, a segmented routing network programming system and a computer readable storage medium, and aims to solve the technical problem that a network system supports insufficient SR network programming expansibility.
In order to achieve the above object, the present invention provides a service updating method, where the service updating method is applied to an SR network programming controller of a segment routing network programming system, where the segment routing network programming system includes the SR network programming controller and at least one network element connected to the SR network programming controller, where the SR network programming controller is configured to process data reported by the network element and control a connected network element to process data traffic and/or forward data traffic, and the service updating method includes:
when the monitored external event is a configuration service type event, determining a service identifier and service content according to the external event;
and updating the service class corresponding to the SR network programming controller according to the service identifier and the service content so that the SR network programming controller processes data reported by the network element and controls the connected network element to process data traffic and/or forward the data traffic.
Optionally, the step of updating the service class corresponding to the SR network programming controller according to the service identifier and the service content includes at least one of:
when the configured service event is a newly added service event, generating a new service class according to the service identifier and the service content;
when the configured service type event is a service deletion event, deleting the existing service type in the SR network programming controller according to the service identifier and the service content;
and when the configured service type event is a modified service event, modifying the existing service type in the SR network programming controller according to the service identifier and the service content.
Optionally, the step of modifying an existing service class in the SR network programming controller according to the service identifier and the service content includes:
determining a target existing service class corresponding to the service identifier;
and adding a service content entry in the target existing service class according to the service content, and/or deleting the service content entry in the target existing service class according to the service content.
Optionally, the step of the service updating method further includes:
when the monitored external event is a network element data reporting event, network element data reported by a network element to be reported is obtained according to the external event;
and determining the network element matched with the SR capability list according to the network element data, and controlling the network element matched with the SR capability list to forward data traffic.
Optionally, the step of the service updating method further includes:
when the monitored external event is a reported network element position event, acquiring a network element position corresponding to the reported network element position event;
and determining a network topology according to the network element position and generating a corresponding SR processing path according to the network topology.
Optionally, the step of the service updating method further includes:
when the monitored external event is a service request event, acquiring service request information corresponding to the service request event;
generating an SR processing path and a corresponding SID list according to the existing service class in the SR network programming controller and the service request information;
acquiring an SR processing rule and an SR strategy according to the SR processing path and the corresponding SID list;
synchronizing the SR policy to an ingress network element corresponding to the SR processing path, where the ingress network element is configured to forward data traffic flowing through itself according to the SR policy, and synchronize the SR processing rule to other network elements in the SR processing path except the ingress network element, where the other network elements are configured to process data traffic flowing through itself according to the SR processing rule, and forward data traffic flowing through itself.
In addition, in order to achieve the above object, the present invention further provides a segment routing network programming system, which includes an SR network programming controller, and at least one network element connected to the SR network programming controller; the SR network programming controller is configured to perform the steps of the service update method as described above.
In addition, in order to achieve the above object, the present invention further provides a service updating apparatus, which includes a memory, a processor, and a service updating program stored in the memory and executable on the processor, wherein the service updating program, when executed by the processor, implements the steps of the service updating method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium storing a service update program, which when executed by a processor implements the steps of the service update method as described above.
The service updating method, the service updating device, the segment routing network programming system and the computer readable storage medium provided by the embodiments of the present invention support SR capability by configuring a service class on an SR network programming controller, where the service class includes a service identifier and service content, and update the service class corresponding to the SR network programming controller according to the service identifier and the service content, so that the SR network programming controller is used to process network element data reported by a network element and control a connected network element to process data traffic and/or forward data traffic, and support SR capability by updating the service class, thereby avoiding a problem of insufficient expansibility when the segment routing programming system performs network programming based on SR.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a service updating method according to the present invention;
FIG. 2 is a system architecture diagram of the segmented routing network programming system of the present invention;
FIG. 3 is a functional architecture diagram of the segmented routing network programming system of the present invention;
fig. 4 is a detailed flowchart of step S20 of the service updating method according to the second embodiment of the present invention;
fig. 5 is a detailed flowchart of step S23 of the service updating method according to the third embodiment of the present invention;
fig. 6 is a flowchart illustrating a service updating method according to a fourth embodiment of the present invention;
fig. 7 is a flowchart illustrating a fifth embodiment of a service updating method according to the present invention;
fig. 8 is a flowchart illustrating a service updating method according to a sixth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the monitored external event is a configuration service type event, determining a service identifier and service content according to the external event; and updating the service class corresponding to the SR network programming controller according to the service identifier and the service content so that the SR network programming controller processes data reported by the network element and controls the connected network element to process data traffic and/or forward the data traffic.
Referring to fig. 1, a first embodiment of the present invention provides a service updating method, where the service updating method includes:
step S10, when the monitored external event is a configuration service event, determining a service identifier and service content according to the external event;
step S20, updating the service class corresponding to the SR network programming controller according to the service identifier and the service content, so that the SR network programming controller processes data reported by the network element and controls a connected network element to process and/or forward data traffic.
In the embodiment of the present application, the embodiment is applied to an SR network programming controller of a segment routing network programming control system, where the SR network programming system includes the SR network programming controller and at least one network element connected to the SR network programming controller, and fig. 2 is an architecture diagram of the segment routing network programming control system, referring to fig. 2. And the SR network programming controller controls each network element in the segmented routing network programming control system to process and/or forward data traffic through the network element identifier corresponding to each network element.
Optionally, referring to fig. 3, fig. 3 is an organization architecture diagram of the SR network programming controller and an organization architecture diagram of the network element, where the SR network programming controller includes a network service management module, a network resource management module, and a network controller module, and the network element includes a network programming controller agent module, an equipment management module, and an SR capability logic module. The network programming controller agent module of the network element is connected with the SR network programming controller agent module of the network element in a pairwise manner, the network service management module, the network resource management module and the network controller module of the SR network programming controller are connected with each other, the network programming controller agent module of the network element is connected with the equipment management module of the network element, and the equipment management module of the network element is connected with the SR capacity logic module of the network element.
Optionally, the network service management module is configured to update the service class of the SR network programming controller, where the service class update mode may be an addition service class, a deletion service class, or a modification service class, and optionally, the modification service further includes adding and/or deleting corresponding service content in the corresponding service class.
Optionally, the network resource management module is configured to store network element data of each network element, where the network element data includes a network element identifier, SR capabilities supported by the network element, and a resource of the network element. In addition, the network resource management module may further store the network element position of each network element, and generate a network topology according to the network element position. Optionally, the network resource management module may be further configured to generate a corresponding SR processing path according to a service class and an SR capability list corresponding to the service class, where the processing path includes at least one alternative path.
Optionally, the network controller module is configured to receive network element data uploaded by a network element and upload the network element data to the network resource management module, so that the network resource management module stores the network element data. In addition, the network controller module may be further configured to receive a network element position uploaded by a network element, and upload the network element position to the network resource management module, so that the network resource management module stores the network element position and generates a corresponding network topology according to the network element position; in addition, the network controller module may be further configured to receive an application or release request of the SR processing rule sent by the network service management module, and send the application or release request of the SR processing rule to a network programming controller agent module corresponding to a network element; in addition, the network controller module may be further configured to receive an SR policy addition or deletion request sent by the network service management module, and send the SR policy addition or deletion request to the network programming controller agent module of the network element.
Optionally, the network element programming controller agent module of the network element is connected to the network controller module of the SR network programming controller. The network element programming controller agent module is used for receiving network element data of a network element to be uploaded and uploading the network element data of the network element to be uploaded to the network controller module; the network programming controller agent module can also be used for receiving the network element position of the network element to be uploaded and uploading the network element position of the network element to be uploaded to the network controller module; in addition, the network programming controller agent module may be further configured to receive an application or release request of an SR processing rule sent by the network controller module, further send the application or release request of the SR processing rule to the device management module of the network element, receive response information returned by the device management module according to the application or release request of the SR processing rule, and further return the response information to the network controller module; in addition, the network programming controller agent module may be further configured to receive an SR policy addition or deletion request sent by the network controller module, upload the SR policy addition or deletion request to the device management module, receive response information returned by the device management module according to the SR policy addition or deletion request, and return the response information to the network controller module.
Optionally, the device management module of the network element is configured to transmit network element data to the network programming controller agent module, so that the network programming controller agent module uploads the network element data to the network controller module of the SR network programming controller; in addition, the device management module may be further configured to receive an SR processing rule application or release request sent by the network programming controller module, generate a corresponding SR processing rule or release the corresponding SR processing rule according to a SID and an SR capability corresponding to the SR processing rule application or release request and a network element resource, and send a corresponding SR processing rule addition request or an SR processing rule deletion request to the SR capability logic module of the network element according to the SR processing rule, where the SR processing rule includes a SID and an SR processing identifier. The device management module may be further configured to receive an addition or deletion request of an SR policy of the network programming controller proxy unit, and further transmit the addition or deletion request of the SR policy to the SR capability logic module.
Optionally, the SR capability logic module of the network element is configured to receive an SR processing rule addition request or an SR processing rule deletion request sent by the device management module, and generate a corresponding SR processing rule forwarding table according to the SR processing rule addition request or delete the SR processing rule forwarding table corresponding to the SR processing rule release request according to the SR processing rule release request; in addition, the SR capability logic module may further receive an addition or deletion request of an SR policy sent by the device management module, and generate an SR policy forwarding table according to the addition request of the SR policy or delete an SR policy forwarding table corresponding to the deletion request according to the deletion request of the SR policy; in addition, the SR capability logic unit may be further configured to receive a data traffic and obtain a matched SR policy according to the data traffic, and further encapsulate the matched SR policy into the data traffic according to a SID list corresponding to the SR policy, so that a network element forwards the data traffic according to the SR policy; in addition, the SR capability logic module may also query a corresponding SR processing rule according to the SID list corresponding to the SR-encapsulated data traffic, and then forward the data traffic to a network element corresponding to the SR processing identifier according to the SR processing identifier corresponding to the SR processing rule, where the network element may be an SR processing unit composed of hardware, and the network element may also be a software SR processing unit.
Optionally, the SR network programming controller is configured to process data reported by a network element, and control a connected network element to process and/or forward data traffic.
Optionally, the first embodiment of the present invention is applied to the SR network programming controller, and the steps of the first embodiment are executed based on the network service management module, the network resource management module, and the network controller module. Optionally, after the SR network programming controller is started, monitoring an external event in real time, where a source of the external event may be the connected network element, or a source of the external event may also be an external terminal device or system; in addition, the source of the external event may also be the segment routing network programming system.
Optionally, the external event may include at least one of the following types: configuring a service class event; a network element reports a network element data event; a network element reports a network element position event; a service request event. Wherein the configuration service class event initiates the external event by the segment routing programming system; the network element data reporting event is initiated by one of the network elements connected with the SR network programming controller by the network element; the network element reporting network element position event is initiated by one of the network elements connected with the SR network programming controller; and the external event is initiated by the external terminal equipment or system of the service request event, wherein the external terminal equipment or system is connected with the segmented routing network programming system through a preset interface.
Optionally, when the type of the monitored external event is a configured service class event, determining a service identifier and service content according to the external event, where the service identifier is unique, a service class with the same service identifier cannot be defined in the SR network programming controller, and the service content specifically includes at least one service content entry, and each service content entry includes a priority and SR capability list of the service content entry. It can be understood that, the service content entries corresponding to the service classes have different priorities, and the service content entries corresponding to the service classes cannot be configured with the same priority, where the priority of the service content entry may be a priority preset by a system configuration person for the service content entry corresponding to the service class when the service class is generated.
Optionally, after the service identifier and the service content are obtained, the service class corresponding to the SR network programming controller is updated according to the service identifier and the service content, where a specific implementation of updating the service class corresponding to the SR network programming controller may be to generate a new service class in the SR network programming controller according to the service identifier and the service content, and store the new service class in the SR network programming controller; or, the specific implementation may also delete an existing service class in the SR network programming controller according to the service identifier and the service content; in addition, the specific implementation mode can also modify the existing service class in the SR network programming controller according to the service identification and the service content.
In the embodiment of the present application, when the external event is a configured service event, a service identifier and service content are determined according to the external event, and then a service class corresponding to the SR network programming controller is updated according to the service identifier and the service content, so that when a connected network element is subsequently controlled to perform related service processing, only a network element corresponding to the new service class needs to be added or a corresponding network element needs to be upgraded, and the SR network programming controller does not need to be modified again, thereby solving the problem of insufficient expansibility when the segment routing network programming system performs network programming based on SR.
Optionally, referring to fig. 4, based on the first embodiment, the step S20 further includes at least one of the following steps:
step S21, when the configured service event is a new service event, generating a new service class according to the service identifier and the service content;
step S22, when the configured service event is a delete service event, deleting the existing service class in the SR network programming controller according to the service identifier and the service content;
and step S23, when the configured service event is a modified service event, modifying the existing service class in the SR network programming controller according to the service identifier and the service content.
In an embodiment, after the configured service class event is a new service event, it is verified that the configured service class event is a new service class generated in the SR network programming controller, and a new service class is generated in the SR network programming controller according to the service identifier and the service content, and is stored in a network service management module of the SR network programming controller, where a service identifier corresponding to the new service class is different from a service identifier of an existing service class of the network service management module, the service content includes a new service capability, and it can be understood that the new service capability has a new SR capability, where the service content includes at least one service content entry, the service content entry includes a priority corresponding to the service content entry and an SR capability list, and the SR capability list includes at least one SR capability, the SR capability list is used to represent a list of SR capabilities corresponding to network elements that provide SR processing and need to be passed through to complete a service.
Optionally, when the new service class is generated, the new service class is persistently stored in the network service management module.
In another embodiment, when the configured service class event is a delete service event, an existing service class in the network service management module is queried according to the service identifier corresponding to the configured service class event, and when the service class corresponding to the service identifier is queried, the service class corresponding to the service identifier is deleted from the network service management module.
In another embodiment, when the configured service class event is a modified service event, the service class corresponding to the service identifier is queried from the network service management module according to the service identifier corresponding to the configured service class event, so as to obtain the service content corresponding to the service class, and the service content corresponding to the service class is modified according to the service content corresponding to the configured service class event, where a manner of modifying the service content corresponding to the service class may be to delete at least one service content entry corresponding to the service class, or to add at least one service content entry corresponding to the service class.
In this embodiment of the present application, the service class configuration event includes a service event addition, a service event deletion, and a service event modification, and the corresponding service class in the network service management module is updated in the SR network programming controller in real time according to different events, so as to facilitate control of the connected network element to perform related service processing according to the updated service class in subsequent use.
Optionally, referring to fig. 5, according to the second embodiment, the step S23 further includes at least one of the following steps:
step S231, determining a target existing service class corresponding to the service identifier;
step S232, adding a service content entry in the target existing service class according to the service content, and/or deleting a service content entry in the target existing service class according to the service content.
In the embodiment of the application, a target existing service class corresponding to the service mark is screened out from the SR network programming controller according to the service identifier. When the service modification event is a service content item adding event, acquiring the priority of a service content item to be added and an SR capacity list corresponding to the service content item to be added according to the service content corresponding to the service modification event, further judging whether the service class has the service content item with the same priority or not according to the priority of the service content item to be added, and if so, returning the service content item event to fail to execute; if not, adding the service content entry into the target existing service class so as to update the service class corresponding to the network service management module.
In another embodiment, when the modification service event is a service content item deletion event, the priority of the service content item corresponding to the modification service event is obtained, and the service content item matched with the priority in the service class is queried according to the priority, so that the service content item matched with the priority is deleted.
In the embodiment of the present application, the corresponding service class is modified by adding and/or deleting the corresponding service content entry, so as to update the corresponding service class in the SR network programming controller. The method for updating the service class solves the problem of insufficient expansibility when the segmented routing network programming system is used for programming the network based on the SR.
Optionally, referring to fig. 6, based on the foregoing embodiment, the present invention further provides another embodiment of a service updating method, where the service updating method further includes:
step S30, when the monitored external event is a network element data reporting event, acquiring network element data reported by a network element to be reported according to the external event;
step S31, determining the network element matched with the SR capability list according to the network element data, and controlling the network element matched with the SR capability list to forward data traffic.
In this embodiment of the present application, when the monitored external event is a network element data reporting event, an initiator of the network element data reporting event is a network element to be reported, where the network element to be reported is connected to the SR network programming controller. When a reported network element data event initiated by the network element to be reported is received, the network controller module corresponding to the SR network programming controller receives the network element data reported by the network element to be reported, and uploads the network element data to the network resource management module of the SR network programming controller, so that the network resource management module stores the network element data, wherein the network element data includes a network element identifier, SR capability supported by the network element, and a network element resource, and the network element identifier corresponds to the network element to be reported.
Optionally, the network resource management module is configured to store network element data corresponding to each network element, and control the corresponding network element to forward data traffic according to the network element data. In a specific service processing process, a to-be-forwarded flow corresponding to a to-be-processed service is acquired, a corresponding service identifier, an SR capacity list and a resource requirement are determined according to the to-be-forwarded flow, a network element matched with the SR capacity list is further acquired from network element data stored in a network resource management module according to the SR capacity list, the SR capacity corresponding to the network element matched with the SR capacity list meets at least one SR capacity corresponding to the SR capacity list, a corresponding processing path is further acquired according to the network element matched with the SR capacity list and a network topology, the processing path comprises a service identifier and a sequential processing path node list, and the sequential processing path node list is composed of nodes where the network element matched with the SR capacity list is located. And after the processing path is obtained, controlling a network element corresponding to the processing path to forward data traffic according to the processing path.
In this embodiment of the present application, when the monitored external event is a reported network element data event, a network controller module of the SR network programming controller receives network element data reported by the network element to be reported, and uploads the network element data to a network resource management module, so that the network resource management module stores the network element data. In the subsequent service processing, the SR network programming controller obtains a corresponding SR capability list according to the service processing, matches a corresponding network element from the stored network element data according to the SR capability list, and then controls the network resource management module to generate a corresponding processing path according to the network element, and further controls the network element matched with the SR capability list to forward data traffic according to the processing path.
Optionally, referring to fig. 7, the service updating method further includes:
step S40, when the monitored external event is a reported network element position event, acquiring the network element position corresponding to the reported network element position event;
step S41, determining the network topology according to the network element position and generating the corresponding SR processing path according to the network topology.
In this embodiment of the present application, when the external event is a reporting network element location event, an initiator of the reporting network element location event is one of the to-be-reported network elements connected to the SR network programming controller. When a reported network element position event initiated by the network element to be reported is received, the network controller module corresponding to the SR network programming controller receives the network element position reported by the network element to be reported, and uploads the network element position to the network resource management module of the SR network programming controller, so that the network resource management module stores the network element position, generates a corresponding network topology according to the network element position and the network element position stored in the network resource management module, and stores the network topology in the network resource management module.
Optionally, the network topology may be updated in real time, when a location of a network element corresponding to the connected network element is changed, for example, when the location corresponding to the connected network element is changed or a new network element is added to the connected network element, location change information occurring in the network element is sent to the network controller module in real time, the network controller module further sends the location change information to the network resource management module, and the network resource management module stores the location of the network element in real time according to the location change information and generates a new network topology in real time according to the stored location of the network element.
Optionally, after the network resource management module stores the network topology, in a subsequent service process, the network resource management module calls the network topology, and then generates a corresponding SR processing path according to the network topology, where the SR processing path includes at least two network elements and a link connecting the at least two network elements, and then the SR network programming controller controls a corresponding network element in the SR processing path to forward data traffic according to the SR processing path corresponding to the network topology.
In the embodiment of the application, by monitoring a reported network element position event initiated by a to-be-reported network element in real time, obtaining a network element position corresponding to the to-be-reported network element according to the reported network element position event, and generating a corresponding network topology according to the network element position, the SR network programming control system can call the network topology and generate a corresponding SR processing path according to the network topology, and then control the network element corresponding to the SR processing path to forward data traffic according to the SR processing path.
Optionally, referring to fig. 8, based on all the above embodiments, the service updating method further includes:
step S50, when the monitored external event is a service request event, acquiring service request information corresponding to the service request event;
step S51, generating an SR processing path and a corresponding SID list according to the existing service class and the service request information in the SR network programming controller;
step S52, acquiring corresponding SR processing rules and SR strategies according to the SR processing paths and the corresponding SID lists;
step S53, synchronizing the SR policy to an ingress network element corresponding to the SR processing path, where the ingress network element is configured to forward data traffic flowing through itself according to the SR policy, and synchronizing the SR processing rule to other network elements in the SR processing path except the ingress network element, where the other network elements are configured to process data traffic flowing through itself according to the SR processing rule, and forward data traffic flowing through itself.
In this embodiment, the external event may also be a service request event, where the service request event is initiated by an external terminal device or system. Optionally, the service request time includes service request information, and the service request information includes a service identifier, a flow matching type, a flow matching field, and a resource requirement, where the flow matching type is used to match a field of the traffic with the flow matching field, and the flow matching field is a field matched with the traffic.
Optionally, when the service identifier corresponding to the service request information is obtained, a target service class corresponding to the service identifier is screened out from existing service classes in the SR network programming controller according to the service identifier. And after the target service class is obtained, generating an SR processing path and a corresponding SID list according to the target service class and the service request information.
Optionally, the specific implementation of generating the SR processing path and the corresponding SID list is to obtain a service content entry corresponding to the target service class, and determine a target service content entry according to a priority of the service content entry, wherein the priority corresponding to the target service content entry is the highest, and further the service identifier, the target service content entry and the resource requirement corresponding to the service request information are sent to the network resource management module, for the network resource management module to generate a corresponding SR processing path and a SID corresponding to each network element in the SR processing path according to the service identifier, the target service content entry, the resource requirement and the network topology, and further generate a corresponding SID list according to the SID corresponding to each network element, wherein, the SID list includes SIDs corresponding to all network elements corresponding to the SR processing path.
Optionally, when an SR processing path and a corresponding SID list returned by the network resource management module are obtained, the network service management module generates an SR processing rule application request according to the SR processing path and the corresponding SID list, sends the SR processing rule application request to the network controller unit, further sends the SR processing rule application request to each corresponding network element in the SID list corresponding to the SR processing rule application request through the network controller unit, further sends the SR processing rule application request to the device management module of the network element by the network element programming controller agent module corresponding to each network element, further the device management module judges whether the network element resource corresponding to the network element meets the resource requirement according to the resource requirement corresponding to the SR processing path application request, and when the network element meets the resource requirement, and generating an SR processing identifier according to the SR capability corresponding to the network element, and further generating a corresponding SR processing path according to the SID of the network element and the SR processing identifier.
Optionally, the SR policy is generated by a network service management module corresponding to the SR network programming controller according to the stream matching type, the stream matching field, and the SID list corresponding to the service request information. Wherein the SR policy comprises an SR policy name, a flow matching type, a flow matching field, and a SID list. Optionally, the SR processing path is composed of an ingress network element and other network elements, where the other network elements are other network elements corresponding to the processing path except for the ingress network element. And after the SR processing rule and the SR strategy are generated, the SR strategy is issued to the entrance network element so that the entrance network element forwards the data traffic flowing through the entrance network element according to the SR strategy, and the SR processing rule is issued to the other network elements so that the other network elements process the data traffic flowing through the other network elements according to the corresponding SR processing rule and forward the data traffic. Transmitting the SR policy to the ingress network element.
Optionally, after receiving the SR policy, the entry network element performs SR encapsulation on data traffic according to the SID list of the SR policy, and then transmits the data traffic to a next network element corresponding to the SID list according to the SR policy, where the next network element forwards the data traffic to a next network element corresponding to the SR processing path according to the received SR processing rule, and so on until the data traffic is forwarded to a last network element (i.e., an exit network element) corresponding to the SR processing path, and the exit network element forwards the data traffic after performing SR decapsulation. For example, when the SID list is "SID-a, SID-B, SID-C", the network element corresponding to SID-a is an ingress network element a, and the network elements corresponding to SID-B and SID-C are network element B and network element C, respectively, and the data traffic flows through the ingress network element a, the ingress network element a encapsulates the SID list into the data traffic, and further forwards the data traffic to a next network element corresponding to SID list, that is, network element B, when the network element B receives the data traffic, the data traffic is processed according to the SR processing rule corresponding to the network element B, and the data traffic is forwarded to a next network element corresponding to SID list, that is, network element C, and after the network element receives the processed data traffic, the data traffic is processed according to the SR processing rule corresponding to the network element C, and decapsulating the SID list in the data traffic.
In this embodiment of the present application, when the external event is a service request event, an SR processing path and a corresponding SR list are generated according to service request information corresponding to the service request event and an existing service class stored in the network service management module, and then a corresponding SR processing rule and an SR policy are obtained according to the SR processing path and the corresponding SID list, and the SR processing rule and the SR policy are issued to a corresponding network element, so that the network element is controlled to forward traffic according to the SR processing rule or the SR policy, so as to complete service processing corresponding to the service request event.
In addition, an embodiment of the present invention further provides a service updating apparatus, where the service updating apparatus includes a memory, a processor, and a service updating program that is stored in the memory and is executable on the processor, and when the service updating program is executed by the processor, the service updating method as described above is implemented.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a service update program is stored on the computer-readable storage medium, and the service update program, when executed by a processor, implements the steps of the service update method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A service updating method is characterized in that the service updating method is applied to an SR network programming controller of a segmented routing network programming system, the segmented routing network programming system comprises the SR network programming controller and at least one network element connected with the SR network programming controller, wherein the SR network programming controller is used for processing data reported by the network element and controlling the connected network element to process data traffic and/or forward data traffic, and the service updating method comprises the following steps:
when the monitored external event is a configuration service type event, determining a service identifier and service content according to the external event;
and updating the service class corresponding to the SR network programming controller according to the service identifier and the service content so that the SR network programming controller processes data reported by the network element and controls the connected network element to process data traffic and/or forward the data traffic.
2. The service updating method of claim 1, wherein the step of updating the service class corresponding to the SR network programming controller according to the service identifier and the service content comprises at least one of:
when the configured service event is a newly added service event, generating a new service class according to the service identifier and the service content;
when the configured service type event is a service deletion event, deleting the existing service type in the SR network programming controller according to the service identifier and the service content;
and when the configured service type event is a modified service event, modifying the existing service type in the SR network programming controller according to the service identifier and the service content.
3. The service updating method of claim 2, wherein the step of modifying existing service classes in the SR network programming controller according to the service identification and the service content comprises:
determining a target existing service class corresponding to the service identifier;
and adding a service content entry in the target existing service class according to the service content, and/or deleting the service content entry in the target existing service class according to the service content.
4. The service update method of claim 1, wherein the service content comprises an SR capability list, the steps of the service update method further comprising:
when the monitored external event is a network element data reporting event, network element data reported by a network element to be reported is obtained according to the external event;
and determining the network element matched with the SR capability list according to the network element data, and controlling the network element matched with the SR capability list to forward data traffic.
5. The service updating method of claim 1, wherein the step of the service updating method further comprises:
when the monitored external event is a reported network element position event, acquiring a network element position corresponding to the reported network element position event;
and determining a network topology according to the network element position and generating a corresponding SR processing path according to the network topology.
6. The service updating method of claim 1, wherein the step of the service updating method further comprises:
when the monitored external event is a service request event, acquiring service request information corresponding to the service request event;
generating an SR processing path and a corresponding SID list according to the existing service class and the service request information in the SR network programming controller;
acquiring a corresponding SR processing rule and a corresponding SR strategy according to the SR processing path and the corresponding SID list;
synchronizing the SR policy to an ingress network element corresponding to the SR processing path, where the ingress network element is configured to forward data traffic flowing through itself according to the SR policy, and synchronize the SR processing rule to other network elements in the SR processing path except the ingress network element, where the other network elements are configured to process data traffic flowing through itself according to the SR processing rule, and forward data traffic flowing through itself.
7. A segmented routing network programming system is characterized in that the segmented routing network programming system comprises an SR network programming controller and at least one network element connected with the SR network programming controller; the SR network programming controller is adapted to perform the steps of the service update method according to any of claims 1-6.
8. A service update apparatus, characterized in that the service update apparatus comprises: memory, a processor and a service update program stored on the memory and executable on the processor, the service update program when executed by the processor implementing the steps of the service update method according to any of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a service update program, which when executed by a processor implements the steps of the service update method according to any one of claims 1 to 6.
CN202110868165.0A 2021-07-30 2021-07-30 Service updating method, device and segmented routing network programming system Active CN113411256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110868165.0A CN113411256B (en) 2021-07-30 2021-07-30 Service updating method, device and segmented routing network programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110868165.0A CN113411256B (en) 2021-07-30 2021-07-30 Service updating method, device and segmented routing network programming system

Publications (2)

Publication Number Publication Date
CN113411256A CN113411256A (en) 2021-09-17
CN113411256B true CN113411256B (en) 2021-12-21

Family

ID=77688011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110868165.0A Active CN113411256B (en) 2021-07-30 2021-07-30 Service updating method, device and segmented routing network programming system

Country Status (1)

Country Link
CN (1) CN113411256B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10164875B2 (en) * 2016-02-22 2018-12-25 Cisco Technology, Inc. SR app-segment integration with service function chaining (SFC) header metadata
CN112511437A (en) * 2020-04-22 2021-03-16 中兴通讯股份有限公司 Method for verifying service chain, sending node, forwarding node and service function node
CN112822100A (en) * 2021-02-05 2021-05-18 中兴通讯股份有限公司 Fault protection method and device, storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450437B (en) * 2014-09-19 2020-03-06 中兴通讯股份有限公司 SID distribution method and SR node
CN112511427A (en) * 2020-01-14 2021-03-16 中兴通讯股份有限公司 Segment routing service processing method and device, routing equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10164875B2 (en) * 2016-02-22 2018-12-25 Cisco Technology, Inc. SR app-segment integration with service function chaining (SFC) header metadata
CN112511437A (en) * 2020-04-22 2021-03-16 中兴通讯股份有限公司 Method for verifying service chain, sending node, forwarding node and service function node
CN112822100A (en) * 2021-02-05 2021-05-18 中兴通讯股份有限公司 Fault protection method and device, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Segment Routing over IPv6 (SRv6) Network;C. Filsfils 等;《RFC 8986》;20210227;全文 *
Segment Routing技术及其应用分析;刘强等;《电信技术》;20171225(第12期);全文 *

Also Published As

Publication number Publication date
CN113411256A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US20160337249A1 (en) Communications network, device, and control method
US11895197B2 (en) Communication method and apparatus
CN109361600B (en) Method and equipment for acquiring path identifier
CN110730478A (en) Slice association method, device, end-to-end slice organizer and storage medium
CN104660507A (en) Control method and device for data flow forwarding route
JP2020527918A (en) Data flow transmission
JP2019519975A (en) Resource subscription method, resource subscription apparatus, and resource subscription system
EP2635073A1 (en) Access point selection based on number of successful connections
US20020172175A1 (en) Communication device
CN111817869A (en) Network configuration recovery method and related equipment thereof
CN113572835A (en) Data processing method, network element equipment and readable storage medium
WO2016107134A1 (en) Service chain route management system and usage method therefor
CN114679350B (en) SD-WAN-based link selection method, device and storage medium
WO2015168981A1 (en) Attribute operating method and apparatus
CN105530185A (en) Overlay routing network, routing method based on overlay routing network, and router
WO2015052867A1 (en) Terminal device, terminal-device control method, and terminal-device control program
CN113411256B (en) Service updating method, device and segmented routing network programming system
CN114448861A (en) Method and device for realizing service function processing
EP3206347B1 (en) Method for calling a routing algorithm, sdn controller, and sdn-oaf
CN116724545A (en) Method, device and system for transmitting data packet
CN110995829B (en) Instance calling method and device and computer storage medium
US9942823B2 (en) Communication terminal, communication method, and communication program
US20100257262A1 (en) Apparatus and method for supporting plurality of device management authorities
CN105376275A (en) Software-defined network (SDN)-based data management method and system
WO2017122336A1 (en) Server device, communication system, and communication program

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
GR01 Patent grant
GR01 Patent grant