CN116074157A - Electronic device and frame transmission method for electronic device - Google Patents
Electronic device and frame transmission method for electronic device Download PDFInfo
- Publication number
- CN116074157A CN116074157A CN202111270261.1A CN202111270261A CN116074157A CN 116074157 A CN116074157 A CN 116074157A CN 202111270261 A CN202111270261 A CN 202111270261A CN 116074157 A CN116074157 A CN 116074157A
- Authority
- CN
- China
- Prior art keywords
- frame
- electronic device
- pause
- packet
- interframe space
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/20—Traffic policing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a frame transmission method for an electronic device, which comprises the following steps: connecting with another electronic device; receiving a pause frame from the other electronic device, wherein the pause frame comprises a plurality of interframe space control indications, wherein each of the plurality of interframe space control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times; selecting one of the frame interval control indications according to a priority of a first packet currently required to be transmitted to the other electronic device, and determining a first frame interval according to which of the packet size ranges the size of the first packet is located; and after the first packet is transmitted to the other electronic device, at least waiting for the first frame interval before starting to transmit a second frame.
Description
Technical Field
The invention relates to a frame transmission method of an electronic device.
Background
In the IEEE 802.3x specification, a pause frame is mentioned for a receiving end to transmit to a transmitting end when a network is congested, so as to inform the transmitting end to suspend transmitting packets to alleviate congestion; in addition, the transmitting end needs to wait until the pause time indicated by the pause frame expires or after the receiving end sends another packet to notify that the packet can be continuously received, and then restart transmitting the packet to the receiving end. However, in the above operation, when network congestion is encountered, the transmitting end switches between the two states of full-speed transmission and suspended transmission when transmitting packets, thereby causing uneven packet flow. In addition, the receiving end needs to always detect the state of the current packet buffer to transmit the pause frame in real time, which also causes a processing burden on the circuit of the receiving end.
Disclosure of Invention
Therefore, an objective of the present invention is to provide a packet transmission method for a network device, which can adjust a pause time after a subsequent packet transmission according to a packet size and a priority of the packet, so that an overall flow is relatively average, and a phenomenon that a receiving end is congested or accumulates due to an excessive packet being instantaneously transmitted by a transmitting end is avoided.
In one embodiment of the present invention, a frame transmission method for an electronic device is disclosed, comprising the steps of: connecting with another electronic device to establish multiple virtual channels, wherein each virtual channel has a corresponding priority; receiving a pause frame from the other electronic device, wherein the pause frame comprises a plurality of interframe space control indications, wherein each of the plurality of interframe space control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times; referring to the content of the pause frame, selecting one of the frame interval control indications according to the priority of a first packet currently required to be transmitted to the other electronic device, and determining a first frame interval according to which of the packet size ranges the size of the first packet is located; transmitting a first frame containing the first packet to the other electronic device through virtual channels corresponding to the same priority level; and after the first frame is transmitted to the other electronic device, at least waiting for the first frame interval before starting to transmit a second frame to the other electronic device.
In one embodiment of the present invention, an electronic device is disclosed for interfacing with another electronic device to establish a plurality of virtual channels, wherein each virtual channel has a corresponding priority, and the electronic device includes a receiving circuit, a frame-to-frame controller, and a transmitting circuit. The receiving circuit is configured to receive a pause frame from the other electronic device, wherein the pause frame includes a plurality of interframe space control indications, wherein each of the plurality of interframe space control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times. The interframe space controller is used for referencing the content of the pause frame, selecting one of the interframe space control indications according to the priority level of a first packet which is required to be transmitted to the other electronic device, and determining a first interframe space according to which of the packet size ranges the first packet size is located. The transmission circuit is used for transmitting a first frame containing the first packet to the other electronic device through virtual channels corresponding to the same priority level, and after the first frame is transmitted, a second frame is transmitted to the other electronic device after at least waiting for the first frame interval.
In one embodiment of the present invention, a frame transmission method for an electronic device is disclosed, comprising the steps of: connecting with another electronic device to establish multiple virtual channels, wherein each virtual channel has a corresponding priority; transmitting a pause frame to the other electronic device, wherein the pause frame comprises a plurality of interframe space control indicators, wherein each of the plurality of interframe space control indicators indicates a plurality of packet size ranges and a corresponding plurality of pause times for the other electronic device to use; and receiving a plurality of frames from the other electronic device, wherein each frame is received through a virtual channel with the same priority as the contained packet, and the interval of the plurality of frames is determined by the other electronic device according to the plurality of packet size ranges indicated by at least one of the plurality of frame interval control indications contained in the pause frame and the corresponding plurality of pause times.
In one embodiment of the present invention, an electronic device is disclosed for connecting with another electronic device to establish a plurality of virtual channels, wherein each virtual channel has a corresponding priority, and the electronic device includes a transmitting circuit and a receiving circuit. The transmitting circuit is configured to transmit a pause frame to the other electronic device, wherein the pause frame includes a plurality of frame-to-frame control indications, wherein each of the plurality of frame-to-frame control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times for use by the other electronic device. The receiving circuit is configured to receive a plurality of frames from the other electronic device, wherein each frame is received through a virtual channel having the same priority as the packet included therein, and a distance between the plurality of frames is determined by the other electronic device according to the plurality of packet size ranges indicated by at least one of the plurality of frame-distance control indications included in the pause frame and the corresponding plurality of pause times.
Drawings
FIG. 1 is a schematic diagram of a network system according to an embodiment of the invention.
Fig. 2 is a flowchart of a frame transmission method for an electronic device according to an embodiment of the invention.
FIG. 3 is a schematic diagram illustrating a plurality of virtual channels established between electronic devices.
FIG. 4 is a schematic diagram of a pause frame according to an embodiment of the invention.
FIG. 5 is a diagram illustrating a frame transmission method according to an embodiment of the present invention.
Detailed Description
FIG. 1 is a schematic diagram of a network system according to an embodiment of the invention. As shown in fig. 1, the network system includes electronic devices 110 and 120, wherein the electronic devices 110 and 120 are connected by a network line 130 for data transmission and reception, and in the present embodiment, the electronic devices 110 and 120 support a Full-Duplex Ethernet (Full-Duplex Ethernet) and IEEE 802.3x standard. The electronic device 110 comprises a processing circuit 111, a receiving circuit 112, a pause frame parser 114, a frame interval controller 116 and a transmitting circuit 118; and the electronic device 120 includes a processing circuit 121, a receiving circuit 122, a pause frame parser 124, a frame spacing controller 126, and a transmitting circuit 128. The electronic devices 110 and 120 of the present embodiment may be any electronic devices that can use a network line for data transmission and reception, such as a switch, a router, or any electronic device that can be connected to a network line. It should be noted that in another embodiment, the pause frame parser 114, the inter-frame distance controller 116 and the processing circuit 111 may be integrated in the same circuit according to practical design requirements, but the invention is not limited thereto.
In operation of the electronic device 110, reference is made simultaneously to the flow chart shown in fig. 2. In step 200, the process starts, and the electronic device 110 establishes a connection with the electronic device 120 and starts to perform signal transmission and reception. In this embodiment, the electronic device 110 and the electronic device 120 can establish multiple virtual channels (virtual lanes) on a single ethernet link, such as eight virtual channels 310_1-310_8 shown in fig. 3, wherein the virtual channels 310_1-310_8 can be individually suspended or restarted, i.e. when one of the virtual channels is suspended to transmit packets, the packet transmission of the other virtual channels can not be interrupted, and since the content of the virtual channel can refer to the standard content of IEEE 802.1Qbb and is well known to those having ordinary skill in the art, the related details will not be repeated. In addition, each virtual channel is assigned a priority level (in one embodiment, the priority level may be Class of Service (CoS)), where the number of priority levels may be eight, that is, each virtual channel has one of eight priority levels, but the invention is not limited thereto.
In step 202, the receiving circuit 112 receives the frame/packet from the electronic device 120 via the network line 130, parses (burst) the received frame, and then sends the parsed frame to the processing circuit 111 for subsequent processing, whereas in the present embodiment, the receiving circuit 112 receives a pause frame from the electronic device 120, and sends the pause frame to the pause frame parser 114 for parsing. In step 204, the pause frame parser 114 parses the received pause frame, and determines whether the pause frame conforms to a specific format, if not, the flow proceeds to step 206; if yes, the flow proceeds to step 208. Specifically, referring to fig. 4, a pause frame 400 according to an embodiment of the present invention includes a plurality of fields, where the pause frame 400 may include a 6-byte destination address (destination address), a 6-byte source address (source address), a 2-byte frame type (type), a 2-byte opcode (opcode), a plurality of 2-byte frame gap (inter frame gap) control indications (eight frame gap control indications # 0 to #7 in the present embodiment), and eight sets of time information, where one frame gap control indication corresponds to a set of time information, for example, the frame gap control indication # 0 points to time information #0_0 to #0_n0, the frame gap control indication #1 points to time information #1_0 to #1_n1, …, and the frame gap control indication #7 points to time information #7_0 to #7_n7. It should be noted that the destination address, source address, type and operation code in the pause frame 400 shown in fig. 4 are fields defined by the IEEE 802.3x specification, and the contents and functions thereof are described with reference to the IEEE 802.3x specification. In the present embodiment, since only a partial codeword has a definition for an opcode of 2 bytes in the IEEE 802.3x specification, the pause frame 400 can indicate that the pause frame 400 has a specific format by setting the opcode to a codeword that is not yet defined in the IEEE 802.3x specification, for example, 0 xfd. In the present embodiment, if the content of the opcode is defined in the current IEEE 802.3x specification, for example, opcode 0x0001, the pause frame parser 114 determines that the received pause frame does not conform to the specific format; if the content of the opcode matches a codeword corresponding to a particular format, e.g., 0xfd, then the pause frame parser 114 determines that the received pause frame matches the particular format.
The main content of the pause frame 400 conforming to the specific format is the operation code, the interframe space control indicator, and the time information, and the operation and definition of the remaining fields are described with reference to the IEEE 802.3x specification, so the operation code, the interframe space control indicator, and the time information are mainly described in the following description.
In step 206, since the pause frame received by the receiving circuit 112 does not conform to a specific format, flow control of the IEEE 802.3x specification is performed. The operation of the electronic device 110 may skip the inter-frame distance controller 116 and the transmitting circuit 118 pauses the transmission of the subsequent frames until a pause time indicated in the pause frame expires or the receiving circuit 112 receives a message that the transmission may be restarted.
In step 208, the interframe space controller 116 stores the interframe space control instructions # 0 to #7 and the corresponding time information in the internal buffer or memory for determining the interframe space during the subsequent frame transmission. Specifically, the frame interval control indicators # 0 to #7 may respectively correspond to different priority levels (e.g., service types (CoS)), and each frame interval control indicator and the corresponding time information may be regarded as including a plurality of packet size ranges and corresponding pause times, when the processing circuit 111 needs to transmit data to the electronic device 120, the transmitting circuit 118 may transmit the related information of the packet size to be transmitted to the frame interval controller 116, and the frame interval controller 116 determines the corresponding pause time according to the priority level of the packet to be transmitted to the electronic device 120 and the packet size, and determines the frame interval according to the pause time after the transmitting circuit 118 transmits the current packet to the electronic device 120 for a pause time (i.e., the frame interval). In this embodiment, the interframe space controller 116 may determine the priority of the packet by checking the priority field (priority field) of the header (header) of the virtual local area network (Virtual Local Area Network) of the packet, for example, to determine which of eight priority the packet belongs to, and the packet size may be the size of the packet actually sent by the network layer (network layer), the data link layer (data link layer) or the physical layer (physical layer) included in the frame.
Describing the operation of the interframe space controller 116 in detail, it is assumed in the following embodiments that the interframe space controller 116 selects the interframe space control indication # 0 according to the priority of the packets currently being transmitted to the electronic device 120, and the interframe space control indication # 0 may be used to represent a plurality of packet size ranges. For example, the frame interval control indicator # 0 comprises 2 bytes (16 bits), wherein bits 0-3 can be used to represent 16 or less valid index values, and bits 4-15 can be used to represent a parameter INC, wherein the packet size range represented by the frame interval control indicator # 0 can be as shown in the following table:
index value | |
0 | PKT_S<64B |
1 | 64B≤PKT_S<64B+INC |
2 | 64B+INC≤PKT_S<64B+2*INC |
3 | 64B+2*INC≤PKT_S<64B+3*INC |
… | … |
15 | 64B+14*INC≤PKT_S |
List one
In the context of Table one, "PKT_S" is used to indicate the size of the packet, "B" is used to indicate bytes, and the parameter INC may be any suitable value, such as 64 bytes.
In one embodiment, each of the time information #0_0 to #0_n0 corresponding to the frame interval control indication # 0 includes 2 bytes (16 bits), wherein bits 0 to 3 may be used to represent a pause time calculated using a packet size, and bits 4 to 15 may be used to represent a fixed pause time, wherein the time information #0_0 to #0_n0 may be as shown in the following table two:
watch II
In the contents of table two, time information #0_0 corresponds to index value "0" of table one, time information #0_1 corresponds to index value "1" of table one, time information #0_2 corresponds to index value "2" of table one, …, and so on. "T" is used to indicate the length of the pause time, where "T" may be 8 bits of time (bit time) and one bit of time is the time required for the electronic device 110 to transmit 1 bit of data; for example, for a 100Mbps (Million bits per second megabits per second) Ethernet network, the 1-bit time is 10 nanoseconds; whereas for 1000Mbps ethernet, the 1 bit time is 1 nanosecond. In addition, the pause time calculated using the packet size may directly take an integer part of the calculation result, and the pause time of the time information #0_0 to #0_n0 is the sum of the pause time calculated using the packet size and the fixed pause time of the table two.
In an example, assuming that the transmitting circuit 118 is ready to transmit 130 bytes of packets to the electronic device 120, when the parameter INC is set to 64 bytes, the packet size corresponds to the index value "2" of table one, and thus the calculation of the pause time corresponds to the time information #0_2 of table two, wherein the pause time calculated using the packet size is 65×t and the fixed pause time is 2*T, and thus the pause time calculated by table two is 67×t.
After determining the pause time of the frame to be transmitted by the transmission circuit 118, the interframe space controller 116 can determine the interframe space based on the pause time. Specifically, since IEEE 802.3x defines a minimum default interval at which the interval between two consecutive frames is at least 96 bits, the interframe space controller 116 can add 96 bits to the pause time calculated from table two above to obtain the final interframe space. For example, assuming that the current transmitting circuit 118 is ready to transmit 130 bytes of packets to the electronic device 120, the calculated pause time is 67×8 bits according to table two, the final determined frame spacing by the frame spacing controller 116 is (96+67×8 bits).
It should be noted that the above-mentioned calculation of the pause time and the interframe space is merely an example, and is not meant to limit the invention, as long as the interframe space controller 116 can determine different interframe spaces according to the priority and the packet size of the packets to be transmitted, the contents of the first and second tables can be modified correspondingly, or can be integrated into a single lookup table to determine the corresponding interframe space directly according to the packet size, and the related implementation variations fall under the scope of the invention.
In addition, the above embodiment is described with reference to the frame interval control indication # 0 and the corresponding time information #0_0 to #0_n0, in other embodiments, if the packets to be transmitted to the electronic device 120 have different priority levels (e.g. the packets need to be transmitted through different virtual channels later), the frame interval controller 116 may select other frame interval control indications and the corresponding time information, which have different parameters, that is, the packet size range and the parameter INC in the table one and the pause time and the fixed pause time calculated by using the packet size in the table two are different according to the different priority levels.
In step 210, the transmitting circuit 118 selects virtual channels corresponding to the same priority according to the priority of the packet, and transmits the frame to the electronic device 120 through the virtual channels corresponding to the same priority, and the flow returns to step 208. For example, if the priority field of the header of the virtual lan of the packet indicates that the priority of the packet is "0", the packet is transmitted through the virtual channel 310_1; if the priority field of the packet's vlan header indicates a priority of "1", the packet is transmitted through the virtual channel 310_2, …, and so on. In addition, after completing the frame transmission, the transmission circuit 118 pauses the transmission of the next frame after a period of time so that the next frame has the determined frame spacing from the currently transmitted frame. In detail, assuming that the transmission circuit 118 needs to sequentially transmit the first frame, the second frame and the third frame, the interframe space controller 116 may determine the first interframe space corresponding to the first frame and the second interframe space corresponding to the second frame according to the above mechanism, so that the first frame starts to transmit the second frame after a time for suspending the first interframe space after the transmission is finished, and the second frame starts to transmit the third frame after a time for suspending the second interframe space after the transmission is finished.
It should be noted that, if the pause frame transmitted by the electronic device 120 is the pause frame 400 shown in fig. 4, the interframe space controller 116 stores the packet size range and the corresponding pause time or interframe space information recorded in each interframe space control instruction # 0 to #7 and the corresponding time information recorded in the pause frame 400, and then each time the transmitting circuit 118 needs to transmit the packet, the interframe space controller 116 determines the interframe space between the packet and the next frame after the packet is transmitted according to the priority level and the packet size of each packet, so as to accurately control the network traffic of the electronic device 110 transmitted to the electronic device 120, thereby avoiding the problem of serious uneven transmission speed of the electronic device 110 in the prior art. In addition, since the information of the packet size range and the corresponding pause time or frame interval recorded in the pause frame 400 is temporarily stored in the memory or the buffer in the frame interval controller 116 for long-term use, the electronic device 120 may not need to frequently send the pause frame to the electronic device 110, but only need to transmit a new pause frame 400 to update the packet size range and the corresponding pause time or frame interval when needed (e.g., when network congestion occurs suddenly), so that each packet has a larger frame interval after transmission.
In addition, since the network interface of the electronic device 110, 120 must not have a higher rate than the network provider's promised information rate (Committed Information Rate, CIR), the electronic device 110, 120 can switch between the full-speed transmission and the suspended transmission states if the electronic device 110, 120 uses the highest rate for transmission. Therefore, the electronic device 120 can determine the packet size range and the corresponding pause time or frame interval information according to the above-mentioned promised information rate, and load the pause frame 400 with the information to transmit to the electronic device 110, so that the traffic between the electronic devices 110, 120 is relatively even.
In the above description of the embodiment, the electronic device 110 receives the pause frame from the electronic device 120, determines the frame interval according to the priority of the packet and the packet size, and then transmits the frame to the electronic device 120, however, since the electronic device 110, 120 supports the full duplex ethernet network, the electronic device 120 can similarly receive the pause frame from the electronic device 110, and determine the frame interval according to the priority of the packet and the packet size, and then transmit the frame to the electronic device 110. Since the processing circuit 121, the receiving circuit 122, the pause frame parser 124, the inter-frame distance controller 126 and the transmitting circuit 128 of the electronic device 120 are operated identically or similarly, the processing circuit 111, the receiving circuit 112, the pause frame parser 114, the inter-frame distance controller 116 and the transmitting circuit 118 of the electronic device 110 are operated similarly, the details thereof will not be repeated.
FIG. 5 is a diagram illustrating a frame transmission method according to an embodiment of the present invention. In fig. 5, it is assumed that the electronic device 110 sequentially transmits packets of the virtual channels 310_1, 310_2, 310_1, 310_4 to the electronic device 120, and the virtual channels 310_1, 310_2, 310_4 have different priority levels from each other, and when the electronic device 110 receives a pause frame from the electronic device 120, the electronic device 110 may determine the frame interval according to the priority level and the packet size of the packets currently required to be transmitted to the electronic device 120 as described in the above embodiments at the beginning of time t 1. As shown in fig. 5, the electronic device 110 uses the first interval to transmit the packet of the virtual channel 310_1, uses the second interval to transmit the packet of the virtual channel 310_2, uses the first interval to transmit the packet of the virtual channel 310_1 (assuming that the packet of the virtual channel 310_1 is similar or identical to the previous packet in size), and uses the third interval to transmit the packet of the virtual channel 310_4. As described above, the electronic device 110 only needs to receive the pause packet once, and the frame interval suitable for each packet can be calculated according to the information in the pause packet, such as the frame interval control indications # 0 to #7 and the corresponding time information, so that the electronic device 110 can use a stable transmission rate to transmit the packet.
Briefly summarized, in the electronic device and related frame transmission method of the present invention, after receiving a pause frame from another electronic device, an inter-frame distance controller in the electronic device can determine a frame distance required for a subsequent transmission frame according to information recorded in the pause frame. By the invention, the flow between the electronic devices can be properly controlled, so that the problem that the frame transmission is always switched between the full-speed transmission state and the pause transmission state when the network is congested in the prior art is avoided, and the other electronic device does not need to always transmit the pause frame to cause processing burden.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Claims (10)
1. A frame transmission method for an electronic device, comprising:
connecting with another electronic device to establish multiple virtual channels, wherein each virtual channel has a corresponding priority;
receiving a pause frame (pause frame) from the other electronic device, wherein the pause frame comprises a plurality of interframe space control indications, wherein each of the plurality of interframe space control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times;
referring to the content of the pause frame, selecting one of the frame interval control indications according to the priority of a first packet currently required to be transmitted to the other electronic device, and determining a first frame interval according to which of the packet size ranges the size of the first packet is located;
transmitting a first frame containing the first packet to the other electronic device through virtual channels corresponding to the same priority level; and
after the first frame is transmitted to the other electronic device, a second frame is transmitted to the other electronic device after waiting at least for the first frame interval.
2. The frame transmission method of claim 1, wherein the plurality of pause times are not identical.
3. The frame transmission method according to claim 2, wherein the step of determining the first frame interval according to which of the plurality of packet size ranges the size of the first packet is located comprises: determining a first pause time according to which of the plurality of packet size ranges the size of the first packet currently required to be transmitted to the other electronic device is located; and
the first frame interval is calculated according to the first pause time and a minimum preset interval.
4. The frame transmission method according to claim 3, wherein the step of determining the first pause time according to which of the plurality of packet size ranges the size of the first packet currently required to be transmitted to the other electronic device is located comprises:
determining a pause time calculated using a packet size and a fixed pause time according to which of the plurality of packet size ranges the size of the first packet currently required to be transmitted to the other electronic device is located; and
the first pause time is calculated based on the pause time calculated using the packet size and the fixed pause time.
5. The frame transmission method according to claim 1, further comprising:
the frame interval control instructions contained in the pause frame, the packet size ranges indicated by each frame interval control instruction and the pause times corresponding to the frame interval control instructions are temporarily stored in the electronic device so as to determine the frame intervals corresponding to the frames which are subsequently transmitted to the other electronic device.
6. An electronic device for connecting with another electronic device to establish a plurality of virtual channels, wherein each virtual channel has a corresponding priority, and the electronic device comprises:
a receiving circuit configured to receive a pause frame (pause frame) from the other electronic device, wherein the pause frame includes a plurality of interframe space control indications, wherein each of the plurality of interframe space control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times;
an interframe space controller for referencing the content of the pause frame, selecting one of the interframe space control indications according to a priority of a first packet currently being transmitted to the other electronic device, and determining a first interframe space according to which of the plurality of packet size ranges the size of the first packet is located; and
the transmission circuit is used for transmitting a first frame containing the first packet to the other electronic device through virtual channels corresponding to the same priority level, and after the first frame is transmitted, the transmission circuit starts to transmit a second frame to the other electronic device at least after waiting for the first frame interval.
7. The electronic device of claim 6, wherein the priority of the first packet is a Class of Service (CoS).
8. The electronic device of claim 6, wherein the plurality of interframe space control indications correspond to different priority levels, respectively, and the plurality of packet size ranges and the corresponding plurality of pause times included in each of the plurality of interframe space control indications are not identical.
9. The electronic device of claim 6, wherein the interframe space controller references the content of the pause frame and determines a second interframe space based on which of the plurality of packet size ranges the size of a second packet currently required to be transmitted to the other electronic device is located; and the transmission circuit transmits the second frame containing the second packet to the other electronic device through the virtual channel corresponding to the same priority level, and after the second frame is transmitted to the other electronic device, the transmission circuit starts transmitting a third frame to the other electronic device at least after waiting for the second frame interval.
10. An electronic device for connecting with another electronic device to establish a plurality of virtual channels, wherein each virtual channel has a corresponding priority, and the electronic device comprises:
a transmitting circuit configured to transmit a pause frame to the other electronic device, wherein the pause frame includes a plurality of frame-to-frame control indications, wherein each of the plurality of frame-to-frame control indications indicates a plurality of packet size ranges and a corresponding plurality of pause times for use by the other electronic device; and
a receiving circuit for receiving a plurality of frames from the other electronic device, wherein each frame is received through a virtual channel having the same priority as the packet included therein, and the intervals of the plurality of frames are determined by the other electronic device according to the plurality of packet size ranges indicated by at least one of the plurality of frame interval control indications included in the pause frame and the corresponding plurality of pause times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111270261.1A CN116074157A (en) | 2021-10-29 | 2021-10-29 | Electronic device and frame transmission method for electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111270261.1A CN116074157A (en) | 2021-10-29 | 2021-10-29 | Electronic device and frame transmission method for electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116074157A true CN116074157A (en) | 2023-05-05 |
Family
ID=86177230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111270261.1A Pending CN116074157A (en) | 2021-10-29 | 2021-10-29 | Electronic device and frame transmission method for electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116074157A (en) |
-
2021
- 2021-10-29 CN CN202111270261.1A patent/CN116074157A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106134138B (en) | Congestion control method, equipment and system | |
US7796521B2 (en) | Method and apparatus for policing bandwidth usage for a home network | |
US7957293B2 (en) | System and method to identify and communicate congested flows in a network fabric | |
US8867356B2 (en) | Credit-based flow control for ethernet | |
EP1280302A2 (en) | Multiple virtual channels for use in network devices | |
CN111800351B (en) | Congestion notification packet generation by a switch | |
CN104158762B (en) | FPGA based process-level message filtering and bandwidth control method | |
US9729459B2 (en) | System and method for credit-based link level flow control | |
US20150215224A1 (en) | Positive feedback ethernet link flow control for promoting lossless ethernet | |
WO2010099718A1 (en) | Method and equipment for controlling data tranmission, and system thereof | |
US20080192633A1 (en) | Apparatus and method for controlling data flow in communication system | |
US11601375B2 (en) | Electronic device and frame transmission method of electronic device | |
US8908510B2 (en) | Communication link with intra-packet flow control | |
JP2011049659A (en) | Communication apparatus and communication method | |
CN114070796B (en) | Electronic device and frame transmission method for electronic device | |
JP2008118281A (en) | Communication device | |
CN116074157A (en) | Electronic device and frame transmission method for electronic device | |
US11757789B2 (en) | Electronic device and frame transmission method of electronic device | |
CN109219944B (en) | System and method for reducing MTU size in packet networks | |
JPH10164131A (en) | Method for controlling congestion | |
US11442432B2 (en) | Communication device and method for data transmission within an industrial communication network | |
JP4593991B2 (en) | COMMUNICATION DEVICE AND COMMUNICATION BAND CONTROL METHOD | |
JP6281338B2 (en) | Transmission apparatus and transmission method | |
JP2009239451A (en) | Arrival check and relay processing check type network device and system, and frame transfer method | |
CN117412120A (en) | Video transmission method, video transmission device, system, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |