CN103281308B - Data transmission method and data transmission equipment - Google Patents
Data transmission method and data transmission equipment Download PDFInfo
- Publication number
- CN103281308B CN103281308B CN201310167370.XA CN201310167370A CN103281308B CN 103281308 B CN103281308 B CN 103281308B CN 201310167370 A CN201310167370 A CN 201310167370A CN 103281308 B CN103281308 B CN 103281308B
- Authority
- CN
- China
- Prior art keywords
- network
- data
- port driving
- network port
- drives
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data transmission method and data transmission equipment. By virtue of arranging a virtual network driver, a virtual network driving part realizes data distribution, physical network ports are virtualized into united virtual network ports, one virtual network driver is presented for a network protocol stack, and physical network port information is shielded for an upper-layer application program, so that the upper-layer application program does not need to concern the physical network port information, the data transmission flexibility is improved, and the portability of software is improved.
Description
Technical field
The present invention relates to wireless communication technology field, more particularly to a kind of data transmission method and equipment.
Background technology
In prior art, each physical port(Or referred to as physical internet ports, the network port, hereafter referred to collectively as Physical Network
Mouthful), the network port driving for having corresponding network port driving, all physical internet ports is articulated in vxWorks(A kind of real time operating system)
Under network protocol stack, the equipment that user uses physical internet ports by the control of vxWorks network protocol stacks.Wherein, it is existing based on net
The management schematic diagram that mouth drives is as shown in Figure 1.
In this case, when user uses network protocol stack, the number for paying close attention to bottom physical internet ports is needed, is unfavorable for using
The transplanting of family program, increased complexity;When multiple port data distributions and port backup switching are realized, it is also desirable to consider
The relevant information of physical internet ports.
For example, user set up connection when, configuration network port driving 1 after, it is necessary to set up based on network port driving 1 network
SOCKET(Socket)Connection 1;After configuration network port driving 2, it is necessary to set up the network SOCKET connections 2 based on network port driving 2;Class
As, each user sets up connection, is essentially all to be set up based on network port driving, is solid with the relation of physical internet ports
It is fixed, after user sets up connection, the connection when in use, physical internet ports that just can only be connected and bound using this, and cannot
The transmission of data is carried out using other physical internet ports.
When user wants to carry out data transmission using multiple physical internet ports, it is necessary to based on the SOCKET connections having built up
The distribution that carries out data transmission and the process of backup selection strategy, software implementation complexity is high, and with the physical internet ports of hardware
Information is related, is unfavorable for the transplanting of software.
Inventor has found that prior art at least has following defect during the present invention is realized:
In the prior art, user needs to pay close attention to bottom physical internet ports number when using physical internet ports, needs during initialization
Each physical internet ports configuration of IP information is given, protocol stack is mounted, after the SOCKET for setting up user connects, thing is realized if desired
When the distribution of reason network interface data and backup functionality, software has to carry out some designs based on SOCKET connections, to carry out data
Distribution and backup functionality are processed.
Software is being realized being backed up or during data distribution based on multiple IP or multiple SOCKET connections, implementation complexity
Height, stability is poor, constrains more to software system, it is seen that low-level details situation is more when software is realized, is unfavorable for failure
Discovery and process.
Meanwhile, the design based on existing software architecture is realized, corresponding standby if the number of physical internet ports changes
Part strategy or data distribution strategy are also required to modification, and if in early stage under the circumstances, the complexity of design can be significantly
Lifted, be unfavorable for the design and exploitation checking of software architecture so that design and construction cycle are elongated.Once hardware structure is sent out
Changing, then the data distribution carried out based on multiple IP or multiple SOCKET connections and the framework of backup are accomplished by re-starting
Migration process just can be reused, and be unfavorable for the transplanting of software.
The content of the invention
It is an object of the invention to provide a kind of data transmission method and equipment, to improve the motility of data transfer, with
And the portability of software, for this purpose, the embodiment of the present invention is adopted the following technical scheme that:
A kind of data transmission method, is applied to include the system of the network equipment, the network equipment includes network port driving, net
Network protocol stack and upper level applications, wherein, virtual network driving is additionally provided with the network equipment, the method includes:
Virtual network drives the data for receiving network port driving forwarding, the data to receive bottom for the network port driving and set
It is transmitted to what the virtual network drove after the data that preparation is sent;
When it is primary network port driving that the virtual network drives the determination network port driving, the virtual network drives will
The data are transmitted to upper level applications by network protocol stack.
A kind of data transmission method, is applied to include the system of the network equipment, the network equipment includes network port driving, net
Network protocol stack and upper level applications, wherein, virtual network driving is additionally provided with the network equipment, the method includes:
Virtual network drives the data of receiving network protocol stack forwarding, the data to receive for the network protocol stack
It is transmitted to what the virtual network drove after the data that layer application program sends;
The virtual network is driven through primary network port driving and forwards the data to underlying device.
A kind of network equipment, including network port driving, network protocol stack and upper level applications, wherein, the network equipment
Also drive including virtual network;The virtual network drives to be included:
Receiver module, for receiving the data of network port driving forwarding, the data receive bottom for the network port driving
It is transmitted to what the virtual network drove after the data that equipment sends;
Determining module, for determining whether the network port driving is primary network port driving;
Sending module, for when it is primary network port driving that the determining module determines the network port driving, by the number
Upper level applications are transmitted to according to by network protocol stack.
A kind of network equipment, including network port driving, network protocol stack and upper level applications, wherein, the network equipment
Also drive including virtual network;The virtual network drives to be included:
Receiver module, for the data of receiving network protocol stack forwarding, the data are received for the network protocol stack
It is transmitted to what the virtual network drove after the data that upper level applications send;
Sending module, for forwarding the data to underlying device by primary network port driving.
In the above embodiment of the present invention, the network equipment including network port driving, network protocol stack and upper strata except answering
Outside with program, virtual network driving is additionally provided with;When virtual network drives underlying device is received by network port driving forwarding
Data, and when to determine the network port driving be primary network port driving, the virtual network drives and for the data to pass through network protocol stack
It is transmitted to upper level applications;The data that upper level applications are forwarded by network protocol stack are received when virtual network drives
When, the virtual network is driven through primary network port driving by the data forwarding to underlying device, improves the spirit of data transfer
Activity, and the portability of software.
Description of the drawings
Fig. 1 is the management schematic diagram based on network port driving of the prior art;
Fig. 2 is the management schematic diagram driven based on virtual network provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of data transmission method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of data transmission method provided in an embodiment of the present invention;
Fig. 5 is the structural representation that a kind of virtual network provided in an embodiment of the present invention drives;
Fig. 6 is the structural representation that a kind of virtual network provided in an embodiment of the present invention drives.
Specific embodiment
For the defect of above-mentioned prior art, the embodiment of the present invention provides a kind of technical scheme of data transfer, is applied to
Including the system of the network equipment.In the technical scheme, the network equipment is except including network port driving, vxWorks networks
Protocol stack(Hereinafter it is referred to as network protocol stack)And outside upper level applications, it is additionally provided with virtual network driving.Wherein:
The data that underlying device is forwarded by network port driving are received when virtual network drives, and determines that the network port driving is
During primary network port driving, the virtual network drives and for the data to be transmitted to upper level applications by network protocol stack;
When virtual network drives receives the data that upper level applications are forwarded by network protocol stack, the virtual net
Network is driven through primary network port driving by the data forwarding to underlying device.Wherein, the management for being driven based on virtual network is illustrated
Figure is as shown in Figure 2.
By technical scheme provided in an embodiment of the present invention, driven by arranging virtual network, and driven in virtual network
Data distribution is realized in part, and physical internet ports are invented into unified virtual network port, for network protocol stack is only presented one virtually
Upper level applications are shielded physical internet ports information by network-driven, make upper level applications without paying close attention to physical internet ports information, are carried
The high motility of data transfer, and the portability of software.
Below in conjunction with the accompanying drawing in the application, clear, complete description is carried out to the technical scheme in the application, shown
So, described embodiment is a part of embodiment of the application, rather than the embodiment of whole.Based on the enforcement in the application
Example, the every other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made all belongs to
In the scope of the application protection.
For the network equipment receives the handling process schematic diagram of the data that underlying device sends referring to Fig. 3.
As shown in figure 3, for a kind of schematic flow sheet of data transmission method provided in an embodiment of the present invention, can include with
Lower step:
Step 301, virtual network drive the data for receiving network port driving forwarding, the data to receive bottom for network port driving
Virtual network driving is transmitted to after the data that equipment sends.
Specifically, in embodiments of the present invention, virtual network driving is provided with the network equipment, the virtual network drives can
To realize the vxWorks END of standard(Enhanced Network Driver, intensifier PLL)Basic function, bag
Include loading, unloading, startup, stopping, data is activation, data receiver, inquiry transmission, inquire-receive etc..Additionally, the virtual network is driven
Disorder of internal organs can be configured with network port driving stored reservoir, to realize the management to network port driving.Wherein, in network port driving stored reservoir
Network port driving needs to be driven to virtual network carries out registration mounting.
When network port driving receives underlying device sends data, no longer directly by the data forwarding to network protocol stack,
But the data forwarding for needing to receive drives to virtual network, driven by virtual network carries out forward process to the data.
In order to realize that network port driving drives the data forwarding for receiving to virtual network, virtual network drives to be needed to preserve
The process function of network port driving(First processes function, the receiveRtn of the END_OBJ structures of network port driving, for network interface
Driving forwards the data to network protocol stack)Function pointer, and the function pointer of the process function is replaced with into virtual network
The process function of driving(Second processing function, drive for virtual network carries out being processed and forwarded to network protocol stack to data)
Function pointer so that network port driving receive underlying device transmission data after, first forward the data to virtual network driving,
Then again by virtual network driving according to the function pointer of the process function of storage, the process function is called to forward the data to net
Network protocol stack.
Step 302, virtual network drive and determine whether the network port driving is primary network port driving;If being judged as YES, turn
To step 303;Otherwise, step 304 is gone to.
Specifically, in embodiments of the present invention, virtual network drives can in the following manner determine that the network port driving is
No is primary network port driving:
Virtual network drives and judges whether to be configured with network port driving group;
If being judged as YES, virtual network drives and determines that the network interface drives according to the network port driving group distribution policy being pre-configured with
Whether dynamic be the network port driving in primary network port driving group(Network port driving in the network port driving is primary network port driving group
When, then can determine that it is primary network port driving, otherwise, it determines it is non-primary network port driving);
If being judged as NO, virtual network drives and determines the network port driving according to the network port driving distribution policy being pre-configured with
Whether it is primary network port driving.
When it is primary network port driving that virtual network driving determines the network port driving, the virtual network drives and can count this
Upper level applications are transmitted to according to by network protocol stack;Determine that the network port driving is that non-primary network interface drives when virtual network drives
When dynamic, the virtual network drives can be refused the data forwarding to network protocol stack.
Step 303, virtual network drive and for the data to be transmitted to upper level applications by network protocol stack.
Specifically, after it is primary network port driving that virtual network driving determines the network port driving, can be according to above-mentioned preservation
Process function function pointer, call the process function to forward the data to network protocol stack, this is counted by network protocol stack
According to being transmitted to upper level applications.
Step 304, virtual network drive refusal by the data forwarding to network protocol stack.
Further, in technical scheme provided in an embodiment of the present invention, virtual network can also be pre-configured with driving
Data filtering strategy, to filter to the data that the network port driving for receiving is forwarded.
After virtual network drives the data for receiving primary network port driving forwarding, can be according to the data mistake being pre-configured with
Filter strategy is determined the need for the data forwarding to network protocol stack, and when being defined as needing, virtual network drives and counts this
Upper level applications are transmitted to according to by network protocol stack;When being defined as not needing, virtual network drives refusal by the data
It is transmitted to network protocol stack.
For example, the registration function of data filtering can be provided, is called when independently carrying out filtration treatment for data for user.
Filtering the definition of hook prototype function can be:
type def int(*Virtual_port_rx_filter)(Void*pvBuf, int dataLength);
Wherein, void*pvBuf is the pointer for pointing to the data buffer zone for receiving;
Int dataLength are the data length for pointing to the data buffer zone for receiving;
Return value is int types, can be completed including data processing, and data are trapped;
Complete for data processing for return value, data are transmitted to upper strata by virtual network driving by network protocol stack should
Use program;
It is trapped for data for return value, virtual network drives and no longer forwards the data to network protocol stack;Wherein, it is empty
Intending network-driven can increase data and is trapped number of times in corresponding filtration management information.
Correspondingly, virtual network drives the data filtering strategy that basis is pre-configured with to carry out filtration to the data and can have
Body is embodied as:
When data are data processing completion statuses, virtual network drives determination to need to send the data to network protocol stack;
When data are trapped state for data, virtual network drives determination to send the data to network protocol stack.
It should be noted that above-mentioned driving according to virtual network according to data completes type or data are trapped class for process
Type data are filtered only be data filtering provided in an embodiment of the present invention a kind of implementation, virtual network drive also may be used
To realize data filtering by other means(Such as according to data length, data content), it implements here and repeats no more.
For the network equipment sends the handling process of data referring to Fig. 4 to underlying device.
As shown in figure 4, for a kind of schematic flow sheet of data transmission method provided in an embodiment of the present invention, can include with
Lower step:
Step 401, virtual network drive the data of receiving network protocol stack forwarding, the data to receive for network protocol stack
It is transmitted to what the virtual network drove after the data that upper level applications send.
Specifically, in embodiments of the present invention, when network protocol stack receives the data of upper level applications transmission, no
Directly by network port driving data are forwarded again, but the data forwarding for needing to receive drives to virtual network, by
Virtual network drives and carries out forward process to the data.
Step 402, virtual network drive searches primary network port driving.If searching successfully, step 403 is gone to;If searching
Failure, then go to step 404.
Specifically, when virtual network drives the data for receiving network protocol stack forwarding, need the data by master
Underlying device is transmitted to network port driving.
Virtual network drives and first determines whether to be configured with network port driving group, if being configured with network port driving group, virtual network is driven
It is dynamic primary network port driving group to be searched according to the network port driving group distribution policy being pre-configured with, and by the primary network port driving
Network port driving in group is by the data forwarding to underlying device;If not configuring network port driving group, then drive can be with for virtual network
Primary network port driving is searched according to the network port driving distribution policy being pre-configured with, and is turned the data by the primary network port driving
Issue underlying device.
Wherein, if virtual network drives searches primary network port driving failure, virtual network drives forbidden data forwarding.
Step 403, virtual network are driven through primary network port driving and forward the data to underlying device.
Specifically, if virtual network drives determination to be configured with network port driving group, and find primary network port driving group, then it is empty
Intending network-driven can forward the data to underlying device by the network port driving in the primary network port driving group;If virtual network
Drive determination not configure network port driving group, and find primary network port driving, then virtual network drives can pass through the primary drive
It is dynamic to forward the data to underlying device.Wherein, virtual network drives and network port driving is selected from primary network port driving group to data
The here that implements of forwarding is repeated no more.
Step 404, virtual network drive refusal by the data forwarding to underlying device.
In embodiments of the present invention, realize the management mode to multiple network port drivings to configure, such as load sharing, network interface drive
Dynamic active and standby, network port driving backup etc., the concrete configuration mode supported is as shown in table 1:
Table 1, network port driving management configuration pattern
Based on above-mentioned network port driving management configuration pattern, data distribution control strategy provided in an embodiment of the present invention at least may be used
To include:
1), network port driving register after default conditions as primary network port driving;
2), network port driving be primary network port driving when, it is allowed to distribute data;
3), network port driving be standby network port driving when, forbid distribute data;
4)If, be configured with network port driving group, according to network port driving component send out policy selection network port driving after carry out data
Distribution;
5)If, be configured with network port driving polymerization, operation state aggregation protocol, according to aggregation group strategy distribution data;
6), network port driving is when carrying out data receiver, needs check the need for carrying out data filtering;If desired, then basis
Data filtering strategy carries out data distribution;
7)If, be configured with the active and standby strategy of network port driving, and during primary network port driving failure, the active and standby mark of modification network port driving
For resting state, standby network port driving is searched, its active and standby mark is set to into master state;
8), be such as configured with the active and standby strategy of network port driving group, and during main port group failure, then change network port driving group Intranet
The active and standby of mouth driving is designated resting state, standby network port driving group is searched, by the master of network port driving in standby network port driving group
Standby mark is set to master state;
9), network port driving failure when, the network port driving carries out resting state.
By above description as can be seen that in embodiments of the present invention, lead to when virtual network driving receives underlying device
The data of network port driving forwarding are crossed, and when to determine the network port driving be primary network port driving, the virtual network is driven the data
Upper level applications are transmitted to by network protocol stack;When virtual network drives upper level applications are received by procotol
During the data of stack forwarding, the virtual network is driven through primary network port driving by the data forwarding to underlying device, for net
Network protocol stack is only presented a virtual network and drives, and to upper level applications physical internet ports information is shielded, and makes upper level applications
Without paying close attention to physical internet ports information, the motility of data transfer, and the portability of software are improve.
Based on said method flow process identical technology design, the embodiment of the present invention additionally provides a kind of network equipment, can be with
It is applied to said method embodiment.
In embodiments of the present invention, the network equipment is except including network port driving, network protocol stack and upper level applications
Outside, also drive including virtual network;Wherein, the structural representation that the virtual network drives is referring to Fig. 5.
As shown in figure 5, the structural representation driven for a kind of virtual network provided in an embodiment of the present invention, can include:
Receiver module 51, for receiving the data of network port driving forwarding, the data receive bottom for the network port driving
It is transmitted to what the virtual network drove after the data that layer equipment sends;
Determining module 52, for determining whether the network port driving is primary network port driving;
Sending module 53, for when it is primary network port driving that the determining module 52 determines the network port driving, by institute
State data and upper level applications are transmitted to by network protocol stack.
In embodiments of the present invention, the virtual network drives and can also include:
Pointer processing module 54, for before the data that the interface module 51 receives network port driving forwarding, preserving
First function pointer for processing function, and the function that the function pointer of the first process function replaces with second processing function is referred to
Pin;Wherein, the first process function forwards the data to network protocol stack for the network port driving, at described second
Reason function is used for the virtual network and drives the data to receiving to carry out being processed and forwarded to network protocol stack.
Wherein, the determining module 52 is specifically for determining in the following manner whether network port driving is that primary network interface drives
It is dynamic:
Judge whether to be configured with network port driving group;
If being judged as YES, determine whether the network port driving is primary according to the network port driving group distribution policy being pre-configured with
Network port driving in network port driving group;
If being judged as NO, determine whether the network port driving is primary net according to the network port driving distribution policy being pre-configured with
Mouth drives.
Wherein, the sending module 53 to the data according to the data filtering strategy being pre-configured with specifically for carrying out
Filter, and when it is determined that needing to send the data to network protocol stack, the data are transmitted to by network protocol stack
Upper level applications.
Wherein, the sending module 53 is specifically for being accomplished by according to the data filtering plan being pre-configured with
Slightly the data are filtered:
When the data are data processing completion statuses, it is determined that needing to send the data to network protocol stack;
When the data are trapped state for data, it is determined that the procotol need not be sent the data to
Stack.
Based on said method flow process identical technology design, the embodiment of the present invention additionally provides a kind of network equipment, can be with
It is applied to said method embodiment.
In embodiments of the present invention, the network equipment is except including network port driving, network protocol stack and upper level applications
Outside, also drive including virtual network;Wherein, the structural representation that the virtual network drives is referring to Fig. 6.
As shown in fig. 6, the structural representation driven for a kind of virtual network provided in an embodiment of the present invention, can include:
Receiver module 61, for the data of receiving network protocol stack forwarding, the data are network protocol stack reception
It is transmitted to what the virtual network drove after the data sent to upper level applications;
Sending module 63, for forwarding the data to underlying device by primary network port driving.
In embodiments of the present invention, the virtual network drives and also includes:
Judge module 62, for judging whether to be configured with network port driving group;
The sending module 63 is specifically for when the judged result of the judge module 62 is to be, according to being pre-configured with
Network port driving group distribution policy search primary network port driving group, and will by the network port driving in the primary network port driving group
The data forwarding is to underlying device;When the judged result of the judge module is no, according to the network port driving being pre-configured with
Distribution policy searches primary network port driving, and forwards the data to underlying device by the primary network port driving.
Wherein, the sending module 63 is additionally operable to, and when primary network port driving failure is searched, forbids the data forwarding.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases the former is more
Good embodiment.Based on such understanding, what technical scheme substantially contributed in other words to prior art
Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including
Dry instruction is used so that a station terminal equipment(Can be mobile phone, personal computer, server, or network equipment etc.)Perform sheet
Invent the method described in each embodiment.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
Depending on protection scope of the present invention.
Claims (12)
1. a kind of data transmission method, is applied to include the system of the network equipment, and the network equipment includes network port driving, network
Protocol stack and upper level applications, it is characterised in that virtual network driving, the method are additionally provided with the network equipment
Including:
Virtual network drives the data for receiving network port driving forwarding, the data to receive underlying device for the network port driving and send out
It is transmitted to what the virtual network drove after the data sent;
When it is primary network port driving that the virtual network drives the determination network port driving, the virtual network drives will be described
Data are transmitted to upper level applications by network protocol stack;
Wherein, the virtual network is also configured with network port driving stored reservoir, the network interface in the network port driving stored reservoir in driving
Drive to need to be driven to virtual network and carry out registration mounting;
Wherein, the virtual network is driven before the data for receiving network port driving forwarding, is also included:
The virtual network drives and preserves the first function pointer for processing function, and the function pointer of the first process function is replaced
It is changed to the function pointer of second processing function;Wherein, the first process function is used for the network port driving by the data turn
Network protocol stack is issued, the second processing function is used for the virtual network and drives the data to receiving to be processed and turned
Issue network protocol stack.
2. the method for claim 1, it is characterised in that the virtual network is driven through in the following manner and determines that network interface drives
Whether dynamic is primary network port driving:
The virtual network drives and judges whether to be configured with network port driving group;
If being judged as YES, the virtual network drives and determines that the network interface drives according to the network port driving group distribution policy being pre-configured with
Whether dynamic be the network port driving in primary network port driving group;
If being judged as NO, the virtual network drives and determines the network port driving according to the network port driving distribution policy being pre-configured with
Whether it is primary network port driving.
3. the method for claim 1, it is characterised in that the virtual network drives and for the data to pass through procotol
Stack is transmitted to upper level applications, specially:
The virtual network drives the data are filtered according to the data filtering strategy being pre-configured with, and needs when determining
When sending the data to network protocol stack, the data are transmitted to into upper level applications by network protocol stack.
4. method as claimed in claim 3, it is characterised in that the virtual network is driven according to the data filtering being pre-configured with
Strategy is filtered to the data, specially:
When the data are data processing completion statuses, the virtual network drives determination to need to send the data to net
Network protocol stack;
When the data are trapped state for data, the virtual network drives determination to send the data to institute
State network protocol stack.
5. a kind of data transmission method, is applied to include the system of the network equipment, and the network equipment includes network port driving, network
Protocol stack and upper level applications, it is characterised in that virtual network driving, the method are additionally provided with the network equipment
Including:
Virtual network drives the data of receiving network protocol stack forwarding, and the data receive upper strata for the network protocol stack should
It is transmitted to what the virtual network drove after data with program transmission;
The virtual network is driven through primary network port driving and forwards the data to underlying device;
Wherein, the virtual network is also configured with network port driving stored reservoir, the network interface in the network port driving stored reservoir in driving
Drive to need to be driven to virtual network and carry out registration mounting;
The virtual network is driven through primary network port driving and forwards the data to underlying device, specially:
The virtual network drives and judges whether to be configured with network port driving group;
If being judged as YES, the virtual network drives searches primary network interface drive according to the network port driving group distribution policy being pre-configured with
Dynamic group, and underlying device is forwarded the data to by the network port driving in the primary network port driving group;
If being judged as NO, the virtual network drives searches primary network interface drive according to the network port driving distribution policy being pre-configured with
It is dynamic, and underlying device is forwarded the data to by the primary network port driving.
6. method as claimed in claim 5, it is characterised in that the method also includes:
When the virtual network drives searches primary network port driving failure, the virtual network drives forbids the data to turn
Send out.
7. a kind of network equipment, including network port driving, network protocol stack and upper level applications, it is characterised in that the network
Equipment also drives including virtual network;Wherein, the virtual network drives and includes:
Receiver module, for receiving the data of network port driving forwarding, the data receive underlying device for the network port driving
It is transmitted to what the virtual network drove after the data of transmission;
Determining module, for determining whether the network port driving is primary network port driving;
Sending module, for when it is primary network port driving that the determining module determines the network port driving, the data being led to
Cross network protocol stack and be transmitted to upper level applications;
Wherein, the virtual network is also configured with network port driving stored reservoir, the network interface in the network port driving stored reservoir in driving
Drive to need to be driven to virtual network and carry out registration mounting;
Wherein, the virtual network drives and also includes:
Pointer processing module, is processed for before the data that the receiver module receives network port driving forwarding, preserving first
The function pointer of function, and the function pointer of the first process function is replaced with into the function pointer of second processing function;Wherein, institute
State the first process function and forward the data to network protocol stack for the network port driving, the second processing function is used for
The virtual network drives the data to receiving to carry out being processed and forwarded to network protocol stack.
8. the network equipment as claimed in claim 7, it is characterised in that the determining module is specifically in the following manner
Determine whether network port driving is primary network port driving:
Judge whether to be configured with network port driving group;
If being judged as YES, determine whether the network port driving is primary network interface according to the network port driving group distribution policy being pre-configured with
Network port driving in driving group;
If being judged as NO, determine whether the network port driving is that primary network interface drives according to the network port driving distribution policy being pre-configured with
It is dynamic.
9. the network equipment as claimed in claim 7, it is characterised in that
The sending module to the data according to the data filtering strategy being pre-configured with specifically for filtering, and when true
When needing to send the data to network protocol stack surely, the data are transmitted to into upper layer application journey by network protocol stack
Sequence.
10. the network equipment as claimed in claim 9, it is characterised in that the sending module is specifically in the following manner
Realize filtering the data according to the data filtering strategy being pre-configured with:
When the data are data processing completion statuses, it is determined that needing to send the data to network protocol stack;
When the data are trapped state for data, it is determined that the network protocol stack need not be sent the data to.
A kind of 11. network equipments, including network port driving, network protocol stack and upper level applications, it is characterised in that the net
Network equipment also drives including virtual network;Wherein, the virtual network drives and includes:
Receiver module, for the data of receiving network protocol stack forwarding, the data receive upper strata for the network protocol stack
It is transmitted to what the virtual network drove after the data that application program sends;
Sending module, for forwarding the data to underlying device by primary network port driving;
Wherein, the virtual network is also configured with network port driving stored reservoir, the network interface in the network port driving stored reservoir in driving
Drive to need to be driven to virtual network and carry out registration mounting;
The virtual network drives also to be included:
Judge module, for judging whether to be configured with network port driving group;
The sending module according to the network interface being pre-configured with specifically for when the judged result of the judge module is to be, driving
Dynamic group distribution policy searches a primary network port driving group, and by the network port driving in the primary network port driving group by the data
It is transmitted to underlying device;When the judged result of the judge module is no, according to the network port driving distribution policy being pre-configured with
Primary network port driving is searched, and underlying device is forwarded the data to by the primary network port driving.
12. network equipments as claimed in claim 11, it is characterised in that
The sending module is additionally operable to, and when primary network port driving failure is searched, forbids the data forwarding.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310167370.XA CN103281308B (en) | 2013-05-08 | 2013-05-08 | Data transmission method and data transmission equipment |
PCT/CN2013/090897 WO2014180156A1 (en) | 2013-05-08 | 2013-12-30 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310167370.XA CN103281308B (en) | 2013-05-08 | 2013-05-08 | Data transmission method and data transmission equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103281308A CN103281308A (en) | 2013-09-04 |
CN103281308B true CN103281308B (en) | 2017-04-26 |
Family
ID=49063755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310167370.XA Active CN103281308B (en) | 2013-05-08 | 2013-05-08 | Data transmission method and data transmission equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103281308B (en) |
WO (1) | WO2014180156A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103281308B (en) * | 2013-05-08 | 2017-04-26 | 大唐移动通信设备有限公司 | Data transmission method and data transmission equipment |
CN106656539A (en) * | 2015-11-04 | 2017-05-10 | 中兴通讯股份有限公司 | Internet access state detection and synchronization method and apparatus |
CN115001874A (en) * | 2022-08-04 | 2022-09-02 | 成都卫士通信息产业股份有限公司 | Data transmission method, device, equipment and medium |
CN115941477B (en) * | 2022-11-22 | 2024-08-16 | 麒麟软件有限公司 | Optimization method for connectivity of GMAC network card |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247266A (en) * | 2008-03-21 | 2008-08-20 | 深圳国人通信有限公司 | Method for processing data in Ethernet |
CN101640665A (en) * | 2008-07-28 | 2010-02-03 | 联想(北京)有限公司 | Method for realizing remote wake-up on network card by computer and network filter driving intermediate layer |
CN101815014A (en) * | 2010-02-09 | 2010-08-25 | 上海百络信息技术有限公司 | Real-time network data capture method based on connection |
CN102131304A (en) * | 2011-02-10 | 2011-07-20 | 中兴通讯股份有限公司 | Network connection method and communication terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103281308B (en) * | 2013-05-08 | 2017-04-26 | 大唐移动通信设备有限公司 | Data transmission method and data transmission equipment |
-
2013
- 2013-05-08 CN CN201310167370.XA patent/CN103281308B/en active Active
- 2013-12-30 WO PCT/CN2013/090897 patent/WO2014180156A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247266A (en) * | 2008-03-21 | 2008-08-20 | 深圳国人通信有限公司 | Method for processing data in Ethernet |
CN101640665A (en) * | 2008-07-28 | 2010-02-03 | 联想(北京)有限公司 | Method for realizing remote wake-up on network card by computer and network filter driving intermediate layer |
CN101815014A (en) * | 2010-02-09 | 2010-08-25 | 上海百络信息技术有限公司 | Real-time network data capture method based on connection |
CN102131304A (en) * | 2011-02-10 | 2011-07-20 | 中兴通讯股份有限公司 | Network connection method and communication terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2014180156A1 (en) | 2014-11-13 |
CN103281308A (en) | 2013-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103281308B (en) | Data transmission method and data transmission equipment | |
CN103401707A (en) | Link aggregation method and access equipment | |
WO2007147149A2 (en) | Usb wireless network drive | |
CN101605104B (en) | Method and device for forwarding traffic in stacking device | |
CN101883436A (en) | Concurrent processing method and system for resources and mobile terminal | |
CN104216761B (en) | It is a kind of that the method for sharing equipment is used in the device that can run two kinds of operating system | |
CN102111790B (en) | Communication means based on base station control device group, Apparatus and system | |
CN109313569A (en) | System and method for virtual hardware control | |
CN101039310A (en) | Link sharing service apparatus and communication method thereof | |
CN101741664A (en) | Method and device for realizing Ethernet interface system | |
CN101030864A (en) | Method for transmitting data file between computer and mobile terminal | |
CN103957214A (en) | Computer network data package grabbing method for teaching | |
CN109548097A (en) | A kind of carrying establishing method and device | |
CN107995326B (en) | Management method and device of container network | |
CN104704904B (en) | A kind of method and user equipment of selection access network | |
CN106878190A (en) | Automatic stacking method and device | |
CN100458744C (en) | Method and device for remote storing data | |
CN101217786A (en) | Baseband resource sharing method, communication system and device | |
CN105635312A (en) | Method for realizing communication of multiple local area networks based on WinCE system and single network card | |
CN102281580B (en) | M2M system and service processing method thereof | |
CN108668319A (en) | Data transmission method, device and terminal | |
CN115022424A (en) | Virtual control method, system, equipment and medium for network card of hydroelectric LCU controller | |
CN105612800A (en) | Resource configuration method used for device to device communication mode, apparatus and system | |
US20220022275A1 (en) | Communication method and apparatus | |
CN103246618B (en) | Based on implementation method and the device of the USB function of embedded 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |