Service transmission method, equipment and computer storage medium

文档序号:1538035 发布日期:2020-02-14 浏览:10次 中文

阅读说明:本技术 一种业务传输的方法、设备及计算机存储介质 (Service transmission method, equipment and computer storage medium ) 是由 刘峰 成剑 于 2018-08-03 设计创作,主要内容包括:本发明实施例公开了一种业务传输的方法、设备及计算机存储介质。其中,方法包括:将待传输业务的数据按照预设长度进行切块,获得至少一个数据块;将每个所述数据块按照预设的报文格式分别进行封装,获得至少一个待传输报文;分别对每个所述待传输报文进行解析,确定每个所述待传输报文的发送方向;将发送方向相同、处理方式相同的待传输报文调度在同一业务流,并按照设定的传输速度发送所述业务流到独享网络接口或网络接口的独享时隙上。(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.)

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; alternatively, the first and second electrodes may be,

if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; alternatively, the first and second electrodes may be,

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 according to any one of claims 1 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 method for traffic transmission, the method comprising:

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.

12. 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 content of the first and second substances,

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.

13. The network device of claim 12, 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.

14. The network device of claim 12, 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.

15. The network device according to claim 13 or 14, 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; alternatively, the first and second electrodes may be,

if the encoded bit stream or the encoded message data is 65 bit stream, the preset length is an integer multiple of 65 bits; alternatively, the first and second electrodes may be,

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.

16. The network device of claim 12, wherein the encapsulation section is configured to:

and packaging each data block according to an Ethernet message format to obtain at least one Ethernet message to be transmitted.

17. The network device of claim 16, 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.

18. The network device of claim 16, 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.

19. The network device of claim 12, 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.

20. The network device of claim 12, 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.

21. The network device of any one of claims 12 to 20, 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.

22. A network device, characterized in that the network device comprises: a decapsulation section, a first recovery section, a second recovery section, and a second transmission section; wherein the content of the first and second substances,

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.

23. 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.

24. A network device, characterized in that the network device comprises: 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, when executing the computer program, is adapted to perform the steps of the method of claim 11.

25. A computer storage medium storing a program of traffic transmission, which when executed by at least one processor implements the steps of the method of traffic transmission of any one of claims 1 to 10 or claim 11.

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 content of the first and second substances,

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 content of the first and second substances,

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.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:OFDM系统中基于局部搜索Capon的CFO估计算法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!