Network Packet Transmission Device and Network Packet Transmission Method Thereof
Abstract
The present disclosure provides a network packet transmission device and a network packet transmission method thereof. The network packet transmission method includes: receiving a network packet, wherein the network packet has at least one packet attribute; determining at least one destination VID for the network packet according to the at least one packet attribute; determining a transmission speed corresponding to the at least one destination VID based on at least one LAN speed table; and transmitting the network packet to a VLAN corresponding to the at least one destination VID according to the transmission speed.
Claims (20)
1. A network packet transmission method, comprising: receiving a network packet, wherein the network packet has at least one packet attribute; determining at least one destination virtual local area network identification (VID) of the network packet according to the at least one packet attribute; determining a transmission speed corresponding to the at least one destination VID based on at least one local area network speed table; and transmitting the network packet to a virtual local area network (VLAN) corresponding to the at least one destination VID according to the transmission speed.
11. A network packet transmission device, comprising: a transceiver; a memory, configured to store at least one local area network speed table; and a processors, electrically connected to the transceiver and the memory and configured to: receive a network packet via transceiver, wherein the network packet has at least one packet attribute; determine at least one destination virtual local area network identification (VID) of the network packet according to the at least one packet attribute; determine a transmission speed corresponding to the at least one destination VID based on at least one local area network speed table; and transmit the network packet to a virtual local area network (VLAN) corresponding to the at least one destination VID via transceiver according to the transmission speed.
Show 18 dependent claims
2. The network packet transmission method of claim 1 , wherein the at least one packet attribute comprises a source VID.
3. The network packet transmission method of claim 2 , wherein the at least one packet attribute comprises a priority of the source VID.
4. The network packet transmission method of claim 1 , wherein the step of determining a transmission speed corresponding to the at least one destination VID based on at least one local area network speed tables further comprises: determining a speed index value corresponding to the at least one destination VID based on the at least one local area network speed table; and determining the transmission speed corresponding to the speed index value.
5. The network packet transmission method of claim 4 , wherein the step of determining the transmission speed corresponding to the speed index value further comprises: determining the transmission speed corresponding to the speed index value based on a transmission speed correspondence table.
6. The network packet transmission method of claim 1 , wherein the at least one destination VID comprises a first destination VID and a second destination VID.
7. The network packet transmission method of claim 6 , wherein the at least one local area network speed table comprises a first local area network speed table and a second local area network speed table.
8. The network packet transmission method of claim 7 , wherein the step of, determining the transmission speed corresponding to the at least one destination VID based on the at least one local area network speed table further comprises: determining a first speed index value and a second speed index value corresponding to the first destination VID and the second destination VID, respectively, based on the first local area network speed table and the second local area network speed table, wherein at least one of the first speed index value and the second speed index value is valid; and determining the transmission speed corresponding to the valid first speed index value or the valid second speed index value.
9. The network packet transmission method of claim 8 , wherein the first speed index value and the second speed index value correspond to a first valid status field and a second valid status field, respectively.
10. The network packet transmission method of claim 7 , wherein the step of determining the transmission speed corresponding to the valid first speed index value or the valid second speed index value further comprises: determining the transmission speed corresponding to the valid first speed index value or the valid second speed index value based on a transmission speed correspondence table.
12. The network transmission device of claim 11 , wherein the at least one packet attribute comprises a source VID.
13. The network transmission device of claim 12 , wherein the at least one packet attribute comprises a priority of the source VID.
14. The network transmission device of claim 11 , wherein the processors is further configured to: determining a speed index value corresponding to the at least one destination VID based on the at least one local area network speed table; and determining the transmission speed corresponding to the speed index value.
15. The network transmission device of claim 14 , wherein the processors is further configured to: determining the transmission speed corresponding to the speed index value based on a transmission speed correspondence table.
16. The network transmission device of claim 11 , wherein the at least one destination VID comprises a first destination VID and a second destination VID.
17. The network transmission device of claim 16 , wherein the at least one local area network speed table comprises a first local area network speed table and a second local area network speed table.
18. The network transmission device of claim 17 , wherein the processors is further configured to: determining a first speed index value and a second speed index value corresponding to the first destination VID and the second destination VID, respectively, based on the first local area network speed table and the second local area network speed table, wherein at least one of the first speed index value and the second speed index value is valid; and determining the transmission speed corresponding to the valid first speed index value or the valid second speed index value.
19. The network transmission device of claim 18 , wherein the first speed index value and the second speed index value correspond to a first valid status field and a second valid status field, respectively.
20. The network transmission device of claim 17 , wherein the processors is further configured to: determining the transmission speed corresponding to the valid first speed index value or the valid second speed index value based on a transmission speed correspondence table.
Full Description
Show full text →
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims priority of China application No. 202211115332.5 filed on Sep. 14, 2022, which is incorporated by reference in its entirety.
BACKGROUND
Field of the Invention
The present invention relates generally to network packet transmission device and network packet transmission method thereof, in particular, to network packet transmission device and network packet transmission method thereof under virtual local network.
Description of Related Art
With to the advancement of network technology, various network applications have been developed. With the increase of various network application services, the burden of network loading has become more and more heavy; however, the network resources available to users are limited. Therefore, one goal in the related field is to make continuous efforts to prioritize the network services according to the urgency and importance of the network applications and to achieve the differentiated network services, so as to ensure the quality of important network applications and enhance the user experience.
BRIEF SUMMARY OF THE INVENTION
Some embodiments of the present invention provide a network packet transmission method. The network packet transmission method includes: receiving a network packet, wherein the network packet has at least one packet attribute; determining at least one destination virtual local area network identification (VID) of the network packet according to the at least one packet attribute; determining a transmission speed corresponding to the at least one destination VID based on at least one local area network speed table; and transmitting the network packet to a virtual local area network (VLAN) corresponding to the at least one destination VID according to the transmission speed.
Some embodiments of the present invention provide a network packet transmission device. The network packet transmission device includes: a transceiver, a memory and a processor. The memory is configured to store at least one local area network speed table. The processor is electrically connected to the transceiver and the memory and configured to: receive a network packet via transceiver, wherein the network packet has at least one packet attribute; determine at least one destination VID of the network packet according to the at least one packet attribute; determine a transmission speed corresponding to the at least one destination VID based on at least one local area network speed table; and transmit the network packet to a VLAN corresponding to the at least one destination VID via transceiver according to the transmission speed.
BRIEF DESCRIPTION OF THE DRAWINGS
Aspects of the present invention are best understood from the following detailed description when read with the accompanying figures. It is noted that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
FIG. 1 A is a block diagram illustrating a network packet transmission device according to some embodiments of the present disclosure.
FIG. 1 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure.
FIG. 1 C is a schematic diagram illustrating the local area network table according to some embodiments of the present disclosure.
FIG. 2 A is a block diagram illustrating a network packet transmission device according to some embodiments of the present disclosure.
FIG. 2 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure.
FIG. 2 C is a schematic diagram illustrating the local area network table according to some embodiments of the present disclosure.
FIG. 3 A is a block diagram illustrating a network packet transmission device according to some embodiments of the present disclosure.
FIG. 3 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure.
FIG. 3 C is a schematic diagram illustrating the local area network tables according to some embodiments of the present disclosure.
FIG. 4 is a flowchart of a network packet transmission method according to some embodiments of the present disclosure.
FIG. 5 is a flowchart of a network packet transmission method according to some embodiments of the present disclosure.
FIG. 6 is a flowchart of a network packet transmission method according to some embodiments of the present disclosure.
DETAILED DESCRIPTION
Embodiments of the present invention are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative and do not limit the scope of the disclosure.
Reference is made to FIG. 1 A , which is a block diagram illustrating a network packet transmission device 1 according to some embodiments of the present disclosure. In some embodiments, the network packet transmission device 1 includes: a transceiver 11 , a memory 13 and a processors 15 . The memory 13 stores a local area network table 130 , wherein the local area network table 130 records a correspondence between the virtual local area network identification (VID) and the network speed. The processors 15 and the transceiver 11 is electrically connected to the memory 13 . The related packet transmission operations are further discussed below.
Reference is made to both FIG. 1 B and FIG. 1 C . FIG. 1 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure, and FIG. 1 C is a schematic diagram illustrating the local area network table 130 according to some embodiments of the present disclosure. Specifically, the processors 15 receives a network packet 90 via the transceiver 11 from a virtual local area network (VLAN) A 11 . In this case, the network packet 90 has at least one packet attribute 90 A. The processors 15 determines at least one destination VID of the network packet 90 according to at least one packet attribute 90 A.
In these embodiments, at least one destination VID includes a first destination VID L 10 . After determining first destination VID L 10 of the network packet 90 , the processors 15 determines a transmission speed SP 10 corresponding to the first destination VID L 10 based on the local area network speed table 130 . Next, the processors 15 transmits the network packet 90 to a VLAN A 12 corresponding to the first destination VID L 10 via the transceiver 11 according to the transmission speed SP 10 . For example, the transmission speed SP 10 is 50 Mbps, and the speed that the processors 15 transmits the network packet 90 to the VLAN A 12 via the transceiver 11 is limited to 50 Mbps at most.
Reference is made to FIG. 2 A , which is a block diagram illustrating a network packet transmission device 2 according to some embodiments of the present disclosure. In some embodiments, the network packet transmission device 2 includes: a transceiver 21 , a memory 23 and a processors 25 . The memory 23 stores a local area network table 230 and a transmission speed correspondence table 232 , wherein the local area network table 230 records a correspondence between the VID and the speed index value, and the transmission speed correspondence table 232 records a correspondence between the speed index value and the transmission speed. The processors 25 is electrically connected to the transceiver 21 and the memory 23 . The related packet transmission operations are further discussed below.
Reference is made to both FIG. 2 B and FIG. 2 C . FIG. 2 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure, and FIG. 2 C is a schematic diagram illustrating the local area network table 230 and the transmission speed correspondence table 232 according to some embodiments of the present disclosure. Specifically, the processors 25 receives a network packet 80 via the transceiver 21 from a VLAN A 21 . In this case, the network packet 80 has at least one packet attribute 80 A.
In some embodiments, the at least one packet attribute 80 A includes a source VID and a priority of the source VID. For example, when VID of the VLAN A 21 is L 29 , the source VID is L 29 , and the information service of the VLAN A 21 has a high priority. In this way, the processors 25 determines at least one destination VID of the network packet 80 according to at least one packet attribute 80 A.
In these embodiments, at least one destination VID includes a first destination VID L 20 . After determining the first destination VID L 20 of the network packet 80 , the processors 25 determines a speed index value IN 20 corresponding to the first destination VID L 20 based on the local area network speed table 230 . Next, the processors 25 determines a transmission speed SP 20 corresponding to the speed index value IN 20 based on the transmission speed table 232 . In this way, the processors 25 transmits the network packet 80 to a VLAN A 22 corresponding to the first destination VID L 20 via the transceiver 21 according to the transmission speed SP 20 . For example, the transmission speed SP 20 is 100 Mbps, and the speed that the processors 25 transmits the network packet 80 to the VLAN A 22 via the transceiver 21 is limited to 100 Mbps at most.
Reference is made to FIG. 3 A , which is a block diagram illustrating a network packet transmission device 3 according to some embodiments of the present disclosure. In some embodiments, the network packet transmission device 3 includes: a transceiver 31 , a memory 33 and a processors 35 . The memory 33 stores local area network tables 330 A, 330 B and a transmission speed correspondence table 332 .
The local area network tables 330 A, 330 B respectively records a correspondence between the VID, the speed index value and valid status field, and the transmission speed correspondence table 332 records a correspondence between the speed index value and the transmission speed. The processors 35 is electrically connected to the transceiver 31 and the memory 33 . The related packet transmission operations are further discussed below.
Reference is made to both FIG. 3 B and FIG. 3 C . FIG. 3 B is a schematic diagram illustrating a network framework according to some embodiments of the present disclosure, and FIG. 3 C is a schematic diagram illustrating the local area network tables 330 A, 330 B and the transmission speed correspondence table 332 according to some embodiments of the present disclosure. Specifically, the processors 35 receives a network packet 70 via the transceiver 31 from a VLAN A 31 . In this case, the network packet 70 has at least one packet attribute 70 A.
In some embodiments, the at least one packet attribute 70 A includes a source VID and a priority of the source VID. For example, when VID of the VLAN A 31 is L 39 , the source VID is L 39 , and the information service of the VLAN A 31 has a high priority. In this way, the processors 35 determines at least one destination VID of the network packet 70 according to at least one packet attribute 70 A.
In these embodiments, the network packet transmission device 3 supports QinQ network, and said at least one destination VID includes a first destination VID L 30 (such as S-VID in QinQ network) and a second destination VID L 32 (such as C-VID in QinQ network). After determining the first destination VID L 30 and the second destination VID L 32 of the network packet 70 , the processors 25 determines a speed index value IN 30 corresponding to the first destination VID L 30 and a speed index value IN 32 corresponding to the second destination VID L 32 based on the local area network speed table 330 A, 330 B, respectively.
In these embodiments, the validity field of the speed index value IN 30 corresponding to the first destination VID L 30 is “invalid,” and the validity field of the speed index value IN 32 corresponding to the second destination VID L 32 is “valid.” In this way, the processors 35 determines the transmission speed using the speed index value IN 32 corresponding to the second destination VID L 32 . Next, the processors 35 determines a transmission speed SP 32 corresponding to the speed index value IN 32 based on the transmission speed table 332 . In this way, the processors 35 transmits the network packet 70 to a VLAN A 32 corresponding to the second destination VID L 32 via the transceiver 31 according to the transmission speed SP 32 . For example, the transmission speed SP 32 is 150 Mbps, and the speed that the processors 35 transmits the network packet 70 to the VLAN A 32 via the transceiver 31 is limited to 150 Mbps at most.
Some embodiments of the present disclosure include a network packet transmission method, which is shown in the flowchart of FIG. 4 . The network packet transmission method of these embodiments is implemented using a network packet transmission device (such as the network packet transmission device according to the above embodiments), and the detailed operations of the method are as follows. First, step S 401 is execute to receive a network packet. In this case, the network packet has at least one packet attribute. Step S 402 is execute to determine at least one destination VID of the network packet according to at least one packet attribute. Step S 403 is execute to determine a transmission speed corresponding to at least one destination VID based on at least one local area network speed table. Step S 404 is execute to transmit the network packet to a VLAN corresponding to at least one destination VID according to the transmission speed.
Some embodiments of the present disclosure include a network packet transmission method, which is shown in the flowchart of FIG. 5 . The network packet transmission method of these embodiments is implemented using a network packet transmission device (such as the network packet transmission device according to the above embodiments), and the detailed operations of the method are as follows. First, step S 501 is execute to receive a network packet. The network packet has at least one packet attribute. In these embodiments, said at least one packet attribute includes the source VID, a priority of the source VID or a combination of the foregoing.
Step S 502 is execute to determine at least one destination VID of the network packet according to at least one packet attribute. Step S 503 is execute to a speed index value corresponding to at least one destination VID based on at least one local area network speed table. Step S 504 is execute to determine a transmission speed corresponding to the speed index value based on a transmission speed correspondence table. Step S 505 is execute to transmit the network packet to a VLAN corresponding to at least one destination VID according to the transmission speed.
Some embodiments of the present disclosure include a network packet transmission method, which is shown in the flowchart of FIG. 6 . The network packet transmission method of these embodiments is implemented using a network packet transmission device (such as the network packet transmission device according to the above embodiments), and the detailed operations of the method are as follows. First, step S 601 is executed to receive a network packet. The network packet has at least one packet attribute. In these embodiments, said at least one packet attribute includes the source VID, a priority of the source VID or a combination of the foregoing.
Step S 602 is execute to determine a first destination VID and a second destination VID of the network packet according to at least one packet attribute. Step S 603 is execute to determine a first speed index value and a second speed index value respectively corresponding to the first destination VID and the second destination VID based on a first local area network speed table and a second local area network speed table. Step S 604 is execute to determine a transmission speed corresponding to the valid first speed index value or the valid second speed index value. Step S 605 is execute to transmit the network packet to a VLAN corresponding to the first destination VID or the second destination VID according to the transmission speed.
In summary, the present invention provides a network packet transmission device and a network packet transmission method to achieve differentiated network services using VID and the corresponding local area network speed table under the architecture of virtual local area network, thus ensuring the quality of important network application services and enhancing the user experience.
While this invention has been described with specific embodiments thereof, it is evident that many alternatives, modifications, and variations may be apparent to those skilled in the art. For example, various components of the embodiments may be interchanged, added, or substituted in the other embodiments. Also, all of the elements of each figure are not necessary for operation of the disclosed embodiments. For example, one of ordinary skill in the art of the disclosed embodiments would be enabled to make and use the teachings of the invention by simply employing the elements of the independent claims. Accordingly, embodiments of the invention as set forth herein are intended to be illustrative, not limiting. Various changes may be made without departing from the spirit and scope of the invention.
Citations
This patent cites (13)
- US7292577
- US8824485
- US10880208
- US11509428
- US20020191628
- US20040028058
- US20120224494
- US20130208718
- US20180159729
- US20180375821
- US20230250017
- US100372321
- US107566267