CN104539528A - Multi-core communication equipment and method for message interaction between multi-core communication equipment and RADIUS server - Google Patents
Multi-core communication equipment and method for message interaction between multi-core communication equipment and RADIUS server Download PDFInfo
- Publication number
- CN104539528A CN104539528A CN201410854794.8A CN201410854794A CN104539528A CN 104539528 A CN104539528 A CN 104539528A CN 201410854794 A CN201410854794 A CN 201410854794A CN 104539528 A CN104539528 A CN 104539528A
- Authority
- CN
- China
- Prior art keywords
- core
- message
- communication equipment
- radius
- heading
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the data communication technology and provides multi-core communication equipment and a method for message interaction between the multi-core communication equipment and a RADIUS server. The problem that message interaction between existing multi-core communication equipment and an RADIUS server cannot be accurately carried out always is solved. According to the technical scheme, the multi-core communication equipment comprises a forwarding core and a plurality of running cores; when the running cores assemble a RADIUS request message, the core numbers of the running cores are modified into a field, marking the message serial number, in a message header of the message, and then the RADIUS request message is sent to the forwarding core; the forwarding core is used or forwarding the RADIUS request message sent by the running cores and receiving a corresponding response message, a field, marking the message serial number, in a message header in the response message is extracted, the core number of the corresponding running core is obtained from the field, and the response message is forwarded to the running core corresponding to the core number. The method for message interaction between the multi-core communication equipment and the RADIUS server has the advantages of ensuring normal communication and being applicable to multi-core communication equipment.
Description
Technical field
The present invention relates to data communication technology, particularly multi-core communication equipment and technology.
Background technology
When communication equipment is multicore architecture, for lifting means performance, make full use of polycaryon processor computing capability, each core is isolated operation, for multi-core communication equipment, it can be divided into management core, run core and forward core three bulk, wherein, management core is responsible for being managed for configuration, run the process that core is responsible for related data, and forward the transmitting-receiving that core is responsible for message, and in multi-core communication equipment, run core and generally be multiple, when equipment and RADIU server communication, message runs core from equipment to assemble, issue radius server again, but need the response message ensureing radius server also to run on core to this to operate, otherwise, because in different IPs, data are inconsistent, communication can be caused to make mistakes, therefore multi-core communication equipment and radius server mutual time, just need to ensure that the RADIUS message sent out all is processed by identical operation core with its corresponding response message, thus guarantee proper communication, this is a problem needing to solve.
Summary of the invention
Object of the present invention is exactly overcome the shortcoming that at present message not necessarily can be correctly mutual between multi-core communication equipment and radius server, provide a kind of multi-core communication equipment and and radius server between message interaction method.
The present invention solves its technical problem, and the technical scheme of employing is, multi-core communication equipment, comprises and forwards core and multiple operation core, and each operation core described has the unique core number corresponding with it, it is characterized in that,
Described operation core, when assembling RADIUS request message, revising the core of this operation core number and indicating in the field of test serial number in the heading of this message, then this RADIUS request message is sent to forwarding core;
Described forwarding core, for forwarding the RADIUS request message running core and send, and receive corresponding response message, and extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
Concrete, indicate in described heading that the field of test serial number is message identification packet identifier field.
Further, described amendment by the core of this operation core number indicates that the method in the field of test serial number is in the heading of this message: predefined last n position in the field indicating test serial number in the heading of this message is replaced with the core number of this operation core, and n is positive integer.
Concrete, described predefined last n position pre-defines according to the quantity running core.
Further, the method that described forwarding core obtains the core number of corresponding operation core is: forward core and indicate in the field of test serial number from the heading extracting this response message, obtain wherein predefined last n position, obtain the core number of corresponding operation core.
Message interaction method between multi-core communication equipment and radius server, is characterized in that, comprises the following steps:
Each operation core of step 1, multi-core communication equipment assembles RADIUS request message respectively, and the core of himself number is revised and indicated in the field of test serial number in the heading of its RADIUS request message assembled separately by each operation core respectively;
The RADIUS request message assembled is sent to forwarding core by step 2, each core that runs;
Step 3, forward core and receive and forward to radius server the RADIUS request message that each operation core sends;
Step 4, radius server, according to the RADIUS request message received, reply corresponding response message to multi-core communication equipment;
Step 5, forwarding core receive response message, extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
Concrete, in step 1, described each operation core respectively the core of himself number is revised to indicate in the heading of its RADIUS request message assembled separately method in the field of test serial number for: each core that runs will indicate in the heading of its RADIUS request message assembled separately that predefined last n position in the field of test serial number replaces with the core number of himself respectively, and n is positive integer.
Further, described predefined last n position pre-defines according to the quantity running core.
Concrete, in step 5, the method that described forwarding core obtains the core number of corresponding operation core is: forward core and indicate in the field of test serial number from the heading extracting this response message, obtain wherein predefined last n position, obtain the core number of corresponding operation core.
Further, step 4 comprises following concrete steps:
Step 41, radius server receive RADIUS request message, extract the field indicating test serial number in the heading of this RADIUS request message, are filled in corresponding response message;
The response message obtained is sent to multi-core communication equipment by step 42, radius server.
The invention has the beneficial effects as follows, by above-mentioned multi-core communication equipment and and radius server between message interaction method, can all send to correct operation core when transmitted response message by assured forwarding core, ensure proper communication.
Accompanying drawing explanation
Fig. 1 is the system block diagram of the communication system that multi-core communication equipment of the present invention and radius server form.
Embodiment
Below in conjunction with embodiment and accompanying drawing, describe technical scheme of the present invention in detail.
Multi-core communication equipment of the present invention comprises forwarding core and multiple operation core, each runs core and has the unique core number corresponding with it, wherein, run core when assembling RADIUS request message, revised by the core of this operation core number indicates in the field of test serial number in the heading of this message, then this RADIUS request message is sent to forwarding core; Forward core for forwarding the RADIUS request message running core and send, and receive corresponding response message, and extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
Between multi-core communication equipment of the present invention and radius server in message interaction method, first each operation core of multi-core communication equipment assembles RADIUS request message respectively, the core of himself number is revised and is indicated in the field of test serial number in the heading of its RADIUS request message assembled separately by each operation core respectively, the RADIUS request message assembled is sent to forwarding core by each operation core again, forward core then receive and forward to radius server the RADIUS request message that each operation core sends, radius server is again according to the RADIUS request message received, reply corresponding response message to multi-core communication equipment, when forwarding core and receiving response message, extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
Embodiment
Multi-core communication equipment in the embodiment of the present invention, its place different from prior art is: the multiple operation cores forwarding core and have, each runs core and has the unique core number corresponding with it, wherein, run core when assembling RADIUS request message, revised by the core of this operation core number indicates in the field of test serial number in the heading of this message, this field is packetidentifier field, concrete method can be: predefined last n position (bit) in the field indicating test serial number in the heading of this message is replaced with the core number of this operation core, n is positive integer, this n position (bit) can pre-define according to the quantity running core, again this RADIUS request message is sent to forwarding core, forward core for forwarding the RADIUS request message running core and send, and receive corresponding response message, and extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, be specifically as follows: forward core and indicate in the field of test serial number from the heading extracting this response message, obtain wherein predefined last n position (bit), obtain the core number of corresponding operation core, then this response message is transmitted to this core number corresponding operation core.
As shown in Figure 1 by the communication system that this multi-core communication equipment and radius server form, then when it runs, treatment step is as follows:
Each operation core of step 1, multi-core communication equipment assembles RADIUS request message respectively, and the core of himself number is revised and indicated in the field of test serial number in the heading of its RADIUS request message assembled separately by each operation core respectively.
In this step, each operation core respectively the core of himself number is revised to indicate in the heading of its RADIUS request message assembled separately method in the field of test serial number for: each core that runs will indicate in the heading of its RADIUS request message assembled separately that predefined last n position (bit) in the field of test serial number replaces with the core number of himself respectively, n is positive integer, can pre-define according to the quantity running core, core is run if any 4, last 2bit can be decided to be core number, if there are 8 to run core, last 3bit can be decided to be core number.The field of this mark test serial number is packet identifier field.
The RADIUS request message assembled is sent to forwarding core by step 2, each core that runs.
Step 3, forward core and receive and forward to radius server the RADIUS request message that each operation core sends.
Step 4, radius server, according to the RADIUS request message received, reply corresponding response message to multi-core communication equipment.
This step can comprise following concrete steps:
Step 41, radius server receive RADIUS request message, extract the field indicating test serial number in the heading of this RADIUS request message, are filled in corresponding response message; Radius server indicates the field of test serial number in the heading extracting this RADIUS request message, when being filled in corresponding response message, can not revise the field of the mark test serial number that this extracts.
The response message obtained is sent to multi-core communication equipment by step 42, radius server.
Step 5, forwarding core receive response message, extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
In this step, forwarding the method that core obtains the core number of corresponding operation core is: forward core and indicate in the field (i.e. packet identifier field) of test serial number from the heading extracting this response message, obtain wherein predefined last n position (bit), obtain the core number of corresponding operation core.
Claims (10)
1. multi-core communication equipment, comprises and forwards core and multiple operation core, and each operation core described has the unique core number corresponding with it, it is characterized in that,
Described operation core, when assembling RADIUS request message, revising the core of this operation core number and indicating in the field of test serial number in the heading of this message, then this RADIUS request message is sent to forwarding core;
Described forwarding core, for forwarding the RADIUS request message running core and send, and receive corresponding response message, and extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
2. multi-core communication equipment as claimed in claim 1, is characterized in that, indicate that the field of test serial number is message identification packet identifier field in described heading.
3. multi-core communication equipment as claimed in claim 1 or 2, it is characterized in that, the core of this operation core number is revised and indicate that the method in the field of test serial number is in the heading of this message by described operation core: predefined last n position in the field indicating test serial number in the heading of this message is replaced with the core number of this operation core, and n is positive integer.
4. multi-core communication equipment as claimed in claim 3, is characterized in that, described predefined last n position pre-defines according to the quantity running core.
5. multi-core communication equipment as claimed in claim 3, it is characterized in that, the method that described forwarding core obtains the core number of corresponding operation core is: forward core and indicate in the field of test serial number from the heading extracting this response message, obtain wherein predefined last n position, obtain the core number of corresponding operation core.
6. message interaction method between multi-core communication equipment and radius server, is characterized in that, comprise the following steps:
Each operation core of step 1, multi-core communication equipment assembles RADIUS request message respectively, and the core of himself number is revised and indicated in the field of test serial number in the heading of its RADIUS request message assembled separately by each operation core respectively;
The RADIUS request message assembled is sent to forwarding core by step 2, each core that runs;
Step 3, forward core and receive and forward to radius server the RADIUS request message that each operation core sends;
Step 4, radius server, according to the RADIUS request message received, reply corresponding response message to multi-core communication equipment;
Step 5, forwarding core receive response message, extract the field indicating test serial number in the heading of this response message, therefrom obtain the core number of corresponding operation core, this response message is transmitted to this core number corresponding operation core.
7. message interaction method between multi-core communication equipment and radius server as claimed in claim 6, it is characterized in that, in step 1, described each operation core respectively the core of himself number is revised to indicate in the heading of its RADIUS request message assembled separately method in the field of test serial number for: each core that runs will indicate in the heading of its RADIUS request message assembled separately that predefined last n position in the field of test serial number replaces with the core number of himself respectively, and n is positive integer.
8. message interaction method between multi-core communication equipment and radius server as claimed in claim 7, it is characterized in that, described predefined last n position bit pre-defines according to the quantity running core.
9. message interaction method between multi-core communication equipment and radius server as claimed in claim 7, it is characterized in that, in step 5, the method that described forwarding core obtains the core number of corresponding operation core is: forward core and indicate in the field of test serial number from the heading extracting this response message, obtain wherein predefined last n position, obtain the core number of corresponding operation core.
10. the multi-core communication equipment as described in claim 6 or 7 or 8 or 9 and message interaction method between radius server, it is characterized in that, step 4 comprises following concrete steps:
Step 41, radius server receive RADIUS request message, extract the field indicating test serial number in the heading of this RADIUS request message, are filled in corresponding response message;
The response message obtained is sent to multi-core communication equipment by step 42, radius server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854794.8A CN104539528B (en) | 2014-12-31 | 2014-12-31 | Multi-core communication equipment and its message interaction method between radius server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410854794.8A CN104539528B (en) | 2014-12-31 | 2014-12-31 | Multi-core communication equipment and its message interaction method between radius server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104539528A true CN104539528A (en) | 2015-04-22 |
CN104539528B CN104539528B (en) | 2017-12-22 |
Family
ID=52854997
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410854794.8A Active CN104539528B (en) | 2014-12-31 | 2014-12-31 | Multi-core communication equipment and its message interaction method between radius server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104539528B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111614794A (en) * | 2020-04-24 | 2020-09-01 | 南京南瑞继保工程技术有限公司 | Message transmission method and device, electronic equipment and storage medium |
CN112929277A (en) * | 2019-12-06 | 2021-06-08 | 华为技术有限公司 | Message processing method and device |
CN117891627A (en) * | 2024-03-14 | 2024-04-16 | 南京智联达科技有限公司 | Inter-core communication interaction system applied to energy storage cooperative control device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120033680A1 (en) * | 2009-06-22 | 2012-02-09 | Sandhya Gopinath | Systems and methods for receive and transmission queue processing in a multi-core architecture |
CN102549984A (en) * | 2009-05-05 | 2012-07-04 | 思杰系统有限公司 | Systems and methods for packet steering in a multi-core architecture |
CN102710497A (en) * | 2012-04-24 | 2012-10-03 | 汉柏科技有限公司 | Method and system for processing messages of multi-core and multi-thread network equipment |
US20140321469A1 (en) * | 2009-06-22 | 2014-10-30 | Citrix Systems, Inc. | Systems and methods for retaining source ip in a load balancing mutli-core environment |
-
2014
- 2014-12-31 CN CN201410854794.8A patent/CN104539528B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102549984A (en) * | 2009-05-05 | 2012-07-04 | 思杰系统有限公司 | Systems and methods for packet steering in a multi-core architecture |
US20120033680A1 (en) * | 2009-06-22 | 2012-02-09 | Sandhya Gopinath | Systems and methods for receive and transmission queue processing in a multi-core architecture |
US20140321469A1 (en) * | 2009-06-22 | 2014-10-30 | Citrix Systems, Inc. | Systems and methods for retaining source ip in a load balancing mutli-core environment |
CN102710497A (en) * | 2012-04-24 | 2012-10-03 | 汉柏科技有限公司 | Method and system for processing messages of multi-core and multi-thread network equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112929277A (en) * | 2019-12-06 | 2021-06-08 | 华为技术有限公司 | Message processing method and device |
CN112929277B (en) * | 2019-12-06 | 2024-03-05 | 华为云计算技术有限公司 | Message processing method and device |
CN111614794A (en) * | 2020-04-24 | 2020-09-01 | 南京南瑞继保工程技术有限公司 | Message transmission method and device, electronic equipment and storage medium |
CN117891627A (en) * | 2024-03-14 | 2024-04-16 | 南京智联达科技有限公司 | Inter-core communication interaction system applied to energy storage cooperative control device |
CN117891627B (en) * | 2024-03-14 | 2024-05-14 | 南京智联达科技有限公司 | Inter-core communication interaction system applied to energy storage cooperative control device |
Also Published As
Publication number | Publication date |
---|---|
CN104539528B (en) | 2017-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243576A (en) | Intelligent home system and user terminal and device terminal binding method of intelligent home system | |
BR112015019855A2 (en) | SYSTEM FOR SENDING AND RECEIVING MESSAGES IN AN ELECTRICAL DISTRIBUTION NETWORK, AND METHOD FOR INFERRING SCHEMATIC AND TOPOLOGICAL PROPERTIES OF AN ELECTRICAL DISTRIBUTION NETWORK | |
MY187306A (en) | Parking management method, server, user terminal and system | |
MX2017004936A (en) | Communication between devices of a neighbor aware network. | |
CL2018001254A1 (en) | Eu, mme, eu communication control method and mme communication control method. | |
CN109388417B (en) | Communication protocol updating method, system and terminal equipment | |
WO2011150369A3 (en) | Methods, systems and computer readable media for utilizing a consumer opt-in management system | |
MX2016009433A (en) | Method for processing network service faults, service management system and system management module. | |
ES2812765T3 (en) | Apparatus, system and method for processing application log data | |
EA201791340A1 (en) | INTERFACE, SYSTEM, METHOD AND COMPUTER SOFTWARE PRODUCT FOR ELECTRONIC TRANSMISSION MANAGEMENT | |
GB2540329A (en) | Methods and systems for forwarding data | |
CN105407073A (en) | Flow table aging method, equipment and system based on OpenFlow protocol | |
CN104539528A (en) | Multi-core communication equipment and method for message interaction between multi-core communication equipment and RADIUS server | |
JP2013246447A5 (en) | ||
JP2014057373A5 (en) | ||
GB2555341A (en) | Systems and methods for utilizing webpage scripts to segment client sessions of a website | |
MX2018001875A (en) | System and method for providing control information for application-specific congestion control for data communication. | |
MX2016004112A (en) | Method, device and system for transmitting information. | |
CN105761003A (en) | CMDB-based automatic registration asset system and implementation method thereof | |
CN103731332B (en) | Master-slave communication method and OLT system | |
CN102404152A (en) | Method and equipment for identifying response messages | |
PH12016500560A1 (en) | Communication system, service-sharing device, mobile-network node device, and data communication method | |
CN104869531B (en) | Group member updating method and device | |
CN105260199A (en) | Method and device for deploying and managing electronic devices | |
CN105049437A (en) | Method for filtering network application layer data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |