CN101442513B - Method for implementing various service treatment function and multi-nuclear processor equipment - Google Patents

Method for implementing various service treatment function and multi-nuclear processor equipment Download PDF

Info

Publication number
CN101442513B
CN101442513B CN2007101777192A CN200710177719A CN101442513B CN 101442513 B CN101442513 B CN 101442513B CN 2007101777192 A CN2007101777192 A CN 2007101777192A CN 200710177719 A CN200710177719 A CN 200710177719A CN 101442513 B CN101442513 B CN 101442513B
Authority
CN
China
Prior art keywords
core
service processing
processing function
message
core processor
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
CN2007101777192A
Other languages
Chinese (zh)
Other versions
CN101442513A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2007101777192A priority Critical patent/CN101442513B/en
Priority to PCT/CN2008/071721 priority patent/WO2009065313A1/en
Priority to US12/743,972 priority patent/US8417848B2/en
Publication of CN101442513A publication Critical patent/CN101442513A/en
Application granted granted Critical
Publication of CN101442513B publication Critical patent/CN101442513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a method for realizing various service processing functions, which comprises: collocating various cores in a multicore processor to execute different service processing functions; and transmitting messages to the various cores for executing the various service processing functions in the multicore processor in turn for processing according to the execution sequence of the various preset service processing functions. The invention also discloses a multicore processor device, which comprises a configuration management unit, a message distribution unit and the multicore processor. The method can save the investment cost of the device when realizing the various service processing functions in the network.

Description

Method for realizing multiple service processing functions and multi-core processor equipment
Technical Field
The present invention relates to network communication technologies, and in particular, to a method for implementing multiple service processing functions in a network and a multi-core processor device.
Background
With the continuous development of communication services, higher requirements are put forward on the deployment and design of networks, which not only require that the networks can correctly forward messages in the communication process, but also require that the networks can perform various service processing in the process of forwarding messages, for example, antivirus processing, firewall processing, various targeted service statistics and charging, flow monitoring and adjustment, and the like are required to be performed on the messages, so that the networks can achieve the best performance and permission states.
Fig. 1 is a schematic diagram of network networking for implementing various service processing functions in the prior art. Referring to fig. 1, in order to implement multiple service processing functions in a network, a processing method in the prior art is as follows: different network devices which respectively complete different service processing functions are connected together, and the different network devices jointly complete multiple service processing. As shown in fig. 1, the routing device, the firewall device, and the IPS device are sequentially connected together, so as to sequentially complete the message routing forwarding processing, the firewall processing, and the IPS processing. However, the prior art of connecting different network devices together to perform multiple service processing functions results in a large investment cost of the devices, and also results in a plurality of disadvantages such as poor interoperability between the devices and inconvenient management and maintenance.
Disclosure of Invention
An object of the present invention is to provide a method for implementing multiple service processing functions in a network, and another object of the present invention is to provide a multi-core processor device, so as to save the investment cost of the device when implementing multiple service processing functions in the network.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for realizing multiple service processing functions is realized by adopting equipment with a multi-core processor, and the method comprises the following steps:
configuring different service processing functions of each core in the multi-core processor;
after receiving the message, sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing according to the preset execution sequence of each service processing function,
the method further comprises the following steps:
all cores executing the service processing function are connected through a set virtual Ethernet interface module; the step of sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing comprises the following steps: distributing a message received from the outside to a core corresponding to a first executed service processing function; after the check message is subjected to corresponding service processing, the address of the core is packaged in the message according to the address of the core corresponding to the next executed service processing function in a preset forwarding table, and then the message is sent to a virtual Ethernet interface module; the virtual Ethernet interface module sends the message to a corresponding core according to the address encapsulated in the received message; and so on until the data is sent to the core corresponding to the last executed service processing function; the core sends out the message after corresponding service processing,
or, a virtual Ethernet interface module is arranged between every two cores; the step of sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing comprises the following steps: sending a message received from the outside to a core corresponding to a first executed service processing function; after the corresponding service processing is carried out on the check message, the message is directly sent to the next core through a virtual Ethernet interface module between the cores corresponding to the next executed service processing function; and so on until the data is sent to the core corresponding to the last executed service processing function; and the core sends out the message after the corresponding service processing.
A multi-core processor device, comprising:
the configuration management unit is used for configuring different service processing functions of each core in the multi-core processor;
the message distribution unit is used for sending the message sent by the external physical interface to a core corresponding to the first executed service processing function;
each core completing the service processing function in the multi-core processor is used for carrying out corresponding service processing on the received message, sending the processed message according to the execution sequence of the preset service processing function,
the apparatus further includes a virtual ethernet interface module coupled to all of the cores that perform the traffic processing functions, wherein,
each core completing the service processing function in the multi-core processor is used for encapsulating the address of the core in a message according to the address of the core corresponding to the next service processing function executed in a preset forwarding table when the core is not the last core executing the service processing function, and then sending the message to the virtual Ethernet interface module; the core is used for sending out the processed message when the core is the last core for executing the service processing function;
and the virtual Ethernet interface module is used for sending the message to the corresponding core according to the address of the core encapsulated in the received message.
A multi-core processor device, comprising:
the configuration management unit is used for configuring different service processing functions of each core in the multi-core processor;
the message distribution unit is used for sending the message sent by the external physical interface to a core corresponding to the first executed service processing function;
each core completing the service processing function in the multi-core processor is used for carrying out corresponding service processing on the received message, sending the processed message according to the execution sequence of the preset service processing function,
a virtual ethernet interface module is connected between every two cores, wherein,
each core completing the service processing function in the multi-core processor is used for sending the processed message to a virtual Ethernet interface module between the core completing the service processing function and the next core executing the service processing function when the core is not the last core executing the service processing function; the core is used for sending out the processed message when the core is the last core for executing the service processing function;
each virtual Ethernet interface module is used for sending the message sent by one core connected with the virtual Ethernet interface module to the other core connected with the virtual Ethernet interface module.
Therefore, in the invention, the multi-core processor in the equipment can be used for completing various business processing functions, so that different cores in the multi-core processor for completing different business processing functions are equivalent to virtualizing a plurality of equipment in the prior art, and the investment cost of the equipment is greatly reduced under the condition of ensuring that various business processing functions are completed in a network.
In addition, because the communication is carried out among the cores in one device, the defect of poor intercommunity among devices of different manufacturers in the prior art is overcome, and the device management and maintenance are easy to carry out.
Drawings
Fig. 1 is a schematic diagram of network networking for implementing various service processing functions in the prior art.
FIG. 2 is a schematic diagram of a multi-core processor device in one embodiment of the invention.
Fig. 3 is a flow diagram of the implementation of various traffic handling functions in a network in one embodiment of the invention.
FIG. 4 is a schematic diagram of a first preferred structure of a multi-core processor device in one embodiment of the invention.
FIG. 5 is a schematic diagram of a third preferred structure of a multi-core processor device in one embodiment of the invention.
FIG. 6 is a diagram of a fourth preferred structure of a multicore processor device in one embodiment of the present invention.
Detailed Description
At present, the microprocessor technology is rapidly developed, and a multi-core processor appears. In brief, a multi-core processor integrates a plurality of independent physical cores on the same silicon wafer, and in actual work, the plurality of cores work cooperatively to achieve the purpose of performance multiplication. Each core has an independent logic structure, including a second level cache, an execution unit, an instruction level unit, a bus interface and other logic units. The core is an execution center in the CPU, which is responsible for computation, reception/storage of commands, and processing of data. The multi-core method can be found out to be the best method for improving the performance of the chip under the current power consumption limit.
At present, a plurality of cores in a multi-core processor may be used to sequentially execute different processing steps of a service processing function, for example, core 1 in the multi-core processor executes a process of stripping a message tunnel header in a message forwarding process, core 2 executes a process of searching for a forwarding route in the message forwarding process, and core 3 executes a process of forwarding an outgoing interface in the message forwarding process. In addition, at present, a plurality of cores in the multi-core processor can be used for processing messages of different sessions of one service processing function in parallel. For example, core 1 in the multi-core processor performs all routing forwarding processing on all messages of session 1, core 2 in the multi-core processor performs all routing forwarding processing on all messages of session 2, and core 3 in the multi-core processor performs all routing forwarding processing on all messages of session 3.
The invention provides a method for realizing multiple service processing functions by utilizing a multi-core processor, which comprises the following steps: configuring different service processing functions of each core in the multi-core processor; after the message is received, the message is sequentially sent to each core in the multi-core processor for executing each service processing function to be processed according to the preset execution sequence of each service processing function.
Therefore, in the invention, the multi-core processor can not only process one service processing function as in the prior art, but can execute different service processing functions by different cores.
Correspondingly, the invention also provides a multi-core processor device. FIG. 2 is a schematic diagram of a multi-core processor device in one embodiment of the invention. Referring to fig. 2, the multi-core processor device includes:
the configuration management unit is used for configuring different service processing functions of each core in the multi-core processor;
a message distribution unit, configured to send a message received from the outside to a core corresponding to a first executed service processing function;
each core completing the service processing function in the multi-core processor is used for performing corresponding service processing on the received message and sending the processed message according to the execution sequence of the preset service processing function.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 3 is a flow diagram of the implementation of various traffic handling functions in a network in one embodiment of the invention. Referring to fig. 2 and fig. 3, the following describes in detail a specific implementation process for implementing multiple service processing functions in the present invention with reference to the device of the present invention, where the process specifically includes the following steps:
step 301: a multi-core processor device is provided in a network.
In this step, the multi-core processor device includes a configuration management unit, a packet distribution unit, and a multi-core processor.
Step 302: a License (License) certificate of the multi-core processor device is obtained.
Here, in order to provide different levels of service for different users, one License certificate may be provided by the operator for each user using the multicore processor device.
The License certificate provided by the operator can be directly used for executing the configuration of the subsequent service processing function, so that the information of the service processing function corresponding to each core in the multi-core processor can be recorded.
Step 303: and configuring different business processing functions of each core of the multi-core processor in the multi-core processor equipment by using the License certificate.
In this step, the License certificate is directly used for configuration, and the method specifically includes: when the multi-core processor is started, loading an operating system and service software corresponding to the service processing function for each core in the multi-core processor according to the information of the service processing function corresponding to each core in the License certificate.
In the above step 302, the License certificate provided by the operator may be used to limit the configuration of the subsequent service processing function of the user, that is, only information about the service processing function authorized by the user, instead of the configuration for executing the subsequent service processing function, that is, information about the service processing function corresponding to each core in the multi-core processor is not described, in which case, the process of the step 303 is implemented by replacing the following process:
the method I is realized by using a configuration file, and comprises the following steps:
A. configuration parameters are set in a configuration file of the multi-core processor device in advance, and the configuration parameters are used for representing service processing functions corresponding to cores in the multi-core processor.
B. When the multi-core processor is started, the configuration management unit in the device can read the configuration file from a BOOT (BOOT) start menu, and determines that the configured service processing functions are respectively loaded for each core in the multi-core processor according to the configuration parameters in the configuration file.
C. Before loading the operating system and the service software of the corresponding service processing function for each core, judging whether the information of the service processing function needing to be loaded and configured currently can be found in the authorized service processing function information in the License certificate by the configuration management unit, if so, executing the step D, otherwise, executing the step E.
D. And loading an operating system and service software corresponding to the service processing function for the core in the multi-core processor according to the configuration parameters.
E. And prompting the user of the information of insufficient authority and failure.
The second mode is realized by hardware configuration, and comprises the following steps:
a. setting a hardware configuration parameter on a hardware single board of the multi-core processor device in advance, wherein the hardware configuration parameter represents service processing functions corresponding to cores in the multi-core processor.
b. When the multi-core processor equipment is started, the configuration management unit of the equipment reads the hardware configuration parameters on the hardware single board, and determines the service processing functions which need to be loaded and configured for each core in the multi-core processor respectively at present according to the hardware configuration parameters.
c. Before loading the operating system and the service software of the corresponding service processing function for each core, judging whether the information of the service processing function needing to be loaded and configured currently can be found in the authorized service processing function information in the License certificate by the configuration management unit, if so, executing the step d, otherwise, executing the step e.
d. And loading an operating system and service software corresponding to the service processing function for the core in the multi-core processor according to the hardware configuration parameters.
e. And prompting the user of the information of insufficient authority and failure.
In the second mode, the set hardware configuration parameter may be a status word indicated by the dial switch, for example, it is necessary to set core 0 in the multi-core processor as the router function, and set core 1 of the multi-core processor as the firewall function, and when the status word indicated by the dial switch is predetermined to be 6 and 7, the status word indicated by the dial switch corresponding to core 0 may be set to be 6, and the status word indicated by the dial switch corresponding to core 1 may be 7.
In addition, the set hardware configuration parameters may also be register configuration words of internal devices of the logic device, that is, different functions to be executed by different cores in the multi-core processor are represented by different configuration words. In addition, the set hardware configuration parameters may also be hardware resource configuration parameters of the hardware interface daughter card, that is, different functions that different cores in the multi-core processor need to execute are represented by different parameter values of the hardware resource configuration parameters.
The process of this step 303 is the original configuration performed before the multi-core processor device is started.
Step 304: in the operation process of the multi-core processor, a management terminal connected with the multi-core processor receives a control command which is input by a user and comprises the address of a designated core in the multi-core processor and configuration parameters, and sends the control command to the multi-core processor device.
Step 305: the multi-core processor device sends the control command to the designated core.
Step 306: and the appointed core executes corresponding updating configuration processing according to the received control command.
The processing of steps 304, 305, and 306 is processing performed in the operation process of the multi-core processor device according to the present invention, which needs to update the configuration of a core, such as updating a service processing function or updating a routing forwarding table.
FIG. 4 is a schematic diagram of a first preferred structure of a multi-core processor device in one embodiment of the invention. Referring to fig. 4, in order to implement the processing of step 304 to step 306, a virtual management interface module and a management physical interface are included in the multi-core processor device, wherein the management physical interface is connected to an external management terminal.
Thus, referring to fig. 4, when a user needs to update the configuration of one core, for example, in an initial configuration, the service processing function executed by the core 0 is a firewall function, and the user needs to change the service processing function executed by the core 0 to IPS processing, a control command including a core 0 address and used for configuring the service processing function of the core 0 to IPS processing may be input to the management terminal connected to the multi-core processor device, and the external management terminal sends the control command to the management physical interface of the multi-core processor device; the management physical interface of the multi-core processor device sends the control command to the virtual management interface module; the virtual management interface module sends the control command to the core 0 according to the address of the core 0 carried in the control command, and the core 0 executes corresponding service processing according to the received control command, namely, an operating system and service software for realizing an IPS function are loaded.
In an actual service implementation, when a user inputs a control command to an external management terminal connected to a multi-core processor, the user may directly input the control command in a serial format locally at the management terminal, so that the type of the management physical interface shown in fig. 4 is a serial interface, the control command in the serial format is received and sent, and the control command in the serial format is received and sent by the virtual management interface module shown in fig. 4.
When a user inputs a control command to an external management terminal connected to a multi-core processor, the user may input an ethernet-type control command to the management terminal through a remote input mode, such as logging in a Web interface, so that the type of the management physical interface shown in fig. 4 is an ethernet interface, the ethernet-type control command is received and sent, and the ethernet-type control command is received and sent by the virtual management interface module shown in fig. 4.
Step 307: in the running process of the multi-core processor equipment, the multi-core processor equipment receives a message sent from the outside.
Step 308: and the multi-core processor equipment sequentially sends the messages to each core in the multi-core processor for executing each service processing function for processing according to the preset execution sequence of each service processing function.
FIG. 5 is a schematic diagram of a third preferred structure of a multi-core processor device in one embodiment of the invention. Referring to fig. 5, the multi-core processor device may further include, on the basis of the structure shown in fig. 4, a virtual ethernet interface module connected to all cores that perform a service processing function, so that, with the structure shown in fig. 5, the specific implementation of the step 307 and the step 308 includes:
the message distribution unit receives a message sent from the outside on an external physical interface and sends the message to a core 0 corresponding to the first executed service processing function;
a forwarding table is stored in the core 0, and the forwarding table includes an address (IP address or MAC address) of a core, such as the core 1, corresponding to a next service processing function to be executed, so that, after the core 0 receives a message and performs corresponding service processing on the message, for example, firewall processing, the core 0 encapsulates the address of the core 1 in the message according to the forwarding table, and then sends the message to the virtual ethernet interface module through a virtual logic port pre-allocated to the core 0;
after receiving the message sent by the core 0, the virtual Ethernet interface module sends the message to the core 1 according to the address of the core 1 encapsulated in the message;
if the core 1 is not the last core for executing the service processing function, the core 1 performs processing similar to that of the core 0, that is, firstly, according to the loaded service processing function, corresponding service processing such as antivirus processing is performed on the received message, then, according to a stored forwarding table including the address of the core corresponding to the next service processing function to be executed, the address of the next core is packaged in the message, and the message is sent to the virtual Ethernet interface module through a virtual logic port which is pre-allocated to the core;
after receiving the message sent by the core 1, the virtual Ethernet interface module sends the message to a next core, such as a core n, according to the address of the next core encapsulated in the message;
if the core n is the last core executing the service processing function, the core n performs corresponding service processing on the received message according to the loaded service processing function, and then sends the message to the outside of the multi-core processor device through a physical interface pre-allocated to the core n.
With the structure shown in fig. 5, the present invention can achieve load balancing of a specified service processing function. In this case, in step 303, when configuring the corresponding core for the specified service processing function requiring load balancing, the configuration management unit needs to further configure a plurality of cores in the multi-core processor, where the plurality of cores should have the same address, and the plurality of cores should have the same service processing function requiring load balancing; in the service process, each core corresponding to the same service processing function outputs an idle state signal if the core is idle, and outputs a busy state signal if the core is executing the service processing function;
thus, in the above specific implementation process of implementing step 307 and step 308 by using the structure shown in fig. 5:
if the message distribution unit determines that the first executed service processing function is the specified service processing function requiring load balancing, that is, the service processing function can be executed by a plurality of cores including core 0, the message distribution unit may detect status signals output by all cores corresponding to the service processing function, and send a message to core 0 when the status signal output by core 0 is idle;
and the virtual ethernet interface module is configured to, when an address of a core encapsulated in a packet corresponds to multiple cores, first detect status signals output by all cores corresponding to the address, and then send the packet to a core whose status signal is idle.
FIG. 6 is a diagram of a fourth preferred structure of a multicore processor device in one embodiment of the present invention. Referring to fig. 6, the multi-core processor device may also further include, on the basis of the structure shown in fig. 4, a plurality of virtual ethernet interface modules connected between every two cores that need to exchange packets, for example, the virtual ethernet interface module 1 may be set between the core 0 and the core 1 if the core 1 needs to perform antivirus processing after the core 0 performs firewall processing, and the virtual ethernet interface module n may be set between the core n-1 and the core n if the core n needs to perform service processing after the core n-1 performs service processing,
thus, the specific implementation of the above steps 307 and 308 by using the structure shown in fig. 6 includes:
the message distribution unit receives a message sent from the outside on an external physical interface and sends the message to a core 0 corresponding to the first executed service processing function;
the core 0 performs corresponding service processing such as firewall processing on the message, and the core 0 sends the message to the core 1 through the virtual Ethernet interface module 1;
if the core 1 is not the last core for executing the service processing function, the core 1 performs processing similar to that of the core 0, that is, performs corresponding service processing on the received message, such as antivirus processing, and then directly sends the message to the next core through a virtual ethernet interface module between the next core and the next core, and so on until the message is sent to the last core n;
and the n cores n perform corresponding service processing on the received message according to the loaded service processing function, and then send the message to the outside of the multi-core processor equipment through a physical interface which is pre-allocated to the n cores n.
It should be noted that, when configuring a corresponding core for each service processing function, preferably, the configuration management unit in the multi-core processor device may configure a control core and one or more data processing cores for each service processing function, and when configuring a plurality of data processing cores for each service processing function, the plurality of data processing cores may perform various applications such as active/standby or load sharing.
With the structure shown in fig. 6, the present invention can achieve load balancing of a specified service processing function. In this case, in step 303, when configuring the corresponding core for the specified service processing function requiring load balancing, the configuration management unit needs to further configure a plurality of cores in the multi-core processor to perform the same service processing function requiring load balancing; in the service process, each core corresponding to the same service processing function outputs an idle state signal if the core is idle, and outputs a busy state signal if the core is executing the service processing function;
thus, in the above specific implementation process of implementing step 307 and step 308 by using the structure shown in fig. 6:
the message distribution unit is configured to, when it is determined that the first performed service processing function is the specified service processing function that needs load balancing, that is, the service processing function may be performed by a plurality of cores including core 0, then the message distribution unit may detect status signals output by all cores corresponding to the service processing function, and send a message to core 0 when the status signal output by core 0 is idle;
in the subsequent process, each core in the multi-core processor that completes the service processing function is used to detect the status signals output by all cores corresponding to the service processing function when the next executed service processing function is the specified service processing function that needs load balancing, and directly send the message to the core whose status signal is idle through the virtual ethernet interface module between the core whose status signal is idle and the core whose status signal is idle.
It should be further noted that, referring to fig. 2 to fig. 6, in the multi-core processor device provided by the present invention, the configuration management unit may be implemented by using one or more specified cores in the multi-core processor. For example, a core in the multi-core processor is specified to be reserved as a dedicated management configuration unit for completing management control functions of starting, terminating, resource allocation and the like of the device. As another example, it is specified that a core in a multi-core processor that performs one of the service processing functions is multiplexed, that is, the core not only performs its configured service processing function but also is further used as a management configuration unit.
In addition, referring to fig. 2 to fig. 6, in the multi-core processor device provided by the present invention, the message distribution unit may also be one or more designated cores in the multi-core processor. Similar to the implementation of the configuration management unit, the packet distribution unit may specify a reserved dedicated core in the multi-core processor to implement, or may specify to multiplex a core performing a service processing function, for example, if the core 0 is configured to perform firewall processing, the core 0 may be further configured to also serve as the packet distribution unit.
It should be further noted that, when both the management physical interface and the external physical interface in the multi-core processor device are ethernet interfaces, the management physical interface and the external physical interface may be multiplexed.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (24)

1. A method for realizing multiple service processing functions, which is realized by a device with a multi-core processor, is characterized in that the method comprises the following steps:
configuring different service processing functions of each core in the multi-core processor;
after receiving the message, sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing according to the preset execution sequence of each service processing function,
the method further comprises the following steps:
all cores executing the service processing function are connected through a set virtual Ethernet interface module; the step of sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing comprises the following steps: distributing a message received from the outside to a core corresponding to a first executed service processing function; after the check message is subjected to corresponding service processing, the address of the core is packaged in the message according to the address of the core corresponding to the next executed service processing function in a preset forwarding table, and then the message is sent to a virtual Ethernet interface module; the virtual Ethernet interface module sends the message to a corresponding core according to the address encapsulated in the received message; and so on until the data is sent to the core corresponding to the last executed service processing function; the core sends out the message after corresponding service processing,
or, a virtual Ethernet interface module is arranged between every two cores; the step of sequentially sending the message to each core in the multi-core processor corresponding to each service processing function for processing comprises the following steps: sending a message received from the outside to a core corresponding to a first executed service processing function; after the corresponding service processing is carried out on the check message, the message is directly sent to the next core through a virtual Ethernet interface module between the cores corresponding to the next executed service processing function; and so on until the data is sent to the core corresponding to the last executed service processing function; and the core sends out the message after the corresponding service processing.
2. The method of claim 1, prior to configuring a corresponding traffic processing function for a core in a multi-core processor, further comprising: and judging whether the information of the service processing function which needs to be configured currently can be found in the authorized service processing function information in the License certificate which is acquired in advance, and if so, continuing to execute the processing of configuring the service processing function corresponding to the core in the multi-core processor.
3. The method of claim 1 or 2, wherein the step of configuring the business processing functions that should be different for each core in the multi-core processor comprises:
setting configuration parameters in a configuration file in advance, wherein the configuration parameters represent service processing functions corresponding to cores in a multi-core processor respectively; when the multi-core processor is started, respectively loading an operating system and service software which are required to execute a service processing function for each core in the multi-core processor according to configuration parameters in a configuration file;
or,
setting hardware configuration parameters on a hardware single board in advance, wherein the hardware configuration parameters represent service processing functions corresponding to cores in a multi-core processor respectively; when the multi-core processor is started, respectively loading an operating system and service software which are required to execute a service processing function for each core in the multi-core processor according to the hardware configuration parameters on the hardware single board.
4. The method of claim 3, wherein the hardware configuration parameters are: status words indicated by the dial switch, register configuration words of internal equipment of the logic device or hardware resource configuration parameters of the hardware interface daughter card.
5. The method of claim 1, wherein the step of configuring the business processing functions that should be different for each core in the multi-core processor comprises:
configuring available service processing functions in the License certificate in advance; and when the multi-core processor is started, respectively loading an operating system and business software which are required to execute the business processing function for each core in the multi-core processor according to the License certificate.
6. The method of claim 1, after configuring the traffic handling functions that should be different for each core in the multi-core processor, further comprising: receiving a control command sent by a user, sending the control command to a specified core in the multi-core processor according to the address of the specified core in the multi-core processor included in the control command, and executing corresponding update configuration processing by the specified core according to the configuration parameters in the received control command.
7. The method of claim 1, further comprising: appointing a service processing function needing load balancing;
when configuring the corresponding core for the service processing function which needs load balancing, the method further comprises the following steps: configuring a plurality of cores in a multi-core processor to perform the same service processing function needing load balancing;
the process of sending the message to a core corresponding to the service processing function needing load balancing comprises the following steps: and respectively detecting state signals output by all cores corresponding to the service processing function needing load balancing, and sending the message to the core of which the state signal is idle.
8. The method of claim 1, wherein the virtual ethernet interface module is implemented by one or more designated cores of a multi-core processor.
9. A multi-core processor device, comprising:
the configuration management unit is used for configuring different service processing functions of each core in the multi-core processor;
the message distribution unit is used for sending the message sent by the external physical interface to a core corresponding to the first executed service processing function;
each core completing the service processing function in the multi-core processor is used for carrying out corresponding service processing on the received message, sending the processed message according to the execution sequence of the preset service processing function,
the apparatus further includes a virtual ethernet interface module coupled to all of the cores that perform the traffic processing functions, wherein,
each core completing the service processing function in the multi-core processor is used for encapsulating the address of the core in a message according to the address of the core corresponding to the next service processing function executed in a preset forwarding table when the core is not the last core executing the service processing function, and then sending the message to the virtual Ethernet interface module; the core is used for sending out the processed message when the core is the last core for executing the service processing function;
and the virtual Ethernet interface module is used for sending the message to the corresponding core according to the address of the core encapsulated in the received message.
10. The device according to claim 9, wherein the configuration management unit is configured to, when the multi-core processor is started, read a configuration file from an import BOOT start menu, where configuration parameters in the configuration file represent service processing functions respectively corresponding to cores in the multi-core processor; and respectively loading an operating system and service software which are required to execute the service processing function for each core in the multi-core processor according to the configuration parameters in the configuration file.
11. The device according to claim 9, wherein the configuration management unit is configured to, when the multi-core processor is started, read a hardware configuration parameter from the hardware board, where the hardware configuration parameter represents a service processing function corresponding to each core in the multi-core processor; and respectively loading an operating system and service software which are required to execute the service processing function for each core in the multi-core processor according to the hardware configuration parameters.
12. The apparatus according to claim 10 or 11, wherein the configuration management unit is further configured to, before configuring the corresponding service processing function for one core in the multi-core processor, determine whether information of the service processing function that needs to be configured currently can be found in the authorized service processing function information in the License certificate that is obtained in advance, and if so, continue to perform the processing of configuring the service processing function that needs to be executed for the core in the multi-core processor.
13. The apparatus according to claim 9, wherein the configuration management unit is configured to store a License certificate, and when the multi-core processor is started, load an operating system and service software corresponding to a service processing function for each core in the multi-core processor according to the service processing function corresponding to each core in the License certificate.
14. The apparatus of claim 9, further comprising a virtual management interface module and a management physical interface, wherein,
the management physical interface is used for receiving a control command comprising a designated core address in the multi-core processor from an external management terminal and sending the control command to the virtual management interface module;
the virtual management interface module is used for sending the control command to the appointed core according to the address of the appointed core carried in the control command;
and the appointed core in the multi-core processor is further used for executing corresponding updating configuration processing according to the configuration parameters in the received control command.
15. The apparatus of claim 14, wherein the management physical interface is a serial interface, receiving the control command in a serial format; then, the virtual management interface module is configured to receive and send the control command in a serial format;
or,
the management physical interface is an Ethernet interface and receives the control command in an Ethernet mode; then, the virtual management interface module is configured to receive and send the control command in an ethernet format.
16. The apparatus according to claim 15, wherein when the virtual management interface module is configured to receive and send the control command in serial format, the virtual management interface module is one or more designated cores in a multi-core processor or a message parsing and distributing engine;
and when the virtual management interface module is used for receiving and sending the control command in the Ethernet mode, the virtual management interface module is a message analysis and distribution engine.
17. The device of claim 16, wherein the management physical interface is multiplexed with the external physical interface when the management physical interface and the external physical interface are both ethernet interfaces.
18. The device according to claim 9, wherein the configuration management unit is configured to, when configuring a corresponding core for a specified service processing function that needs load balancing, further configure a plurality of cores in the multi-core processor to be the same service processing function that needs load balancing, and the plurality of cores have the same address;
the message distribution unit is used for respectively detecting state signals output by all cores corresponding to the service processing function and sending a message to the core of which the state signal is idle when the first executed service processing function is the specified service processing function needing load balancing;
the virtual ethernet interface module is configured to, when an address of a core encapsulated in a packet corresponds to multiple cores, first detect status signals output by all cores corresponding to the address, and then send the packet to a core in which the status signals are idle.
19. The apparatus of claim 18, wherein the virtual ethernet interface module is implemented by one or more designated cores of a multi-core processor.
20. The apparatus of claim 9, wherein the configuration management unit or the packet distribution unit is one or more designated cores of a multi-core processor.
21. A multi-core processor device, comprising:
the configuration management unit is used for configuring different service processing functions of each core in the multi-core processor;
the message distribution unit is used for sending the message sent by the external physical interface to a core corresponding to the first executed service processing function;
each core completing the service processing function in the multi-core processor is used for carrying out corresponding service processing on the received message, sending the processed message according to the execution sequence of the preset service processing function,
a virtual ethernet interface module is connected between every two cores, wherein,
each core completing the service processing function in the multi-core processor is used for sending the processed message to a virtual Ethernet interface module between the core completing the service processing function and the next core executing the service processing function when the core is not the last core executing the service processing function; the core is used for sending out the processed message when the core is the last core for executing the service processing function;
each virtual Ethernet interface module is used for sending the message sent by one core connected with the virtual Ethernet interface module to the other core connected with the virtual Ethernet interface module.
22. The apparatus according to claim 21, wherein the configuration management unit is configured to, when configuring a corresponding core for a specified service processing function that needs load balancing, further configure a plurality of cores in the multi-core processor to correspond to the same service processing function that needs load balancing;
the message distribution unit is used for respectively detecting state signals output by all cores corresponding to the service processing function and sending a message to the core of which the state signal is idle when the first executed service processing function is the specified service processing function needing load balancing;
each core completing the service processing function in the multi-core processor is configured to detect a state signal output by all cores corresponding to the service processing function when the next executed service processing function is the specified service processing function requiring load balancing, and directly send the message to a core whose state signal is idle through a virtual ethernet interface module between the core and the core whose state signal is idle.
23. The apparatus of any of claims 21 to 22, wherein the virtual ethernet interface module is implemented by one or more designated cores of a multi-core processor.
24. The apparatus of claim 21, wherein the configuration management unit or the packet distribution unit is one or more designated cores of a multi-core processor.
CN2007101777192A 2007-11-20 2007-11-20 Method for implementing various service treatment function and multi-nuclear processor equipment Active CN101442513B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN2007101777192A CN101442513B (en) 2007-11-20 2007-11-20 Method for implementing various service treatment function and multi-nuclear processor equipment
PCT/CN2008/071721 WO2009065313A1 (en) 2007-11-20 2008-07-22 Method and multi-core processor equipment for realizing multiple service process functions
US12/743,972 US8417848B2 (en) 2007-11-20 2008-07-22 Method and apparatus for implementing multiple service processing functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101777192A CN101442513B (en) 2007-11-20 2007-11-20 Method for implementing various service treatment function and multi-nuclear processor equipment

Publications (2)

Publication Number Publication Date
CN101442513A CN101442513A (en) 2009-05-27
CN101442513B true CN101442513B (en) 2012-05-23

Family

ID=40726757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101777192A Active CN101442513B (en) 2007-11-20 2007-11-20 Method for implementing various service treatment function and multi-nuclear processor equipment

Country Status (1)

Country Link
CN (1) CN101442513B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428083A (en) * 2012-05-24 2013-12-04 京瓷办公信息系统株式会社 Information processing device and image forming apparatus

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375761A (en) * 2010-08-06 2012-03-14 中兴通讯股份有限公司 Business management method, device and equipment
CN102480430B (en) * 2010-11-24 2014-07-09 迈普通信技术股份有限公司 Method and device for realizing message order preservation
CN102685001B (en) * 2012-04-26 2014-12-10 汉柏科技有限公司 Efficient processing method and efficient processing system of tasks of network devices
CN102724099B (en) * 2012-06-01 2017-11-24 中兴通讯股份有限公司 Lift multiple processor system chain of command intercommunication Qos device and method
CN102968399A (en) * 2012-10-22 2013-03-13 华为技术有限公司 Multi-core processor and multiplexing method of network management portinterface thereof
CN103051677A (en) * 2012-11-30 2013-04-17 中国电信股份有限公司云计算分公司 Network service capability providing method and equipment
CN103973553A (en) * 2013-01-24 2014-08-06 华为技术有限公司 Data packet processing method and network device
CN103226496B (en) * 2013-03-15 2016-05-25 杭州华三通信技术有限公司 Service synchronization processing method and multinuclear equipment
CN103346980B (en) 2013-07-02 2016-08-10 华为技术有限公司 A kind of business scheduling method, device and the network equipment
CN104038437A (en) * 2014-06-30 2014-09-10 蓝盾信息安全技术有限公司 Method for implementing Cavium multi-core processor platform data packet load balance
CN105812276B (en) * 2016-04-27 2023-11-10 深圳市风云实业有限公司 Message forwarding adaptive system and method adopting multi-core processor
CN108984327B (en) * 2018-07-27 2020-12-01 新华三技术有限公司 Message forwarding method, multi-core CPU and network equipment
CN110875823B (en) * 2018-08-29 2021-07-23 大唐移动通信设备有限公司 Data processing system and method for service plane
CN112311731A (en) * 2019-07-29 2021-02-02 联合汽车电子有限公司 Vehicle-mounted processor, vehicle-mounted controller and communication method
CN112765925B (en) * 2021-04-09 2021-07-13 北京燧原智能科技有限公司 Interconnected circuit system, verification system and method
CN113495791B (en) * 2021-09-07 2021-12-14 上海燧原科技有限公司 Task processing system, method and chip
CN115086329A (en) * 2022-06-06 2022-09-20 上海弘积信息科技有限公司 Message forwarding processing method applied to load balancing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982595A1 (en) * 1998-08-21 2000-03-01 STMicroelectronics Limited An integrated circuit with multiple processing cores
CN1921457A (en) * 2006-09-18 2007-02-28 杭州华为三康技术有限公司 Network equipment and message transferring method based on multiple-core processor
CN101013383A (en) * 2007-02-13 2007-08-08 杭州华为三康技术有限公司 System and method for implementing packet combined treatment by multi-core CPU

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0982595A1 (en) * 1998-08-21 2000-03-01 STMicroelectronics Limited An integrated circuit with multiple processing cores
CN1921457A (en) * 2006-09-18 2007-02-28 杭州华为三康技术有限公司 Network equipment and message transferring method based on multiple-core processor
CN101013383A (en) * 2007-02-13 2007-08-08 杭州华为三康技术有限公司 System and method for implementing packet combined treatment by multi-core CPU

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428083A (en) * 2012-05-24 2013-12-04 京瓷办公信息系统株式会社 Information processing device and image forming apparatus
CN103428083B (en) * 2012-05-24 2016-08-03 京瓷办公信息系统株式会社 Information processor and image processing system

Also Published As

Publication number Publication date
CN101442513A (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN101442513B (en) Method for implementing various service treatment function and multi-nuclear processor equipment
CN102055667B (en) Methods and apparatus for configuring virtual network switch
EP2696537B1 (en) Network system, switch, and connection terminal detection method
CN109274603B (en) Interconnection method and device based on software definition between heterogeneous protocol data
CN109842868B (en) Frame aggregation and network setting frame sending method and equipment
US8417848B2 (en) Method and apparatus for implementing multiple service processing functions
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
US9960998B2 (en) Forwarding packet in stacking system
US12034604B2 (en) MQTT protocol simulation method and simulation device
TWI535251B (en) Method and system for low-latency networking
CN108768667B (en) Method for inter-chip network communication of multi-core processor
CN111294235A (en) Data processing method, device, gateway and readable storage medium
US20240214791A1 (en) User equipment (ue) service over a network exposure function (nef) in a wireless communication network
CN114422297B (en) Multi-scene virtual network flow monitoring method, system, terminal and medium
CN104427012A (en) Port negotiation method and device
CN114499849A (en) Service user terminal, secure transmission system and method
CN113765801B (en) Message processing method and device applied to data center, electronic equipment and medium
CN114629853B (en) Flow classification control method based on security service chain analysis in security resource pool
CN113377393B (en) Diagnosis refreshing system and method for vehicle-mounted system main node
CN113709015A (en) Data transmission method, electronic device and storage medium
CN115225708B (en) Message forwarding method computer equipment and storage medium
CN111277516B (en) User plane concentration unit, data processing device and data processing method
CN101505235B (en) Component loading method and apparatus
CN209250664U (en) Data processing equipment
CN110875823B (en) Data processing system and method for service plane

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address