CN104539528B - Multi-core communication equipment and its message interaction method between radius server - Google Patents
Multi-core communication equipment and its message interaction method between radius server Download PDFInfo
- Publication number
- CN104539528B CN104539528B CN201410854794.8A CN201410854794A CN104539528B CN 104539528 B CN104539528 B CN 104539528B CN 201410854794 A CN201410854794 A CN 201410854794A CN 104539528 B CN104539528 B CN 104539528B
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to data communication technology.The present invention solves the problems, such as existing not necessarily can correctly to interact with message between radius server in multi-core communication equipment, there is provided a kind of multi-core communication equipment and its message interaction method between radius server, its technical scheme can be summarized as:Multi-core communication equipment includes forwarding core and multiple operation cores, and operation core is when assemble RADIUS request message, during the core number of the operation core is changed into the heading of the message in the field of mark test serial number, then the RADIUS request message is sent into forwarding core;Forwarding core is used for the RADIUS request message for forwarding operation core to send, and response message corresponding to receiving, and the field for indicating test serial number in the heading of the response message is extracted, the core number of corresponding operation core is therefrom obtained, the response message is transmitted to corresponding to the core number and runs core.The beneficial effects of the invention are as follows:Ensure proper communication, suitable for multi-core communication equipment.
Description
Technical field
The present invention relates to data communication technology, more particularly to multi-core communication equipment and technology.
Background technology
When communication equipment is multicore architecture, it is lifting means performance, makes full use of polycaryon processor computing capability, each
Core is all isolated operation, and for multi-core communication equipment, it can be divided into management core, operation core and the forwarding bulk of core three, its
In, management core is responsible for being managed for configuration, and operation core is responsible for the processing of related data, and forwards core to be responsible for the transmitting-receiving of message, and
In multi-core communication equipment, operation core generally is multiple, and when equipment and RADIU server communications, message is in slave unit
One operation core is assembled, then issues radius server, but the response message for needing to ensure radius server also arrives this
Operation core on operate, otherwise, because data are inconsistent in different IPs, can cause communication malfunction, therefore multi-core communication equipment with
When radius server interacts, it is necessary to ensure that the corresponding response message of the RADIUS messages sent out is all transported by identical
Row core is handled, and so as to ensure proper communication, this, which is one, needs to solve the problems, such as.
The content of the invention
The purpose of the present invention is exactly to overcome at present that message not necessarily can between multi-core communication equipment and radius server
The shortcomings that correct interaction, there is provided a kind of multi-core communication equipment and its message interaction method between radius server.
The present invention solves its technical problem, and the technical scheme of use is multi-core communication equipment, including forwarding core and multiple fortune
Row core, each described operation core have corresponding unique core number, it is characterised in that
The operation core, when assembling RADIUS request message, the core number of the operation core is changed into the message into the message
In the field for indicating test serial number in head, then the RADIUS request message is sent to forwarding core;
The forwarding core, for forwarding the RADIUS request message for running core and sending, and response message corresponding to reception,
And the field for indicating test serial number in the heading of the response message is extracted, the core number of corresponding operation core is therefrom obtained, this is rung
Answer message to be transmitted to corresponding to the core number and run core.
Specifically, the field for indicating test serial number in the heading is message identification packet identifier fields.
Further, the field of test serial number is indicated during the core number by the operation core is changed into the heading of the message
In method be:The last n positions pre-defined in the field that test serial number will be indicated in the heading of the message replace with the fortune
The core number of row core, n are positive integer.
Specifically, the pre-defined last n positions are pre-defined according to the quantity of operation core.
Further, the method for the core number of the corresponding operation core of the forwarding core acquisition is:Core is forwarded from the extraction response
In the field for indicating test serial number in the heading of message, wherein pre-defined last n positions are obtained, obtain corresponding operation core
Core number.
Message interaction method between multi-core communication equipment and radius server, it is characterised in that comprise the following steps:
Step 1, each operation core of multi-core communication equipment assemble RADIUS request message respectively, it is each run core respectively by its from
The core number of body indicates in changing into the heading of its RADIUS request message each assembled in the field of test serial number;
The RADIUS request message assembled is sent to forwarding core by step 2, each operation core;
The RADIUS request message that step 3, forwarding core are received and sent to each operation core of radius server forwarding;
Step 4, radius server reply corresponding response message to multinuclear according to the RADIUS request message received
Communication equipment;
Step 5, forwarding core receive response message, extract the word for indicating test serial number in the heading of the response message
Section, the core number of corresponding operation core is therefrom obtained, the response message is transmitted to corresponding to the core number and runs core.
Specifically, in step 1, the core number of its own is changed what is each assembled into it by each operation core respectively
Indicate that the method in the field of test serial number is in the heading of RADIUS request message:Each operation core is respectively by its respective institute's group
Indicate that the last n positions pre-defined in the field of test serial number replace with its own in the heading of the RADIUS request message of dress
Core number, n is positive integer.
Further, the pre-defined last n positions are pre-defined according to the quantity of operation core.
Specifically, in step 5, the method that the forwarding core obtains the core number of corresponding operation core is:Forward core should from extraction
In the field for indicating test serial number in the heading of response message, wherein pre-defined last n positions are obtained, are accordingly run
The core number of core.
Further, step 4 includes step in detail below:
Step 41, radius server receive RADIUS request message, extract the heading of the RADIUS request message
The field of middle mark test serial number, is filled with into corresponding response message;
Obtained response message is sent to multi-core communication equipment by step 42, radius server.
The invention has the advantages that pass through above-mentioned multi-core communication equipment and its message interaction side between radius server
Method, it can ensure to forward core to be all sent to correctly operation core in transmitted response message, ensure proper communication.
Brief description of the drawings
Fig. 1 is the system block diagram of multi-core communication equipment of the present invention and the communication system of radius server composition.
Embodiment
With reference to embodiment and accompanying drawing, technical scheme is described in detail.
The multi-core communication equipment of the present invention includes forwarding core and multiple operation cores, and each operation core has corresponding
Unique core number, wherein, operation core when assembling RADIUS request message, the core number of the operation core is changed into the report into the message
In the field for indicating test serial number in literary head, then the RADIUS request message is sent to forwarding core;Core is forwarded to be used to forward fortune
The RADIUS request message that row core is sent, and response message corresponding to reception, and extract the heading acceptance of the bid of the response message
The field of will test serial number, therefrom obtains the core number of corresponding operation core, and the response message is transmitted into operation corresponding to the core number
Core.
Between multi-core communication equipment of the present invention and radius server in message interaction method, multi-core communication equipment is each first
Operation core assembles RADIUS request message respectively, and the core number of its own is changed what is each assembled into it by each core that runs respectively
In the field for indicating test serial number in the heading of RADIUS request message, each RADIUS request report that runs core and will assemble again
Text is sent to forwarding core, the RADIUS request report that forwarding core is then received and sent to each operation core of radius server forwarding
Text, radius server reply corresponding response message and give multi-core communication equipment further according to the RADIUS request message received,
When forwarding core to receive response message, the field for indicating test serial number in the heading of the response message is extracted, is therefrom obtained
The core number of corresponding operation core, the response message is transmitted to corresponding to the core number and runs core.
Embodiment
Multi-core communication equipment in the embodiment of the present invention, it is from different place in the prior art:Forward core and its institute
The multiple operation cores having, each operation core have corresponding unique core number, wherein, operation core is in assembling RADIUS
During request message, in the field that test serial number is indicated during the core number of the operation core is changed into the heading of the message, the field
As packet identifier fields, specific method can be:The word of test serial number will be indicated in the heading of the message
The last n positions (bit) pre-defined in section replace with the core number of the operation core, and n is positive integer, and the n positions (bit) can be according to fortune
The quantity of row core is pre-defined, then the RADIUS request message is sent into forwarding core;Core is forwarded to be used to forward operation core
The RADIUS request message sent, and response message corresponding to reception, and extract and indicate report in the heading of the response message
The field of literary sequence number, the core number of corresponding operation core is therefrom obtained, is specifically as follows:Core is forwarded from the message for extracting the response message
In the field for indicating test serial number in head, wherein pre-defined last n positions (bit) are obtained, obtain the core number of corresponding operation core,
The response message is transmitted to corresponding to the core number again and runs core.
As shown in Figure 1 by the multi-core communication equipment and the communication system of radius server composition, then handled when it runs
Step is as follows:
Step 1, each operation core of multi-core communication equipment assemble RADIUS request message respectively, it is each run core respectively by its from
The core number of body indicates in changing into the heading of its RADIUS request message each assembled in the field of test serial number.
In this step, each core that runs respectively changes the core number of its own the RADIUS request message each assembled into it
Heading in indicate test serial number field in method be:The RADIUS request that each operation core is respectively each assembled it
Indicate that the last n positions (bit) pre-defined in the field of test serial number replace with the core number of its own, n in the heading of message
It for positive integer, can be pre-defined according to the quantity of operation core, if any 4 operation cores, last 2bit can be set to core number,
If 8 operation cores, last 3bit can be set to core number.The field of the mark test serial number is packet
Identifier fields.
The RADIUS request message assembled is sent to forwarding core by step 2, each operation core.
The RADIUS request message that step 3, forwarding core are received and sent to each operation core of radius server forwarding.
Step 4, radius server reply corresponding response message to multinuclear according to the RADIUS request message received
Communication equipment.
This step can include step in detail below:
Step 41, radius server receive RADIUS request message, extract the heading of the RADIUS request message
The field of middle mark test serial number, is filled with into corresponding response message;The RADIUS please in extraction for radius server
The field for indicating test serial number in the heading of message is sought, when being filled with into corresponding response message, the institute will not be changed
The field of the mark test serial number of extraction.
Obtained response message is sent to multi-core communication equipment by step 42, radius server.
Step 5, forwarding core receive response message, extract the word for indicating test serial number in the heading of the response message
Section, the core number of corresponding operation core is therefrom obtained, the response message is transmitted to corresponding to the core number and runs core.
In this step, the method that forwarding core obtains the core number of corresponding operation core is:Core is forwarded from extracting the response message
In the field (i.e. packet identifier fields) for indicating test serial number in heading, wherein pre-defined last n is obtained
Position (bit), obtain the core number of corresponding operation core.
Claims (9)
1. multi-core communication equipment, including forwarding core and multiple operation cores, each described operation core have it is corresponding only
Core No. one, it is characterised in that
The operation core, when assembling RADIUS request message, the core number of the operation core is changed into the heading of the message
In the field for indicating test serial number, then the RADIUS request message is sent to forwarding core;
The forwarding core, for forwarding the RADIUS request message for running core and sending, and response message corresponding to reception, and carry
The field for indicating test serial number in the heading of the response message is taken, the core number of corresponding operation core is therefrom obtained, the response is reported
Text is transmitted to corresponding to the core number and runs core.
2. multi-core communication equipment as claimed in claim 1, it is characterised in that indicate the field of test serial number in the heading
For message identification packet identifier fields.
3. multi-core communication equipment as claimed in claim 1 or 2, it is characterised in that the core that runs is by the core number of the operation core
Indicate that the method in the field of test serial number is in changing into the heading of the message:Message will be indicated in the heading of the message
The last n positions pre-defined in the field of sequence number replace with the core number of the operation core, and n is positive integer.
4. multi-core communication equipment as claimed in claim 3, it is characterised in that the pre-defined last n positions are according to operation
The quantity of core is pre-defined.
5. multi-core communication equipment as claimed in claim 3, it is characterised in that the forwarding core obtains the core number of corresponding operation core
Method be:Core is forwarded to indicate from the heading for extracting the response message in the field of test serial number, it is wherein fixed in advance to obtain
The last n positions of justice, obtain the core number of corresponding operation core.
6. message interaction method between multi-core communication equipment and radius server, it is characterised in that comprise the following steps:
Step 1, each operation core of multi-core communication equipment assemble RADIUS request message respectively, it is each run core respectively by its own
Core number indicates in changing into the heading of its RADIUS request message each assembled in the field of test serial number;
The RADIUS request message assembled is sent to forwarding core by step 2, each operation core;
The RADIUS request message that step 3, forwarding core are received and sent to each operation core of radius server forwarding;
Step 4, radius server reply corresponding response message to multi-core communication according to the RADIUS request message received
Equipment, including step in detail below:
Step 41, radius server receive RADIUS request message, extract the heading acceptance of the bid of the RADIUS request message
The field of will test serial number, it is filled with into corresponding response message;
Obtained response message is sent to multi-core communication equipment by step 42, radius server;
Step 5, forwarding core receive response message, extract the field for indicating test serial number in the heading of the response message, from
Middle acquisition accordingly runs the core number of core, and the response message is transmitted to corresponding to the core number and runs core.
7. message interaction method between multi-core communication equipment as claimed in claim 6 and radius server, it is characterised in that step
In rapid 1, the core number of its own is changed the message into its RADIUS request message each assembled by each operation core respectively
Indicate that the method in the field of test serial number is in head:The RADIUS request message that each operation core is respectively each assembled it
Indicate that the last n positions pre-defined in the field of test serial number replace with the core number of its own in heading, n is positive integer.
8. message interaction method between multi-core communication equipment as claimed in claim 7 and radius server, it is characterised in that institute
Pre-defined last n positions are stated to be pre-defined according to the quantity of operation core.
9. message interaction method between multi-core communication equipment as claimed in claim 7 and radius server, it is characterised in that step
In rapid 5, the method that the forwarding core obtains the core number of corresponding operation core is:Core is forwarded from the heading for extracting the response message
In the field for indicating test serial number, wherein pre-defined last n positions are obtained, obtain the core number of corresponding operation core.
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 CN104539528A (en) | 2015-04-22 |
CN104539528B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112929277B (en) * | 2019-12-06 | 2024-03-05 | 华为云计算技术有限公司 | Message processing method and device |
CN111614794B (en) * | 2020-04-24 | 2022-09-23 | 南京南瑞继保工程技术有限公司 | Message transmission method and device, electronic equipment and storage medium |
CN117891627B (en) * | 2024-03-14 | 2024-05-14 | 南京智联达科技有限公司 | Inter-core communication interaction system applied to energy storage cooperative control device |
Citations (2)
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 |
CN102710497A (en) * | 2012-04-24 | 2012-10-03 | 汉柏科技有限公司 | Method and system for processing messages of multi-core and multi-thread network equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8018961B2 (en) * | 2009-06-22 | 2011-09-13 | Citrix Systems, Inc. | Systems and methods for receive and transmission queue processing in a multi-core architecture |
US8788570B2 (en) * | 2009-06-22 | 2014-07-22 | Citrix Systems, Inc. | Systems and methods for retaining source IP in a load balancing multi-core environment |
-
2014
- 2014-12-31 CN CN201410854794.8A patent/CN104539528B/en active Active
Patent Citations (2)
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 |
CN102710497A (en) * | 2012-04-24 | 2012-10-03 | 汉柏科技有限公司 | Method and system for processing messages of multi-core and multi-thread network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104539528A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103971687B (en) | Implementation of load balancing in a kind of speech recognition system and device | |
CN104539528B (en) | Multi-core communication equipment and its message interaction method between radius server | |
EP2437224A3 (en) | Online game system and method of data resource handling for an online game | |
CN106027379A (en) | Push message receiving processing method | |
WO2018019009A1 (en) | Data processing method and system, peripheral component interconnect express device and host | |
GB201209266D0 (en) | Method and system for communicating between devices | |
CN105183687A (en) | Time-sharing serial communication method and system | |
CN106330674A (en) | On-line information pushing system | |
CN106452894B (en) | Failure connecting detection method and apparatus | |
CN105262644A (en) | General test system based on protocol configuration and method | |
CN104483948B (en) | Stage multidimensional synchronous control system | |
CN103312823B (en) | A kind of cloud computing system | |
CN102780640B (en) | Method and device for realizing multilayer LM (loss measurement) in switching chip | |
TWI599255B (en) | Pilot configuration method and device | |
CN104615101B (en) | Stage multi-dimensional system synchronous control method | |
CN106155637B (en) | A kind of Multi-target machine parallel communication method based on redundance | |
CN104102568B (en) | A kind of multiple serial communication test system | |
CN104811422A (en) | Method and device for data transmission in industrial Ethernet | |
CN105871917A (en) | Transmission control protocol TCP connection scheduling method and device | |
CN103957048A (en) | Method for preventing wireless batch received and transmitted data loss through frame structure | |
CN102761486B (en) | A kind of mono-point-to-multipoint of GOOSE of low discreteness and multiple spot are to the receiving/transmission method of single-point | |
CN105245601A (en) | Data filtering method and data filtering system | |
CN104363184A (en) | JSON message processing method and system based on tuxedo communication mode | |
US10353846B2 (en) | Communication system with train bus architecture | |
CN104917704A (en) | Method and system for multiplexing 10GBase-R PCSs and 40GBase-R PCSs in the same architecture |
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 |