CN102662910A - Network interaction system based on embedded system and network interaction method - Google Patents

Network interaction system based on embedded system and network interaction method Download PDF

Info

Publication number
CN102662910A
CN102662910A CN2012100813582A CN201210081358A CN102662910A CN 102662910 A CN102662910 A CN 102662910A CN 2012100813582 A CN2012100813582 A CN 2012100813582A CN 201210081358 A CN201210081358 A CN 201210081358A CN 102662910 A CN102662910 A CN 102662910A
Authority
CN
China
Prior art keywords
network
interface
message
protocol stack
shared drive
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
Application number
CN2012100813582A
Other languages
Chinese (zh)
Other versions
CN102662910B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201210081358.2A priority Critical patent/CN102662910B/en
Publication of CN102662910A publication Critical patent/CN102662910A/en
Application granted granted Critical
Publication of CN102662910B publication Critical patent/CN102662910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a network interaction system based on an embedded system and a network interaction method; the network interaction system comprises a network interface, a network driver, a user mode network protocol stack and a first IO interface in a user state; and a second IO interface and a driver interface; and a kernel network protocol stack, a virtual network driver and a virtual character device driver in a kernel mode; and a shared memory. The network interaction method comprises the following steps: initializing; and receiving and transmitting a message when the message carries a general command executed by the user mode network protocol stack; receiving and transmitting the message when the message carries the general command executed by the kernel network protocol stack. According to the invention, the network driver in the user mode is jointed with the kernel network protocol stack so as to realize use of traditional network application programs driven by the user mode network driver and optimize performance of network communication.

Description

Network interaction system and network interaction method based on embedded system
Technical field
The present invention relates to embedded system, particularly a kind of network interaction system and network interaction method based on embedded system.
Background technology
The trend of current computer system development is reducing of volume, so the embedded system that palm PC just occurred and adapted to it.Embedded system is a kind of computer operating system, when it operates on the computing machine like one type of palm PC, often have the characteristic of real-time system, but embedded system is restricted at aspects such as volume, memory size and power supplys.This just requires operating system and application program must internally deposit into the administration-management reason effectively.Because embedded system is not generally used virtual storing technology, the developer often only can do limited physical memory and adapt to exploitation.
The processor of prior art or processor core can move under two kinds of patterns, i.e. kernel state and user's attitude.When embedded system got into kernel state through system call, processor was carried out kernel code.Accomplish some functions of embedded system.When embedded system got into kernel state, the context of application program will switch away from the processor or the processing kernel of current executed, and promptly the embedded system of prior art has adopted " context switching " to support the switching of kernel state and user's attitude.This context handover mechanism has brought the expense on many physical memories, especially for certain operations system intensive applications, if frequently carry out the context switching performance is had bigger influence, reduces the travelling speed of embedded system.
In order to overcome the problems referred to above aspect the network interaction of embedded system; Current many embedded systems realize network-driven and network protocol stack to become in user's attitude to realize from kernel state; General web application can be through revising its internal code with the network enabled protocol stack, its based on the network interaction system comprise:
Network interface;
Be implemented in the network-driven of user's attitude, message is read to network interface;
Be implemented in the network protocol stack of user's attitude, comprise a plurality of specific network protocol layers;
The IO interface is arranged for from web application reception message and to web application pass-along message; Described message is to carry the generic command of carrying out into by the specific network protocols layer.
Thisly network-driven and network protocol stack are implemented in the context that the embedded system of user's attitude can reduce between kernel state and the user's attitude to a great extent switch; Shortened the bang path of data; And improved the network interaction performance, the internal memory of embedded system has also obtained effective utilization.
But the network-driven of this kind embedded system can't be connected with the core network protocol stack.Because some web applications (comprising the network debugging acid) can't revise its internal code, thus only support kernel protocol stack, network-driven can't be directly and these web applications carry out exchanges data.Therefore, this embedded system that network-driven and network protocol stack are implemented in user's attitude can cause the subnetwork application program to use.
Summary of the invention
The object of the present invention is to provide a kind of network interaction system and network interaction method based on embedded system; Can be connected with the core network protocol stack user's attitude network-driven; Realized only supporting that the web application of core network protocol stack also can use under user's attitude network-driven scene, the embedded system of the type has obtained pervasive.
A kind of network interaction system based on embedded system, described embedded system can get into user's attitude and kernel state through system call, and described network interaction system comprises:
Network interface in user's attitude, network-driven, user mode network protocol stack and an IO interface; The 2nd IO interface and driving interface;
Core network protocol stack in the kernel mode, virtual network drive and the virtual character device drives; And,
Shared drive;
A described IO interface and second interface are used for from web application reception message and to web application pass-along message; Wherein, Carry out interactive messages through an IO interface and carry the generic command of carrying out by the specific network protocols layer of user mode network protocol stack, carry out interactive messages through the 2nd IO interface and carry the generic command of carrying out by the specific network protocols layer of core network protocol stack;
Described user mode network protocol stack is handled the generic command that is used to carry out, and generates the particular command of being carried out by network-driven according to generic command;
Described core network protocol stack is handled the generic command that is used to carry out, and generates the particular command by the virtual network driving execution according to generic command;
Virtual network drives, and carries out the particular command of core network protocol stack, visit core network protocol stack and realize shared drive and the core network protocol stack between interacting message;
Driving interface, the visit shared drive and realize network-driven and shared drive between interacting message; And,
The virtual character device drives is used for the address space that the control interface of kernel state is provided and described shared drive is mapped to user's attitude to driving interface.
Introduce optimal technical scheme of the present invention below.
Particularly, described the 2nd IO interface is a sockets interface.
Further, described shared drive is organized into cyclic buffer, and adopts the mode of not having lock to read and write.
Further, described driving interface is through calling the vn_put function and the vn_get function reads the data in the shared drive.
Further, the control interface of virtual character device drives comprises ioctl interface and mmap interface.
A kind of utilization is the network interaction method of network interaction system realization as stated, may further comprise the steps:
(1) to the initialization of network interaction system, load virtual network and drive and the virtual character device drives, set up shared drive;
(2) carry the generic command of being carried out by user mode network protocol stack when described message, the reception or the transmission of message comprise step:
In a network interface or an IO interface, be written into message;
Read described message;
Based on described message, network-driven and user mode network protocol stack are initiated operation;
Send message or transmit message to web application, and when complete operation, in a network interface or an IO interface, be written into response from web application; And,
Read described response;
(3) carry the generic command of being carried out by the core network protocol stack when described message, the reception or the transmission of message comprise step:
In network interface or the 2nd IO interface, be written into message;
Read described message;
Based on described message, network-driven, driving interface, shared drive, virtual network are driven and core network protocol stack initiation operation;
Send message or transmit message to web application, and when complete operation, in network interface or the 2nd IO interface, be written into response from web application; And,
Read described response.
In step (1), the described shared drive of setting up comprises step:
(1.1) apply for two sections respectively spaces of 512 page sizes, calculate the frame number of each page, these pages or leaves are set to keep page or leaf entirely;
(1.2) network-driven is controlled described virtual character device drives through driving interface, with the address space of said two sections spatial mappings to user's attitude.
Further, described shared drive comprises transmission buffer zone and send buffer, in step (3),
Described to web application transmission message, comprise step:
Whether the send buffer that network-driven is called driving interface inspection shared drive is full, if full then packet loss, discontented then through driving interface message is sent to send buffer; And,
The core network protocol stack calls virtual network and drives the poll send buffer, drives the message that reads in the send buffer and carries out interacting message with web application through virtual network;
Described from web application transmission message, comprise step:
Whether the core network protocol stack to drive the transmission buffer zone of inspection shared drive full if calling virtual network, if full then packet loss, discontented then through the virtual network driving message is put into the transmission buffer zone of shared drive; And,
Network-driven is called the driving interface poll and is sent buffer zone, reads the message of sending in the buffer zone and carries out interacting message with network interface through driving interface.
Further, described poll comprises step:
A, on shared drive, set up work queue;
B, polling tasks is put into work queue;
Whether the buffer zone of c, inspection shared drive is empty, if sky then read message not always; If the buffer zone of shared drive is empty, then polling tasks is put into the time that appointment is waited in work queue.
For the message that network-driven is received passes to core network protocol stack (being the reception of message) or the internet message bag that kernel Upper Level Network Protocol stack need send is passed to user's attitude network driver (being the transmission of message), the communication modes of a kind of kernel state and user's attitude must be arranged at first.
Because traditional kernel state and user's attitude communication modes is system call; The system call meeting brings frequent context to switch continually; Bring bigger performance loss, in addition because kernel state and user's attitude address space different must be carried out message copying through mode pass-along message between binary states of system call; This can bring performance loss again; For fear of these performance losss, adopt the mode of setting up shared drive to realize the communication of kernel state and user's attitude, significantly reduced the number of times of system call and the copy number of times of message.Simultaneously,, can described shared drive be organized as a cyclic buffer, and adopt no lock mode to read and write, can avoid the use of the expense that mutual exclusion lock is brought in order to optimize shared drive.But this read-write mode must use polling mode to check whether buffer zone is full or is sky.
But general poll can cause cpu load overweight owing to detect buffer zone always, causes very big performance loss.Therefore; The present invention is optimized on traditional polling mode; The end that reads at buffer zone is read end if having message then to transplant to read, and up to buffer empty, is about to read operation and puts into to a work queue and wait; And after designated time intervals, restart read operation, at this moment buffer zone is if there is new message then to begin to read message; If this moment, buffer zone was empty again, then once more read operation is put into the time that appointment is waited in work queue, the cpu performance expense of so just having avoided lasting read operation to bring.
Realize that kernel state need be connected message with communication between user's attitude with the Upper Level Network Protocol stack; Drive the interacting message that can realize core network protocol stack and user's attitude network-driven through virtual network: virtual network drives and can write by the network-driven model, realizes the transmitting-receiving of message.
The virtual character device drives has realized system is controlled; Comprise and set up shared drive; User's attitude network-driven can be controlled system through operating this virtual character device drives corresponding equipment file; Like ioctl and mmap, it also is the mmap method realization that drives through this character device that the shared drive application of foundation distributes.
The present invention can realize the core network function under network-driven, can under user's attitude network-driven, carry out based on the web application of traditional socket, guarantees very high performance simultaneously; The present invention is connected the network interface of user's attitude with the core network protocol stack, realized that the traditional network application program also can use under user's attitude network-driven, and optimized the performance of network communication.
Description of drawings
Fig. 1 is the structural representation of network interaction system of the present invention;
Fig. 2 is the schematic flow sheet of network interaction method of the present invention;
Fig. 3 is a message sink schematic flow sheet in the network interaction method of the present invention;
Fig. 4 is a message transmission flow synoptic diagram in the network interaction method of the present invention.
Embodiment
Introduce embodiment of the present invention in detail below in conjunction with accompanying drawing.
A kind of network interaction system based on embedded system; As shown in Figure 1; Comprise network interface, network-driven, an IO interface, the 2nd IO interface, driving interface and user mode network protocol stack in the system user attitude; Virtual character device drives in the system kernel attitude, virtual network drive and the core network protocol stack shared drive.
Described user mode network protocol stack and core network protocol stack include a plurality of specific network protocol layers.
Because the web application (calling one type of web application in the following text) of the overwhelming majority is supported user mode network protocol stack; And be implemented in the direct calling party attitude network protocol stack of network-driven ability of user's attitude; Therefore; Described network interaction system can directly realize the network interaction process of web application in user's attitude in the network interaction of one type of web application, particularly, the network interaction system comprises:
The one IO interface is used for from one type of web application reception message and to one type of web application pass-along message; Described message is carried the generic command of being carried out by the specific network protocols layer of user mode network protocol stack;
User mode network protocol stack is handled the generic command that is used to carry out, and generates the particular command of being carried out by network-driven according to generic command;
Network-driven is carried out the particular command of user mode network protocol stack, calling party attitude network protocol stack and realize network interface and network protocol stack between interacting message.
In the web application of user's attitude; Exist the web application (calling two types of web applications in the following text) of part only to support the core network protocol stack; And the network-driven that is implemented in user's attitude can not directly be visited the core network protocol stack; Therefore, described network interaction system must realize the network interaction process of web application at kernel state in the network interaction of two types of web applications.Particularly, the network interaction system comprises:
The 2nd IO interface is used for from two types of web applications reception message and to two types of web application pass-along messages; Described message is carried the generic command of being carried out by the specific network protocols layer of core network protocol stack;
The core network protocol stack is handled the generic command that is used to carry out, and generates the particular command by the virtual network driving execution according to generic command;
Virtual network drives, and carries out the particular command of core network protocol stack, visit core network protocol stack and realize shared drive and the core network protocol stack between interacting message;
Driving interface, the visit shared drive and realize network-driven and shared drive between interacting message; And,
The virtual character device drives is used for the address space that the control interface of kernel state is provided and described shared drive is mapped to user's attitude to driving interface.
Described shared drive is made up of two internal memories, and one is used for as sending buffer zone, and another piece is used for as send buffer.Two block buffers all are organized into cyclic buffer, and adopt the mode of not having lock to read and write, and can avoid the use of the expense that mutual exclusion lock is brought like this.Realize communicating by letter of kernel state and user's attitude with the mode of shared drive, can significantly reduce the number of times of system call and the copy number of times of data.
Described the 2nd IO interface is a sockets interface.In order to realize that web application and core network protocol stack carry out interacting message, create a sockets interface, and sockets interface is set communication type (like TCP, UDP, broadcasting etc.) is set.When web application and core network protocol stack carry out interacting message, call user's attitude socket built-in functions such as send, recv and carry out interacting message.
In the present embodiment; Because the network-driven of user's attitude can't be controlled the part of network interaction system kernel state; Also can't directly conduct interviews, so body series at first is provided with driving interface, can realizes that network-driven is to data write in the shared drive shared drive.
More particularly, because network-driven needs the control to the system data transfer, driving interface specifically need realize following function:
1, the method for operation shared drive is provided for network-driven; Comprise through this driving interface and carry out vn_put function and vn_get function; Wherein, the vn_put function has realized data are write the function of send buffer, and the vn_get function has been realized data from sending the function that buffer zone reads;
2, system initialization is promptly when network-driven is moved, to the program loading of virtual network driving and virtual character device drives in the kernel state; Comprise through this driving interface and carry out the vn_init function, wherein, the vn_init function has been realized the initialization of system, the configuration shared drive in the mac address of user's space, be about to the address that shared drive maps to user's attitude, and send and begin to receive and dispatch command word.
3, the interior details of encapsulation shielding shared drive.
Because driving interface can't directly be called the file in the kernel state, also further improve above-mentioned functions for the above-mentioned functions that realizes driving interface, body series also is provided with the virtual character device drives in kernel state.
The virtual character device drives is used for address space from user's attitude to driving interface that the control interface of kernel state is provided and described shared drive is mapped to; Through driving interface and virtual character device drives, the network-driven that is implemented in user's attitude can be read and write specific operation and can in kernel state, trigger function performance shown in the execution list 1 corresponding file in the kernel state.
Table 1 function and execution function thereof
Function name Function
vn_cdev_open(open) Assignment private data pointer
vn_cdev_exit(release) Do not have
vn_cdev_ioctl(ioctl) Ioctl is provided function
vn_cdev_mmap(mmap) The memory-mapped function is provided
Wherein,, comprise ioctl interface and mmap interface, realize respectively vn_cdev_ioctl function calls and vn_cdev_mmap function calls to the control interface that driving interface provides; The function that realizes is following:
One, vn_cdev_ioctl function has been realized 3 control command words, that is: herein
VN_IOC_START: beginning data transmit-receive;
VN_IOC_STOP: suspend data transmit-receive; And,
VN_IOC_MAPDIR: the memory block of selecting the appointment of mmap function.
Two, mmap function, the memory headroom of applying for when calling the initialization before of remap_pfn_range function is mapped in the address space of user's attitude, thereby realizes shared drive.
Virtual network drives main being responsible for the core network agreement is connected with shared drive; Carry out the particular command of core network protocol stack; The visit core network protocol stack and realize shared drive and the core network protocol stack between interacting message; Make network-driven can visit the core network protocol stack indirectly, realize a virtual network interface.Can be configured this virtual network driving through user's attitude network configuration tool ifconfig, vconfig etc., this virtual driving is write according to the legacy network devices model, realizes that specifically function is as shown in table 2.
The realization function that table 2 virtual network drives
Figure BDA0000146343340000091
A kind of network interaction method of having utilized above-mentioned network interaction system has realized the message interaction process between web application and the network, and is as shown in Figure 2, comprises the reception of message and the transmission of message, may further comprise the steps:
(1) to the initialization of network interaction system, load virtual network and drive and the virtual character device drives, set up shared drive;
(2) carry the generic command of being carried out by user mode network protocol stack when described message, the reception or the transmission of message comprise step:
In a network interface or an IO interface, be written into message;
Read described message;
Based on described message, network-driven and user mode network protocol stack are initiated operation;
Send message or transmit message to web application, and when complete operation, in a network interface or an IO interface, be written into response from web application; And,
Read described response;
(3) carry the generic command of being carried out by the core network protocol stack when described message, the reception or the transmission of message comprise step:
In network interface or the 2nd IO interface, be written into message;
Read described message;
Based on described message, network-driven, driving interface, shared drive, virtual network are driven and core network protocol stack initiation operation;
Send message or transmit message to web application, and when complete operation, in network interface or the 2nd IO interface, be written into response from web application; And,
Read described response.
Further, in step (1), the described shared drive of setting up comprises step:
(1.1) apply for two sections respectively spaces of 512 page sizes, calculate the frame number of each page, these pages or leaves are set to keep page or leaf entirely;
(1.2) network-driven is controlled described virtual character device drives through driving interface, with the address space of said two sections spatial mappings to user's attitude.
More particularly, the foundation of shared drive is that the process of Memory Allocation further comprises:
To the initialization of network interaction system, call the space of two sections each 512 page sizes of get_free_pages application, rx_buff by name respectively and tx_buff;
Call the frame number that virt_to_page calculates each page, each page or leaf is called SetPageReserved, these pages or leaves are set to keep page or leaf entirely;
Network-driven is called the map function through driving interface, has called the mmap function that the virtual character device drives provides then, with the address space of these two sections memory-mapped to user's attitude.
Further, described shared drive comprises transmission buffer zone and send buffer, in step (3),
Described to web application transmission message, comprise step:
Whether the send buffer that network-driven is called driving interface inspection shared drive is full, if full then packet loss, discontented then through driving interface message is sent to send buffer; And,
The core network protocol stack calls virtual network and drives the poll send buffer, drives the message that reads in the send buffer and carries out interacting message with web application through virtual network;
Described from web application transmission message, comprise step:
Whether the core network protocol stack to drive the transmission buffer zone of inspection shared drive full if calling virtual network, if full then packet loss, discontented then through the virtual network driving message is put into the transmission buffer zone of shared drive; And,
Network-driven is called the driving interface poll and is sent buffer zone, reads the message of sending in the buffer zone and carries out interacting message with network interface through driving interface.
Described message is at present embodiment and specifies MAC Address or broadcast packet (promptly in general sense packet);
Send message to web application, i.e. the polling mode through optimizing is adopted in the reception of message; Data are arranged in send buffer, and virtual network drives and then constantly from send buffer, takes out data, submits to the core network protocol stack; When send buffer is empty, will receive routine and put into waiting list, restart the reception routine after the wait fixed time; Specifically can be as shown in Figure 3, in the described Data Receiving flow process of Fig. 3, the fixed time of wait is 4ms.
Transmit message from web application, i.e. the transmission of message further comprises: when the core network protocol stack need send data; Call vn_ndev_tx; This function will check whether send buffer zone full, discontented then with copying data in buffer zone, expired and then abandoned this packet; In sending buffer zone, data are arranged; User's attitude network-driven is then constantly taken out data and is sent from send buffer zone, when send buffer is empty, will sends routine and put into waiting list; Restart the transmission routine after waiting for the fixed time; Specifically can be as shown in Figure 4, in the described data transmission flow of Fig. 4, the fixed time of wait is 1ms.
Further, the realization of poll realizes through polling tasks is put in the work queue, comprises step:
A, on shared drive, set up work queue;
B, polling tasks is put into work queue;
Whether the buffer zone of c, inspection shared drive is empty, if sky then read message not always; If the buffer zone of shared drive is empty, then polling tasks is put into the time that appointment is waited in work queue.
Concrete implementation is following:
At first, polling tasks is put into work queue;
Call create_singlethread_workqueue and set up a work queue wq, create a task poll_work, this task and poll function vn_ndev_poll are bound through the INIT_WORK function; At last, through calling queue_delayed_work this task is submitted to work queue wq, this task will be carried out after the jiffies of appointment.
Secondly, whether the inspection send buffer has packet, empty up to send buffer if having then read data bag always, and polling tasks is put into work queue wait; If send buffer is empty, then polling tasks is put into the time that appointment is waited in work queue.
In poll function vn_ndev_poll, this function checks that at first whether send buffer is empty, does not receive packet for sky then calls vn_ndev_do_poll, calls queue_delayed_work then self task poll_work is submitted to work queue.The poll function just can constantly be performed by certain time interval like this, has so also just realized poll.

Claims (9)

1. network interaction system based on embedded system, described embedded system can get into user's attitude and kernel state through system call, it is characterized in that described network interaction system comprises:
Network interface in user's attitude, network-driven, user mode network protocol stack and an IO interface; The 2nd IO interface and driving interface;
Core network protocol stack in the kernel mode, virtual network drive and the virtual character device drives; And,
Shared drive;
A described IO interface and second interface are used for from web application reception message and to web application pass-along message; Wherein, Carry out interactive messages through an IO interface and carry the generic command of carrying out by the specific network protocols layer of user mode network protocol stack, carry out interactive messages through the 2nd IO interface and carry the generic command of carrying out by the specific network protocols layer of core network protocol stack;
Described user mode network protocol stack is handled the generic command that is used to carry out, and generates the particular command of being carried out by network-driven according to generic command;
Described core network protocol stack is handled the generic command that is used to carry out, and generates the particular command by the virtual network driving execution according to generic command;
Virtual network drives, and carries out the particular command of core network protocol stack, visit core network protocol stack and realize shared drive and the core network protocol stack between interacting message;
Driving interface, the visit shared drive and realize network-driven and shared drive between interacting message; And,
The virtual character device drives is used for the address space that the control interface of kernel state is provided and described shared drive is mapped to user's attitude to driving interface.
2. network interaction system as claimed in claim 1 is characterized in that, described the 2nd IO interface is a sockets interface.
3. network interaction system as claimed in claim 1 is characterized in that described shared drive is organized into cyclic buffer, and adopts the mode of not having lock to read and write.
4. network interaction system as claimed in claim 1 is characterized in that, described driving interface is through calling the vn_put function and the vn_get function reads the data in the shared drive.
5. network interaction system as claimed in claim 1 is characterized in that, the control interface of virtual character device drives comprises ioctl interface and mmap interface.
6. one kind is utilized the network interaction method of network interaction system realization according to claim 1, it is characterized in that, may further comprise the steps:
(1) to the initialization of network interaction system, load virtual network and drive and the virtual character device drives, set up shared drive;
(2) carry the generic command of being carried out by user mode network protocol stack when described message, the reception or the transmission of message comprise step:
In a network interface or an IO interface, be written into message;
Read described message;
Based on described message, network-driven and user mode network protocol stack are initiated operation;
Send message or transmit message to web application, and when complete operation, in a network interface or an IO interface, be written into response from web application; And,
Read described response;
(3) carry the generic command of being carried out by the core network protocol stack when described message, the reception or the transmission of message comprise step:
In network interface or the 2nd IO interface, be written into message;
Read described message;
Based on described message, network-driven, driving interface, shared drive, virtual network are driven and core network protocol stack initiation operation;
Send message or transmit message to web application, and when complete operation, in network interface or the 2nd IO interface, be written into response from web application; And,
Read described response.
7. network interaction method as claimed in claim 6 is characterized in that, in step (1), the described shared drive of setting up comprises step:
(1.1) apply for two sections respectively spaces of 512 page sizes, calculate the frame number of each page, these pages or leaves are set to keep page or leaf entirely;
(1.2) network-driven is controlled described virtual character device drives through driving interface, with the address space of said two sections spatial mappings to user's attitude.
8. network interaction method as claimed in claim 6 is characterized in that, described shared drive comprises transmission buffer zone and send buffer, in step (3),
Described to web application transmission message, comprise step:
Whether the send buffer that network-driven is called driving interface inspection shared drive is full, if full then packet loss, discontented then through driving interface message is sent to send buffer; And,
The core network protocol stack calls virtual network and drives the poll send buffer, drives the message that reads in the send buffer and carries out interacting message with web application through virtual network;
Described from web application transmission message, comprise step:
Whether the core network protocol stack to drive the transmission buffer zone of inspection shared drive full if calling virtual network, if full then packet loss, discontented then through the virtual network driving message is put into the transmission buffer zone of shared drive; And,
Network-driven is called the driving interface poll and is sent buffer zone, reads the message of sending in the buffer zone and carries out interacting message with network interface through driving interface.
9. network interaction method as claimed in claim 8 is characterized in that, described poll comprises step:
A, on shared drive, set up work queue;
B, polling tasks is put into work queue;
Whether the buffer zone of c, inspection shared drive is empty, if sky then read message not always; If the buffer zone of shared drive is empty, then polling tasks is put into the time that appointment is waited in work queue.
CN201210081358.2A 2012-03-23 2012-03-23 Network interaction system based on embedded system and network interaction method Active CN102662910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210081358.2A CN102662910B (en) 2012-03-23 2012-03-23 Network interaction system based on embedded system and network interaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210081358.2A CN102662910B (en) 2012-03-23 2012-03-23 Network interaction system based on embedded system and network interaction method

Publications (2)

Publication Number Publication Date
CN102662910A true CN102662910A (en) 2012-09-12
CN102662910B CN102662910B (en) 2014-10-15

Family

ID=46772406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210081358.2A Active CN102662910B (en) 2012-03-23 2012-03-23 Network interaction system based on embedded system and network interaction method

Country Status (1)

Country Link
CN (1) CN102662910B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593225A (en) * 2013-10-30 2014-02-19 浙江大学 Method for multiplexing Binder IPC mechanism by multiple Android systems in mobile virtualization scene
CN104077190A (en) * 2014-06-09 2014-10-01 汉柏科技有限公司 ARM internet access drive user mode transplanting method and system
CN104142867A (en) * 2013-05-09 2014-11-12 华为技术有限公司 Data processing device and data processing method
CN105827588A (en) * 2015-12-23 2016-08-03 广东亿迅科技有限公司 Network driver layer-based streaming media data distribution system
CN106020926A (en) * 2016-04-29 2016-10-12 华为技术有限公司 Data transmission method and device used in virtual switch technique
CN108712308A (en) * 2018-06-06 2018-10-26 郑州云海信息技术有限公司 The method and apparatus that the network equipment is detected in virtual network
CN110618962A (en) * 2019-08-16 2019-12-27 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Multi-core network concurrent access method, system and medium of FT-M6678 chip
CN112463662A (en) * 2020-12-16 2021-03-09 福州创实讯联信息技术有限公司 Method and terminal for controlling I2C equipment by user mode
CN113067849A (en) * 2021-02-05 2021-07-02 湖南国科亿存信息科技有限公司 Network communication optimization method and device based on Glusterfs
CN113259400A (en) * 2021-07-14 2021-08-13 南京易科腾信息技术有限公司 Network interaction system, method and storage medium based on network protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1496589A1 (en) * 2003-07-11 2005-01-12 Siemens Aktiengesellschaft Apparatus and method for protection of an electrical machine
CN1732453A (en) * 2002-12-31 2006-02-08 摩托罗拉公司(在特拉华州注册的公司) Method and system for managing a validity period in association with a presence attribute
CN101478549A (en) * 2009-01-20 2009-07-08 电子科技大学 Operation method for memory sharing media server and functional module construction
CN101873337A (en) * 2009-04-22 2010-10-27 电子科技大学 Zero-copy data capture technology based on rt8169 gigabit net card and Linux operating system
CN102122255A (en) * 2011-03-15 2011-07-13 合肥华云通信技术有限公司 Method for realizing inter-process communication in Linux system by utilizing virtual character equipment and genetlink

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1732453A (en) * 2002-12-31 2006-02-08 摩托罗拉公司(在特拉华州注册的公司) Method and system for managing a validity period in association with a presence attribute
EP1496589A1 (en) * 2003-07-11 2005-01-12 Siemens Aktiengesellschaft Apparatus and method for protection of an electrical machine
CN101478549A (en) * 2009-01-20 2009-07-08 电子科技大学 Operation method for memory sharing media server and functional module construction
CN101873337A (en) * 2009-04-22 2010-10-27 电子科技大学 Zero-copy data capture technology based on rt8169 gigabit net card and Linux operating system
CN102122255A (en) * 2011-03-15 2011-07-13 合肥华云通信技术有限公司 Method for realizing inter-process communication in Linux system by utilizing virtual character equipment and genetlink

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142867B (en) * 2013-05-09 2018-01-09 华为技术有限公司 Data processing equipment and data processing method
CN104142867A (en) * 2013-05-09 2014-11-12 华为技术有限公司 Data processing device and data processing method
US10241830B2 (en) 2013-05-09 2019-03-26 Huawei Technologies Co., Ltd. Data processing method and a computer using distribution service module
CN103593225B (en) * 2013-10-30 2016-10-05 浙江大学 The method of many android system multiplexing Binder IPC mechanism in mobile virtual scene
CN103593225A (en) * 2013-10-30 2014-02-19 浙江大学 Method for multiplexing Binder IPC mechanism by multiple Android systems in mobile virtualization scene
CN104077190A (en) * 2014-06-09 2014-10-01 汉柏科技有限公司 ARM internet access drive user mode transplanting method and system
CN105827588B (en) * 2015-12-23 2019-03-15 广东亿迅科技有限公司 A kind of stream medium data dissemination system based on network driver layer
CN105827588A (en) * 2015-12-23 2016-08-03 广东亿迅科技有限公司 Network driver layer-based streaming media data distribution system
CN106020926A (en) * 2016-04-29 2016-10-12 华为技术有限公司 Data transmission method and device used in virtual switch technique
CN106020926B (en) * 2016-04-29 2019-10-25 华为技术有限公司 A kind of method and device transmitted for data in virtual switch technology
US10977203B2 (en) 2016-04-29 2021-04-13 Huawei Technologies Co., Ltd. Data transmission method and apparatus used in virtual switch technology
US11556491B2 (en) 2016-04-29 2023-01-17 Huawei Technologies Co., Ltd. Data transmission method and apparatus used in virtual switch technology
CN108712308A (en) * 2018-06-06 2018-10-26 郑州云海信息技术有限公司 The method and apparatus that the network equipment is detected in virtual network
CN108712308B (en) * 2018-06-06 2021-11-26 郑州云海信息技术有限公司 Method and device for detecting network equipment in virtual network
CN110618962A (en) * 2019-08-16 2019-12-27 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Multi-core network concurrent access method, system and medium of FT-M6678 chip
CN112463662A (en) * 2020-12-16 2021-03-09 福州创实讯联信息技术有限公司 Method and terminal for controlling I2C equipment by user mode
CN112463662B (en) * 2020-12-16 2024-04-05 福州创实讯联信息技术有限公司 Method and terminal for user mode control of I2C equipment
CN113067849A (en) * 2021-02-05 2021-07-02 湖南国科亿存信息科技有限公司 Network communication optimization method and device based on Glusterfs
CN113259400A (en) * 2021-07-14 2021-08-13 南京易科腾信息技术有限公司 Network interaction system, method and storage medium based on network protocol

Also Published As

Publication number Publication date
CN102662910B (en) 2014-10-15

Similar Documents

Publication Publication Date Title
CN102662910B (en) Network interaction system based on embedded system and network interaction method
US8255475B2 (en) Network interface device with memory management capabilities
US9639464B2 (en) Application-assisted handling of page faults in I/O operations
US8914458B2 (en) Look-ahead handling of page faults in I/O operations
CN101303656B (en) Java application program remote direct memory access method
CN103942178A (en) Communication method between real-time operating system and non-real-time operating system on multi-core processor
CN101957808B (en) Communication method among various CPUs (Central Processing Units), system and CPU
CN101150488B (en) A receiving method for zero copy network packet
CN105577567A (en) Network data packet parallel processing method based on Intel DPDK
JP2010061670A (en) Bus connection system
US10609125B2 (en) Method and system for transmitting communication data
CN102065568B (en) MAC (media Access control) software and hardware interaction method based on data descriptor and hardware implementation device thereof
CN101304373A (en) Method and system for implementing high-efficiency transmission chunk data in LAN
CN103176780A (en) Binding system and method of multiple network interfaces
CN108366018A (en) A kind of processing method of network data packets based on DPDK
WO2004017219A1 (en) Apparatus and method for transmit transport protocol termination
US20240205170A1 (en) Communication method based on user-mode protocol stack, and corresponding apparatus
CN101452430A (en) Communication method between multi-processors and communication device comprising multi-processors
CN102843435A (en) Access and response method and access and response system of storing medium in cluster system
CN1658176A (en) Method and equipment of data communication
CN110874336A (en) Distributed block storage low-delay control method and system based on Shenwei platform
CN103019975B (en) Universal serial bus transmission control method and main process equipment
CN108829530B (en) Image processing method and device
CN101867565A (en) General drive method and driver for mobile broadband equipment
CN104156332A (en) High-performance parallel computing method based on external PCI-E connection

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