Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The first embodiment provided by the present disclosure, that is, an embodiment of a method for network data transmission.
Referring to fig. 1 and fig. 2, the following describes an embodiment of the present disclosure in detail with reference to fig. 1.
Step S101, network data of a first workload, a second network address of a second workload and a gateway physical address, which need to be transmitted to the second workload, are obtained.
The first workload, the second workload and the gateway all work in the first cloud service unit. The first cloud service unit comprises: a plurality of workloads, a gateway, a first programmable switch, and a first software defined network controller. As shown in fig. 2, the first workload is the first workload in fig. 2. The network data can be packed according to the requirement of practical application.
In an embodiment of the disclosure, the first workload is configured to send the network data to the second workload. A first subnet mask length corresponding to a first internet protocol address of a first workload configuration is equal to a first network address length corresponding to the first internet protocol address.
The network address is a logical address that a node on the internet has in the network. The description of the network address is different using different network layer protocols. The IP protocol uses a 32-bit binary to represent a network address, i.e., an IP address. In the seven-layer network model, network addresses are used for forwarding network data in the network layer. For a device, the network address can be changed by setting. For example, the first network address is configured to be 192.168.0.100, and the second network address is configured to be 192.168.0.101.
A subnet mask is a bit mask used to indicate which bits of an IP address identify the network address and host address where the host is located. The subnet mask and the network address are expressed in the same way.
The Internet Protocol address comprises an Internet Protocol address fourth edition (full name: Internet Protocol version 4, abbreviated as IPv4) and an Internet Protocol address sixth edition (full name: Internet Protocol version 6, abbreviated as IPv 6). IPv4 is represented by a 32-bit binary number, while IPv6 is represented by a 128-bit binary number. For example, the length of the IPv4 is 32 bits, N represents the subnet mask length, and the subnet mask length represents the number of IPv4 under the same data link layer, namely 2 (32–N) A plurality of; when the length of the subnet mask is 16, 65536 corresponding to the IPv4 can support and create 65534 workloads in the cloud service unit; when the length of the subnet mask is 24, corresponding to 256 IPv4, 254 workloads can be supported and created in the cloud service unit.
The expression of the internet protocol address is: first network address/first subnet mask length. For example, the first network address is 192.168.0.100, the first subnet mask length is 24, and the first IPv4 address is 192.168.0.100/24; the second network address is 192.168.0.101, the second subnet mask length is 24, and the second IPv4 address is 192.168.0.101/24.
In the data link layer, the physical address of the opposite end is mainly obtained by broadcast messages (for example, ARP) among workloads. And the larger the broadcast message is, the larger the occupied normal network communication bandwidth is, which is very easy to cause network jitter, consume CPU resources and even cause the down of forwarding equipment. In order to reduce the number of packets, the embodiment of the present disclosure sets the first subnet mask length equal to the first network address length, for example, the first IPv4 is 192.168.0.100/32. The first workload considers itself to be the only device in the corresponding data link layer, thereby ensuring that other physical addresses are not queried in the first workload through broadcast messages. The occurrence of broadcasting in the first workload is avoided.
Optionally, a second subnet mask length corresponding to a second internet protocol address of the second workload configuration is equal to a second network address length corresponding to the second internet protocol address. For example, second IPv4 is 192.168.0.101/32. Therefore, the first workload and the second workload are considered as the only devices in the corresponding data link layer, and other physical addresses cannot be inquired through the broadcast message. The occurrence of broadcasts in the first workload and the second workload is avoided. Meanwhile, for the user and the management program of the cloud environment, the underlying implementation is not needed to be concerned, and the network address of the cloud service unit can be randomly distributed to the workload in any network segment.
Associated with the network address is a physical address (i.e., a MAC address). In the seven-layer network model, MAC addresses are used for forwarding of network data at the data link layer. For a device, the physical address of its network card cannot be changed. For example, the MAC address of the first workload is 44-45-53-54-00-00 and the MAC address of the second workload is 44-45-53-54-00-01.
For acquiring a gateway physical address, the embodiments of the present disclosure provide two specific scenarios.
Scene one
To obtain the gateway physical address, first, a gateway default route needs to be configured. The configuration method comprises the following steps:
and S100-11, generating and sending a configuration request message based on the dynamic host configuration protocol.
DHCP is a network protocol applied to local area networks that allows servers to dynamically assign IP addresses and configuration information to clients.
Step S100-12, receiving a configuration response message returned by the first software-defined network controller in the first cloud service unit in response to the configuration request message.
In scenario one, the first software-defined network controller intercepts a configuration request message as a DHCP server, and generates a configuration response message based on the configuration request message.
Step S100-13, analyzing the configuration response message, and acquiring the first network address, the first subnet mask and the gateway network address.
The configuration response message includes configuration information. Configuration information, including: a first network address, a first subnet mask, and a gateway network address.
Step S100-14, generating and configuring the first internet protocol address based on the first network address and the first subnet mask length.
For example, the first network address is 192.168.0.100, the first subnet mask length bit is 32, and the first internet protocol address is 192.168.0.100/32.
Step S100-15, configuring the gateway default route based on the gateway network address.
For example, the gateway network address 192.168.0.1 is configured as the gateway default route.
In the first scenario, the gateway network address is used as the information of the default gateway route, and therefore, the first workload needs to acquire the gateway physical address in a dynamic manner each time. Specifically, the method comprises the following steps:
and S101-11, acquiring a gateway network address based on the configured gateway default route.
Since both the first workload and the second workload consider themselves to be the only devices in the corresponding data link layer, the first workload must forward the network data to the second workload through the gateway.
In scenario one, the first internet protocol address and the gateway default route are both stored in the first workload by way of configuration. The configuration information is preset by the first software-defined network controller and is sent to each workload in the cloud service unit through the first programmable switch.
And S101-12, generating and sending an address request message based on an address resolution protocol and the gateway network address.
ARP is a TCP/IP protocol that obtains a physical address from an IP address.
In the embodiment of the disclosure, the gateway is configured to ensure that the flow of network data transmission can be executed according to the specification of the protocol without destroying the original communication logic in the cloud service unit, and no task is executed in the communication between the workloads.
Step S101-13, receiving an address response message returned by the first programmable switch in the first cloud service unit in response to the address request message.
The first programmable switch operates in accordance with the delivery information transmitted by the first software-defined network controller. The issued information includes address comparison data and address conversion data. The address comparison data is stored in an address comparison dataset for the first programmable switch; the address translation data is stored in an address translation data set of the first programmable switch. The gateway physical address in the address response message is taken from the address reference dataset.
And S101-14, analyzing the address response message and acquiring the gateway physical address.
Scene two
To obtain the gateway physical address, first, a gateway default route needs to be configured. The configuration method further comprises the following steps:
and S100-21, generating and sending a configuration request message based on the dynamic host configuration protocol.
And S100-22, receiving a configuration response message returned by the first software defined network controller in the first cloud service unit in response to the configuration request message.
Step S100-23, analyzing the configuration response message, and acquiring the first network address, the first subnet mask and the gateway network address.
Step S100-24, generating and configuring the first internet protocol address based on the first network address and the first subnet mask.
And S100-25, generating and sending an address request message based on an address resolution protocol and the gateway network address.
And S100-26, receiving the address response message returned by the first programmable switch in the first cloud service unit in response to the address request message.
And S100-27, analyzing the address response message and acquiring the gateway physical address.
Step S100-28, configuring the gateway default route based on the gateway physical address.
The default route of the gateway is configured to be the physical address of the gateway, so that the transmission times of the message are reduced.
And in the second scenario, the gateway physical address is used as the information of the gateway default route, so that the gateway physical address can be acquired every time the first workload adopts a static mode. Specifically, the acquiring a gateway physical address includes the following steps:
and S101-21, acquiring a gateway physical address based on the configured gateway default route.
That is, the gateway physical address is stored in the adjacency list of the first workload by a configuration method, and is directly obtained from the adjacency list each time network data is sent, thereby reducing the times of obtaining the gateway physical address.
In scenario two, the first internet protocol address and the gateway default route are both stored in the first workload by way of configuration. The configuration information is preset by the first software-defined network controller and is sent to each workload in the cloud service unit through the first programmable switch.
Step S102, a first physical address of the first workload is obtained based on a first network address.
Step S103, generating and sending a first network message based on the first physical address, the first network address, the second network address, the gateway physical address and the network data.
And completing the forwarding of the network data in the data link layer through the source physical address, the source network address and the target physical address. The source physical address of the disclosed embodiment is a first physical address, the source network address is a first network address, and the target physical address is a gateway physical address. In the process of sending the first network message, the first programmable switch intercepts the first network message, and generates a forwarded second network message by analyzing the first network message, so that under the condition that the original communication mechanism is not changed, the harm of network broadcasting is reduced, and network data transmission at a data link layer and a network layer is completed.
In the embodiment of the present disclosure, since the first subnet mask length in the first internet protocol address of the first workload is equal to the first network address length, the first workload does not send any other ARP request packet except for querying the gateway physical address. And the operating system corresponding to the first workload generally has a cache and aging mechanism of the ARP request message, so that the first workload can broadcast the ARP request message at low frequency. The occupied normal network communication bandwidth is reduced, and network jitter and CPU resource consumption are avoided, so that the safe operation of the forwarding equipment is ensured. For the user and the management program of the cloud environment, the network address in the cloud service unit can be randomly distributed in any network segment without concerning the bottom layer implementation.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, that is, an apparatus for network data transmission. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 3 shows an embodiment of an apparatus for network data transmission provided by the present disclosure.
Referring to fig. 3, the present disclosure provides a device for network data transmission, including:
an obtaining data unit 301, configured to obtain network data that a first workload needs to transmit to a second workload, a second network address of the second workload, and a gateway physical address; the first workload, the second workload and the gateway all work in the first cloud service unit, and a first subnet mask length corresponding to a first internet protocol address configured by the first workload is equal to a first network address length corresponding to the first internet protocol address;
a get first physical address unit 302, configured to get a first physical address of the first workload based on a first network address;
a generate first network packet unit 303, configured to generate and send a first network packet based on the first physical address, the first network address, the second network address, the gateway physical address, and the network data.
Optionally, a second subnet mask length corresponding to a second internet protocol address of the second workload configuration is equal to a second network address length corresponding to the second internet protocol address.
Optionally, the data obtaining unit 301 includes:
the first gateway network address obtaining subunit is used for obtaining a gateway network address based on the configured gateway default route;
a first address request message generation subunit, configured to generate and send an address request message based on an address resolution protocol and the gateway network address;
the first address response message receiving subunit is configured to receive an address response message returned by the first programmable switch in the first cloud service unit in response to the address request message;
and the first gateway physical address obtaining subunit is configured to analyze the address response packet and obtain the gateway physical address.
Optionally, the apparatus further includes:
the first generation configuration request message unit is used for generating and sending a configuration request message based on a dynamic host configuration protocol;
a first configuration response message receiving unit, configured to receive a configuration response message returned by a first software defined network controller in the first cloud service unit in response to the configuration request message;
a first analysis configuration response message unit, configured to analyze the configuration response message to obtain the first network address, the first subnet mask, and the gateway network address;
a first configure first internet protocol address unit to generate and configure the first internet protocol address based on the first network address and the first subnet mask;
and the first configuration gateway default routing unit is used for configuring the gateway default routing based on the gateway network address.
Optionally, the data obtaining unit 301 includes:
and the second gateway physical address acquiring subunit is used for acquiring the gateway physical address based on the configured gateway default route.
Optionally, the apparatus further includes:
a second configuration request message generation unit, configured to generate and send a configuration request message based on a dynamic host configuration protocol;
a second configuration response message receiving unit, configured to receive a configuration response message returned by the first software-defined network controller in the first cloud service unit in response to the configuration request message;
a second analysis configuration response message unit, configured to analyze the configuration response message to obtain the first network address, the first subnet mask, and the gateway network address;
a second configure first internet protocol address unit to generate and configure the first internet protocol address based on the first network address and the first subnet mask;
a second address request message generation subunit, configured to generate and send an address request message based on an address resolution protocol and the gateway network address;
a second address response message receiving subunit, configured to receive the address response message returned by the first programmable switch in the first cloud service unit in response to the address request message;
a third acquiring gateway physical address subunit, configured to analyze the address response packet and acquire the gateway physical address;
and the second configuration gateway default routing unit is used for configuring the gateway default routing based on the gateway physical address.
In the embodiment of the present disclosure, since the first subnet mask length in the first internet protocol address of the first workload is equal to the first network address length, the first workload does not send any other ARP request packet except for querying the gateway physical address. And the operating system corresponding to the first workload generally has a cache and aging mechanism of the ARP request message, so that the first workload can broadcast the ARP request message at low frequency. The occupied normal network communication bandwidth is reduced, and network jitter and CPU resource consumption are avoided, so that the safe operation of the forwarding equipment is ensured. For a user and a management program of a cloud environment, the network address in the cloud service unit can be randomly distributed in any network segment without being concerned about bottom layer implementation.
In association with the first embodiment provided by the present disclosure, the present disclosure also provides a third embodiment, that is, an embodiment of another method for network data transmission.
Referring to fig. 4, the following describes an embodiment of the present disclosure in detail with reference to the drawings, and please refer to fig. 4.
Step S401, the first programmable switch intercepts and analyzes the first network message, and obtains a first physical address, a first network address, a second network address, a gateway physical address and network data transmitted to the second workload.
The first programmable switch operates in the first cloud service unit described in the first embodiment. The first cloud service unit further comprises: a plurality of workloads, a gateway, a first programmable switch, and a first software defined network controller.
Since the first network packet is a unicast packet, the first programmable switch can identify and intercept the first network packet sent by the first workload according to the destination physical address (i.e., the gateway physical address) as described in the first embodiment.
Step S402, retrieving an address translation data set based on the gateway physical address and the second network address.
The address translation data in the address translation data set is a distribution message which is preset by the first software-defined network controller and distributed to the first programmable switch.
The first programmable switch may first find all corresponding network addresses from the address translation dataset via the gateway physical address, and then look up a second physical address matching the second network address from the corresponding network address.
Step S403, after obtaining a second physical address of the second workload, generating and sending a second network packet based on the first physical address, the first network address, the second physical address, the second network address, and the network data.
And when the matched second physical address is found, indicating that the second workload and the first workload described in the first embodiment are in the same cloud service unit, generating a second network message for forwarding. Therefore, the low-frequency broadcast ARP request message is ensured, and the occupation of normal network communication bandwidth is reduced.
After said retrieving an address translation data set based on said gateway physical address and said second network address, further comprising the steps of:
step S404, after the second physical address of the second workload is not obtained, forwarding the first network packet to the uplink port of the first programmable switch.
An add port refers to a port of an upper level switch of the first programmable switch.
And when the matched second physical address is not found, the second working load and the first working load are not in the same cloud service unit, and the first network message is forwarded to the uplink port of the first programmable switch so as to be sent to other cloud service units.
When a workload described in the first embodiment sends an address request message, the method generates and returns an address response message responding to the address request message, and includes the following steps:
step S400-11, the address request message is intercepted and analyzed, and the gateway network address is obtained.
Step S400-12, based on the gateway network address retrieval address, acquiring a corresponding gateway physical address according to the address comparison data set.
The address comparison data in the address comparison data set is issued information which is preset by the first software-defined network controller and issued to the first programmable switch. The address comparison data set comprises a corresponding relation between a gateway network address and a gateway physical address.
And S400-13, generating and returning an address response message based on an address resolution protocol and the gateway physical address.
To ensure that the first programmable switch operates according to the rules of the disclosed embodiments. The first software-defined network controller sends the down-sending information to the first programmable switch periodically and/or in real time. The issued information includes address comparison data and address conversion data.
The method further comprises the following steps:
and S400-21, receiving address comparison data issued by a first software defined network controller in the first cloud service unit, and storing the address comparison data into the address comparison data set.
Address comparison data in the address comparison data set is used by the first programmable switch to obtain a gateway physical address in order to respond to the address request message.
The method further comprises the following steps:
and S400-31, receiving address conversion data issued by a first software defined network controller in the first cloud service unit, and storing the address conversion data into the address conversion data set.
The address translation data in the address translation data set is used by the first programmable switch to obtain a second physical address for the second workload to generate a second network packet. And meanwhile, the method is also used for judging whether the second workload works in the same cloud service unit as the first workload.
In the prior art, an address translation data set (e.g., a physical address forwarding table in a switch) needs to maintain all physical addresses in a local area network. In the embodiment of the disclosure, the forwarding only depends on the second network address of the second workload, so that the amount of the issued information is reduced by at least half compared with the prior art. The efficiency of issuing information is improved, and user experience is improved.
Based on the above first embodiment and the present embodiment, a comprehensive description is made on a method for network data transmission, and fig. 5 shows a comprehensive flow chart of another method for network data transmission according to an embodiment of the present disclosure.
As shown in fig. 5, for example, the first workload (i.e., the first workload described in the first embodiment) sends an ARP request for querying the gateway MAC address; the first programmable switch intercepts the ARP request, adds the obtained gateway MAC address into an ARP response, and returns the ARP response to the first working load; the first working load sends a first network message including network data to a first programmable switch, the network data is data needing to be transmitted to a second working load, a source MAC address of the first network message is an MAC address of the first working load, and a destination MAC address of the first network message is a gateway MAC address; the first programmable switch intercepts a first network message, identifies a destination MAC address, judges whether the destination MAC address is a gateway MAC address, if not, forwards the first network message to an uplink port of the first programmable switch, and if so, inquires address conversion data according to the destination IP address, wherein the address conversion data is issued by a first software defined network controller; the first programmable switch changes the source MAC address into a gateway MAC address, and changes the destination MAC address into the MAC address of the second workload, and generates a second network message; to the second workload.
In the embodiment of the disclosure, a small number of ARP request messages sent by the first workload described in the first embodiment are intercepted and processed on the first programmable switch, so that no broadcast message exists in the whole first cloud service unit, and it is ensured that network communication is not affected by increase of the scale of the cloud service unit. Because the forwarding only depends on the second network address of the second workload, compared with the prior art, the amount of the issued information is reduced by at least half. The efficiency of issuing information and user experience are improved. Meanwhile, for the user and the management program of the cloud environment, the underlying implementation is not needed to be concerned, and the network address in the cloud service unit can be randomly distributed in any network segment.
Corresponding to the third embodiment provided by the present disclosure, the present disclosure also provides a fourth embodiment, that is, another apparatus for network data transmission. Since the fourth embodiment is basically similar to the third embodiment, the description is simple, and the related portions should be referred to the corresponding description of the third embodiment. The device embodiments described below are merely illustrative.
Fig. 6 shows an embodiment of an apparatus for network data transmission provided by the present disclosure. The device is applied to the first cloud service unit.
Referring to fig. 6, the present disclosure provides another apparatus for network data transmission, including:
a first network message analyzing unit 601, configured to intercept and analyze a first network message by a first programmable switch, and obtain a first physical address, a first network address, a second network address, a gateway physical address, and network data transmitted to a second workload; the first programmable switch operates in a first cloud service unit;
a retrieve address translation dataset unit 602 for retrieving an address translation dataset based on the gateway physical address and the second network address;
a second network message generating unit 603, configured to generate and send a second network message based on the first physical address, the first network address, the second physical address, the second network address, and the network data after acquiring a second physical address of the second workload.
Optionally, in the apparatus, the apparatus further includes:
and forwarding to an uplink port unit, configured to forward the first network packet to the uplink port of the first programmable switch when the second physical address of the second workload is not obtained.
Optionally, the apparatus further includes: returning an address response message unit;
the return address response message unit further includes:
a third acquiring gateway network address subunit, configured to intercept and analyze the address request packet, and acquire a gateway network address;
a fourth acquiring gateway physical address subunit, configured to acquire a corresponding gateway physical address based on the gateway network address retrieval address comparison data set;
and the return address response message subunit is used for generating and returning an address response message based on an address resolution protocol and the gateway physical address.
Optionally, the apparatus further includes:
and the address comparison data storage unit is used for receiving the address comparison data issued by the first software-defined network controller in the first cloud service unit and storing the address comparison data into the address comparison data set.
Optionally, the apparatus further includes:
and the address conversion data storage unit is used for receiving the address conversion data issued by the first software defined network controller in the first cloud service unit and storing the address conversion data into the address conversion data set.
In the embodiment of the disclosure, a small number of ARP request messages sent by the first workload described in the first embodiment are intercepted and processed on the first programmable switch, so that no broadcast message exists in the whole first cloud service unit, and it is ensured that network communication is not affected by increase of the scale of the cloud service unit. Because the forwarding only depends on the second network address of the second workload, compared with the prior art, the amount of the issued information is reduced by at least half. The efficiency of issuing information and user experience are improved. Meanwhile, for the user and the management program of the cloud environment, the underlying implementation is not needed to be concerned, and the network address in the cloud service unit can be randomly distributed in any network segment.
The embodiment of the present disclosure provides a fifth embodiment, that is, an electronic device, where the electronic device is used in a method for network data transmission, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of network data transmission as described in the first embodiment.
The disclosed embodiments provide a sixth embodiment, which is a computer storage medium for network data transmission, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the method for network data transmission as described in the first embodiment.
The seventh embodiment of the present disclosure provides an electronic device, which is a method for network data transmission, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of network data transmission according to the third embodiment.
The present disclosure provides an eighth embodiment, which is a computer storage medium for network data transmission, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the method for network data transmission as described in the third embodiment.
Referring now to fig. 7, there is shown a schematic diagram of an electronic device suitable for use in implementing a fifth or seventh embodiment of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device may include a processing device (e.g., central processing unit, graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage device 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.