Network communication method and device, computer equipment and storage medium
By adding a placeholder time slot in the uplink time slot allocation frame of the PON network, the placeholder time slot information is determined based on the number of bursts and a single burst time slot, the delay and delay bound of the PON network uplink communication are solved. Uncertainable problems have achieved effective reduction and control of time delay.
Patent Information
- Application Number
- CN202411051716.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-26
AI Technical Summary
The uplink communication delay of the existing PON network is large and the upper bound of the delay cannot be determined, mainly because the number of bursts in the uplink slot allocation frame is less than 16, resulting in the delay greater than 125/N microseconds.
By determining the placeholder time slot information based on the number of bursts and a single burst slot in the uplink time slot allocation frame, adding the placeholder time slot to reduce delay, and adding the placeholder between adjacent burst groups or at the end of the frame to ensure delay control within the controllable range.
It effectively reduces the delay of uplink communication and makes the upper bound of delay controllable, ensuring the efficiency and reliability of network communication.
Smart Images

Figure CN119031284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a network communication method, device, computer equipment and storage medium. Background Art
[0002] In the high-bandwidth, non-blocking transmission mode of the PON (Passive Optical Network) network, the forwarding time of the OLT (Optical Line Terminal) and ONU (Optical Network Unit) devices, as well as the downlink (broadcast) forwarding delay jitter are small and basically fixed values. Therefore, the timeliness guarantee in the PON network is mainly concentrated in the uplink of the PON network. The existing uplink communication mainly adopts the TDMA (Time division multiple access) multiplexing mechanism. The OLT device is responsible for allocating uplink time slots for the service bursts of the logical channel (Traffic Container, TCONT) of the ONU device. The ONU device can only send uplink data within the uplink time slot allocated by the OLT device. The time slot length of the uplink time slot is positively correlated to the bandwidth size configured for the logical channel.
[0003] The existing method of reducing uplink delay in PON networks is as follows: Since the standard defines that each uplink time slot allocation frame is 125 microseconds, to reduce uplink delay, the uplink time slot allocation frequency of each uplink time slot allocation frame is generally increased. In theory, each uplink time slot allocation frame can allocate 16 bursts, that is, 16 uplink time slots. In this case, the minimum delay between bursts can reach 125 / 16 = 7.8125 microseconds.
[0004] However, due to various factors (for example, each service burst must have a preamble, which will introduce a certain amount of fixed overhead time, and the uplink time slots allocated to service bursts of different logical channels may be different, and the traffic volume is different), the number of bursts in the uplink time slot allocation frame will be less than 16. Limited by the current time slot allocation mechanism of the PON network: Figure 1 As shown, service bursts are generally configured at the front end of the uplink time slot allocation frame, which results in the uplink time slot allocated for the service burst not being able to occupy the entire 125 microsecond period; even if N bursts are allocated, the delay will be greater than 125 / N microseconds, which results in a large delay in existing uplink communications and an undetermined upper limit on the delay. Summary of the invention
[0005] Based on this, it is necessary to provide a network communication method, device, computer equipment and storage medium that can effectively reduce the uplink communication delay in response to the above technical problems.
[0006] In a first aspect, the present application provides a network communication method, the method comprising:
[0007] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0008] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0009] In one of the embodiments, determining the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot includes:
[0010] According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame;
[0011] The number of burst groups is used as the number of occupied time slots;
[0012] The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
[0013] In one embodiment, determining a single occupying time length according to the number of occupied time slots and the occupied time slots of each burst group includes:
[0014] For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group;
[0015] Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots;
[0016] The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot duration;
[0017] The ratio of the total occupancy time to the number of occupancy time slots is taken as the single occupancy time.
[0018] In one of the embodiments, adding a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information includes:
[0019] A placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0020] In one embodiment, the method further comprises:
[0021] In response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst;
[0022] If the single required time slot is less than the single occupation time length, the single required time slot is configured in each occupation time slot, and the single occupation time length is updated.
[0023] In one embodiment, the method further comprises:
[0024] If the single required time slot is not less than the single occupancy time, a burst add response message is sent to indicate that the service cannot be provided.
[0025] In one embodiment, updating a single occupancy time includes:
[0026] The difference between the single occupancy time and the single required time slot is used as the updated single occupancy time.
[0027] In a second aspect, the present application provides a network communication device, the device comprising:
[0028] A determination module, used to determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time slot;
[0029] The adding module is used to add a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information; wherein the uplink time slot allocation frame after adding the placeholder time slot is used for network communication.
[0030] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0031] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0032] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0034] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0035] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0036] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0037] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0038] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0039] The above-mentioned network communication method, device, computer equipment and storage medium determine the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot. According to the placeholder time slot information, a placeholder time slot is added between the service bursts of the uplink time slot allocation frame; wherein, the uplink time slot allocation frame after adding the placeholder time slot is used for network communication. The present application determines the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot, and adds a placeholder time slot between the service bursts of the uplink time slot allocation frame according to the placeholder time slot information. By adding placeholder time slots between service bursts, the delay of each uplink time slot allocation frame can be effectively reduced, thereby greatly reducing the communication delay of network communication, and according to the placeholder time slot information (i.e., the number of placeholder time slots and the single placeholder duration), the upper limit of the delay can also be controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1A schematic diagram of the principle of the existing uplink time slot allocation frame provided for this embodiment;
[0041] Figure 2 An application environment diagram of a network communication method provided by this embodiment;
[0042] Figure 3 A schematic diagram of a flow chart of a first network communication method provided in this embodiment;
[0043] Figure 4 A schematic diagram of a process for determining occupied time slot information provided in this embodiment;
[0044] Figure 5 A schematic diagram of the principle of adding a placeholder time slot provided in this embodiment;
[0045] Figure 6 A flowchart of the principle of configuring a new service provided in this embodiment;
[0046] Figure 7 A schematic diagram of the principle of configuring a new time slot provided in this embodiment;
[0047] Figure 8 A schematic diagram of a flow chart of a second network communication method provided in this embodiment;
[0048] Fig. 9 A structural block diagram of a network communication device provided in this embodiment;
[0049] Fig.10 This is a diagram of the internal structure of the computer device provided in this embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] like Figure 1 As shown, in the uplink of the existing PON network, the service burst in each uplink time slot allocation frame is generally configured at the front end of the uplink time slot allocation frame, and the single frame delay is determined according to the maximum delay in the uplink time slot allocation frame, such as Figure 1As mentioned above, taking the case where the number of bursts contained in each uplink time slot allocation frame is 4 as an example, the theoretically optimal single-frame delay should be 125us / 4=31.25us. Due to the existing service burst allocation mechanism, service bursts are concentrated at the front end of the uplink time slot allocation frame, which results in the maximum single-frame delay being much greater than 31.25us. In other words, when the uplink time slot allocated for the service burst cannot occupy the entire 125 microsecond period, even if N bursts are allocated, the delay will be greater than 125 / N microseconds, which results in the existing uplink communication delay being large and the upper limit of the delay being uncertain. Among them, Figure 1 A in the upper time slot allocation frame indicates a service burst generated in the upper time slot allocation frame by an existing service based on a corresponding logical channel. B indicates a service burst generated in the upper time slot allocation frame by another existing service based on a corresponding logical channel. Each existing service has a corresponding logical channel.
[0052] The network communication method provided in the embodiment of the present application can be applied to Figure 2 In the application environment shown. Mainly used in Figure 2 In the PON network in the PON network, it can be executed by the OLT device in the PON network, or it can be executed interactively by the OLT device and the control device in the PON network, and the application does not specifically limit the execution subject of the network communication method, wherein, when the PON network performs network communication, especially in uplink communication, according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot, the occupancy time slot information corresponding to the uplink time slot allocation frame is determined; wherein the occupancy time slot information includes the number of occupancy time slots and the single occupancy time length; according to the occupancy time slot information, a occupancy time slot is added between the service bursts of the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the occupancy time slot is added is used for network communication.
[0053] Among them, PON (Passive Optical Network) is a single-fiber bidirectional optical access network with a point-to-multipoint (P2MP) structure, which consists of an optical line terminal (OLT equipment) at the central office, an optical distribution network (ODN equipment) and an optical network unit (ONU equipment) at the user side.
[0054] OLT (Optical Line Terminal) is a terminal device used to connect to optical fiber trunk lines.
[0055] ONU (Optical Network Unit) devices are mainly divided into active optical network units and passive optical network units. Generally, the equipment equipped with optical receivers, uplink optical transmitters, and multiple bridge amplifier network monitoring is called an optical node.
[0056] In one embodiment, Figure 3 is a flow chart of a network communication method provided according to an embodiment of the present application, in which the method is applied to Figure 2 Taking the OLT device in the example as an example, the method includes the following steps:
[0057] S301, determining the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot.
[0058] The occupied time slot information includes the number of occupied time slots and the single occupied time length. The upper time slot allocation frame refers to the frame structure based on time allocation in the uplink communication link. Existing services refer to services that have been configured with logical channels and have been allocated upper time slots corresponding to corresponding service bursts in the upper time slot allocation frame. Service bursts refer to the high-speed data transmission mode generated by existing services. The OLT device is used to allocate uplink time slots (i.e., single burst time slots) in the uplink time slot allocation frame for service bursts generated by existing services. The number of bursts refers to the number of service bursts pre-configured in each uplink time slot allocation frame for existing services, such as 4 bursts in a single frame, 6 bursts in a single frame, etc. It should be noted that after the number of bursts is configured, the number of service bursts generated by each existing service in each uplink time slot allocation frame is the same as the number of bursts. The single burst time slot refers to the duration of the uplink time slot allocated for the service burst. It should be noted that the single burst time slot of the service burst generated by each existing service is the same, and the duration of the single burst time slot is proportional to the bandwidth of the logical channel corresponding to the existing service. The number of occupied time slots refers to the number of occupied time slots allocated in the uplink time slot allocation frame. The single occupied time duration refers to the duration of each occupied time slot. Logical channels are also called traffic containers (Traffic Containers, T-CONT). Each existing service corresponds to at least one logical channel. Logical channels are used to manage and describe the data streams sent and received by each ONU device.
[0059] As an optional implementation of the embodiment of the present application, the occupied duration of the service burst generated by the existing service in the uplink time slot allocation frame is determined according to the number of bursts of the service burst generated by the existing service and the single burst time slot. The difference between the allocated frame duration and the occupied duration of the uplink time slot allocation frame is used as the placeholder time slot standby duration, and the placeholder time slot information corresponding to the uplink time slot allocation frame is determined according to the placeholder time slot standby duration and the number of bursts. For example, Figure 1As shown in the figure, the number of bursts (the sum of A and B) generated by existing services is 8. Assuming that the single burst time slot corresponding to each service burst is 8us, the standby time length of the placeholder time slot is 125-8*8=61us. The number of bursts is used as the number of placeholder time slots, that is, the number of placeholder time slots is 8, and the single placeholder time length corresponding to the placeholder time slot is 61 / 8=7.6us.
[0060] As another optional implementation of the embodiment of the present application, the occupied duration of the service burst generated by the existing service in the uplink time slot allocation frame is determined according to the number of bursts of the service burst generated by the existing service and the single burst time slot. The difference between the allocation frame duration and the occupied duration of the uplink time slot allocation frame is used as the placeholder time slot standby duration. According to the pre-configured number of placeholder time slots and the placeholder time slot standby duration, the placeholder time slot information corresponding to the uplink time slot allocation frame is determined. For example, Figure 1 As shown in the figure, the number of bursts generated by existing services (the sum of A and B) is 8. Assuming that the single burst time slot corresponding to each service burst is 8us, the standby time length of the occupied time slot is 125-8*8=61us. The number of pre-occupied time slots is 4, and the single occupied time length corresponding to the occupied time slot is 61 / 4=15.2us.
[0061] S302, according to the placeholder time slot information, add a placeholder time slot between service bursts in an uplink time slot allocation frame, wherein the uplink time slot allocation frame after adding the placeholder time slot is used for network communication.
[0062] As an optional implementation method of the embodiment of the present application, based on the scheme recorded in the above embodiment, if the number of placeholder slots is the same as the number of bursts, a placeholder slot with a single placeholder duration is added between adjacent service bursts in the uplink time slot allocation frame, and a placeholder slot with a single placeholder duration is added at the end of the service burst at the end position in the uplink time slot allocation frame.
[0063] As another optional implementation of the embodiment of the present application, based on the scheme recorded in the above embodiment, if the number of placeholder slots is the same as the number of bursts, a placeholder slot with a single placeholder duration is added at the front end or back end of each service burst in the uplink time slot allocation frame.
[0064] As another optional implementation of the embodiment of the present application, based on the scheme recorded in the above embodiment, if the number of placeholder time slots is a pre-set fixed value, placeholder time slots with a single placeholder duration are randomly added between adjacent service bursts of the uplink time slot allocation frame until the number of placeholder time slots is added.
[0065] The above-mentioned network communication method determines the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot. According to the placeholder time slot information, a placeholder time slot is added between the service bursts of the uplink time slot allocation frame; wherein, the uplink time slot allocation frame after adding the placeholder time slot is used for network communication. The present application determines the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot, and adds a placeholder time slot between the service bursts of the uplink time slot allocation frame according to the placeholder time slot information. By adding placeholder time slots between service bursts, the delay of each uplink time slot allocation frame can be effectively reduced, thereby greatly reducing the communication delay of the network communication, and according to the placeholder time slot information (i.e., the number of placeholder time slots and the single placeholder duration), the upper limit of the delay can also be controlled.
[0066] In one embodiment, in order to accurately determine the occupied time slot information, such as Figure 4 As shown, an optional implementation of S201 includes:
[0067] S401 , according to the logical channel for generating a service burst of each existing service in an uplink time slot allocation frame and the arrangement order of each service burst, classify service bursts with adjacent arrangement orders and belonging to different logical channels into the same burst group.
[0068] The number of service bursts contained in each burst group is the same as the number of logical channels contained in the uplink time slot allocation frame.
[0069] Optionally, in this embodiment, according to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, service bursts with adjacent arrangement orders and belonging to different logical channels are divided into the same burst group. Figure 5 As shown, in the uplink time slot allocation frame, service burst A and service burst B belong to different logical channels, and service burst A and service burst B are arranged sequentially. Therefore, according to the time sequence, one service burst A and one service burst B are regarded as a burst group.
[0070] S402: Use the number of burst groups as the number of occupied time slots.
[0071] The number of groups refers to the number of burst groups included in the uplink time slot allocation frame.
[0072] S403, determining a single placeholder duration according to the number of placeholder time slots and the group-occupied time slots of each burst group.
[0073] The group occupied time slot refers to the duration of the uplink time slot allocation frame occupied by each service burst group.
[0074] Optionally, in this embodiment, for each burst group, the group occupied time slot of the burst group is determined according to the preamble occupied time slot corresponding to each service burst in the burst group and the single burst time slot. The total occupied time slot in the uplink time slot allocation frame is determined according to the number of occupied time slots and the group occupied time slot. The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slot is used as the total occupied time length. The ratio of the total occupied time length to the number of occupied time slots is used as the single occupied time length.
[0075] Optionally, in this embodiment, for each burst group, an optional implementation method for determining the group occupied time slot of the burst group based on the preamble code occupied time slot and the single burst time slot corresponding to each service burst in the burst group is: since each service burst has a corresponding preamble code occupied time slot, the preamble code occupied time slot corresponding to each service burst and the single service burst corresponding to each service burst are summed up, and the summation result is used as the group occupied time slot of the burst group.
[0076] Optionally, in this embodiment, an optional implementation method for determining the total occupied time slots in the uplink time slot allocation frame based on the number of occupied time slots and the group occupied time slots is as follows: based on the contents recorded in the above embodiment, it can be seen that the number of occupied time slots is the same as the number of burst groups, and therefore, the product of the number of occupied time slots and the group occupied time slots is used as the total occupied time slots in the uplink time slot allocation frame.
[0077] In this embodiment, according to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between each service burst, service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group. The number of burst groups is used as the number of occupied time slots. According to the number of occupied time slots and the group occupied time slots of each burst group, the single occupied time length is determined. Based on this embodiment, the occupied time slot information can be accurately determined.
[0078] On the basis of the above embodiment, in order to facilitate adding a placeholder time slot between service bursts in the uplink time slot allocation frame, such as Figure 5 As shown, an optional implementation of S202 includes:
[0079] like Figure 5 As shown, a placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0080] In this embodiment, by adding a placeholder time slot with a single placeholder duration between adjacent burst groups, and adding a placeholder time slot with a single placeholder duration at the end of the burst group at the end position in the uplink time slot allocation frame, not only the single frame delay is effectively reduced, but also the upper limit of the delay is controllable. For example, if the number of placeholder time slots is N, the upper limit of the delay can be controlled to 125us / N. Based on this method of adding placeholder time slots, it is also convenient to allocate corresponding time slots for new services.
[0081] In one embodiment, when there is a new service and time slots need to be allocated for the new service, such as Figure 6 An optional implementation of a network communication method includes:
[0082] S601 , in response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst.
[0083] The newly added service refers to the newly added service that needs to be uploaded. The single required time slot refers to the single burst duration that needs to be allocated in the uplink time slot allocation frame for the newly added service. The single required time slot is mainly proportional to the bandwidth of the logical channel corresponding to the newly added service.
[0084] Optionally, in this embodiment, in response to a service burst addition request for a newly added service, a channel bandwidth of a logical channel corresponding to the newly added service is obtained. Based on the channel bandwidth, a single required time slot for the newly added service to generate a service burst is determined. In this embodiment, an optional implementation method for determining a single required time slot for the newly added service to generate a service burst based on the bandwidth is to determine a single required time slot for the newly added service to generate a service burst based on the channel bandwidth and a bandwidth list. The bandwidth list records a mapping relationship between the channel bandwidth and the single required time slot.
[0085] S602: If the single required time slot is less than the single occupied time length, a single required time slot is configured in each occupied time slot, and the single occupied time length is updated.
[0086] Optionally, in this embodiment, Figure 7 As shown, when a single required time slot is less than a single placeholder time length, a single required time slot is configured in each placeholder time slot. That is to say, by reconfiguring each placeholder time slot, a single required time slot required for the new service to generate a service burst can be allocated from each placeholder time slot on the basis of each placeholder time slot. Figure 7 The “placeholder” in the figure is the placeholder time slot. “C” is the service burst generated by the new service.
[0087] Optionally, in this embodiment, an optional implementation method for updating a single occupancy time is to use the difference between a single occupancy time and a single required time slot as the updated single occupancy time.
[0088] Optionally, in this embodiment, if the single required time slot is not less than the single occupancy time length, a burst add response message is sent to indicate that the service cannot be provided.
[0089] In this embodiment, in response to a service burst addition request for a newly added service, a single required time slot for generating a service burst for the newly added service is obtained. If the single required time slot is less than the single placeholder duration, a single required time slot is configured in each placeholder time slot, and the single placeholder duration is updated. If the single required time slot is not less than the single placeholder duration, a burst addition response message is sent to indicate that the service cannot be provided. In this embodiment, it can be determined whether a service can be provided for the newly added service based on the placeholder time slot combined with the judgment logic. If the service can be provided, the corresponding single required time slot can be allocated to the service burst generated by the newly added service by configuring the placeholder time slot.
[0090] In one embodiment, if Figure 8 As shown, another optional implementation of a network communication method includes:
[0091] S801, according to the logical channel for generating service bursts of each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, classify the service bursts with adjacent arrangement order and belonging to different logical channels into the same burst group. The number of service bursts contained in each burst group is the same as the number of logical channels contained in the uplink time slot allocation frame;
[0092] S802: Use the number of burst groups as the number of occupied time slots.
[0093] S803 , for each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group.
[0094] S804: Determine the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots.
[0095] S805: The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot.
[0096] S806: The ratio of the total occupancy time to the number of occupancy time slots is used as a single occupancy time.
[0097] S807, adding a placeholder time slot with a single placeholder duration between adjacent burst groups, and adding a placeholder time slot with a single placeholder duration at the end of the burst group at the end position in the uplink time slot allocation frame.
[0098] S808 , in response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst.
[0099] S809: If the single required time slot is less than the single occupying time length, a single required time slot is configured in each occupying time slot, and the single occupying time length is updated.
[0100] S810: Taking the difference between the single occupancy duration and the single required time slot as the updated single occupancy duration.
[0101] S811: If the single required time slot is not less than the single occupancy time, a burst add response message is sent to indicate that the service cannot be provided.
[0102] In this embodiment, the placeholder time slot information corresponding to the uplink time slot allocation frame is determined based on the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the time slot of a single burst. According to the placeholder time slot information, a placeholder time slot is added between the service bursts of the uplink time slot allocation frame; wherein, the uplink time slot allocation frame after adding the placeholder time slot is used for network communication. The present application determines the placeholder time slot information corresponding to the uplink time slot allocation frame based on the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the time slot of a single burst, and adds a placeholder time slot between the service bursts of the uplink time slot allocation frame based on the placeholder time slot information. By adding placeholder time slots between service bursts, the delay of each uplink time slot allocation frame can be effectively reduced, thereby greatly reducing the communication delay of network communication, and according to the placeholder time slot information (i.e., the number of placeholder time slots and the duration of a single placeholder), the upper limit of the delay can also be controlled.
[0103] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0104] Based on the same inventive concept, the embodiment of the present application also provides a network communication device for implementing the network communication method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more network communication device embodiments provided below can refer to the limitations on the network communication method above, and will not be repeated here.
[0105] In one embodiment, by Fig. 9 FIG. 1 shows a structural block diagram of a network communication device in an embodiment. Fig. 9 As shown, a network communication device 1 is provided, the device comprising: a determination module 10 and an adding module 30, wherein:
[0106] The determination module 10 is used to determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts and single burst time slots generated by the existing services in the uplink time slot allocation frame; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time slot;
[0107] The adding module 20 is used to add a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information; wherein the uplink time slot allocation frame after adding the placeholder time slot is used for network communication.
[0108] The network communication device of the present application determines the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot. According to the placeholder time slot information, a placeholder time slot is added between the service bursts of the uplink time slot allocation frame; wherein, the uplink time slot allocation frame after adding the placeholder time slot is used for network communication. The present application determines the placeholder time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot, and according to the placeholder time slot information, a placeholder time slot is added between the service bursts of the uplink time slot allocation frame. By adding placeholder time slots between service bursts, the delay of each uplink time slot allocation frame can be effectively reduced, thereby greatly reducing the communication delay of the network communication, and according to the placeholder time slot information (i.e., the number of placeholder time slots and the single placeholder duration), the upper limit of the delay can also be controlled.
[0109] In one embodiment, the Fig. 9 The determining module 10 is further specifically used for:
[0110] According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame;
[0111] The number of burst groups is used as the number of occupied time slots;
[0112] The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
[0113] In one embodiment, the Fig. 9 The determining module 10 is further specifically used for:
[0114] For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group;
[0115] Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots;
[0116] The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot duration;
[0117] The ratio of the total occupancy time to the number of occupancy time slots is taken as the single occupancy time.
[0118] In one embodiment, the Fig. 9 The adding module 20 is also specifically used for:
[0119] A placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0120] In one embodiment, the Fig. 9 The network communication device further comprises:
[0121] An acquisition module, configured to respond to a service burst adding request for a newly added service and acquire a single time slot required for the newly added service to generate a service burst;
[0122] The updating module is used for configuring a single required time slot in each occupied time slot and updating the single occupied time slot if the single required time slot is less than the single occupied time slot.
[0123] In one embodiment, the Fig. 9 The network communication device further comprises:
[0124] The sending module is used to send a burst adding response message for indicating that the service cannot be provided if the single required time slot is not less than the single occupying time length.
[0125] In one embodiment, the update module is further specifically used for:
[0126] The difference between the single occupancy time and the single required time slot is used as the updated single occupancy time.
[0127] Each module in the above network communication device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0128] In one embodiment, a computer device is provided. The computer device may be a platform side, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store information related to detection messages. The network interface of the computer device is used to communicate with an external user side through a network connection. When the computer program is executed by the processor, a network communication method is implemented.
[0129] Those skilled in the art will understand that Fig.10 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0131] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0132] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0133] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by the existing services in the uplink time slot allocation frame and the single burst time slot, including:
[0134] According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame;
[0135] The number of burst groups is used as the number of occupied time slots;
[0136] The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
[0137] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a single occupying time length according to the number of occupied time slots and the occupied time slots of each burst group, including:
[0138] For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group;
[0139] Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots;
[0140] The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot duration;
[0141] The ratio of the total occupancy time to the number of occupancy time slots is taken as the single occupancy time.
[0142] In one embodiment, when the processor executes the computer program, the following steps are further implemented: adding a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information, including:
[0143] A placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0145] In response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst;
[0146] If the single required time slot is less than the single occupation time length, the single required time slot is configured in each occupation time slot, and the single occupation time length is updated.
[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0148] If the single required time slot is not less than the single occupancy time, a burst add response message is sent to indicate that the service cannot be provided.
[0149] In one embodiment, when the processor executes the computer program, the following steps are further implemented: updating the single occupancy time includes:
[0150] The difference between the single occupancy time and the single required time slot is used as the updated single occupancy time.
[0151] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0152] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0153] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0154] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by the existing services in the uplink time slot allocation frame and the single burst time slot, including:
[0155] According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame;
[0156] The number of burst groups is used as the number of occupied time slots;
[0157] The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
[0158] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a single occupying time length according to the number of occupied time slots and the occupied time slots of each burst group, including:
[0159] For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group;
[0160] Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots;
[0161] The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot duration;
[0162] The ratio of the total occupancy time to the number of occupancy time slots is taken as the single occupancy time.
[0163] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: adding a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information, including:
[0164] A placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0166] In response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst;
[0167] If the single required time slot is less than the single occupation time length, the single required time slot is configured in each occupation time slot, and the single occupation time length is updated.
[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0169] If the single required time slot is not less than the single occupancy time, a burst add response message is sent to indicate that the service cannot be provided.
[0170] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: updating the single occupancy time includes:
[0171] The difference between the single occupancy time and the single required time slot is used as the updated single occupancy time.
[0172] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0173] Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length;
[0174] According to the placeholder time slot information, placeholder time slots are added between service bursts in the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
[0175] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by the existing services in the uplink time slot allocation frame and the single burst time slot, including:
[0176] According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame;
[0177] The number of burst groups is used as the number of occupied time slots;
[0178] The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
[0179] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a single occupying time length according to the number of occupied time slots and the occupied time slots of each burst group, including:
[0180] For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group;
[0181] Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group occupied time slots;
[0182] The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot duration;
[0183] The ratio of the total occupancy time to the number of occupancy time slots is taken as the single occupancy time.
[0184] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: adding a placeholder time slot between service bursts of an uplink time slot allocation frame according to the placeholder time slot information, including:
[0185] A placeholder time slot with a single placeholder duration is added between adjacent burst groups, and a placeholder time slot with a single placeholder duration is added at the end of the burst group at the end position in the uplink time slot allocation frame.
[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0187] In response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst;
[0188] If the single required time slot is less than the single occupation time length, the single required time slot is configured in each occupation time slot, and the single occupation time length is updated.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] If the single required time slot is not less than the single occupancy time, a burst add response message is sent to indicate that the service cannot be provided.
[0191] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: updating the single occupancy time includes:
[0192] The difference between the single occupancy time and the single required time slot is used as the updated single occupancy time.
[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0194] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0195] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A network communication method, characterized in that: The method comprises: Determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length; According to the placeholder time slot information, placeholder time slots are added between service bursts of the uplink time slot allocation frame; wherein the uplink time slot allocation frame after the placeholder time slots are added is used for network communication.
2. The method according to claim 1, characterized in that The determining, according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot, the occupied time slot information corresponding to the uplink time slot allocation frame comprises: According to the logical channel for generating service bursts for each existing service in the uplink time slot allocation frame and the arrangement order between the service bursts, the service bursts with adjacent arrangement order and belonging to different logical channels are divided into the same burst group; wherein the number of service bursts included in each burst group is the same as the number of logical channels included in the uplink time slot allocation frame; Using the number of burst groups as the number of occupied time slots; The single occupying time length is determined according to the number of occupied time slots and the group occupied time slots of each burst group.
3. The method according to claim 2, characterized in that The determining the single occupying time length according to the number of occupied time slots and the occupied time slots of each burst group includes: For each burst group, determine the group occupied time slot of the burst group according to the preamble occupied time slot and the single burst time slot corresponding to each service burst in the burst group; Determining the total occupied time slots in the uplink time slot allocation frame according to the number of occupied time slots and the group of occupied time slots; The difference between the allocation frame duration of the uplink time slot allocation frame and the total occupied time slots is used as the total occupied time slot; The ratio of the total occupation time to the number of occupation time slots is used as the single occupation time.
4. The method according to claim 3, characterized in that The adding a placeholder time slot between service bursts of the uplink time slot allocation frame according to the placeholder time slot information comprises: A placeholder time slot of the single placeholder time length is added between adjacent burst groups, and a placeholder time slot of the single placeholder time length is added at the end of the burst group at the end position in the uplink time slot allocation frame.
5. The method according to claim 1, characterized in that The method further comprises: In response to a service burst adding request for a newly added service, obtaining a single time slot required for the newly added service to generate a service burst; If the single required time slot is smaller than the single occupying time length, the single required time slot is configured in each occupying time slot, and the single occupying time length is updated.
6. The method according to claim 5, characterized in that The method further comprises: If the single required time slot is not less than the single occupancy time length, a burst add response message indicating that the service cannot be provided is sent.
7. The method according to claim 5, characterized in that The updating of the single occupancy duration includes: The difference between the single occupancy duration and the single required time slot is used as the updated single occupancy duration.
8. A network communication device, characterized in that: The device comprises: A determination module, configured to determine the occupied time slot information corresponding to the uplink time slot allocation frame according to the number of bursts of service bursts generated by existing services in the uplink time slot allocation frame and the single burst time slot; wherein the occupied time slot information includes the number of occupied time slots and the single occupied time length; The adding module is used to add a placeholder time slot between service bursts of the uplink time slot allocation frame according to the placeholder time slot information; wherein the uplink time slot allocation frame after adding the placeholder time slot is used for network communication.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Service configuration method and device, computer equipment and storage medium
CN119767176A
Business configuration method and device, computer device and storage medium
CN119767176B
Network communication method and apparatus, and computer device and storage medium
WO2026026744A1
Optical communication apparatus and system, and processing method for optical communication
WO2026174797A1
