CN112003816B - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN112003816B
CN112003816B CN202010577104.4A CN202010577104A CN112003816B CN 112003816 B CN112003816 B CN 112003816B CN 202010577104 A CN202010577104 A CN 202010577104A CN 112003816 B CN112003816 B CN 112003816B
Authority
CN
China
Prior art keywords
message
information
field
packet
check
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
Application number
CN202010577104.4A
Other languages
Chinese (zh)
Other versions
CN112003816A (en
Inventor
余昌胜
罗清
任小雷
何菲菲
张丰涛
刘文彬
曹思益
彭虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN202010577104.4A priority Critical patent/CN112003816B/en
Publication of CN112003816A publication Critical patent/CN112003816A/en
Application granted granted Critical
Publication of CN112003816B publication Critical patent/CN112003816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, data transmission equipment and a storage medium. The data transmission method comprises the following steps: receiving a first message; adding the information of the first message to a first field in the first message to obtain a second message; the size of the first message is not smaller than that of the second message; and sending the second message. Therefore, the information of the first message is added to the original field in the first message, and the information of the first message is transmitted under the condition that the message bytes are not increased. And when the information of the first message is sent, the service bandwidth cannot be occupied, and the bandwidth utilization rate of the Ethernet interface cannot be reduced.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
In the field of communications, in order to improve the service carrying capacity of the existing optical cable, there is a wide application scenario: the sending end assembles a plurality of independent low-speed interfaces into 1 high-speed interface, packages a plurality of low-speed interface messages into high-speed interface messages, and transmits the high-speed interface messages to the receiving end through the high-speed interface. The receiving end de-assembles the high-speed interface into a plurality of independent low-speed interfaces, and restores the high-speed interface message received by the high-speed interface into a plurality of independent low-speed interface messages.
Meanwhile, the high-speed interface messages sent by the sending end need to carry information of each low-speed interface message, so that the receiving end can distinguish each low-speed interface message in the high-speed interface messages according to the information and send the low-speed interface messages to the corresponding low-speed interfaces. Therefore, the receiving end can accurately restore the high-speed interface message into a plurality of low-speed interface messages corresponding to independent low-speed interfaces.
Therefore, how to carry management information in high-speed interface messages has become a hot spot of current research.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method, apparatus, device and storage medium, which enable a high-speed interface packet to carry information of a low-speed interface packet.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a sending end, where the method includes:
receiving a first message;
adding the information of the first message to a first field in the first message to obtain a second message; the size of the first message is not smaller than that of the second message;
and sending the second message.
In some embodiments, the adding the information of the first packet to a first field in the first packet to obtain a second packet includes:
and adding the receiving interface information, the destination interface information and the control information of the first message to the first field to obtain a second message.
In some embodiments, the information of the first packet further includes: and reserving information.
In some embodiments, the reservation information comprises at least one of: frame identification information and numbering information;
wherein the number information is used for representing the interface number and/or the priority of transmission.
In some embodiments, the frame identification information is used to determine the type of the second packet.
In some embodiments, the control information is used to indicate a processing manner of the second packet and/or the first packet;
wherein the processing mode of the second message or the first message comprises at least one of the following: transmitting the first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning the second message, and discarding the second message;
wherein the number of the target interface comprises at least one of: the interface number in the receiving interface information, the interface number in the destination interface information, and the interface number indicated by the number information.
In some embodiments, the first field comprises at least one of: a preamble field, a data field, and a check field.
In some embodiments, in a case where the first field includes the check field, the information of the first packet further includes check information.
In some embodiments, the verification information is obtained by verifying the first packet according to a first verification method.
In some embodiments, before the obtaining the second packet, the method further comprises:
checking the first message according to a second checking method to obtain a second checking result;
and when the second check result is the same as the check information corresponding to the check field in the first message, determining to add the information of the first message to the first field.
In some embodiments, after the receiving the first packet, the method further comprises:
determining whether to generate a management message carrying the information of the first message according to the relation between the performance parameter of the network and a first threshold; or determining whether to generate a management message carrying the information of the first message according to the relationship between the performance parameter of the network and a first threshold and whether the first field meets the condition of carrying the information of the first message;
and sending the first message and the management message under the condition of determining to generate the management message.
In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a receiving end, where the method includes:
receiving a second message; the second message is obtained by adding the information of the first message to the first field in the first message; the size of the first message is not smaller than that of the second message;
analyzing the second message, and acquiring the first message and the information of the first message;
and processing the first message and/or the second message according to the information of the first message.
In some embodiments, the parsing the second packet to obtain the first packet includes:
analyzing the second message, and determining information corresponding to a first field in the first message;
and acquiring the first message based on the information corresponding to the first field.
In some embodiments, the analyzing the second packet and determining information corresponding to the first field in the first packet includes:
and under the condition that the first field comprises a check field, acquiring check information corresponding to the check field in the first message according to the second message and a second check method.
In some embodiments, the parsing the second packet and obtaining the information of the first packet includes:
and analyzing each field in the second message to obtain receiving interface information, target interface information and control information of the first message.
In some embodiments, the parsing the second packet and obtaining the information of the first packet further includes:
analyzing each field in the second message to obtain the reserved information of the first message;
wherein the reservation information comprises at least one of: frame identification information and numbering information.
In some embodiments, the processing the first packet and/or the second packet according to the information of the first packet includes:
and processing the first message and/or the second message based on control information in the information of the first message.
In some embodiments, after said receiving the second packet, the method further comprises:
according to the second message, a third verification result is obtained according to the first verification method;
and when the third check result is the same as the check information corresponding to the check field in the second message, determining to analyze the second message.
In some embodiments, the method further comprises:
receiving a management message carrying the information of the first message and the first message;
and processing the first message according to the information of the first message.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a sending end, where the apparatus includes:
the first message receiving module is used for receiving a first message;
a second message obtaining module, configured to add information of the first message to a first field in the first message to obtain a second message; the size of the first message is not smaller than that of the second message;
and the sending module is used for sending the second message.
In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a receiving end, where the apparatus includes:
the second message receiving module is used for receiving a second message; the size of the first message is not smaller than that of the second message;
the analysis module is used for analyzing the second message to obtain the first message and the information of the first message;
and the first processing module is used for processing the first message and/or the second message according to the information of the first message.
In a fifth aspect, an embodiment of the present application provides an apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the data transmission method as provided in any embodiment of the present application.
In a sixth aspect, an embodiment of the present application provides a computer storage medium, where a data transmission program is stored on the computer storage medium, and the data transmission program, when executed by a processor, implements the steps of the data transmission method provided in any embodiment of the present application.
The data transmission method provided by the above embodiment includes: receiving a first message; adding the information of the first message to a first field in the first message to obtain a second message; the size of the first message is not smaller than that of the second message; and sending the second message. In this way, the information of the first message is added to the original field in the first message, so that the information of the first message is sent without increasing message bytes. And when the information of the first message is sent, the service bandwidth cannot be occupied, and the bandwidth utilization rate of the Ethernet interface cannot be reduced.
Drawings
Fig. 1 is a diagram of an application scenario of a data transmission method provided in this application.
Fig. 2 is a schematic processing flow diagram of a data transmission method according to an embodiment of the present application.
Fig. 3 is a schematic processing flow diagram of another data transmission method according to an embodiment of the present application.
Fig. 4 is a schematic processing flow diagram of another data transmission method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a first packet according to an embodiment of the present application.
Fig. 6a is a schematic structural diagram of a second packet according to an embodiment of the present application.
Fig. 6b is a schematic structural diagram of a reserved field according to an embodiment of the present application.
Fig. 7 is a schematic processing flow diagram of another data transmission method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of another data transmission device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of another apparatus provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will describe the specific technical solutions of the present application in further detail with reference to the accompanying drawings in the embodiments of the present application. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
To facilitate understanding of the present invention, a brief description will be given of the related art of interface convergence.
Currently, in ethernet, link aggregation control protocol is usually used to bind multiple physical interfaces into one logical interface, so that the multiple physical interfaces form one link aggregation group to improve link bandwidth and link reliability.
Fig. 1 is a diagram illustrating an application scenario of a data transmission method. The application scenario includes a customer service switch 11 corresponding to the station a, a station device 12, a station device 13, and a customer service switch 14 corresponding to the station B. The station A equipment and the station B equipment respectively converge a plurality of low-speed interfaces into a high-speed interface. For example, when the low-speed interface is a 10GE (Gigabit Ethernet) interface, the station a device and the station B device respectively aggregate 10GE interfaces into a 100GE high-speed interface.
When the a-station device serves as a transmitting end and the B-station device serves as a receiving end, the a-station device receives a message transmitted from the customer service exchange 11 through a plurality of low-speed interfaces. The station A equipment assembles low-speed interface messages received by a plurality of low-speed interfaces into high-speed interface messages, and transmits the high-speed interface messages to the station B equipment through the high-speed interfaces of the station A equipment. And the B station equipment receives the high-speed interface message sent by the A station equipment through a high-speed interface of the B station equipment. And the B station equipment disassembles the high-speed interface message into a plurality of low-speed interface messages corresponding to the low-speed interfaces. The B station device sends the low-speed interface message to the customer service switch 14 through the low-speed interface corresponding to the low-speed interface message.
It should be noted that the B station device may also serve as a transmitting end, and the a station device may also serve as a receiving end. The a and B stations may be network access stations. The low-speed interface can be an Ethernet interface with various rates, such as interfaces of 1GE, 10GE, 40GE, 100GE, 400GE and the like.
There are two existing ways of sending management information. In the first method, an Optical Transport Network (OTN) device is used as a Transport device. The OTN device maps the packet and the management information of the multi-path low-speed ethernet interface to an Optical Transform Unit (OUT) service frame of a large particle. However, the OTN equipment cost is high, the protocol and management are complex, the requirement for OTN knowledge storage of operation and maintenance personnel is high, and the operation and maintenance cost is high.
In the second mode, a plurality of bytes are added to a fixed position in the ethernet message for identifying management information, so that the high-speed interface message carries information of the low-speed interface message. However, this approach increases the byte length, occupies traffic bandwidth, and reduces the bandwidth utilization of the ethernet interface. When the service ethernet packet contains a packet with a maximum frame length, since the packet bytes cannot be added, the service packet cannot carry management information, and thus the service packet can only be discarded. In addition, in some application scenarios, the monitoring management information of the devices at the two ends needs to be transmitted to one of the rooms, and then transmitted to the upper layer network manager. At this time, the second method needs an additional independent management message or an Optical Supervisory Channel (OSC) to transmit monitoring management information. However, if a separate management packet is used, traffic bandwidth is occupied and traffic flow is affected in case of full bandwidth. And using the OSC increases the equipment cost.
It should be noted that, in the embodiment of the present application, the first checking method and the second checking method may include various methods for checking data, including, but not limited to, CRC checking.
On one hand, an embodiment of the present invention provides a data transmission method applied to a sending end, where a processing flow of the data transmission method is shown in fig. 2, and the data transmission method includes the following steps:
step 21, receiving a first message.
Here, the first packet may include a low speed interface packet. The data transmission device receives a first message through the low-speed interface. The structure of the first packet may be a standard ethernet frame structure. The first message may include a preamble field, a destination address field, a source address field, a data field, and a check field.
It should be noted that, in the embodiment of the present application, the Check field may include a Frame Check Sequence (FCS), the destination address may include a destination Media Access Control (MAC) address, and the source address may include a source MAC address.
And step 22, adding the information of the first message to the first field in the first message to obtain a second message. And the size of the first message is not smaller than that of the second message.
Here, the information of the first packet may include information for processing service data and may further include functional service information. The information for processing the service data may include, but is not limited to, receiving interface information, destination interface information, and control information. Functional business information includes, but is not limited to, queries, configurations, alarms, maintenance, and tests.
Here, the data transmission device determines information of the first message from the first message. The data transmission device re-divides the information represented by each byte in the first field in the first message, thereby redefining the structure of the first message according to the type of the first field and acquiring the structure of the second message. And the data transmission device updates the information corresponding to the first field according to the structure of the second message, and respectively adds the information of the first message and the information corresponding to the other fields except the first field in the first message to the corresponding fields in the second message so as to obtain the second message. The service data of the first message is the same as the service data of the second message, and the size of the first message is not smaller than that of the second message.
Wherein the first field includes at least one of: a preamble field, a data field, and a check field.
In some embodiments, the data transmission device may select the type of the first field based on a size of the information of the first packet.
Here, the data transmission apparatus may select a plurality of different types of fields as the first field in a case where it is determined that the updated byte of at least one field is not sufficient to carry information of the first packet. The data transmission apparatus may select a field as the first field if it is determined that the updated byte of the field is sufficient to carry information of the first packet.
In some embodiments, the data transmission apparatus adds information of the first packet to a preamble field in the first packet to obtain the second packet.
Here, when the data transmission apparatus adds information of the first message to the preamble field in the first message, the data transmission apparatus redefines information represented by bytes of the preamble field in the first message. Specifically, the preamble field in the first message is taken as the original preamble field. The data transmission device represents the first part of bytes of the original preamble field as the preamble field and represents the second part of bytes of the original preamble field as the field corresponding to the information of the first message.
For example, the size of the original preamble field may be 8 bytes, and the data transmission apparatus represents the preamble field with 6 bytes of the original preamble field and represents the corresponding field of the information of the first message with the remaining 2 bytes of the original preamble field.
In some embodiments, the data transmission apparatus adds information of the first packet to a data field in the first packet, and obtains the second packet.
Here, when the data transmission apparatus adds the information of the first packet to the data field in the first packet, the data transmission apparatus redefines the information represented by the bytes of the data field in the first packet. Specifically, the data field in the first message is used as the original data field. The data transmission device represents the data field by the first part of bytes of the original data field, and represents the field corresponding to the information of the first message by the second part of bytes of the original data field. For example, the size of the original data field may be 56 bytes, and the data transmission apparatus represents the data field with 54 bytes in the original data field, and represents the corresponding field of the information of the first message with the remaining 2 bytes of the original data field.
In some embodiments, the data transmission apparatus adds the information of the first packet to a check field in the first packet to obtain the second packet.
Here, when the data transmission apparatus adds the information of the first message to the check field in the first message, the data transmission apparatus redefines the information represented by the bytes of the check field in the first message. Specifically, the check field in the first message is used as the original check field. And the data transmission device represents the check field by the first part of bytes of the original check field and represents the field corresponding to the information of the first message by the second part of bytes of the original check field.
For example, the size of the original check field may be 4 bytes, and the data transmission apparatus represents the check field with 2 bytes of the original check field, and represents the field corresponding to the information of the first packet with the other 2 bytes in the original check field.
In some embodiments, where the first field comprises a check field, the information of the first packet further comprises check information.
Here, the check information in the information of the first packet is obtained by checking the first packet according to the first check method. Under the condition that the first field comprises the check field, the data transmission device determines the check information in the information of the first message according to the information corresponding to other fields except the check field and the preamble field in the first message and the information except the check information in the information of the first message, and adds the check information to the check field represented by the first part of bytes of the original check field.
For example, when the information corresponding to the check field in the first message is a check result of CRC32 (cyclic redundancy check 32, 32-bit cyclic redundancy check), the first check method may be CRC16 or CRC8. If the first check method is CRC16, the data transmission device performs CRC16 check on the information corresponding to the destination address field, the source address field, and the data field in the first message and the information except for the check information in the information of the first message, so as to obtain 16-bit check information. The data transmission apparatus adds 16 bits of check information to the check field characterized by the first part of bytes of the original check field.
In some embodiments, the data transmission apparatus adds information of the first message to a preamble field in the first message and a data field in the first message.
Here, when the data transmission apparatus adds information of the first packet to the preamble field in the first packet and the data field in the first packet, the data transmission apparatus redefines information represented by bytes of the preamble field in the first packet and information represented by bytes of the data field in the first packet. Specifically, the preamble field in the first message is taken as the original preamble field, and the data field in the first message is taken as the original data field. The data transmission means characterize a preamble field with a first part of bytes of an original preamble field and a data field with a first part of bytes of an original data field. Meanwhile, the data transmission device represents the second part of bytes of the original preamble field and the second part of bytes of the original data field to the field corresponding to the information of the first message.
For example, the original preamble field may be 8 bytes in size and the original data field may be 56 bytes in size. The data transmission apparatus characterizes the preamble field by 6 bytes of the original preamble field and characterizes the data field by 54 bytes in the original data field. Meanwhile, the data transmission device represents the field corresponding to the information of the first message by the remaining 2 bytes of the original preamble field and the remaining 2 bytes of the original data field.
In some embodiments, the data transmission apparatus adds information of the first message to a preamble field in the first message and a check field in the first message.
Here, when the data transmission apparatus adds the information of the first packet to the preamble field in the first packet and the check field in the first packet, the data transmission apparatus redefines the information represented by the bytes of the preamble field in the first packet and the information represented by the bytes of the check field in the first packet. Specifically, the preamble field in the first message is used as the original preamble field, and the check field in the first message is used as the original check field. The data transmission apparatus characterizes the preamble field by a first part of bytes of the original preamble field and the check field by a first part of bytes of the original check field. Meanwhile, the data transmission device represents the second part of bytes of the original preamble field and the second part of bytes of the original check field to the field corresponding to the information of the first message.
For example, the original preamble field may be 8 bytes in size and the original check field may be 4 bytes in size. The data transmission device represents the preamble field with 6 bytes of the original preamble field and represents the check field with 2 bytes of the original check field. Meanwhile, the data transmission device represents the field corresponding to the information of the first message by the remaining 2 bytes of the original preamble field and the remaining 2 bytes of the original check field.
In some embodiments, the data transmission device adds information of the first message to a data field in the first message and a check field in the first message.
Here, when the data transmission apparatus adds the information of the first message to the data field in the first message and the check field in the first message, the data transmission apparatus redefines the information represented by the bytes of the data field in the first message and the information represented by the bytes of the check field in the first message. Specifically, a data field in the first message is used as an original data field, and a check field in the first message is used as an original check field. The data transmission device characterizes a first part of bytes of the original data field as a data field and a first part of bytes of the original check field as a check field. Meanwhile, the data transmission device represents the fields corresponding to the information of the first message by the second part of bytes of the original data field and the second part of bytes of the original check field.
For example, the size of the original data field may be 56 bytes, and the size of the original check field may be 4 bytes. The data transmission apparatus represents the data field with 54 bytes in the original data field and represents the check field with 2 bytes of the original check field. Meanwhile, the data transmission device represents the field corresponding to the information of the first message by the remaining 2 bytes of the original data field and the remaining 2 bytes of the original check field.
In some embodiments, the data transmission apparatus adds information of the first message to a preamble field in the first message, a data field in the first message, and a check field in the first message.
Here, when the data transmission apparatus adds information of the first message to the preamble field in the first message, the data field in the first message, and the check field in the first message, the data transmission apparatus redefines information represented by bytes of the preamble field in the first message, information represented by bytes of the data field in the first message, and information represented by bytes of the check field in the first message. Specifically, a preamble field in the first message is used as an original preamble field, a data field in the first message is used as an original data field, and a check field in the first message is used as an original check field. The data transmission apparatus characterizes the preamble field by a first part of bytes of the original preamble field, the data field by a first part of bytes of the original data field, and the check field by a first part of bytes of the original check field. Meanwhile, the data transmission device represents the second part of bytes of the original preamble field, the second part of bytes of the original data field and the second part of bytes of the original check field to the field corresponding to the information of the first message.
For example, the size of the original preamble field may be 8 bytes, the size of the original data field may be 56 bytes, and the size of the original check field may be 4 bytes. The data transmission apparatus characterizes the preamble field by 6 bytes of the original preamble field, the data field by 54 bytes of the original data field, and the check field by 2 bytes of the original check field. Meanwhile, the data transmission device represents the field corresponding to the information of the first message by the remaining 2 bytes of the original preamble field, the remaining 2 bytes of the original data field and the remaining 2 bytes of the original check field.
In some embodiments, step 22, adding the information of the first packet to the first field in the first packet to obtain a second packet, includes:
and adding the receiving interface information, the destination interface information and the control information of the first message to the first field to obtain a second message.
Here, the information of the first packet may include reception interface information, destination interface information, and control information. The receiving interface information may be low-speed interface information for instructing the sending end to receive the first packet. For example, the receiving interface information may include the number of the low-speed interface where the transmitting end receives the first packet. The destination interface information may be used to indicate low-speed interface information for the receiving end to receive the first packet. For example, the destination interface information may include the number of the low-speed interface where the receiving end receives the first packet. The control information may be used to indicate a mode of processing the first packet, may also be used to indicate a mode of processing the second packet, and may also be used to indicate a mode of processing the first packet and the second packet.
In some embodiments, the information of the first packet further includes: and reserving information.
Here, the reservation information includes at least one of: frame identification information and numbering information. The number information may be used to indicate the interface number and may also be used to indicate the priority of the transmission.
The frame identification information is used to determine the type of the second message. The type of the second packet may include: a service message carrying the information of the first message and a management message carrying the information of the first message. The receiving end can analyze the management message according to a preset structure of the management message. The receiving end can analyze the service message according to the preset structure of the service message. Here, the service packet may include the second packet.
In some embodiments, the control information is used to indicate a processing mode of the second packet or the first packet.
Here, after receiving the second message, the receiving end parses the second message to obtain the first message and the control information in the first message. And the receiving terminal processes the first message and/or the second message according to the control information.
Here, the processing manner of the second packet or the first packet includes at least one of the following: the method includes transmitting a first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning a second message, and discarding the second message.
Wherein the number of the target interface comprises at least one of: and receiving the interface number in the interface information, the interface number in the target interface information and the interface number represented by the number information.
Here, the transmitting the first message to the target interface may include at least one of: the interface number in the interface information is transmitted to the receiving interface, the interface number in the destination interface information is transmitted to the first message, and the interface number represented by the number information transmitted to the first message.
Here, the distributing the first packet to the at least two target interfaces may include at least one of: the first message is transmitted to an interface corresponding to an interface number in receiving interface information and an interface number in destination interface information in a receiving end, the first message is transmitted to all interfaces corresponding to the interface number in the receiving interface information from the interface number in the receiving interface information to the interface number in the destination interface information in the receiving end, the first message is transmitted to all interfaces corresponding to the interface number in the receiving interface information and the interface number represented by the number information in the receiving end, the first message is transmitted to all interfaces corresponding to the interface number in the receiving end from the interface number in the receiving interface information to the interface number represented by the number information, the first message is transmitted to all interfaces corresponding to the interface number in the destination interface information and the interface number represented by the number information in the receiving end, the first message is transmitted to all interfaces corresponding to the interface number in the destination interface information to the interface number represented by the number information in the receiving interface information, and the interface corresponding to the interface number in the destination interface information and the interface number represented by the number information in the receiving interface information in the receiving end.
Here, the preferentially transmitting the first packet to the target interface may include the receiving end transmitting the first packet to the target interface according to a transmission priority indicated by the number information.
Here, returning the second packet may include the sending end sending the second packet to the receiving end, and the receiving end updating the second packet and returning the second packet to the sending end.
Here, discarding the second packet may include transmitting the second packet to the receiving end by the transmitting end, and discarding the second packet by the receiving end.
For example, when the size of the control information is 3 bits, the interface number in the receiving interface information is I, the interface number J in the destination interface information, and the number information indicates the number K, the 3-bit control information is processed as follows:
and when the control information is 0, the control information is used for indicating that the first message is sent to the low-speed interface corresponding to the receiving end number I.
And when the control information is 1, the control information is used for indicating that the first message is sent to the low-speed interface corresponding to the receiving end number J.
And when the control information is 2, the control information is used for indicating that the first message is sent to all low-speed interfaces corresponding to the serial numbers J to K of the receiving end.
And when the control information is 3, the control information is used for indicating that the first message is sent to the low-speed interface with the number J of the receiving end, and the transmission priority is the number K. And the receiving end transmits the first message to the low-speed interface according to the transmission priority.
And when the control information is 4, the control information is used for indicating that the second message is transmitted to the receiving end, the receiving end updates the second message, and the updated second message is transmitted back to the low-speed interface of the transmitting end. Wherein, the receiving end changes the control information in the second message to 5.
And when the control information is 5, the control information is used for indicating that the second message is an updated message transmitted back from the receiving end.
And when the control information is 6, the control information is used for indicating that the second message is discarded by the receiving end after the second message is transmitted to the receiving end.
When the control information is 7, the control information is used for indicating other processing modes of the second message or the first message.
And step 23, sending the second message.
Here, the data transmission apparatus transmits the second message to the receiving end.
In the embodiment of the application, the information of the first message is added to the original field in the first message, so that the information of the first message is sent without increasing message bytes. And when the information of the first message is sent, the service bandwidth cannot be occupied, and the bandwidth utilization rate of the Ethernet interface cannot be reduced. In addition, in the embodiment of the present application, the original bytes of the first packet are redefined, so that the information of the first packet is transmitted. The OTN equipment is not needed, and an extra OSC channel is not needed, so that operation and maintenance personnel can quickly master related principle knowledge, and the equipment cost and the operation and maintenance cost are reduced.
In some embodiments, before obtaining the second message in step 22, the data transmission method further includes:
step 221, the first message is verified according to the second verification method, and a second verification result is obtained.
Before the second message is obtained for processing, the data transmission device checks the information corresponding to the other fields except the check field and the preamble field in the first message according to a second checking method to obtain a second checking result. The data transmission device compares whether the second check result is consistent with the check information corresponding to the check field in the first message, thereby confirming whether the received first message has no error.
For example, the second check method is CRC32, and the data transmission apparatus performs CRC32 check on information corresponding to other fields except for the check field and the preamble field in the first message, and obtains a second check result. The data transmission device compares whether the second check result is consistent with the check information corresponding to the check field in the first message, thereby determining whether the received first message is error-free.
Step 222, when the second check result is the same as the check information corresponding to the check field in the first message, determining to add the information of the first message to the first field.
Here, the data transmission apparatus determines that the second check result is the same as the check information corresponding to the check field in the first message, that is, the data transmission apparatus determines that the received first message is error-free, so that the data transmission apparatus determines to continue processing the first message, that is, to add the information of the first message to the first field.
In some embodiments, after receiving the first message at step 21, the method further comprises:
step 211a, determining whether to generate a management packet carrying information of the first packet according to a relationship between the performance parameter of the network and the first threshold.
Here, the data transmission means determines whether or not there is a remaining network bandwidth in the network based on a relationship between the performance parameter of the network and the first threshold. And under the condition that the residual network bandwidth exists, the data transmission device generates a management message carrying the information of the first message.
For example, the performance parameters of the network may include the rate at which packets are transmitted by the network and the utilization of the network bandwidth. When the rate of the network transmission message or the utilization rate of the network bandwidth is lower than a first threshold value, the data transmission device determines that the network has the residual bandwidth, and generates a management message carrying the information of the first message.
Step 212a, under the condition that the management message is determined to be generated, sending the first message and the management message.
Here, the data transmission apparatus transmits the first message and the management message to the receiving end after generating the independent management message. And the receiving end processes the first message according to the information of the first message in the management message.
In the embodiment of the application, the data transmission device determines whether to generate an independent management packet by judging the performance of the network. In this way, the data transmission apparatus improves the efficiency of transmitting the information of the first message by transmitting the independent management message.
In some embodiments, after receiving the first packet at step 21, the method further includes:
and step 211b, determining whether to generate a management packet carrying the information of the first packet according to the relationship between the performance parameter of the network and the first threshold and whether the first field meets the condition of carrying the information of the first packet.
Here, when the data transmission device determines that the network has the remaining network bandwidth according to the relationship between the performance parameter of the network and the first threshold, and the first field redefined by the data transmission device is not sufficient to carry the information of the first packet, the data transmission device generates a management packet carrying the information of the first packet.
Step 212b, under the condition that the management message is determined to be generated, sending the first message and the management message.
Here, the data transmission apparatus transmits the first message and the management message to the receiving end after generating the independent management message. And the receiving end processes the first message according to the information of the first message in the management message.
In the embodiment of the application, the data transmission apparatus determines whether to generate an independent management packet by determining the performance of the network and whether the first field in the first packet is sufficient to carry information of the first packet. The data transmission device sends the first message to the receiving end by sending the management message, thereby improving the success rate of sending the information of the first message.
On another aspect of the embodiments of the present application, a data transmission method is further provided, where the data transmission method is applied to a receiving end, a processing flow of the data transmission method is shown in fig. 3, and the data transmission method includes the following steps:
step 31, receiving the second message.
Here, the second message is obtained by adding information of the first message to the first field in the first message. The size of the first message is not smaller than the size of the second message. Wherein the first field comprises at least one of: a preamble field, a data field, and a check field.
And 32, analyzing the second message to obtain the first message and the information of the first message.
Here, the data transmission apparatus determines the definition of each field in the second message according to the format of the second message. And the data transmission device analyzes the second message according to a preset rule and acquires the information of the receiving end according to the first message and the first message.
In some embodiments, step 32, parsing the second packet to obtain the first packet and information of the first packet includes:
step 321, parsing the second message, and determining information corresponding to the first field in the first message.
Here, the data transmission apparatus parses the second packet, compares the structure of the second packet with the structure of the first packet, and determines a first field in the first packet, to which information of the first packet is added. And the data transmission device determines the information corresponding to the first field in the first message according to the second message.
Step 322, obtaining the first message based on the information corresponding to the first field in the first message.
Here, the data transmission apparatus adds information corresponding to the first field in the first packet and information corresponding to other fields in the second packet except for the first field and the field corresponding to the information of the first packet to the corresponding field in the first packet, thereby acquiring the first packet.
For example, in the case that the first field includes a check field, the second packet may include a 16-bit check field and a field corresponding to 16-bit first packet information, and the first packet may include a 32-bit check field. And the data transmission device determines the information corresponding to the 32-bit check field according to the second message. The data transmission device adds information corresponding to a 32-bit check field in the first message and information corresponding to other fields except for a 16-bit check field and a 16-bit field corresponding to the first message information in the second message to the corresponding fields in the first message, so as to obtain the first message.
In some embodiments, step 321, parsing the second packet, and determining information corresponding to a first field in the first packet includes: and under the condition that the first field comprises a check field, acquiring check information corresponding to the check field in the first message according to the second message and a second check method.
Here, when the first field includes a check field, the data transmission apparatus checks information corresponding to other fields in the second message except for the check field, the preamble field, and the field corresponding to the information of the first message according to a second checking method, and obtains check information corresponding to the check field in the first message.
For example, the second checking method is CRC32, and the data transmission device performs CRC32 checking on information corresponding to other fields in the first message except for the check field, the preamble field, and the field corresponding to the information of the first message, to obtain check information corresponding to the check field in the first message.
In some embodiments, step 32, parsing the second packet and obtaining information of the first packet includes:
and analyzing each field in the second message to obtain receiving interface information, target interface information and control information of the first message.
Here, the information of the first packet includes at least receiving interface information, destination interface information, and control information of the first packet. The meanings of the receiving interface information, the destination interface information and the control information are the same as those of the previous embodiment, and are not described herein again. And the data transmission device analyzes the field corresponding to the information of the first message in the second message according to a preset rule, and acquires the receiving interface information, the target interface information and the control information of the first message.
In some embodiments, the step 32 of parsing the second packet and obtaining the information of the first packet further includes:
and analyzing each field in the second message to obtain the reserved information of the first message.
Here, the information of the first packet further includes reservation information. The reservation information comprises at least one of: frame identification information and numbering information. The meaning of the frame identification information and the numbering information is the same as the previous embodiment, and is not described herein again. And the data transmission device analyzes the field corresponding to the information of the first message in the second message according to a preset rule, and acquires the receiving interface information, the target interface information, the control information and the reserved information of the first message.
And step 33, processing the first message and/or the second message according to the information of the first message.
In some embodiments, step 33, processing the first packet and/or the second packet according to the information of the first packet includes:
and processing the first message and/or the second message based on the control information in the information of the first message.
Here, the data transmission apparatus may process the first packet according to a processing manner of the first packet indicated by the control information in the information of the first packet. The data transmission device may also process the second packet according to a processing mode of the second packet indicated by the control information in the information of the first packet. The data transmission device may also process the first packet and the second packet according to the processing modes of the first packet and the second packet indicated by the control information in the information of the first packet. The processing manner of the first packet and the processing manner of the second packet are the same as those in the foregoing embodiment, and are not described here again.
In some embodiments, after receiving the second message in step 31, the method includes:
and step 41, acquiring a third verification result according to the first verification method according to the second message.
After the data transmission device receives the second message, the data transmission device checks the information corresponding to the other fields except the check field and the preamble field in the second message according to the first checking method, and obtains a third checking result. And the data transmission device compares whether the third check result is consistent with the check information corresponding to the check field in the second message or not, thereby determining whether the received second message has no error or not.
For example, the first checking method is CRC8, and the data transmission apparatus performs CRC8 checking on information corresponding to other fields except for the check field and the preamble field in the second message to obtain a third checking result. And the data transmission device compares whether the third check result is consistent with the check information corresponding to the check field in the second message or not, thereby determining whether the received second message has no error or not.
And 42, when the third check result is the same as the check information corresponding to the check field in the second message, determining to analyze the second message.
Here, the data transmission apparatus determines that the third check result is the same as the check information corresponding to the check field in the second message, that is, the data transmission apparatus determines that the received second message is error-free, so that the data transmission apparatus determines to parse the second message.
In some embodiments, the data transmission method further comprises:
step 51, the data transmission device receives the management packet carrying the information of the first packet and the first packet.
Step 52, the data transmission device processes the first message according to the information of the first message.
To further understand the data transmission method provided in the embodiment of the present application, in another aspect of the embodiment of the present application, a data transmission method is also provided, which is applied to the application scenario shown in fig. 1. Taking the first field of the first packet may include a check field, the station a device serves as a sending end, and the station B device serves as a receiving end as an example for description, the processing flow of data transmission is shown in fig. 4, and the data transmission method is applied to the sending end and includes the following steps:
step 61, receiving a first message.
Here, the plurality of low speed interfaces of the a-station apparatus 12 receives the first message from the a-station customer service exchange 11 interface. The first packet may include a preamble field, a destination address field, a data field, and a check field. For example, the structure of the first message may be as shown in fig. 5, and the first message may include a preamble field of 8 bytes, a destination address field of 6 bytes, a source address field of 6 bytes, a data field of 46 bytes to 1500 bytes, and a check field of 4 bytes.
Step 62, it is determined whether the first message passes the check. If the verification passes, step 63 is executed. If the verification fails, step 65 is performed.
Here, the a-station device checks the first message and determines whether the received first message is correct. If the verification is passed, the first message can be determined to be correct, the subsequent processing is continued, and if the verification is not passed, the first message can be determined to be wrong, and the first message is discarded.
In some embodiments, determining 62 whether the first message passes the check may include:
and 621, checking the first message according to a second checking method, and acquiring a second checking result.
Here, the second checking method is determined according to the checking information corresponding to the checking field in the first message. For example, when the check information corresponding to the check field in the first message is a CRC32 check result of 4 bytes, the second check method is CRC32. The a station device 12 performs CRC32 check on information corresponding to the destination address field to the data field in the first message, and obtains a 4-byte second check result.
Step 622, comparing whether the second check result is consistent with the check information corresponding to the check field in the first message.
Here, the a-station apparatus 12 compares the second check result with the check information corresponding to the check field in the first message, and determines whether the two are identical. If the first message and the second message are consistent, the first message can be determined to be correct, and therefore the first message passes verification. If the two messages are inconsistent, it can be determined that the check information in the first message is wrong, and the first message does not pass the check.
And 63, adding the information of the first message to a first field in the first message to obtain a second message.
Here, the first field may include a check field. The information of the first packet may include receiving interface information, destination interface information, reservation information, and check information. The reservation information may include frame identification information, number information, and control information. The receiving interface information may be low-speed interface information that may be used to indicate the sending end to receive the first packet. For example, the receiving interface information may include the number of the low-speed interface on which the transmitting end received the first packet. The destination interface information may be used to indicate to the receiving end to receive the low speed interface information of the first packet. For example, the destination interface information may include the number of the low-speed interface where the receiving end receives the first packet.
The check information is used for checking whether the second message is correct. The verification information is obtained by verifying the first message according to a first verification method. Specifically, the check information is obtained by checking information corresponding to a data field from a destination address field in the first message and information other than the check information in the information of the first message according to a first check method.
The control information is used to indicate a manner of processing the first packet and/or the second packet. The processing mode of the second message and/or the first message comprises at least one of the following items: the method includes transmitting a first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning a second message, and discarding the second message.
The number information may be used to indicate an interface number, a priority of transmission, or both.
The frame identification information is used to determine the type of the second packet. The type of the second packet may include: a service message carrying the information of the first message and a management message carrying the information of the first message. Here, in the case that the a-station device sends a management packet carrying information of the first packet, after receiving the management packet, the B-station device may analyze the management packet according to a preset structure of the management packet. If the station a device sends a service packet carrying information of the first packet, the station B device may process the service packet according to the control information after receiving the service packet.
Here, when the information of the first packet is added to the first field in the first packet, the a-station apparatus 12 redefines the check field of the first packet, thereby determining the second packet structure. For example, as shown in fig. 6a and 6b, the structure of the second packet is obtained by the a-station apparatus 12 redefining the check field of the first packet and keeping the other fields unchanged, where the check field in the first packet may be 4 bytes. The redefining of the check field of the first packet by the a-station device 12 may include dividing the 4-byte check field into a 4-bit receiving interface field, a 4-bit destination interface field, an 8-bit reserved field, and a 16-bit check field. And the 8-bit reserved field may be divided into a 1-bit frame identification field, a 3-bit control field, and a 4-bit number field.
Wherein, the receiving interface field with 4 bits is used for indicating the receiving interface number I in the receiving interface information.
The destination interface field of 4 bits is used to indicate the destination interface number K in the destination interface information.
A 16-bit check field is used to indicate check information. The check information is a result obtained by performing CRC16 check on information corresponding to the destination address field and before the check field in the second message structure.
The frame identification field is used to indicate frame identification information.
The control field is used for indicating control information, and the processing mode corresponding to the 3-bit control field is as follows:
and when the control information is 0, the control information is used for indicating that the first message is sent to a low-speed interface corresponding to the B station equipment number I.
And when the control information is 1, the control information is used for indicating that the first message is sent to the low-speed interface corresponding to the B station equipment number J.
And when the control information is 2, the control information is used for indicating that the first message is sent to all the low-speed interfaces corresponding to the numbers J to K of the B station equipment.
And when the control information is 3, the control information is used for indicating that the first message is sent to the low-speed interface with the serial number J of the B station equipment, and the transmission priority is the serial number K. And the B station equipment transmits the first message to the low-speed interface according to the transmission priority.
And when the control information is 4, the control information is used for indicating that the second message is transmitted to the B station equipment, and the B station equipment updates the second message and transmits the updated second message back to the low-speed interface of the transmitting end. And the B station equipment changes the control information in the second message to 5.
When the control information is 5, the control information is used to indicate that the second message is an updated message transmitted back from the B station apparatus.
And when the control information is 6, the control information is used for indicating that the second message is discarded by the B station equipment after being transmitted to the B station equipment.
When the control information is 7, it is reserved.
And step 64, the station A equipment sends a second message to the station B equipment.
Step 65, discard the first message.
In some embodiments, after receiving the first message, in step 61, the data transmission further includes:
and determining whether to generate a management message carrying the information of the first message or not according to the relation between the performance parameter of the network and the first threshold value.
Here, the a-station apparatus determines whether or not there is a remaining network bandwidth in the network based on a relationship between a performance parameter of the network and the first threshold. And under the condition that the residual network bandwidth exists, the A station equipment generates a management message carrying the information of the first message.
For example, the performance parameters of the network may include the rate at which messages are transmitted by the network and the utilization of the network bandwidth. When the rate of network transmission messages or the utilization rate of network bandwidth is lower than a first threshold value, the station A equipment determines that the network has residual bandwidth, and generates a management message carrying the information of the first message.
And under the condition that the management message is determined to be generated, the A station equipment sends a first message and the management message.
In some embodiments, after receiving the first message, in step 61, the data transmission further includes:
and determining whether to generate a management message carrying the information of the first message or not according to the relationship between the performance parameter of the network and the first threshold and whether the first field meets the condition of carrying the information of the first message or not.
Here, when the data transmission apparatus determines that the network has a remaining network bandwidth according to a relationship between a performance parameter of the network and a first threshold, and a first field redefined by the a-station device is not sufficient to carry information of a first packet, the data transmission apparatus generates a management packet carrying information of the first packet.
And under the condition of determining to generate the management message, the A station equipment sends the first message and the management message.
To further understand the data transmission method provided in the embodiment of the present application, in another aspect of the embodiment of the present application, a data transmission method is also provided, which is applied to the application scenario shown in fig. 1. Taking the first field of the first packet may include a check field, the station a device serves as a sending end, and the station B device serves as a receiving end as an example for description, the processing flow of data transmission is shown in fig. 7, and the data transmission method is applied to the receiving end and includes the following steps:
and step 81, the B station equipment receives the second message.
In step 82, the b station device determines whether the second message passes the check. If the verification passes, go to step 83. If the verification fails, step 85 is performed.
Here, the B station device checks the second packet, and determines whether the received second packet is correct. If the verification is passed, the second message can be determined to be correct, the subsequent processing is continued, and if the verification is not passed, the second message can be determined to be wrong, and the second message is discarded.
In some embodiments, in step 82, the b station device checks the second message, including:
and step 821, according to the second message, obtaining a third verification result according to the first verification method.
After the station B device receives the second message, the station B device performs a check according to the first check method according to the information corresponding to the other fields except the check field and the preamble field in the second message, and obtains a third check result. For example, when the check information corresponding to the check field in the second message is a CRC32 check result with 16 bits, the first check method is CRC16. The station B device 13 performs CRC16 check on information corresponding to all fields from the destination address field to the previous check field in the second message, and obtains a 16-bit third check result.
Step 822, comparing whether the third check result is consistent with the check information corresponding to the check field in the second message.
Here, the B station device 13 compares the third check result with the check information corresponding to the check field in the second message, and determines whether the two are consistent. If the two are consistent, the second message can be determined to be correct, so that the second message passes the verification. If the two messages are inconsistent, it can be determined that the check information in the second message is wrong, and the second message does not pass the check.
And step 83, analyzing the second message, and acquiring the first message and the information of the first message.
Here, the B station device 13 parses each field of the second packet according to the structure of the second packet, thereby acquiring the first packet and the information of the first packet.
In some embodiments, step 83, parsing the second packet and obtaining the first packet and the information of the first packet includes:
and 831, analyzing the second message, and determining the information corresponding to the first field in the first message.
Here, the B station device 13 parses the second packet, compares the structure of the second packet with the structure of the first packet, and determines the first field in the first packet, to which the information of the first packet is added. And the station B device 13 determines the information corresponding to the first field in the first message according to the second message.
Step 832, the first message is obtained based on the information corresponding to the first field in the first message.
Here, the B station device 13 adds the information corresponding to the first field in the first message and the information corresponding to the other fields except for the first field and the field corresponding to the information of the first message in the second message to the corresponding fields in the first message, thereby acquiring the first message. In some embodiments, in step 831, parsing the second packet and determining information corresponding to the first field in the first packet includes: and under the condition that the first field comprises a check field, acquiring check information corresponding to the check field in the first message according to the second message and a second check method.
Here, when the first field includes a check field, the B station device 13 checks according to a second checking method based on information corresponding to other fields in the second message except for the check field, the preamble field, and the field corresponding to the information of the first message, and obtains check information corresponding to the check field in the first message.
For example, the second checking method is CRC32, and the B station device 13 performs CRC32 checking on information corresponding to other fields in the first message except for the check field, the preamble field, and the field corresponding to the information of the first message, to obtain check information corresponding to the check field in the first message.
Step 84, the first message and/or the second message are processed according to the information of the first message.
Here, the B station device 13 analyzes the information of the first packet according to a preset rule, and determines a processing manner of the first packet or the second packet.
Step 85, discard the second message.
In some embodiments, step 84, processing the first message and/or the second message according to the information of the first message includes:
and processing the first message and/or the second message based on the control information in the information of the first message.
Here, the B station apparatus 13 processes the first packet according to the processing method of the first packet indicated by the control information in the information of the first packet. The B station device 13 may also process the second packet according to the processing mode of the second packet indicated by the control information in the information of the first packet. The B station device 13 may also process the first packet and the second packet according to the processing modes of the first packet and the second packet indicated by the control information in the information of the first packet. The processing manner of the first packet and the processing manner of the second packet are the same as those in the foregoing embodiment, and are not described here again.
In some embodiments, the data transmission method further comprises:
in step 91, the b station device 13 receives the management packet carrying the information of the first packet and the first packet.
And step 92, the B station equipment 13 processes the first message according to the information of the first message.
In another aspect of the embodiment of the present application, a data transmission device is further provided, and is applied to a sending end, as shown in fig. 8, which illustrates a schematic structural diagram of a data transmission device. The data transmission device includes:
the first packet receiving module 101 is configured to receive a first packet.
A second packet obtaining module 102, configured to add information of the first packet to a first field in the first packet, and obtain a second packet; and the size of the first message is not smaller than that of the second message.
The sending module 103 is configured to send the second packet.
In some embodiments, the second packet obtaining module 102 is configured to add the receiving interface information, the destination interface information, and the control information of the first packet to the first field to obtain the second packet.
In some embodiments, the information of the first packet further includes: and reserving information.
In some embodiments, the reservation information comprises at least one of: frame identification information and numbering information.
The number information is used to indicate an interface number.
In some embodiments, the reservation information comprises at least one of: frame identification information and numbering information.
Wherein the number information is used to indicate the priority of the transmission.
In some embodiments, the reservation information comprises at least one of: frame identification information and numbering information.
The number information is used to indicate the interface number and the priority of transmission.
In some embodiments, the frame identification information is used to determine the type of the second message.
In some embodiments, the control information is used to indicate a processing mode of the second packet or the first packet.
Wherein, the processing mode of the second message or the first message comprises at least one of the following items: the method includes transmitting a first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning a second message, and discarding the second message.
Wherein the number of the target interface comprises at least one of: and receiving the interface number in the interface information, the interface number in the target interface information and the interface number represented by the number information.
In some embodiments, the first field comprises at least one of: a preamble field, a data field, and a check field.
In some embodiments, where the first field comprises a check field, the information of the first packet further comprises check information.
In some embodiments, the check information in the information of the first packet is obtained by checking the first packet according to the first checking method.
In some embodiments, the second packet obtaining module 102 is further configured to, before the second packet is obtained, check the first packet according to a second checking method, and obtain a second checking result; and when the second check result is the same as the check information corresponding to the check field in the first message, determining to add the information of the first message to the first field.
In some embodiments, the sending module 103 is further configured to, after receiving the first packet, determine whether to generate a management packet carrying information of the first packet according to a relationship between a performance parameter of a network and a first threshold; or determining whether to generate a management message carrying the information of the first message according to the relationship between the performance parameter of the network and a first threshold and whether the first field meets the condition of carrying the information of the first message; and sending the first message and the management message under the condition of determining to generate the management message.
In another aspect of the embodiments of the present application, another data transmission apparatus is further provided, which is applied to a receiving end. The structure of the data transmission device is shown in fig. 9. The data transmission device 110 includes:
a second message receiving module 111, configured to receive a second message; and the size of the first message is not smaller than that of the second message.
The parsing module 112 is configured to parse the second packet, and obtain the first packet and information of the first packet.
The first processing module 113 is configured to process the first packet and/or the second packet according to the information of the first packet.
In some embodiments, the parsing module 112 is configured to parse the second message, and determine information corresponding to a first field in the first message; and acquiring the first message based on the information corresponding to the first field.
In some embodiments, the parsing module 112 is configured to, when the first field includes a check field, obtain, according to the second message and according to a second checking method, check information corresponding to the check field in the first message.
In some embodiments, the parsing module 112 is configured to parse fields in the second packet to obtain receiving interface information, destination interface information, and control information of the first packet.
In some embodiments, the parsing module 112 is further configured to parse fields in the second message to obtain the reservation information of the first message; wherein the reservation information comprises at least one of: frame identification information and numbering information.
In some embodiments, the first processing module 113 is configured to process the first packet and/or the second packet based on control information in the information of the first packet.
In some embodiments, the parsing module 112 is configured to, after receiving the second packet, obtain a third verification result according to the first verification method according to the second packet; and when the third check result is the same as the check information corresponding to the check field in the second message, determining to analyze the second message.
In some embodiments, the second packet receiving module 111 is further configured to receive a management packet carrying information of the first packet and the first packet.
The first processing module 113 is configured to process the first packet according to the information of the first packet.
In another aspect of the embodiments of the present application, an apparatus is further provided, where the apparatus may be an access apparatus, such as a router, a server, and a convergence splitter. The structure of the device is shown in fig. 10, and the device comprises at least one processor 121 and at least one memory 122. Wherein the memory 122 comprises a computer program for storing data that can be executed on the processor 121, wherein the processor 121 is configured to execute, when executing the computer program: a method of data transmission, the method comprising:
receiving a first message;
adding the information of the first message to a first field in the first message to obtain a second message; the size of the first message is not smaller than that of the second message;
and sending the second message.
In some embodiments, the processor 121 is further configured to, when running the computer program, perform:
adding the information of the first message to a first field in the first message to obtain a second message, wherein the method comprises the following steps:
and adding the receiving interface information, the target interface information and the control information of the first message to the first field to obtain a second message.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the information of the first packet further includes: and reserving information.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the reservation information comprises at least one of: frame identification information and numbering information;
wherein the number information is used for representing the interface number and/or the priority of transmission.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the frame identification information is used to determine the type of the second packet.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the control information is used for indicating the processing mode of the second message or the first message;
wherein, the processing mode of the second message or the first message comprises at least one of the following items: transmitting the first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning the second message, and discarding the second message;
wherein the number of the target interface comprises at least one of: and receiving the interface number in the interface information, the interface number in the target interface information and the interface number represented by the number information.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the first field includes at least one of: a preamble field, a data field, and a check field.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
in case the first field comprises said check field, the information of the first packet further comprises check information.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
the verification information is obtained by verifying the first message according to a first verification method.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
before obtaining the second packet, the method further includes:
checking the first message according to a second checking method to obtain a second checking result;
and when the second check result is the same as the check information corresponding to the check field in the first message, determining to add the information of the first message to the first field.
In some embodiments, the processor 121 is further configured to execute, when running the computer program:
after the receiving the first packet, the method further comprises:
determining whether to generate a management message carrying information of the first message according to the relation between the performance parameter of the network and a first threshold; or determining whether to generate a management message carrying the information of the first message according to the relationship between the performance parameter of the network and a first threshold and whether the first field meets the condition of carrying the information of the first message;
and sending the first message and the management message under the condition of determining to generate the management message.
In some embodiments, the device further comprises a system bus 123. Wherein the system bus 123 is configured to enable connective communication between these components.
In another aspect of the embodiments of the present application, another device is further provided, where the device may be an access device, such as a router, a server, and a convergence splitter. The structure of the device is shown in fig. 11, and the device comprises at least one processor 131 and at least one memory 132. Wherein the memory 132 comprises a computer program for storing data executable on the processor 131, wherein the processor 131 is configured to execute, when executing the computer program: a method of data transmission, the method comprising:
receiving a second message; the second message is obtained by adding the information of the first message to the first field in the first message; the size of the first message is not smaller than that of the second message;
analyzing the second message, and acquiring the first message and the information of the first message;
and processing the first message and/or the second message according to the information of the first message.
In some embodiments, the processor 131 is further configured to execute, when running the computer program:
analyzing the second message to obtain the first message, including:
analyzing the second message, and determining information corresponding to a first field in the first message;
and acquiring the first message based on the information corresponding to the first field.
In some embodiments, the processor 131 is further configured to execute, when running the computer program:
analyzing the second message, and determining information corresponding to the first field in the first message, wherein the information comprises:
and under the condition that the first field comprises a check field, acquiring check information corresponding to the check field in the first message according to the second message and a second check method.
In some embodiments, the processor 131 is further configured to execute, when running the computer program:
and analyzing each field in the second message to obtain the receiving interface information, the target interface information and the control information of the first message.
In some embodiments, the processor 131 is further configured to, when running the computer program, perform:
analyzing the second message to obtain the information of the first message, further comprising:
analyzing each field in the second message to obtain the reserved information of the first message;
wherein the reservation information comprises at least one of: frame identification information and numbering information.
In some embodiments, the processor 131 is further configured to execute, when running the computer program:
processing the first message and/or the second message according to the information of the first message, including:
and processing the first message and/or the second message based on the control information in the information of the first message.
In some embodiments, the processor 131 is further configured to execute, when running the computer program:
after receiving the second message, the method includes:
according to the second message, a third verification result is obtained according to the first verification method;
and when the third check result is the same as the check information corresponding to the check field in the second message, determining to analyze the second message.
In some embodiments, the processor 131 is further configured to, when running the computer program, perform:
the data transmission method further comprises:
receiving a management message carrying information of a first message and the first message;
and processing the first message according to the information of the first message.
In some embodiments, the apparatus further comprises a system bus 133. Wherein the system bus 133 is configured to enable connective communication between these components.
In another aspect of the embodiments of the present application, a computer storage medium is further provided, where a data transmission program is stored on the computer storage medium, and when the data transmission program is executed by a processor, the steps of the base data transmission method provided in any embodiment of the present application are implemented.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (23)

1. A data transmission method is applied to a sending end, and is characterized in that the sending end is used for converging messages received from a plurality of low-speed interfaces and then transmitting the messages through a high-speed interface, and the method comprises the following steps:
receiving a first message;
re-dividing each byte in a first field in the first message to obtain a structure of a second message;
adding information corresponding to other fields except the first field in the first message to corresponding fields in the structure of the second message according to the structure of the second message, and adding the information of the first message to the first field to obtain a second message;
the size of the first message is not smaller than that of the second message;
and sending the second message.
2. The method of claim 1, wherein the first message information comprises:
and receiving interface information, destination interface information and control information of the first message.
3. The method of claim 2, wherein the information of the first packet further comprises: and reserving information.
4. The method of claim 3, wherein the reservation information comprises at least one of: frame identification information and number information;
wherein the number information is used for representing the interface number and/or the priority of transmission.
5. The method of claim 4, wherein the frame identification information is used to determine the type of the second packet.
6. The method according to claim 4 or 5, wherein the control information is used for indicating a processing mode of the second packet and/or the first packet;
wherein the processing mode of the second message or the first message comprises at least one of the following: transmitting the first message to a target interface, distributing the first message to at least two target interfaces, preferentially transmitting the first message to the target interfaces, returning the second message, and discarding the second message;
wherein the number of the target interface comprises at least one of: the interface number in the receiving interface information, the interface number in the destination interface information, and the interface number indicated by the number information.
7. The method of claim 1, wherein the first field comprises at least one of: a preamble field, a data field, and a check field.
8. The method of claim 7, wherein in the case that the first field comprises the check field, the information of the first packet further comprises check information.
9. The method of claim 8, wherein the verification information is obtained by verifying the first packet according to a first verification method.
10. The method of claim 1, wherein prior to said obtaining the second packet, the method further comprises:
checking the first message according to a second checking method to obtain a second checking result;
and when the second check result is the same as the check information corresponding to the check field in the first message, determining to add the information of the first message to the first field.
11. The method of claim 1, wherein after said receiving the first packet, the method further comprises:
determining whether to generate a management message carrying the information of the first message according to the relation between the performance parameter of the network and a first threshold; or determining whether to generate a management message carrying the information of the first message according to the relationship between the performance parameter of the network and a first threshold and whether the first field meets the condition of carrying the information of the first message;
and sending the first message and the management message under the condition of determining to generate the management message.
12. A data transmission method applied to a receiving end, wherein the receiving end is configured to de-aggregate a packet received from a high-speed interface into a plurality of packets received by low-speed interfaces, and the method includes:
receiving a second message; wherein the second message is obtained by the following method: firstly, re-dividing each byte in a first field in a first message to obtain the structure of a second message; then according to the structure of the second message, adding information corresponding to other fields except the first field in the first message to corresponding fields in the structure of the second message, and adding the information of the first message to the first field to obtain a second message; the size of the first message is not smaller than that of the second message;
analyzing the second message to obtain the first message and the information of the first message;
and processing the first message and/or the second message according to the information of the first message.
13. The method of claim 12, wherein the parsing the second packet to obtain the first packet comprises:
analyzing the second message, and determining information corresponding to a first field in the first message;
and acquiring the first message based on the information corresponding to the first field.
14. The method of claim 13, wherein the parsing the second packet and determining information corresponding to a first field in the first packet includes:
and under the condition that the first field comprises a check field, acquiring check information corresponding to the check field in the first message according to a second check method according to the second message.
15. The method of claim 12, wherein the parsing the second packet to obtain the information of the first packet comprises:
and analyzing each field in the second message to obtain receiving interface information, target interface information and control information of the first message.
16. The method according to claim 15, wherein the parsing the second packet to obtain the information of the first packet further comprises:
analyzing each field in the second message to obtain the reserved information of the first message;
wherein the reservation information comprises at least one of: frame identification information and numbering information.
17. The method of claim 16, wherein the processing the first packet and/or the second packet according to the information of the first packet comprises:
and processing the first message and/or the second message based on control information in the information of the first message.
18. The method of claim 12, wherein after said receiving the second packet, comprising:
according to the second message, a third verification result is obtained according to a first verification method;
and when the third check result is the same as the check information corresponding to the check field in the second message, determining to analyze the second message.
19. The method of claim 12, further comprising:
receiving a management message carrying information of the first message and the first message;
and processing the first message according to the information of the first message.
20. A data sending device is applied to a sending end, and is characterized in that the sending end is used for converging messages received from a plurality of low-speed interfaces and then transmitting the messages through a high-speed interface, and the device comprises:
the first message receiving module is used for receiving a first message; a second message obtaining module, configured to repartition bytes in a first field in the first message to obtain a structure of a second message; according to the structure of the second message, adding information corresponding to other fields except the first field in the first message to corresponding fields in the structure of the second message, and adding the information of the first message to the first field to obtain the second message; the size of the first message is not smaller than that of the second message;
and the sending module is used for sending the second message.
21. A data transmission apparatus applied to a receiving end, wherein the receiving end is configured to de-aggregate a packet received from a high-speed interface into a plurality of packets received by low-speed interfaces, the apparatus comprising:
the second message receiving module is used for receiving a second message; wherein the second message is obtained by the following method: firstly, re-dividing each byte in a first field in a first message to obtain the structure of a second message; then according to the structure of the second message, adding information corresponding to other fields except the first field in the first message to corresponding fields in the structure of the second message, and adding the information of the first message to the first field to obtain a second message; the size of the first message is not smaller than that of the second message;
the analysis module is used for analyzing the second message and acquiring the first message and the information of the first message;
and the first processing module is used for processing the first message or the second message according to the information of the first message.
22. An apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the data transmission method as claimed in any one of claims 1 to 11 or claims 12 to 19.
23. A computer storage medium, characterized in that the computer storage medium has stored thereon a data transfer program which, when executed by a processor, implements the steps of the data transfer method according to any one of claims 1 to 11, or claims 12 to 19.
CN202010577104.4A 2020-06-22 2020-06-22 Data transmission method, device, equipment and storage medium Active CN112003816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010577104.4A CN112003816B (en) 2020-06-22 2020-06-22 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010577104.4A CN112003816B (en) 2020-06-22 2020-06-22 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112003816A CN112003816A (en) 2020-11-27
CN112003816B true CN112003816B (en) 2023-04-18

Family

ID=73466685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010577104.4A Active CN112003816B (en) 2020-06-22 2020-06-22 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112003816B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022110112A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Message processing method and device
CN116257484A (en) * 2021-12-10 2023-06-13 华为技术有限公司 Data transmission chip and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002103542A1 (en) * 2001-06-19 2002-12-27 Harris Corporation System and method for identifying a port
CN103475446A (en) * 2012-06-06 2013-12-25 富士施乐株式会社 Transmitting and receiving system and transmitting and receiving method
CN106856457A (en) * 2015-12-09 2017-06-16 华为技术有限公司 A kind of data transmission method, dispensing device and reception device
CN108631959A (en) * 2017-03-24 2018-10-09 华为技术有限公司 Communication means, data cell and control unit
CN108632091A (en) * 2018-05-09 2018-10-09 烽火通信科技股份有限公司 The service of connection devices is adaptively adapted to the implementation method of encapsulation in a kind of DCN networks
CN109005082A (en) * 2018-07-03 2018-12-14 中国人民解放军国防科技大学 Method and device for capturing Ethernet message by using CRC (Cyclic redundancy check) field
CN109309615A (en) * 2017-07-27 2019-02-05 杭州华为数字技术有限公司 The method and apparatus for transmitting data
CN110035039A (en) * 2018-01-12 2019-07-19 华为技术有限公司 A kind of method and apparatus that session is kept
CN110061914A (en) * 2019-04-29 2019-07-26 新华三技术有限公司 A kind of message forwarding method and device
CN110381071A (en) * 2019-07-24 2019-10-25 新华三技术有限公司合肥分公司 A kind of message transmitting method, device and send method, apparatus
CN111131214A (en) * 2019-12-18 2020-05-08 华南理工大学 Method for converting SV message into R-SV message between transformer substations

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002103542A1 (en) * 2001-06-19 2002-12-27 Harris Corporation System and method for identifying a port
CN103475446A (en) * 2012-06-06 2013-12-25 富士施乐株式会社 Transmitting and receiving system and transmitting and receiving method
CN106856457A (en) * 2015-12-09 2017-06-16 华为技术有限公司 A kind of data transmission method, dispensing device and reception device
CN108631959A (en) * 2017-03-24 2018-10-09 华为技术有限公司 Communication means, data cell and control unit
CN109309615A (en) * 2017-07-27 2019-02-05 杭州华为数字技术有限公司 The method and apparatus for transmitting data
CN110035039A (en) * 2018-01-12 2019-07-19 华为技术有限公司 A kind of method and apparatus that session is kept
CN108632091A (en) * 2018-05-09 2018-10-09 烽火通信科技股份有限公司 The service of connection devices is adaptively adapted to the implementation method of encapsulation in a kind of DCN networks
CN109005082A (en) * 2018-07-03 2018-12-14 中国人民解放军国防科技大学 Method and device for capturing Ethernet message by using CRC (Cyclic redundancy check) field
CN110061914A (en) * 2019-04-29 2019-07-26 新华三技术有限公司 A kind of message forwarding method and device
CN110381071A (en) * 2019-07-24 2019-10-25 新华三技术有限公司合肥分公司 A kind of message transmitting method, device and send method, apparatus
CN111131214A (en) * 2019-12-18 2020-05-08 华南理工大学 Method for converting SV message into R-SV message between transformer substations

Also Published As

Publication number Publication date
CN112003816A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US11290221B2 (en) Method and apparatus for transmitting and receiving data in a communication system
CN109391560B (en) Network congestion notification method, proxy node and computer equipment
WO2018054397A1 (en) Service function chain detection path method and device
CN112003816B (en) Data transmission method, device, equipment and storage medium
EP3605881B1 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
CN110708250A (en) Method for improving data forwarding performance, electronic equipment and storage medium
CN111211980A (en) Transmission link management method, transmission link management device, electronic equipment and storage medium
CN112994839A (en) Flexible Ethernet overhead multiframe receiving method, device, equipment and medium
EP3541088B1 (en) Method, device and system for bearing a frame sequence number in a multichannel passive optical network
CN114285765A (en) Link failure detection method, device and computer readable storage medium
CN112217685B (en) Tunnel detection method, terminal device, system, computer device and storage medium
CN105763375A (en) Data packet transmission method, receiving method and microwave station
CN111490907B (en) Method and device for determining VXLAN network performance parameters
US11196792B2 (en) Method, device and system for transmitting data
CN111416690A (en) Train redundant network communication system and method based on Ethernet
CN110943919A (en) Link aggregation transmission method, device, terminal and storage medium
CN111082957B (en) Port configuration detection method, terminal and computer-readable storage medium
US7272778B2 (en) Method and systems for improving test of data transmission in multi-channel systems
CA3160170A1 (en) System and method for efficient and scalable vsat real-time monitoring (vrtm)
WO2022222693A1 (en) Message processing method and apparatus, electronic device, and computer-readable storage medium
US20230119202A1 (en) Transmitting station and receiving station
CN114944969B (en) Vehicle data processing method, internet of vehicles terminal and computer readable storage medium
CN109005174A (en) Data communications method, device, computer storage medium and equipment
CN110312275A (en) The method that CBR business realizes business monitoring on ethernet frame
CN116527202A (en) Method and system for data transmission

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