CN100568992C - Realize the method for polycaryon processor correspondence with foreign country in the distributed system - Google Patents

Realize the method for polycaryon processor correspondence with foreign country in the distributed system Download PDF

Info

Publication number
CN100568992C
CN100568992C CNB2007100300504A CN200710030050A CN100568992C CN 100568992 C CN100568992 C CN 100568992C CN B2007100300504 A CNB2007100300504 A CN B2007100300504A CN 200710030050 A CN200710030050 A CN 200710030050A CN 100568992 C CN100568992 C CN 100568992C
Authority
CN
China
Prior art keywords
message
chain
command
polycaryon processor
distributor
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.)
Expired - Fee Related
Application number
CNB2007100300504A
Other languages
Chinese (zh)
Other versions
CN101146280A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100300504A priority Critical patent/CN100568992C/en
Publication of CN101146280A publication Critical patent/CN101146280A/en
Application granted granted Critical
Publication of CN100568992C publication Critical patent/CN100568992C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention aims to provide the method that realizes the polycaryon processor correspondence with foreign country in a kind of distributed system, polycaryon processor receives message and comprises step: polycaryon processor veneer chain of command network interface 101 receives the message that other veneers send, and will receive message according to sharing memory pointer and move in the shared drive 103; Distributor 102 extracts the identifying information that receives message in the polycaryon processor simultaneously; Distributor 102 is judged with the chain of command of its coupling according to the identifying information that receives message and is examined, and authorizes to the chain of command of coupling and send notification message, carries the sharing memory pointer of described reception message in the notification message; After the chain of command nuclear of coupling is received described notification message, according to the pointer in the notification message described reception message is moved on to it from shared drive 103 and receive in the formation, take out reception message and handle.This method is suitable for chain of command simultaneously a plurality of network interfaces, and favorable expansibility is arranged.

Description

Realize the method for polycaryon processor correspondence with foreign country in the distributed system
Technical field
The present invention relates to field of processors, more particularly, relate to the method for polycaryon processor correspondence with foreign country in a kind of distributed mobile communication system.
Background technology
Along with the fast development of mobile communication technology, use the terminal use of mobile communication more and more.Speech quality and the bandwidth when using data service when guaranteeing that the terminal use uses speech business, mobile operator is also more and more higher to the extendible capacity sexual demand of mobile system equipment.In order to satisfy the extendible capacity demand, mobile communication equipment adopts distributed system architecture more at present.
For the mobile communication system that adopts distributed system architecture, the system equipment majority is made of interface board, medium face disposable plates and chain of command disposable plates.Interface board is responsible for external messaging and separated media face message and chain of command signaling message.Giving medium face disposable plates for medium face message by medium hand-deliver draping handles.The chain of command signaling message sends to control panel by interface board chain of command CPU by the chain of command switching network and handles.For the access capability of equipment is provided, a lot of mobile communication equipment interface boards begin to adopt the polycaryon processor with concentrated a plurality of nuclears on high handling property and a slice chip to realize, wherein polycaryon processor part nuclear moves commercial operation system, communicate with transmitting signaling forwards and interactive sessions as other chain of command disposable plates in chain of command CPU and the system, part nuclear carries out the processing of medium face in addition.Because signaling message accounts for the 10%-20% of medium face message in the mobile communication system, the strong and concurrent session of medium face disposal ability is also many, therefore needs to use a plurality of nuclears to examine as chain of command.
When many chains of command are examined the operation system in the polycaryon processor SMP (Symmetric Multiprocessing can be arranged, the symmetry multiprocessing) pattern, AMP (AsymmetricMultiprocessing, asymmetric multiprocessing) pattern and BMP (Bound multiprocessing, binding multiprocessing) pattern.Present most embedded OS is not also supported the SMP pattern, and therefore many chain of command nuclears are gone back the most AMP of employing patterns, i.e. operating system is overlapped in each nuclear operation one, as a separate CPU correspondence with foreign country.Under normal circumstances, in the chain of command nuclear ethernet driver need one independently network interface could with other single board communication, but some veneers in distributed system are because backboard restriction or the restriction of switching network port number, and equipment cost is considered, require the polycaryon processor veneer that a chain of command network interface can only be arranged, therefore just have the problem of a plurality of chain of command nuclears by a network interface and other single board communication.
Number of patent application is that 200510087321.0 Chinese patent application discloses " communication method between cores of polycaryon processor and device in the embedded real-time operating system ".This patent weak point is main to describe internuclear communication means in the device, and not in the polycaryon processor as the communication means of chain of command nuclear with other veneers, autgmentability is bad, is not suitable for using in the system equipment that adopts distributed structure/architecture.
Summary of the invention
The technical problem that the present invention solves has provided the method that realizes the polycaryon processor correspondence with foreign country in a kind of distributed system, solving in distributed system, when the polycaryon processor veneer has a plurality of chains of command nuclears and many chains of command nuclear operating system to be operated in the AMP pattern having only a control network interface can't with the problem of other single board communications.
For addressing the above problem, method provided by the invention comprises:
The method polycaryon processor receives message and comprises step:
A polycaryon processor veneer chain of command network interface (101) receives the message that other veneers send, and will receive message according to sharing memory pointer and move in the shared drive (103); Distributor (102) extracts the identifying information that receives message in the polycaryon processor simultaneously;
B distributor 102 is judged with the chain of command of its coupling according to the identifying information that receives message and is examined, and authorizes to the chain of command of coupling and send notification message, carries the sharing memory pointer that receives message in the notification message;
After the chain of command of C coupling is examined notified message, will receive message according to the pointer in the notification message and from shared drive 103, move on in its reception formation, and take out reception message and handle;
The polycaryon processor transmission packet is drawn together step in the method:
D chain of command nuclear directly will send message and put into shared drive (103), send the MAC device of ordering to chain of command network interface (101), and the MAC device is received and will be sent message after the order and send.
Above-mentioned method, wherein, before the steps A, distributed system is carried out initialization, comprising:
Polycaryon processor distributes deposits the shared drive that receives message, sharing memory pointer is put into the descriptor of chain of command network interface (101) MAC device;
For chain of command nuclear divides the IP address that is used in correspondence with foreign country;
Above-mentioned method, wherein, in the steps A, if distributor (103) is a hardware cell in the polycaryon processor, then the MAC device notifies distributor to have the message of reception to arrive automatically; Otherwise a chain of command nuclear is as distributor in the employing polycaryon processor.
Above-mentioned method, wherein, the identifying information that receives message is purpose IP address.
Above-mentioned method, wherein, step B is specially:
The B1 distributor judges that whether purpose IP address is identical with the chain of command nuclear IP address that receives match messages, if inequality, then directly abandons reception message;
If B2 is identical, and distributor is authorized to the chain of command of coupling and sent notification message, carries the sharing memory pointer that receives message in the notification message.
Above-mentioned method, wherein, among the step C, the chain of command of coupling nuclear taking-up reception message is handled and is specially:
The ethernet driver poll receives formation in the coupling chain of command nuclear, takes out the reception message dispatch and handles for corresponding process or task.
Above-mentioned method wherein, receives formation by the storage allocation foundation in its heap of chain of command nuclear.
Compared with prior art, what the present invention realized is many chain of command nuclears correspondence with foreign country method when having only a chain of command network interface in the polycaryon processor, what this method was used is virtual Driving technique, can allow each chain of command nuclear think that all an independently chain of command network interface is arranged oneself, and do not need ethernet driver in the retouching operation system, avoid many chain of command nuclears must use the defective of many chains of command network interface, so not only can reduce equipment cost, and the handled easily system from the AMP mode transition to the SMP pattern, favorable expansibility is arranged.This method is suitable for chain of command simultaneously a plurality of network interfaces, and does not need to revise any code.
Description of drawings
Fig. 1 is the scheme schematic diagram that the embodiment of the invention is used;
Fig. 2 is that chain of command is checked outer communications reception flow chart among the method embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is elaborated.
Fig. 1 is the scheme schematic diagram that the embodiment of the invention is used.Comprise chain of command network interface 101 nuclear and polycaryon processors on the polycaryon processor veneer, polycaryon processor comprises distributor 102, shared drive 103, receives formation 104 and chain of command nuclear 105.Wherein polycaryon processor veneer chain of command network interface is used to receive the message that other veneers send, and the message that polycaryon processor is externally sent sends.The polycaryon processor distributor can be hardware cell, and the hardware distributor needs configuration messages extraction, classification and distribution rules; If there is not the hardware distributor, a chain of command is examined as distributor in the polycaryon processor, simultaneously configuration messages extraction, classification and distribution rules.Distributor 102 is used for judging chain of command nuclear with its coupling according to the identifying information that receives message, and the chain of command of Xiang Yuqi coupling is authorized and sent notification message, carries the sharing memory pointer of message in the notification message.Shared drive 103 is to be used in by the polycaryon processor branch to deposit reception message.Receive formation and set up, examine corresponding one by one with chain of command by chain of command nuclear 105 storage allocation in its heap.Chain of command nuclear 105 is used for receiving notice message, will receive message according to the pointer in the notification message and move on to from shared drive 103 in its reception formation, takes out reception message and handles; And, being used for directly sending message and putting into shared drive 103, the MAC device of chain of command network interface 101 is given in the concurrent order of losing one's life, and the MAC device after receiving order sends message.
Fig. 2 is that chain of command is checked outer communications reception flow chart among the method embodiment of the present invention.From the specific embodiment of the invention as can be known, because two chain of command nuclears work alone, therefore each chain of command nuclear still can utilize existing Ethernet driver in the operating system all as a chain of command network interface independently when sending message, does not need special processing.Therefore below among specific descriptions the present invention chain of command check outer communications reception flow process.
Step 201, system start-up, the polycaryon processor veneer begins to power on, and carries out system initialization work, and system initialization mainly comprises:
Polycaryon processor distributes the shared drive 103 of depositing message, sharing memory pointer is put into the descriptor of chain of command network interface 101MAC device;
Be used in the IP address of correspondence with foreign country in 105 minutes for chain of command nuclear;
Chain of command nuclear 105 storage allocation in its heap is set up reception formation 104;
If distributor is a hardware cell, then configuration messages extraction, classification and distribution rules.
Step 202, control network interface 101 has the message of reception to arrive, and will receive message according to the pointer of depositing in advance by the DMA engine and move in the shared drive 103;
Step 203 if polycaryon processor plate distributor is a hardware distributor 102, is then extracted purpose IP address according to the rule of configuration from the head that receives message.If be software distributor 102, software rules then be set from the head that receives message, extract purpose IP address.
Step 204, distributor judge whether purpose IP address is identical with the IP address of chain of command nuclear 105, if all different, then be invalid message, change step 205 and directly abandon.
Step 206, if purpose IP address is identical with any one chain of command nuclear IP that chain of command is examined in 105, then the distributor 102 notice chain of command nuclear 105 that sends a notification message has the message of reception to arrive, and will comprise the pointer in the shared drive 103 of leaving in of message in the notification message.
After step 207, chain of command are examined 105 notified message, from notification message, take out the sharing memory pointer that receives message, then message is copied to it and receive in the formation 104 from shared drive 103.
Step 208, chain of command nuclear 105 utilize the continuous poll of the task of guarding in the ethernet driver to receive the reception formation 104 of message, if reception message is arranged in the formation, then take out, and are distributed to this then according to type of message and examine corresponding task or process processing.

Claims (7)

1, realize the method for polycaryon processor correspondence with foreign country in the distributed system, it is characterized in that polycaryon processor reception message comprises step in the described method:
A polycaryon processor veneer chain of command network interface (101) receives the message that other veneers send, and according to sharing memory pointer described reception message is moved in the shared drive (103); Distributor (102) extracts the identifying information of described reception message in the while polycaryon processor;
The described distributor of B (102) is judged with the chain of command of its coupling according to the identifying information of described reception message and is examined, and authorizes to the chain of command of described coupling and send notification message, carries the sharing memory pointer of described reception message in the described notification message;
After the chain of command nuclear of the described coupling of C is received described notification message, according to the pointer in the described notification message described reception message is moved on to it from shared drive (103) and receive in the formation, take out described reception message and handle;
The polycaryon processor transmission packet is drawn together step in the described method:
D chain of command nuclear directly will send message and put into shared drive (103), send the MAC device of order to veneer chain of command network interface (101), and described MAC device after receiving described order sends described transmission message.
2, method according to claim 1 is characterized in that, before the steps A, distributed system is carried out initialization, comprising:
Polycaryon processor distributes the shared drive of depositing message, sharing memory pointer is put into the descriptor of veneer chain of command network interface (101) MAC device;
For chain of command nuclear divides the IP address that is used in correspondence with foreign country.
3, method as claimed in claim 2 is characterized in that, in the steps A, if distributor (103) is a hardware cell in the polycaryon processor, then described MAC device notifies distributor to have described reception message to arrive automatically; Otherwise a chain of command nuclear is as distributor in the employing polycaryon processor.
4, method according to claim 3 is characterized in that, the identifying information of described reception message is purpose IP address.
5, method according to claim 4 is characterized in that, step B is specially:
The B1 distributor judges that whether described purpose IP address is identical with the chain of command nuclear IP address of described reception match messages, if inequality, then directly abandons described reception message;
If B2 is identical, and described distributor is authorized to the chain of command of described coupling and sent notification message, carries the sharing memory pointer of described reception message in the described notification message.
6, method according to claim 5 is characterized in that, among the step C, the described reception message of the chain of command of described coupling nuclear taking-up is handled and is specially:
The described reception formation of ethernet driver poll in the described coupling chain of command nuclear is taken out described reception message dispatch and is handled for corresponding process or task.
7, method according to claim 6 is characterized in that, described reception formation is by the storage allocation foundation in its heap of described chain of command nuclear.
CNB2007100300504A 2007-11-27 2007-11-27 Realize the method for polycaryon processor correspondence with foreign country in the distributed system Expired - Fee Related CN100568992C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100300504A CN100568992C (en) 2007-11-27 2007-11-27 Realize the method for polycaryon processor correspondence with foreign country in the distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100300504A CN100568992C (en) 2007-11-27 2007-11-27 Realize the method for polycaryon processor correspondence with foreign country in the distributed system

Publications (2)

Publication Number Publication Date
CN101146280A CN101146280A (en) 2008-03-19
CN100568992C true CN100568992C (en) 2009-12-09

Family

ID=39208521

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100300504A Expired - Fee Related CN100568992C (en) 2007-11-27 2007-11-27 Realize the method for polycaryon processor correspondence with foreign country in the distributed system

Country Status (1)

Country Link
CN (1) CN100568992C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104487B (en) * 2009-12-21 2014-12-17 上海贝尔股份有限公司 Message processing method and equipment
US9918270B2 (en) 2011-04-18 2018-03-13 Ineda Systems Inc. Wireless interface sharing
US10496437B2 (en) * 2017-11-14 2019-12-03 International Business Machines Corporation Context switch by changing memory pointers
CN110781128A (en) * 2019-11-05 2020-02-11 武汉虹信通信技术有限责任公司 Control method and control adapter device of embedded equipment
CN111400214B (en) * 2020-02-27 2021-06-18 深圳震有科技股份有限公司 Method for realizing dual-core shared network port, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN101146280A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN101197851B (en) Method and system for implementing control of plane centralized type data plane distribution
CN100471180C (en) Method, device and system for transfer news
CN101202707B (en) Method for transmitting message of high speed single board, field programmable gate array and high speed single board
CN100568992C (en) Realize the method for polycaryon processor correspondence with foreign country in the distributed system
CN102546778B (en) Agent-based cross-platform wireless network access controller multi-board communication method
CN101262366B (en) Debugging method, system and distributed device for target single board
CN101894092B (en) Multi-core CPU and inter-core communication method thereof
CN105656808A (en) Message processing method and system thereof
CN102025616A (en) Method, device and switch for realizing BFD (Bidirectional Forwarding Detection)
CN101984573A (en) Method and system for distributed realization of LACP standard state machine
CN104123265A (en) Method and system for communication among multiple kernels
CN100432975C (en) Architecture of interface target machine for miniature computer system and data transmitting method
CN107147543A (en) A kind of socket communication means of server towards pc client
CN107688512A (en) One kind optimization virtual-machine data backup method and system
CN110704250A (en) Hot backup device of distributed system
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN100407619C (en) Method for implementing switching between main and standby port by network processor
CN102316035B (en) Foreground and background communication and data safety processing method in cluster router system
CN104601412B (en) A kind of independent test network system and its method for building up
CN1964286B (en) A master control device with double CPU
CN102231126A (en) Method and system for implementing inter-core backup in multi-core processor
CN105471718B (en) A kind of implementation method of full duplex message queue
CN103765837B (en) The message processing method of multi-CPU and system, crosspoint, veneer
CN102143072A (en) Method for fluid control configuration and network equipment
CN102215129B (en) The external method of business module, apparatus and system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091209

Termination date: 20161127

CF01 Termination of patent right due to non-payment of annual fee