Mapping method and device

A mapping method and network card technology, applied in the field of communication, can solve problems such as the unbalanced cooperation between network card multi-queue and CPU, no solution proposed, no reasonable solution for multi-core and multi-queue mapping, etc., to achieve the effect of improving network processing capacity

Inactive Publication Date: 2013-03-20
QI-ANXIN LEGENDSEC INFORMATION TECH (BEIJING) INC +1
View PDF14 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, the firewall platforms are different, the network card chips are different, and different chips support multi-queues differently, so the network card processing capabilities cannot be used under the multi-core platform.
[0004] Therefore, in related technologies, multi-queues of NICs on a multi-core platform cannot coordinate with CPUs in a balanced manner, so that the processing queues of each NIC on a multi-core platform and each CPU can share message processing tasks in a balanced manner.
[0005] Aiming at the problem that there is no reasonable solution for the mapping of multi-core and multi-queue in related technologies, no effective solution has been proposed yet

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
  • Mapping method and device
  • Mapping method and device
  • Mapping method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0023] Based on the fact that there is no reasonable solution for multi-core and multi-queue mapping in the related art, the embodiment of the present invention provides a mapping method and device, which maps each queue of each network card with the core of the CPU, which greatly improves the network processing of the multi-core platform. ability. The following describes in detail through specific embodiments.

[0024] This embodiment provides a mapping method, figure 1 is a flowchart of a mapping method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps (step S102-step S104):

[0025] Step S102, determine the number of cores o...

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 discloses a mapping method and a device. The method comprises determining the core number of central processing units (CPUs), the network card number and the array number of network cards; and mapping arrays of the network cards with cores of the CPUs according to the core number, the network card number and the array number of the network cards. According to the mapping method and the device, after the CPU core number, the network card number and the array number of the network cards are determined, the arrays of the network cards are mapped with the cores of the CPUs according to the three indexes, so that the problem of non reasonable scheme in mapping between multiple cores and multiple arrays in relevant technologies is solved, sending and receiving arrays on the network cards on multi-core platforms can be automatically bound onto corresponding CPUs to be processed under the procedure scheduling, and the multi-core platform network processing capacity is improved greatly.

Description

technical field [0001] The present invention relates to the communication field, in particular to a mapping method and device. Background technique [0002] Multi-queue network card is a technology that was originally used to solve the problem of network service quality (QoS for short). Later, with the continuous improvement of network bandwidth, the single-core central processing unit (Central Processing Unit, referred to as CPU) It cannot fully meet the needs of the network card. With the support of multi-queue network card drivers, each queue is bound to different cores through interrupts to meet the needs of the network card. [0003] Both linux-2.6.24 and above support sending multiple queues (receiving / sending), but there is no reasonable solution for the mapping between multiple queues and multiple cores in related technologies. The software needs to have sufficient adaptability to flexibly adapt to the user's on-site application environment. In addition, the firewa...

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 Applications(China)
IPC IPC(8): H04L12/861
Inventor 姚翼雄陈大钊曾化龙
Owner QI-ANXIN LEGENDSEC INFORMATION TECH (BEIJING) INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products