CN114285781A - SRV6 service traffic statistical method, device, electronic equipment and medium - Google Patents
SRV6 service traffic statistical method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN114285781A CN114285781A CN202111555534.7A CN202111555534A CN114285781A CN 114285781 A CN114285781 A CN 114285781A CN 202111555534 A CN202111555534 A CN 202111555534A CN 114285781 A CN114285781 A CN 114285781A
- Authority
- CN
- China
- Prior art keywords
- service
- srv6
- traffic
- flow
- data
- 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.)
- Granted
Links
- 238000007619 statistical method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 43
- 238000012545 processing Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 3
- 230000002349 favourable effect Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 9
- 230000006399 behavior Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Abstract
The application relates to a SRV6 service traffic statistical method, a device, electronic equipment and a computer readable medium. The method comprises the following steps: acquiring service flow based on an SRV6 protocol; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; and counting the flow data corresponding to different service types. The SRV6 service traffic statistical method, the device, the electronic equipment and the computer readable medium can enable any node of a network in an SRV6 network to obtain the real-time condition of the service traffic state, and are favorable for further realizing network traffic management and service scheduling.
Description
Technical Field
The present application relates to the field of mobile communications, and in particular, to a method and an apparatus for counting SRV6 service traffic, an electronic device, and a computer-readable medium.
Background
SRv6 is called Segment Routing IPv6, and is the combination of Segment Routing and IPv6, which is the most popular at present, and has both flexible Routing capability of the former and affinity of the latter, and device-level programmability peculiar to SRv6, making it the most promising networking technology in IPv6 network age.
The SRv6 network can be thought of as a distributed "computer", Segment lists compare to programs, segments are instructions, and have both addressing and behavior capabilities. We can translate the user's intention into Segment list, attach it to the data packet, input SRv6 network "computer", and then execute Segment command on different nodes in turn, such as switch to next Segment, push or pop Segment list, associate L2/L3 VPN, etc., so as to implement the functions of different levels of basic routing, VPN, OAM, Service Chaining, APN6(App-aware IPv6 Networking), etc.
In the SDN networking, a controller is responsible for arranging and issuing a Segment list, and the purpose of intelligent routing is achieved. With the improvement of SRv6 technology and protocol, the programming capability of network devices is improved, and it is expected that all network functions are defined by SDN and SRv6, and the intelligent network world is entered. However, current SRV6 traffic statistics are typically implemented based on SRV6 edge nodes, i.e., user access sites. The current SRV6 network has difficulty in performing classified statistical monitoring of VPN traffic at any node, and this dilemma makes it impossible for an administrator to accurately grasp traffic information in the network.
Therefore, a need exists for a method, apparatus, electronic device, and computer readable medium for SRV6 traffic statistics.
The above information disclosed in this background section is only for enhancement of understanding of the background of the application and therefore it may contain information that does not constitute 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 service traffic statistics, which enable any node in a network in an SRV6 network to obtain a real-time condition of a service traffic state, and are helpful for further implementing network traffic management and service scheduling.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the present application, a method for counting SRV6 traffic is provided, the method including: acquiring service flow based on an SRV6 protocol; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; and counting the 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 type, the function description and the service scene; and respectively distributing corresponding identification bit values for the plurality of service types.
In an exemplary embodiment of the present application, generating an identification bit value in SID data according to a service 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 to an SRV6 service network includes: SRV6 source node packs the SID data into path information of SID list carrier; the encapsulated path information is sent to the SRV6 service network.
In an exemplary embodiment of the present application, acquiring service traffic based on the SRV6 protocol includes: any node in the SRV6 service network acquires the service traffic.
In an exemplary embodiment of the present application, analyzing the service traffic to obtain inner SID data includes: and analyzing the service flow based on a flow control chip to obtain inner-layer SID data.
According to an aspect of the present application, a traffic statistics apparatus of SRV6 is provided, the apparatus including: the flow module is used for acquiring service flow based on an 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 of 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 statistical module is used for counting the flow data corresponding to different service types.
According to an aspect of the present application, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the application, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the SRV6 service traffic statistical method, the device, the electronic equipment and the computer readable medium, service traffic based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; the way of counting the traffic data corresponding to different service types can enable any node in the network in the SRV6 network to obtain the real-time condition of the service traffic state, which is helpful for further realizing network traffic 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 derived from those drawings by those skilled in the art without inventive effort.
Fig. 1 is a diagram illustrating an application scenario of a SRV6 traffic statistics method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method for SRV6 traffic statistics, according to an example embodiment.
Fig. 3 is a flowchart illustrating a method for SRV6 traffic statistics, according to another example embodiment.
Fig. 4 is a schematic diagram illustrating a traffic flow statistical method of SRV6 according to another exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a traffic flow statistical method of SRV6 according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an SRV6 traffic flow statistics apparatus according to another exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 8 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different 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 example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, 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 application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to 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 actual execution sequence may be changed according to the actual situation.
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. Thus, a first component discussed below may be termed a second component without departing from the teachings of the present concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be appreciated by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present application and are, therefore, not intended to limit the scope of the present application.
Aiming at the problem that the current SRV6 network is difficult to carry out classification statistical monitoring on VPN flow at any node, the utility model provides an improved router distribution and flow control unit Function, defines the specific identification position of SRV6 SID Function field, and the router carries out the SID Function distribution of corresponding type according to the specific identification position, so that the flow control chip increases the identification position capability, introduces the flow into a specific counting unit or queue, and realizes the classification statistical and scheduling of VPN flow.
The present application will be described in detail with reference to specific examples.
Fig. 1 is a diagram illustrating an application scenario of a method and an apparatus for SRV6 traffic statistics according to an exemplary embodiment.
As shown in fig. 1, system architecture 10 may include end devices 101, 102, source node 103, end node 104, and intermediate nodes 105, 106, 107. The network serves as a medium for providing communication links between terminal devices 101, 102, source node 103, end node 104 and intermediate nodes 105, 106, 107. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal device 101 to interact with terminal device 102 through the network, source node 103, end node 104 and intermediate nodes 105,106, 107 to receive or send messages and the like. The terminal devices 101 and 102 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The source node 103 may generate an identification bit value in the SID data, e.g., according to 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 the SRV6 service network.
It should be noted that, the SRV6 traffic flow statistical method provided by the embodiment of the present application may be executed by the source node 103, the end node 104, and the intermediate nodes 105, 106, 107, and accordingly, the SRV6 traffic flow statistical apparatus may be disposed in the source node 103, the end node 104, and the intermediate nodes 105, 106, 107.
Fig. 2 is a flow chart illustrating a method for SRV6 traffic statistics, according to an example embodiment. SRV6 traffic flow statistics method 20 includes at least steps S202 to S208.
As shown in fig. 2, in S202, service traffic based on the SRV6 protocol is acquired. Any node in the SRV6 service network acquires the service traffic. According to the method, any node of the network can obtain the real-time condition of the service flow state, and the method is favorable for further realizing network flow management and service scheduling.
In S204, the service traffic is analyzed to obtain inner SID data. And analyzing the service flow based on a flow control chip to obtain inner-layer SID data. The router flow control chip increases the ability to identify the identification bit.
In S206, the identification bit of a specific position in the inner SID data is extracted. SRv6, each Segment is identified by SID (Segment ID), which is a special IPv6 address with both routing capability of ordinary IPv6 address and behavior capability of SRv 6.
Each SRv6 node maintains a SID list (part of the routing table) consisting of a number of 128-bit SIDs in the format of Locator + function (arms), as follows:
Locator | Funtion | Arguments |
locator, identifier SRv6 node Locator, each node has a global unique Locator value at least, as local SID's shared prefix, other nodes access this node SID through Locator route.
Functions (arms), identify SRv6 different behaviors within the node, such as END, end.x, etc., and a few behaviors also need to pass the arms parameters.
SRv6 node receives IPv6 message, will look for the global routing table according to IPv6 DA (destination Adddress), if match to a certain SID, give the Behavior or Behavior processing that SID defines, otherwise carry out the conventional route and forward the action.
In one embodiment, for example, the Function specific identification bit (108 th and 111 th bits of Function) based on the service type can be designed, and the SRV6 router newly adds the SID assignment action for the service type.
In S208, the service type of the service traffic is determined based on the identification bits.
In S210, traffic data corresponding to different service types are counted. And dividing the traffic of different service types into different queues for traffic processing and counting. The flow control chip further puts the differentiated service flows into corresponding counting units or queues to realize the classified statistics and scheduling of the VPN flows.
According to the SRV6 service flow statistical method, service flow based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; the way of counting the traffic data corresponding to different service types can enable any node in the network in the SRV6 network to obtain the real-time condition of the service traffic state, which is helpful for further realizing network traffic management and service scheduling.
According to the SRV6 service flow statistical method, the router flow control unit is used for identifying the SRV6 data packet, the characteristic that the current SRV6 intermediate node does not identify the service type is solved, and the functions of flow statistics and flow scheduling of different service types of any node of the SRV6 network are achieved.
According to the SRV6 service traffic statistical method, traffic statistics can help realize the condition of convergence of the bearer service in the network, so that bandwidth control and resource scheduling facing to the service are carried out, and the user experience degree of the 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 flowchart illustrating a method for SRV6 traffic statistics, according to another example embodiment. The process 30 shown in fig. 3 is a supplementary description of the process shown in fig. 2.
As shown in fig. 3, in S302, the source node generates an identification bit value in the SID data according to the traffic type. The SIDUntion specific identifier field is defined to improve the assignment pattern of Function in the SID of the router SRv 6.
In one embodiment, the end node sets a plurality of service types according to the instruction type, the function description and the service scene; and respectively distributing corresponding identification bit values for the plurality of service types. The SRV6 router newly adds an SID assignment action for the service type, which may specifically be as follows:
in S304, SID data is generated based on the identification bit number value. An SRV6 end (Endpoint) node sets a specific identification bit in a corresponding field of the SID Funtion according to the service type, and simultaneously issues the SID to an SRV6 source node;
in S306, the SID data is sent to the SRV6 service network. The SRV6 source node may, for example, encapsulate the SID data into path information for a SID list carrier; the encapsulated path information is sent to the SRV6 service network.
The source node packages the path information of SRV6 SRH, wherein the innermost Segment List is the service SID (with specific identification bit) corresponding to the Endpoint node
Any node supporting SRv6 in the path performs service matching on the specific identification bit of the inner layer SID through the flow control chip, and the service type of the flow can be identified.
Fig. 4 is a schematic diagram illustrating a traffic flow statistical method of SRV6 according to another exemplary embodiment. Fig. 4 exemplarily illustrates a process of generating SID data by taking SRV6 carrying L3VPNV4 service as an example.
1. And the end node D distributes corresponding SID data according to the service type: DT4, where bits 108 and 111 are defined specific identification values 0011, and the SID is issued to the source node A of the SRV 6.
2. And the source node A packages the path information of the SRV6 SRH, packages the End SIDs of the routers B, C and D into a Segment List, and packages the service end.DT4 SID corresponding to the tail node D into an innermost Segment List. Traffic is tunneled along SRV 6.
3. Each SRV6 router along the SRV6 tunnel may look at the SL of the SRH and identify and classify by the innermost SID of the flow control chip. For example, the flow control chip of the node B matches the specific identification bit of the fusion field of the innermost SID, and determines that it is 0011, i.e., it can recognize that the traffic is of the L3VPNV4 type.
Fig. 5 is a schematic diagram illustrating a traffic flow statistical method of SRV6 according to another exemplary embodiment. Fig. 5 exemplarily depicts a process of traffic statistics.
1. The flow control chip is matched with the specific identification bit to identify the service type.
2. And according to the service classification, the flow carries out corresponding technical units or queues.
3. And operations such as flow statistics, speed limit scheduling and the like are realized in different counting units or queues.
According to the SRV6 service traffic statistical method, the traffic statistical function of any node is realized, network traffic management can be helped to realize service resource scheduling, and the real-time conditions of service resource use and service state can be obtained. When the load of a certain network application service server is large, global service resource dynamic can be carried out so as to averagely bear service requests; meanwhile, the service request of the user can be scheduled to determine whether to continue to respond to the new service request of the user, and the service request of the user with high priority is responded according to the priority of the user, so that the service operation efficiency is improved.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the methods provided herein. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to exemplary embodiments of the present application, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a block diagram illustrating an SRV6 traffic flow statistics apparatus according to another exemplary embodiment. As shown in fig. 6, the SRV6 traffic 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 traffic module 602 is configured to obtain service traffic based on the 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 analyze the service traffic to obtain inner SID data;
the identification bit module 606 is used for extracting identification bits of specific positions in the inner-layer SID data;
the type module 608 is configured to determine a service type of the service traffic based on the identification bits;
the statistic module 610 is configured to count traffic data corresponding to different service 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 statistical device, service flow based on an SRV6 protocol is obtained; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; the way of counting the traffic data corresponding to different service types can enable any node in the network in the SRV6 network to obtain the real-time condition of the service traffic state, which is helpful for further realizing network traffic management and service scheduling.
FIG. 7 is a block diagram illustrating an electronic device in accordance with 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 only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the 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 that connects the various 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 can be executed by the processing unit 710 such that the processing unit 710 performs the steps according to various exemplary embodiments of the present application described in the present specification. For example, the processing unit 710 may perform the steps as shown in fig. 2 and 3.
The memory unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory 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 of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 700 interacts, and/or any devices (e.g., router, modem, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 8, the technical solution according to the embodiment of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc 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 propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and 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 and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: acquiring service flow based on an SRV6 protocol; analyzing the service flow to obtain inner-layer SID data; extracting identification bits of specific positions in the inner-layer SID data; determining the service type of the service flow based on the identification bit; and counting the 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 type, the function description and the service scene; and respectively distributing corresponding identification bit values for the plurality of service types.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that the application is not limited to the details of construction, arrangement, or method of implementation described herein; on the contrary, the intention is to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (10)
1. A SRV6 service traffic statistical method is characterized by comprising the following steps:
acquiring service flow based on an SRV6 protocol;
analyzing the service flow to obtain inner-layer SID data;
extracting identification bits of specific positions in the inner-layer SID data;
determining the service type of the service flow based on the identification bit;
and counting the flow data corresponding to different service types.
2. The method of claim 1, further comprising:
the source node generates 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.
3. The method of claim 2, further comprising:
the end node sets a plurality of service types according to the instruction type, the function description and the service scene;
and respectively distributing corresponding identification bit values for the plurality of service types.
4. The method of claim 2, wherein sending the SID data into an SRV6 service network comprises:
SRV6 source node packs the SID data into path information of SID list carrier;
the encapsulated path information is sent to the SRV6 service network.
5. The method of claim 1, wherein obtaining traffic based on the SRV6 protocol comprises:
any node in the SRV6 service network acquires the service traffic.
6. The method of claim 1, wherein parsing the traffic flow to obtain inner SID data comprises:
and analyzing the service flow based on a flow control chip to obtain inner-layer SID data.
7. The method of claim 1, wherein the counting traffic data corresponding to different service types comprises:
and (4) batching the traffic of different service types into different queues for traffic processing and counting.
8. An SRV6 traffic flow statistics apparatus, comprising:
the flow module is used for acquiring service flow based on an 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 of 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 statistical module is used for counting the flow data corresponding to different service types.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
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 true CN114285781A (en) | 2022-04-05 |
CN114285781B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150308A (en) * | 2022-07-19 | 2022-10-04 | 天翼云科技有限公司 | Traffic statistical method and device |
CN115150171A (en) * | 2022-06-30 | 2022-10-04 | 北京天融信网络安全技术有限公司 | Flow statistical method and device, electronic equipment and storage medium |
CN115473835A (en) * | 2022-08-05 | 2022-12-13 | 北京罗克维尔斯科技有限公司 | Flow statistical method and related equipment |
Citations (6)
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 |
US20200382540A1 (en) * | 2019-05-29 | 2020-12-03 | Arbor Networks, Inc. | Measurement and analysis of traffic filtered by network infrastructure |
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 |
-
2021
- 2021-12-17 CN CN202111555534.7A patent/CN114285781B/en active Active
Patent Citations (7)
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 |
US20200382540A1 (en) * | 2019-05-29 | 2020-12-03 | Arbor Networks, Inc. | Measurement and analysis of traffic filtered by network infrastructure |
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 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150171A (en) * | 2022-06-30 | 2022-10-04 | 北京天融信网络安全技术有限公司 | Flow statistical method and device, electronic equipment and storage medium |
CN115150171B (en) * | 2022-06-30 | 2023-11-10 | 北京天融信网络安全技术有限公司 | Flow statistics method and device, electronic equipment and storage medium |
CN115150308A (en) * | 2022-07-19 | 2022-10-04 | 天翼云科技有限公司 | Traffic statistical method and device |
CN115150308B (en) * | 2022-07-19 | 2023-10-10 | 天翼云科技有限公司 | Flow statistics method and device |
CN115473835A (en) * | 2022-08-05 | 2022-12-13 | 北京罗克维尔斯科技有限公司 | Flow statistical method and related equipment |
CN115473835B (en) * | 2022-08-05 | 2023-09-26 | 北京罗克维尔斯科技有限公司 | Flow statistics method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114285781B (en) | 2024-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114285781B (en) | SRV6 service flow statistics method, device, electronic equipment and medium | |
CN112751826B (en) | Method and device for forwarding flow of computing force application | |
EP3072260B1 (en) | Methods, systems, and computer readable media for a network function virtualization information concentrator | |
CN110719215B (en) | Flow information acquisition method and device of virtual network | |
US10153986B2 (en) | Port monitoring system | |
CN108153803A (en) | A kind of data capture method, device and electronic equipment | |
RU2697648C2 (en) | Traffic classification system | |
US11838266B2 (en) | IP address assignment apparatus, IP address assignment method and program | |
CN114006831B (en) | Message data processing method and device | |
CN115277504B (en) | Network traffic monitoring method, device and system | |
JP2020136894A (en) | Prediction device, prediction method, and program | |
CN115695280A (en) | Routing method and device based on edge node, electronic equipment and storage medium | |
CN113411267B (en) | Message forwarding method and device | |
CN115499889A (en) | VPP-based UPF forwarding plane implementation method, device, system and related equipment | |
Song et al. | Research on routing and scheduling algorithms for the simultaneous transmission of diverse data streaming services on the industrial internet | |
CN112994934B (en) | Data interaction method, device and system | |
CN111865805B (en) | Multicast GRE message processing method and system | |
CN115250254B (en) | Netflow message distribution processing method and device | |
CN111144495B (en) | Service distribution method, device and medium | |
US10965532B2 (en) | Software-defined networking device based on service profile learning | |
Sharma et al. | Vnf-aap: Accelerator-aware virtual network function placement | |
CN113422699A (en) | Data stream processing method and device, computer readable storage medium and electronic equipment | |
CN115086242A (en) | Encrypted data packet identification method and device and electronic equipment | |
CN112436951A (en) | Method and device for predicting flow path | |
CN114363257B (en) | Five-tuple matching method and device for tunnel message |
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 |