CN110798415B - Service transmission method, equipment and computer storage medium - Google Patents
Service transmission method, equipment and computer storage medium Download PDFInfo
- Publication number
- CN110798415B CN110798415B CN201810880267.2A CN201810880267A CN110798415B CN 110798415 B CN110798415 B CN 110798415B CN 201810880267 A CN201810880267 A CN 201810880267A CN 110798415 B CN110798415 B CN 110798415B
- Authority
- CN
- China
- Prior art keywords
- message
- transmitted
- service
- data
- network interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 162
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000012545 processing Methods 0.000 claims abstract description 33
- 238000004806 packaging method and process Methods 0.000 claims abstract description 16
- 238000011084 recovery Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 12
- 238000005538 encapsulation Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 8
- 238000013507 mapping Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000009432 framing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/622—Queue service order
- H04L47/6225—Fixed service order, e.g. Round Robin
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1611—Synchronous digital hierarchy [SDH] or SONET
- H04J3/1617—Synchronous digital hierarchy [SDH] or SONET carrying packets or ATM cells
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1652—Optical Transport Network [OTN]
- H04J3/1664—Optical Transport Network [OTN] carrying hybrid payloads, e.g. different types of packets or carrying frames and packets in the paylaod
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
- H04L1/0007—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
The embodiment of the invention discloses a method and equipment for service transmission and a computer storage medium. The method comprises the following steps: cutting the data of a service to be transmitted into blocks according to a preset length to obtain at least one data block; respectively packaging each data block according to a preset message format to obtain at least one message to be transmitted; analyzing each message to be transmitted respectively, and determining the sending direction of each message to be transmitted; and dispatching the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
Description
Technical Field
The present invention relates to communications technologies, and in particular, to a method, a device, and a computer storage medium for service transmission.
Background
With the development of communication technology, the internet, the cable television network and the telecommunication network are integrated with each other, and a unified network system is gradually formed. Among the three networks, the transmission technology of the telecommunication network needs to be changed from Synchronous Digital Hierarchy (SDH) technology to ethernet technology mainly based on packet transmission technology.
As for the SDH technology, it is a circuit transmission technology, and specifically, a dedicated and exclusive circuit channel is established between two clients to transmit information, and its advantages are short transmission delay time, small delay jitter, high reliability, and is very suitable for transmission of voice services; but when no information is transmitted between the two clients, as long as the dedicated channel is not revoked, the dedicated circuit channel is still in a state of being shared by the two clients, so that other clients cannot use the dedicated circuit channel, and the transmission efficiency is low. For the packet transmission technology, a message format is adopted between two clients to transmit information, and the specific scheme is that a virtual transmission channel is established between the two clients, the two clients transmit messages through the virtual channel, the virtual channel can be established on a physical entity channel, and all the clients share the bandwidth resources of the physical entity channel. When no information is transmitted between the two clients, the bandwidth resources of the virtual transmission channel are shared to other clients for use, so that the virtual transmission channel has a good multiplexing characteristic, and the bandwidth is guaranteed not to be wasted, so that the transmission efficiency is high, and the transmission cost is low.
However, in terms of the packet transmission technology, when a certain client a starts to have service packet transmission, if other clients are sending packets, the client a needs to wait for the other clients to finish sending the current packet before retrieving the bandwidth of the virtual channel, which results in that the packet of the client a cannot be sent in time, and therefore, there are uncertain time delay during sending the packet and jitter caused by fluctuation of the time delay. In addition, when a packet transmitted between a pair of clients needs to pass through many intermediate node devices on the network, the packet will cause delay and jitter of different degrees each time it passes through one intermediate node device of the network, and the delay and jitter will be accumulated after passing through multiple intermediate node devices, resulting in serious reduction of service transmission quality. Therefore, in the process of three networks integration, when the voice service is transmitted by using the packet transmission technology, the transmission quality of the voice service is reduced due to the above-mentioned problems, and the high-quality transmission of the voice service cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a method, equipment and computer storage medium for service transmission
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for service transmission, where the method includes:
cutting the data of a service to be transmitted into blocks according to a preset length to obtain at least one data block;
respectively packaging each data block according to a preset message format to obtain at least one message to be transmitted;
analyzing each message to be transmitted respectively, and determining the sending direction of each message to be transmitted;
and dispatching the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
In a second aspect, an embodiment of the present invention provides a method for service transmission, where the method includes:
decapsulating a received transmission message to obtain a data block stream carried by the transmission message;
carrying out reverse decoding on the data block according to a set coding recovery strategy to obtain a bit stream corresponding to the original service data coding mode;
recovering the original service data from the bitstream;
and sending the original service data to a client.
In a third aspect, an embodiment of the present invention provides a network device, where the network device includes: a dicing part, an encapsulating part, an analyzing part, a scheduling part and a first sending part; wherein,
the block cutting part is configured to cut the data of the service to be transmitted according to a preset length to obtain at least one data block;
the encapsulation part is configured to encapsulate each data block according to a preset message format to obtain at least one message to be transmitted, and transmit the message to be transmitted to the analysis part according to a set transmission speed;
the analysis part is configured to analyze each message to be transmitted respectively and determine the sending direction of each message to be transmitted;
the scheduling part is configured to schedule the messages to be transmitted with the same sending direction and the same processing mode on the same service flow;
and the first sending part is configured to send the service flow to an exclusive network interface or an exclusive time slot in the network interface according to a set transmission speed.
In a fourth aspect, an embodiment of the present invention provides a network device, where the network device includes: a decapsulation section, a first recovery section, a second recovery section, and a second transmission section; wherein,
the decapsulation part is configured to decapsulate the received transmission packet to obtain a data block flow carried by the transmission packet;
the first recovery part is configured to perform reverse decoding on the data block according to a set coding recovery strategy to obtain a bit stream corresponding to the original service data coding mode;
the second recovery part is configured to recover the original service data from the bit stream;
the second sending part is configured to send the original service data to the client.
In a fifth aspect, an embodiment of the present invention provides a network device, where the network device includes a first network interface, a first memory, and a first processor; the first network interface is used for receiving and sending signals in the process of receiving and sending information with other external network elements; the first memory for storing a computer program operable on the first processor; the first processor is configured to, when running the computer program, perform the steps of the method of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a network device, where the network device includes: a second network interface, a second memory, and a second processor; the second network interface is used for receiving and sending signals in the process of receiving and sending information with other external network elements; the second memory for storing a computer program operable on a second processor; the second processor is configured to, when running the computer program, perform the steps of the method of the second aspect.
In a seventh aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a program of service transmission, and the program of service transmission implements, when executed by at least one processor, the steps of the method of service transmission according to the first aspect or the second aspect.
The embodiment of the invention provides a method, equipment and a computer storage medium for service transmission; the method comprises the steps of slicing the data of the service to be transmitted according to a uniform preset length, and then analyzing and sending the sliced data according to a set transmission speed, so that the service to be transmitted is transmitted at a stable speed in the transmission process, the delay time is short, the delay fluctuation is small, and the transmission quality of the service is close to that of an SDH network.
Drawings
Fig. 1 is a schematic diagram of a communication network architecture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a message transmission flow according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for service transmission according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a sending-end message processing flow provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a multi-path selection according to an embodiment of the present invention;
fig. 6 is a schematic diagram of forming an OTN frame according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of another service transmission method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a destination message processing flow provided in the embodiment of the present invention;
fig. 9 is a detailed flowchart of a service transmission method according to an embodiment of the present invention;
fig. 10A is a schematic flowchart of a specific example provided by the embodiment of the present invention;
FIG. 10B is a schematic flow chart diagram illustrating another exemplary embodiment of the present invention;
fig. 10C is a flowchart illustrating another specific example provided by the embodiment of the present invention;
fig. 11 is a schematic diagram illustrating a network device according to an embodiment of the present invention;
fig. 12 is a schematic diagram illustrating another network device according to an embodiment of the present invention;
fig. 13 is a schematic hardware structure diagram of a network device according to an embodiment of the present invention;
fig. 14 is a schematic diagram illustrating a configuration of another network device according to an embodiment of the present invention;
fig. 15 is a schematic diagram of a specific hardware structure of another network device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1, it shows an architectural schematic of a communication network 100 capable of applying a packet transmission technology, where the communication network 100 includes a plurality of client devices and a plurality of network node devices. The client devices are respectively a client 1, a client 2, a client 3 and a client 4; and the network node devices include node a, node B, node C, node D, node E, and node F, respectively. As shown in fig. 1, when the client 1 and the client 2 gather and need to transmit information, a virtual transmission channel 1 as shown by a dotted line may be established between the client 1 and the client 2, and the transmission channel 1 passes through a node a, a node B, a node C, and a node D, respectively. In this transmission channel 1, the client 1 and the client 2 are referred to as Client Edge (CE) devices; the node a and the node D are called Provider Edge (PE) devices because they are connected to the client 1 and the client 2, respectively; in this transmission channel, node B and node C are only responsible for data exchange of information, and are therefore called operator (P) devices. Similarly, when a virtual transmission channel 2 shown by a dotted line is established between the client 3 and the client 4, for the transmission channel 2, the node a and the node C may be referred to as PE devices, and the node B may be referred to as P device. For the two transmission channels, it can be seen from the figure that the transmission channel 1 and the transmission channel 2 share the physical channel from node a to node B to node C. It can be understood that, when there is no message sent between the client 1 and the client 2, the transmission channel 1 is in an idle state, and releases the bandwidth resource, and at this time, the transmission channel 2 can share the bandwidth resource released by the transmission channel 1, so that the bandwidth of the transmission channel 2 is increased, and the bandwidth waste is avoided.
It should be noted that the communication Network 100 may be applicable not only to Ethernet, but also to communication networks based on packet transmission, such as an Optical Transport Network (OTN) and a Flexible Ethernet (FlexE), which are not described in detail in this embodiment of the present application.
Taking fig. 1 as an example, in the process of information transmission, information is generally transmitted in a message manner, and the length of each message is variable, and is generally 64 bytes to 1518 bytes. When the client 1 has no message to transmit to the client 2, the bandwidth of the transmission channel 1 may be shared to other clients for use, for example, may be shared to the transmission channel 2 for use. When the client 1 needs to transmit the message to the client 2, if the transmission channel 2 is being used by the client 3 and the client 4, the transmission channel 1 needs to be used after the transmission of the client 3 and the client 4 is completed. Therefore, there is an uncertain time delay in sending the message during the transmission through the packet, which results in the delay and jitter of the message in transmission.
For the communication device, fig. 2 shows a specific flow in the process of transmitting a message, and it can be seen that, after the message received by the physical inlet is analyzed and classified, a sending port of the message may be determined according to feature information of the message, such as the content of the MAC address, the IP address, the priority, and the like of the message, and a queue, such as queue 1, queue 2, queue n in the figure, is queued, and then is waited to be scheduled and output to the physical outlet. It can be seen that the scheduler can call out messages from different queues according to a predetermined scheduling algorithm, and send the messages to the physical outlet for sending. Because the lengths of each message are different, even though the scheduling algorithm can ensure that the message has a certain output bandwidth, when one message needs to be sent and output, the next message can be sent only after the last message is sent, the waiting time is uncertain, and delay jitter is also brought by the uncertainty of the delay time. Each time a message passes through one network node device, delay and jitter of different degrees exist, delay time and delay jitter accumulated after the message passes through a plurality of devices are very large, so that transmission quality in a packet transmission process is unstable, and when high-quality voice services need to be transmitted, for example, large customer private line services such as a power network, a military network and a railway network, the quality of the voice services is greatly reduced, and the quality requirements of the private line services cannot be met.
In view of the above hidden troubles in the related art, the embodiment of the present invention provides the following technical solutions based on the network architecture shown in fig. 1.
Example one
Referring to fig. 3, it illustrates a method for service transmission according to an embodiment of the present invention, where the method may be applied to a sending-end PE device for performing service transmission, and the method may include:
s301: cutting the data of a service to be transmitted into blocks according to a preset length to obtain at least one data block;
s302: respectively packaging each data block according to a preset message format to obtain at least one message to be transmitted;
s303: analyzing each message to be transmitted respectively, and determining the sending direction of each message to be transmitted;
s304: and dispatching the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
For the technical solution shown in fig. 3, it should be noted that the processing manner may represent a process of processing data of the service to be transmitted according to steps S301 to S303. It can be seen that, after the data of the service to be transmitted is cut into blocks according to the uniform preset length, the data is analyzed and sent according to the set transmission speed, and the sent network interface or the time slot on the network interface is shared, so that the service to be transmitted is transmitted at a stable speed in the transmission process, the delay time is short, the delay fluctuation is small, and the transmission quality of the service is close to the transmission quality of the SDH network.
For the technical solution shown in fig. 3, in a possible implementation manner, the data of the service to be transmitted includes a bit stream received through a physical interface and/or message data received through a user interface.
For the foregoing implementation manner, preferably, the data corresponding to the service to be transmitted is a bit stream received through a physical interface, and the slicing is performed on the data of the service to be transmitted according to a preset length to obtain at least one data block, including:
slicing the bit stream received through the physical interface according to the preset length to obtain at least one data block;
or after the bit stream received through the physical interface is coded according to a set coding strategy, the coded bit stream is cut into blocks according to the preset length, and at least one data block is obtained.
For the foregoing implementation manner, preferably, the data corresponding to the service to be transmitted is message data received through a user interface, and the data of the service to be transmitted is diced according to a preset length to obtain at least one data block, including:
coding the message data according to a set coding strategy;
adjusting the transmission speed of the encoded message data and caching the encoded message data;
and slicing the cached coded message data according to the preset length to obtain at least one data block.
It should be noted that, taking the transmission channel 1 shown in fig. 1 as an example, it is set that the client 1 sends a service to be transmitted to the client 2, where the service may be a dedicated service that needs to ensure transmission quality, and then for the node a, a client interface between the node a and the client 1 may be a physical interface or a user interface. When the client interface is a physical interface, the client signal and the bit stream information are detected on the physical interface, and the client bit stream can be sliced to a fixed length. For example, when the client interface is a 1G ethernet interface, the Physical interface of the client uses 8b/10b Coding (i.e. indicating that the 8-bit length is converted into 10-bit length) in the PCS layer, and the Physical Coding Sublayer (PCS) layer detects that the bit stream is 10b coded, cuts the bit stream into information blocks with fixed length, and then encapsulates the information blocks into ethernet messages. When the client interface is an ethernet interface of 10G or 40G, the PCS layer coding format adopts 64b/66b coding (i.e. 64-bit length is converted into 66-bit length), the block stream with the 66-bit length after coding is detected and extracted based on PCS, and is directly cut into fixed length according to the 66-bit block stream, and then is encapsulated into an ethernet message.
When the client interface is a user interface, received message data, such as an ethernet message, may be encoded first for the ethernet message (at this time, various encoding methods may be adopted, since the 64b/66b encoding efficiency is relatively high, speed adjustment is convenient, and a 64b/66b encoding method may be adopted, in the embodiment of the present invention, 64b/66b is taken as an example, but does not represent the possibility of excluding the use of other encoding methods), and the encoded 66-bit block stream is buffered, and speed adjustment is performed during buffering. When the buffer depth moves towards the fast empty direction, inserting a free idle block (namely a 66-bit long control block for indicating that the information block is a free information block) in the 66-bit block stream; when the buffer depth moves towards the fast full direction, the free blocks or other information blocks are deleted from the 66-bit block stream, thus ensuring that the buffer will not overflow. And reading out a 66-bit long block stream from the buffer, cutting the block stream into fixed length, and then packaging the block stream into Ethernet messages.
For this implementation, it should be noted that, if the encoded bit stream or the encoded message data is a 66-bit stream, the preset length is an integer multiple of 66 bits; or,
if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; or,
if the encoded bit stream or the encoded message data is a 10-bit stream, the preset length is an integer multiple of 10 bits.
For the technical solution shown in fig. 3, in a possible implementation manner, the encapsulating the data block according to a preset message format to obtain a message to be transmitted includes:
and packaging each data block according to an Ethernet message format to obtain at least one Ethernet message to be transmitted.
For the foregoing implementation manner, preferably, the encapsulating each data block according to an ethernet packet format to obtain at least one ethernet packet to be transmitted includes:
encapsulating a Multi-Protocol Label Switching (MPLS) Protocol Label of each data block to the Ethernet message to be transmitted; wherein the MPLS protocol label of the data block includes at least one of: a pseudowire label, a tunnel label, and a pseudowire control word.
For the foregoing implementation manner, preferably, the encapsulating each data block according to an ethernet packet format to obtain at least one ethernet packet to be transmitted includes:
packaging the auxiliary information of each data block to the Ethernet message to be transmitted; wherein the auxiliary information of the data block at least comprises one of the following items: a sequence number, clock information, and a timestamp value.
It should be noted that, this embodiment may also use other message formats for encapsulation, which is only described in an ethernet message format, and about 30 bytes (6 bytes of source MAC address, 6 bytes of destination MAC byte, 2 bytes of message type, 4 bytes of pseudo wire label, 4 bytes of tunnel label, 4 bytes of control word, 4 bytes of Cyclic Redundancy Check (CRC) are required to be added in the process of encapsulating according to the ethernet message format, as shown in table 1, taking 65-bit encoding as an example, the structure of the ethernet message is as follows:
TABLE 1
For table 1, in order to accelerate the message parsing speed and quickly determine the transmission channel of the message, the MPLS label switching technology is used to implement the message scheduling switching. The label value is added in the message, and the label value can comprise fields such as a tunnel label, a pseudo-wire label and a pseudo-wire control word. The message content part is used to carry a fixed chunk length, table 1 is chunked on a 65-bit chunk stream, and the length of the message content part is 32 bits in length, i.e. 260 bytes (i.e. 1 byte equals 8 bits). And after being packaged, the Ethernet messages are converged and output according to a fixed speed. In the MPLS label switching technology, an ethernet packet is encapsulated with a tunnel label and a pseudo-wire label, so that a label value can be used for analyzing the packet instead of information such as an MAC address and an IP address, thereby accelerating the table lookup speed of the packet and increasing the processing speed. The label value can determine which client the message belongs to and is transmitted through which channel, so that one or two layers of labels, namely a tunnel label and a pseudo-wire label, can be added on the message package when the message data content is cut into blocks and packaged. According to the MPLS protocol, pseudowire labels are used to represent customer attributes, tunnel labels represent customer transmission paths, and tunnel labels represent different customers of the same transmission path. And determining a transmission path of each service flow through the label value, and reserving an independent network interface or an independent time slot on the network interface for the client on each node device on the transmission path.
It should be noted that, the pseudowire control word may include a sequence number, clock information, a timestamp value, and the like, and is used to monitor whether a message is lost, recover a client service clock, and delay time. When the slice length is larger, the length of the content of the slice carried by the message is larger, and the encapsulation efficiency is higher. Because the longer the message length, when the messages of two service flows converge to the same direction, if there is no stagger in scheduling time, when two service flows arrive at the same time, only one service can be output in turn, and the other one waits for output. The longer the message, the longer the time the latter traffic flow needs to wait. When the length of the cut block is shorter, the length of the cut block content carried by the message is shorter, and the encapsulation efficiency is lower. However, when two service flow messages converge towards the same direction at the same time, the waiting time of the message waiting for output is shorter. Taking 64b/66b coding as an example, when a service stream after 64b/66b coding is decoded, a boundary of 66b block length needs to be searched, because the time spent in the process of searching 66b block boundary is very long, in order to omit the process of searching 66b block boundary in a packet message, the fixed length of a cut block can be an integral multiple of 66b, so that the cut block can be cut according to a 66 bit block whole block, all information bits in the cut block are complete 66 bit blocks, the first bit of the cut block is the first bit of the first 66 bit block, and the work of searching 66 bit block boundary is omitted when 64/66b is decoded. Similarly, if the slicing is performed on a 65-bit block stream, the slicing length may be an integer multiple of 65 bits; if the slicing is performed on a 10-bit block stream, the slicing length may be an integer multiple of 10 bits.
For 10M, 100M and 1G Ethernet interfaces, the physical PHY layer adopts 4b/5b, 8b/10b and other coding formats. When the physical PHY layer adopts 8b/10b coding, the length of 8 bits is changed into 10 bits to transmit special function information, and the bandwidth is additionally increased by 25% during transmission, that is, a 10M service stream needs 12.5M transmission bandwidth, and the bandwidth utilization rate of a transmission channel is only 80%. If the packet is cut on the coded 10 bits, the encapsulation efficiency of the packet is also 90%, and the bandwidth utilization rate is only 72%. The 10b codes are re-encoded, 8 10b code blocks are converted into a 65-bit-length code block (the specific conversion process can be referred to as chapter 8.1.1 of 2005 edition of g.7041/y.1303 standard), 8 10b coded data streams are converted into a 65-bit block stream, and the 65-bit block stream is cut into blocks, so that the highest bearing efficiency of the message is improved from 80% to 98.46%. When the block is cut on the 65-bit fast stream, in order to save the activity of searching the boundary of the 65-bit block during decoding, the length of the block can be integral multiple of the length of the 65-bit block, so that all information bits in the block are complete 65-bit blocks, the first bit of the block is the first bit in the first 65 b-bit block, and the work of searching the boundary of the 65b block is omitted during decoding of the 65b block. In the implementation, the 65-bit block can be re-encoded into a 66-bit block, so that the bit stream before switching is a bit stream with a length of 66 bits, and the coding length is consistent with that of the PCS layer of the 10G and 40G interfaces. When the physical layer adopts 4b/5b coding, the block can be directly cut on the coded 5-bit length block stream, and the cutting length is integral multiple of 5 bits; two 5-bit-length code blocks may be treated as a 10-bit-length code block, and 8 10b coded data blocks may be converted into a 65-bit block according to the rule of 8b/10b to 65b, and then cut into a 65-bit block stream.
As for the technical scheme shown in fig. 3, a scheduling portion may be specifically set in a sending end PE device for service transmission, and a message to be transmitted is transmitted to the scheduling portion according to a set transmission speed, where the transmission speed is to ensure a bandwidth requirement of client information. And the packaged message to be transmitted is always sent at a fixed speed no matter the client service is in heavy load or light load. When the service is in a full flow, a large amount of useful information of the client is carried in the message to be transmitted; when the client service is in light load, part of the messages to be transmitted is useful information of the client, and part of the messages is idle information. The message to be transmitted is sent at a constant speed, so that the speed of a bearing channel of a client is ensured to be constant all the time, the speed of the bearing channel is constant no matter how the effective information of the client service is changed, and the influence of the effective service bandwidth of the client and the speed of other services on the network is avoided.
For the technical scheme shown in fig. 3, the parsing is performed on the message to be transmitted, and the sending direction of the message to be transmitted is determined, specifically, all the sent messages from the client interface are subjected to label parsing, and a transmission channel of the message is determined.
For the technical solution shown in fig. 3, in a possible implementation manner, the scheduling the to-be-transmitted packets with the same sending direction and the same processing mode on the same service stream, and sending the service stream to an exclusive network interface or an exclusive timeslot of the network interface according to a set transmission speed may include:
scheduling the messages to be transmitted with the same sending direction and the same processing mode on the same service flow according to a polling scheduling mode;
and sending the service flow to an exclusive network interface or an exclusive time slot on the network interface according to the set transmission speed.
For the implementation manner, it should be noted that, because the sending speed is stable, the packet length is a fixed length, and the dedicated line service in the same sending direction participates in scheduling, the working speed of the scheduling portion may be greater than or equal to the total speed of all service flows participating in scheduling, the network interface (or the time slot of the network interface) for scheduling output is unique, the output speed is stable, under the stable working condition, the dedicated line service flow is transmitted in the network transmission path at a stable speed, the delay time is short, the delay fluctuation is small, and the transmission quality of the service is close to the transmission quality of the SDH network.
In addition, optionally, the scheduling, to-be-transmitted packets with the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to an independent network interface or an independent time slot of the network interface according to a set transmission speed includes:
when only one of the plurality of service flows can be scheduled and output, the service flow which can be scheduled and output is scheduled in a multi-path selection mode and is sent to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
It should be noted that, if only one service flow in all messages can be sent to the client interface, and there is no way to aggregate multiple service flows into one service flow, the polling scheduling mode may be replaced by multi-path selection.
In this embodiment, the above scheme is applied to a PE device serving as a sending end, where one side interface of the PE device is a U-side interface, which is a client interface, and receives a client service; the other side is an N-side interface connected to a network interface. The customer service enters the network system in the PE equipment, penetrates a plurality of pieces of equipment through the established network channel and is sent to the destination point. However, in the entire network architecture, the PE device as the sending end has a great possibility to also serve as a P device of another transmission channel, that is, only sends the traffic from one network interface to another network interface. Therefore, when the PE device at the sending end is also used as a P device of another transmission channel, the foregoing solution of this embodiment may further include:
when at least one physical signal is received from an exclusive network interface or an exclusive time slot in the network interface, restoring each physical signal into message data respectively;
analyzing the message data corresponding to each physical signal, and determining the sending direction of at least one message data;
after the message data with the same sending direction and the same processing mode are scheduled in the same service flow, the service flow is subjected to service mapping and sent through an independent network interface or an independent time slot of the network interface.
That is to say, in a normal situation, the PE device at the sending end also takes on the role of the P device in other transmission channels, based on this, the technical solution of this embodiment can be seen in fig. 4, where a message destined to a network interface is scheduled and aggregated to form a service stream and sent to the network interface, and the message sent to the network interface is sent out through a network physical interface after service mapping, as shown by a solid line in fig. 4. The messages destined for the client interface are scheduled and aggregated to form a service stream to be sent to the client interface, as shown by the dashed line in fig. 4. Because the customer service is fixed in length after being packaged and is sent at a fixed speed, the speeds of all the private line services are constant, all the private line services in the same direction are dispatched and output, and the working speed of the dispatching part is greater than or equal to the total speed of all the input service flows, so that the input service flows are immediately dispatched once entering the dispatching part, and in detail, the dispatching part can meet the requirements only by adopting a simple alternate dispatcher.
For the messages sent to the client interface, if only one service flow in the messages from the network interface and the messages from all the client interfaces is sent to the client interface, but there is no convergence of multiple service flows into one service flow, a multiplexer may be used instead of the scheduler to select one service flow from the multiple service flows to send to the client interface, as shown in fig. 5.
For the above scheme, the network interface may be a common ethernet interface, or may be a FlexE interface or an OTN interface. For an ethernet interface, the entire network interface is equivalent to only one time slot. For either the FlexE interface or the OTN interface, there are many timeslots on the network interface. When the network interface is a common Ethernet interface, the network interface is required to only transmit the private line service, the network interface is exclusive, other non-private line client services are not transmitted, and the private line service is not influenced by uncertain speed and uncertain packet length of other services when being transmitted.
And when the network interface is a Flexe interface, scheduling the converged service flow to be sent to the Flexe network logic interface, and mapping the service flow to a Flexe time slot in a Flexe client form for transmission. In the FlexE interface, the entire FlexE channel is divided into n × 20 slots, each slot being 66 bits in length and the corresponding bandwidth being 5G (bits/sec). Each FlexE client is carried on different time slots, is strictly physically isolated from each other and does not affect each other, so that each FlexE client is transmitted at a fixed speed.
When the network interface is an OTN interface, the aggregated sending service stream is sent to an OTN network logical interface, a client as an OTN physical interface is mapped into an Optical Channel Payload Unit (OPU), the OPU is encapsulated into an Optical Channel Data Unit (ODU), one ODU is a time slot, and finally, the ODU is processed into an OTN frame service for transmission, as shown in fig. 6. Different ODUs are isolated from each other, and the transmission speed is not influenced.
With the service transmission method provided in this embodiment, since the transmission speed of the dedicated line service is stable, the packet length is a fixed length, and the dedicated line service in the same direction participates in scheduling, so that the network interface (or the time slot of the network interface) for scheduling output is unique, and the output speed is stable. Therefore, under the stable working condition, the private line service flow is transmitted in the network transmission path at a stable speed, the delay time is short, the delay fluctuation is small, and the transmission quality of the service is close to that of the SDH network.
Example two
Based on the same inventive concept of the foregoing embodiment, referring to fig. 7, a method for service transmission provided in an embodiment of the present invention is shown, where the method is applicable to a receiving-end PE device for service transmission, and the method may include:
s701: decapsulating a received transmission message to obtain a data block stream carried by the transmission message;
s702: carrying out reverse decoding on the data block according to a set coding recovery strategy to obtain a bit stream corresponding to the original service data coding mode;
s703: recovering the original service data from the bitstream;
s704: and sending the original service data to a client.
For the technical solution of this embodiment, it should be noted that, after receiving the transmission packet, referring to fig. 8, by decapsulating, stripping off the content of the encapsulated part, including fields such as the destination address, the source address, the label, and the CRC check, extracting the slice part carried by the packet, recovering the decoded bit block code stream, and recovering the original client service output from the code stream block. For example: if the client interface is a 66 bit block stream, sending the extracted 66 bit block stream to a physical layer interface for sending; if the client interface is an 8b/10 coding stream and is coded by converting 8b/10 coding into 65b coding, after a 65b code block stream is extracted, restoring and decoding the 65b code block into a 10b code block, and sending the 10b code block to the physical layer interface to be sent out.
EXAMPLE III
Based on the same inventive concept of the foregoing embodiment, referring to fig. 9, it shows a method flow for service transmission provided by the embodiment of the present invention, where the flow may be applied to two PE devices of the network architecture shown in fig. 1, which are a sending-end PE device a and a destination PE device B, and the flow may include:
s901: the method comprises the steps that equipment A cuts data of a service to be transmitted into blocks according to a preset length to obtain at least one data block;
s902: the equipment A respectively packages each data block according to a preset message format to obtain at least one message to be transmitted;
s903: the equipment A analyzes each message to be transmitted respectively and determines the sending direction of each message to be transmitted;
s904: the equipment A schedules the messages to be transmitted with the same transmitting direction and the same processing mode on the same service flow and transmits the service flow to an exclusive network interface or an exclusive time slot of the network interface according to the set transmission speed;
it should be noted that, the above steps S901 to S904 are a procedure of sending, by the sending-end PE device a, the special line service, and specific implementation processes may refer to the description of corresponding parts in the first embodiment, which is not described herein again.
S905: the device B decapsulates the received transmission message to obtain a data block flow carried by the transmission message;
s906: the device B carries out reverse decoding on the data block according to a set coding recovery strategy to obtain a bit stream corresponding to the original service data coding mode;
s907: the device B recovers the original service data from the bit stream;
s908: the equipment B sends the original service data to a client
It should be noted that, the above steps S905 to S908 are flows of the destination PE device a receiving the dedicated line service, and specific implementation processes may refer to the description of corresponding parts in the second embodiment, and are not described herein again.
With respect to the flow shown in fig. 9, the present embodiment further explains a specific implementation process of the flow shown in fig. 9 by using a following specific example.
Specific example 1
Referring to fig. 10A, taking FlexE as an example, it is set that 4 1G customer services of a PE device at a sending end perform 8b/10b to 65b transcoding on PCS layer bit code streams, then slice 65 bit long code blocks into fixed lengths, and encapsulate the fixed lengths into ethernet messages, carry MPLS labels, and send the ethernet messages to a polling scheduling portion at a constant speed. After label analysis, the messages in the same direction and processing mode are scheduled and converged into a service stream, the service stream is mapped into FlexE time slots (the time slots are exclusive) in a FlexE client form, and FlexE service processing is completed through a FlexE interface, for example, 64/66 coding, time slot mapping, FlexE framing and the like are performed, and the service stream is sent out.
In a P device in a network, extracting a service corresponding to a time slot from a Flexe interface, directly crossing the service on the Flexe time slot, and sending the service to the time slot of another Flexe interface, as shown by a dotted line in the P device; or extracting the client service from the time slot, recovering the client service, scheduling the client service to the corresponding network interface through the scheduler, encoding and mapping the message into the corresponding Flexe time slot, and sending the message out through the Flexe interface, as shown by a solid line in the P device.
In the destination PE equipment, the message service is recovered from the time slot of the Flexe interface, is sent to the corresponding physical interface through scheduling, and is recovered to a client service bit stream through decapsulation and bit code block recovery and sent to the client. The total speed of 4 clients with the speed of 1G after slicing and packaging is close to the speed of 5G, and the clients can be transmitted through one Flexe time slot.
Specific example 2
Referring to fig. 10B, taking OTN as an example, it is set that 2 1G customer services of the PE device at the sending end are converted into a 65B code block by 8B/10B on a PCS layer bit code stream, then the 65 bit long code block is respectively sliced into fixed lengths, and the fixed lengths are respectively encapsulated into ethernet messages carrying MPLS labels, and the ethernet messages are sent to the polling scheduling portion at a fixed speed. After label analysis, the packets in the same direction are dispatched and converged into a service flow, processed by an OTN interface in an OTN client mode, for example, processed by OPU mapping, ODU encapsulation, OTU framing, and the like, and sent out.
In a P device in the network, an ODU service is extracted from an OTN interface, and may be directly crossed over on an ODU and sent to an OTU of another OTN interface, as shown by a dotted line in the P device. Or, the OPU content may be extracted from the ODU, the client service is recovered, the service is scheduled to the corresponding network interface through the scheduler, the packet is mapped to the OPU, the packet is encapsulated into the ODU, then the OTU frames, and the ODU is sent out through the OTN interface, as shown by the solid line in the P device.
In the destination PE equipment, an ODU service is extracted from an OTN interface, an OPU is extracted, a message service is recovered, the message service is sent to a corresponding physical interface through scheduling, and a client service bit stream is recovered and sent to a client through decapsulation and bit code block recovery. The total speed of 2 clients with 1G speed after slicing and packaging approaches to 2.5G speed, and the clients can be transmitted through one ODU.
Specific example III
Referring to fig. 10C, taking the general ethernet as an example, it is set that the customer services of 10M, 100M, and 1G of the PE device at the transmitting end are respectively performed 8b/10b to 65b code blocks on the PCS layer bit code stream, then the 65 bit long code blocks are respectively sliced and sliced into fixed lengths, and then the fixed lengths are respectively encapsulated into ethernet messages carrying MPLS labels, and the ethernet messages are transmitted to the polling scheduling portion at a fixed speed. After label analysis, the messages in the same direction and processing mode are dispatched and converged into a service flow, and then sent out through an exclusive Ethernet interface. It should be noted that the ethernet interface only carries one service flow, and does not share the same interface with other service flows.
In the P device in the network, the customer service is recovered from the Ethernet port, and is dispatched to the corresponding network interface through the dispatcher, and is sent out through the Ethernet interface.
In the destination PE equipment, a message is extracted from an Ethernet interface, and a client service bit stream is recovered and sent to a client through decapsulation and bit code block recovery. The 3 clients with the speeds of 10M, 100M and 1G share one transmission channel, are not mutually influenced, can transmit with high quality, and are not influenced by the actual speed of service, the message length and the network condition.
Through the description of the three specific examples, it can be seen that the service transmission method provided in the embodiment of the present invention can enable the private line service stream to be transmitted at a stable speed in the network transmission path, the delay time is short, the delay fluctuation is small, and the transmission quality of the service is close to the transmission quality of the SDH network.
Example four
Based on the same inventive concept of the foregoing embodiment, referring to fig. 11, it shows a composition of a network device 110 provided by the embodiment of the present invention, including: a slicing section 1101, a packing section 1102, a parsing section 1103, a scheduling section 1104, and a first sending section 1105; wherein,
the slicing part 1101 is configured to slice data of a service to be transmitted according to a preset length to obtain at least one data block;
the encapsulating part 1102 is configured to encapsulate each data block according to a preset message format to obtain at least one message to be transmitted, and transmit the message to be transmitted to the parsing part according to a set transmission speed;
the parsing part 1103 is configured to parse each to-be-transmitted packet, and determine a sending direction of each to-be-transmitted packet;
the scheduling part 1104 is configured to schedule the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow;
the first sending part 1105 is configured to send the service stream to an exclusive network interface or an exclusive timeslot in a network interface according to a set transmission speed.
In the above scheme, the data corresponding to the service to be transmitted is a bit stream received through a physical interface, and the block part 1101 is configured to:
slicing the bit stream received through the physical interface according to the preset length to obtain at least one data block;
or after the bit stream received through the physical interface is coded according to a set coding strategy, the coded bit stream is cut into blocks according to the preset length, and at least one data block is obtained.
In the above scheme, the data corresponding to the service to be transmitted is message data received through a user interface, and the block cutting part 1101 is configured to:
coding the message data according to a set coding strategy;
adjusting the transmission speed of the encoded message data and caching the encoded message data;
and slicing the cached coded message data according to the preset length to obtain at least one data block.
In the above scheme, if the encoded bit stream or the encoded message data is a 66-bit stream, the preset length is an integer multiple of 66 bits; or,
if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; or,
if the encoded bit stream or the encoded message data is a 10-bit stream, the preset length is an integer multiple of 10 bits.
In the above solution, the encapsulating portion 1102 is configured to:
and packaging each data block according to an Ethernet message format to obtain at least one Ethernet message to be transmitted.
In the above solution, the encapsulating portion 1102 is configured to:
encapsulating the multi-protocol label switching (MPLS) protocol label of each data block to the Ethernet message to be transmitted; wherein the MPLS protocol label of the data block includes at least one of: a pseudowire label, a tunnel label, and a pseudowire control word.
In the above solution, the encapsulating portion 1102 is configured to:
packaging the auxiliary information of each data block to the Ethernet message to be transmitted; wherein the auxiliary information of the data block at least comprises one of the following items: a sequence number, clock information, and a timestamp value.
In the foregoing scheme, the scheduling portion 1104 is configured to:
scheduling the messages to be transmitted with the same sending direction and the same processing mode on the same service flow according to a polling scheduling mode;
and sending the service flow to an exclusive network interface or an exclusive time slot in the network interface according to the set transmission speed.
In the foregoing scheme, the scheduling portion 1104 is configured to:
when only one of the plurality of service flows can be scheduled and output, the service flow which can be scheduled and output is scheduled in a multi-path selection mode and is sent to the exclusive network interface or the exclusive time slot in the network interface according to the set transmission speed.
In the above solution, the network device 110 further includes a recovery part 1106 configured to, after receiving at least one physical signal from the exclusive network interface or the exclusive timeslot in the network interface, respectively recover each of the physical signals into message data;
the parsing part 1103 is further configured to parse the packet data corresponding to each physical signal, and determine a sending direction of at least one packet data;
the scheduling portion 1104 is further configured to schedule the message data with the same sending direction and the same processing mode on the same service flow, map the service flow with the service, and send the message data through an independent network interface or an independent time slot in the network interface.
It is understood that in this embodiment, "part" may be part of a circuit, part of a processor, part of a program or software, etc., and may also be a unit, and may also be a module or a non-modular.
In addition, each component in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Accordingly, the present embodiment provides a computer storage medium storing a program for service transmission, which when executed by at least one processor implements the steps of the method for service transmission according to one of the above embodiments.
Based on the network device 110 and the computer storage medium, referring to fig. 13, a specific hardware structure of the network device 110 provided by the embodiment of the present invention is shown, and may include: a first network interface 1301, a first memory 1302, and a first processor 1303; the various components are coupled together by a bus system 1304. It is understood that the bus system 1304 is used to enable connective communication between these components. The bus system 1304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 13 as the bus system 1304. The first network interface 1301 is used for receiving and sending signals in the process of receiving and sending information with other external network elements;
a first memory 1302 for storing a computer program operable on the first processor 1303;
a first processor 1303, configured to execute, when the computer program runs, the following steps:
cutting the data of a service to be transmitted into blocks according to a preset length to obtain at least one data block;
respectively packaging each data block according to a preset message format to obtain at least one message to be transmitted;
analyzing each message to be transmitted respectively, and determining the sending direction of each message to be transmitted;
and dispatching the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
It is to be appreciated that the first memory 1302 in embodiments of the present invention can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The first memory 1302 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the first processor 1303 may be an integrated circuit chip having signal processing capability. In implementation, the steps of the method may be implemented by a hardware integrated logic circuit in the first processor 1303 or by instructions in the form of software. The first Processor 1303 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the first memory 1302, and the first processor 1303 reads information in the first memory 1302 and completes the steps of the method in combination with hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Specifically, when the first processor 1303 in the network device 110 is further configured to run a computer program, the method steps described in the first embodiment are executed, which is not described herein again.
EXAMPLE five
Based on the same inventive concept of the foregoing embodiment, referring to fig. 14, it shows a composition of a network device 140 provided by the embodiment of the present invention, including: an decapsulation section 1401, a first recovery section 1402, a second recovery section 1403, and a second transmission section 1404; wherein,
the decapsulation part 1401 is configured to decapsulate the received transmission packet to obtain a data block flow carried by the transmission packet;
the first recovery part 1402 is configured to perform reverse decoding on the data block according to a set coding recovery policy to obtain a bit stream corresponding to the original service data coding mode;
the second recovery part 1403 configured to recover the original service data from the bitstream;
the second sending part 1404 is configured to send the original service data to the client.
In addition, the present embodiment provides a computer storage medium storing a program for service transmission, where the program for service transmission is executed by at least one processor to implement the steps of the method according to the second embodiment. For specific description of the computer storage medium, refer to the description in embodiment four, and are not described herein again.
Based on the network device 140 and the computer storage medium, referring to fig. 15, a specific hardware structure of the network device 140 according to an embodiment of the present invention is shown, and may include: a second network interface 1501, a second memory 1502, and a second processor 1503; the various components are coupled together by a bus system 1504. It is understood that the bus system 1504 is used to enable connected communication between these components. The bus system 1504 includes, in addition to the data bus, a power bus, a control bus, and a status signal bus. For clarity of illustration, however, the various buses are designated as bus system 1504 in fig. 15. Wherein,
the second network interface 1501 is configured to receive and transmit signals in the process of receiving and transmitting information with other external network elements;
a second memory 1502 for storing a computer program capable of running on the second processor 1503;
a second processor 1503, configured to execute, when running the computer program:
decapsulating a received transmission message to obtain a data block stream carried by the transmission message;
carrying out reverse decoding on the data block according to a set coding recovery strategy to obtain a bit stream corresponding to the original service data coding mode;
recovering the original service data from the bitstream;
and sending the original service data to a client.
It can be understood that components in the specific hardware structure of the network device 140 in this embodiment are similar to corresponding components in the fourth embodiment, and are not described herein again.
Specifically, the second processor 1503 in the network device 140 is further configured to execute the method steps described in the second embodiment when running the computer program, which is not described herein again.
Based on the foregoing embodiments, the embodiment of the present invention further provides a service transmission system, which may include the network device 110 described in the four embodiments and the network device 140 described in the fifth embodiment. It should be noted that the system can implement the process steps described in the third embodiment, and details are not described herein.
It should be noted that: the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention 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 invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (22)
1. A method for traffic transmission, the method comprising:
cutting the data of a service to be transmitted into blocks according to a preset length to obtain at least one data block;
respectively packaging each data block according to a preset message format to obtain at least one message to be transmitted;
analyzing each message to be transmitted respectively, and determining the sending direction of each message to be transmitted;
and dispatching the messages to be transmitted in the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
2. The method according to claim 1, wherein the data corresponding to the service to be transmitted is a bit stream received through a physical interface, and the step of slicing the data of the service to be transmitted according to a preset length to obtain at least one data block comprises:
slicing the bit stream received through the physical interface according to the preset length to obtain at least one data block;
or after the bit stream received through the physical interface is coded according to a set coding strategy, the coded bit stream is cut into blocks according to the preset length, and at least one data block is obtained.
3. The method according to claim 1, wherein the data corresponding to the service to be transmitted is message data received through a user interface, and the step of slicing the data of the service to be transmitted according to a preset length to obtain at least one data block comprises:
coding the message data according to a set coding strategy;
adjusting the transmission speed of the encoded message data and caching the encoded message data;
and slicing the cached coded message data according to the preset length to obtain at least one data block.
4. The method according to claim 2 or 3, wherein if the encoded bit stream or the encoded message data is a 66-bit stream, the predetermined length is an integer multiple of 66 bits; or,
if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; or,
if the encoded bit stream or the encoded message data is a 10-bit stream, the preset length is an integer multiple of 10 bits.
5. The method according to claim 1, wherein the encapsulating each data block according to a preset packet format to obtain at least one packet to be transmitted comprises:
and packaging each data block according to an Ethernet message format to obtain at least one Ethernet message to be transmitted.
6. The method according to claim 5, wherein the encapsulating each data block according to an ethernet packet format to obtain at least one ethernet packet to be transmitted comprises:
encapsulating the multi-protocol label switching (MPLS) protocol label of each data block to the Ethernet message to be transmitted; wherein the MPLS protocol label of the data block includes at least one of: a pseudowire label, a tunnel label, and a pseudowire control word.
7. The method according to claim 5, wherein the encapsulating each data block according to an ethernet packet format to obtain at least one ethernet packet to be transmitted comprises:
packaging the auxiliary information of each data block to the Ethernet message to be transmitted; wherein the auxiliary information of the data block at least comprises one of the following items: a sequence number, clock information, and a timestamp value.
8. The method according to claim 1, wherein the scheduling the messages to be transmitted with the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the independent network interface or the independent time slot of the network interface according to the set transmission speed comprises:
scheduling the messages to be transmitted with the same sending direction and the same processing mode on the same service flow according to a polling scheduling mode;
and sending the service flow to an exclusive network interface or an exclusive time slot in the network interface according to the set transmission speed.
9. The method according to claim 1, wherein the scheduling the messages to be transmitted with the same transmission direction and the same processing mode on the same service flow, and transmitting the service flow to the independent network interface or the independent time slot of the network interface according to the set transmission speed comprises:
when only one of the plurality of service flows can be scheduled and output, the service flow which can be scheduled and output is scheduled in a multi-path selection mode and is sent to the exclusive network interface or the exclusive time slot of the network interface according to the set transmission speed.
10. The method of any one of claims 1 to 3 or 5 to 9, further comprising:
when at least one physical signal is received from an exclusive network interface or an exclusive time slot in the network interface, restoring each physical signal into message data respectively;
analyzing the message data corresponding to each physical signal, and determining the sending direction of at least one message data;
after the message data with the same sending direction and the same processing mode are scheduled in the same service flow, the service flow is subjected to service mapping and sent through an independent network interface or an independent time slot in the network interface.
11. A network device, characterized in that the network device comprises: a dicing part, an encapsulating part, an analyzing part, a scheduling part and a first sending part; wherein,
the block cutting part is configured to cut the data of the service to be transmitted according to a preset length to obtain at least one data block;
the encapsulation part is configured to encapsulate each data block according to a preset message format to obtain at least one message to be transmitted, and transmit the message to be transmitted to the analysis part according to a set transmission speed;
the analysis part is configured to analyze each message to be transmitted respectively and determine the sending direction of each message to be transmitted;
the scheduling part is configured to schedule the messages to be transmitted with the same sending direction and the same processing mode on the same service flow;
and the first sending part is configured to send the service flow to an exclusive network interface or an exclusive time slot in the network interface according to a set transmission speed.
12. The network device of claim 11, wherein the data corresponding to the service to be transmitted is a bit stream received through a physical interface, and wherein the slicing portion is configured to:
slicing the bit stream received through the physical interface according to the preset length to obtain at least one data block;
or after the bit stream received through the physical interface is coded according to a set coding strategy, the coded bit stream is cut into blocks according to the preset length, and at least one data block is obtained.
13. The network device of claim 11, wherein the data corresponding to the service to be transmitted is message data received through a user interface, and the block-splitting section is configured to:
coding the message data according to a set coding strategy;
adjusting the transmission speed of the encoded message data and caching the encoded message data;
and slicing the cached coded message data according to the preset length to obtain at least one data block.
14. The network device according to claim 12 or 13, wherein if the encoded bit stream or the encoded message data is a 66-bit stream, the preset length is an integer multiple of 66 bits; or,
if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; or,
if the encoded bit stream or the encoded message data is a 10-bit stream, the preset length is an integer multiple of 10 bits.
15. The network device of claim 11, wherein the encapsulation portion is configured to:
and packaging each data block according to an Ethernet message format to obtain at least one Ethernet message to be transmitted.
16. The network device of claim 15, wherein the encapsulation portion is configured to:
encapsulating the multi-protocol label switching (MPLS) protocol label of each data block to the Ethernet message to be transmitted; wherein the MPLS protocol label of the data block includes at least one of: a pseudowire label, a tunnel label, and a pseudowire control word.
17. The network device of claim 15, wherein the encapsulation portion is configured to:
packaging the auxiliary information of each data block to the Ethernet message to be transmitted; wherein the auxiliary information of the data block at least comprises one of the following items: a sequence number, clock information, and a timestamp value.
18. The network device of claim 11, wherein the scheduling portion is configured to:
scheduling the messages to be transmitted with the same sending direction and the same processing mode on the same service flow according to a polling scheduling mode;
and sending the service flow to an exclusive network interface or an exclusive time slot in the network interface according to the set transmission speed.
19. The network device of claim 11, wherein the scheduling portion is configured to:
when only one of the plurality of service flows can be scheduled and output, the service flow which can be scheduled and output is scheduled in a multi-path selection mode and is sent to the exclusive network interface or the exclusive time slot in the network interface according to the set transmission speed.
20. The network device of any of claims 11-13 or 15-19, further comprising:
the recovery part is configured to recover each physical signal into message data after receiving at least one physical signal from the exclusive network interface or the exclusive time slot in the network interface;
the analysis part is also configured to analyze the message data corresponding to each physical signal and determine the sending direction of at least one message data;
the scheduling part is also configured to schedule the message data with the same sending direction and the same processing mode on the same service flow, map the service flow through the service, and send the message data through an independent network interface or an independent time slot of the network interface.
21. A network device, comprising a first network interface, a first memory, and a first processor; the first network interface is used for receiving and sending signals in the process of receiving and sending information with other external network elements; the first memory for storing a computer program operable on the first processor; the first processor, when executing the computer program, is configured to perform the steps of the method of any of claims 1 to 10.
22. A computer storage medium storing a program of a service transmission, which when executed by at least one processor implements the steps of the method of service transmission of any one of claims 1 to 10.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810880267.2A CN110798415B (en) | 2018-08-03 | 2018-08-03 | Service transmission method, equipment and computer storage medium |
JP2021505752A JP7122455B2 (en) | 2018-08-03 | 2019-06-19 | Traffic transmission method, apparatus and computer storage medium |
KR1020217006517A KR102513755B1 (en) | 2018-08-03 | 2019-06-19 | Service transmission method, facilities and computer storage media |
PCT/CN2019/091934 WO2020024721A1 (en) | 2018-08-03 | 2019-06-19 | Service transmission method, device, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810880267.2A CN110798415B (en) | 2018-08-03 | 2018-08-03 | Service transmission method, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110798415A CN110798415A (en) | 2020-02-14 |
CN110798415B true CN110798415B (en) | 2022-02-18 |
Family
ID=69230934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810880267.2A Active CN110798415B (en) | 2018-08-03 | 2018-08-03 | Service transmission method, equipment and computer storage medium |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP7122455B2 (en) |
KR (1) | KR102513755B1 (en) |
CN (1) | CN110798415B (en) |
WO (1) | WO2020024721A1 (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300928B (en) * | 2020-02-21 | 2023-01-13 | 华为技术有限公司 | Method, equipment and system for transmitting service message |
CN113438606B (en) * | 2020-03-23 | 2022-08-30 | 中国移动通信有限公司研究院 | Message transmission method, device, related equipment and storage medium |
CN113452475B (en) * | 2020-03-28 | 2022-12-13 | 华为技术有限公司 | Data transmission method, device and related equipment |
CN111935243B (en) * | 2020-07-17 | 2023-06-30 | 杭州海康机器人股份有限公司 | Data information transmission method, device, system and equipment |
CN114095445A (en) * | 2020-07-29 | 2022-02-25 | 华人运通(上海)自动驾驶科技有限公司 | Data transmission control method and device for vehicle-mounted Ethernet, electronic equipment and storage medium |
CN112272387B (en) * | 2020-09-22 | 2022-03-11 | 国电南瑞科技股份有限公司 | Low-scheduling time delay and high-speed access method, module, terminal and power secondary equipment based on 5G |
CN114374469A (en) * | 2020-10-15 | 2022-04-19 | 华为技术有限公司 | Communication method, device and system |
CN114629851A (en) * | 2020-12-14 | 2022-06-14 | 北京华为数字技术有限公司 | Service message sending method and equipment |
CN115484207A (en) * | 2021-06-15 | 2022-12-16 | 华为技术有限公司 | Communication method, device and system |
CN113760265A (en) * | 2021-07-28 | 2021-12-07 | 北京思特奇信息技术股份有限公司 | Design method for business rule analysis and component reuse |
CN113890853B (en) * | 2021-09-27 | 2024-04-19 | 北京字跳网络技术有限公司 | Current limiting method and device, storage medium and electronic equipment |
CN114844804B (en) * | 2022-06-01 | 2023-07-25 | 重庆奥普泰通信技术有限公司 | Network measurement method, system, electronic device and computer readable storage medium |
CN115941792B (en) * | 2022-11-30 | 2024-02-02 | 苏州异格技术有限公司 | Method and device for processing data blocks of flexible Ethernet and storage medium |
CN115865277B (en) * | 2022-11-30 | 2023-12-15 | 苏州异格技术有限公司 | Flexible Ethernet data processing method and device, storage medium and electronic equipment |
CN116781428B (en) * | 2023-08-24 | 2023-11-07 | 湖南马栏山视频先进技术研究院有限公司 | Forwarding system based on VPN flow |
CN116979700B (en) * | 2023-09-20 | 2024-01-23 | 国网江苏省电力有限公司苏州供电分公司 | Device and method for processing power transformation and distribution monitoring information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674604A (en) * | 2008-09-12 | 2010-03-17 | 华为技术有限公司 | Method for transmitting circuit switched domain service, network equipment and terminal equipment |
EP2341661A1 (en) * | 2010-01-04 | 2011-07-06 | Alcatel Lucent | Neighbor discovery for Ethernet private line on user network interfaces |
CN102238064A (en) * | 2010-04-23 | 2011-11-09 | 华为技术有限公司 | Data transmission method, device and system |
CN103222237A (en) * | 2012-12-05 | 2013-07-24 | 华为技术有限公司 | Data processing method, communication single board and equipment |
CN107659419A (en) * | 2016-07-25 | 2018-02-02 | 华为技术有限公司 | Network dicing method and system |
CN108322367A (en) * | 2017-01-16 | 2018-07-24 | 中兴通讯股份有限公司 | A kind of method, apparatus and system that business is transmitted |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61296838A (en) * | 1985-06-25 | 1986-12-27 | Nec Corp | Transmission data relay control system in packet switching network |
JP3319367B2 (en) * | 1997-10-14 | 2002-08-26 | ケイディーディーアイ株式会社 | Network connection device |
JPH11205329A (en) * | 1998-01-14 | 1999-07-30 | Mitsubishi Electric Corp | Signal multiplexer |
JP3663893B2 (en) * | 1998-03-12 | 2005-06-22 | 株式会社日立製作所 | Data relay system |
US7593433B1 (en) * | 1999-03-02 | 2009-09-22 | Cisco Technology, Inc. | System and method for multiple channel statistical re-multiplexing |
JP3699612B2 (en) * | 1999-05-18 | 2005-09-28 | 三菱電機株式会社 | Voice cell transmission equipment |
KR20030000472A (en) * | 2001-06-25 | 2003-01-06 | 주식회사 케이티 | Method for Voice service using ATM Adaption Layer 2 based Voice over ATM in ATM |
US7463630B2 (en) * | 2005-02-18 | 2008-12-09 | Broadcom Corporation | Multi-part parsing in a network device |
CN101296244B (en) * | 2008-06-27 | 2011-07-13 | 中兴通讯股份有限公司 | Universal framing regulation mapping encapsulation method |
CN106921641B (en) * | 2015-12-28 | 2020-04-03 | 华为技术有限公司 | Method and device for transmitting message |
-
2018
- 2018-08-03 CN CN201810880267.2A patent/CN110798415B/en active Active
-
2019
- 2019-06-19 KR KR1020217006517A patent/KR102513755B1/en active IP Right Grant
- 2019-06-19 WO PCT/CN2019/091934 patent/WO2020024721A1/en active Application Filing
- 2019-06-19 JP JP2021505752A patent/JP7122455B2/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674604A (en) * | 2008-09-12 | 2010-03-17 | 华为技术有限公司 | Method for transmitting circuit switched domain service, network equipment and terminal equipment |
EP2341661A1 (en) * | 2010-01-04 | 2011-07-06 | Alcatel Lucent | Neighbor discovery for Ethernet private line on user network interfaces |
CN102238064A (en) * | 2010-04-23 | 2011-11-09 | 华为技术有限公司 | Data transmission method, device and system |
CN103222237A (en) * | 2012-12-05 | 2013-07-24 | 华为技术有限公司 | Data processing method, communication single board and equipment |
CN107659419A (en) * | 2016-07-25 | 2018-02-02 | 华为技术有限公司 | Network dicing method and system |
CN108322367A (en) * | 2017-01-16 | 2018-07-24 | 中兴通讯股份有限公司 | A kind of method, apparatus and system that business is transmitted |
Also Published As
Publication number | Publication date |
---|---|
JP7122455B2 (en) | 2022-08-19 |
WO2020024721A1 (en) | 2020-02-06 |
CN110798415A (en) | 2020-02-14 |
KR102513755B1 (en) | 2023-03-24 |
KR20210038959A (en) | 2021-04-08 |
JP2021534618A (en) | 2021-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110798415B (en) | Service transmission method, equipment and computer storage medium | |
CA2382271C (en) | Circuit emulation service over an internet protocol network | |
CN111201748B (en) | Method and device for sending and receiving clock synchronization message | |
WO2017161999A1 (en) | Packet processing method and related device | |
EP3968586B1 (en) | Packet processing method and related apparatus | |
EP1956763A1 (en) | A method, a data network system and a network node for transmitting data packets | |
US20240283743A1 (en) | Deterministic data transmission device and method for compatibility network | |
US9065764B2 (en) | Method, apparatus and system for maintaining quality of service QoS | |
EP1648133B1 (en) | A method for encapsulating data stream | |
EP2077637B1 (en) | System and method for protecting payload information in radio transmission | |
JP2020519100A (en) | Method, apparatus and system for transmitting traffic in flex ethernet protocol | |
CN115604481B (en) | Method, device and system for improving parallelism of encoding and decoding and transmission | |
CN108880733A (en) | The method and device of low speed TDM business transmission is realized on unified load bearing equipment | |
CN116668376B (en) | Ethernet controller | |
EP2048828B1 (en) | Method and systems for data transmission over packet networks, corresponding computer program product | |
CN109996129B (en) | Service data processing method and device | |
WO2023231429A1 (en) | Data transmission method, source end device, sink end device and storage medium | |
WO2024032297A1 (en) | Service information processing method, network device, and storage medium | |
CN113949743A (en) | ODU payload bearing method and system |
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 |