Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multithreading data scheduling method, device and network equipment

A data scheduling and multi-threading technology, applied in the field of communication, can solve problems such as system performance degradation, multi-threaded data scheduling cannot dynamically adjust load dynamic balance in real time, etc.

Active Publication Date: 2014-04-02
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] Embodiments of the present invention provide a multi-thread data scheduling method, device, and network equipment to solve the problem in the prior art that multi-thread data scheduling cannot be dynamically adjusted in real time to achieve dynamic load balance, resulting in reduced system performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multithreading data scheduling method, device and network equipment
  • Multithreading data scheduling method, device and network equipment
  • Multithreading data scheduling method, device and network equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] In the multi-threaded data scheduling method provided in the first embodiment of the present invention, the data flow difference between every two threads is used to determine whether data scheduling adjustment is required. The process of the method is as follows Image 6 As shown, the execution steps are as follows:

[0062] Step S101: Monitor the data flow received by each thread.

[0063] Each thread can process at least one business data stream. By monitoring the data flow of the business data flow of each business and counting the data flow of each business data flow, the data flow being processed by each thread can be obtained.

[0064] For example: such as Figure 7 As shown, a schematic diagram of the data scheduling principle in a network device with two threads is given. Among them thread 1 and thread 2. In the initial state, service flows 1 and 3 are processed in thread 1, and service flows 2 and 4 are processed in thread 1. The multithreaded data scheduling dev...

Embodiment 2

[0093] The multi-threaded data scheduling method provided in the second embodiment of the present invention determines whether data scheduling adjustment is required through the relationship between the data flow of each thread and the set flow reference value. The process of the method is as Figure 8 As shown, the execution steps are as follows:

[0094] Step S201: Monitor the data flow received by each thread.

[0095] Each thread can process at least one business data stream. Through the data flow monitoring of the business data flow of each business, the data flow being processed by each thread can be obtained.

[0096] Still as Figure 7 The data scheduling in a network device with two threads is shown as an example. Among them thread 1 and thread 2. In the initial state, service flows 1 and 3 are processed in thread 1, and service flows 2 and 4 are processed in thread 1.

[0097] Step S202: Determine whether data flow adjustment is required.

[0098] Preset the allowable flow...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a multithreading data scheduling method, a device and network equipment. The method comprises the steps of: monitoring data traffic received by each thread; determining whether the data traffic of the first thread needs to adjust the second thread according to the monitored data traffic of each thread, if so, determining the adjustable service data traffic in the first thread; and stopping obtaining a message of the adjustable service data traffic by the first thread, marking the last message of the adjustable service data traffic in the first thread, when the marked last message of the adjusted service data traffic in the first data traffic is forwarded, informing the second thread, starting obtaining the massage in the adjusted service data traffic in the first thread by the second thread. By monitoring the data traffic of each thread in real time, the data traffics are subjected to balance adjustment among the threads to realize the dynamic balance of the multithreading data scheduling, so that the system performance is improved, and the waiting delay of forwarding the messages is reduced.

Description

Technical field [0001] The present invention relates to the field of communication technology, in particular to a multi-threaded data scheduling method, device and network device for multi-core network equipment. Background technique [0002] In order to increase the processing speed of the network equipment on the data stream, simply increasing the operating frequency of a single central processing unit (Central Processing Unit, CPU) can no longer meet the requirements of the network equipment for service processing performance. Multi-core processors (including multiple CPUs) solve the bottleneck problem of single-core (including single CPU) frequency increase. Multi-core processors use multiple CPU cores to work together at the same time in order to greatly shorten the task execution time. In order to efficiently use multiple cores, system tasks are divided into multiple subtasks or threads, and each thread can be divided into multiple stages of execution points. This stage of...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46G06F9/50
Inventor 陈宏涛刘忠东马晓靖石伟
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products