CN113098800B - Data forwarding method and device, electronic equipment and medium - Google Patents
Data forwarding method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN113098800B CN113098800B CN202110206588.6A CN202110206588A CN113098800B CN 113098800 B CN113098800 B CN 113098800B CN 202110206588 A CN202110206588 A CN 202110206588A CN 113098800 B CN113098800 B CN 113098800B
- Authority
- CN
- China
- Prior art keywords
- channel
- identifier
- target
- frame data
- binding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a data forwarding method, a data forwarding device, electronic equipment and a medium. By applying the technical scheme of the application, when the central node of the communication network receives the downlink frame data to be forwarded, the communication channel corresponding to the data frame to be forwarded at this time can be determined according to the flow forwarding table and the channel binding type table which are generated in advance and record the available communication channel allowing the data frame, and the data frame to be forwarded is transmitted on the channel. Therefore, the problem that the data packets arrive at the receiving end to generate disorder caused by different transmission rates or transmission delays on each transmission channel in the related technology is avoided.
Description
Technical Field
The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for data forwarding.
Background
Due to the rise of the communication era and society, network service processing by using a communication network system has become a normal state.
Further, the demand for transmission bandwidth due to network traffic is increasing. Methods for increasing the bandwidth of a transmission network include various methods, such as increasing the efficiency of a transmission protocol, increasing the frequency band width occupied by a transmission signal, or using a channel bonding method. Among them, channel bonding is an attractive network capacity upgrade scheme and is widely applied in the field of wireless and wired communication. The basic principle of the channel bonding technology is to add one transmission channel in a transmission network to a plurality of transmission channels, and bond the plurality of channels into one logical channel for service transmission in the network. The scheme has good expansibility, and different network bandwidth improvements can be obtained by changing the number of channel bindings.
However, when the channel bonding technique is adopted in the related art, the channel bonding mechanism usually adopts a plurality of channels to transmit services in parallel, and since the transmission rate or the transmission delay on each channel is different, a problem of out-of-order occurs when a data packet reaches a receiving end.
Disclosure of Invention
An embodiment of the present application provides a method, an apparatus, an electronic device, and a medium for data forwarding, where according to an aspect of an embodiment of the present application, the provided method for data forwarding is applied to a central node, and includes:
acquiring a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, wherein the stream identifier is used for representing the category of the downlink frame data;
searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table;
searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers;
and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier.
Optionally, in another embodiment based on the foregoing method of the present application, before looking up the first channel bonding identifier that is correspondingly bonded to the destination address parameter in the preset channel bonding type table, the method further includes:
receiving frame data sent by a terminal node, and extracting a source address parameter of the frame data;
determining each second channel identifier corresponding to the source address parameter of the frame data, wherein the second channel identifier is used for representing a channel set capable of transmitting the frame data;
and binding the source address parameter of each frame data with the corresponding second channel identifier one by one, and recording each binding relationship into the channel binding type table.
Optionally, in another embodiment based on the foregoing method of the present application, the acquiring, according to downlink frame data to be forwarded in a target communication network, a destination address parameter and a stream identifier corresponding to the downlink frame data further includes:
extracting the destination address parameter carried in the downlink frame data; and (c) a second step of,
and calculating the stream identifier corresponding to the downlink frame data according to a preset stream classification rule.
Optionally, in another embodiment based on the foregoing method of the present application, the searching for the target channel identifier matching the first channel bonding identifier and the flow identifier in the preset flow forwarding table includes:
determining a channel allowing the transmission of the flow identification in a channel corresponding to the first channel binding identification based on the flow forwarding table;
and taking the channel identifier allowing the flow identifier to be transmitted as the target channel identifier.
Optionally, in another embodiment based on the foregoing method of the present application, the searching for the target channel identifier matching the first channel bonding identifier and the flow identifier in the preset flow forwarding table includes:
if the number of the communication channels matched with the first channel binding identifier and the flow identifier is determined to be multiple, the communication load state of each communication channel is detected;
and selecting the communication channel with the lowest communication load state from the plurality of communication channels as the target communication channel.
Optionally, in another embodiment of the method based on the foregoing application, the searching for a target channel identifier matching the first channel bonding identifier and the flow identifier in a preset flow forwarding table includes:
if the target channel identification matched with the first channel binding identification and the flow identification is not found in the flow forwarding table, acquiring a channel load condition corresponding to the first channel binding identification;
and taking the channel with the lowest communication load state as the target channel identifier matched with the first channel binding identifier and the flow identifier.
Optionally, in another embodiment based on the method described above, the target communication network is a coaxial cable access network HINOC; and the destination address parameter is a MAC address parameter.
According to another aspect of the embodiments of the present application, there is provided an apparatus for forwarding data, where the apparatus is applied to a central node, and the apparatus includes:
the system comprises an acquisition module, a forwarding module and a forwarding module, wherein the acquisition module is configured to acquire a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, and the stream identifier is used for representing the category of the downlink frame data;
the searching module is configured to search a first channel binding identifier which is bound correspondingly with the destination address parameter in a preset channel binding type table;
the searching module is configured to search a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers;
and the transmission module is configured to package and transmit the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for displaying with the memory to execute the executable instructions to perform the operations of any of the above-described data forwarding methods.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which when executed perform the operations of any one of the above-mentioned data forwarding methods.
In the application, the destination address parameter and the stream identifier corresponding to the downlink frame data can be obtained according to the downlink frame data to be forwarded in the target communication network, and the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. By applying the technical scheme of the application, when the downlink frame data to be forwarded is received, the communication channel corresponding to the data frame to be forwarded at this time can be determined according to the flow forwarding table and the channel binding type table which are generated in advance and record the available communication channel allowing the data frame, and the data frame to be forwarded is transmitted on the channel. Therefore, the problem that the data packets arrive at the receiving end to generate disorder caused by different transmission rates or transmission delays on each transmission channel in the related technology is avoided.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a data forwarding method according to the present application;
fig. 2 is a schematic diagram of a system architecture for obtaining a HINOC communication network according to the present application;
fig. 3 is a schematic diagram of a system architecture for data forwarding according to the present application;
fig. 4 is a schematic structural diagram of an electronic device for data forwarding according to the present application;
fig. 5 is a schematic structural diagram of an electronic device for data forwarding according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all directional indicators (such as up, down, left, right, front, back, 8230; \8230;) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for data forwarding according to an exemplary embodiment of the present application is described below in conjunction with fig. 1-3. It should be noted that the following application scenarios are merely illustrated for facilitating understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in any way in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a data forwarding method, a data forwarding device, a target terminal and a medium.
Fig. 1 schematically shows a flow chart of a method for data forwarding according to an embodiment of the present application. As shown in fig. 1, the method is applied to a central node, and includes:
s101, according to the downlink frame data to be forwarded in the target communication network, acquiring destination address parameters and a stream identifier corresponding to the downlink frame data, wherein the stream identifier is used for representing the category of the downlink frame data.
First, it should be noted that the present application does not limit the target communication network, that is, the target communication network may be any communication network. In one possible implementation, the target communication network may be a high performance coax access network (HINOC), which is a technology for implementing network communication using coaxial cable channels. At present, the first generation technology of HINOC (HINOC 1.0) and the second generation technology of HINOC (HINOC 2.0) are both China radio and television industry standards, and the standard numbers are GY/T265 and GY/T297 respectively. Further, the two generations of technology HINOC1.0 and HINOC2.0 are also ITU-T international standards, the J.195 and J.196 standards, respectively.
The HINOC protocol stack is shown in fig. 2 and includes technical details of two parts, a physical layer (PHY layer) and a medium access control layer (MAC layer). The PHY layer defines a HINOC signal transmission mode, such as a physical layer frame structure, channel coding, and modulation techniques. The MAC layer implements media access control and service adaptation functions in the HINOC system, and may be divided into two sublayers: the Convergence Sublayer (CS) realizes the adaptation of the CPS function and the high-level function, and comprises address learning and forwarding table construction, priority mapping, data frame framing/deframing and data frame retransmission; the Common Part Sublayer (CPS) implements media access control and channel allocation, node admission/exit, and link maintenance functions.
In one approach, embodiments of the present application are described by way of example with a high performance coaxial cable broadband access system (HINOC 2.0). The bandwidth of a single channel of HINOC2.0 is 128MHz, the transmission bandwidth of 700Mbps can be provided, a central node of HINOC2.0 is called HB, and end nodes are called HM. Specifically, network transmission bandwidth is upgraded for the HINOC2.0, and the following three schemes, including a HINOC central office device (HB) and a terminal device (HM), exist:
scheme one, the HB and HM of HINOC2.0 are replaced with the HB and HM of HINOC3.0, and HINOC3.0 can provide a transmission capacity of up to 10 Gbps. However, the cost of the scheme is high, and the conditions of large-scale application are not met when the HINOC3.0 technical standard, chips and equipment are developed.
And in the second scheme, based on chips and equipment of the HINOC2.0, the IEEE802.3ad link aggregation function of the mature switching chip is adopted for channel binding, but the application scene of the scheme has great limitation, namely that the channel binding numbers of HB and HM in the whole network are required to be ensured to be completely consistent to solve the correctness of stream forwarding. If the HB in the network is 4-channel binding HB and the HM simultaneously has single-channel binding HM, double-channel binding HM and 4-channel binding HM, the IEEE802.3ad link aggregation scheme is no longer applicable.
And thirdly, based on the channel binding data forwarding method. A channel binding data forwarding module is added at the upstream of a multi-channel HINOC2.0 channel transmission module of an HB (hybrid high performance network data network) so as to realize the channel binding data forwarding method. The scheme can solve the mixed networking scene of various HM channel binding types in the second scheme.
It should be noted that the channel-bound data forwarding module in scheme 3 may be a circuit module unit, independent of the plurality of HINOC2.0 chips; the chip can also be jointly packaged with a plurality of HINOC2.0 chips; it can also be designed into the HINOC2.0 chip. In addition, the HINOC2.0 channel bonding in the embodiment of the present application refers to the bonding of multiple 128MHz single channels, where each 128MHz single channel corresponds to one HINOC2.0 chip or module.
In addition, in the present application, the destination address parameter carried in the downlink frame data is not specifically limited, and may be, for example, a MAC address, an IP address, or the like.
In addition, the stream identifier in the present application may be obtained by calculating the data frame according to a preset stream classification rule. Wherein the flow identifier is used to reflect the category of the downlink data frame. The category of the data frame is not specifically limited, and may be divided into an image frame, a video frame, a key frame, a category of the terminal node, and the like.
S102, searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table.
S103, searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers.
In the related art, after an HINOC network receives an upper layer service data stream, the upper layer service data stream is generally divided into a plurality of independent data streams, and a sending end transfers data packets belonging to the same service data stream (the same session) to the same transmission channel, so that the data packets in the same service stream are guaranteed to be unchanged. The method is widely applied to an Ethernet switch, namely an IEEE802.3ad link aggregation function (LACP). The method has low complexity and does not need to modify the original transmission signal.
However, this method is highly limited when applied to point-to-multipoint communication. In a point-to-multipoint network, the number of bonding channels that can be used between a central node and each terminal node is not exactly the same, and the central node needs to correctly forward a traffic stream to an available channel of the terminal node. That is, once a certain communication channel cannot transmit due to a failure or the like, data forwarding failure may be caused.
In order to solve the above problem, according to the present application, when frame data is received, based on a destination address parameter carried by the frame data, a first channel identifier correspondingly bound to the destination address parameter is searched from a preset channel binding type table, so that data is subsequently forwarded on a communication channel corresponding to the channel identifier. Therefore, the defect that the method can only be applied to the communication between two directly-connected terminal nodes and can not be applied to a single-point to multi-point communication network in the related technology is overcome.
For example, when the present application receives downlink frame data, the target address parameter may be extracted from the frame data. And then searching a first channel identifier (namely the identifier of the channel A, the identifier of the channel B and the identifier of the channel C) which is correspondingly bound with the destination address parameter from a preset channel binding type table. Further, the stream identifier corresponding to the downstream frame data (e.g., corresponding to the image frame category) may also be calculated according to a preset stream classification rule. Finally, the first channel identifier (i.e. the identifier of channel a, the identifier of channel B, the identifier of channel C) and the stream identifier corresponding to the image frame category may be matched in a preset stream forwarding table, that is, for example, when three channels of channel a, channel B, and channel C are recorded in the stream forwarding table, only channel C is allowed to transmit the data frame of the image frame category. The identity of channel C may be determined to be the target channel identity.
The channel bonding type table may be a table that is generated in advance and is used for determining a communication channel through which frame data can be transmitted. For example, the table of trusted channel binding types may be indexed by a MAC address, and is used to record and maintain channel binding information from the central node to a certain terminal node or a user host under the certain terminal node. The learning of the channel bonding type table may be performed by first receiving an ethernet frame sent by a certain terminal node, extracting a source MAC address of the ethernet frame, and determining a bonding id (i.e., a channel identifier) of a channel bonding type identifier corresponding to the MAC address, where the bonding id represents a bonding channel set available between a center node and the terminal node. And then records the MAC address and the BondingID in a channel bonding type table.
And S104, packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier.
In the application, the destination address parameter and the stream identifier corresponding to the downlink frame data can be obtained according to the downlink frame data to be forwarded in the target communication network, and the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. By applying the technical scheme of the application, when the downlink frame data to be forwarded is received, the communication channel corresponding to the data frame to be forwarded at this time can be determined according to the stream forwarding table and the channel binding type table which are generated in advance and record the available communication channel allowing the data frame, and the data frame to be forwarded is transmitted on the channel. Therefore, the problem that the data packets arrive at the receiving end to generate disorder caused by different transmission rates or transmission delays on each transmission channel in the related technology is avoided.
Optionally, in another embodiment based on the foregoing method of the present application, before looking up the first channel bonding identifier that is bonded corresponding to the destination address parameter in a preset channel bonding type table, the method further includes:
receiving frame data sent by a terminal node, and extracting a source address parameter of the frame data;
determining each second channel identifier corresponding to the source address parameter of the frame data, wherein the second channel identifiers are used for representing a channel set capable of transmitting the frame data;
and binding the source address parameters of the frame data with the corresponding second channel identifiers one by one, and recording the binding relations into a channel binding type table.
In one mode, the channel bonding type table may be a table that is generated by default and is used to determine a communication channel through which frame data can be transmitted. For example, one or more frame data transmitted by one or more end nodes may be received first, destination address parameters (e.g., MAC address, IP address, etc.) of the frame data are extracted, and then a bindingid (i.e., a second channel identifier) of a channel binding type identifier corresponding to the destination address parameters is determined, where the bindingid represents a set of binding channels available between the central node and the end nodes. And then binding the destination address parameter of each frame data with the corresponding second channel identifier one by one, and recording each binding relationship into a channel binding type table.
The first number is not specifically limited in the present application, and may be, for example, 10, 100, or the like.
For further example, the embodiment of the present application may receive an ethernet frame sent by a certain HM, and extract a source MAC address of the ethernet frame; determining a channel binding type identifier (BondingID) corresponding to the MAC address, wherein the BondingID represents an available binding channel set between the HB and the HM; and recording the MAC address and the BondingID into a channel binding type table.
Wherein the following table is a logical example of the channel bonding type table:
as can be seen from the table, the first column in the table may store the MAC address, which is used as an index for the channel bonding type table, and usually stores not the MAC address directly, but the HASH value of the MAC address calculated by a specific function; the second column is a BondingID corresponding to the MAC address; the third column represents the HINOC bonded channel set represented by a certain BondingID, with each number in the set representing a 128MHz HINOC2.0 channel. Wherein the set of bonded channels represented by the same BondingID is the same, the third column of information may not be stored in the channel bonding type table, but may be stored in a separate table.
Optionally, in another embodiment based on the foregoing method of the present application, the obtaining, according to downlink frame data to be forwarded in a target communication network, a destination address parameter and a stream identifier corresponding to the downlink frame data further includes:
extracting a destination address parameter carried in downlink frame data; and (c) a second step of,
and calculating the stream identifier corresponding to the downlink frame data according to a preset stream classification rule.
The destination address parameter may be carried by the downlink frame data, and the destination address parameter may be, for example, a MAC address, an IP address, or the like. In addition, the stream identifier in the present application may be obtained by calculating the data frame according to a preset stream classification rule. Wherein the flow identifier is used to reflect the category of the downlink data frame. The category of the data frame is not specifically limited in the present application, and may be divided into an image frame, a video frame, a key frame, a service session category to which the data frame belongs, and the like.
Optionally, in another embodiment of the method based on the present application, searching for a target channel identifier matching the first channel bonding identifier and the flow identifier in a preset flow forwarding table includes:
determining a channel allowing the transmission of the flow identifier in the channel corresponding to the first channel binding identifier based on the flow forwarding table;
and taking the channel identification allowing the flow identification transmission as the target channel identification.
Optionally, in another embodiment based on the foregoing method of the present application, finding a target channel identifier matching the first channel bonding identifier and the flow identifier in a preset flow forwarding table includes:
if the number of the communication channels matched with the first channel binding identifier and the flow identifier is determined to be multiple, the communication load state of each communication channel is detected;
and selecting the communication channel with the lowest communication load state from the plurality of communication channels as a target communication channel.
Further, as shown in fig. 3, if it is detected that there are a plurality of communication channels currently in the process of looking up the first channel identifier bound correspondingly to the destination address parameter from the channel binding type table, then the communication load status of each communication channel may be sequentially obtained. For example, the communication quality, the communication traffic, and the like may be included, and the communication channel with the lowest communication load state may be selected as the first communication channel and data frame forwarding may be performed.
For example, when the present application receives downlink frame data, the target address parameter may be extracted from the frame data. And then, the first channel identifier (i.e. identifier of channel D, identifier of channel E, and identifier of channel F) bound correspondingly to the destination address parameter is searched from a preset channel binding type table. Further, the stream identifier corresponding to the downstream frame data (e.g., corresponding to the image frame category) may also be calculated according to a preset stream classification rule. Finally, the stream identifier corresponding to the first channel identifier (i.e. the identifier of channel D, the identifier of channel E, the identifier of channel F) and the stream identifier corresponding to the image frame category may be matched in a preset stream forwarding table, that is, for example, when three channels of channel D, channel E and channel F are recorded in the stream forwarding table, only the data frames of channel E and channel F in the image frame category are allowed to be transmitted. The identities of channel E, F may be determined to be target channel identities.
Still further, when it is determined that the number of the channels E and F is plural, the communication load states of the channels E and F may be detected in one manner, and the communication channel E with the lowest communication load state may be used as the target communication channel. And then, the downlink frame data may be encapsulated and transmitted on the channel E.
Optionally, in another embodiment based on the foregoing method of the present application, forwarding downlink frame data in the first communication channel includes:
dividing the downlink frame data into a second number of sub-frame data according to a preset flow classification rule;
respectively endowing each subframe data with a unique stream label;
and forwarding each sub-frame data endowed with the unique stream label in sequence in the first communication channel.
Furthermore, the method and the device can add the only stream mark number at the sending end to help the receiving end to reorder according to the displacement sequence number, thereby ensuring the integrity of data transmission. Specifically, after the sending end receives the frame data, the sending end may add a sequence number field to each data packet in the data frame, the sequence number is sequentially increased to represent the front-back sequence of each sub-data frame, and then sequentially send the data packets to which the sequence numbers are added to the plurality of transmission channels for transmission. Therefore, the receiving end is ensured to reorder according to the sequence numbers in the received data packets, the original sequence of the data packets is recovered, and the sequence numbers are deleted.
In the present application, the second number is not specifically limited, and may be, for example, 10, 100, or the like. In addition, the flow classification rule is not specifically limited in the present application, and may be, for example, a flow classification rule generated according to a frame type, a flow classification rule generated according to a data size, or the like.
Optionally, in another embodiment of the method based on the present application, searching for a target channel identifier matching the first channel bonding identifier and the flow identifier in a preset flow forwarding table includes:
if the target channel identifier matched with the first channel binding identifier and the flow identifier is not found in the flow forwarding table, acquiring a channel load condition corresponding to the first channel binding identifier;
and taking the channel with the lowest communication load state as the first channel binding identifier and the target channel identifier matched with the flow identifier.
Further, in the data frame forwarding process, when the search result in the channel binding type table is empty, the primary stream forwarding learning process is triggered, specifically, the load of the available binding channel corresponding to the channel identifier can be obtained first, the channel with the minimum communication load and the channel number corresponding to the data frame are bound and recorded, and the record is stored in the channel binding type table.
For example, when the result of looking up the flow table by the two-dimensional information (the first channel identifier, the flow identifier) in the flow forwarding process is empty, a flow forwarding learning process will be triggered once. The method comprises the steps of obtaining the load of an available bonding channel corresponding to a first channel identifier, selecting a channel with the minimum load as a channel number corresponding to the (first channel identifier, the flow identifier), and recording the channel number into a flow forwarding table.
Optionally, in another embodiment based on the method described above, the target communication network is a coaxial cable access network HINOC.
Optionally, in another embodiment based on the method described above, the destination address parameter is a MAC address parameter.
In the application, the destination address parameter and the stream identifier corresponding to the downlink frame data can be obtained according to the downlink frame data to be forwarded in the target communication network, and the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. By applying the technical scheme of the application, when the downlink frame data to be forwarded is received, the communication channel corresponding to the data frame to be forwarded at this time can be determined according to the flow forwarding table and the channel binding type table which are generated in advance and record the available communication channel allowing the data frame, and the data frame to be forwarded is transmitted on the channel. Therefore, the problem that the data packets arrive at the receiving end to generate disorder caused by different transmission rates or transmission delays on each transmission channel in the related technology is avoided.
In another embodiment of the present application, as shown in fig. 4, the present application further provides a data forwarding apparatus. Wherein, the method is applied to a central node, and comprises an obtaining module 201, a searching module 202, and a transmitting module 203, wherein,
an obtaining module 201, configured to obtain, according to downlink frame data to be forwarded in a target communication network, a destination address parameter and a stream identifier corresponding to the downlink frame data, where the stream identifier is used to represent a category of the downlink frame data;
a searching module 202, configured to search a preset channel binding type table for a first channel binding identifier that is bound correspondingly to the destination address parameter;
the searching module 202 is configured to search, in a preset stream forwarding table, a target channel identifier matching the first channel bonding identifier and the stream identifier, where the target channel identifier is one of the first channel bonding identifiers;
a transmission module 203 configured to perform encapsulation transmission on the downlink frame data on a target communication channel, where the target communication channel is a communication channel corresponding to the channel identifier.
In the application, the destination address parameter and the stream identifier corresponding to the downlink frame data can be obtained according to the downlink frame data to be forwarded in the target communication network, and the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. By applying the technical scheme of the application, when the downlink frame data to be forwarded is received, the communication channel corresponding to the data frame to be forwarded at this time can be determined according to the stream forwarding table and the channel binding type table which are generated in advance and record the available communication channel allowing the data frame, and the data frame to be forwarded is transmitted on the channel. Therefore, the problem that the data packets arrive at the receiving end to generate disorder caused by different transmission rates or transmission delays on each transmission channel in the related technology is avoided.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to receive frame data sent by a terminal node, and extract a source address parameter of the frame data;
an obtaining module 201, configured to determine second channel identifiers corresponding to source address parameters of the frame data, where the second channel identifiers are used to characterize a channel set that can transmit the frame data;
the obtaining module 201 is configured to bind the source address parameter of each frame data with the corresponding second channel identifier one by one, and record each binding relationship in the channel binding type table.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to extract the destination address parameter carried in the downlink frame data; and the number of the first and second groups,
the obtaining module 201 is configured to calculate a stream identifier corresponding to the downlink frame data according to a preset stream classification rule.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to determine, based on the stream forwarding table, a channel that allows transmission of the stream identifier in a channel corresponding to the first channel bonding identifier;
an obtaining module 201 configured to use a channel identifier allowing the flow identifier to be transmitted as the target channel identifier.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to detect a communication load state of each communication channel if it is determined that a plurality of communication channels matched with the first channel binding identifier and the flow identifier are searched in the flow forwarding table;
the obtaining module 201 is configured to select a communication channel with the lowest communication load state from a plurality of communication channels as the target communication channel.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to obtain a channel load condition corresponding to the first channel binding identifier if a target channel identifier matching the first channel binding identifier and the flow identifier is not found in the flow forwarding table;
the obtaining module 201 is configured to use a channel with the lowest traffic load state as the target channel identifier matching the first channel bonding identifier and the flow identifier.
In another embodiment of the present application, the target communication network is a coaxial cable access network HINOC.
In another embodiment of the present application, the destination address parameter is a MAC address parameter.
Fig. 5 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as a memory, including instructions executable by a processor of an electronic device to perform the method of data forwarding described above, the method comprising: acquiring a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, wherein the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by a processor of an electronic device to perform the above-described method of data forwarding, the method comprising: acquiring a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, wherein the stream identifier is used for representing the category of the downlink frame data; searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table; searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers; and packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above.
Fig. 5 is an exemplary diagram of the computer device 30. Those skilled in the art will appreciate that the schematic diagram 5 is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30 and may include more or less components than those shown, or combine certain components, or different components, e.g., the computer device 30 may also include input output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by hardware related to computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (9)
1. A data forwarding method is applied to a central node, and a target communication network is a coaxial cable access network (HINOC), and comprises the following steps:
acquiring a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, wherein the stream identifier is used for representing the category of the downlink frame data;
searching a first channel binding identifier which is correspondingly bound with the destination address parameter in a preset channel binding type table;
searching a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, wherein the target channel identifier is one of the first channel binding identifiers;
packaging and transmitting the downlink frame data on a target communication channel, wherein the target communication channel is a communication channel corresponding to the channel identifier;
wherein the searching for the target channel identifier matching with the first channel binding identifier and the flow identifier in the preset flow forwarding table includes:
if the number of the communication channels matched with the first channel binding identifier and the flow identifier is determined to be multiple, the communication load state of each communication channel is detected;
and selecting the communication channel with the lowest communication load state from the plurality of communication channels as the target communication channel.
2. The method as claimed in claim 1, wherein before said looking up the first channel bonding identifier corresponding to the bonding with the destination address parameter in the preset channel bonding type table, further comprising:
receiving frame data sent by a terminal node, and extracting a source address parameter of the frame data;
determining each second channel identifier corresponding to the source address parameter of the frame data, wherein the second channel identifier is used for representing a channel set capable of transmitting the frame data;
and binding the source address parameter of each frame data with the corresponding second channel identifier one by one, and recording each binding relationship into the channel binding type table.
3. The method as claimed in claim 1, wherein the obtaining, according to the downlink frame data to be forwarded in the target communication network, the destination address parameter and the stream identifier corresponding to the downlink frame data, further comprises:
extracting the destination address parameter carried in the downlink frame data; and the number of the first and second groups,
and calculating the stream identifier corresponding to the downlink frame data according to a preset stream classification rule.
4. The method as claimed in claim 1, wherein said finding the target channel id matching the first channel bonding id and the flow id in a preset flow forwarding table comprises:
determining a channel allowing the transmission of the flow identifier in a channel corresponding to the first channel binding identifier based on the flow forwarding table;
and taking the channel identifier allowing the flow identifier to be transmitted as the target channel identifier.
5. The method of claim 1, wherein the searching for the target channel identifier matching the first channel bonding identifier and the flow identifier in a preset flow forwarding table comprises:
if the target channel identification matched with the first channel binding identification and the flow identification is not found in the flow forwarding table, acquiring a channel load condition corresponding to the first channel binding identification;
and taking the channel with the lowest communication load state as the target channel identifier matched with the first channel binding identifier and the flow identifier.
6. The method of claim 1, wherein the target communication network is a coaxial cable access network, HINOC; and the destination address parameter is a MAC address parameter.
7. A data forwarding apparatus, applied to a central node, wherein a target communication network is a coax access network HINOC, comprising:
the system comprises an acquisition module, a forwarding module and a processing module, wherein the acquisition module is configured to acquire a destination address parameter and a stream identifier corresponding to downlink frame data according to the downlink frame data to be forwarded in a target communication network, and the stream identifier is used for representing the category of the downlink frame data;
the searching module is configured to search a first channel binding identifier which is bound correspondingly with the destination address parameter in a preset channel binding type table;
the searching module is configured to search a target channel identifier matched with the first channel binding identifier and the flow identifier in a preset flow forwarding table, where the target channel identifier is one of the first channel binding identifiers;
a transmission module configured to perform encapsulation transmission on the downlink frame data on a target communication channel, where the target communication channel is a communication channel corresponding to the channel identifier;
wherein, the searching for the target channel identifier matching with the first channel binding identifier and the flow identifier in the preset flow forwarding table includes:
if the number of the communication channels matched with the first channel binding identifier and the flow identifier is determined to be multiple, the communication load state of each communication channel is detected;
and selecting the communication channel with the lowest communication load state from the plurality of communication channels as the target communication channel.
8. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for display with the memory to execute the executable instructions to perform the operations of the method of data forwarding of any of claims 1-6.
9. A computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method of data forwarding of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110206588.6A CN113098800B (en) | 2021-02-24 | 2021-02-24 | Data forwarding method and device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110206588.6A CN113098800B (en) | 2021-02-24 | 2021-02-24 | Data forwarding method and device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113098800A CN113098800A (en) | 2021-07-09 |
CN113098800B true CN113098800B (en) | 2023-04-07 |
Family
ID=76667602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110206588.6A Active CN113098800B (en) | 2021-02-24 | 2021-02-24 | Data forwarding method and device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113098800B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103313100A (en) * | 2012-03-11 | 2013-09-18 | 美国博通公司 | Channel bonding with multiple network types |
WO2017156682A1 (en) * | 2016-03-14 | 2017-09-21 | 华为技术有限公司 | Data transmission method based on channel binding |
CN111049752A (en) * | 2019-12-17 | 2020-04-21 | 锐捷网络股份有限公司 | Load balancing method and device for multiple transmission lines |
CN111200830A (en) * | 2020-01-02 | 2020-05-26 | 腾讯科技(深圳)有限公司 | Data transmission method and device and electronic equipment |
CN112292818A (en) * | 2018-09-21 | 2021-01-29 | 华为技术有限公司 | Passive Optical Network (PON) channel bonding protocol |
-
2021
- 2021-02-24 CN CN202110206588.6A patent/CN113098800B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103313100A (en) * | 2012-03-11 | 2013-09-18 | 美国博通公司 | Channel bonding with multiple network types |
WO2017156682A1 (en) * | 2016-03-14 | 2017-09-21 | 华为技术有限公司 | Data transmission method based on channel binding |
CN112292818A (en) * | 2018-09-21 | 2021-01-29 | 华为技术有限公司 | Passive Optical Network (PON) channel bonding protocol |
CN111049752A (en) * | 2019-12-17 | 2020-04-21 | 锐捷网络股份有限公司 | Load balancing method and device for multiple transmission lines |
CN111200830A (en) * | 2020-01-02 | 2020-05-26 | 腾讯科技(深圳)有限公司 | Data transmission method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113098800A (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107483370B (en) | Method for transmitting IP and CAN service on FC network | |
US9306761B2 (en) | Video streaming system and method | |
US9876842B2 (en) | Offload operations for overlay networks | |
US9401876B2 (en) | Method of data delivery across a network fabric in a router or Ethernet bridge | |
CN106685826B (en) | Switchboard stacked system, from equipment, exchange chip and processing protocol message method | |
CN100553199C (en) | Method of realizing group broadcasting, system and equipment based on the PCIE switching network | |
CN109450875B (en) | MAC layer packaging method and device | |
US9813342B2 (en) | Method and system for improved load balancing of received network traffic | |
CN109698732B (en) | Method and device for transmitting data | |
CN106454394A (en) | Fast changing method of DVB channels, equipment and system | |
CN104584492A (en) | Packet processing method, device and system | |
CN109408424A (en) | A kind of SpaceFibre bus data acquisition method based on PCIe interface | |
CN104754521B (en) | A kind of message forwarding method, wireless access point, wireless controller and system | |
CN110798633A (en) | Large-scale video display control matrix equipment based on Ethernet switching technology | |
CN113098800B (en) | Data forwarding method and device, electronic equipment and medium | |
CN110677314B (en) | Network interface testing method, system, electronic device and storage medium | |
US20070140277A1 (en) | Packet transmission apparatus and processing method for the same | |
US9979561B2 (en) | Systems and methods for stacking fibre channel switches with fibre channel over ethernet stacking links | |
CN106878114A (en) | A kind of method of data transfer, server and terminal | |
CN102447637B (en) | Message processing method, system and network apparatus | |
EP3324587B1 (en) | Multicast method, multicast relay device and system | |
CN111865801B (en) | Virtio port-based data transmission method and system | |
EP3913865A1 (en) | Message decapsulation method and device, message encapsulation method and device, electronic device, and storage medium | |
WO2017088489A1 (en) | Data message transmission method and system, and communication system | |
CN113473267A (en) | Data transmission method, device and communication device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |