CN114285781B - SRV6 service flow statistics method, device, electronic equipment and medium - Google Patents

SRV6 service flow statistics method, device, electronic equipment and medium Download PDF

Info

Publication number
CN114285781B
CN114285781B CN202111555534.7A CN202111555534A CN114285781B CN 114285781 B CN114285781 B CN 114285781B CN 202111555534 A CN202111555534 A CN 202111555534A CN 114285781 B CN114285781 B CN 114285781B
Authority
CN
China
Prior art keywords
service
srv6
flow
sid
identification bit
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
CN202111555534.7A
Other languages
Chinese (zh)
Other versions
CN114285781A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111555534.7A priority Critical patent/CN114285781B/en
Publication of CN114285781A publication Critical patent/CN114285781A/en
Application granted granted Critical
Publication of CN114285781B publication Critical patent/CN114285781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to a SRV6 service flow statistics method, a device, electronic equipment and a computer readable medium. The method comprises the following steps: acquiring service flow based on SRV6 protocol; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; and counting flow data corresponding to different service types. The SRV6 service flow statistics method, the SRV6 service flow statistics device, the electronic equipment and the computer readable medium can enable any node of a network in the SRV6 network to obtain the real-time condition of the service flow state, and are beneficial to further realizing network flow management and service scheduling.

Description

SRV6 service flow statistics method, device, electronic equipment and medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for SRV6 traffic statistics.
Background
SRv6 is called Segment Routing IPv, is a combination of two network technologies, namely Segment Routing and IPv6, which are the most popular at present, has flexible Routing capability of the former and affinity of the latter, and unique device-level programmability of SRv6, and becomes the most promising networking technology in the IPv6 network era.
SRv6 networks can be thought of as a distributed "computer," where segments are a list of comparatives to programs, segments being instructions, with both addressing and behavior capabilities. The user intention can be translated into a Segment list and attached to a data message, a SRv network computer is input, and then Segment instructions are sequentially executed on different nodes, such as switching to the next Segment, pressing in or popping out the Segment list, associating L2/L3 VPN and the like, so that functions of different layers, such as basic routing, VPN, OAM, service creation, APN6 (App-aware IPv6 network) and the like, are realized.
In SDN networking, a controller is responsible for arranging and issuing Segment lists, so that the purpose of intelligent routing is achieved. With the perfection of SRv technology and protocols, the improvement of programming capability of network equipment is expected to define all network functions through SDNs and SRv, and the intelligent network world is entered. However, current SRV6 traffic statistics are typically implemented based on SRV6 edge nodes, i.e., subscriber access sites. The current SRV6 network is difficult to perform classified statistical monitoring on VPN traffic at any node, and this dilemma makes it impossible for an administrator to accurately grasp traffic information in the network.
Accordingly, there is a need for a method, apparatus, electronic device, and computer readable medium for SRV6 traffic statistics.
The above information disclosed in the background section is only for enhancement of understanding of the background of the application and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, an electronic device, and a computer readable medium for SRV6 traffic statistics, which can enable any node of a network in an SRV6 network to obtain a real-time condition of a traffic state, and is helpful for further implementing network traffic management and traffic scheduling.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
According to an aspect of the present application, a method for counting SRV6 traffic is provided, the method comprising: acquiring service flow based on SRV6 protocol; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; and counting flow data corresponding to different service types.
In an exemplary embodiment of the present application, further comprising: generating an identification bit value in SID data according to the service type; generating SID data based on the identification bit number value; and sending the SID data to an SRV6 service network.
In an exemplary embodiment of the present application, further comprising: setting a plurality of service types according to the instruction types, the function descriptions and the service scenes; and respectively distributing corresponding identification bit values for the service types.
In an exemplary embodiment of the present application, generating an identification bit value in SID data according to a traffic type includes: the SRV6 network endpoint determines the service type according to the user instruction to generate the identification bit value.
In an exemplary embodiment of the present application, sending the SID data into an SRV6 service network includes: the SRV6 source node encapsulates the SID data into path information of an SID list carrier; and sending the path information after encapsulation to the SRV6 service network.
In an exemplary embodiment of the present application, acquiring a service flow based on an SRV6 protocol includes: and any node in the SRV6 service network acquires the service flow.
In an exemplary embodiment of the present application, analyzing the service traffic to obtain inner layer SID data includes: and analyzing the service flow based on the flow control chip to obtain inner-layer SID data.
According to an aspect of the present application, there is provided an SRV6 traffic statistics apparatus, the apparatus comprising: the flow module is used for acquiring the service flow based on the SRV6 protocol; the data module is used for analyzing the service flow to obtain inner-layer SID data; the identification bit module is used for extracting identification bits at specific positions in the inner-layer SID data; the type module is used for determining the service type of the service flow based on the identification bit; and the statistics module is used for counting flow data corresponding to different service types.
According to an aspect of the present application, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present application, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the SRV6 service flow statistics method, the SRV6 service flow statistics device, the electronic equipment and the computer readable medium, service flow based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; the method for counting the flow data corresponding to different service types can enable any node of the network in the SRV6 network to obtain the real-time condition of the service flow state, and is beneficial to further realizing network flow management and service scheduling.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is an application scenario diagram illustrating an SRV6 traffic flow statistics method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of SRV6 traffic statistics in accordance with an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of SRV6 traffic statistics in accordance with another exemplary embodiment.
Fig. 4 is a schematic diagram illustrating a SRV6 traffic flow statistics method according to another exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a SRV6 traffic flow statistics method according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an SRV6 traffic statistics apparatus according to another exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Thus, a first component discussed below could be termed a second component without departing from the teachings of the present application concept. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments, and that the modules or flows in the drawings are not necessarily required to practice the present application, and therefore, should not be taken to limit the scope of the present application.
Aiming at the problem that the current SRV6 network is difficult to carry out classified statistics monitoring on VPN traffic at any node, the patent provides improvement on functions of a router distribution and flow control unit, defines specific identification bits of SRV6 SID Function fields, carries out SID Function distribution of corresponding types according to the specific identification bits, enables a flow control chip to increase identification capability of the identification bits, introduces traffic into a specific counting unit or queue, and realizes classified statistics and scheduling of VPN traffic.
The following describes the content of the present application in detail in connection with specific embodiments.
Fig. 1 is an application scenario diagram of a method and an apparatus for SRV6 traffic statistics according to an exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include end devices 101, 102, a source node 103, an end node 104, and intermediate nodes 105, 106, 107. The network is used as a medium to provide communication links between the end devices 101, 102, the source node 103, the end node 104 and the intermediate nodes 105, 106, 107. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the terminal device 102 using the terminal device 101 via the network, the source node 103, the end node 104 and the intermediate nodes 105, 106, 107 to receive or send messages etc. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102.
The terminal devices 101, 102 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The source node 103, end node 104 and intermediate nodes 105, 106, 107 may each be routing devices.
The end node 104 and intermediate nodes 105, 106, 107 may, for example, obtain SRV6 protocol based traffic; the end node 104 and intermediate nodes 105, 106, 107 may, for example, parse the traffic to obtain inner SID data; the end node 104 and intermediate nodes 105, 106, 107 may, for example, extract identification bits for particular locations in the inner SID data; the end node 104 and intermediate nodes 105, 106, 107 may determine the traffic type of the traffic flow, e.g. based on the identification bits; the end node 104 and intermediate nodes 105, 106, 107 may, for example, count traffic data corresponding to different traffic types.
The source node 103 may generate an identification bit value in SID data, e.g. from the traffic type; the source node 103 may generate SID data, e.g. based on the identification bit number value; the source node 103 may, for example, send the SID data into an SRV6 service network.
End node 104 may set a plurality of service types, for example, according to instruction type, function description, and service scenario; the end node 104 may, for example, assign its corresponding identification bit value to each of the plurality of traffic types.
It should be noted that the SRV6 traffic statistics method provided in the embodiments of the present application may be performed by the source node 103, the end node 104, and the intermediate nodes 105, 106, and 107, and accordingly, the SRV6 traffic statistics device may be disposed in the source node 103, the end node 104, and the intermediate nodes 105, 106, and 107.
Fig. 2 is a flow chart illustrating a method of SRV6 traffic statistics in accordance with an exemplary embodiment. The SRV6 traffic volume statistics method 20 comprises at least steps S202 to S208.
As shown in fig. 2, in S202, a service flow based on the SRV6 protocol is acquired. And any node in the SRV6 service network acquires the service flow. According to the method, any node of the network can acquire the real-time condition of the service flow state, and the method is beneficial to further realizing network flow management and service scheduling.
In S204, the service flow is parsed to obtain inner SID data. And analyzing the service flow based on the flow control chip to obtain inner-layer SID data. The router flow control chip adds the identification capability.
In S206, the identification bit of the specific position in the inner SID data is extracted. SRv6 each Segment is identified by SID (Segment ID), and the SID is a special IPv6 address, with both the routing capability of the normal IPv6 address and the unique behavior of SRv 6.
Each SRv node maintains a SID table (part of the routing table) consisting of a number of 128-bit SIDs in standard locator+ Function (Args) format, as follows:
Locator Funtion Arguments
locator, the Locator of the identification SRv6 node, each node has at least one globally unique Locator value as the shared prefix of the local SID, and other nodes access the local SID through the Locator route.
Function (Args), identifying SRv different behaviors within a node, such as END, END. X, etc., few behaviors also require passing the Args parameter.
After receiving the IPv6 packet, the SRv node searches the global routing table according to IPv6 DA (Destination Adddress), if a certain SID is matched, the node forwards the IPv6 packet to the SID-defined Behavior or behavir processing, otherwise, performs a conventional routing forwarding action.
In one embodiment, the SRV6 router may, for example, design a Function specific identification bit (bits 108-111 of Function) based on the traffic type, with the SRV6 router adding a SID assignment action to be performed for the traffic type.
In S208, a traffic type of the traffic flow is determined based on the identification bit.
In S210, traffic data corresponding to different traffic types is counted. Traffic of different traffic types is split into different queues for traffic handling and counting. The flow control chip further puts the differentiated service flow into a corresponding counting unit or queue to realize classified statistics and scheduling of VPN flow.
According to the SRV6 service flow statistics method, service flow based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; the method for counting the flow data corresponding to different service types can enable any node of the network in the SRV6 network to obtain the real-time condition of the service flow state, and is beneficial to further realizing network flow management and service scheduling.
According to the SRV6 service flow statistics method, the router flow control unit is utilized to identify the SRV6 data packet, so that the problem that the current SRV6 intermediate node does not identify the service type is solved, and the flow statistics and flow scheduling functions of different service types are realized for any node of the SRV6 network.
According to the SRV6 service flow statistics method, flow statistics can help to achieve the condition of bearing service convergence in a network, so that bandwidth control and resource scheduling for service are carried out, and user experience of traditional data service is improved.
It should be clearly understood that this application describes how to make and use particular examples, but the principles of this application are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flow chart illustrating a method of SRV6 traffic statistics in accordance with another exemplary embodiment. The flow 30 shown in fig. 3 is a complementary description of the flow shown in fig. 2.
As shown in fig. 3, in S302, the source node generates an identification bit value in SID data according to the service type. A sidfunction specific identifier field is defined that improves the allocation pattern of functions in the router SRv SID.
In one embodiment, the end node sets a plurality of service types according to the instruction type, the function description and the service scenario; and respectively distributing corresponding identification bit values for the service types. The SRV6 router newly performs SID allocation actions for the traffic type, which may be specifically as follows:
in S304, SID data is generated based on the identification bit values. An SRV6 end (Endpoint) node sets a specific identification bit in a corresponding field of SID fusion according to the service type, and simultaneously publishes the SID to an SRV6 source node;
in S306, the SID data is transmitted into an SRV6 service network. The SRV6 source node may, for example, encapsulate the SID data into path information of a SID list carrier; and sending the path information after encapsulation to the SRV6 service network.
The source node encapsulates path information of SRV6 SRH, wherein the innermost Segment List is service SID (containing specific identification bit) corresponding to the Endpoint node
The node supporting SRv6 in the path can identify the traffic type by carrying out service matching on the specific identification bit of the inner layer SID through the flow control chip.
Fig. 4 is a schematic diagram illustrating a SRV6 traffic flow statistics method according to another exemplary embodiment. Fig. 4 exemplarily illustrates a process of generating SID data by taking SRV6 bearer L3VPNV4 service as an example.
1. The end node D distributes corresponding SID data according to the service type: end.dt4, where bits 108-111 are the defined specific identification value 0011, and issues the SID into source node a of SRV 6.
2. The source node A encapsulates path information of SRV6 SRH, the End SIDs of the routers B, C and D are encapsulated into a Segment List, and the service end.DT4SIDs corresponding to the tail node D are encapsulated into the Segment List of the innermost layer. Traffic is forwarded along the SRV6 tunnel.
3. Each SRV6 router along the SRV6 tunnel can check the SL of the SRH and carry out identification and classification through the innermost SID of the flow control chip. The flow control chip of the node B may, for example, match a specific identification bit of the fusion field of the innermost SID, determine that it is 0011, and then identify that the flow is of the L3VPNV4 type.
Fig. 5 is a schematic diagram illustrating a SRV6 traffic flow statistics method according to another exemplary embodiment. Fig. 5 illustrates an exemplary flow traffic statistics process.
1. The flow control chip matches a specific identification bit to identify the service type.
2. And carrying out corresponding technical units or queues according to the service classification.
3. And realizing operations such as flow statistics, speed-limiting scheduling and the like in different counting units or queues.
According to the SRV6 service flow statistics method, the flow statistics function of any node is realized, the network flow management can be helped to realize the scheduling of service resources, and the real-time conditions of service resource use and service state can be obtained. When a certain network application service server has a larger load, global service resource dynamic can be performed to averagely bear service requests; and meanwhile, the service requests of the users can be scheduled, whether to continue to respond to new service requests of the users or not is determined, and the service requests of the users with high priority are responded preferentially according to the priorities of the users so as to improve the service operation efficiency.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. When executed by a CPU, performs the functions defined by the above methods provided herein. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 6 is a block diagram illustrating an SRV6 traffic statistics apparatus according to another exemplary embodiment. As shown in fig. 6, the SRV6 traffic volume statistics apparatus 60 includes: a flow module 602, a data module 604, an identification bit module 606, a type module 608, and a statistics module 610.
The flow module 602 is configured to obtain a service flow based on an SRV6 protocol; any node in the SRV6 service network may obtain the service traffic through the traffic module 602.
The data module 604 is configured to parse the service traffic to obtain inner SID data;
the identification bit module 606 is configured to extract an identification bit at a specific location in the inner SID data;
the type module 608 is configured to determine a service type of the service traffic based on the identification bit;
the statistics module 610 is configured to count traffic data corresponding to different traffic types. The statistics module 610 is also used to batch traffic of different traffic types into different queues for traffic processing and counting.
According to the SRV6 service flow statistics device, service flow based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; the method for counting the flow data corresponding to different service types can enable any node of the network in the SRV6 network to obtain the real-time condition of the service flow state, and is beneficial to further realizing network flow management and service scheduling.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to this embodiment of the present application is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps described in the present specification according to various exemplary embodiments of the present application. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 760 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments of the present application.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: acquiring service flow based on SRV6 protocol; analyzing the service flow to obtain inner layer SID data; extracting an identification bit of a specific position in the inner SID data; determining the service type of the service flow based on the identification bit; and counting flow data corresponding to different service types. The computer readable medium may also implement the following functions: generating an identification bit value in SID data according to the service type; generating SID data based on the identification bit number value; and sending the SID data to an SRV6 service network.
The computer readable medium may also implement the following functions: setting a plurality of service types according to the instruction types, the function descriptions and the service scenes; and respectively distributing corresponding identification bit values for the service types.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the methods according to the embodiments of the present application.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that this application is not limited to the details of construction, arrangement or method of implementation described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (7)

1. A method for counting SRV6 traffic, comprising:
the SRV6 end node sets a plurality of service types according to the instruction types, the function descriptions and the service scene; the SRV6 router respectively distributes corresponding identification bit values for the plurality of service types;
the SRV6 end node sets a specific identification bit in a corresponding field of SID fusion according to the service type, and simultaneously issues SID to the SRV6 source node;
the SRV6 source node sends the SID data to an SRV6 service network;
any node in the SRV6 service network acquires service flow based on an SRV6 protocol;
analyzing the service flow by a flow control chip of any node in the SRv service network to obtain inner-layer SID data;
the flow control chip extracts the identification bit of the specific position of the Function field in the inner layer SID data; the identification bit is generated by the SRV6 router according to the service type;
the flow control chip performs service matching on the identification bit and determines the service type of the service flow;
and the flow control chip batches the traffic of different service types into different queues so as to schedule and count the traffic.
2. The method as recited in claim 1, further comprising:
the end node sets a plurality of service types according to the instruction types, the function descriptions and the service scene;
and respectively distributing corresponding identification bit values for the service types.
3. The method of claim 1, wherein transmitting the SID data into an SRV6 service network comprises:
the SRV6 source node encapsulates the SID data into path information of an SID list carrier;
and sending the path information after encapsulation to the SRV6 service network.
4. The method of claim 1, wherein parsing the traffic flow to obtain inner layer SID data comprises:
and analyzing the service flow based on the flow control chip to obtain inner-layer SID data.
5. An SRV6 traffic flow statistics apparatus, comprising:
the flow module is used for setting a plurality of service types according to the instruction types, the function descriptions and the service scenes through the SRV6 end node; the SRV6 router respectively distributes corresponding identification bit values for the plurality of service types; the SRV6 end node sets a specific identification bit in a corresponding field of SID fusion according to the service type, and simultaneously issues SID to the SRV6 source node; the SRV6 source node sends the SID data to an SRV6 service network; any node in the SRV6 service network acquires service flow based on an SRV6 protocol;
the data module is used for analyzing the service flow through a flow control chip of any node in the SRv service network to obtain inner-layer SID data;
the identification bit module is used for extracting identification bits of specific positions of Function fields in the inner-layer SID data through the flow control chip; the identification bit is generated according to the service type;
the type module is used for carrying out service matching on the identification bit through the flow control chip and determining the service type of the service flow;
and the statistics module is used for batching the flow of different service types into different queues through the flow control chip so as to schedule and count the flow.
6. An electronic device, comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-4.
CN202111555534.7A 2021-12-17 2021-12-17 SRV6 service flow statistics method, device, electronic equipment and medium Active CN114285781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111555534.7A CN114285781B (en) 2021-12-17 2021-12-17 SRV6 service flow statistics method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111555534.7A CN114285781B (en) 2021-12-17 2021-12-17 SRV6 service flow statistics method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114285781A CN114285781A (en) 2022-04-05
CN114285781B true CN114285781B (en) 2024-01-19

Family

ID=80872956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111555534.7A Active CN114285781B (en) 2021-12-17 2021-12-17 SRV6 service flow statistics method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114285781B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150171B (en) * 2022-06-30 2023-11-10 北京天融信网络安全技术有限公司 Flow statistics method and device, electronic equipment and storage medium
CN115150308B (en) * 2022-07-19 2023-10-10 天翼云科技有限公司 Flow statistics method and device
CN115473835B (en) * 2022-08-05 2023-09-26 北京罗克维尔斯科技有限公司 Flow statistics method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098650A (en) * 2011-01-21 2011-06-15 中国联合网络通信集团有限公司 Content charging-based flow adaptive method and system
CN108243013A (en) * 2016-12-26 2018-07-03 中国移动通信有限公司研究院 A kind of method and device of charge on traffic
WO2020156105A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Data forwarding method and related device
CN112804145A (en) * 2020-12-31 2021-05-14 锐捷网络股份有限公司 Flow statistical method and device based on segmented identification list
CN113205320A (en) * 2021-05-29 2021-08-03 五八到家有限公司 Service processing method and device, electronic equipment and computer readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11558410B2 (en) * 2019-05-29 2023-01-17 Arbor Networks, Inc. Measurement and analysis of traffic filtered by network infrastructure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098650A (en) * 2011-01-21 2011-06-15 中国联合网络通信集团有限公司 Content charging-based flow adaptive method and system
CN108243013A (en) * 2016-12-26 2018-07-03 中国移动通信有限公司研究院 A kind of method and device of charge on traffic
WO2020156105A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Data forwarding method and related device
CN111510387A (en) * 2019-01-30 2020-08-07 华为技术有限公司 Data forwarding method and related device
CN112804145A (en) * 2020-12-31 2021-05-14 锐捷网络股份有限公司 Flow statistical method and device based on segmented identification list
CN113205320A (en) * 2021-05-29 2021-08-03 五八到家有限公司 Service processing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN114285781A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN114285781B (en) SRV6 service flow statistics method, device, electronic equipment and medium
CN111769998B (en) Method and device for detecting network delay state
US20150215228A1 (en) Methods, systems, and computer readable media for a cloud-based virtualization orchestrator
JP5993817B2 (en) Routing system and method in carrier network
CN115914402B (en) Method, device, equipment and storage medium for determining computing power resource node
CN108153803A (en) A kind of data capture method, device and electronic equipment
CN102932269A (en) Method and device for balancing load
CN112383600A (en) Information processing method and device, computer readable medium and electronic equipment
CN112019492B (en) Access control method, device and storage medium
WA et al. Smart community edge: stream processing edge computing node for smart community services
CN115277504B (en) Network traffic monitoring method, device and system
CN114338529B (en) Five-tuple rule matching method and device
CN114006831B (en) Message data processing method and device
CN116032614A (en) Container network micro-isolation method, device, equipment and medium
CN113422699B (en) Data stream processing method and device, computer readable storage medium and electronic equipment
CN115499889A (en) VPP-based UPF forwarding plane implementation method, device, system and related equipment
CN116828024A (en) Service connection identification method, device, system and storage medium
CN111865805B (en) Multicast GRE message processing method and system
Song et al. Research on routing and scheduling algorithms for the simultaneous transmission of diverse data streaming services on the industrial internet
US10965532B2 (en) Software-defined networking device based on service profile learning
CN115250254B (en) Netflow message distribution processing method and device
CN112436951A (en) Method and device for predicting flow path
CN114363257B (en) Five-tuple matching method and device for tunnel message
CN113691462B (en) Response method and device of Internet group management protocol
CN111953804B (en) Network data transmission method, device, medium and electronic equipment

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